:root {
  color-scheme: light;
  --navy: #1A2139; --navy-2: #252e4d; --red: #BE1622; --red-d: #a3111c;
  --fg: #1A2139; --muted: #5f6680; --soft: #8a91a8; --bg: #f4f5f9; --panel: #fff; --line: #e1e4ec;
  --ok: #1f7a45; --ok-bg: #e6f4ec; --warn: #9a6100; --warn-bg: #fdf3e1; --bad: #b3141f; --bad-bg: #fdecee;
  --info: #1d4f91; --info-bg: #e7eef9; --perm: #5b3fa8; --perm-bg: #efeafb;
  --radius: 12px;
  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: "Montserrat", "Inter", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- login ---------- */
#cl-login { position: fixed; inset: 0; z-index: 1000; overflow: hidden; background: linear-gradient(135deg, #f3f4f8 0%, #ffffff 50%, #fbeff1 100%); display: flex; align-items: center; justify-content: center; padding: 16px; }
#cl-login .lg-bg { position: absolute; inset: 0; pointer-events: none; }
#cl-login .lg-bg svg { position: absolute; width: var(--t); height: var(--t); opacity: .22; transform: rotate(var(--r)); }
@media (prefers-reduced-motion: no-preference) {
  #cl-login .lg-bg svg { animation: lgspin var(--d) linear infinite; }
  #cl-login .lg-logo { animation: lglogo 7s ease-in-out infinite; }
}
@keyframes lgspin { from { transform: rotate(var(--r)); } to { transform: rotate(calc(var(--r) + 360deg)); } }
@keyframes lglogo { 0%, 70% { transform: perspective(600px) rotateY(0); } 100% { transform: perspective(600px) rotateY(360deg); } }
#cl-login .lg-box { position: relative; z-index: 1; width: min(100%, 500px); background: #fff; border: 1px solid #e3e5ec; border-top: 7px solid var(--red); border-radius: 18px; box-shadow: 0 22px 60px rgba(26,33,57,.14); padding: 34px 32px 30px; }
#cl-login .lg-logo { height: 92px; display: block; margin: 0 auto 12px; }
#cl-login .lg-k { text-align: center; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
#cl-login h1 { text-align: center; font-family: var(--font-num); font-weight: 700; font-size: clamp(1.6rem, 4.5vw, 2.05rem); margin: .15rem 0 1.4rem; }
#cl-login label { display: block; font-size: .88rem; font-weight: 600; margin: 1rem 0 .4rem; }
#cl-login input { width: 100%; font-size: 1rem; padding: .8rem .9rem; border: 1px solid #cfd3de; border-radius: 10px; background: #fff; }
#cl-login input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,33,57,.14); }
#cl-login button { width: 100%; margin-top: 1.5rem; font-weight: 700; font-size: 1.08rem; color: #fff; background: var(--red); border: 0; border-radius: 10px; padding: .95rem; cursor: pointer; }
#cl-login button:hover { background: var(--red-d); }
#cl-login button:disabled { opacity: .6; cursor: wait; }
#cl-login .lg-err { margin-top: .9rem; font-size: .88rem; color: var(--red); min-height: 1.3em; text-align: center; line-height: 1.4; }
#cl-login .lg-p { margin-top: 1.4rem; font-size: .85rem; color: var(--soft); text-align: center; }

/* ---------- topo ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -40px; width: 260px; height: 260px; border: 26px solid rgba(190,22,34,.35); transform: rotate(35deg); }
.hero-in { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-logo { height: 54px; background: #fff; border-radius: 10px; padding: 4px 8px; }
.hero-k { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #c9cde0; }
.hero-t { font-family: var(--font-num); font-weight: 700; font-size: 1.7rem; margin: 0; line-height: 1.1; }
.hero-acoes { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.bt-hero { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.bt-hero:hover { background: var(--red); border-color: var(--red); }
.bt-hero svg { width: 16px; height: 16px; }

/* ---------- filtros ---------- */
.filtros { max-width: 1400px; margin: -1px auto 0; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; background: #fff; border-bottom: 1px solid var(--line); }
.fg { display: flex; flex-direction: column; gap: 4px; }
.fl { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.filtros select, .filtros input { border: 1px solid #cfd3de; border-radius: 9px; padding: 7px 10px; background: #fff; min-height: 38px; }
.filtros select { min-width: 280px; }
.cidade { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--navy); background: var(--info-bg); border-radius: 999px; padding: 6px 12px; min-height: 32px; }
.cidade svg { width: 15px; height: 15px; }
.periodo { display: flex; gap: 8px; align-items: center; }
.periodo span { font-size: .85rem; color: var(--muted); }
.bt-limpar { background: none; border: 0; color: var(--red); font-weight: 600; cursor: pointer; padding: 8px 4px; }
.f-resumo { max-width: 1400px; margin: 0 auto; padding: 8px 20px 0; font-size: .82rem; color: var(--muted); }

/* ---------- estrutura ---------- */
.shell { max-width: 1440px; margin: 0 auto; padding: 14px 20px 40px 14px; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; align-items: start; }
.menu { position: sticky; top: 12px; background: linear-gradient(180deg, #1A2139 0%, #2B3558 100%); border-radius: 18px; padding: .7rem .45rem; display: flex; flex-direction: column; gap: .35rem; box-shadow: 4px 0 0 var(--red), 0 10px 28px rgba(26,33,57,.25); z-index: 5; }
.menu button { position: relative; background: none; border: 0; color: rgba(255,255,255,.8); border-radius: 12px; padding: .6rem .2rem .5rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .3rem; transition: background .15s, color .15s; }
.menu button:hover { background: rgba(255,255,255,.1); color: #fff; }
.menu button.on { background: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(190,22,34,.45); }
.menu button svg { width: 26px; height: 26px; display: block; }
.menu .mt { font-size: .66rem; font-weight: 600; text-align: center; line-height: 1.15; }
.menu .badge { position: absolute; top: 4px; right: 6px; background: #fff; color: var(--red); font-size: .66rem; font-weight: 800; border-radius: 999px; padding: 0 6px; line-height: 1.5; }
.menu button.on .badge { background: var(--navy); color: #fff; }
.painel h2 { font-family: var(--font-num); font-size: 1.25rem; margin: 4px 0 4px; display: flex; align-items: center; gap: 8px; }
.painel h2::before { content: ""; width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); }
.painel .sub { color: var(--muted); font-size: .88rem; margin: 0 0 14px; }
.painel h3 { font-size: 1rem; margin: 22px 0 10px; display: flex; align-items: center; gap: .6rem; }
.painel h3::before { content: ""; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); flex: none; }

/* ---------- caixinhas (cards de número) ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); gap: 14px; }
.kpi { --qc: #2B3558; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "i l" "v v" "d d"; align-items: center; column-gap: .6rem; row-gap: .45rem; background: #fff; border: 2px solid var(--qc); border-radius: 12px; padding: 1.1rem 1.1rem 1rem; text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.kpi:hover { transform: translateY(-3px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--qc) 28%, transparent), 0 12px 26px color-mix(in srgb, var(--qc) 22%, transparent); }
.kpi.red { --qc: #BE1622; } .kpi.ok { --qc: #1f8a4c; } .kpi.warn { --qc: #D98A00; } .kpi.perm { --qc: #5b3fa8; }
.kpi-i { grid-area: i; width: 36px; height: 36px; border-radius: 9px; background: var(--qc); color: #fff; display: flex; align-items: center; justify-content: center; }
.kpi-i svg { width: 21px; height: 21px; }
.kpi-t { grid-area: l; font-size: .92rem; font-weight: 600; line-height: 1.25; }
.kpi-v { grid-area: v; font-family: var(--font-num); font-weight: 800; font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi-s { grid-area: d; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.kpi-go { display: block; margin-top: .3rem; color: var(--qc); font-weight: 700; }
.kpi.red .kpi-v { color: var(--red); }
/* ---------- alertas ---------- */
.alertas { display: grid; gap: 8px; margin-top: 14px; }
.alerta { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; padding: 10px 12px; cursor: pointer; text-align: left; width: 100%; }
.alerta:hover { background: var(--bad-bg); }
.alerta b { font-family: var(--font-num); font-size: 1.05rem; color: var(--red); min-width: 34px; }
.alerta span { font-size: .9rem; }
.alerta .seta { margin-left: auto; color: var(--soft); }

/* ---------- caixas ---------- */
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }

/* ---------- espelho ---------- */
.legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); margin: 0 0 10px; }
.legenda i { display: inline-block; width: 13px; height: 13px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; border: 1px solid rgba(0,0,0,.08); }
.espelho-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.andar { display: grid; grid-template-columns: 46px repeat(var(--n), minmax(0, 1fr)); gap: 5px; margin-bottom: 5px; }
.andar .n { font-size: .78rem; color: var(--soft); align-self: center; }
.ap { border-radius: 8px; padding: 9px 2px; text-align: center; font-weight: 700; font-size: .85rem; cursor: pointer; border: 2px solid transparent; position: relative; }
.ap:hover { border-color: var(--navy); }
.ap.sel { border-color: var(--red); }
.ap.inad::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.st-contrato { background: #dff3ea; color: #0d5a3a; }
.st-aguard { background: #fdf0d6; color: #7a4e00; }
.st-vista { background: #e1ebf9; color: #163f78; }
.st-perm { background: #ece6fb; color: #452c8a; }
.st-disp { background: #fff; color: var(--soft); border-color: #dfe2ea; }
.st-outro { background: #eef0f4; color: var(--muted); }
.det h4 { font-family: var(--font-num); font-size: 1.15rem; margin: 0 0 6px; }
.det .pill { display: inline-block; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.det dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; font-size: .88rem; }
.det dt { color: var(--muted); }
.det dd { margin: 0; text-align: right; font-weight: 600; }
.det .vazio { color: var(--soft); font-size: .9rem; }
.esp-res { display: grid; gap: 8px; }
.esp-n { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid #eef0f4; font-size: .9rem; }
.esp-n b { font-family: var(--font-num); font-size: 1.35rem; color: var(--navy); white-space: nowrap; }
.esp-n small { font-family: var(--font); font-size: .78rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.esp-n.ok b { color: var(--ok); } .esp-n.warn b { color: #b07400; } .esp-n.red b { color: var(--red); }
.esp-det { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); }
.esp-det div { display: flex; justify-content: space-between; } .esp-det b { color: var(--fg); }
.parc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.parc { display: grid; gap: 4px; text-align: left; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.parc:hover { border-color: #c4c9d8; border-left-color: var(--red); }
.parc.on { border-color: var(--red); border-left-color: var(--red); box-shadow: 0 0 0 3px rgba(190,22,34,.15); }
.parc > b { font-size: .92rem; }
.parc-n { font-size: .75rem; color: var(--soft); }
.parc-l { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.parc-l b { font-variant-numeric: tabular-nums; color: var(--fg); }
.okc { color: var(--ok) !important; } .badc { color: var(--red) !important; } .warnc { color: #b07400 !important; }
.resumo-card { --qc: #1A2139; margin-top: 18px; background: #fff; border: 2px solid var(--navy); border-radius: 14px; padding: 14px 16px 16px; }
.resumo-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.resumo-h b { display: block; font-family: var(--font-num); font-size: 1.2rem; }
.resumo-h span:not(.kpi-i) { font-size: .82rem; color: var(--muted); }
.resumo-card .casc { border: 0; padding: 4px 0 0; }
.resumo-card .rx { background: #f8f9fb; }
.rg { background: #f8f9fb; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rg-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.rg-k { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.rg-top b { font-size: 1rem; } .rg-v { font-family: var(--font-num); font-size: 1.6rem !important; font-weight: 800; color: var(--navy); }
.rg-bar { height: 14px !important; margin-top: 10px !important; }
.rg-leg { display: flex; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.rg-leg i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.rcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }
.rc { --c: var(--navy); border: 2px solid var(--c); border-radius: 12px; overflow: hidden; background: #fff; }
.rc.canc { --c: var(--red); }
.rc-h { display: flex; justify-content: space-between; align-items: center; background: var(--c); color: #fff; padding: 9px 14px; cursor: pointer; }
.rc-h span { font-family: var(--font-num); font-weight: 700; font-size: 1.02rem; } .rc-h b { font-size: .88rem; }
.rl { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid #eef0f4; }
.rl[data-ir] { cursor: pointer; } .rl[data-ir]:hover { background: var(--bg); }
.rl-s { font-family: var(--font-num); font-weight: 800; font-size: 1.1rem; color: var(--muted); text-align: center; }
.rl-t { font-size: .9rem; font-weight: 600; } .rl-t small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); margin-top: 1px; }
.rl-v { font-family: var(--font-num); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rl.menos .rl-s, .rl.menos .rl-v { color: var(--red); } .rl.mais .rl-s, .rl.mais .rl-v { color: var(--ok); }
.rl.info .rl-v { color: var(--muted); }
.rl.res { background: #f8f9fb; border-bottom: 0; } .rl.res .rl-v { font-size: 1.12rem; color: var(--c); } .rl.res .rl-t { font-weight: 800; }
.rliq { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; background: var(--ok-bg); border: 2px solid var(--ok); border-radius: 12px; padding: 12px 16px; }
.rliq .rg-k { color: var(--ok); font-size: .82rem; } .rliq small { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.rliq b { font-family: var(--font-num); font-weight: 800; font-size: 1.7rem; color: var(--ok); white-space: nowrap; }
.raiox { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.rx { --c: var(--navy); background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; text-align: center; }
.rx-v { font-family: var(--font-num); font-weight: 800; font-size: 1.7rem; color: var(--c); line-height: 1.1; white-space: nowrap; }
.rx-t { font-size: .85rem; font-weight: 700; } .rx-s { font-size: .75rem; color: var(--muted); }
.rx.red { --c: var(--red); } .rx.warn { --c: #c27c00; } .rx.perm { --c: var(--perm); } .rx.ok { --c: var(--ok); }
.casc { display: grid; gap: 2px; padding: 8px 16px 12px; }
.casc-l { display: grid; grid-template-columns: 22px minmax(180px, 1.1fr) minmax(80px, 1fr) 160px; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 8px; }
.casc-l[data-ir] { cursor: pointer; } .casc-l[data-ir]:hover { background: var(--bg); }
.casc-s { font-family: var(--font-num); font-weight: 800; font-size: 1.2rem; color: var(--muted); text-align: center; }
.casc-t { font-size: .92rem; font-weight: 600; } .casc-t small { display: block; font-weight: 400; font-size: .76rem; color: var(--muted); }
.casc-b { height: 14px; background: var(--bg); border-radius: 999px; overflow: hidden; } .casc-b span { display: block; height: 100%; border-radius: 999px; background: var(--navy); }
.casc-v { font-family: var(--font-num); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.casc-p { font-size: .8rem; color: var(--muted); text-align: right; }
.casc-l.menos .casc-b span { background: var(--red); } .casc-l.menos .casc-v { color: var(--red); } .casc-l.menos .casc-s { color: var(--red); }
.casc-l.mais .casc-b span { background: var(--ok); } .casc-l.mais .casc-v, .casc-l.mais .casc-s { color: var(--ok); }
.casc-l.sub { border-top: 1px dashed #d5d9e3; border-radius: 0; } .casc-l.sub .casc-b span { background: #4a5a8a; }
.casc-l.fim { background: var(--ok-bg); border: 2px solid var(--ok); margin-top: 6px; } .casc-l.fim .casc-b span { background: var(--ok); } .casc-l.fim .casc-v { color: var(--ok); font-size: 1.25rem; } .casc-l.fim .casc-s { color: var(--ok); }
.casc-rod { font-size: .85rem; color: var(--muted); margin-top: 8px; padding-left: 40px; }
@media (max-width: 860px) { .casc-l { grid-template-columns: 18px minmax(0, 1fr) auto; } .casc-b, .casc-p { display: none; } }
.mini-emp { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.mini-emp button { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; }
.mini-emp button:hover { border-color: var(--navy); }
.barra { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; display: flex; margin-top: 8px; }
.barra span { display: block; height: 100%; }

/* ---------- tabelas ---------- */
.tab-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.t { border-collapse: collapse; width: 100%; font-size: .86rem; }
table.t th { position: sticky; top: 0; background: #f8f9fb; text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 8px 10px; border-bottom: 1px solid #eef0f4; vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.clic { cursor: pointer; }
table.t tr.clic:hover td { background: #f8f9fb; }
table.t .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.t tfoot td { font-weight: 700; background: #f8f9fb; }
.tag { display: inline-block; font-size: .74rem; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.tag.bad { background: var(--bad-bg); color: var(--bad); } .tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.warn { background: var(--warn-bg); color: var(--warn); } .tag.info { background: var(--info-bg); color: var(--info); } .tag.perm { background: var(--perm-bg); color: var(--perm); }
.busca { border: 1px solid #cfd3de; border-radius: 9px; padding: 8px 11px; min-width: 260px; margin-bottom: 10px; }
.nota { font-size: .8rem; color: var(--soft); margin-top: 8px; }

/* ---------- gráfico ---------- */
.graf svg { width: 100%; height: auto; display: block; }
.graf .eixo { font-size: 11px; fill: var(--muted); }
.graf-leg { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.graf-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.dica { position: fixed; pointer-events: none; z-index: 50; background: var(--navy); color: #fff; font-size: .8rem; padding: 6px 9px; border-radius: 7px; white-space: nowrap; }

/* ---------- comparação ---------- */
.sem-dados { background: #fff; border: 1px dashed #cfd3de; border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }

/* ---------- modo apresentação ---------- */
.apbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; background: var(--navy); color: #fff; border-radius: 999px; padding: 8px 10px 8px 16px; display: flex; gap: 10px; align-items: center; font-size: .85rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.apbar button { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
body.apresentando .menu, body.apresentando .filtros { display: none; }
body.apresentando .shell { grid-template-columns: minmax(0, 1fr); }

/* ---------- celular ---------- */
@media (max-width: 860px) {
  .shell { grid-template-columns: 78px minmax(0, 1fr); padding: 12px 12px 40px 8px; gap: 12px; }
  .menu button svg { width: 22px; height: 22px; } .menu .mt { font-size: .6rem; }
  .espelho-wrap { grid-template-columns: minmax(0, 1fr); }
  .filtros { padding: 12px 16px; } .filtros select { min-width: 0; width: 100%; }
  .fg { flex: 1 1 100%; }
  .hero-in { padding: 14px 16px; }
}

@media (max-width: 520px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: 10px 12px 40px; }
  .menu { position: static; flex-direction: row; overflow-x: auto; box-shadow: 0 4px 0 var(--red), 0 8px 20px rgba(26,33,57,.25); }
  .menu button { flex: 0 0 auto; min-width: 72px; }
}

/* ---------- impressão ---------- */
@media print {
  .menu, .filtros, .hero-acoes, .apbar, .busca, .bt-limpar { display: none !important; }
  .shell { grid-template-columns: 1fr; padding: 0; }
  .hero { background: #fff; color: var(--navy); border-bottom: 3px solid var(--red); }
  .hero::after { display: none; }
  .hero-k { color: var(--muted); }
  body { background: #fff; }
  .kpi, .box, .tab-wrap, .alerta { break-inside: avoid; }
  .tab-wrap { overflow: visible; }
}
