.theme-switcher{height:38px;display:flex;align-items:center;padding:3px;border:1px solid var(--line);border-radius:11px;background:#f4f4fa;gap:2px}
.theme-switcher button{height:30px;border:0;border-radius:8px;background:transparent;color:#7f8299;padding:0 10px;font-size:.62rem;font-weight:800;display:flex;align-items:center;gap:5px;white-space:nowrap}
.theme-switcher button[aria-pressed="true"]{background:#fff;color:#5144c6;box-shadow:0 3px 10px rgba(39,35,91,.11)}
.theme-switcher i{font-style:normal;font-size:.8rem}
.role-municipal .school-only-nav{display:none}
.dashboard-chart-empty{position:absolute;inset:38px 16px 36px;display:grid;place-items:center;text-align:center;color:#9699af;font-size:.66rem;line-height:1.55;z-index:3}
#visao-geral .metric-icon{font-size:1rem;font-weight:800}
#visao-geral .dashboard-quick-grid i{font-size:1rem;background:linear-gradient(145deg,#ede9ff,#e2edff);box-shadow:inset 0 0 0 1px rgba(98,84,217,.07)}
#visao-geral .dashboard-quick-grid button:nth-child(2) i{color:#147ad6;background:linear-gradient(145deg,#e7f3ff,#dceaff)}
#visao-geral .dashboard-quick-grid button:nth-child(3) i{color:#15966f;background:linear-gradient(145deg,#e4f9f0,#d9f3e9)}
#visao-geral .dashboard-quick-grid button:nth-child(4) i{color:#dd7b22;background:linear-gradient(145deg,#fff3df,#ffead0)}
#visao-geral .dashboard-quick-grid button:nth-child(5) i{color:#b9498d;background:linear-gradient(145deg,#ffeaf6,#f5e3ff)}
#visao-geral .dashboard-quick-grid button:nth-child(6) i{color:#6254d9;background:linear-gradient(145deg,#eeeaff,#e5e2ff)}
.dashboard-agenda-empty{display:grid;place-items:center;min-height:210px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:18px;background:color-mix(in srgb,var(--panel) 88%,transparent);padding:24px}
.dashboard-agenda-empty strong{color:var(--ink);font-size:15px}.dashboard-agenda-empty p{margin:5px 0 0;font-size:13px}
#visao-geral .points text{fill:var(--primary);font:800 15px Manrope,system-ui,sans-serif;paint-order:stroke;stroke:var(--panel);stroke-width:4px}
.dashboard-single-point{position:absolute;left:50%;top:42%;z-index:4;transform:translate(-50%,-50%);text-align:center;padding:12px 22px;border:1px solid color-mix(in srgb,var(--primary) 22%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--panel) 92%,transparent);box-shadow:0 12px 30px rgba(52,40,132,.09);min-width:210px}
.dashboard-single-point span,.dashboard-single-point small{display:block;color:var(--muted);font-size:10px}.dashboard-single-point strong{display:block;color:var(--primary);font-size:28px;letter-spacing:-.05em;margin:3px 0}

html[data-theme="premium"]{color-scheme:dark;--ink:#edf4ff;--muted:#91a4c0;--primary:#8b6cff;--primary-dark:#6947ef;--blue:#31a4ff;--teal:#1ed7a0;--orange:#ffb43b;--line:#21446d;--surface:#0b2a50;--canvas:#061a34;--shadow:0 12px 34px rgba(0,5,24,.28)}
html[data-theme="premium"] body{background:radial-gradient(circle at 78% 5%,rgba(56,143,255,.13),transparent 30%),#061a34;color:var(--ink)}
html[data-theme="premium"] .app-shell{background:#061a34}
html[data-theme="premium"] .sidebar{background:linear-gradient(180deg,#06152d 0%,#062649 100%);border-color:#173c63;box-shadow:12px 0 35px rgba(0,5,22,.28)}
html[data-theme="premium"] .sidebar .brand>img{filter:brightness(0) invert(1)}
html[data-theme="premium"] .tenant-sidebar-identity,html[data-theme="premium"] .tenant-sidebar-identity small,html[data-theme="premium"] .tenant-sidebar-identity span{color:#a8bbd7!important}
html[data-theme="premium"] .nav-label{color:#6e89aa}
html[data-theme="premium"] .nav-item{color:#b7c7dc}
html[data-theme="premium"] .nav-item:hover{background:#0e3965;color:#fff}
html[data-theme="premium"] .nav-item.active{background:linear-gradient(100deg,#7048f2,#326de9);color:#fff;box-shadow:0 8px 18px rgba(63,80,226,.28)}
html[data-theme="premium"] .nav-item b{background:#173f70;color:#c9d9ff}
html[data-theme="premium"] .sidebar-card{background:linear-gradient(145deg,#0d3159,#102b50);border-color:#24517e}
html[data-theme="premium"] .sidebar-card p,html[data-theme="premium"] .profile small{color:#91a6c1}
html[data-theme="premium"] .profile{border-color:#21446d}
html[data-theme="premium"] .profile .avatar{background:#6947ef;color:#fff}
html[data-theme="premium"] .topbar{background:rgba(5,25,51,.94);border-color:#21446d;backdrop-filter:blur(16px)}
html[data-theme="premium"] .search{background:#0b2a50;border-color:#28517d}
html[data-theme="premium"] .search input{color:#edf4ff}
html[data-theme="premium"] .search input::placeholder{color:#7791af}
html[data-theme="premium"] .search kbd{background:#102f55;border-color:#2a537d;color:#91a7c2}
html[data-theme="premium"] .access-context,html[data-theme="premium"] .year-button,html[data-theme="premium"] .icon-button{background:#0b2a50!important;border-color:#28517d!important;color:#a9bdd5!important}
html[data-theme="premium"] .access-context strong,html[data-theme="premium"] .year-button strong{color:#edf4ff!important}
html[data-theme="premium"] .theme-switcher{background:#082342;border-color:#28517d}
html[data-theme="premium"] .theme-switcher button{color:#8fa5c0}
html[data-theme="premium"] .theme-switcher button[aria-pressed="true"]{background:linear-gradient(135deg,#6f48f2,#315ee6);color:#fff;box-shadow:0 5px 14px rgba(62,62,220,.35)}
html[data-theme="premium"] .content{color:#eaf3ff}
html[data-theme="premium"] .page-heading h1,html[data-theme="premium"] #visao-geral .page-heading h1,html[data-theme="premium"] .panel-heading h2{color:#f5f8ff}
html[data-theme="premium"] .page-heading h1 span,html[data-theme="premium"] .page-heading p,html[data-theme="premium"] .panel-heading p{color:#8fa5c0}
html[data-theme="premium"] .button.secondary,html[data-theme="premium"] select,html[data-theme="premium"] input,html[data-theme="premium"] textarea{background:#0a294d!important;border-color:#28517d!important;color:#dbe8f7!important}
html[data-theme="premium"] option{background:#0a294d;color:#dbe8f7}
html[data-theme="premium"] #visao-geral .dashboard-command-bar{background:linear-gradient(110deg,#102c5b,#3a2b9d 58%,#075b89);border:1px solid #29548a;box-shadow:0 18px 38px rgba(0,7,30,.32)}
html[data-theme="premium"] #visao-geral .metric-card,html[data-theme="premium"] #visao-geral .impact-metric-card,html[data-theme="premium"] #visao-geral .panel{background:linear-gradient(145deg,#0c315a,#092443);border-color:#255079;box-shadow:0 13px 30px rgba(0,7,28,.25);color:#edf4ff}
html[data-theme="premium"] #visao-geral .metric-card:hover,html[data-theme="premium"] #visao-geral .impact-metric-card:hover{border-color:#5576bc;box-shadow:0 18px 36px rgba(0,10,35,.4)}
html[data-theme="premium"] #visao-geral .metric-card>p,html[data-theme="premium"] #visao-geral .impact-metric-card>p,html[data-theme="premium"] #visao-geral .metric-card>small,html[data-theme="premium"] #visao-geral .impact-metric-card>small{color:#93a8c2}
html[data-theme="premium"] #visao-geral .trend.stable{background:#133c67;color:#94b8e4}
html[data-theme="premium"] #visao-geral .attention-card{background:linear-gradient(90deg,#372613,#172844);border-color:#795b27}
html[data-theme="premium"] #visao-geral .attention-card p{color:#c4af90}
html[data-theme="premium"] #visao-geral .attention-card button{color:#ffc25c}
html[data-theme="premium"] #visao-geral .grid-line{border-color:#234b73}
html[data-theme="premium"] #visao-geral .line{stroke:#8b6cff}
html[data-theme="premium"] #visao-geral .points circle{fill:#0b2a50;stroke:#9c83ff}
html[data-theme="premium"] #visao-geral .chart-summary,html[data-theme="premium"] #visao-geral .panel-link,html[data-theme="premium"] #visao-geral .event{border-color:#21466e}
html[data-theme="premium"] #visao-geral .chart-summary strong,html[data-theme="premium"] #visao-geral .legend strong{color:#eef5ff}
html[data-theme="premium"] #visao-geral .donut:before{background:#0b2a50}
html[data-theme="premium"] #visao-geral .panel-link{background:transparent;color:#b3c5da}
html[data-theme="premium"] #visao-geral .table-head{background:#0a2545;color:#7790ad}
html[data-theme="premium"] #visao-geral .table-row{border-color:#21466e}
html[data-theme="premium"] #visao-geral .school-name small,html[data-theme="premium"] #visao-geral .event small{color:#8fa5c0}
html[data-theme="premium"] #visao-geral .dashboard-quick-grid button{background:linear-gradient(145deg,#0f365f,#0a294d);border-color:#28537e;color:#edf4ff}
html[data-theme="premium"] #visao-geral .dashboard-quick-grid button:hover{background:#123d69;border-color:#4d76a4}
html[data-theme="premium"] #visao-geral .dashboard-quick-grid small{color:#91a7c1}

html[data-theme="premium"] .app-shell :where(.panel,.metric-card,.school-metrics article,.student-overview article,.professional-overview article,.academic-summary article,.attendance-summary article,.health-summary article,.transport-summary article,.asset-summary article,.finance-summary article,.purchase-summary article,.census-summary article,.stock-summary article,.user-admin-summary article){background:#0b2a50;border-color:#244d77;color:#edf4ff;box-shadow:var(--shadow)}
html[data-theme="premium"] .app-shell :where(.network-row,.student-row,.professional-row,.class-record,.attendance-school-row,.transport-row,.asset-row,.finance-school-row,.purchase-row,.census-row,.stock-row,.system-user-row){background:#0a294d!important;border-color:#21466e!important;color:#c8d7e8!important}
html[data-theme="premium"] .app-shell :where(.network-row,.student-row,.professional-row,.class-record,.attendance-school-row,.transport-row,.asset-row,.finance-school-row,.purchase-row,.census-row,.stock-row,.system-user-row):hover{background:#10365f!important}
html[data-theme="premium"] .app-shell :where(.network-head,.student-head,.professional-table-head,.classes-table-head,.attendance-table-head,.transport-table-head,.asset-table-head,.finance-table-head,.purchase-table-head,.census-table-head,.stock-table-head,.system-user-table-head,.directory-toolbar,.student-toolbar,.stock-toolbar,.system-user-toolbar){background:#081f3b!important;border-color:#21466e!important;color:#7f98b5!important}
html[data-theme="premium"] .app-shell :where(.drawer-stats,.stock-balance>div,.system-security article,.census-log){background:#0f345d;color:#eaf3ff}
html[data-theme="premium"] .app-shell :where(.school-drawer,.student-drawer,.family-access-modal,.indicator-modal,.report-modal){background:#0a294d!important;color:#edf4ff!important;border-color:#28517d!important}
html[data-theme="premium"] .app-shell :where(h1,h2,h3,strong,dd){color:inherit}
html[data-theme="premium"] .app-shell :where(small,p,dt){--premium-muted:#91a4c0}
html[data-theme="premium"] footer{color:#738ca8}

@media(max-width:980px){.theme-switcher button span{display:none}.theme-switcher button{width:32px;justify-content:center;padding:0}}
@media(max-width:690px){.theme-switcher{position:fixed;right:16px;bottom:18px;z-index:60;box-shadow:0 10px 28px rgba(0,0,0,.2)}.theme-switcher button span{display:inline}.theme-switcher button{width:auto;padding:0 10px}}
