/* Central de Gestão Fiel Service — versão 1.
   Fundo escuro, lima da marca como destaque, cartões claros para leitura rápida. */

@font-face { font-family: "Outfit"; font-weight: 200 800; font-display: swap; src: url("fonts/outfit-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400 600; font-display: swap; src: url("fonts/figtree-latin.woff2") format("woff2"); }

:root {
  --fundo: #0A0D0B;
  --lateral: #0C0F0D;
  --cartao: #111512;
  --cartao-2: #151A16;
  --borda: #232A24;
  --borda-2: #2C352D;
  --texto: #ECF0E8;
  --texto-2: #C3CABD;
  --texto-3: #8E968A;
  --lima: #93C926;
  --lima-forte: #A6DD34;
  --lima-escuro: #6F9A17;
  --musgo: #2C5A12;
  --musgo-2: #1D3A0D;
  --claro: #F6F7F4;
  --claro-2: #ECEEE9;
  --claro-borda: #DFE3DA;
  --tinta: #151814;
  --tinta-2: #5B6157;
  --azul: #5AA0F2;
  --vermelho: #FF6B57;
  --vermelho-fundo: #3A1612;
  --amarelo: #F4C21B;
  --serie-a: #73A21A;
  --serie-b: #5A82D0;
  --f-titulo: "Outfit", "Segoe UI", system-ui, sans-serif;
  --f-texto: "Figtree", "Segoe UI", system-ui, sans-serif;
  --raio: 14px;
  --lateral-w: 272px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--fundo);
  color: var(--texto);
  font: 15px/1.45 var(--f-texto);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-titulo); margin: 0; font-weight: 600; letter-spacing: -.01em; }
svg.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--lima); outline-offset: 2px; border-radius: 6px; }

/* Logo */
.logo { display: block; width: 100%; height: auto; }
.logo__mark { stroke: var(--lima); stroke-width: 7.5; }
.logo__fiel { font-family: var(--f-titulo); font-weight: 800; font-size: 68px; fill: var(--lima); }
.logo__service { font-family: var(--f-titulo); font-weight: 200; font-size: 54px; fill: #fff; }

/* ---------- Estrutura ---------- */
.app { display: flex; min-height: 100vh; }
.lateral {
  position: fixed; inset: 0 auto 0 0; width: var(--lateral-w); z-index: 40;
  background: var(--lateral); border-right: 1px solid #171C18;
  display: flex; flex-direction: column; padding: 24px 16px 18px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
}
.lateral__logo { display: block; width: 218px; margin: 0 0 26px 16px; }
.menu { display: flex; flex-direction: column; gap: 4px; }
.menu a {
  display: flex; align-items: center; gap: 15px; padding: 10px 16px; border-radius: 10px;
  color: var(--texto); font-size: 15px; transition: background .15s;
}
.menu a:hover { background: #151A16; }
.menu a.ativo {
  background: var(--lima); color: #0B0E0C; font-weight: 600;
  box-shadow: 0 0 0 1px #B8EA55 inset, 0 6px 24px -8px rgba(147, 201, 38, .55);
}
.menu a .contador { margin-left: auto; font-size: 12px; font-weight: 600; background: var(--vermelho); color: #fff; border-radius: 99px; padding: 1px 7px; }
.menu__sep { height: 1px; background: #1B211C; margin: 8px 12px; }
.lateral__fecho { position: relative; margin-top: auto; padding: 40px 0 0 84px; min-height: 140px; flex: none; }
.lateral__fecho .fio { position: absolute; left: -44px; bottom: -48px; width: 150px; height: 156px; stroke: #2B4A16; stroke-width: 7; }
.lateral__fecho p { position: relative; margin: 0; font-size: 14px; color: var(--texto-2); }
.lateral__fecho p::after { content: ""; display: block; width: 34px; height: 2px; background: var(--lima); margin-top: 12px; }
.veu { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 35; }

.principal { flex: 1; margin-left: var(--lateral-w); min-width: 0; display: flex; flex-direction: column; }
.topo {
  position: sticky; top: 0; z-index: 30; height: 72px; display: flex; align-items: center; gap: 16px;
  padding: 0 28px; background: rgba(13, 17, 14, .92); backdrop-filter: blur(12px); border-bottom: 1px solid #181D19;
}
.topo__menu { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.topo__menu svg.ic { width: 28px; height: 28px; }
.topo__exemplo { font-size: 12px; color: var(--amarelo); border: 1px solid #4A3E10; background: #1F1A08; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.topo__direita { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topo__nota, .topo__sino { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; }
.topo__nota:hover, .topo__sino:hover, .topo__menu:hover { background: #171C18; }
.topo__sino .ponto { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 2px var(--fundo); }
.utilizador { position: relative; padding-left: 14px; border-left: 1px solid #262D27; }
.utilizador__botao { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0B0E0C; font: 700 15px var(--f-titulo); }
.utilizador__nome { font-size: 15px; }
.ic-chev svg.ic { width: 18px; height: 18px; }
.utilizador__menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 220px; background: var(--cartao-2); border: 1px solid var(--borda-2);
  border-radius: 12px; padding: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.utilizador__menu p { margin: 6px 10px 10px; line-height: 1.3; }
.utilizador__menu small { color: var(--texto-3); }
.utilizador__menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; }
.utilizador__menu button:hover { background: #1D231E; }

.conteudo { padding: 30px 28px 110px; max-width: 1560px; width: 100%; outline: none; }

/* ---------- Componentes ---------- */
.heroi { display: flex; align-items: center; gap: 24px; margin-bottom: 26px; position: relative; }
.heroi h1 { font-size: 40px; font-weight: 700; line-height: 1.1; }
.heroi p { margin: 8px 0 0; font-size: 18px; color: var(--texto-2); }
.heroi__logo { margin-left: auto; width: 230px; position: relative; }
.cabeca { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; margin-bottom: 22px; }
.cabeca h1 { font-size: 32px; font-weight: 700; }
.cabeca p { margin: 4px 0 0; color: var(--texto-2); }
.cabeca__acoes { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }

.grelha { display: grid; gap: 18px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.kpis.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.meio { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr) minmax(0, 1fr); margin-bottom: 18px; }
.baixo { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); }
.duas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pessoas { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); margin-bottom: 18px; }

.kpi {
  display: flex; gap: 18px; align-items: flex-start; padding: 20px 20px 18px; border-radius: var(--raio);
  background: linear-gradient(160deg, #141914, #0F1210); border: 1px solid var(--borda);
}
.kpi__ic { width: 60px; height: 60px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--musgo); color: #E7F7C9; box-shadow: inset 0 0 0 1px #3B7419; }
.kpi__ic svg.ic { width: 30px; height: 30px; stroke-width: 1.6; }
.kpi__rotulo { font-size: 15px; color: var(--texto); }
.kpi__valor { font: 600 34px/1.15 var(--f-titulo); margin: 6px 0 4px; letter-spacing: -.01em; white-space: nowrap; }
.kpi__valor small { font-size: .62em; font-weight: 500; }
.kpi__sub { font-size: 13px; color: var(--texto-3); }
.tend { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--lima); }
.tend svg.ic { width: 14px; height: 14px; stroke-width: 2.4; }
.tend.baixa { color: var(--vermelho); }
.tend.neutra { color: var(--texto-3); }

.cartao { border-radius: var(--raio); background: var(--cartao); border: 1px solid var(--borda); padding: 20px 22px; min-width: 0; }
.cartao.claro { background: var(--claro); color: var(--tinta); border-color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset; }
.cartao__topo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cartao__topo h2 { font-size: 19px; }
.cartao__topo .ic-lima { color: var(--lima); }
.cartao.claro .cartao__topo .ic-lima { color: #5C9A12; }
.ver { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: inherit; opacity: .85; white-space: nowrap; }
.ver svg.ic { width: 16px; height: 16px; color: var(--lima); }
.cartao.claro .ver svg.ic { color: #5C9A12; }
.ver:hover { opacity: 1; text-decoration: underline; }

/* Ações rápidas */
.acoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.acao {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 124px; padding: 14px 8px;
  border-radius: 10px; background: var(--claro-2); color: var(--tinta); text-align: center; font-size: 13.5px; line-height: 1.25; transition: transform .12s, background .12s;
}
.acao svg.ic { width: 34px; height: 34px; color: #4F8E0F; stroke-width: 1.6; }
.acao:hover { background: #E3E8DC; transform: translateY(-1px); }

/* Listas */
.lista { list-style: none; margin: 0; padding: 0; }
.lista > li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--borda); }
.lista > li:first-child { border-top: 0; }
.claro .lista > li { border-color: var(--claro-borda); }
.lista__ic { color: var(--texto-2); }
.claro .lista__ic { color: var(--tinta); }
.lista__txt { flex: 1; min-width: 0; }
.lista__txt strong { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista__txt span { display: block; font-size: 12.5px; color: var(--texto-3); }
.claro .lista__txt span { color: var(--tinta-2); }
.lista__valor { font: 600 15px var(--f-titulo); white-space: nowrap; }

.data {
  width: 52px; flex: none; border-radius: 8px; background: var(--lima); color: #0B0E0C; text-align: center;
  padding: 5px 0 4px; line-height: 1.05; font-size: 10.5px; font-weight: 600;
}
.data b { display: block; font: 700 21px/1.05 var(--f-titulo); }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.chip.ok { background: #DDF0BC; color: #3B6A0E; }
.chip.alerta { background: #FCEBC0; color: #8E6400; }
.chip.mau { background: #FBD9D3; color: #A42A19; }
.chip.neutro { background: #E6E9E3; color: #4B5148; }
.cartao:not(.claro) .chip.ok, .escuro .chip.ok { background: #2D6A12; color: #E6F8C8; }
.cartao:not(.claro) .chip.alerta, .escuro .chip.alerta { background: #4A3A07; color: #F8D873; }
.cartao:not(.claro) .chip.mau, .escuro .chip.mau { background: var(--vermelho-fundo); color: #FFB3A7; }
.cartao:not(.claro) .chip.neutro, .escuro .chip.neutro { background: #222922; color: var(--texto-2); }

.separadores { display: flex; padding: 4px; border-radius: 12px; border: 1px solid var(--borda-2); margin-bottom: 8px; gap: 4px; flex-wrap: wrap; }
.separadores button { flex: 1; padding: 8px 12px; border-radius: 9px; font-size: 14px; white-space: nowrap; }
.separadores button.ativo { background: var(--lima); color: #0B0E0C; font-weight: 600; }
.claro .separadores { border-color: var(--claro-borda); }

/* Resumo financeiro */
.resumo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.resumo > div { padding: 4px 18px; border-left: 1px solid var(--borda-2); }
.resumo > div:first-child { padding-left: 0; border-left: 0; }
.resumo__rot { font-size: 14px; color: var(--texto-2); }
.resumo__val { font: 600 23px/1.2 var(--f-titulo); margin: 8px 0 10px; white-space: nowrap; }
.v-lima { color: var(--lima-forte); }
.v-verm { color: var(--vermelho); }
.v-azul { color: var(--azul); }
.meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--borda); }
.meta__linha { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; font-size: 13.5px; color: var(--texto-2); margin-bottom: 8px; }
.meta__linha strong { color: var(--texto); }
.barra { position: relative; height: 12px; border-radius: 99px; background: #1C221D; overflow: hidden; }
.barra i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.barra .feito { background: var(--lima); }
.barra .previsto { background: repeating-linear-gradient(135deg, rgba(147, 201, 38, .45) 0 4px, rgba(147, 201, 38, .22) 4px 8px); }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; color: var(--texto-3); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* Linha do tempo */
.tempo li { gap: 16px; padding: 10px 0; border: 0 !important; position: relative; font-size: 13.5px; }
.tempo li::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--claro-borda); }
.tempo li:first-child::before { top: 50%; }
.tempo li:last-child::before { bottom: 50%; }
.tempo .bola { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #5C9A12; flex: none; box-shadow: 0 0 0 3px var(--claro); }
.tempo .bola.alerta { background: #D79E00; }
.tempo .bola.mau { background: #D63A25; }
.tempo .bola.info { background: #3C79C9; }
.tempo time { width: 42px; color: var(--tinta-2); flex: none; }

/* Tabelas */
.tabela-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--texto-3); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--borda-2); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--borda); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr:hover td { background: #141915; }
.cartao.claro th { color: var(--tinta-2); border-color: var(--claro-borda); }
.cartao.claro td { border-color: var(--claro-borda); }
.cartao.claro tbody tr:hover td { background: #EEF1EA; }
.mudo { color: var(--texto-3); }
.cartao.claro .mudo { color: var(--tinta-2); }
tfoot td { font-weight: 600; border-top: 1px solid var(--borda-2); border-bottom: 0; }

/* Botões e formulários */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; font-size: 14px; border: 1px solid var(--borda-2); background: var(--cartao-2); white-space: nowrap;
}
.btn svg.ic { width: 18px; height: 18px; }
.btn:hover { border-color: #3A453B; background: #1A201B; }
.btn.prim { background: var(--lima); color: #0B0E0C; border-color: var(--lima); }
.btn.prim:hover { background: var(--lima-forte); }
.btn.peq { padding: 6px 11px; font-size: 13px; }
.claro .btn { background: #fff; border-color: var(--claro-borda); color: var(--tinta); }
.pesquisa { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--borda-2); background: var(--cartao); min-width: 240px; }
.pesquisa input { border: 0; background: none; outline: none; padding: 10px 0; width: 100%; }
.pesquisa svg.ic { width: 18px; height: 18px; color: var(--texto-3); }
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.campo label { font-size: 13px; color: var(--texto-2); font-weight: 600; }
.campo input, .campo select, .campo textarea, .entrada {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--borda-2); background: #0D110E; outline: none;
}
.campo input:focus, .campo select:focus, .entrada:focus { border-color: var(--lima); }
.linha-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ajuda { font-size: 12.5px; color: var(--texto-3); margin: -6px 0 14px; }

/* Nota rápida */
.nota-caixa { display: flex; gap: 10px; }
.nota-caixa .entrada { font-size: 17px; padding: 14px 16px; }
.interp { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #0D110E; border: 1px dashed var(--borda-2); font-size: 14px; color: var(--texto-2); }
.interp.vazio { color: var(--texto-3); }
.interp dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0 0; }
.interp dt { color: var(--texto-3); }
.interp dd { margin: 0; color: var(--texto); font-weight: 600; }
.exemplos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.exemplos button { font-size: 13px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--borda-2); color: var(--texto-2); }
.exemplos button:hover { border-color: var(--lima); color: var(--texto); }
.nota-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--borda); }
.nota-item:first-child { border-top: 0; }
.nota-item time { color: var(--texto-3); font-size: 13px; }
.nota-item q { font-weight: 600; quotes: "“" "”"; }
.nota-item .seta { color: var(--texto-3); font-size: 13px; display: block; margin-top: 2px; }
.nota-item select { background: #0D110E; border: 1px solid var(--borda-2); border-radius: 8px; padding: 4px 8px; font-size: 13px; }

/* Funil */
.funil { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.etapa { background: #0D110E; border: 1px solid var(--borda); border-radius: 12px; padding: 12px; }
.etapa h3 { font-size: 14px; display: flex; justify-content: space-between; margin-bottom: 10px; }
.etapa h3 span { color: var(--texto-3); font-weight: 500; }
.lead { background: var(--cartao-2); border: 1px solid var(--borda-2); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 13px; }
.lead strong { display: block; font-size: 14px; }
.lead div { display: flex; justify-content: space-between; color: var(--texto-3); margin-top: 3px; }

/* Equipa */
.pessoa { display: flex; flex-direction: column; gap: 14px; }
.pessoa__topo { display: flex; align-items: center; gap: 12px; }
.pessoa__topo .avatar { width: 46px; height: 46px; background: var(--musgo); color: #E7F7C9; font-size: 18px; }
.pessoa dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: 14px; }
.pessoa dt { color: var(--texto-2); }
.pessoa dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* Gráfico */
.grafico { position: relative; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico .eixo { fill: var(--texto-3); font-size: 11.5px; font-family: var(--f-texto); }
.grafico .grade { stroke: #1F2620; stroke-width: 1; }
.grafico .alvo { fill: transparent; }
.grafico .alvo:hover { fill: rgba(255, 255, 255, .035); }
.dica { position: fixed; z-index: 80; pointer-events: none; background: #1B211C; border: 1px solid var(--borda-2); border-radius: 10px; padding: 8px 12px; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.dica b { display: block; margin-bottom: 4px; }
.dica span { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.dica i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }
details.tabela-ver { margin-top: 12px; font-size: 13px; color: var(--texto-2); }
details.tabela-ver summary { cursor: pointer; }

/* Relatórios */
.relatorios { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.relatorios button { text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--borda); background: var(--cartao); }
.relatorios button strong { display: block; font-family: var(--f-titulo); font-size: 15.5px; margin: 8px 0 2px; }
.relatorios button span { font-size: 12.5px; color: var(--texto-3); }
.relatorios button svg.ic { color: var(--lima); }
.relatorios button.ativo { border-color: var(--lima); box-shadow: 0 0 0 1px var(--lima) inset; }

/* Configurações */
.permissoes td:not(:first-child), .permissoes th:not(:first-child) { text-align: center; }
.interruptor { position: relative; width: 40px; height: 22px; border-radius: 99px; background: #2A322B; display: inline-block; vertical-align: middle; transition: background .15s; }
.interruptor::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.interruptor[aria-checked="true"] { background: var(--lima-escuro); }
.interruptor[aria-checked="true"]::after { transform: translateX(18px); }
.interruptor[disabled] { opacity: .55; cursor: not-allowed; }
.estado-int { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--borda); }
.estado-int:first-of-type { border-top: 0; }
.estado-int div { flex: 1; }
.estado-int span { display: block; font-size: 13px; color: var(--texto-3); }

.alerta-faixa { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--vermelho-fundo); border: 1px solid #5A2219; color: #FFD2CA; margin-bottom: 18px; font-size: 14px; }
.alerta-faixa svg.ic { color: var(--vermelho); }
.info-faixa { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #101A0B; border: 1px solid #27401A; color: #D4EDB0; margin-bottom: 18px; font-size: 14px; }
.info-faixa svg.ic { color: var(--lima); }

/* FAB, modal, aviso */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px;
  border-radius: 99px; background: var(--lima); color: #0B0E0C; font-weight: 700; box-shadow: 0 12px 30px -8px rgba(147, 201, 38, .6), 0 4px 12px rgba(0, 0, 0, .4);
}
.fab svg.ic { width: 22px; height: 22px; stroke-width: 2.2; }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__caixa { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--cartao-2); border: 1px solid var(--borda-2); border-radius: 18px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal__topo { display: flex; align-items: center; margin-bottom: 16px; }
.modal__topo h2 { font-size: 21px; }
.modal__fechar { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.modal__fechar:hover { background: #222922; }
.modal__acoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.aviso {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; z-index: 100; pointer-events: none;
  background: #E9F6D2; color: #1D3A0D; font-weight: 600; padding: 12px 18px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center;
}
.aviso.mostra { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Ecrãs mais estreitos ---------- */
@media (max-width: 1360px) {
  .meio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meio > :last-child { grid-column: 1 / -1; }
  .relatorios { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .baixo { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .lateral { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
  .lateral.aberta { transform: none; }
  .principal { margin-left: 0; }
  .heroi__logo { display: none; }
  .meio, .duas { grid-template-columns: 1fr; }
  .meio > :last-child { grid-column: auto; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .topo { padding: 0 12px; gap: 6px; height: 62px; }
  .topo__exemplo { font-size: 11px; padding: 3px 8px; }
  .utilizador { padding-left: 6px; border-left: 0; }
  .utilizador__nome, .ic-chev { display: none; }
  .topo__nota { display: none; }
  .conteudo { padding: 20px 14px 110px; }
  .heroi h1 { font-size: 28px; }
  .heroi p { font-size: 15px; }
  .cabeca h1 { font-size: 26px; }
  .cabeca__acoes { margin-left: 0; width: 100%; }
  .pesquisa { min-width: 0; flex: 1; }
  .kpis, .kpis.tres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { flex-direction: column; gap: 10px; padding: 14px; }
  .kpi__ic { width: 42px; height: 42px; }
  .kpi__ic svg.ic { width: 22px; height: 22px; }
  .kpi__rotulo { font-size: 13px; }
  .kpi__valor { font-size: 24px; }
  .kpi__sub { font-size: 12px; }
  .cartao { padding: 16px; }
  .tabela-wrap { margin: 0 -16px; padding: 0 16px; }
  .acao { min-height: 96px; font-size: 12.5px; }
  .acao svg.ic { width: 28px; height: 28px; }
  .resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .resumo > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .resumo__val { font-size: 19px; }
  .relatorios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linha-campos { grid-template-columns: 1fr; }
  .fab { right: 14px; bottom: 14px; padding: 14px; }
  .fab__txt { display: none; }
  .nota-caixa { flex-direction: column; }
  .modal { align-items: flex-end; padding: 0; }
  .modal__caixa { border-radius: 18px 18px 0 0; max-height: 92vh; }
  .esconde-movel { display: none; }
}

/* ---------- Impressão / PDF dos relatórios ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .lateral, .topo, .fab, .relatorios, .cabeca__acoes, .nao-imprime, .aviso, .veu { display: none !important; }
  .principal { margin: 0; }
  .conteudo { padding: 0; max-width: none; }
  .cartao { background: #fff !important; border: 1px solid #ccc !important; color: #111 !important; break-inside: avoid; }
  th, td, .mudo, .cabeca p { color: #111 !important; border-color: #ccc !important; }
  tbody tr:hover td { background: none; }
  .so-imprime { display: block !important; }
}
.so-imprime { display: none; }

/* ---------- Versão 1: entrada, carregamento e pequenos controlos ---------- */
.entrada-ecra { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: radial-gradient(120% 90% at 50% 0%, #142010 0%, var(--fundo) 60%); }
.entrada-ecra[hidden] { display: none; }
.entrada-caixa { width: min(400px, 100%); background: var(--cartao-2); border: 1px solid var(--borda-2); border-radius: 20px; padding: 30px 26px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.entrada-caixa .logo { width: 170px; height: auto; display: block; margin: 0 auto 6px; }
.entrada-caixa h1 { font-size: 20px; text-align: center; margin: 4px 0 4px; }
.entrada-caixa > p { text-align: center; color: var(--texto-3); font-size: 14px; margin: 0 0 20px; }
.entrada-caixa .btn { width: 100%; justify-content: center; padding: 13px; font-size: 16px; }
.entrada-erro { color: var(--vermelho); font-size: 14px; min-height: 20px; margin: -4px 0 10px; }
.carregar { padding: 60px 0; text-align: center; color: var(--texto-3); }
.topo__exemplo.teste { color: #9FD0FF; border-color: #1F3A57; background: #0D1A28; }
.dias-semana { display: flex; flex-wrap: wrap; gap: 6px; }
.dias-semana label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--borda-2); border-radius: 10px; font-size: 14px; color: var(--texto-2); cursor: pointer; }
.dias-semana input { accent-color: var(--lima); margin: 0; }
.dias-semana label:has(input:checked) { border-color: var(--lima); color: var(--texto); background: #142010; }
.btn-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--borda-2); color: var(--texto-2); }
.btn-ic:hover { border-color: #3A453B; background: #1A201B; color: var(--texto); }
.btn-ic svg.ic { width: 16px; height: 16px; }
.btn.perigo { border-color: #5A2219; color: #FFB4A8; }
.btn.perigo:hover { background: var(--vermelho-fundo); }
tr.clicavel { cursor: pointer; }
tr.clicavel:hover td { background: rgba(147, 201, 38, .05); }
.acoes-linha { display: inline-flex; gap: 6px; justify-content: flex-end; }
.stock { display: inline-flex; align-items: center; gap: 8px; }
.stock b { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.lista-desc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.lista-desc span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 11px; border-radius: 99px; border: 1px solid var(--borda-2); font-size: 13px; color: var(--texto-2); }
.lista-desc button { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 99px; color: var(--texto-3); }
.lista-desc button:hover { background: #2A1612; color: var(--vermelho); }
.lista-desc button svg.ic { width: 12px; height: 12px; }
.linha-add { display: flex; gap: 8px; }
.linha-add .entrada { flex: 1; padding: 9px 12px; font-size: 14px; }
.campo textarea { min-height: 70px; resize: vertical; }
.vazio-bloco { padding: 26px; text-align: center; color: var(--texto-3); }
