/* SOLARYS COOP — identidade "energia digital": espaço profundo + ciano elétrico + violeta + âmbar solar.
   Tema escuro (padrão) e claro. --sol = cor de destaque principal (ciano); --amber = sol de verdade. */
:root {
  color-scheme: dark;
  --bg: #04060f; --bg2: #080d1f; --panel: #0b1229; --panel2: #121b3a; --line: #1a2650; --line2: #283a72;
  --text: #ecf3ff; --muted: #94a3c9; --dim: #63719c;
  --sol: #22d3ee; --sol2: #7dd3fc; --sol-soft: rgba(34,211,238,.13); --sol-rgb: 34,211,238;
  --violet: #8b5cf6; --violet-soft: rgba(139,92,246,.16); --amber: #fbbf24;
  --accent: #818cf8; --accent-soft: rgba(129,140,248,.16);
  --ok: #34d399; --ok-soft: rgba(52,211,153,.14); --warn: #facc15; --warn-soft: rgba(250,204,21,.14);
  --risk: #f87171; --risk-soft: rgba(248,113,113,.14);
  --sem: #fb7185; --com: #60a5fa; --eco: #34d399; --eq: #8391b8;
  --s1: #38bdf8; --s2: #f97316; --s3: #10b981; --s4: #fbbf24; --s5: #ec4899; --s6: #22c55e; --s7: #a78bfa; --s8: #fb7185;
  --shadow: 0 18px 40px -12px rgba(0,0,0,.6);
  --glass: rgba(11,18,41,.62); --edge: rgba(125,211,252,.22); --edge2: rgba(139,92,246,.18);
  --r: 16px;
  --fd: 'Space Grotesk', Inter, system-ui, sans-serif; --fm: 'JetBrains Mono', ui-monospace, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3fb; --bg2: #e3eaf7; --panel: #ffffff; --panel2: #f1f5fc; --line: #dde5f3; --line2: #c7d3ea;
  --text: #0b1328; --muted: #4f5d7e; --dim: #8390ae;
  --sol: #0891b2; --sol2: #0e7490; --sol-soft: rgba(8,145,178,.11); --sol-rgb: 8,145,178;
  --violet: #7c3aed; --violet-soft: rgba(124,58,237,.10); --amber: #d97706;
  --accent: #4f46e5; --accent-soft: rgba(79,70,229,.10);
  --ok: #059669; --ok-soft: rgba(5,150,105,.11); --warn: #b98900; --warn-soft: rgba(234,179,8,.16);
  --risk: #dc2626; --risk-soft: rgba(220,38,38,.10);
  --sem: #e11d48; --com: #2563eb; --eco: #059669; --eq: #94a3b8;
  --s1: #0284c7; --s2: #ea580c; --s3: #059669; --s4: #d97706; --s5: #db2777; --s6: #16a34a; --s7: #7c3aed; --s8: #e11d48;
  --shadow: 0 14px 34px -14px rgba(15,23,42,.18);
  --glass: rgba(255,255,255,.78); --edge: rgba(8,145,178,.25); --edge2: rgba(124,58,237,.14);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 800; } h2 { font-size: 16px; font-weight: 700; } h3 { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 12px; } .num { font-variant-numeric: tabular-nums; }
.ok { color: var(--ok); } .risk { color: var(--risk); } .warn { color: var(--warn); } .solc { color: var(--sol); }

/* ---------- shell */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, var(--bg2), var(--bg)); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand .logo { width: 38px; height: 38px; border-radius: 11px; background: radial-gradient(circle at 35% 35%, var(--sol2), var(--sol)); display: grid; place-items: center; box-shadow: 0 0 24px rgba(245,165,36,.45); }
.brand .logo svg { color: #241500; }
.brand b { display: block; font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; transition: .15s; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.on { background: var(--sol-soft); color: var(--sol); box-shadow: inset 3px 0 0 var(--sol); }
.side .rodape { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.user { display: flex; align-items: center; gap: 9px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--sol); }
main { padding: 26px 30px 90px; min-width: 0; max-width: 1560px; width: 100%; margin: 0 auto; }
.topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.topo .acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bnav { display: none; }

/* ---------- componentes */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-21 { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font: 600 13.5px Inter, sans-serif; cursor: pointer; transition: .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--sol); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.pri { background: linear-gradient(135deg, var(--sol2), var(--sol)); color: #241500; border-color: transparent; box-shadow: 0 6px 18px rgba(245,165,36,.3); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel2); }
.btn.danger { background: var(--risk-soft); color: var(--risk); border-color: transparent; }
.btn.okb { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.btn.icon { padding: 0; width: 40px; }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
input, select, textarea { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: 14px Inter, sans-serif; outline: none; transition: .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--sol); box-shadow: 0 0 0 3px var(--sol-soft); }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; }
label.f small { font-weight: 400; color: var(--dim); }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 14px; }
.form .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.check input { width: 18px; min-height: 18px; accent-color: var(--sol); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pill.paga { background: var(--ok-soft); color: var(--ok); } .pill.aberta { background: var(--accent-soft); color: var(--accent); }
.pill.vencida { background: var(--risk-soft); color: var(--risk); } .pill.cancelada { background: var(--panel2); color: var(--dim); }
.pill.neutra { background: var(--panel2); color: var(--muted); } .pill.solp { background: var(--sol-soft); color: var(--sol); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font: 600 12.5px Inter; cursor: pointer; min-height: 34px; }
.chip.on { background: var(--sol-soft); border-color: var(--sol); color: var(--sol); }

/* KPIs */
.kpi { position: relative; overflow: hidden; cursor: default; transition: .2s; }
.kpi.click { cursor: pointer; } .kpi.click:hover { transform: translateY(-2px); border-color: var(--line2); }
.kpi .rot { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 7px; }
.kpi .val { font-size: 27px; font-weight: 800; margin: 8px 0 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.kpi::after { content: ""; position: absolute; inset: auto -30px -40px auto; width: 120px; height: 120px; border-radius: 50%; background: var(--glow, var(--sol-soft)); filter: blur(10px); opacity: .7; }
.kpi .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--glow, var(--sol-soft)); color: var(--c, var(--sol)); }
.delta { font-weight: 700; } .delta.up { color: var(--ok); } .delta.down { color: var(--risk); }

/* hero sem × com */
.hero { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.hero .bx { border-radius: var(--r); padding: 16px 18px; border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; }
.hero .bx::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.hero .bx .rot { font-size: 11.5px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: .06em; }
.hero .bx .val { font-size: 30px; font-weight: 800; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.hero .op { display: grid; place-items: center; font-size: 22px; font-weight: 800; color: var(--dim); }

/* tabela */
.tabela { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; transition: .12s; } tr.click:hover td { background: var(--panel2); }
th.ord { cursor: pointer; } th[data-dir=asc]::after { content: " ▲"; } th[data-dir=desc]::after { content: " ▼"; }

/* alertas / insights */
.lista { display: flex; flex-direction: column; gap: 8px; }
.alerta { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--panel2); border-left: 3px solid var(--c, var(--accent)); font-size: 13px; cursor: pointer; transition: .15s; }
.alerta:hover { transform: translateX(3px); }
.alerta.risco { --c: var(--risk); } .alerta.atencao { --c: var(--warn); } .alerta.info { --c: var(--accent); }
.alerta svg { color: var(--c); flex: none; margin-top: 1px; }
.insight { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.insight:last-child { border: 0; }
.insight svg { color: var(--sol); flex: none; margin-top: 2px; }

/* gráficos */
.chart { width: 100%; position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart svg text { fill: var(--dim); font: 11px Inter, sans-serif; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover { fill: var(--text); opacity: .06; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tip { position: fixed; z-index: 100; pointer-events: none; background: var(--panel); border: 1px solid var(--line2); color: var(--text); padding: 9px 11px; border-radius: 10px; font-size: 12.5px; box-shadow: var(--shadow); display: none; max-width: 280px; }
.tip b { display: block; margin-bottom: 3px; }
.tip .l { display: flex; justify-content: space-between; gap: 14px; } .tip .l i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.rbar { display: grid; grid-template-columns: minmax(90px, 200px) 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; padding: 5px 0; cursor: pointer; border-radius: 8px; }
.rbar:hover { background: var(--panel2); }
.rbar .track { height: 10px; border-radius: 99px; background: var(--panel2); overflow: hidden; display: flex; gap: 2px; }
.rbar .track i { display: block; height: 100%; border-radius: 4px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.rbar .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* passos (memória de cálculo) */
.passos { display: flex; flex-direction: column; }
.passo { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.passo .f { grid-column: 1; font-size: 11.5px; color: var(--dim); }
.passo .v { grid-row: 1; grid-column: 2; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.passo.sem { background: var(--risk-soft); border-radius: 8px; font-weight: 800; } .passo.sem .v { color: var(--sem); }
.passo.com { background: var(--accent-soft); border-radius: 8px; font-weight: 800; } .passo.com .v { color: var(--com); }
.passo.eco { background: var(--ok-soft); border-radius: 8px; font-weight: 800; } .passo.eco .v { color: var(--eco); }

/* importação */
.drop { border: 2px dashed var(--line2); border-radius: 18px; padding: 38px 20px; text-align: center; background: radial-gradient(ellipse at top, var(--sol-soft), transparent 70%); transition: .2s; cursor: pointer; }
.drop.over { border-color: var(--sol); transform: scale(1.01); background: var(--sol-soft); }
.drop .big { width: 64px; height: 64px; border-radius: 18px; background: var(--sol-soft); color: var(--sol); display: grid; place-items: center; margin: 0 auto 12px; }
.prev { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--panel); display: grid; gap: 12px; animation: sobe .35s ease both; }
@keyframes sobe { from { opacity: 0; transform: translateY(8px); } }
.mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.mini > div { background: var(--panel2); border-radius: 10px; padding: 8px 10px; }
.mini small { display: block; color: var(--dim); font-size: 11px; } .mini b { font-variant-numeric: tabular-nums; }

/* modal / toast */
.modal-bg { position: fixed; inset: 0; background: rgba(3,7,18,.6); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: sobe .2s; }
.modal.wide { width: min(980px, 100%); }
.modal header, .modal footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; }
.modal header { border-bottom: 1px solid var(--line); } .modal footer { border-top: 1px solid var(--line); justify-content: flex-end; flex-wrap: wrap; }
.modal .body { padding: 18px; overflow: auto; }
.toast-box { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 90; }
.toast { background: var(--panel); border: 1px solid var(--line2); border-left: 4px solid var(--ok); padding: 11px 15px; border-radius: 10px; box-shadow: var(--shadow); animation: sobe .2s; max-width: 360px; }
.toast.err { border-left-color: var(--risk); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at 20% 10%, rgba(245,165,36,.18), transparent 50%), radial-gradient(ellipse at 90% 90%, rgba(57,135,229,.18), transparent 50%), var(--bg); }
.login .card { width: min(400px, 100%); padding: 30px; }
.vazio { text-align: center; padding: 40px 16px; color: var(--muted); }
.vazio .big { width: 70px; height: 70px; border-radius: 20px; background: var(--sol-soft); color: var(--sol); display: grid; place-items: center; margin: 0 auto 14px; }
.sk { background: linear-gradient(90deg, var(--panel) 25%, var(--panel2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); min-height: 110px; }
@keyframes sk { to { background-position: -200% 0; } }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
input[type=range] { padding: 0; min-height: 28px; accent-color: var(--sol); background: transparent; border: 0; box-shadow: none; }
.sol-anim { animation: gira 24s linear infinite; transform-origin: center; } @keyframes gira { to { transform: rotate(360deg); } }
.sep { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------- responsivo */
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-21 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  main { padding: 16px 16px 92px; }
  .bnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--bg2); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); text-decoration: none; padding: 4px 6px; min-width: 52px; border-radius: 10px; font-weight: 600; }
  .bnav a.on { color: var(--sol); background: var(--sol-soft); }
  .g2, .g3 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; } .hero .op { display: none; }
  .mtop { display: flex !important; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .val { font-size: 20px; } .card { padding: 14px; }
  h1 { font-size: 19px; }
  .rbar { grid-template-columns: minmax(70px, 110px) 1fr auto; }
  .hide-sm { display: none; }
}
.mtop { display: none; align-items: center; justify-content: space-between; margin: -4px 0 14px; }
.mtop-wrap { display: none; }
@media (max-width: 900px) { .mtop-wrap { display: block; } }
tr.grupo td { background: var(--panel2); border-bottom: 1px solid var(--line2); padding-top: 9px; padding-bottom: 9px; }

/* ====== responsividade completa ====== */
/* monitores grandes: mais respiro e conteúdo centralizado */
@media (min-width: 1800px) { main { max-width: 1760px; padding: 32px 40px 90px; } html, body { font-size: 15px; } .kpi .val { font-size: 30px; } }
@media (min-width: 2400px) { main { max-width: 2100px; } html, body { font-size: 16px; } }
/* notebook 900–1180: KPIs em 2 colunas, menu lateral mais estreito */
@media (min-width: 901px) and (max-width: 1180px) { .app { grid-template-columns: 210px 1fr; } main { padding: 22px 22px 80px; } .hero .bx .val { font-size: 24px; } }
/* tablet */
@media (min-width: 601px) and (max-width: 900px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
/* celular e tablet: tabelas viram cartões */
@media (max-width: 900px) {
  .tabela { overflow: visible; }
  .tabela table, .tabela tbody, .tabela tr, .tabela td { display: block; width: 100%; }
  .tabela thead { display: none; }
  .tabela tbody tr:not(.grupo) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
  .tabela tbody tr:not(.grupo) td { border: 0; padding: 0; text-align: left !important; min-width: 0; }
  .tabela td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
  .tabela td.m-titulo { grid-column: 1 / -1; font-size: 15px; }
  .tabela td.m-acoes { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; border-top: 1px solid var(--line) !important; padding-top: 8px !important; }
  .tabela td.m-acoes .btn.icon { width: 44px; min-height: 40px; }
  .tabela td.m-chk { grid-column: auto; align-self: center; }
  .tabela td.m-chk input { width: 22px; min-height: 22px; }
  .tabela tr.grupo { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 12px; margin: 6px 0 8px; border-radius: 10px; background: var(--panel2); }
  .tabela tr.grupo td { border: 0; padding: 0; background: transparent; width: auto; }
  .tabela tr.grupo td:empty { display: none; }
  .card:has(> .tabela) { padding: 8px !important; background: transparent; border-color: transparent; box-shadow: none; }
  tr.click:hover td { background: transparent; }
  /* janelas como painel inferior */
  .modal-bg { padding: 0; align-items: end; }
  .modal, .modal.wide { width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; }
  .modal footer { position: sticky; bottom: 0; background: var(--panel); }
  .modal footer .btn { flex: 1 1 auto; }
  .topo .acoes { width: 100%; } .topo .acoes > select, .topo .acoes > input { flex: 1 1 100%; width: 100% !important; max-width: none !important; }
  .toast-box { left: 12px; right: 12px; bottom: 84px; } .toast { max-width: none; }
  .tip { max-width: calc(100vw - 24px); }
}
@media (hover: none) { .btn:hover { transform: none; } .kpi.click:hover { transform: none; } }
@media (min-width: 601px) and (max-width: 900px) { .tabela tbody tr:not(.grupo) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* janela como painel inferior só no celular; no tablet volta a ser centralizada */
@media (min-width: 701px) and (max-width: 900px) { .modal-bg { padding: 16px; align-items: center; } .modal, .modal.wide { border-radius: 18px; width: min(980px, 100%); } .modal footer .btn { flex: 0 0 auto; } }
/* notebook (901–1280): menu lateral só com ícones e tabelas compactas para caber sem rolagem */
@media (min-width: 901px) and (max-width: 1280px) {
  .app { grid-template-columns: 72px 1fr; }
  .side { padding: 14px 10px; align-items: center; }
  .side .brand { padding: 4px 0 14px; } .side .brand > div:not(.logo) { display: none; }
  .nav a { justify-content: center; padding: 11px; } .nav a span { display: none; }
  .nav a.on { box-shadow: inset 0 -3px 0 var(--sol); }
  .side .rodape { align-items: center; padding: 10px 0 0; } .side .user > div:not(.avatar) { display: none; }
  .side .rodape > div:last-child { flex-direction: column; } .side .rodape .btn { padding: 0; width: 40px; font-size: 0; gap: 0; }
  .tabela table { font-size: 12.5px; } .tabela th, .tabela td { padding: 9px 6px; } .tabela th { font-size: 10px; letter-spacing: .03em; }
  .tabela .btn.icon.sm { width: 32px; }
}
@media (min-width: 901px) and (max-width: 1280px) {
  .tabela td:last-child { white-space: normal !important; width: 76px; } .tabela td:last-child .btn.icon.sm { width: 30px; min-height: 30px; }
  .tabela th { white-space: normal; }
}
.passo.pagar { background: var(--sol-soft); border-radius: 8px; font-weight: 800; border: 1px solid var(--sol); } .passo.pagar .v { color: var(--sol); font-size: 15px; }
.alerta.risco b { color: var(--risk); }
