body[data-theme="dark"] {
    color-scheme: dark;
}

body[data-theme="dark"] .app-shell,
body[data-theme="dark"] .app-shell-register,
body[data-theme="dark"] .app-shell-sm {
    color: var(--ba-ink);
}

body[data-theme="dark"] .app-topbar,
body[data-theme="dark"] .app-pagehead,
body[data-theme="dark"] .app-panel,
body[data-theme="dark"] .admin-nav-shell,
body[data-theme="dark"] .admin-workspace-panel,
body[data-theme="dark"] .admin-context-panel,
body[data-theme="dark"] .admin-section,
body[data-theme="dark"] .admin-subpanel,
body[data-theme="dark"] .metric-card,
body[data-theme="dark"] .admin-process-card,
body[data-theme="dark"] .process-card,
body[data-theme="dark"] .timeline-item,
body[data-theme="dark"] .risk-item,
body[data-theme="dark"] .student-card,
body[data-theme="dark"] .whatsapp-card,
body[data-theme="dark"] .call-summary-card,
body[data-theme="dark"] .modal-card {
    background: #121d2f;
    border-color: #33465f;
    color: #eaf2ff;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .22);
}

body[data-theme="dark"] .app-pagehead,
body[data-theme="dark"] .admin-context-panel,
body[data-theme="dark"] .admin-nav-shell {
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, .1), transparent 18rem),
        #121d2f;
}

body[data-theme="dark"] .admin-nav-copy p,
body[data-theme="dark"] .admin-context-text,
body[data-theme="dark"] .app-subtitle,
body[data-theme="dark"] .metric-card label,
body[data-theme="dark"] .admin-process-card span,
body[data-theme="dark"] .process-card span,
body[data-theme="dark"] .student-card small,
body[data-theme="dark"] .whatsapp-phone,
body[data-theme="dark"] .empty,
body[data-theme="dark"] .empty-state,
body[data-theme="dark"] .text-muted {
    color: #a9b9cf !important;
}

body[data-theme="dark"] .admin-nav-kicker,
body[data-theme="dark"] .admin-context-kicker,
body[data-theme="dark"] .module-label,
body[data-theme="dark"] .app-brand-kicker,
body[data-theme="dark"] .app-context-switcher span {
    color: #5eead4;
}

body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6,
body[data-theme="dark"] .app-brand-name,
body[data-theme="dark"] .app-title,
body[data-theme="dark"] .admin-command-card strong,
body[data-theme="dark"] .admin-process-card strong,
body[data-theme="dark"] .timeline-item strong,
body[data-theme="dark"] .metric-card strong,
body[data-theme="dark"] .student-card strong,
body[data-theme="dark"] .table strong {
    color: #f8fbff;
}

body[data-theme="dark"] .metric-card.is-info strong {
    color: #67e8f9;
}

body[data-theme="dark"] .admin-command-card,
body[data-theme="dark"] .app-module-link,
body[data-theme="dark"] .app-dropdown-trigger,
body[data-theme="dark"] .app-account-trigger,
body[data-theme="dark"] .app-dropdown-menu,
body[data-theme="dark"] .app-dropdown-item,
body[data-theme="dark"] .mini-btn {
    background: #0f1a2b;
    border-color: #33465f;
    color: #eaf2ff;
}

body[data-theme="dark"] .admin-command-card small {
    color: #a9b9cf;
}

body[data-theme="dark"] .admin-command-card:hover,
body[data-theme="dark"] .admin-command-card:focus-visible,
body[data-theme="dark"] .admin-command-card.is-active,
body[data-theme="dark"] .app-module-link:hover,
body[data-theme="dark"] .app-module-link.is-active,
body[data-theme="dark"] .app-dropdown-trigger:hover,
body[data-theme="dark"] .app-account-trigger:hover,
body[data-theme="dark"] .app-dropdown[open] > .app-dropdown-trigger,
body[data-theme="dark"] .app-dropdown[open] > .app-account-trigger,
body[data-theme="dark"] .app-dropdown-item:hover,
body[data-theme="dark"] .app-dropdown-item:focus-visible,
body[data-theme="dark"] .app-dropdown-item.is-active,
body[data-theme="dark"] .mini-btn:hover,
body[data-theme="dark"] .mini-btn:focus-visible {
    background: #12322f;
    border-color: rgba(94, 234, 212, .65);
    color: #d7fffb;
    box-shadow: inset 0 0 0 1px rgba(94, 234, 212, .14);
}

body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select,
body[data-theme="dark"] .app-context-switcher select {
    background-color: #0d1726;
    border-color: #3a506b;
    color: #edf6ff;
}

body[data-theme="dark"] .app-dropdown-trigger span,
body[data-theme="dark"] .app-account-trigger small,
body[data-theme="dark"] .app-account-menu-head span,
body[data-theme="dark"] .app-account-menu-head small,
body[data-theme="dark"] .app-dropdown-trigger::after,
body[data-theme="dark"] .app-account-trigger::after {
    color: #a9b9cf;
}

body[data-theme="dark"] .form-control:disabled,
body[data-theme="dark"] .form-control[readonly],
body[data-theme="dark"] .form-select:disabled,
body[data-theme="dark"] .empty-state {
    background-color: #16233a;
    border-color: #3a506b;
    color: #b9c7da !important;
    opacity: 1;
}

body[data-theme="dark"] .form-control::placeholder {
    color: #8fa1bb;
}

body[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .form-select:focus {
    background-color: #0d1726;
    border-color: #5eead4;
    color: #fff;
    box-shadow: 0 0 0 .2rem rgba(94, 234, 212, .18);
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) {
    --ba-bg: #0e141d;
    --ba-surface: #151d2a;
    --ba-ink: #edf3fb;
    --ba-muted: #aab6c8;
    --ba-line: #2d3a4d;
    --ba-primary: #7db7ff;
    --ba-primary-dark: #b8d8ff;
    --ba-radius: .35rem;
    --ba-shadow: 0 .85rem 2rem rgba(0, 0, 0, .32);
    background: #0e141d;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal).app-body,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal).app-body-admin {
    background: #0e141d;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-shell,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-shell-register,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-shell-sm {
    width: min(100%, 1440px);
    padding: 0 1.25rem 2rem;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-chrome {
    gap: 0;
    margin-inline: 0;
    margin-bottom: 1.55rem;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-topbar {
    min-height: 3.25rem;
    border: 0;
    border-radius: 0;
    background: #111821;
    box-shadow: 0 .15rem .9rem rgba(0, 0, 0, .32);
    backdrop-filter: none;
    padding: .45rem 1rem;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-brand-kicker {
    color: #9ccaff;
    font-size: .78rem;
    letter-spacing: .02em;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-brand-name {
    color: #c5ceda;
    font-size: .82rem;
    font-weight: 600;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-dropdown-trigger,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-account-trigger {
    min-height: 2.25rem;
    border-color: transparent;
    background: transparent;
    color: #d3dae5;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-dropdown-trigger:hover,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-account-trigger:hover,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-dropdown[open] > .app-dropdown-trigger,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-dropdown[open] > .app-account-trigger {
    border-color: #34445a;
    background: #182231;
    color: #dcecff;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-pagehead {
    min-height: 8.4rem;
    display: flex;
    align-items: center;
    margin: 0;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 92% 20%, transparent 0 2.2rem, rgba(255, 255, 255, .08) 2.25rem 2.35rem, transparent 2.4rem),
        radial-gradient(circle at 84% 42%, transparent 0 4.2rem, rgba(255, 255, 255, .06) 4.25rem 4.35rem, transparent 4.4rem),
        linear-gradient(120deg, #1e2632, #090d12 72%);
    box-shadow: none;
    padding: 1.4rem 1rem;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-pagehead::before {
    content: "Busca Ativa - Sistema de acompanhamento escolar";
    position: absolute;
    left: 1rem;
    top: .9rem;
    color: rgba(236, 244, 255, .68);
    font-size: .98rem;
    font-weight: 600;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-pagehead-copy {
    padding-top: 1.25rem;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .module-label {
    display: none;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-title {
    color: #f8fbff;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 400;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-subtitle {
    color: rgba(236, 244, 255, .72);
    font-size: .92rem;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-panel,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-nav-shell,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-context-panel,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-workspace-panel,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .metric-card {
    border: 1px solid #2d3a4d;
    border-radius: .45rem;
    background: #151d2a;
    box-shadow: 0 .85rem 2rem rgba(0, 0, 0, .28);
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-pagehead.app-panel {
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 92% 20%, transparent 0 2.2rem, rgba(255, 255, 255, .08) 2.25rem 2.35rem, transparent 2.4rem),
        radial-gradient(circle at 84% 42%, transparent 0 4.2rem, rgba(255, 255, 255, .06) 4.25rem 4.35rem, transparent 4.4rem),
        linear-gradient(120deg, #1e2632, #090d12 72%);
    box-shadow: none;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-pagehead.app-panel .app-title {
    color: #f8fbff;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-pagehead.app-panel .app-subtitle {
    color: rgba(236, 244, 255, .72);
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .metric-card {
    min-height: 6.2rem;
    justify-content: center;
    gap: .65rem;
    padding: 1rem 1.1rem;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .metric-card::before {
    inset: 0 auto 0 0;
    width: .35rem;
    height: 100%;
    background: #6f7f93;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .metric-card label {
    color: #aab6c8 !important;
    font-size: .72rem;
    letter-spacing: .02em;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .metric-card strong {
    color: #edf3fb;
    font-size: 1.75rem;
    font-weight: 600;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .metric-card.is-primary::before {
    background: #7db7ff;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .metric-card.is-danger::before {
    background: #e15a82;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .metric-card.is-warning::before {
    background: #d8a72b;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .metric-card.is-success::before {
    background: #4fc18a;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-nav-shell,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-context-panel {
    grid-template-columns: minmax(16rem, .55fr) minmax(0, 1fr);
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-nav-copy,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-context-copy {
    display: grid;
    align-content: center;
    padding: 1.1rem;
    border-right: 1px solid #2d3a4d;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-command-card {
    min-height: 7.2rem;
    border-width: 0 0 0 1px;
    border-color: #2d3a4d;
    border-radius: 0;
    background: #151d2a;
    box-shadow: none;
    padding: 1rem;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-command-card:hover,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-command-card:focus-visible,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-command-card.is-active {
    background: #1b2636;
    border-color: #40536d;
    color: #dcecff;
    transform: none;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-workspace-panel {
    padding: 0;
    overflow: hidden;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-section.is-active {
    padding: 1.15rem;
}

body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-subpanel,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-process-card,
body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .timeline-item {
    border-color: #2d3a4d;
    border-radius: .35rem;
    background: #151d2a;
    box-shadow: none;
}

body[data-theme="dark"].login-portal {
    --ba-bg: #0e141d;
    --ba-surface: #151d2a;
    --ba-ink: #edf3fb;
    --ba-muted: #aab6c8;
    --ba-line: #2d3a4d;
    --ba-primary: #7db7ff;
    --ba-primary-dark: #b8d8ff;
    background:
        linear-gradient(180deg, #111821 0 3.25rem, transparent 3.25rem),
        #0e141d;
}

body[data-theme="dark"].login-portal .login-shell-wide {
    width: min(100%, 1180px);
}

body[data-theme="dark"].login-portal .login-hero,
body[data-theme="dark"].login-portal .login-card {
    border: 1px solid #2d3a4d;
    border-radius: .45rem;
    background: #151d2a;
    box-shadow: 0 .85rem 2rem rgba(0, 0, 0, .28);
}

body[data-theme="dark"].login-portal .login-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 18%, transparent 0 2.2rem, rgba(255, 255, 255, .08) 2.25rem 2.35rem, transparent 2.4rem),
        radial-gradient(circle at 82% 48%, transparent 0 4.2rem, rgba(255, 255, 255, .06) 4.25rem 4.35rem, transparent 4.4rem),
        linear-gradient(120deg, #1e2632, #090d12 72%);
}

body[data-theme="dark"].login-portal .login-hero .app-title,
body[data-theme="dark"].login-portal .login-hero .app-subtitle {
    color: #f8fbff;
}

body[data-theme="dark"].login-portal .login-hero-card {
    border-radius: .35rem;
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .07);
    color: #f8fbff;
}

body[data-theme="dark"].login-portal .login-hero-card span {
    color: rgba(236, 244, 255, .72);
}

@media (max-width: 1199.98px) {
    body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-nav-shell,
    body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-context-panel {
        grid-template-columns: 1fr;
    }

    body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-nav-copy,
    body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-context-copy {
        border-right: 0;
        border-bottom: 1px solid #2d3a4d;
    }
}

@media (max-width: 767.98px) {
    body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-shell,
    body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-shell-register,
    body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-shell-sm {
        padding-inline: .75rem;
    }

    body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-chrome {
        margin-inline: -.75rem;
    }

    body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-topbar {
        grid-template-columns: 1fr;
        gap: .45rem;
        padding: .7rem .75rem;
    }

    body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-topbar-center,
    body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-topbar-actions {
        justify-content: flex-start;
    }

    body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-pagehead {
        min-height: 7.8rem;
        padding-inline: .75rem;
    }

    body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .app-pagehead::before {
        left: .75rem;
        max-width: calc(100% - 1.5rem);
        font-size: .82rem;
    }

    body[data-theme="dark"].portal-skin:not(.pedagogico-portal) .admin-command-card {
        min-height: 4.5rem;
        border-width: 1px 0 0;
    }
}

body[data-theme="dark"].pedagogico-portal {
    --ba-bg: #0e141d;
    --ba-surface: #151d2a;
    --ba-ink: #edf3fb;
    --ba-muted: #aab6c8;
    --ba-line: #2d3a4d;
    --ba-primary: #7db7ff;
    --ba-primary-dark: #b8d8ff;
    --ba-radius: .35rem;
    --ba-shadow: 0 .85rem 2rem rgba(0, 0, 0, .32);
    background: #0e141d;
}

body[data-theme="dark"].pedagogico-portal.app-body {
    background: #0e141d;
}

body[data-theme="dark"].pedagogico-portal .app-shell {
    width: min(100%, 1440px);
    padding: 0 1.25rem 2rem;
}

body[data-theme="dark"].pedagogico-portal .app-chrome {
    gap: 0;
    margin-inline: 0;
    margin-bottom: 1.55rem;
}

body[data-theme="dark"].pedagogico-portal .app-topbar {
    min-height: 3.25rem;
    border: 0;
    border-radius: 0;
    background: #111821;
    box-shadow: 0 .15rem .9rem rgba(0, 0, 0, .32);
    backdrop-filter: none;
    padding: .45rem 1rem;
}

body[data-theme="dark"].pedagogico-portal .app-brand-kicker {
    color: #9ccaff;
    font-size: .78rem;
    letter-spacing: .02em;
}

body[data-theme="dark"].pedagogico-portal .app-brand-name {
    color: #c5ceda;
    font-size: .82rem;
    font-weight: 600;
}

body[data-theme="dark"].pedagogico-portal .app-dropdown-trigger,
body[data-theme="dark"].pedagogico-portal .app-account-trigger {
    min-height: 2.25rem;
    border-color: transparent;
    background: transparent;
    color: #d3dae5;
}

body[data-theme="dark"].pedagogico-portal .app-dropdown-trigger:hover,
body[data-theme="dark"].pedagogico-portal .app-account-trigger:hover,
body[data-theme="dark"].pedagogico-portal .app-dropdown[open] > .app-dropdown-trigger,
body[data-theme="dark"].pedagogico-portal .app-dropdown[open] > .app-account-trigger {
    border-color: #34445a;
    background: #182231;
    color: #dcecff;
}

body[data-theme="dark"].pedagogico-portal .app-pagehead {
    min-height: 8.4rem;
    display: flex;
    align-items: center;
    margin: 0;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 92% 20%, transparent 0 2.2rem, rgba(255, 255, 255, .08) 2.25rem 2.35rem, transparent 2.4rem),
        radial-gradient(circle at 84% 42%, transparent 0 4.2rem, rgba(255, 255, 255, .06) 4.25rem 4.35rem, transparent 4.4rem),
        linear-gradient(120deg, #1e2632, #090d12 72%);
    box-shadow: none;
    padding: 1.4rem 1rem;
}

body[data-theme="dark"].pedagogico-portal .app-pagehead::before {
    content: "Busca Ativa - Sistema de acompanhamento escolar";
    position: absolute;
    left: 1rem;
    top: .9rem;
    color: rgba(236, 244, 255, .68);
    font-size: .98rem;
    font-weight: 600;
}

body[data-theme="dark"].pedagogico-portal .app-pagehead-copy {
    padding-top: 1.25rem;
}

body[data-theme="dark"].pedagogico-portal .module-label {
    display: none;
}

body[data-theme="dark"].pedagogico-portal .app-title {
    color: #f8fbff;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 400;
}

body[data-theme="dark"].pedagogico-portal .app-subtitle {
    color: rgba(236, 244, 255, .72);
    font-size: .92rem;
}

body[data-theme="dark"].pedagogico-portal .pedagogico-top-filters,
body[data-theme="dark"].pedagogico-portal .admin-nav-shell,
body[data-theme="dark"].pedagogico-portal .admin-context-panel,
body[data-theme="dark"].pedagogico-portal .admin-workspace-panel,
body[data-theme="dark"].pedagogico-portal .metric-card {
    border: 1px solid #2d3a4d;
    border-radius: .45rem;
    background: #151d2a;
    box-shadow: 0 .85rem 2rem rgba(0, 0, 0, .28);
}

body[data-theme="dark"].pedagogico-portal .pedagogico-top-filters {
    position: relative;
    top: auto;
    margin-top: -1.1rem;
    padding: 1rem 1.1rem;
}

body[data-theme="dark"].pedagogico-portal .pedagogico-fixed-filters-head strong,
body[data-theme="dark"].pedagogico-portal .admin-nav-copy h2,
body[data-theme="dark"].pedagogico-portal .section-header h2 {
    color: #edf3fb;
    font-weight: 500;
}

body[data-theme="dark"].pedagogico-portal .pedagogico-fixed-filters-head span,
body[data-theme="dark"].pedagogico-portal .pedagogico-active-filter-copy,
body[data-theme="dark"].pedagogico-portal .admin-nav-copy p,
body[data-theme="dark"].pedagogico-portal .admin-context-text,
body[data-theme="dark"].pedagogico-portal .admin-command-card small {
    color: #aab6c8 !important;
}

body[data-theme="dark"].pedagogico-portal .analysis-quick-filters .mini-btn {
    border-radius: .25rem;
    border-color: #34445a;
    background: #101723;
    color: #c9d5e6;
}

body[data-theme="dark"].pedagogico-portal .analysis-quick-filters .mini-btn.is-active {
    border-color: #7db7ff;
    background: #172b43;
    color: #dcecff;
}

body[data-theme="dark"].pedagogico-portal .metric-card {
    min-height: 6.2rem;
    justify-content: center;
    gap: .65rem;
    padding: 1rem 1.1rem;
}

body[data-theme="dark"].pedagogico-portal .metric-card::before {
    inset: 0 auto 0 0;
    width: .35rem;
    height: 100%;
    background: #6f7f93;
}

body[data-theme="dark"].pedagogico-portal .metric-card label {
    color: #aab6c8 !important;
    font-size: .72rem;
    letter-spacing: .02em;
}

body[data-theme="dark"].pedagogico-portal .metric-card strong {
    color: #edf3fb;
    font-size: 1.75rem;
    font-weight: 600;
}

body[data-theme="dark"].pedagogico-portal .metric-card.is-primary::before,
body[data-theme="dark"].pedagogico-portal .metric-card.is-info::before {
    background: #7db7ff;
}

body[data-theme="dark"].pedagogico-portal .metric-card.is-danger::before {
    background: #e15a82;
}

body[data-theme="dark"].pedagogico-portal .metric-card.is-warning::before {
    background: #d8a72b;
}

body[data-theme="dark"].pedagogico-portal .metric-card.is-success::before {
    background: #4fc18a;
}

body[data-theme="dark"].pedagogico-portal .admin-nav-shell {
    grid-template-columns: minmax(16rem, .55fr) minmax(0, 1fr);
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

body[data-theme="dark"].pedagogico-portal .admin-nav-copy {
    display: grid;
    align-content: center;
    padding: 1.1rem;
    border-right: 1px solid #2d3a4d;
}

body[data-theme="dark"].pedagogico-portal .admin-command-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

body[data-theme="dark"].pedagogico-portal .admin-command-card {
    min-height: 7.2rem;
    border-width: 0 0 0 1px;
    border-color: #2d3a4d;
    border-radius: 0;
    background: #151d2a;
    box-shadow: none;
    padding: 1rem;
}

body[data-theme="dark"].pedagogico-portal .admin-command-card:hover,
body[data-theme="dark"].pedagogico-portal .admin-command-card:focus-visible,
body[data-theme="dark"].pedagogico-portal .admin-command-card.is-active {
    background: #1b2636;
    border-color: #40536d;
    color: #dcecff;
    transform: none;
}

body[data-theme="dark"].pedagogico-portal .admin-context-panel {
    grid-template-columns: minmax(16rem, .55fr) minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
}

body[data-theme="dark"].pedagogico-portal .admin-context-copy,
body[data-theme="dark"].pedagogico-portal .admin-context-hints {
    padding: 1.1rem;
}

body[data-theme="dark"].pedagogico-portal .admin-context-copy {
    border-right: 1px solid #2d3a4d;
}

body[data-theme="dark"].pedagogico-portal .timeline-item {
    border-color: #2d3a4d;
    background: #151d2a;
    box-shadow: none;
}

body[data-theme="dark"].pedagogico-portal .admin-workspace-panel {
    padding: 0;
    overflow: hidden;
}

body[data-theme="dark"].pedagogico-portal .admin-section.is-active {
    padding: 1.15rem;
}

body[data-theme="dark"].pedagogico-portal .admin-subpanel,
body[data-theme="dark"].pedagogico-portal .admin-process-card {
    border-color: #2d3a4d;
    border-radius: .35rem;
    background: #151d2a;
    box-shadow: none;
}

@media (max-width: 1199.98px) {
    body[data-theme="dark"].pedagogico-portal .admin-nav-shell,
    body[data-theme="dark"].pedagogico-portal .admin-context-panel {
        grid-template-columns: 1fr;
    }

    body[data-theme="dark"].pedagogico-portal .admin-nav-copy,
    body[data-theme="dark"].pedagogico-portal .admin-context-copy {
        border-right: 0;
        border-bottom: 1px solid #2d3a4d;
    }

    body[data-theme="dark"].pedagogico-portal .admin-command-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    body[data-theme="dark"].pedagogico-portal .app-shell {
        padding-inline: .75rem;
    }

    body[data-theme="dark"].pedagogico-portal .app-chrome {
        margin-inline: -.75rem;
    }

    body[data-theme="dark"].pedagogico-portal .app-topbar {
        grid-template-columns: 1fr;
        gap: .45rem;
        padding: .7rem .75rem;
    }

    body[data-theme="dark"].pedagogico-portal .app-topbar-center,
    body[data-theme="dark"].pedagogico-portal .app-topbar-actions {
        justify-content: flex-start;
    }

    body[data-theme="dark"].pedagogico-portal .app-pagehead {
        min-height: 7.8rem;
        padding-inline: .75rem;
    }

    body[data-theme="dark"].pedagogico-portal .app-pagehead::before {
        left: .75rem;
        max-width: calc(100% - 1.5rem);
        font-size: .82rem;
    }

    body[data-theme="dark"].pedagogico-portal .admin-command-grid {
        grid-template-columns: 1fr;
    }

    body[data-theme="dark"].pedagogico-portal .admin-command-card {
        min-height: 4.5rem;
        border-width: 1px 0 0;
    }
}

body[data-theme="dark"] .table-responsive,
body[data-theme="dark"] .alunos-manual-table-scroll,
body[data-theme="dark"] .acompanhamento-table-scroll,
body[data-theme="dark"] .auditoria-table-scroll {
    background: #0f1a2b;
    border-color: #33465f;
    box-shadow: none;
}

body[data-theme="dark"] .table {
    --bs-table-bg: #0f1a2b;
    --bs-table-color: #eaf2ff;
    --bs-table-border-color: #33465f;
    --bs-table-hover-bg: #14243a;
    --bs-table-hover-color: #ffffff;
}

body[data-theme="dark"] .table > :not(caption) > * > * {
    background-color: var(--bs-table-bg);
    color: var(--bs-table-color);
    border-bottom-color: var(--bs-table-border-color);
}

body[data-theme="dark"] .table thead th,
body[data-theme="dark"] .alunos-manual-table-scroll thead th,
body[data-theme="dark"] .acompanhamento-table-scroll thead th,
body[data-theme="dark"] .auditoria-table-scroll thead th {
    background: #17243a;
    color: #d8e5f7;
    border-color: #33465f;
    box-shadow: inset 0 -1px 0 #33465f;
}

body[data-theme="dark"] .table-hover > tbody > tr:hover > * {
    background-color: #14243a;
    color: #ffffff;
}

body[data-theme="dark"] .badge.text-bg-light {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

body[data-theme="dark"] .btn-outline-primary,
body[data-theme="dark"] .btn-outline-secondary {
    background: #0d1726;
    border-color: #3a506b;
    color: #eaf2ff;
}

body[data-theme="dark"] .btn-outline-primary:hover,
body[data-theme="dark"] .btn-outline-secondary:hover {
    background: #12322f;
    border-color: #5eead4;
    color: #ffffff;
}

body[data-theme="dark"] .status-pill.ativo,
body[data-theme="dark"] .status-pill.resolvido {
    background: rgba(34, 197, 94, .24);
    color: #d1fae5;
}

body[data-theme="dark"] .status-pill.pendente {
    background: rgba(244, 63, 94, .24);
    color: #ffe4e6;
}

body[data-theme="dark"] .status-pill.tratado {
    background: rgba(245, 158, 11, .25);
    color: #fef3c7;
}

body[data-theme="dark"] .status-pill.atestado {
    background: rgba(59, 130, 246, .24);
    color: #dbeafe;
}

body[data-theme="dark"] .status-pill.sem_frequencia {
    background: rgba(129, 140, 248, .22);
    color: #e0e7ff;
}

body[data-theme="dark"] .modal {
    background: rgba(2, 6, 23, .72);
}

body[data-theme="dark"] .modal-card .border-bottom {
    background:
        linear-gradient(180deg, rgba(24, 34, 53, .98), rgba(17, 24, 39, .96)),
        #111827;
    border-color: #33465f !important;
    color: #f8fbff;
}

body[data-theme="dark"] .modal-card .modal-heading h1,
body[data-theme="dark"] .modal-card .modal-heading h2,
body[data-theme="dark"] .modal-card .modal-heading h3,
body[data-theme="dark"] .modal-card .form-label {
    color: #f8fbff;
}

body[data-theme="dark"] .modal-card .modal-subtitle {
    color: #a9b9cf !important;
}

body[data-theme="dark"] .modal-card .form-control::placeholder {
    color: #93a4ba;
}

body[data-theme="dark"] .audit-pre,
body[data-theme="dark"] .whatsapp-message {
    background: #0d1726;
    border-color: #33465f;
    color: #eaf2ff;
}

body[data-theme="dark"] .bottom-action-bar {
    background: rgba(15, 26, 43, .96);
    border-color: #33465f;
}

body[data-theme="dark"].registrar-portal .app-shell-register {
    padding-bottom: 9rem !important;
}

@media (max-width: 700px) {
    body[data-theme="dark"].registrar-portal .app-shell-register {
        padding-bottom: 11rem !important;
    }
}

@media (min-width: 992px) {
    body[data-theme="dark"] .app-module-nav,
    body[data-theme="dark"] .app-topbar-account {
        min-width: 0;
    }
}

body[data-theme="dark"] .mode-switch {
    background: #0d1726;
    border: 1px solid #33465f;
    box-shadow: none;
}

body[data-theme="dark"] .register-tab,
body[data-theme="dark"] .filter-chip,
body[data-theme="dark"] .occurrence-menu-list {
    background: #0d1726;
    border-color: #33465f;
    color: #eaf2ff;
}

body[data-theme="dark"] .register-tab.is-active,
body[data-theme="dark"] .filter-chip.is-active,
body[data-theme="dark"] .occurrence-menu-item:hover,
body[data-theme="dark"] .occurrence-menu-item:focus-visible {
    background: #12322f;
    border-color: #5eead4;
    color: #d7fffb;
}

body[data-theme="dark"] .register-quickstart span,
body[data-theme="dark"] .absence-filters .form-label {
    color: #a9b9cf;
}

body[data-theme="dark"] .occurrence-menu-item {
    color: #eaf2ff;
}

body[data-theme="dark"] .occurrence-menu-item.is-danger {
    color: #fecdd3;
}

body[data-theme="dark"] .status-pill.atrasado {
    background: rgba(56, 189, 248, .22);
    color: #bae6fd;
}

body[data-theme="dark"] .pedagogico-menu-list,
body[data-theme="dark"] .pedagogico-menu-item {
    background: #0d1726;
    border-color: #33465f;
    color: #eaf2ff;
}

body[data-theme="dark"] .pedagogico-menu-item:hover,
body[data-theme="dark"] .pedagogico-menu-item:focus-visible {
    background: #12322f;
    color: #d7fffb;
}

body[data-theme="dark"] .pedagogico-menu-item.is-danger {
    color: #fecdd3;
}

body[data-theme="dark"] .atestado-student-card,
body[data-theme="dark"] .atestado-inner-tab,
body[data-theme="dark"] .manual-section-heading,
body[data-theme="dark"] .alunos-manual-form-column > .row.g-3 {
    background: #0f1a2b;
    border-color: #33465f;
    color: #eaf2ff;
}

body[data-theme="dark"] .atestado-inner-tab strong {
    background: rgba(94, 234, 212, .16);
    color: #d7fffb;
}

body[data-theme="dark"] .atestado-inner-tab:hover,
body[data-theme="dark"] .atestado-inner-tab:focus-visible,
body[data-theme="dark"] .atestado-inner-tab.is-active {
    background: #12322f;
    border-color: #5eead4;
    color: #d7fffb;
}

body[data-theme="dark"] .manual-atestado-heading {
    background: #12322f;
    border-color: rgba(94, 234, 212, .55);
}

body[data-theme="dark"] .atestado-student-card:hover,
body[data-theme="dark"] .atestado-student-card:focus-visible,
body[data-theme="dark"] .atestado-student-card.is-selected {
    background: #12322f;
    border-color: #5eead4;
}

body[data-theme="dark"] .atestado-student-card strong,
body[data-theme="dark"] .manual-section-heading strong {
    color: #f8fbff;
}

body[data-theme="dark"] .atestado-student-card b,
body[data-theme="dark"] .atestado-student-card small,
body[data-theme="dark"] .atestado-card-note,
body[data-theme="dark"] .manual-section-heading span {
    color: #a9b9cf;
}

body[data-theme="dark"] .atestado-card-note {
    border-color: #33465f;
}

@media (max-width: 767.98px) {
    body[data-theme="dark"] #tableAusencias .pedagogico-row {
        background: #121d2f;
        border-color: #33465f;
    }

    body[data-theme="dark"] #tableAusencias td {
        border-color: #33465f;
    }
}

@media (max-width: 767.98px) {
    body[data-theme="dark"] .absence-day-table tr {
        background: #121d2f;
        border-color: #33465f;
    }

    body[data-theme="dark"] .absence-day-table td {
        border-color: #33465f;
    }
}

body[data-theme="dark"] .mode-switch .btn {
    border-color: transparent;
}

body[data-theme="dark"] .mode-switch .btn-primary,
body[data-theme="dark"] .mode-switch .btn.active {
    background: #5eead4;
    border-color: #5eead4;
    color: #08342f;
}

body[data-theme="dark"] .students-list {
    scrollbar-color: #64748b #0d1726;
}

body[data-theme="dark"] .student-card.is-action {
    background: #101d30;
}

body[data-theme="dark"] .student-card.is-selected {
    background: rgba(244, 63, 94, .12);
    border-color: rgba(244, 63, 94, .55);
}

body[data-theme="dark"] .student-card.is-registered-absence {
    background: rgba(244, 63, 94, .14);
    border-color: rgba(244, 63, 94, .72);
    border-style: dashed;
}

body[data-theme="dark"] .student-state {
    background: rgba(34, 197, 94, .18);
    color: #bbf7d0;
}

body[data-theme="dark"] .student-card.is-selected .student-state {
    background: rgba(244, 63, 94, .2);
    color: #ffe4e6;
}

body[data-theme="dark"] .student-card.is-registered-absence .student-state {
    background: rgba(244, 63, 94, .22);
    color: #ffe4e6;
}

body[data-theme="dark"] .motivo-btn {
    background: #0d1726;
    border-color: #3a506b;
    color: #eaf2ff;
}

body[data-theme="dark"] .motivo-btn:hover,
body[data-theme="dark"] .motivo-btn:focus-visible {
    background: #12322f;
    border-color: #5eead4;
    color: #ffffff;
}

body[data-theme="dark"] .motivo-btn.active {
    background: #5eead4;
    border-color: #5eead4;
    color: #08342f;
}

body[data-theme="dark"] .absence-day-table .btn,
body[data-theme="dark"] .students-list .btn {
    background: #0d1726;
    border-color: #3a506b;
    color: #f8fbff;
}

body[data-theme="dark"] .absence-day-table .btn:hover,
body[data-theme="dark"] .students-list .btn:hover {
    background: #12322f;
    border-color: #5eead4;
}

body[data-theme="dark"] .collapsible-panel-toggle {
    color: #f8fbff;
}

body[data-theme="dark"] .collapsible-panel-toggle:hover,
body[data-theme="dark"] .collapsible-panel-toggle:focus-visible {
    color: #5eead4;
}

body[data-theme="dark"] .collapsible-arrow {
    border-color: #33465f;
    color: #a9b9cf;
}

body[data-theme="dark"] .collapsible-panel.is-open .collapsible-arrow {
    border-color: rgba(94, 234, 212, .42);
    color: #5eead4;
}

body[data-theme="dark"] .absence-class-card {
    background: #121d2f;
    border-color: #33465f;
}

body[data-theme="dark"] .absence-class-toggle {
    color: #f8fbff;
}

body[data-theme="dark"] .absence-class-toggle:hover,
body[data-theme="dark"] .absence-class-toggle:focus-visible {
    background: rgba(94, 234, 212, .08);
}

body[data-theme="dark"] .absence-class-title small,
body[data-theme="dark"] .absence-student-card small {
    color: #a9b9cf;
}

body[data-theme="dark"] .absence-class-detail,
body[data-theme="dark"] .absence-student-card {
    border-color: #33465f;
}
