/* ==========================================================================
   Padrão visual do Sistema Acadêmico (mesmo layout do produto Fortis).
   Carregado por último: arruma tipografia, menu, topo, cartões, tabelas,
   botões, formulários e indicadores de todas as telas de uma vez.
   As cores da escola continuam vindo das variáveis --brand e --accent.
   ========================================================================== */
:root{
  --fx-bg:#f4f5f7;--fx-surface:#fff;--fx-line:#e4e7ec;--fx-line-2:#eef0f3;
  --fx-ink:#101828;--fx-text:#344054;--fx-muted:#667085;--fx-faint:#98a2b3;
  --fx-radius:10px;--fx-radius-sm:7px;--fx-shadow:0 1px 2px rgba(16,24,40,.05);
  --fx-green:#12b76a;--fx-blue:var(--accent,#2356f6);--fx-amber:#f79009;--fx-red:#f04438;--fx-violet:#7a5af8;
  --f-line:#e4e7ec;--f-ink:#101828;--f-muted:#667085;
}
html body.fx{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;background:var(--fx-bg)!important;color:var(--fx-text);font-size:14px;-webkit-font-smoothing:antialiased;letter-spacing:0}
html body.fx button,html body.fx input,html body.fx select,html body.fx textarea{font-family:inherit!important}
.ic{width:18px;height:18px;flex:0 0 auto;display:inline-block;vertical-align:middle}

/* ---------- menu lateral ---------- */
html body.fx .sidebar{width:252px!important;padding:0!important;background:var(--sidebar,#0a1020)!important;box-shadow:none!important;border-right:1px solid rgba(255,255,255,.04)!important;display:flex!important;flex-direction:column!important}
html body.fx .app-main{margin-left:252px!important;width:calc(100% - 252px)!important}
html body.fx .brand-area{display:flex!important;align-items:center!important;gap:11px!important;padding:18px 18px 14px!important;margin:0!important;border:0!important;flex-direction:row!important;text-align:left!important}
html body.fx .brand-mark{width:36px!important;height:36px!important;border-radius:9px!important;background:var(--accent)!important;color:var(--on-accent,#fff)!important;font:700 13px/36px Manrope,Inter,sans-serif!important;text-align:center!important;margin:0!important;box-shadow:none!important;flex:0 0 36px}
html body.fx .brand-copy{text-align:left!important;min-width:0}
html body.fx .brand-copy strong{display:block;color:#fff!important;font:700 14.5px/1.2 Manrope,Inter,sans-serif!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.fx .brand-copy span{display:block;color:rgba(255,255,255,.55)!important;font-size:11.5px!important;margin-top:2px;letter-spacing:0!important;text-transform:none!important}
html body.fx .brand-logo{max-height:40px!important;max-width:180px!important;margin:0!important}
html body.fx .nav-search{display:flex;align-items:center;gap:8px;margin:0 14px 8px;padding:0 10px;height:36px;border-radius:8px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);color:rgba(255,255,255,.55);cursor:text}
html body.fx .nav-search .ic{width:15px;height:15px}
html body.fx .nav-search input{all:unset;flex:1;min-width:0;color:#fff;font-size:13px!important;height:34px}
html body.fx .nav-search input::placeholder{color:rgba(255,255,255,.45)}
html body.fx .nav-search:focus-within{border-color:color-mix(in srgb,var(--accent) 70%,transparent);background:rgba(255,255,255,.1)}
html body.fx .side-nav{flex:1!important;overflow-y:auto!important;padding:4px 10px 16px!important;margin:0!important;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent;display:block!important}
html body.fx .nav-section{display:block!important;margin:16px 10px 6px!important;padding:0!important;color:rgba(255,255,255,.42)!important;font-size:10.5px!important;font-weight:600!important;letter-spacing:.07em!important;text-transform:uppercase!important}
html body.fx .nav-item{display:flex!important;align-items:center!important;gap:11px!important;min-height:36px!important;height:auto!important;margin:1px 0!important;padding:7px 10px!important;border-radius:7px!important;color:rgba(255,255,255,.74)!important;font-size:13.5px!important;font-weight:500!important;background:transparent!important;box-shadow:none!important;border:0!important;position:relative;transform:none!important;text-decoration:none!important}
html body.fx .nav-item:hover{background:rgba(255,255,255,.06)!important;color:#fff!important}
html body.fx .nav-item.active{background:rgba(255,255,255,.1)!important;color:#fff!important;font-weight:600!important}
html body.fx .nav-item.active::before{content:"";position:absolute;left:-10px;top:7px;bottom:7px;width:3px;border-radius:0 3px 3px 0;background:var(--accent)}
html body.fx .nav-icon{width:20px!important;height:20px!important;min-width:20px!important;display:grid!important;place-items:center!important;background:transparent!important;border:0!important;box-shadow:none!important;color:inherit!important;font-size:0!important;border-radius:0!important;margin:0!important;padding:0!important}
html body.fx .nav-icon .ic{width:18px;height:18px;opacity:.9}
html body.fx .nav-item.active .nav-icon{color:color-mix(in srgb,var(--accent) 55%,#fff)!important}
html body.fx .nav-item .status-badge{margin-left:6px;padding:1px 7px!important;font-size:10.5px!important;background:var(--fx-red)!important;color:#fff!important}
html body.fx .sidebar-footer{display:block!important;padding:12px 20px 16px!important;border-top:1px solid rgba(255,255,255,.06)!important;margin:0!important;background:transparent!important}
html body.fx .sidebar-footer span{color:rgba(255,255,255,.35);font-size:11px}

/* ---------- topo ---------- */
html body.fx .topbar{height:60px!important;min-height:60px!important;padding:0 28px!important;background:#fff!important;border-bottom:1px solid var(--fx-line)!important;box-shadow:none!important;display:flex!important;align-items:center!important;gap:14px!important;position:sticky!important;top:0!important;z-index:20!important;backdrop-filter:none!important}
html body.fx .menu-toggle{display:none;width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:8px!important;background:#fff!important;border:1px solid var(--fx-line)!important;color:var(--fx-ink)!important;box-shadow:none!important;align-items:center;justify-content:center}
html body.fx .topbar-brand{flex:1;min-width:0}
html body.fx .topbar-title strong{display:block;color:var(--fx-ink)!important;font-size:15px!important;font-weight:600!important;line-height:1.25}
html body.fx .topbar-title span{display:block;color:var(--fx-muted)!important;font-size:12px!important;margin-top:1px}
html body.fx .topbar-actions{display:flex!important;align-items:center!important;gap:6px!important}
html body.fx .top-icon{position:relative;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:var(--fx-muted);text-decoration:none}
html body.fx .top-icon:hover{background:var(--fx-bg);color:var(--fx-ink)}
html body.fx .top-badge{position:absolute;top:3px;right:2px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--fx-red);color:#fff;font-size:10px;font-weight:700;line-height:17px;text-align:center;box-shadow:0 0 0 2px #fff}
html body.fx .top-user{display:flex;align-items:center;gap:10px;padding-left:12px;margin-left:6px;border-left:1px solid var(--fx-line)}
html body.fx .top-user .avatar{width:32px;height:32px;border-radius:50%;background:var(--brand,#0a1020);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:600}
html body.fx .top-user-copy{line-height:1.2;max-width:220px}
html body.fx .top-user-copy strong{display:block;color:var(--fx-ink);font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.fx .top-user-copy span{display:block;color:var(--fx-muted);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- área de conteúdo e cabeçalho da página ---------- */
html body.fx .content-area{max-width:1440px!important;padding:24px 28px 48px!important}
html body.fx .page-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:16px!important;flex-wrap:wrap!important;margin:0 0 20px!important;padding:0 0 18px!important;border-bottom:1px solid var(--fx-line)!important;background:transparent!important;box-shadow:none!important}
html body.fx .card .page-head{border-bottom:0!important;padding-bottom:0!important}
html body.fx .page-head h1{margin:0!important;color:var(--fx-ink)!important;font:600 22px/1.25 Inter,sans-serif!important;letter-spacing:-.015em!important}
html body.fx .page-head p{margin:5px 0 0!important;color:var(--fx-muted)!important;font-size:13.5px!important;line-height:1.5!important;max-width:760px}
html body.fx .page-kicker,html body.fx .permissions-eyebrow{display:block!important;margin:0 0 4px!important;color:var(--fx-muted)!important;font-size:12px!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important}
html body.fx h1,html body.fx h2,html body.fx h3{font-family:Inter,sans-serif!important;letter-spacing:-.01em!important}
html body.fx .card h2,html body.fx section h2{font-size:15.5px!important;font-weight:600!important;color:var(--fx-ink)!important}

/* ---------- cartões ---------- */
html body.fx .card,html body.fx .management-list-card,html body.fx .management-create-card,html body.fx .teacher-create-card,html body.fx .teachers-list-card,html body.fx .permission-group-card,html body.fx .permissions-summary-card,html body.fx .toolbar{background:#fff!important;border:1px solid var(--fx-line)!important;border-radius:var(--fx-radius)!important;box-shadow:var(--fx-shadow)!important;color:var(--fx-text)!important}
html body.fx .card{padding:20px!important}
html body.fx .card::before,html body.fx .card::after,html body.fx .stats article::before,html body.fx .stats article::after{display:none!important}
html body.fx .management-create-card{padding:0!important;position:static!important}
html body.fx .management-create-card .section-title-row{background:#fff!important;border-bottom:1px solid var(--fx-line)!important;padding:16px 20px!important}
html body.fx .management-create-card label,html body.fx .management-create-card .section-title-row h2{color:var(--fx-ink)!important}
html body.fx .management-create-card .section-title-row p{color:var(--fx-muted)!important}
html body.fx .management-create-card input,html body.fx .management-create-card select{background:#fff!important;color:var(--fx-ink)!important}
html body.fx .section-icon{width:34px!important;height:34px!important;flex:0 0 34px!important;border-radius:8px!important;background:var(--accent-soft,#e8eefe)!important;color:var(--accent-text,var(--accent))!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important}
html body.fx .management-card,html body.fx .user-management-card{border:1px solid var(--fx-line)!important;border-radius:var(--fx-radius)!important;box-shadow:none!important;transform:none!important}
html body.fx .management-card:hover{border-color:#cfd4dc!important;transform:none!important;box-shadow:var(--fx-shadow)!important}
html body.fx .management-avatar{background:var(--fx-bg)!important;color:var(--fx-ink)!important;border:1px solid var(--fx-line)!important;border-radius:50%!important}
html body.fx .management-info-grid>div{background:var(--fx-bg)!important;border:0!important;border-radius:8px!important}
html body.fx .management-card-actions .secondary{background:#fff!important;color:var(--fx-ink)!important;border:1px solid var(--fx-line)!important}
html body.fx .empty-state{border:1px dashed #d0d5dd!important;background:#fcfcfd!important;border-radius:var(--fx-radius)!important;color:var(--fx-muted)!important;padding:28px!important;box-shadow:none!important}

/* ---------- indicadores (inspirado em cartões com faixa colorida) ---------- */
html body.fx .stats,html body.fx .attendance-kpis,html body.fx .tl-stats,html body.fx .pix-kpis,html body.fx .finance-kpis,html body.fx .annual-kpis,html body.fx .workload-stats{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:14px!important;margin:0 0 20px!important}
html body.fx .stats article,html body.fx .attendance-kpis>div,html body.fx .tl-stats>div,html body.fx .pix-kpis>*,html body.fx .finance-kpis>*,html body.fx .annual-kpis>*,html body.fx .workload-stats>*{position:relative!important;background:#fff!important;border:1px solid var(--fx-line)!important;border-radius:var(--fx-radius)!important;box-shadow:var(--fx-shadow)!important;padding:16px 16px 16px 20px!important;color:var(--fx-text)!important;overflow:hidden!important;min-height:0!important;transform:none!important}
html body.fx :is(.attendance-kpis,.tl-stats,.pix-kpis,.finance-kpis,.annual-kpis,.workload-stats)>* span,html body.fx .stats article span{display:block!important;color:var(--fx-muted)!important;font-size:12px!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important;margin:0 0 6px!important}
html body.fx :is(.attendance-kpis,.pix-kpis,.finance-kpis,.annual-kpis,.workload-stats)>* strong,html body.fx .stats article strong,html body.fx .tl-big{display:block!important;color:var(--fx-ink)!important;font:600 22px/1.2 Inter,sans-serif!important;letter-spacing:-.02em!important}
html body.fx :is(.attendance-kpis,.pix-kpis,.finance-kpis,.annual-kpis,.workload-stats)>* small{display:block!important;color:var(--fx-muted)!important;font-size:12px!important;margin-top:6px!important;text-transform:none!important;letter-spacing:0!important;font-weight:400!important}
/* painel inicial: ícone num quadrado colorido */
html body.fx .stats article{display:grid!important;grid-template-columns:44px 1fr!important;grid-template-rows:auto auto!important;column-gap:14px!important;align-items:center!important;padding:16px!important}
html body.fx .stats article::before{display:none!important}
html body.fx .stats .stat-icon{grid-row:1/3!important;width:44px!important;height:44px!important;border-radius:10px!important;display:grid!important;place-items:center!important;color:#fff!important;background:var(--fx-blue)!important;font-size:0!important;margin:0!important;box-shadow:none!important}
html body.fx .stats .stat-icon .ic{width:21px;height:21px}
html body.fx .stats article:nth-child(2) .stat-icon{background:var(--fx-green)!important}
html body.fx .stats article:nth-child(3) .stat-icon{background:var(--fx-amber)!important}
html body.fx .stats article:nth-child(4) .stat-icon{background:var(--fx-violet)!important}
html body.fx .stats article strong{grid-column:2!important;order:0;margin:0!important}
html body.fx .stats article span{grid-column:2!important;grid-row:1!important;margin:0!important}

/* ---------- tabelas ---------- */
html body.fx .table-wrap,html body.fx .report-table-wrap{border:1px solid var(--fx-line)!important;border-radius:var(--fx-radius-sm)!important;overflow:auto!important;background:#fff!important;box-shadow:none!important}
html body.fx table{border-collapse:separate!important;border-spacing:0!important;width:100%;font-size:13.5px!important;background:#fff!important;box-shadow:none!important}
html body.fx table th{background:#f9fafb!important;color:var(--fx-muted)!important;font-size:12px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;padding:10px 14px!important;border-bottom:1px solid var(--fx-line)!important;border-top:0!important;text-align:left;white-space:nowrap;box-shadow:none!important}
html body.fx table td{padding:11px 14px!important;border-bottom:1px solid var(--fx-line-2)!important;color:var(--fx-text)!important;vertical-align:middle!important;background:transparent!important;box-shadow:none!important}
html body.fx table tbody tr:last-child td{border-bottom:0!important}
html body.fx table tbody tr:hover td{background:#fafbfc!important}
html body.fx table td strong{color:var(--fx-ink)!important;font-weight:600!important}
html body.fx table a{color:var(--accent-text,var(--accent))!important;text-decoration:none!important;font-weight:500}
html body.fx table a.button{color:inherit!important}
html body.fx .card>table{border:1px solid var(--fx-line)!important;border-radius:var(--fx-radius-sm)!important}

/* ---------- botões ---------- */
html body.fx button,html body.fx .button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;height:36px!important;min-height:36px!important;padding:0 14px!important;border-radius:8px!important;border:1px solid var(--accent)!important;background:var(--accent)!important;color:var(--on-accent,#fff)!important;font-size:13.5px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;box-shadow:0 1px 2px rgba(16,24,40,.06)!important;transform:none!important;text-decoration:none!important;white-space:nowrap;line-height:1!important;cursor:pointer}
html body.fx button:hover,html body.fx .button:hover{background:var(--accent-strong,var(--accent))!important;border-color:var(--accent-strong,var(--accent))!important;transform:none!important}
html body.fx button.secondary,html body.fx .button.secondary,html body.fx .secondary.button,html body.fx a.secondary{background:#fff!important;color:var(--fx-text)!important;border:1px solid #d0d5dd!important}
html body.fx button.secondary:hover,html body.fx .button.secondary:hover,html body.fx .secondary.button:hover{background:#f9fafb!important;color:var(--fx-ink)!important;border-color:#c0c6d0!important}
html body.fx button.compact,html body.fx .button.compact,html body.fx .compact{height:30px!important;min-height:30px!important;padding:0 10px!important;font-size:12.5px!important;border-radius:7px!important}
html body.fx .danger-action,html body.fx button.danger-action,html body.fx .danger-button{background:#fff!important;color:#b42318!important;border:1px solid #fda29b!important}
html body.fx .danger-action:hover,html body.fx .danger-button:hover{background:#fef3f2!important}
html body.fx button:disabled{opacity:.5!important;cursor:not-allowed}
html body.fx .menu-toggle .ic{width:18px;height:18px}
html body.fx .excel-export-row{display:flex;justify-content:flex-end;margin:0 0 -6px}
html body.fx .excel-export-btn{display:inline-flex!important;align-items:center;gap:6px;height:32px;padding:0 12px!important;border-radius:7px!important;background:#fff!important;border:1px solid #d0d5dd!important;color:var(--fx-text)!important;font-size:12.5px!important;font-weight:600!important;text-decoration:none!important;box-shadow:none!important}
html body.fx .excel-export-btn .ic{width:15px;height:15px;color:#12b76a}

/* abas (navegação dentro de um módulo): sublinhado em vez de pílulas */
html body.fx .grade-tabs{display:flex!important;gap:2px!important;border-bottom:1px solid var(--fx-line)!important;margin:0 0 18px!important;padding:0!important;flex-wrap:wrap}
html body.fx .grade-tabs a{border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--fx-muted)!important;padding:10px 12px!important;margin-bottom:-1px!important;font-size:13.5px!important;font-weight:500!important}
html body.fx .grade-tabs a[style*="var(--brand)"]{color:var(--fx-ink)!important;border-bottom-color:var(--accent-text,var(--accent))!important;font-weight:600!important}
html body.fx .grade-tabs a:hover{color:var(--fx-ink)!important}

/* ---------- formulários ---------- */
html body.fx label{color:var(--fx-ink)!important;font-size:13px!important;font-weight:500!important}
html body.fx input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),html body.fx select,html body.fx textarea{height:38px;min-height:38px;padding:0 11px!important;border:1px solid #d0d5dd!important;border-radius:8px!important;background:#fff!important;color:var(--fx-ink)!important;font-size:13.5px!important;box-shadow:0 1px 2px rgba(16,24,40,.04)!important;outline:none!important}
html body.fx textarea{height:auto!important;padding:9px 11px!important;line-height:1.45}
html body.fx select[multiple]{height:auto!important;padding:6px!important}
html body.fx input:focus,html body.fx select:focus,html body.fx textarea:focus{border-color:var(--accent-text,var(--accent))!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent)!important}
html body.fx input::placeholder,html body.fx textarea::placeholder{color:var(--fx-faint)!important}
html body.fx .form-hint{background:#f9fafb!important;border:1px solid var(--fx-line-2)!important;color:var(--fx-muted)!important;border-radius:8px!important;font-size:12.5px!important}
html body.fx .nav-search input{height:34px!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#fff!important}

/* ---------- avisos e etiquetas ---------- */
html body.fx .flash{border-radius:8px!important;border:1px solid var(--fx-line)!important;border-left-width:4px!important;padding:11px 14px!important;font-size:13.5px!important;box-shadow:none!important;background:#fff!important;color:var(--fx-text)!important;margin:0 0 16px!important}
html body.fx .flash.success{border-left-color:var(--fx-green)!important;background:#f6fef9!important}
html body.fx .flash.danger,html body.fx .flash.error{border-left-color:var(--fx-red)!important;background:#fffbfa!important}
html body.fx .flash.warning{border-left-color:var(--fx-amber)!important;background:#fffcf5!important}
html body.fx .flash.info{border-left-color:var(--fx-blue)!important}
html body.fx .flash a{color:inherit!important;font-weight:600}
html body.fx .status-badge{display:inline-flex!important;align-items:center!important;height:22px;padding:0 8px!important;border-radius:6px!important;font-size:11.5px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;background:#f2f4f7!important;color:#344054!important;border:0!important;white-space:nowrap}
html body.fx .status-badge.success-badge{background:#ecfdf3!important;color:#067647!important}
html body.fx .status-badge.warning-badge{background:#fffaeb!important;color:#b54708!important}
html body.fx .status-badge.danger-badge{background:#fef3f2!important;color:#b42318!important}

/* ---------- login ---------- */
html body.fx.auth-page{background:var(--fx-bg)!important}
html body.fx.auth-page::before,html body.fx.auth-page::after{display:none!important}
html body.fx .login-card{border:1px solid var(--fx-line)!important;border-radius:14px!important;box-shadow:0 12px 32px rgba(16,24,40,.08)!important;background:#fff!important}
html body.fx .login-card h1{font:600 22px/1.3 Inter,sans-serif!important;color:var(--fx-ink)!important}
html body.fx .login-card button{width:100%;height:40px!important;background:var(--brand,#0a1020)!important;border-color:var(--brand,#0a1020)!important;color:#fff!important}

/* ---------- celular e tablet ---------- */
@media (max-width:1024px){
  html body.fx .sidebar{transform:translateX(-100%);transition:transform .2s ease!important;box-shadow:0 0 40px rgba(0,0,0,.25)!important}
  html body.fx .sidebar.open{transform:none}
  html body.fx .app-main{margin-left:0!important;width:100%!important}
  html body.fx .menu-toggle{display:inline-flex!important}
  html body.fx .topbar{padding:0 14px!important}
  html body.fx .content-area{padding:18px 14px 40px!important}
  html body.fx .top-user-copy{display:none}
}
@media (max-width:600px){
  html body.fx .page-head{align-items:flex-start!important}
  html body.fx .page-head h1{font-size:19px!important}
  html body.fx .stats,html body.fx .attendance-kpis,html body.fx .tl-stats,html body.fx .pix-kpis,html body.fx .finance-kpis{grid-template-columns:1fr 1fr!important;gap:10px!important}
  html body.fx :is(.attendance-kpis,.pix-kpis,.finance-kpis)>* strong,html body.fx .stats article strong,html body.fx .tl-big{font-size:18px!important}
  html body.fx .top-user{border-left:0;padding-left:0;margin-left:0}
}
@media print{html body.fx .sidebar,html body.fx .topbar{display:none!important}html body.fx .app-main{margin:0!important;width:100%!important}}

/* atalhos do painel */
html body.fx .quick-panel{display:grid;gap:8px}
html body.fx .quick-link{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:44px!important;padding:0 12px!important;border:1px solid var(--fx-line)!important;border-radius:8px!important;background:#fff!important;color:var(--fx-ink)!important;font-size:13.5px!important;font-weight:500!important;text-decoration:none!important;box-shadow:none!important;transform:none!important}
html body.fx .quick-link span{display:inline-flex;align-items:center;gap:10px}
html body.fx .quick-link .ic{width:17px;height:17px;color:var(--fx-muted)}
html body.fx .quick-link:hover{border-color:var(--accent-text,var(--accent))!important;background:#fafbff!important}
html body.fx .quick-link:hover .ic{color:var(--accent-text,var(--accent))}
html body.fx .dashboard-grid{gap:16px!important}
/* ajustes de precedência sobre o tema antigo */
html body.fx .sidebar .nav-search input#navSearch{height:34px!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#fff!important;font-size:13px!important}
html body.fx .sidebar .nav-item.active .nav-icon,html body.fx .sidebar .nav-item:hover .nav-icon{background:transparent!important;box-shadow:none!important;border:0!important}
@media (min-width:1025px){html body.fx .topbar .menu-toggle{display:none!important}}
/* contadores no cabeçalho, letras decorativas e sombras internas */
html body.fx .student-page-count{display:inline-flex!important;align-items:baseline!important;gap:8px!important;background:#fff!important;border:1px solid var(--fx-line)!important;border-radius:var(--fx-radius)!important;padding:10px 14px!important;box-shadow:var(--fx-shadow)!important;color:var(--fx-muted)!important;font-size:12px!important;text-transform:none!important;letter-spacing:0!important}
html body.fx .student-page-count strong,html body.fx .student-page-count b{color:var(--fx-ink)!important;font:600 20px/1.1 Inter,sans-serif!important}
html body.fx .student-page-count *{text-transform:none!important;letter-spacing:0!important}
html body.fx .section-icon{display:none!important}
html body.fx .card .section-title-row,html body.fx [class*="-card"] .section-title-row,html body.fx .teachers-list-card>h2,html body.fx .teacher-create-card>h2,html body.fx .teacher-create-card .section-title-row{border-bottom:1px solid var(--fx-line)!important;border-color:var(--fx-line)!important}
html body.fx .card :is(article,div,section,aside):not(.table-wrap):not(.tl-stats):not(.tl-stats>div),html body.fx .teachers-list-card :is(article,div){box-shadow:none!important}
html body.fx .metric-pill,html body.fx .status-pill,html body.fx .consecutive-pill{border-radius:6px!important;font-size:11.5px!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important}
html body.fx .teacher-create-card h2::before,html body.fx .teachers-list-card h2::before{display:none!important}
html body.fx .teachers-table tr{border:1px solid var(--fx-line)!important;border-radius:var(--fx-radius)!important;box-shadow:none!important}
html body.fx .teacher-create-card h2,html body.fx .teachers-list-card>h2{padding-left:0!important}
/* grade de horários: cabeçalhos sóbrios */
html body.fx .page-head h1{text-transform:none!important}
html body.fx .excel-left,html body.fx .excel-plan{border:1px solid var(--fx-line)!important;border-radius:var(--fx-radius)!important;overflow:hidden!important;box-shadow:var(--fx-shadow)!important;background:#fff!important}
html body.fx .excel-left::before,html body.fx .excel-plan::before,html body.fx .excel-left::after,html body.fx .excel-plan::after{display:none!important}
html body.fx .excel-title,html body.fx .excel-plan>h2,html body.fx .excel-plan h3{background:#fff!important;color:var(--fx-ink)!important;border-bottom:1px solid var(--fx-line)!important;text-transform:none!important;letter-spacing:0!important;font-size:15px!important}
html body.fx .excel-title *{color:var(--fx-ink)!important}
html body.fx .excel-grid thead th,html body.fx .excel-plan th{background:#f9fafb!important;color:var(--fx-muted)!important}
html body.fx .interval-row td,html body.fx .interval-row th{background:#f2f4f7!important;color:var(--fx-muted)!important;letter-spacing:.08em!important}
html body.fx .class-tab{border-radius:var(--fx-radius)!important;box-shadow:none!important}
html body.fx .class-tab.active{border-color:var(--accent-text,var(--accent))!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent)!important;background:#fff!important}

/* ==========================================================================
   v2 — topo de largura inteira e menu claro com grupos que abrem e fecham
   ========================================================================== */
:root{--fx-top:64px;--fx-side:256px}
/* topo */
html body.fx .topbar{position:fixed!important;top:0!important;left:0!important;right:0!important;height:var(--fx-top)!important;min-height:var(--fx-top)!important;padding:0 20px 0 0!important;gap:18px!important;z-index:40!important}
html body.fx .top-brand{display:flex;align-items:center;gap:10px;width:var(--fx-side);flex:0 0 var(--fx-side);height:100%;padding:0 20px;text-decoration:none;color:var(--fx-ink);border-right:1px solid var(--fx-line)}
html body.fx .top-brand img{max-height:34px;max-width:120px;object-fit:contain}
html body.fx .top-brand-mark{width:32px;height:32px;border-radius:8px;background:var(--brand);color:var(--on-brand,#fff);display:grid;place-items:center;font:700 12px Manrope,Inter,sans-serif;flex:0 0 32px}
html body.fx .top-brand-text{display:flex;flex-direction:column;min-width:0;line-height:1.15}
html body.fx .top-brand strong{font:800 15px/1.15 Manrope,Inter,sans-serif;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.fx .top-brand-sep{display:none}
html body.fx .top-brand-sub{font-size:11.5px;font-weight:500;color:var(--fx-muted);white-space:nowrap}
html body.fx .top-search{flex:1;max-width:560px;margin:0 auto 0 8px;display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border:1px solid var(--fx-line);border-radius:9px;background:#fff;color:var(--fx-faint)}
html body.fx .top-search:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 12%,transparent)}
html body.fx .top-search input{flex:1;height:38px!important;min-height:0!important;border:0!important;box-shadow:none!important;padding:0!important;background:transparent!important;font-size:13.5px!important}
html body.fx .top-search-spacer{flex:1}
html body.fx .menu-toggle{margin-left:12px}
html body.fx details.top-user{position:relative;border-left:1px solid var(--fx-line);padding-left:14px;margin-left:6px}
html body.fx details.top-user summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;padding:6px 4px;border-radius:8px}
html body.fx details.top-user summary::-webkit-details-marker{display:none}
html body.fx details.top-user summary:hover{background:var(--fx-bg)}
html body.fx .top-user .avatar{width:34px;height:34px;background:var(--brand)!important;color:var(--on-brand,#fff)!important;font-size:12.5px!important;letter-spacing:.02em}
html body.fx .top-chevron{width:16px;height:16px;color:var(--fx-muted)}
html body.fx .top-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:230px;background:#fff;border:1px solid var(--fx-line);border-radius:10px;box-shadow:0 12px 32px rgba(16,24,40,.12);padding:6px;z-index:50}
html body.fx .top-menu-head{padding:8px 10px 10px;border-bottom:1px solid var(--fx-line-2);margin-bottom:4px}
html body.fx .top-menu-head strong{display:block;color:var(--fx-ink);font-size:13px}
html body.fx .top-menu-head span{display:block;color:var(--fx-muted);font-size:12px;margin-top:2px}
html body.fx .top-menu a{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:7px;color:var(--fx-text);font-size:13.5px;text-decoration:none}
html body.fx .top-menu a:hover{background:var(--fx-bg);color:var(--fx-ink)}
html body.fx .top-menu .ic{width:16px;height:16px;color:var(--fx-muted)}

/* menu lateral claro */
html body.fx .sidebar{top:var(--fx-top)!important;height:calc(100vh - var(--fx-top))!important;width:var(--fx-side)!important;background:#fff!important;border-right:1px solid var(--fx-line)!important;color:var(--fx-text)!important}
html body.fx .sidebar .brand-area{display:none!important}
html body.fx .app-main{margin-left:var(--fx-side)!important;width:calc(100% - var(--fx-side))!important;padding-top:var(--fx-top)!important}
html body.fx .nav-search{margin:14px 12px 6px!important;background:var(--fx-bg)!important;border:1px solid var(--fx-line)!important;color:var(--fx-faint)!important}
html body.fx .sidebar .nav-search input#navSearch{color:var(--fx-ink)!important}
html body.fx .sidebar .nav-search input#navSearch::placeholder{color:var(--fx-faint)!important}
html body.fx .side-nav{padding:6px 12px 16px!important;scrollbar-color:#d0d5dd transparent}
html body.fx .nav-group{margin:2px 0}
html body.fx .nav-group-toggle{all:unset;box-sizing:border-box;display:flex!important;align-items:center;gap:12px;width:100%;min-height:40px;padding:8px 12px;border-radius:8px;color:var(--fx-text);font-size:14px;font-weight:500;cursor:pointer}
html body.fx .nav-group-toggle:hover{background:var(--fx-bg);color:var(--fx-ink)}
html body.fx .nav-group-toggle .nav-icon{color:var(--fx-text)!important}
html body.fx .nav-group-label{flex:1}
html body.fx .nav-chev{width:16px!important;height:16px!important;color:var(--fx-faint);transition:transform .15s}
html body.fx .nav-group.open>.nav-group-toggle .nav-chev{transform:rotate(180deg)}
html body.fx .nav-group.has-active>.nav-group-toggle{color:var(--fx-ink);font-weight:600}
html body.fx .nav-group-items{display:none;padding:2px 0 6px 22px;margin-left:21px;border-left:1px solid var(--fx-line)}
html body.fx .nav-group.open>.nav-group-items{display:block}
html body.fx .nav-group-items .nav-item{min-height:34px!important;padding:6px 10px!important;margin:1px 0!important;font-size:13.5px!important;color:var(--fx-text)!important;border-radius:7px!important}
html body.fx .nav-group-items .nav-item .nav-icon{display:none!important}
html body.fx .nav-item:hover{background:var(--fx-bg)!important;color:var(--fx-ink)!important}
html body.fx .nav-item.active{background:var(--brand)!important;color:var(--on-brand,#fff)!important;font-weight:600!important}
html body.fx .nav-item.active::before{display:none}
html body.fx .nav-item .status-badge{background:var(--fx-red)!important;color:#fff!important}
html body.fx .sidebar-footer{border-top:1px solid var(--fx-line)!important}
html body.fx .sidebar-footer span{color:var(--fx-faint)}

/* botão principal na cor da escola, como no exemplo */
html body.fx button:not(.secondary):not(.danger-action):not(.nav-group-toggle):not(.menu-toggle),html body.fx .button:not(.secondary):not(.danger-action){background:var(--brand)!important;border-color:var(--brand)!important;color:var(--on-brand,#fff)!important}
html body.fx button:not(.secondary):not(.danger-action):not(.nav-group-toggle):not(.menu-toggle):hover,html body.fx .button:not(.secondary):not(.danger-action):hover{background:var(--brand-2,var(--brand))!important;border-color:var(--brand-2,var(--brand))!important}
html body.fx .button.whatsapp-button,html body.fx .whatsapp-action:not(.secondary){background:#12b76a!important;border-color:#12b76a!important}

/* indicadores: cartão branco com ícone em traço */
html body.fx :is(.attendance-kpis,.tl-stats,.pix-kpis,.finance-kpis,.annual-kpis,.workload-stats)>*::before{display:none!important}
html body.fx :is(.attendance-kpis,.tl-stats,.pix-kpis,.finance-kpis,.annual-kpis,.workload-stats)>*{padding:16px 18px!important}
html body.fx .ov-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:0 0 18px}
html body.fx .ov-kpi{display:flex;align-items:center;gap:16px;padding:18px 20px;background:#fff;border:1px solid var(--fx-line);border-radius:var(--fx-radius);box-shadow:var(--fx-shadow);text-decoration:none;color:inherit}
html body.fx a.ov-kpi:hover{border-color:#c0c6d0}
html body.fx .ov-kpi-icon{color:var(--brand);display:grid;place-items:center}
html body.fx .ov-kpi-icon .ic{width:30px;height:30px;stroke-width:1.5}
html body.fx .ov-kpi-copy span{display:block;color:var(--fx-text);font-size:13px;font-weight:500}
html body.fx .ov-kpi-copy strong{display:block;color:var(--fx-ink);font:700 24px/1.2 Inter,sans-serif;letter-spacing:-.02em;margin-top:3px}
html body.fx .ov-actions{display:flex;gap:10px;flex-wrap:wrap}
html body.fx .ov-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,1fr);gap:16px;margin-bottom:16px;align-items:start}
html body.fx .ov-card{padding:0!important;overflow:hidden}
html body.fx .ov-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--fx-line)}
html body.fx .ov-card-head h2{display:flex;align-items:center;gap:10px;margin:0!important;font-size:16px!important}
html body.fx .ov-card-head h2 .ic{color:var(--fx-text)}
html body.fx .ov-card-head a{display:inline-flex;align-items:center;gap:6px;color:var(--brand);font-size:13px;font-weight:600;text-decoration:none}
html body.fx .ov-card-head a .ic{width:15px;height:15px}
html body.fx .ov-card .empty-state{margin:20px}
html body.fx .table-wrap.ov-flat{border:0!important;border-radius:0!important}
html body.fx .ov-flat table th{background:#fff!important}
html body.fx .ov-flat table th:first-child,html body.fx .ov-flat table td:first-child{padding-left:20px!important}
html body.fx .ov-task{display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid var(--fx-line-2);text-decoration:none;color:inherit}
html body.fx .ov-task:last-child{border-bottom:0}
html body.fx .ov-task:hover{background:#fafbfc}
html body.fx .ov-task-dot{width:16px;height:16px;border:1.5px solid #c0c6d0;border-radius:4px;flex:0 0 16px}
html body.fx .ov-task-dot.urgent{border-color:#f97066}
html body.fx .ov-task-copy{flex:1;min-width:0}
html body.fx .ov-task-copy strong{display:block;color:var(--fx-ink);font-size:13.5px;font-weight:600}
html body.fx .ov-task-copy span{display:block;color:var(--fx-muted);font-size:12px;margin-top:2px}
html body.fx .ov-task-when{font-size:12px;color:var(--fx-muted);white-space:nowrap}
html body.fx .ov-task-when.urgent{color:#d92d20;font-weight:600}
html body.fx .ov-done{display:flex;gap:12px;align-items:center;padding:22px 20px;color:var(--fx-muted)}
html body.fx .ov-done .ic{width:24px;height:24px;color:var(--fx-green)}
html body.fx .ov-done strong{display:block;color:var(--fx-ink)}
html body.fx .ov-done span{font-size:13px}

@media (max-width:1100px){html body.fx .ov-grid{grid-template-columns:1fr}}
@media (max-width:1024px){
  html body.fx .topbar{padding:0 12px 0 0!important;gap:10px!important}
  html body.fx .top-brand{width:auto;flex:0 1 auto;border-right:0;padding:0 4px}
  html body.fx .top-brand-sep,html body.fx .top-brand-sub{display:none}
  html body.fx .top-search{max-width:none;margin:0}
  html body.fx .app-main{margin-left:0!important;width:100%!important}
  html body.fx .sidebar{transform:translateX(-100%)}
  html body.fx .sidebar.open{transform:none}
}
@media (max-width:640px){
  html body.fx .top-search{display:none}
  html body.fx .top-search-spacer{display:block;flex:1}
  html body.fx .top-brand strong{max-width:140px}
}
@media print{html body.fx .app-main{padding-top:0!important}}
html body.fx .topbar-actions{margin-left:auto!important}

html body.fx .sidebar .nav-group-toggle{all:unset;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;width:100%!important;height:auto!important;min-height:40px!important;padding:8px 12px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--fx-text)!important;font-size:14px!important;font-weight:500!important;box-shadow:none!important;cursor:pointer!important;white-space:nowrap}
html body.fx .sidebar .nav-group-toggle:hover{background:var(--fx-bg)!important;color:var(--fx-ink)!important}
html body.fx .sidebar .nav-group.has-active>.nav-group-toggle{color:var(--fx-ink)!important;font-weight:600!important}
html body.fx .sidebar .nav-group-toggle .nav-icon,html body.fx .sidebar .nav-group-toggle .nav-icon .ic{color:inherit!important}
html body.fx .topbar .top-search input[type=search]{height:38px!important;min-height:0!important;border:0!important;box-shadow:none!important;padding:0!important;background:transparent!important;outline:none!important}
html body.fx .topbar .top-search input[type=search]:focus{box-shadow:none!important}
@media (max-width:1024px){html body.fx .top-brand-sub{display:none}}
@media (max-width:640px){
  html body.fx details.top-user{border-left:0;padding-left:0;margin-left:0}
  html body.fx .top-chevron{display:none}
  html body.fx .top-brand strong{max-width:120px}
  html body.fx .top-icon[aria-label=Ajuda]{display:none}
  html body.fx .top-menu{right:-6px}
}
html body.fx #topSearch{height:38px!important;min-height:0!important;border:0!important;box-shadow:none!important;padding:0!important;background:transparent!important;outline:none!important;border-radius:0!important}
html body.fx .topbar .menu-toggle{background:#fff!important;border:1px solid var(--fx-line)!important;color:var(--fx-ink)!important;box-shadow:none!important;padding:0!important;width:38px!important;height:38px!important;flex:0 0 38px}
html body.fx .topbar .menu-toggle:hover{background:var(--fx-bg)!important}

/* ==========================================================================
   Responsivo — computador, tablet e celular
   ========================================================================== */
/* botões e links de ação de módulos antigos no mesmo padrão */
html body.fx :is(.finance-pdf-link,.finance-annual-link,.finance-action,.receipt-button,.pix-btn,.whatsapp-action){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:36px!important;padding:0 14px!important;border-radius:8px!important;font-size:13.5px!important;font-weight:600!important;text-decoration:none!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important}
html body.fx :is(.finance-pdf-link,.finance-action,.receipt-button){background:var(--brand)!important;border:1px solid var(--brand)!important;color:var(--on-brand,#fff)!important}
html body.fx :is(.finance-annual-link,.finance-academic-pdf,.finance-action.secondary){background:#fff!important;border:1px solid #d0d5dd!important;color:var(--fx-text)!important}
html body.fx .finance-admin-badge{display:inline-flex!important;background:var(--fx-bg)!important;color:var(--fx-muted)!important;border:1px solid var(--fx-line)!important;border-radius:6px!important;font-size:11.5px!important;font-weight:600!important;padding:2px 8px!important;text-transform:none!important;letter-spacing:0!important;box-shadow:none!important}
html body.fx .finance-month-nav{background:#fff!important;border:1px solid var(--fx-line)!important;border-radius:var(--fx-radius)!important;box-shadow:var(--fx-shadow)!important;color:var(--fx-ink)!important;padding:10px 14px!important}
html body.fx .finance-month-nav *{color:var(--fx-ink)!important}
html body.fx .finance-month-nav a{color:var(--brand)!important;font-weight:600!important}
html body.fx :is(.finance-month-card,.annual-card,.occ-card,.emp-card,.pix-card){border:1px solid var(--fx-line)!important;border-radius:var(--fx-radius)!important;box-shadow:var(--fx-shadow)!important}
html body.fx :is(.finance-alert,.own-alert){border-radius:8px!important;box-shadow:none!important}
html body.fx :is(.finance-empty,.empty-state){border-radius:8px!important}

/* indicadores: sem cartão sozinho numa linha */
html body.fx :is(.attendance-kpis,.tl-stats,.pix-kpis,.finance-kpis,.annual-kpis,.workload-stats,.ov-kpis){grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important}

/* menu escondido não deixa sombra na lateral; fundo escurecido quando aberto */
@media (max-width:1024px){
  html body.fx .sidebar:not(.open){box-shadow:none!important;visibility:hidden}
  html body.fx .sidebar.open{visibility:visible;box-shadow:0 20px 48px rgba(16,24,40,.22)!important}
  html body.fx.sidebar-open::after{content:"";position:fixed;inset:var(--fx-top) 0 0 0;background:rgba(16,24,40,.35);z-index:35}
  html body.fx .sidebar{z-index:45!important;transition:transform .2s ease,visibility .2s!important}
  /* indicadores 2 por linha; quando sobra um, ele ocupa a linha toda */
  html body.fx :is(.attendance-kpis,.tl-stats,.pix-kpis,.finance-kpis,.annual-kpis,.workload-stats,.ov-kpis){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body.fx :is(.attendance-kpis,.tl-stats,.pix-kpis,.finance-kpis,.annual-kpis,.workload-stats,.ov-kpis)>:last-child:nth-child(odd){grid-column:1/-1}
  /* cabeçalho da página: ações lado a lado, sem ocupar a tela toda */
  html body.fx .page-head{align-items:flex-start!important;padding-bottom:14px!important;margin-bottom:16px!important}
  html body.fx .page-head>div:last-child:not(:first-child),html body.fx .page-head .ov-actions,html body.fx .page-head .tl-row,html body.fx .finance-head-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;width:100%!important}
  html body.fx .page-head>div:last-child:not(:first-child) :is(.button,button,a.button),html body.fx .page-head>.button,html body.fx .page-head>a.button,html body.fx .finance-head-actions>*{flex:1 1 auto!important;width:auto!important;min-width:0!important}
  html body.fx .page-head>.button,html body.fx .page-head>a.button,html body.fx .page-head>form{flex:0 1 auto!important}
  html body.fx .content-area .card{padding:16px!important}
  html body.fx .tl-grid,html body.fx .dashboard-grid,html body.fx .two-col,html body.fx .management-layout{grid-template-columns:1fr!important}
}
@media (min-width:641px) and (max-width:1024px){
  html body.fx .content-area{padding:22px 22px 44px!important}
  html body.fx .ov-kpis,html body.fx :is(.attendance-kpis,.tl-stats,.pix-kpis,.finance-kpis)[class]{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important}
  html body.fx :is(.attendance-kpis,.tl-stats,.pix-kpis,.finance-kpis,.ov-kpis)>:last-child:nth-child(odd){grid-column:auto}
  html body.fx .ov-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  html body.fx .ov-kpi{flex-direction:column;align-items:flex-start;gap:10px;padding:16px}
  html body.fx .ov-kpi-icon .ic{width:26px;height:26px}
}

/* celular */
@media (max-width:640px){
  html body.fx{font-size:14px}
  html body.fx .content-area{padding:16px 12px 40px!important}
  html body.fx .page-head h1{font-size:20px!important}
  html body.fx .page-head p{font-size:13px!important}
  html body.fx .ov-kpi{flex-direction:column;align-items:flex-start;gap:8px;padding:14px}
  html body.fx .ov-kpi-icon .ic{width:24px;height:24px}
  html body.fx .ov-kpi-copy strong,html body.fx :is(.attendance-kpis,.pix-kpis,.finance-kpis,.annual-kpis,.workload-stats)>* strong,html body.fx .tl-big{font-size:19px!important}
  html body.fx :is(.attendance-kpis,.tl-stats,.pix-kpis,.finance-kpis,.annual-kpis,.workload-stats)>*{padding:12px 14px!important}
  html body.fx .ov-card-head{padding:14px 16px}
  html body.fx .ov-task{padding:12px 16px}
  html body.fx .grade-tabs{flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  html body.fx .grade-tabs::-webkit-scrollbar{display:none}
  html body.fx .grade-tabs a{white-space:nowrap!important;flex:0 0 auto}
  html body.fx .tl-row>label{flex:1 1 140px}
  html body.fx .flash{font-size:13px!important}
  html body.fx button,html body.fx .button{min-height:40px!important;height:40px!important}
  html body.fx button.compact,html body.fx .button.compact,html body.fx .compact{min-height:34px!important;height:34px!important}
  html body.fx input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),html body.fx select{height:42px!important;font-size:16px!important}
  html body.fx textarea{font-size:16px!important}
  html body.fx #topSearch,html body.fx #navSearch{font-size:16px!important}
}

/* tabelas viram cartões no celular e no tablet em pé (até 860px) */
@media (max-width:860px){
  html body.fx .table-wrap:has(table.rcards),html body.fx .rcards-wrap{border:0!important;background:transparent!important;border-radius:0!important;overflow:visible!important}
  html body.fx table.rcards{background:transparent!important;border:0!important}
  html body.fx table.rcards tbody{gap:10px!important}
  html body.fx table.rcards tr{background:#fff!important;border:1px solid var(--fx-line)!important;border-radius:10px!important;padding:12px 14px!important;box-shadow:var(--fx-shadow)!important}
  html body.fx table.rcards tbody tr:hover td{background:transparent!important}
  html body.fx table.rcards td,html body.fx table.rcards th{padding:6px 0!important;border:0!important;font-size:13.5px!important}
  html body.fx table.rcards td[data-label]::before,html body.fx table.rcards th[data-label]::before{font-size:12px!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important;opacity:1!important;color:var(--fx-muted)!important}
  html body.fx table.rcards tr>:first-child{font-size:15px!important;font-weight:600!important;color:var(--fx-ink)!important;padding:0 0 8px!important;margin-bottom:4px!important;border-bottom:1px solid var(--fx-line-2)!important}
  html body.fx table.rcards tr>:first-child::before{font-size:11.5px!important;margin-bottom:2px!important}
  html body.fx table.rcards td.rc-actions{padding-top:10px!important}
  html body.fx table.rcards td.rc-actions::before{display:none!important}
  html body.fx table.rcards td.rc-actions,html body.fx table.rcards td.actions-cell{display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:flex-start!important}
  html body.fx table.rcards td.rc-actions>*{flex:1 1 auto}
  html body.fx table.rcards tr:has(> td[colspan]:only-child){border-style:dashed!important;box-shadow:none!important;background:#fcfcfd!important}
  html body.fx .ov-card .table-wrap:has(table.rcards){padding:12px!important}
  html body.fx .card>table.rcards{border:0!important}
}
/* tablet: tabelas continuam tabelas (com rolagem lateral se precisar); cartões só no celular */
@media (min-width:641px) and (max-width:860px){
  html body.fx .table-wrap:has(table.rcards),html body.fx .rcards-wrap{overflow-x:auto!important;border:1px solid var(--fx-line)!important;background:#fff!important;border-radius:var(--fx-radius-sm)!important}
  html body.fx .ov-card .table-wrap:has(table.rcards){padding:0!important;border:0!important}
  html body.fx table.rcards{display:table!important;width:100%!important}
  html body.fx table.rcards thead{display:table-header-group!important}
  html body.fx table.rcards tbody,html body.fx table.rcards tfoot{display:table-row-group!important}
  html body.fx table.rcards tr{display:table-row!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important}
  html body.fx table.rcards td,html body.fx table.rcards th{display:table-cell!important;padding:10px 12px!important;text-align:left!important;border-bottom:1px solid var(--fx-line-2)!important;font-size:13.5px!important;white-space:nowrap!important}
  html body.fx table.rcards tr>:first-child{font-size:13.5px!important;padding:10px 12px!important;margin:0!important;border-bottom:1px solid var(--fx-line-2)!important}
  html body.fx table.rcards td::before,html body.fx table.rcards th::before{display:none!important;content:none!important}
  html body.fx table.rcards td.rc-actions,html body.fx table.rcards td.actions-cell{display:table-cell!important}
  html body.fx table.rcards td.rc-actions>*,html body.fx table.rcards td.actions-cell>*{margin:2px 4px 2px 0}
  html body.fx :is(.attendance-kpis,.tl-stats,.pix-kpis,.finance-kpis,.annual-kpis,.workload-stats)[class]{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important}
}
@media (min-width:861px) and (max-width:1024px){
  html body.fx :is(.attendance-kpis,.tl-stats,.pix-kpis,.finance-kpis,.annual-kpis,.workload-stats)[class]{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important}
}
@media (min-width:641px) and (max-width:860px){
  html body.fx table.rcards :is(td,th)[data-label]:not(.rc-actions):not(:first-child),html body.fx table.rcards tr>:is(td,th):first-child{display:table-cell!important;text-align:left!important;white-space:nowrap!important}
  html body.fx table.rcards :is(td,th)[data-label]:not(.rc-actions):not(:first-child)>*{text-align:left!important;justify-self:auto!important}
  html body.fx table.rcards td small{display:block;text-align:left!important}
}
/* telas no estilo "pix" (Vendas PIX e Painel do dono) no mesmo padrão */
html body.fx .pix-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:16px!important;flex-wrap:wrap!important;margin:0 0 20px!important;padding:0 0 18px!important;border-bottom:1px solid var(--fx-line)!important;background:transparent!important;box-shadow:none!important}
html body.fx .pix-head h1{margin:0!important;color:var(--fx-ink)!important;font:600 22px/1.25 Inter,sans-serif!important;letter-spacing:-.015em!important;text-transform:none!important}
html body.fx .pix-head p{margin:5px 0 0!important;color:var(--fx-muted)!important;font-size:13.5px!important}
html body.fx .pix-badge{display:inline-flex!important;background:var(--fx-bg)!important;color:var(--fx-muted)!important;border:1px solid var(--fx-line)!important;border-radius:6px!important;font-size:11.5px!important;font-weight:600!important;padding:2px 8px!important;text-transform:none!important;letter-spacing:0!important;box-shadow:none!important;margin-bottom:6px}
html body.fx .pix-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
html body.fx .pix-btn{background:var(--brand)!important;border:1px solid var(--brand)!important;color:var(--on-brand,#fff)!important}
html body.fx .pix-btn.ghost{background:#fff!important;border:1px solid #d0d5dd!important;color:var(--fx-text)!important}
html body.fx .pix-nav{background:#fff!important;border:1px solid var(--fx-line)!important;border-radius:var(--fx-radius)!important;box-shadow:var(--fx-shadow)!important;padding:10px 14px!important}
html body.fx .pix-nav *{color:var(--fx-ink)!important}
html body.fx .pix-nav a{color:var(--brand)!important;font-weight:600!important}
html body.fx .pix-card-title h2{font-size:15.5px!important;font-weight:600!important;color:var(--fx-ink)!important;text-transform:none!important;letter-spacing:0!important}
html body.fx .pix-table-wrap{border:1px solid var(--fx-line)!important;border-radius:var(--fx-radius-sm)!important;box-shadow:none!important}
html body.fx .own-totals>*{border:1px solid var(--fx-line)!important;border-radius:var(--fx-radius)!important;box-shadow:none!important;background:#fff!important}
html body.fx .excel-export-row{margin:0 0 8px!important}
@media (max-width:1024px){
  html body.fx .pix-head{align-items:flex-start!important}
  html body.fx .pix-actions{width:100%}
  html body.fx .pix-actions>*{flex:1 1 auto}
  html body.fx .pix-head h1{font-size:20px!important}
}
/* abas do portal da família/aluno e de configurações: sublinhado, rolando de lado no celular */
html body.fx :is(.ps-tabs,.cfg-tabs){display:flex!important;gap:2px!important;border-bottom:1px solid var(--fx-line)!important;margin:0 0 16px!important;padding:0!important;overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap!important}
html body.fx :is(.ps-tabs,.cfg-tabs)::-webkit-scrollbar{display:none}
html body.fx :is(.ps-tabs,.cfg-tabs) a{flex:0 0 auto;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--fx-muted)!important;padding:10px 12px!important;margin-bottom:-1px;font-size:14px!important;font-weight:500!important;white-space:nowrap;box-shadow:none!important;text-decoration:none}
html body.fx :is(.ps-tabs,.cfg-tabs) a.active{color:var(--fx-ink)!important;border-bottom-color:var(--brand)!important;font-weight:600!important}
/* entrada (login) mais limpa; no celular o cartão ocupa a tela */
html body.fx.auth-page{background:linear-gradient(180deg,#fff 0%,var(--fx-bg) 100%)!important}
html body.fx .login-card{max-width:420px!important}
html body.fx .login-brand,html body.fx .login-logo{box-shadow:none!important}
html body.fx .login-card input{height:44px!important}
html body.fx .login-card button{height:44px!important;font-size:14.5px!important}
@media (max-width:640px){
  html body.fx .auth-main{padding:0!important;align-items:stretch!important}
  html body.fx .login-card{max-width:none!important;width:100%!important;min-height:100vh;border:0!important;border-radius:0!important;box-shadow:none!important;padding:48px 24px 32px!important;display:flex;flex-direction:column;justify-content:center}
}
@media (max-width:640px){
  html body.fx.auth-page{padding:0!important;margin:0!important;display:block!important}
  html body.fx .auth-main{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:100vh}
  html body.fx .login-card{margin:0!important;box-sizing:border-box!important;background:#fff!important}
}

/* diário de classe: frequência fácil de marcar no celular */
html body.fx .dy-fields{display:grid;grid-template-columns:1fr 1fr 110px;gap:0 12px}
html body.fx .dy-freq-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 8px}
html body.fx .dy-freq-head h3{margin:0;font-size:15px;color:var(--fx-ink)}
html body.fx .dy-freq-head small{color:var(--fx-muted);font-weight:500;font-size:12.5px;margin-left:6px}
html body.fx .dy-list{border:1px solid var(--fx-line);border-radius:10px;overflow:hidden;margin-bottom:14px}
html body.fx .dy-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--fx-line-2);background:#fff}
html body.fx .dy-row:last-child{border-bottom:0}
html body.fx .dy-name{font-weight:500;color:var(--fx-ink);min-width:0}
html body.fx .dy-opts{display:inline-flex;border:1px solid #d0d5dd;border-radius:8px;overflow:hidden;flex:0 0 auto}
html body.fx .dy-opt{margin:0!important;position:relative;cursor:pointer}
html body.fx .dy-opt input{position:absolute;opacity:0;pointer-events:none}
html body.fx .dy-opt span{display:block;padding:8px 12px;font-size:13px;font-weight:600;color:var(--fx-text);border-left:1px solid #d0d5dd;user-select:none}
html body.fx .dy-opt:first-child span{border-left:0}
html body.fx .dy-opt input:focus-visible+span{outline:2px solid var(--brand);outline-offset:-2px}
html body.fx .dy-p input:checked+span{background:#ecfdf3;color:#067647}
html body.fx .dy-f input:checked+span{background:#fef3f2;color:#b42318}
html body.fx .dy-j input:checked+span{background:#fffaeb;color:#b54708}
@media (max-width:640px){
  html body.fx .dy-fields{grid-template-columns:1fr 1fr}
  html body.fx .dy-fields label:first-child{grid-column:1/-1}
  html body.fx .dy-row{flex-direction:column;align-items:stretch;gap:8px}
  html body.fx .dy-opts{display:grid;grid-template-columns:repeat(3,1fr)}
  html body.fx .dy-opt span{text-align:center;padding:10px 4px}
}

/* ==========================================================================
   Entrada (login, esqueci a senha, nova senha) — padrão Fortis
   ========================================================================== */
html body.fx.auth-page{background:#fff!important;display:block!important;padding:0!important;margin:0!important;min-height:100vh}
html body.fx.auth-page .auth-main{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.ax{display:grid;grid-template-columns:minmax(420px,44%) 1fr;min-height:100vh;background:#fff}
.ax-left{display:flex;align-items:center;justify-content:center;padding:40px 48px;position:relative;z-index:2}
.ax-form{width:100%;max-width:440px}
.ax-logo{display:block;width:200px;margin:0 auto 34px}
.ax-logo img{display:block;width:100%;height:auto}
.ax-form h1{margin:0 0 6px;font:800 32px/1.15 Manrope,Inter,sans-serif;letter-spacing:-.02em;color:#0b1220}
.ax-sub{margin:0 0 26px;color:#5b6475;font-size:15px;line-height:1.5}
.ax-flash{border-radius:10px;padding:11px 14px;margin:0 0 16px;font-size:14px;border:1px solid #fecdca;background:#fef3f2;color:#912018}
.ax-flash.success{border-color:#abefc6;background:#ecfdf3;color:#067647}
.ax-flash.warning,.ax-flash.info{border-color:#fedf89;background:#fffaeb;color:#93370d}
.ax-fields{display:flex;flex-direction:column;gap:16px}
html body.fx .ax-field{display:block;margin:0!important;color:#0b1220!important;font-size:14.5px!important;font-weight:600!important}
.ax-field>span:first-child{display:block;margin-bottom:7px}
.ax-input{position:relative;display:flex;align-items:center}
.ax-input>.ic{position:absolute;left:16px;width:20px;height:20px;color:#5b6475;pointer-events:none}
html body.fx .ax-input input{width:100%;height:52px!important;min-height:52px!important;padding:0 48px 0 50px!important;border:1px solid #d5dae3!important;border-radius:12px!important;background:#fff!important;font-size:15px!important;color:#0b1220!important;box-shadow:none!important}
html body.fx .ax-input input:focus{border-color:#1d4ed8!important;box-shadow:0 0 0 4px rgba(29,78,216,.12)!important}
html body.fx .ax-input input::placeholder{color:#8a93a3!important}
html body.fx .ax-eye{all:unset;position:absolute;right:12px;width:32px;height:32px;display:grid!important;place-items:center;border-radius:8px;color:#5b6475;cursor:pointer}
html body.fx .ax-eye:hover{background:#f2f4f7;color:#0b1220}
.ax-eye .ic{width:20px;height:20px}
.ax-eye .ax-eye-on,.ax-eye.on .ax-eye-off{display:none}
.ax-eye.on .ax-eye-on{display:inline-block}
.ax-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:-2px}
html body.fx .ax-check{display:flex!important;align-items:center;gap:9px;margin:0!important;font-size:14.5px!important;font-weight:500!important;color:#0b1220!important;cursor:pointer}
html body.fx .ax-check input{width:18px;height:18px;margin:0;accent-color:#123fa8}
.ax-row a{color:#1d4ed8;font-weight:600;font-size:14.5px;text-decoration:none}
.ax-row a:hover{text-decoration:underline}
html body.fx .ax-submit{width:100%;height:54px!important;min-height:54px!important;margin-top:8px;border:0!important;border-radius:12px!important;background:linear-gradient(90deg,#0a2b75 0%,#123fa8 100%)!important;color:#fff!important;font-size:16px!important;font-weight:700!important;gap:10px!important;box-shadow:0 8px 20px rgba(10,43,117,.22)!important}
html body.fx .ax-submit:hover{background:linear-gradient(90deg,#0c3389 0%,#1648c2 100%)!important}
.ax-submit .ic{width:20px;height:20px}
.ax-divider{display:flex;align-items:center;gap:14px;margin:30px 0 18px;color:#6b7383;font-size:14.5px}
.ax-divider::before,.ax-divider::after{content:"";flex:1;height:1px;background:#e2e6ec}
.ax-outline{display:flex;align-items:center;justify-content:center;gap:10px;height:54px;border:1px solid #d5dae3;border-radius:12px;color:#0b1220;font-size:16px;font-weight:600;text-decoration:none;background:#fff;transition:border-color .15s,background .15s}
.ax-outline:hover{border-color:#123fa8;background:#f7f9ff}
.ax-outline .ic{width:22px;height:22px}
/* lado direito */
.ax-right{position:relative;overflow:hidden;color:#fff;background:radial-gradient(900px 600px at 85% 15%,rgba(47,107,255,.18),transparent 60%),radial-gradient(700px 500px at 20% 90%,rgba(29,78,216,.22),transparent 60%),linear-gradient(160deg,#0a1630 0%,#0b1d42 45%,#081530 100%);display:flex;align-items:center}
.ax-right::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 2px,transparent 2px 120px);opacity:.6}
.ax-curve{position:absolute;left:-1px;top:0;height:100%;width:190px;z-index:1}
.ax-swoosh{position:absolute;right:0;bottom:0;width:62%;height:70%;z-index:0}
.ax-laptop{position:absolute;right:-30px;bottom:12%;width:58%;max-width:620px;z-index:0;opacity:.95;filter:drop-shadow(0 30px 40px rgba(0,0,0,.35))}
.ax-copy{position:relative;z-index:2;padding:0 7% 0 calc(150px + 4%);max-width:760px}
.ax-copy h2{margin:0;font:800 clamp(30px,3.3vw,48px)/1.12 Manrope,Inter,sans-serif;letter-spacing:-.02em;color:#fff}
.ax-bar{display:block;width:96px;height:6px;border-radius:4px;background:#2563eb;margin:26px 0 30px}
.ax-copy ul{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.ax-copy li{display:flex;align-items:center;gap:16px;font-size:17px;font-weight:500;color:#e7ecf6}
.ax-copy li span{width:52px;height:52px;border-radius:12px;display:grid;place-items:center;background:rgba(37,99,235,.18);border:1px solid rgba(96,140,255,.25);color:#fff}
.ax-copy li .ic{width:24px;height:24px}
@media (max-width:1100px){.ax{grid-template-columns:1fr 1fr}.ax-left{padding:32px}.ax-copy{padding-left:calc(110px + 3%)}.ax-curve{width:140px}}
@media (max-width:860px){
  .ax{grid-template-columns:1fr}
  .ax-right{display:none}
  .ax-left{min-height:100vh;padding:36px 22px;align-items:flex-start;background:radial-gradient(600px 300px at 50% -10%,rgba(29,78,216,.08),transparent 70%),#fff}
  .ax-logo{width:160px;margin:12px auto 30px}
  .ax-form h1{font-size:27px}
  .ax-sub{font-size:14.5px}
}
html body.fx .ax .ax-input input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]){height:52px!important;min-height:52px!important;padding:0 48px 0 50px!important;border:1px solid #d5dae3!important;border-radius:12px!important;font-size:15px!important;box-shadow:none!important}
html body.fx .ax .ax-input input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):focus{border-color:#1d4ed8!important;box-shadow:0 0 0 4px rgba(29,78,216,.12)!important}
html body.fx .ax button.ax-eye:not(.secondary):not(.danger-action):not(.nav-group-toggle):not(.menu-toggle){all:unset;position:absolute;right:10px;width:34px;height:34px!important;min-height:0!important;display:grid!important;place-items:center;border-radius:8px;background:transparent!important;border:0!important;box-shadow:none!important;color:#5b6475!important;cursor:pointer;padding:0!important}
html body.fx .ax button.ax-eye:not(.secondary):not(.danger-action):not(.nav-group-toggle):not(.menu-toggle):hover{background:#f2f4f7!important;color:#0b1220!important}
html body.fx .ax button.ax-submit:not(.secondary):not(.danger-action):not(.nav-group-toggle):not(.menu-toggle){width:100%;height:54px!important;min-height:54px!important;border:0!important;border-radius:12px!important;background:linear-gradient(90deg,#0a2b75 0%,#123fa8 100%)!important;color:#fff!important;font-size:16px!important;font-weight:700!important;box-shadow:0 8px 20px rgba(10,43,117,.22)!important}
html body.fx .ax button.ax-submit:not(.secondary):not(.danger-action):not(.nav-group-toggle):not(.menu-toggle):hover{background:linear-gradient(90deg,#0c3389 0%,#1648c2 100%)!important}
html body.fx .ax-left{background:#fff!important}
.ax-input>.ic{top:50%;transform:translateY(-50%)}
/* lado direito com a foto do notebook (mesma arte enviada pelo Anderson) */
.ax{grid-template-columns:minmax(420px,42%) 1fr}
.ax-right{background:#0a1630 url('/static/login-bg.jpg') left center/cover no-repeat!important}
.ax-right::before{display:none}
.ax-copy{padding:0 6% 0 17%;margin-top:-8vh}
.ax-copy h2{font-size:clamp(30px,3.2vw,50px)}
@media (max-width:1100px){.ax{grid-template-columns:1fr 1fr}.ax-copy{padding-left:16%}}
.ax-copy h2{max-width:11.2em}
