/* Identidade visual compartilhada com o login: vidro, fundo e temas. */

html {
  --cc-accent: #1d4ed8;
  --cc-accent-hover: #1e40af;
  --cc-accent-soft: rgba(29, 78, 216, 0.16);
  --cc-text: #1b1b1d;
  --cc-text-muted: #475569;
  --cc-heading: #0f172a;
  --cc-glass: rgba(255, 255, 255, 0.52);
  --cc-glass-strong: rgba(255, 255, 255, 0.72);
  --cc-surface: rgba(255, 255, 255, 0.86);
  --cc-surface-muted: rgba(241, 245, 249, 0.92);
  --cc-chip-bg: rgba(255, 255, 255, 0.78);
  --cc-chip-text: #334155;
  --cc-border: rgba(255, 255, 255, 0.55);
  --cc-field-outline: rgba(15, 23, 42, 0.34);
  --cc-input: #ffffff;
  --cc-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

html[data-theme="dark"],
html[data-bs-theme="dark"] {
  color-scheme: dark;
  --cc-text: #f3f0f2;
  --cc-text-muted: #cbd5e1;
  --cc-heading: #f8fafc;
  --cc-glass: rgba(22, 24, 36, 0.52);
  --cc-glass-strong: rgba(26, 29, 43, 0.72);
  --cc-surface: rgba(26, 29, 43, 0.78);
  --cc-surface-muted: rgba(18, 21, 34, 0.88);
  --cc-chip-bg: rgba(255, 255, 255, 0.08);
  --cc-chip-text: #e2e8f0;
  --cc-border: rgba(255, 255, 255, 0.14);
  --cc-field-outline: rgba(255, 255, 255, 0.34);
  --cc-input: rgba(255, 255, 255, 0.08);
  --cc-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  --bs-body-color: #f3f0f2;
  --bs-body-bg: #161822;
  --bs-secondary-bg: #222536;
  --bs-tertiary-bg: #1a1d2b;
  --bs-border-color: rgba(255, 255, 255, 0.14);
  --bs-heading-color: #f3f0f2;
  --bs-emphasis-color: #f8fafc;
  --bs-dropdown-bg: #1a1d2b;
  --bs-dropdown-color: #f3f0f2;
  --bs-dropdown-link-color: #e2e8f0;
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-dropdown-border-color: rgba(255, 255, 255, 0.14);
  --bs-warning: #1d4ed8;
  --bs-warning-rgb: 29, 78, 216;
  --bs-warning-text-emphasis: #bfdbfe;
  --bs-warning-bg-subtle: rgba(37, 99, 235, 0.28);
  --bs-warning-border-subtle: rgba(147, 197, 253, 0.42);
}

html[data-theme="light"],
html[data-bs-theme="light"] {
  color-scheme: light;
  --cc-field-outline: rgba(15, 23, 42, 0.34);
  --cc-input: #ffffff;
}

.app-shell-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #303032;
}

.app-shell-bg picture {
  position: absolute;
  inset: 0;
  display: block;
}

.app-shell-bg-img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

.app-shell-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(252, 248, 251, 0.42) 0%, rgba(241, 245, 249, 0.52) 52%, rgba(226, 232, 240, 0.62) 100%);
}

html[data-theme="dark"] .app-shell-bg {
  background: #10121c;
}

html[data-theme="dark"] .app-shell-bg-overlay {
  background: linear-gradient(180deg, rgba(16, 18, 32, 0.62) 0%, rgba(10, 12, 22, 0.74) 50%, rgba(8, 10, 18, 0.84) 100%);
}

html:has(body.app-shell-body) body.app-shell-body {
  background: transparent;
  color: var(--cc-text);
}

.app-shell-body .dashboard-content,
.app-shell-body .card-body,
.app-shell-body .page-shell {
  color: var(--cc-text);
}

.app-shell-body .dashboard-layout {
  z-index: 1;
}

/* O JS move o modal para o body. Chrome opaco para o header do sistema não atravessar o título. */
.app-shell-body.modal-open .modal-backdrop {
  --bs-backdrop-bg: #0f172a;
  --bs-backdrop-opacity: 0.22;
}

html[data-theme="dark"] .app-shell-body.modal-open .modal-backdrop,
html[data-bs-theme="dark"] .app-shell-body.modal-open .modal-backdrop {
  --bs-backdrop-bg: #020617;
  --bs-backdrop-opacity: 0.4;
}

.app-shell-body .modal-content,
.app-shell-body .modal-header,
.app-shell-body .modal-footer {
  background: #ffffff;
}

.app-shell-body .modal-header .btn-close {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

html[data-theme="dark"] .app-shell-body .modal-header .btn-close,
html[data-bs-theme="dark"] .app-shell-body .modal-header .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.72;
}

.app-shell-body .btn-primary {
  background-color: var(--cc-accent);
  border-color: var(--cc-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
}

.app-shell-body .btn-primary:hover,
.app-shell-body .btn-primary:active,
.app-shell-body .btn-primary.active {
  background-color: var(--cc-accent-hover);
  border-color: var(--cc-accent-hover);
  color: #fff;
}

.app-shell-body .form-control:not(.form-control-plaintext),
.app-shell-body .form-select,
.app-shell-body .form-control-sm,
.app-shell-body .form-select-sm,
.app-shell-body .search-input {
  background-color: var(--cc-input);
  border: 1px solid var(--cc-field-outline);
  color: var(--cc-text);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.app-shell-body textarea.form-control {
  border: 1px solid var(--cc-field-outline);
  background-color: var(--cc-input);
}

.app-shell-body .input-group-text {
  background-color: #f1f5f9;
  border: 1px solid var(--cc-field-outline);
  color: var(--cc-text);
}

.app-shell-body .form-check-input {
  background-color: #fff;
  border-color: rgba(15, 23, 42, 0.42);
}

.app-shell-body .form-check-input:checked {
  background-color: var(--cc-accent);
  border-color: var(--cc-accent);
}

.app-shell-body .form-control:disabled,
.app-shell-body .form-select:disabled,
.app-shell-body .form-control[readonly]:not(.form-control-plaintext) {
  background-color: #f1f5f9;
  border-color: var(--cc-field-outline);
  color: #475569;
  opacity: 1;
}

html[data-theme="dark"] .app-shell-body textarea.form-control,
html[data-bs-theme="dark"] .app-shell-body textarea.form-control {
  border-color: var(--cc-field-outline);
  background-color: var(--cc-input);
}

.app-shell-body .form-control::placeholder,
.app-shell-body .search-input::placeholder {
  color: var(--cc-text-muted);
  opacity: 0.7;
}

.app-shell-body .form-control:focus,
.app-shell-body .form-select:focus,
.app-shell-body .search-input:focus {
  background-color: var(--cc-input);
  color: var(--cc-text);
  border-color: var(--cc-accent);
  box-shadow: 0 0 0 0.22rem var(--cc-accent-soft);
}

.app-shell-body .card,
.app-shell-body .glass-card,
.app-shell-body .stat-card {
  background: var(--cc-glass);
  border-color: var(--cc-border);
}

.app-shell-body .card:has(.table),
.app-shell-body .card:has(.table-responsive) {
  overflow: hidden;
  min-height: min-content;
}

html[data-theme="dark"] .app-shell-body .card {
  background: linear-gradient(145deg, rgba(36, 40, 58, 0.72), rgba(22, 24, 36, 0.52));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .app-shell-body .glass-card,
html[data-theme="dark"] .app-shell-body .stat-card {
  background: rgba(22, 24, 36, 0.48);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .app-shell-body .dashboard-sidebar-inner {
  background:
    linear-gradient(180deg, rgba(36, 40, 58, 0.76), rgba(22, 24, 36, 0.64)),
    rgba(16, 18, 28, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .app-shell-body .dashboard-content {
  background:
    linear-gradient(180deg, rgba(36, 40, 58, 0.78), rgba(22, 24, 36, 0.62)),
    rgba(16, 18, 28, 0.68);
  border-color: rgba(255, 255, 255, 0.14);
}

.app-shell-body .card-header,
.app-shell-body .card-footer,
.app-shell-body .card-header.bg-light,
.app-shell-body .card-header.bg-white {
  background: var(--cc-surface-muted);
  border-color: var(--cc-border);
  color: var(--cc-heading);
}

.app-shell-body .stat-metric,
.app-shell-body .form-control-plaintext,
.app-shell-body dd {
  color: var(--cc-heading);
}

.app-shell-body dt,
.app-shell-body .form-label,
.app-shell-body .col-form-label,
.app-shell-body .form-text,
.app-shell-body .text-muted {
  color: var(--cc-text-muted) !important;
}

.app-shell-body .dashboard-sidebar-inner,
.app-shell-body .dashboard-content {
  background: var(--cc-glass);
  border-color: var(--cc-border);
}

.app-shell-body .theme-toggle,
.app-shell-body .dashboard-sidebar-toggle,
.app-shell-body .dashboard-mobile-toggle,
.app-shell-body .header-icon-button,
.app-shell-body .dashboard-search-toggle {
  background: var(--cc-glass-strong);
  border-color: var(--cc-border);
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body .text-primary {
  color: #f8fafc !important;
}

html[data-theme="dark"] .app-shell-body .text-muted,
html[data-theme="dark"] .app-shell-body .sidebar-section-label,
html[data-theme="dark"] .app-shell-body .dashboard-profile-role,
html[data-theme="dark"] .app-shell-body .dashboard-footer-copy,
html[data-theme="dark"] .app-shell-body .dashboard-footer-meta,
html[data-theme="dark"] .app-shell-body .dashboard-search-icon {
  color: var(--cc-text-muted) !important;
}

html[data-theme="dark"] .app-shell-body .dashboard-sidebar {
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body .dashboard-sidebar .nav-link {
  color: #cbd5e1;
}

html[data-theme="dark"] .app-shell-body .dashboard-sidebar .nav-link.active,
html[data-theme="dark"] .app-shell-body .dashboard-sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

html[data-theme="dark"] .app-shell-body .dashboard-sidebar .nav-link.active {
  background: rgba(29, 78, 216, 0.28);
  border-color: rgba(147, 197, 253, 0.28);
  color: #dbeafe;
}

html[data-theme="dark"] .app-shell-body .dashboard-header-brand-title,
html[data-theme="dark"] .app-shell-body .dashboard-footer-brand,
html[data-theme="dark"] .app-shell-body .dashboard-profile-name {
  color: #f8fafc;
}

html[data-theme="dark"] .app-shell-body .dashboard-header-brand-subtitle {
  color: #93c5fd;
}

html[data-theme="dark"] .app-shell-body .dashboard-header::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 8%,
    rgba(29, 78, 216, 0.45) 42%,
    rgba(255, 255, 255, 0.12) 58%,
    rgba(255, 255, 255, 0.06) 92%,
    transparent 100%
  );
}

html[data-theme="dark"] .app-shell-body .dashboard-sidebar-top,
html[data-theme="dark"] .app-shell-body .dashboard-sidebar-footer,
html[data-theme="dark"] .app-shell-body .dashboard-footer {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .app-shell-body .sidebar-status-panel,
html[data-theme="dark"] .app-shell-body .dashboard-profile-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .app-shell-body .sidebar-status-chip {
  color: #f8fafc;
}

html[data-theme="dark"] .app-shell-body .btn-outline-primary,
html[data-theme="dark"] .app-shell-body .btn-outline-secondary {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .app-shell-body .btn-outline-primary:hover,
html[data-theme="dark"] .app-shell-body .btn-outline-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .app-shell-body .btn-outline-success,
html[data-theme="dark"] .app-shell-body .btn-success-soft {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(16, 185, 129, 0.16);
}

html[data-theme="dark"] .app-shell-body .btn-outline-success:hover,
html[data-theme="dark"] .app-shell-body .btn-success-soft:hover {
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(110, 231, 183, 0.55);
}

html[data-theme="dark"] .app-shell-body .text-success {
  color: #6ee7b7 !important;
}

html[data-theme="dark"] .app-shell-body .table .btn-outline-primary {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.12);
}

html[data-theme="dark"] .app-shell-body .table .btn-outline-primary:hover,
html[data-theme="dark"] .app-shell-body .table .btn-outline-primary:focus-visible,
html[data-theme="dark"] .app-shell-body .table .btn-outline-primary:active {
  color: #fff;
  background-color: #3B82F6;
  border-color: #60a5fa;
}

html[data-theme="dark"] .cc-section-rail {
  background: transparent;
  border-color: rgba(147, 197, 253, 0.32);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.16);
}

html[data-theme="dark"] .cc-section-rail::before {
  background: rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

html[data-theme="dark"] .cc-section-rail-title,
html[data-theme="dark"] .cc-section-rail-item {
  color: #bfdbfe;
}

html[data-theme="dark"] .cc-section-rail-item.is-top {
  color: #93c5fd;
}

html[data-theme="dark"] .cc-section-rail-item:hover,
html[data-theme="dark"] .cc-section-rail-item:focus-visible {
  color: #dbeafe;
  background: rgba(147, 197, 253, 0.28);
}

html[data-theme="dark"] .cc-section-rail-item.is-active {
  color: #fff;
  background: rgba(59, 130, 246, 0.92);
}

html[data-theme="dark"] .cc-section-rail-item.is-active:hover,
html[data-theme="dark"] .cc-section-rail-item.is-active:focus-visible {
  color: #fff;
  background: rgba(96, 165, 250, 0.72);
}

html[data-theme="dark"] .app-shell-body .btn-secondary-soft {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

html[data-theme="dark"] .app-shell-body .table {
  color: var(--cc-text);
  --bs-table-color: var(--cc-text);
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
  --bs-table-striped-color: var(--cc-text);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.07);
  --bs-table-hover-color: var(--cc-text);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .app-shell-body .table-light,
html[data-theme="dark"] .app-shell-body .table thead.table-light {
  --bs-table-color: #e2e8f0;
  --bs-table-bg: rgba(255, 255, 255, 0.06);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
  --bs-table-striped-color: #e2e8f0;
  --bs-table-hover-color: #f8fafc;
  color: #e2e8f0;
}

html[data-theme="dark"] .app-shell-body .table > :not(caption) > * > * {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));
}

html[data-theme="dark"] .app-shell-body .table > :not(caption) > * > *:last-child {
  border-right: 0;
}

html[data-theme="dark"] .app-shell-body .bg-white,
html[data-theme="dark"] .app-shell-body .bg-light,
html[data-theme="dark"] .app-shell-body .bg-body,
html[data-theme="dark"] .app-shell-body .list-group-item,
html[data-theme="dark"] .app-shell-body .text-bg-light,
html[data-theme="dark"] .app-shell-body .badge.text-bg-light {
  background-color: var(--cc-surface-muted) !important;
  color: var(--cc-text) !important;
  border-color: var(--cc-border) !important;
}

html[data-theme="dark"] .app-shell-body .card-header.bg-light,
html[data-theme="dark"] .app-shell-body .card-header.bg-white,
html[data-theme="dark"] .app-shell-body .card-footer.bg-light {
  background: var(--cc-surface-muted) !important;
  color: var(--cc-heading) !important;
  border-color: var(--cc-border) !important;
}

html[data-theme="dark"] .app-shell-body .text-dark,
html[data-theme="dark"] .app-shell-body .text-body,
html[data-theme="dark"] .app-shell-body .text-black,
html[data-theme="dark"] .app-shell-body .text-black-50 {
  color: var(--cc-text) !important;
}

html[data-theme="dark"] .app-shell-body .table-danger,
html[data-theme="dark"] .app-shell-body .table-danger > * {
  --bs-table-bg: rgba(239, 68, 68, 0.16);
  --bs-table-color: #fecaca;
  --bs-table-striped-bg: rgba(239, 68, 68, 0.2);
  --bs-table-hover-bg: rgba(239, 68, 68, 0.24);
  --bs-table-border-color: rgba(252, 165, 165, 0.28);
  color: #fecaca;
}

html[data-theme="dark"] .app-shell-body .table-success,
html[data-theme="dark"] .app-shell-body .table-success > * {
  --bs-table-bg: rgba(16, 185, 129, 0.14);
  --bs-table-color: #a7f3d0;
  --bs-table-striped-bg: rgba(16, 185, 129, 0.18);
  --bs-table-hover-bg: rgba(16, 185, 129, 0.22);
  color: #a7f3d0;
}

html[data-theme="dark"] .app-shell-body .btn-outline-danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(239, 68, 68, 0.12);
}

html[data-theme="dark"] .app-shell-body .btn-outline-danger:hover,
html[data-theme="dark"] .app-shell-body .btn-outline-danger:focus-visible {
  color: #fff;
  background: rgba(220, 38, 38, 0.72);
  border-color: #fca5a5;
}

html[data-theme="dark"] .app-shell-body .solicitacao-guidance-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body .solicitacao-form-check {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body .solicitacao-form-check .form-check-label {
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body .solicitacao-form-check .form-check-input {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .app-shell-body .solicitacao-form-check .form-check-input:checked {
  background-color: var(--cc-accent);
  border-color: var(--cc-accent);
}

html[data-theme="dark"] .app-shell-body .solicitacao-guidance-card .text-success,
html[data-theme="dark"] .app-shell-body .solicitacao-guidance-card .text-warning,
html[data-theme="dark"] .app-shell-body .solicitacao-guidance-card .text-primary {
  color: inherit !important;
}

html[data-theme="dark"] .app-shell-body .solicitacao-guidance-card .fw-semibold.text-success {
  color: #86efac !important;
}

html[data-theme="dark"] .app-shell-body .solicitacao-guidance-card .fw-semibold.text-warning {
  color: #fcd34d !important;
}

html[data-theme="dark"] .app-shell-body .solicitacao-guidance-card .fw-semibold.text-primary {
  color: #93c5fd !important;
}

html[data-theme="dark"] .app-shell-body .solicitacao-action-preview,
html[data-theme="dark"] .app-shell-body .alert-info.solicitacao-action-preview {
  background: rgba(59, 130, 246, 0.16) !important;
  color: #dbeafe !important;
  border-color: rgba(147, 197, 253, 0.28) !important;
}

html[data-theme="dark"] .app-shell-body .solicitacao-chat-message.is-client,
html[data-theme="dark"] .app-shell-body .solicitacao-chat-message.is-admin {
  color: #f1f5f9;
}

html[data-theme="dark"] .app-shell-body .bg-success-subtle {
  background-color: rgba(16, 185, 129, 0.18) !important;
}

html[data-theme="dark"] .app-shell-body .text-success-emphasis,
html[data-theme="dark"] .app-shell-body .badge.bg-success-subtle {
  color: #86efac !important;
}

html[data-theme="dark"] .app-shell-body .bg-danger-subtle {
  background-color: rgba(239, 68, 68, 0.18) !important;
}

html[data-theme="dark"] .app-shell-body .bg-info-subtle {
  background-color: rgba(6, 182, 212, 0.18) !important;
}

html[data-theme="dark"] .app-shell-body .bg-secondary-subtle {
  background-color: rgba(148, 163, 184, 0.16) !important;
}

html[data-theme="dark"] .app-shell-body .text-secondary {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .app-shell-body .border,
html[data-theme="dark"] .app-shell-body .border-top,
html[data-theme="dark"] .app-shell-body .border-bottom,
html[data-theme="dark"] .app-shell-body .border-start,
html[data-theme="dark"] .app-shell-body .border-end {
  border-color: var(--cc-border) !important;
}

html[data-theme="dark"] .app-shell-body .dropdown-menu,
html[data-theme="dark"] .app-shell-body .notification-dropdown,
html[data-theme="dark"] .app-shell-body .modal-content,
html[data-theme="dark"] .app-shell-body .modal-header,
html[data-theme="dark"] .app-shell-body .modal-footer {
  background: #161822;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body .notification-dropdown::before {
  background: rgba(16, 18, 28, 0.94);
}

html[data-theme="dark"] .app-shell-body .dropdown-item {
  color: #e2e8f0;
}

html[data-theme="dark"] .app-shell-body .dropdown-item:hover,
html[data-theme="dark"] .app-shell-body .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html[data-theme="dark"] .app-shell-body .modal-header,
html[data-theme="dark"] .app-shell-body .modal-footer {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .app-shell-body .alert {
  background: var(--cc-glass);
  border-color: var(--cc-border);
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body .nav-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .app-shell-body .nav-tabs .nav-link {
  color: var(--cc-text-muted);
}

html[data-theme="dark"] .app-shell-body .nav-tabs .nav-link.active {
  background: var(--cc-glass);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

html[data-theme="dark"] .app-shell-body .projeto-workspace-tabs .nav-link {
  color: rgba(226, 232, 240, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .app-shell-body .projeto-workspace-tabs .nav-link:hover,
html[data-theme="dark"] .app-shell-body .projeto-workspace-tabs .nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(147, 197, 253, 0.32);
}

html[data-theme="dark"] .app-shell-body .projeto-workspace-tabs .nav-link.active,
html[data-theme="dark"] .app-shell-body .projeto-workspace-tabs .nav-link.active:hover,
html[data-theme="dark"] .app-shell-body .projeto-workspace-tabs .nav-link.active:focus-visible {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.48), rgba(29, 78, 216, 0.58)),
    rgba(29, 78, 216, 0.28);
  border-color: rgba(147, 197, 253, 0.32);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    0 8px 22px rgba(29, 78, 216, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .app-shell-body .projeto-workspace-tabs .nav-link .projeto-tab-index {
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .app-shell-body .projeto-workspace-page > .projeto-workspace-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

html[data-theme="dark"] .app-shell-body .projeto-workspace-page > .projeto-workspace-card > .card-body {
  background: rgba(22, 24, 36, 0.48);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .app-shell-body .projeto-observacoes,
html[data-theme="dark"] .app-shell-body .projeto-rascunho-interno {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .app-shell-body .projeto-versao-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .app-shell-body .projeto-versao-card.is-destaque {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(147, 197, 253, 0.45);
}

html[data-theme="dark"] .app-shell-body .projeto-versao-atual {
  color: #93c5fd;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-quando,
html[data-theme="dark"] .app-shell-body .projeto-versao-meta,
html[data-theme="dark"] .app-shell-body .projeto-versao-desc {
  color: #94a3b8;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-nota {
  background: rgba(120, 53, 15, 0.38);
  border-color: rgba(251, 191, 36, 0.32);
  color: #fde68a;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-nota.is-ok {
  background: rgba(20, 83, 45, 0.38);
  border-color: rgba(74, 222, 128, 0.32);
  color: #bbf7d0;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-actions {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .app-shell-body .projeto-versao-aviso.is-alerta {
  background: rgba(120, 53, 15, 0.42);
  border-color: rgba(251, 191, 36, 0.38);
  color: #fde68a;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-aviso.is-ok {
  background: rgba(20, 83, 45, 0.42);
  border-color: rgba(74, 222, 128, 0.38);
  color: #bbf7d0;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-aviso.is-custo,
html[data-bs-theme="dark"] .app-shell-body .projeto-versao-aviso.is-custo {
  background: rgba(30, 58, 138, 0.38);
  border-color: rgba(147, 197, 253, 0.4);
  color: #bfdbfe;
}

html[data-theme="dark"] .app-shell-body .projeto-painel-chip,
html[data-bs-theme="dark"] .app-shell-body .projeto-painel-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

html[data-theme="dark"] .app-shell-body .projeto-painel-chip.is-llm,
html[data-bs-theme="dark"] .app-shell-body .projeto-painel-chip.is-llm {
  background: rgba(30, 58, 138, 0.38);
  border-color: rgba(147, 197, 253, 0.4);
  color: #bfdbfe;
}

html[data-theme="dark"] .app-shell-body .projeto-painel-chip.is-sign,
html[data-bs-theme="dark"] .app-shell-body .projeto-painel-chip.is-sign {
  background: rgba(120, 53, 15, 0.42);
  border-color: rgba(251, 191, 36, 0.38);
  color: #fde68a;
}

html[data-theme="dark"] .app-shell-body .projeto-painel-chip.is-check,
html[data-bs-theme="dark"] .app-shell-body .projeto-painel-chip.is-check {
  background: rgba(76, 29, 149, 0.38);
  border-color: rgba(196, 181, 253, 0.4);
  color: #ddd6fe;
}

html[data-theme="dark"] .app-shell-body .projeto-painel-mapa-col,
html[data-bs-theme="dark"] .app-shell-body .projeto-painel-mapa-col,
html[data-theme="dark"] .app-shell-body .projeto-versao-coluna,
html[data-bs-theme="dark"] .app-shell-body .projeto-versao-coluna {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .app-shell-body .projeto-elaboracao-dock {
  background: rgba(22, 24, 36, 0.82);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .app-shell-body .projeto-elaboracao-dock-title {
  color: #93c5fd;
}

html[data-theme="dark"] .app-shell-body .projeto-elaboracao-text {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body .projeto-elaboracao-resultado {
  border-top-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-title {
  color: #94a3b8;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-score-badge,
html[data-bs-theme="dark"] .app-shell-body .projeto-versao-score-badge {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(96, 165, 250, 0.35);
  color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .app-shell-body .projeto-versao-score-badge:hover,
html[data-bs-theme="dark"] .app-shell-body .projeto-versao-score-badge:hover,
html[data-theme="dark"] .app-shell-body .projeto-versao-score-badge:focus-visible,
html[data-bs-theme="dark"] .app-shell-body .projeto-versao-score-badge:focus-visible {
  background: rgba(30, 41, 59, 0.95);
  border-color: #60a5fa;
  color: #93c5fd;
  box-shadow: 0 4px 14px rgba(96, 165, 250, 0.25);
}

html[data-theme="dark"] .app-shell-body .projeto-versao-proposta-card,
html[data-bs-theme="dark"] .app-shell-body .projeto-versao-proposta-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .app-shell-body .projeto-versao-acao-dock,
html[data-bs-theme="dark"] .app-shell-body .projeto-versao-acao-dock {
  background: rgba(30, 58, 138, 0.22);
  border-color: rgba(147, 197, 253, 0.3);
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca,
html[data-bs-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(96, 165, 250, 0.25);
  color: #e2e8f0;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca:hover,
html[data-bs-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #60a5fa;
  color: #93c5fd;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-foot,
html[data-bs-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-foot {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(96, 165, 250, 0.25);
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-download-link,
html[data-bs-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-download-link {
  color: #93c5fd;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-download-link:hover,
html[data-bs-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-download-link:hover {
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.15);
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-vermais,
html[data-bs-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-vermais {
  color: #94a3b8;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-vermais:hover,
html[data-bs-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-vermais:hover {
  color: #cbd5e1;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca {
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(147, 197, 253, 0.55);
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca:hover,
html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca:focus-visible {
  color: #fff;
  background: rgba(59, 130, 246, 0.42);
  border-color: #93c5fd;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-ext {
  opacity: 0.88;
}

html[data-theme="dark"] .app-shell-body .projeto-info-panel {
  background: rgba(22, 24, 36, 0.42);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .app-shell-body .projeto-info-panel-title {
  color: #93c5fd;
  border-bottom-color: rgba(147, 197, 253, 0.22);
}

html[data-theme="dark"] .app-shell-body .projeto-info-grid dt {
  color: var(--cc-text-muted);
}

html[data-theme="dark"] .app-shell-body .projeto-info-grid dd {
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body .projeto-info-note {
  border-top-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .app-shell-body .projeto-etapa-badge {
  background:
    linear-gradient(180deg, rgba(36, 40, 58, 0.92), rgba(22, 24, 36, 0.86)),
    rgba(30, 34, 48, 0.9);
  color: #cbd5e1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .app-shell-body .projeto-etapa-badge.is-complete {
  background:
    linear-gradient(180deg, rgba(22, 101, 52, 0.96), rgba(20, 83, 45, 0.9)),
    #14532d;
  color: #fff;
  box-shadow:
    0 8px 18px rgba(22, 101, 52, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .app-shell-body .projeto-etapa-badge.is-current {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.96), rgba(29, 78, 216, 0.9)),
    #1d4ed8;
  color: #fff;
  box-shadow:
    0 8px 18px rgba(29, 78, 216, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .app-shell-body .edital-viewer,
html[data-theme="dark"] .app-shell-body .edital-viewer-text {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

html[data-theme="dark"] .app-shell-body .edital-viewer-empty {
  color: #334155;
}

html[data-theme="dark"] .app-shell-body .pagination .page-link {
  background: var(--cc-glass);
  border-color: var(--cc-border);
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body .input-group-text {
  background: var(--cc-glass-strong);
  border-color: var(--cc-border);
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body .form-check-input {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

html[data-theme="dark"] .app-shell-body .form-check-input:checked {
  background-color: var(--cc-accent);
  border-color: var(--cc-accent);
}

html[data-theme="dark"] .app-shell-body .app-toast {
  background: rgba(10, 10, 20, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body hr {
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

html[data-theme="dark"] .app-shell-body .dashboard-sidebar-toggle:hover,
html[data-theme="dark"] .app-shell-body .header-icon-button:hover,
html[data-theme="dark"] .app-shell-body .theme-toggle:hover {
  color: #fff;
}

html[data-theme="dark"] .app-shell-body .glass-card-edital .glass-card-action-btn:disabled:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #64748b !important;
}

html[data-theme="dark"] .public-topbar {
  background: rgba(10, 10, 20, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

html[data-theme="dark"] .public-topbar .navbar-brand,
html[data-theme="dark"] .public-topbar .nav-link {
  color: #e2e8f0;
}

html[data-theme="dark"] body.bg-light {
  background: transparent !important;
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body .form-control,
html[data-theme="dark"] .app-shell-body .form-select,
html[data-theme="dark"] .app-shell-body .form-select-sm,
html[data-theme="dark"] .app-shell-body .search-input {
  background-color: var(--cc-input);
  color: var(--cc-text);
  border-color: var(--cc-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color-scheme: dark;
}

html[data-theme="dark"] .app-shell-body textarea.form-control {
  background-color: var(--cc-input);
  color: var(--cc-text);
  border-color: var(--cc-field-outline);
  color-scheme: dark;
}

html[data-theme="dark"] .app-shell-body .form-select {
  background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

html[data-theme="dark"] .app-shell-body .form-select[multiple],
html[data-theme="dark"] .app-shell-body .form-select[size]:not([size="1"]) {
  background-image: none;
}

html[data-theme="dark"] .app-shell-body .form-control:focus,
html[data-theme="dark"] .app-shell-body .form-select:focus,
html[data-theme="dark"] .app-shell-body .search-input:focus {
  background-color: rgba(255, 255, 255, 0.10);
  color: var(--cc-text);
  border-color: var(--cc-accent);
  box-shadow: 0 0 0 0.22rem var(--cc-accent-soft);
}

html[data-theme="dark"] .app-shell-body .form-control:disabled,
html[data-theme="dark"] .app-shell-body .form-select:disabled,
html[data-theme="dark"] .app-shell-body .form-control[readonly] {
  background-color: #141622;
  color: #94a3b8;
  opacity: 1;
}

html[data-theme="dark"] .app-shell-body .form-floating > label {
  color: var(--cc-text-muted);
}

html[data-theme="dark"] .app-shell-body .form-floating > .form-control:focus ~ label::after,
html[data-theme="dark"] .app-shell-body .form-floating > .form-control:not(:placeholder-shown) ~ label::after,
html[data-theme="dark"] .app-shell-body .form-floating > .form-select ~ label::after {
  background-color: #1a1d2b;
}

html[data-theme="dark"] .app-shell-body .form-control::placeholder,
html[data-theme="dark"] .app-shell-body .search-input::placeholder {
  color: rgba(226, 232, 240, 0.68);
}

html[data-theme="dark"] select,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-select option,
html[data-theme="dark"] select option,
html[data-theme="dark"] .form-select optgroup {
  background-color: #1a1d2b;
  color: #f3f0f2;
}

html[data-theme="dark"] .app-shell-body input[type="date"],
html[data-theme="dark"] .app-shell-body input[type="datetime-local"],
html[data-theme="dark"] .app-shell-body input[type="time"],
html[data-theme="dark"] .app-shell-body input[type="month"],
html[data-theme="dark"] .app-shell-body input[type="week"] {
  color-scheme: dark;
}

html[data-theme="dark"] .app-shell-body .form-control:-webkit-autofill,
html[data-theme="dark"] .app-shell-body .form-control:-webkit-autofill:hover,
html[data-theme="dark"] .app-shell-body .form-control:-webkit-autofill:focus,
html[data-theme="dark"] .login-input:-webkit-autofill,
html[data-theme="dark"] .login-input:-webkit-autofill:hover,
html[data-theme="dark"] .login-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f3f0f2;
  caret-color: #f3f0f2;
  box-shadow: 0 0 0 1000px #1a1d2b inset;
  transition: background-color 9999s ease-out;
}

html[data-theme="dark"] .dropdown-menu {
  --bs-dropdown-bg: #1a1d2b;
  --bs-dropdown-color: #f3f0f2;
  --bs-dropdown-link-color: #e2e8f0;
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: rgba(29, 78, 216, 0.35);
  --bs-dropdown-border-color: rgba(255, 255, 255, 0.14);
  background-color: #1a1d2b;
  color: #f3f0f2;
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .dropdown-item {
  color: #e2e8f0;
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html[data-theme="dark"] .app-shell-body .notification-dropdown,
html[data-theme="dark"] .app-shell-body .notification-dropdown::before,
html[data-theme="dark"] .app-shell-body .notification-dropdown-header,
html[data-theme="dark"] .app-shell-body .notification-dropdown-summary,
html[data-theme="dark"] .app-shell-body .notification-tabs {
  background: #161822;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f3f0f2;
}

html[data-theme="dark"] .app-shell-body .notification-summary-chip,
html[data-theme="dark"] .app-shell-body .notification-tab-button.is-active,
html[data-theme="dark"] .app-shell-body .notification-quick-action,
html[data-theme="dark"] .app-shell-body .notification-header-count {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: #e2e8f0;
}

html[data-theme="dark"] .app-shell-body .notification-summary-label,
html[data-theme="dark"] .app-shell-body .notification-header-count-label,
html[data-theme="dark"] .app-shell-body .notification-tab-button {
  color: #94a3b8;
}

html[data-theme="dark"] .app-shell-body .notification-item-card,
html[data-theme="dark"] .app-shell-body .notification-items-scroll,
html[data-theme="dark"] .app-shell-body .notification-empty-state,
html[data-theme="dark"] .app-shell-body .notification-summary-card,
html[data-theme="dark"] .app-shell-body .solicitacao-chat-message,
html[data-theme="dark"] .app-shell-body .solicitacao-chat-message.is-system {
  background: #1a1d2b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f3f0f2;
  box-shadow: none;
}

html[data-theme="dark"] .app-shell-body .notification-item-actions {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .app-shell-body h1,
html[data-theme="dark"] .app-shell-body h2,
html[data-theme="dark"] .app-shell-body h3,
html[data-theme="dark"] .app-shell-body h4,
html[data-theme="dark"] .app-shell-body h5,
html[data-theme="dark"] .app-shell-body h6,
html[data-theme="dark"] .app-shell-body .page-toolbar h5,
html[data-theme="dark"] .app-shell-body .stat-metric,
html[data-theme="dark"] .app-shell-body .form-control-plaintext,
html[data-theme="dark"] .app-shell-body dd {
  color: var(--cc-heading);
}

html[data-theme="dark"] .app-shell-body .form-label,
html[data-theme="dark"] .app-shell-body .col-form-label,
html[data-theme="dark"] .app-shell-body .form-text,
html[data-theme="dark"] .app-shell-body dt {
  color: var(--cc-text-muted);
}

html[data-theme="dark"] .app-shell-body .glass-card-edital .glass-card-body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

html[data-theme="dark"] .app-shell-body .glass-card-edital .glass-card-title,
html[data-theme="dark"] .app-shell-body .glass-card-edital .glass-card-metric-value {
  color: #f8fafc;
}

html[data-theme="dark"] .app-shell-body .glass-card-edital .glass-card-header-label,
html[data-theme="dark"] .app-shell-body .glass-card-accent-primary .glass-card-header-label,
html[data-theme="dark"] .app-shell-body .glass-card-accent-secondary .glass-card-header-label {
  color: #cbd5e1;
}

html[data-theme="dark"] .app-shell-body .glass-card-accent-success .glass-card-header-label {
  color: #6ee7b7;
}

html[data-theme="dark"] .app-shell-body .glass-card-accent-warning .glass-card-header-label {
  color: #93c5fd;
}

html[data-theme="dark"] .app-shell-body .glass-card-accent-info .glass-card-header-label {
  color: #7dd3fc;
}

html[data-theme="dark"] .app-shell-body .glass-card-accent-danger .glass-card-header-label {
  color: #fca5a5;
}

html[data-theme="dark"] .app-shell-body .glass-card-accent-primary .glass-card-header-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

html[data-theme="dark"] .app-shell-body .glass-card-accent-success .glass-card-header-icon {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

html[data-theme="dark"] .app-shell-body .glass-card-accent-warning .glass-card-header-icon {
  background: rgba(29, 78, 216, 0.28);
  color: #93c5fd;
}

html[data-theme="dark"] .app-shell-body .glass-card-accent-info .glass-card-header-icon {
  background: rgba(6, 182, 212, 0.22);
  color: #7dd3fc;
}

html[data-theme="dark"] .app-shell-body .glass-card-accent-danger .glass-card-header-icon {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}

html[data-theme="dark"] .app-shell-body .glass-card-accent-secondary .glass-card-header-icon {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

html[data-theme="dark"] .app-shell-body .glass-card-edital .glass-card-action-btn,
html[data-theme="dark"] .app-shell-body .glass-card-edital .glass-card-action-btn:disabled,
html[data-theme="dark"] .app-shell-body .glass-card-edital .glass-card-action-btn:disabled:hover,
html[data-theme="dark"] .app-shell-body .glass-card-edital a.glass-card-action-btn:link,
html[data-theme="dark"] .app-shell-body .glass-card-edital a.glass-card-action-btn:visited {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #e2e8f0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] .app-shell-body .glass-card-edital .glass-card-prazo-open {
  color: #94a3b8;
}

html[data-theme="dark"] .text-warning,
html[data-theme="dark"] .link-warning,
html[data-bs-theme="dark"] .text-warning,
html[data-bs-theme="dark"] .link-warning {
  color: #93c5fd !important;
}

html[data-theme="dark"] .text-warning-emphasis,
html[data-bs-theme="dark"] .text-warning-emphasis {
  color: #bfdbfe !important;
}

html[data-theme="dark"] .bg-warning-subtle,
html[data-bs-theme="dark"] .bg-warning-subtle {
  background-color: rgba(37, 99, 235, 0.28) !important;
}

html[data-theme="dark"] .border-warning-subtle,
html[data-bs-theme="dark"] .border-warning-subtle {
  border-color: rgba(147, 197, 253, 0.42) !important;
}

html[data-theme="dark"] .border-warning,
html[data-bs-theme="dark"] .border-warning {
  border-color: rgba(147, 197, 253, 0.55) !important;
}

html[data-theme="dark"] .bg-warning,
html[data-theme="dark"] .text-bg-warning,
html[data-theme="dark"] .bg-warning.text-dark,
html[data-bs-theme="dark"] .bg-warning,
html[data-bs-theme="dark"] .text-bg-warning,
html[data-bs-theme="dark"] .bg-warning.text-dark {
  background-color: #1d4ed8 !important;
  color: #fff !important;
}

html[data-theme="dark"] .alert-warning,
html[data-bs-theme="dark"] .alert-warning {
  --bs-alert-color: #dbeafe;
  --bs-alert-bg: rgba(37, 99, 235, 0.22);
  --bs-alert-border-color: rgba(147, 197, 253, 0.38);
  --bs-alert-link-color: #dbeafe;
  color: #dbeafe;
  background-color: rgba(37, 99, 235, 0.22);
  border-color: rgba(147, 197, 253, 0.38);
}

html[data-theme="dark"] .badge.bg-warning-subtle,
html[data-theme="dark"] .badge.text-warning,
html[data-bs-theme="dark"] .badge.bg-warning-subtle,
html[data-bs-theme="dark"] .badge.text-warning {
  color: #dbeafe !important;
  background-color: rgba(37, 99, 235, 0.32) !important;
  border-color: rgba(147, 197, 253, 0.42) !important;
}

html[data-theme="dark"] .btn-outline-warning,
html[data-bs-theme="dark"] .btn-outline-warning {
  --bs-btn-color: #93c5fd;
  --bs-btn-border-color: #93c5fd;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1d4ed8;
  --bs-btn-hover-border-color: #1d4ed8;
  --bs-btn-disabled-color: #93c5fd;
  --bs-btn-disabled-border-color: #93c5fd;
  color: #93c5fd;
}

html[data-theme="dark"] .app-shell-body .glass-card-accent-warning .glass-card-header-label {
  color: #93c5fd;
}

html[data-theme="dark"] .app-shell-body .glass-card-accent-warning .glass-card-header-icon {
  background: rgba(29, 78, 216, 0.28);
  color: #93c5fd;
}

html[data-theme="dark"] .app-shell-body .glass-card-edital .glass-card-prazo-urgent {
  color: #93c5fd;
  opacity: 0.95;
}

html[data-theme="dark"] .app-confirm-icon {
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
}

html[data-theme="dark"] .app-confirm-icon.app-confirm-icon-primary {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

html[data-theme="dark"] .app-confirm-icon.app-confirm-icon-warning {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
}

html[data-theme="dark"] .simbolo-atencao-alerta,
html[data-theme="dark"] .text-warning-amber,
html[data-bs-theme="dark"] .simbolo-atencao-alerta,
html[data-bs-theme="dark"] .text-warning-amber {
  color: #fbbf24 !important;
}


html[data-theme="dark"] .app-confirm-modal .modal-title {
  color: #f8fafc;
}

html[data-theme="dark"] .app-confirm-modal .modal-body {
  color: #cbd5e1;
}

html[data-theme="dark"] .app-shell-body .projeto-avaliacao-resumo {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .app-shell-body .projeto-avaliacao-modal-kicker,
html[data-theme="dark"] .app-shell-body .projeto-avaliacao-score-label,
html[data-theme="dark"] .app-shell-body .projeto-avaliacao-score-hint {
  color: #94a3b8;
}

html[data-theme="dark"] .app-shell-body .projeto-avaliacao-score-card {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .app-shell-body .projeto-avaliacao-score-card.is-media {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(96, 165, 250, 0.35);
}

html[data-theme="dark"] .app-shell-body .projeto-avaliacao-score-value,
html[data-theme="dark"] .app-shell-body .projeto-avaliacao-section-title,
html[data-theme="dark"] .app-shell-body .projeto-avaliacao-item-head .fw-semibold {
  color: #f8fafc;
}

html[data-theme="dark"] .app-shell-body .projeto-avaliacao-modal-desc {
  color: #cbd5e1;
}

html[data-theme="dark"] .app-shell-body .projeto-avaliacao-table thead th {
  background: rgba(15, 23, 42, 0.85);
  color: #94a3b8;
}

html[data-theme="dark"] .app-shell-body .projeto-avaliacao-table-wrap,
html[data-theme="dark"] .app-shell-body .projeto-avaliacao-item {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .app-shell-body .projeto-avaliacao-item-head {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .app-shell-body .projeto-avaliacao-item-notas > span {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
}

html[data-theme="dark"] .app-shell-body .projeto-avaliacao-item-notas > span.is-media {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(96, 165, 250, 0.4);
  color: #93c5fd;
}

html[data-theme="dark"] .app-shell-body .projeto-avaliacao-item-col-title.is-pos {
  color: #86efac;
}

html[data-theme="dark"] .app-shell-body .projeto-avaliacao-item-col-title.is-neg {
  color: #fbbf24;
}

html[data-theme="dark"] .app-shell-body .llm-progress-card {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(29, 78, 216, 0.42)),
    rgba(10, 10, 20, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .app-shell-body .llm-progress-bar {
  background: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .app-shell-body .llm-progress-title,
html[data-theme="dark"] .app-shell-body .llm-progress-step.is-current {
  color: #fff;
}

html[data-theme="dark"] .app-shell-body .llm-progress-subtitle,
html[data-theme="dark"] .app-shell-body .llm-progress-step {
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .app-shell-body .llm-progress-step.is-done {
  color: #86efac;
}

html[data-theme="dark"] .app-shell-body .llm-progress-banner {
  background: rgba(29, 78, 216, 0.18);
  border-color: rgba(147, 197, 253, 0.28);
}

html[data-theme="dark"] .app-shell-body .projeto-escolha-card {
  background: rgba(22, 24, 36, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .app-shell-body .projeto-escolha-card.is-preliminar {
  background: rgba(29, 78, 216, 0.16);
  border-color: rgba(147, 197, 253, 0.32);
}

html[data-theme="dark"] .app-shell-body .projeto-proc-badge {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-pendencia {
  background: #dc2626;
  border-color: #f87171;
  color: #fff;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-foot {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(147, 197, 253, 0.35);
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-vermais {
  color: #bfdbfe;
}

html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-vermais:hover,
html[data-theme="dark"] .app-shell-body .projeto-versao-pecas-list .projeto-versao-peca-vermais:focus-visible {
  color: #eff6ff;
}

html[data-theme="dark"] .projeto-peca-llm-sub {
  color: #94a3b8;
}

html[data-theme="dark"] .projeto-peca-llm-resumo {
  color: #cbd5e1;
}

html[data-theme="dark"] .projeto-peca-llm-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .projeto-peca-llm-item-head {
  color: #94a3b8;
}

html[data-theme="dark"] .projeto-peca-llm-item-body {
  color: #e2e8f0;
}

html[data-theme="dark"] .app-shell-body .projeto-docs-dash,
html[data-theme="dark"] .app-shell-body .projeto-docs-extra-tile {
  background: rgba(22, 24, 36, 0.48);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

html[data-theme="dark"] .app-shell-body .projeto-docs-dash-header {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .app-shell-body .projeto-docs-dash-row {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .app-shell-body .projeto-confirm-analise-banner {
  background: rgba(59, 130, 246, 0.1);
}

html[data-theme="dark"] .app-shell-body .projeto-docs-kpi {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cc-text-muted);
}

html[data-theme="dark"] .app-shell-body .projeto-docs-kpi.is-ok { background: rgba(34, 197, 94, 0.15); color: #86efac; }
html[data-theme="dark"] .app-shell-body .projeto-docs-kpi.is-ok strong { color: #86efac; }
html[data-theme="dark"] .app-shell-body .projeto-docs-kpi.is-proximo { background: rgba(251, 191, 36, 0.15); color: #fde68a; }
html[data-theme="dark"] .app-shell-body .projeto-docs-kpi.is-proximo strong { color: #fde68a; }
html[data-theme="dark"] .app-shell-body .projeto-docs-kpi.is-vencido { background: rgba(248, 113, 113, 0.15); color: #fecaca; }
html[data-theme="dark"] .app-shell-body .projeto-docs-kpi.is-vencido strong { color: #fecaca; }
html[data-theme="dark"] .app-shell-body .projeto-docs-kpi.is-faltante { background: rgba(255, 255, 255, 0.1); color: #cbd5e1; }
html[data-theme="dark"] .app-shell-body .projeto-docs-kpi.is-faltante strong { color: #f8fafc; }

html[data-theme="dark"] .app-shell-body .projeto-docs-kpi strong,
html[data-theme="dark"] .app-shell-body .projeto-docs-dash-nome {
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body .projeto-docs-empty,
html[data-theme="dark"] .app-shell-body .projeto-docs-dash-meta {
  color: var(--cc-text-muted);
}

html[data-theme="dark"] .app-shell-body .projeto-manifesto-scroll {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .app-shell-body .projeto-manifesto-scroll .list-group-item {
  background: transparent;
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .app-shell-body #modalDocsCadastrados .modal-title,
html[data-theme="dark"] .app-shell-body #modalDocsGeraisLlm .modal-title {
  color: #f8fafc;
}

html[data-theme="dark"] .app-shell-body #modalDocsCadastrados .modal-header .text-muted,
html[data-theme="dark"] .app-shell-body #modalDocsGeraisLlm .modal-header .text-muted,
html[data-theme="dark"] .app-shell-body #modalDocsCadastrados .modal-body > .text-muted,
html[data-theme="dark"] .app-shell-body #modalDocsGeraisLlm .modal-body > .text-muted {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .app-shell-body .projeto-docs-modal-section {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

html[data-theme="dark"] .app-shell-body .projeto-docs-modal-section-head {
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

html[data-theme="dark"] .app-shell-body .projeto-docs-modal-section-head h6,
html[data-theme="dark"] .app-shell-body .projeto-docs-modal-row .fw-semibold {
  color: #f8fafc;
}

html[data-theme="dark"] .app-shell-body .projeto-docs-modal-section-head .text-muted,
html[data-theme="dark"] .app-shell-body .projeto-docs-modal-row .text-muted {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .app-shell-body .projeto-docs-modal-scroll {
  background: transparent;
}

html[data-theme="dark"] .app-shell-body .projeto-docs-modal-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

html[data-theme="dark"] .app-shell-body .projeto-docs-modal-row.is-pendente {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.16), transparent);
}

html[data-theme="dark"] .app-shell-body .projeto-docs-modal-section .projeto-docs-empty {
  color: #94a3b8;
}

html[data-theme="dark"] .app-shell-body .projeto-docs-dash-chip.is-ok,
html[data-theme="dark"] .app-shell-body .projeto-docs-dash-chip.is-atendido {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

html[data-theme="dark"] .app-shell-body .projeto-docs-dash-chip.is-proximo {
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
}

html[data-theme="dark"] .app-shell-body .projeto-docs-dash-chip.is-vencido {
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
}

html[data-theme="dark"] .app-shell-body .projeto-docs-dash-chip.is-faltante {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

html[data-theme="dark"] .app-shell-body .quick-action-tile {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

html[data-theme="dark"] .app-shell-body .quick-action-tile:hover,
html[data-theme="dark"] .app-shell-body .quick-action-tile:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(147, 197, 253, 0.4);
  color: #fff;
}

html[data-theme="dark"] .app-shell-body .quick-action-tile-icon {
  background: rgba(147, 197, 253, 0.16);
  color: #93c5fd;
}

html[data-theme="dark"] .app-shell-body .quick-action-tile--primary,
html[data-theme="dark"] .app-shell-body .quick-action-tile--primary:hover,
html[data-theme="dark"] .app-shell-body .quick-action-tile--primary:focus-visible {
  color: #fff;
}

html[data-theme="dark"] .app-shell-body .quick-action-tile--success,
html[data-theme="dark"] .app-shell-body .quick-action-tile--success:hover,
html[data-theme="dark"] .app-shell-body .quick-action-tile--success:focus-visible {
  color: #fff;
}

html[data-theme="dark"] .app-shell-body .mapa-osc-row {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .app-shell-body .mapa-osc-name {
  color: #f8fafc;
}

html[data-theme="dark"] .app-shell-body .mapa-osc-name:hover,
html[data-theme="dark"] .app-shell-body .mapa-osc-name:focus-visible {
  color: #5eead4;
}

html[data-theme="dark"] .app-shell-body .mapa-osc-meta,
html[data-theme="dark"] .app-shell-body .mapa-osc-empty,
html[data-theme="dark"] .app-shell-body .mapa-osc-search > i {
  color: var(--cc-text-muted);
}

html[data-theme="dark"] .app-shell-body .mapa-osc-badge.is-on {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

html[data-theme="dark"] .app-shell-body .mapa-osc-badge.is-off {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

html[data-theme="dark"] .app-shell-body .mapa-osc-action {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

html[data-theme="dark"] .app-shell-body .mapa-osc-action:hover,
html[data-theme="dark"] .app-shell-body .mapa-osc-action:focus-visible {
  color: #99f6e4;
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(45, 212, 191, 0.1);
}

html[data-theme="dark"] .app-shell-body .dashboard-map-legend span {
  color: var(--cc-chip-text);
  background: var(--cc-chip-bg);
  border-color: var(--cc-border);
}

html[data-theme="dark"] .app-shell-body .dashboard-map-toolbar label {
  color: var(--cc-text-muted);
}

html[data-theme="dark"] .app-shell-body .alert-info,
html[data-theme="dark"] .app-shell-body .alert-success,
html[data-theme="dark"] .app-shell-body .alert-secondary {
  background: var(--cc-surface-muted);
  border-color: var(--cc-border);
  color: var(--cc-text);
}

html[data-theme="dark"] .app-shell-body .accordion-item,
html[data-theme="dark"] .app-shell-body .accordion-button {
  background-color: var(--cc-surface);
  color: var(--cc-text);
  border-color: var(--cc-border);
}

html[data-theme="dark"] .app-shell-body .accordion-button:not(.collapsed) {
  background-color: var(--cc-surface-muted);
  color: var(--cc-heading);
  box-shadow: none;
}

html[data-theme="dark"] .app-shell-body .accordion-button::after {
  filter: invert(1) grayscale(1);
}

html[data-theme="dark"] .app-shell-body .cc-upload-modal-sub,
html[data-theme="dark"] .app-shell-body .cc-file-pick-name.is-empty {
  color: var(--cc-text-muted);
}

html[data-theme="dark"] .app-shell-body .cc-file-pick-ui,
html[data-theme="dark"] .app-shell-body .cc-upload-lote-row {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .app-shell-body .cc-file-pick-btn {
  background: #3b82f6;
}

/* Selo roxo (ex.: "Artefato"): Bootstrap não tem bg-purple-subtle; definido aqui nos dois temas. */
.bg-purple-subtle {
  background-color: #ede9fe !important;
  border-color: #ddd6fe !important;
  color: #5b21b6 !important;
}

html[data-theme="dark"] .bg-purple-subtle,
html[data-bs-theme="dark"] .bg-purple-subtle {
  background-color: rgba(139, 92, 246, 0.2) !important;
  border-color: rgba(196, 181, 253, 0.35) !important;
  color: #ddd6fe !important;
}

/* Subtítulo da marca ("ENTERPRISE PORTAL"): mesmo tom no header e no menu lateral, nos dois temas. */
.app-shell-body .dashboard-brand-subtitle {
  color: #059669 !important;
}

html[data-theme="dark"] .app-shell-body .dashboard-header-brand-subtitle,
html[data-theme="dark"] .app-shell-body .dashboard-brand-subtitle {
  color: #6ee7b7 !important;
}
