/* Multiplica · por Iuven
   Estilo conforme o "Padrão de layout dos sistemas Iuven" (09/11/2026): cores §2, fonte §3, medidas §4,
   menu e barra do topo §5, páginas §6, pop-ups §7, mensagens §8, botões §10. Só tema claro. */

@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fontes/figtree-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fontes/figtree-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy-900:#0f1b30; --navy-800:#16233d;
  --green-500:#6fbf3f; --green-600:#559930; --green-050:#eef7e6;
  --bg:#f3f5f7; --card:#ffffff; --line:#e4e8ec;
  --text-1:#1a2233; --text-2:#6b7688; --text-3:#98a1af;
  --red-500:#d1453d; --red-050:#fbeae9; --red-800:#8a2e29;
  --amber-500:#e0982d; --amber-050:#fbf2e3; --amber-800:#7a5518;
  --blue-050:#e9f1fc; --blue-800:#1b4d8c; --blue-300:#9dbdea;
  --neutro-050:#eef1f4;
  --radius:10px;
  --font-ui:'Figtree','Inter','Helvetica Neue',Arial,sans-serif;
  --sidebar-w:180px; --topbar-h:56px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text-1); font-family: var(--font-ui); font-size: 12.5px; line-height: 1.42; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a.link { color: var(--green-600); } a.link:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 1px; }
h1, h2, h3, h4, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.t2 { color: var(--text-2); } .t3 { color: var(--text-3); }
.xs { font-size: 11px; line-height: 1.35; } .md { font-size: 13.5px; } .lg { font-size: 15px; }
.b600 { font-weight: 600; } .b650 { font-weight: 650; } .b700 { font-weight: 700; }
.dir { text-align: right; }
.pos { color: var(--green-600); } .neg { color: var(--red-800); }
[hidden] { display: none !important; }

/* ---------- casca ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--navy-900); color: #c2cddb; display: flex; flex-direction: column; overflow-y: auto; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 14px; }
.side-brand img { height: 26px; width: auto; display: block; }
.side-fechar { display: none; background: none; border: 0; color: #c2cddb; padding: 4px; }
.side-scroll { flex: 1; padding: 2px 6px 16px; display: flex; flex-direction: column; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; color: #aeb9c9; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.ativo { color: #fff; }
.nav-item.ativo svg { color: var(--green-500); }
.nav-item.ativo::before { content: ''; position: absolute; left: -6px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green-500); }
.side-rodape { padding: 10px 12px 14px; font-size: 11px; color: #6f7d93; display: flex; flex-direction: column; gap: 6px; }
.side-rodape button { background: none; border: 1px solid #24395c; color: #aeb9c9; border-radius: 7px; padding: 6px 8px; font-size: 11px; font-weight: 600; text-align: left; }
.side-rodape button:hover { color: #fff; border-color: #4d6187; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--topbar-h); background: var(--card); display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.topbar .hamb { display: none; background: none; border: 0; padding: 6px; color: var(--text-2); }
.busca-geral { flex: 1 1 auto; max-width: 520px; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; height: 34px; color: var(--text-3); cursor: text; }
.busca-geral input { flex: 1; border: 0; background: transparent; outline: 0; color: var(--text-1); min-width: 0; }
.busca-geral kbd { font: inherit; font-size: 11px; color: var(--text-3); }
.topbar .espaco { flex: 1; }
.sel-empresa { width: 260px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--card); font-weight: 600; font-size: 12.5px; color: var(--text-1); }
.sino { position: relative; background: none; border: 0; padding: 6px; color: var(--text-3); display: flex; }
.sino.pendente { color: var(--amber-500); }
.sino .n { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; border-radius: 8px; background: var(--red-500); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.avatar-user { width: 32px; height: 32px; border-radius: 50%; background: var(--green-600); color: #fff; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; border: 0; }
.menu-flutuante { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(15,27,48,.12); padding: 6px; z-index: 30; min-width: 240px; }
.menu-flutuante .titulo { padding: 8px 10px 6px; font-weight: 650; font-size: 12.5px; }
.menu-flutuante .sep { height: 1px; background: var(--line); margin: 4px 0; }
.menu-flutuante button, .menu-flutuante a { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 7px; text-align: left; font-size: 12.5px; color: var(--text-1); }
.menu-flutuante button:hover, .menu-flutuante a:hover { background: var(--bg); }
.menu-flutuante svg { width: 15px; height: 15px; color: var(--text-2); }
.conteudo { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; flex: 1; }

@media (max-width: 991px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 240px; transform: translateX(-100%); transition: transform .15s; z-index: 40; }
  .side.aberto { transform: none; }
  .side-fechar { display: flex; }
  .topbar .hamb { display: flex; }
  .gaveta-fundo { position: fixed; inset: 0; background: rgba(15,27,48,.4); z-index: 39; }
}
@media (max-width: 767px) { .sel-empresa { display: none; } .busca-geral kbd { display: none; } }

/* ---------- cabeçalho de página ---------- */
.cab { display: flex; flex-direction: column; gap: 4px; margin-bottom: 2px; }
.cab .caminho { font-size: 11px; color: var(--text-2); display: flex; gap: 6px; flex-wrap: wrap; }
.cab .caminho a { color: var(--text-3); } .cab .caminho a:hover { color: var(--green-600); text-decoration: underline; }
.cab .linha-titulo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cab .titulo { display: flex; align-items: center; gap: 10px; }
.cab h1 { font-size: 16px; font-weight: 650; line-height: 1.3; }
.cab .botoes { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; }
.cab .sub { font-size: 12.5px; color: var(--text-2); }

/* ---------- cartões, grades ---------- */
.cartao { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.cartao.p20 { padding: 20px; }
.secao-titulo { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lateral-titulo { font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 16px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
@media (max-width: 991px) { .c3 { grid-column: span 6; } .c4, .c6, .c8 { grid-column: span 12; } }
@media (max-width: 767px) { .c3 { grid-column: span 12; } }
.duas { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 991px) { .duas { grid-template-columns: minmax(0, 1fr); } }

/* página de módulo */
.hub-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.hub-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; transition: .15s; color: inherit; }
.hub-card:hover { border-color: var(--green-500); box-shadow: 0 4px 14px rgba(15,27,48,.07); transform: translateY(-1px); }
.hub-card svg { width: 22px; height: 22px; color: var(--green-600); }
.hub-card .hub-title { font-weight: 650; font-size: 14.5px; }
.hub-card .hub-desc { color: var(--text-2); font-size: 12.5px; line-height: 1.35; }
.hub-card .hub-count { font-size: 20px; font-weight: 600; margin-top: 4px; }
.hub-grupo { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 22px 0 10px; }
.hub-grupo:first-child { margin-top: 0; }

/* indicadores */
.kpis { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi .rot { font-size: 11px; font-weight: 500; color: var(--text-2); }
.kpi .val { font-size: 24px; font-weight: 600; line-height: 1.2; }
.kpi .var { font-size: 11px; display: flex; align-items: center; gap: 4px; }
.kpi.atencao { background: var(--amber-050); border-color: var(--amber-500); }
.kpi.problema { background: var(--red-050); border-color: var(--red-500); }
.faixa { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.faixa .item { display: flex; flex-direction: column; gap: 2px; padding: 4px 8px; border-radius: 8px; border: 1px solid transparent; background: none; text-align: left; }
.faixa .item .rot { font-size: 11.5px; color: var(--text-2); }
.faixa .item .val { font-size: 18px; font-weight: 600; }
.faixa .item.filtra { cursor: pointer; }
.faixa .item.filtra:hover { background: var(--bg); }
.faixa .item.ativo { background: var(--green-050); border-color: var(--green-500); }
.faixa .direita { margin-left: auto; }
.saldos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.saldo-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.saldo-box.atencao { background: var(--amber-050); border-color: var(--amber-500); }
.saldo-box .rot { font-size: 11.5px; color: var(--text-2); }
.saldo-box .val { font-size: 20px; font-weight: 600; margin-top: 2px; }
.resumo-linha { display: flex; justify-content: space-between; padding: 7px 2px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.resumo-linha.total { font-weight: 700; border-bottom: 2px solid var(--line); }

/* ---------- lista ---------- */
.acoes-lista { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.busca { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; height: 36px; flex: 1 1 240px; max-width: 520px; color: var(--text-3); }
.busca input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text-1); min-width: 0; }
.tabela-cartao { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tabela-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabela-topo .qtd { font-size: 12.5px; color: var(--text-2); }
.data-grid { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 640px; }
th { text-align: left; font-size: 11px; font-weight: 600; color: var(--text-2); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; letter-spacing: .02em; text-transform: uppercase; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th.dir, td.dir { text-align: right; }
tbody tr.clicavel { cursor: pointer; } tbody tr.clicavel:hover td { background: var(--bg); }
.cell-squeeze { max-width: 1px; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.paginacao { display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); }
.paginacao button { min-width: 30px; height: 30px; border: 1px solid var(--line); background: var(--card); border-radius: 7px; font-size: 12px; }
.paginacao button.ativo { background: var(--green-600); color: #fff; border-color: var(--green-600); }

/* lista com detalhe ao lado */
.master-detail { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 820px) { .master-detail { grid-template-columns: minmax(0, 1fr); } }
.list-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-row { display: block; padding: 10px 14px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--line); color: var(--text-1); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--bg); }
.list-row.ativo { background: var(--green-050); box-shadow: inset 3px 0 0 var(--green-500); }
.list-row .code { font-size: 11px; color: var(--text-3); margin-right: 8px; }

/* ---------- etiquetas, selos, faixas ---------- */
.etq { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.etq.positivo { background: var(--green-050); color: var(--green-600); border-color: var(--green-500); }
.etq.atencao { background: var(--amber-050); color: var(--amber-800); border-color: var(--amber-500); }
.etq.problema { background: var(--red-050); color: var(--red-800); border-color: var(--red-500); }
.etq.info { background: var(--blue-050); color: var(--blue-800); border-color: var(--blue-300); }
.etq.neutro { background: var(--neutro-050); color: var(--text-2); border-color: var(--line); }
.selo { display: inline-block; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.selo.verde { background: var(--green-600); } .selo.navy { background: var(--navy-800); } .selo.cinza { background: var(--text-2); } .selo.azul { background: var(--blue-800); } .selo.ambar { background: var(--amber-500); } .selo.vermelho { background: var(--red-500); }
.marcador { font-size: 11px; font-weight: 500; color: var(--text-2); background: var(--neutro-050); border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); border: 1px solid; font-size: 12.5px; }
.aviso svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.aviso b { display: block; margin-bottom: 2px; }
.aviso.positivo { background: var(--green-050); border-color: var(--green-500); color: var(--text-1); } .aviso.positivo svg { color: var(--green-600); }
.aviso.atencao { background: var(--amber-050); border-color: var(--amber-500); } .aviso.atencao svg { color: var(--amber-800); }
.aviso.problema { background: var(--red-050); border-color: var(--red-500); } .aviso.problema svg { color: var(--red-800); }
.aviso.info { background: var(--blue-050); border-color: var(--blue-300); } .aviso.info svg { color: var(--blue-800); }
.dica { background: #f7f9fb; border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.dica svg { width: 18px; height: 18px; color: var(--amber-500); flex-shrink: 0; }
.dica b { color: var(--text-1); }
.semaforo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.semaforo::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); }
.semaforo.apertada::before { background: var(--amber-500); } .semaforo.abaixo::before { background: var(--red-500); }
.barra { height: 6px; border-radius: 3px; background: var(--neutro-050); overflow: hidden; }
.barra > div { height: 100%; background: var(--green-600); border-radius: 3px; }
.barra.atencao > div { background: var(--amber-500); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text-1); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: .15s; }
.btn svg { width: 15px; height: 15px; }
.btn:hover { background: var(--bg); }
.btn.principal { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.btn.principal:hover { background: #467f27; }
.btn.discreto { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.discreto:hover { background: var(--bg); color: var(--text-1); }
.btn.risco { background: var(--red-500); border-color: var(--red-500); color: #fff; }
.btn.risco:hover { background: #b83a33; }
.btn.risco-claro { background: var(--red-050); border-color: var(--red-500); color: var(--red-800); }
.btn.pequeno { height: 30px; padding: 0 10px; font-size: 12px; }
.btn.icone { width: 36px; padding: 0; }
.btn.icone.pequeno { width: 30px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.carregando { pointer-events: none; opacity: .8; }
.btn.carregando::before { content: ''; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.motivo { font-size: 11px; color: var(--text-3); }

/* ---------- campos ---------- */
.campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.campo label { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.campo label .obr { color: var(--red-500); }
.campo input, .campo select, .campo textarea { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--card); font-size: 12.5px; color: var(--text-1); width: 100%; }
.campo textarea { height: auto; min-height: 72px; padding: 8px 10px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 0; border-color: var(--green-600); box-shadow: 0 0 0 2px var(--green-050); }
.campo input[readonly], .campo input:disabled, .campo select:disabled, .campo textarea[readonly] { background: var(--bg); color: var(--text-1); }
.campo .erro { font-size: 11px; color: var(--red-800); }
.campo input.invalido { border-color: var(--red-500); }
.campo .com-lupa { position: relative; }
.campo .com-lupa input { padding-right: 34px; }
.campo .com-lupa button { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border: 0; background: none; color: var(--text-2); display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.campo .com-lupa button:hover { background: var(--bg); color: var(--green-600); }
.interruptor { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; }
.interruptor input { appearance: none; width: 34px; height: 20px; border-radius: 10px; background: #cfd6de; position: relative; transition: .15s; margin: 0; }
.interruptor input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; }
.interruptor input:checked { background: var(--green-600); }
.interruptor input:checked::after { left: 16px; }
.interruptor input:disabled { opacity: .9; cursor: not-allowed; }
.check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--green-600); margin: 0; }

/* rodapé fixo da ficha */
.rodape-fixo { position: sticky; bottom: 0; margin: 4px -20px -20px; padding: 12px 20px; background: rgba(255,255,255,.92); backdrop-filter: blur(4px); border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; align-items: center; z-index: 5; }

/* ---------- pop-ups ---------- */
.modal-fundo { position: fixed; inset: 0; background: rgba(15,27,48,.45); display: none; align-items: flex-start; justify-content: center; padding: 60px 16px 16px; z-index: 50; overflow-y: auto; }
.modal-fundo.aberto { display: flex; }
.modal-fundo.centro { align-items: center; padding-top: 16px; }
.modal { background: var(--card); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(15,27,48,.25); width: 100%; display: flex; flex-direction: column; }
.modal.p { max-width: 380px; } .modal.m { max-width: 440px; } .modal.g { max-width: 620px; } .modal.xg { max-width: 780px; }
.modal-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.modal-cab h2 { font-size: 13.5px; font-weight: 700; }
.modal-cab .sub { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.modal-cab .fechar { background: none; border: 0; color: var(--text-3); padding: 2px; display: flex; border-radius: 6px; }
.modal-cab .fechar:hover { background: var(--bg); color: var(--text-1); }
.modal-corpo { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.modal-rodape { display: flex; justify-content: flex-end; gap: 10px; padding: 4px 18px 16px; flex-wrap: wrap; }
.modal .erro-geral { color: var(--red-800); font-size: 12.5px; background: var(--red-050); border: 1px solid var(--red-500); border-radius: 8px; padding: 8px 10px; }
.consequencias { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.consequencias li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; }
.consequencias li svg { width: 15px; height: 15px; color: var(--blue-800); flex-shrink: 0; margin-top: 1px; }
.painel-lateral { position: fixed; top: 0; right: 0; bottom: 0; width: 780px; max-width: 100%; background: var(--card); box-shadow: -12px 0 40px rgba(15,27,48,.2); z-index: 50; transform: translateX(100%); transition: transform .15s; display: flex; flex-direction: column; }
.painel-lateral.aberto { transform: none; }

/* avisos rápidos (topo, centro) */
.toasts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green-600); border-radius: var(--radius); padding: 10px 14px; box-shadow: 0 8px 24px rgba(15,27,48,.12); animation: desce .15s ease-out; }
.toast.recusa { border-left-color: var(--red-500); }
.toast b { display: block; font-size: 12.5px; }
.toast span { font-size: 12px; color: var(--text-2); }
@keyframes desce { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- mensagens de tela ---------- */
.vazio { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.vazio .circulo { width: 54px; height: 54px; border-radius: 50%; background: var(--neutro-050); display: flex; align-items: center; justify-content: center; color: var(--text-2); margin-bottom: 4px; }
.vazio .circulo svg { width: 30px; height: 30px; }
.vazio .circulo.problema { color: var(--red-500); } .vazio .circulo.verde { color: var(--green-600); }
.vazio b { font-size: 13.5px; }
.vazio p { font-size: 12.5px; color: var(--text-2); max-width: 380px; }
.esqueleto { background: linear-gradient(90deg, #e9edf1 25%, #f3f5f7 50%, #e9edf1 75%); background-size: 200% 100%; animation: brilha 1.2s infinite; border-radius: 6px; }
@keyframes brilha { to { background-position: -200% 0; } }
.vazio-linha td { text-align: center; padding: 28px; color: var(--text-2); }

/* ---------- gráfico de barras ---------- */
.barras { display: flex; align-items: flex-end; gap: 14px; height: 180px; border-bottom: 1px solid var(--line); padding: 0 6px; }
.barras .col { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.barras .col .b { width: 100%; max-width: 56px; background: #c2e3a0; border-radius: 4px 4px 0 0; }
.barras .col.atual .b { background: var(--green-600); }
.barras .col .v { font-size: 11px; font-weight: 600; opacity: 0; }
.barras .col:hover .v, .barras .col.atual .v { opacity: 1; }
.barras-eixo { display: flex; gap: 14px; padding: 4px 6px 0; }
.barras-eixo span { flex: 1 1 0; text-align: center; font-size: 11px; color: var(--text-2); }
.barras-eixo span.atual { color: var(--text-1); font-weight: 600; }

/* ---------- tela de entrada ---------- */
.entrada-fundo { position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse 60% 50% at 50% 42%, rgba(30,52,82,.55) 0%, transparent 70%), linear-gradient(180deg, #0c1728 0%, #0a1422 60%, #08111d 100%); }
.entrada-fundo::before { content: ''; position: absolute; z-index: -1; pointer-events: none; top: -6vh; right: -9vw; width: min(62vw, 980px); aspect-ratio: 266 / 210; background: url('img/marca-icone.png') no-repeat center / contain; opacity: .06; filter: saturate(.35); }
.entrada-ondas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.entrada-coluna { width: 100%; max-width: 372px; display: flex; flex-direction: column; align-items: center; }
.entrada-marca { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0 0 22px; }
.entrada-marca img { height: 38px; }
.entrada-marca .modulo { color: var(--green-500); font-weight: 600; font-size: 19px; letter-spacing: .2px; margin-top: 5px; }
.entrada-cartao { width: 100%; background: var(--card); border-radius: 14px; padding: 28px 26px 24px; box-shadow: 0 18px 48px rgba(6,12,24,.38); display: flex; flex-direction: column; gap: 12px; }
.entrada-cartao h1 { font-size: 19px; font-weight: 650; }
.entrada-cartao .sub { font-size: 12.5px; color: var(--text-2); margin-top: -8px; margin-bottom: 8px; }
.entrada-cartao .btn { height: 38px; }

/* ---------- apps (marca da loja, fora da casca Iuven) ---------- */
body.app-loja { background: #e9ecf0; }
.palco { min-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 16px; }
.palco .controle { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 400px; }
.palco .controle select { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; font-weight: 600; flex: 1 1 180px; }
.fone { width: 100%; max-width: 390px; height: 800px; background: #f6f7f9; border-radius: 36px; border: 8px solid #1a2233; overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: 0 20px 60px rgba(15,27,48,.25); }
.fone .cabeca { color: #fff; padding: 34px 18px 20px; display: flex; flex-direction: column; gap: 14px; border-radius: 0 0 24px 24px; background: var(--marca, #2f7d4f); }
.fone .cabeca .marca-loja { display: flex; align-items: center; gap: 10px; }
.fone .cabeca .marca-loja .sigla { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.fone .cabeca .nome-loja { font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.fone .cabeca .sub { color: rgba(255,255,255,.78); font-size: 11.5px; }
.fone .cabeca .saldo { font-size: 38px; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.fone .corpo { flex: 1; overflow-y: auto; padding: 12px 14px 90px; display: flex; flex-direction: column; gap: 10px; }
.fone .cartao { padding: 14px; border-radius: 14px; }
.fone .abas { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 8px 6px 18px; }
.fone .abas button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 60px; min-height: 44px; border: 0; background: transparent; color: var(--text-2); font-size: 11px; font-weight: 600; }
.fone .abas button svg { width: 20px; height: 20px; }
.fone .abas button.ativo { color: var(--marca, #2f7d4f); font-weight: 700; }
.fone .tela { display: none; flex-direction: column; gap: 10px; } .fone .tela.ativa { display: flex; }
.fone .chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.fone .chips button { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text-2); font-weight: 600; font-size: 12px; white-space: nowrap; }
.fone .chips button.ativo { background: var(--marca, #2f7d4f); border-color: var(--marca, #2f7d4f); color: #fff; }
.fone .btn-marca { background: var(--marca, #2f7d4f); border-color: var(--marca, #2f7d4f); color: #fff; }
.fone .btn-marca:hover { filter: brightness(.92); background: var(--marca, #2f7d4f); }
.fone .cupom-grande { font-size: 24px; font-weight: 700; letter-spacing: .06em; color: var(--marca, #2f7d4f); }
.fone .produto { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.fone .produto .foto { height: 70px; border-radius: 10px; background: color-mix(in srgb, var(--marca, #2f7d4f) 12%, #fff); display: flex; align-items: center; justify-content: center; color: var(--marca, #2f7d4f); }
.fone .produto .foto.off { background: var(--neutro-050); color: var(--text-3); }
.fone .mov { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.fone .mov .ico { width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--marca, #2f7d4f) 12%, #fff); color: var(--marca, #2f7d4f); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fone .mov .ico.neutro { background: var(--neutro-050); color: var(--text-2); }
.fone .mov .ico.ambar { background: var(--amber-050); color: var(--amber-800); }
.fone .mov .texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fone .mov .val { font-weight: 700; font-size: 14px; white-space: nowrap; }
.fone .mov .val.mais { color: var(--green-600); }
.fone .pill-marca { background: color-mix(in srgb, var(--marca, #2f7d4f) 14%, #fff); color: var(--marca, #2f7d4f); border-color: transparent; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
