/* ==========================================================================
   Eletrônica 43 · Sistema — estilos
   ========================================================================== */
:root {
  --azul: #2F5BEA;
  --azul-hover: #1E45C8;
  --azul-suave: #E7EDFD;
  --azul-claro: #7FA0F5;
  --noite: #081634;
  --noite-2: #0B1B44;
  --noite-3: #13265A;
  --fundo: #F4F6FB;
  --branco: #FFFFFF;
  --texto: #0B1530;
  --texto-2: #4A5670;
  --texto-3: #6B7690;
  --borda: #E3E8F2;
  --borda-2: #EEF1F7;
  --verde: #0F8043;
  --erro: #B42318;

  --f-titulo: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  --f-texto: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --raio: 14px;
  --sombra: 0 1px 2px rgba(11, 21, 48, .04), 0 1px 1px rgba(11, 21, 48, .02);
  --sombra-2: 0 12px 32px -8px rgba(11, 21, 48, .18);
  --lateral: 248px;
  --topo: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 15px;
  line-height: 1.5;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--f-titulo); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--azul); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid rgba(47, 91, 234, .45); outline-offset: 2px; border-radius: 8px; }
[v-cloak] { display: none; }

.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mudo { color: var(--texto-3); }
.pequeno { font-size: 13px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 10px;
  background: none; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn--azul { background: var(--azul); color: #fff; box-shadow: 0 1px 2px rgba(47, 91, 234, .3); }
.btn--azul:hover { background: var(--azul-hover); }
.btn--claro { background: var(--branco); border-color: var(--borda); color: var(--texto); }
.btn--claro:hover { border-color: #C9D3E6; background: #FAFBFE; }
.btn--fantasma { color: var(--texto-2); }
.btn--fantasma:hover { background: var(--borda-2); color: var(--texto); }
.btn--verde { background: var(--verde); color: #fff; }
.btn--verde:hover { background: #0B6A37; }
.btn--perigo { color: var(--erro); }
.btn--perigo:hover { background: #FEF3F2; }
.btn--icone { width: 40px; padding: 0; }
.btn--peq { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }

/* ---------- Estrutura ---------- */
.app { display: grid; grid-template-columns: var(--lateral) minmax(0, 1fr); min-height: 100vh; }

.lateral {
  position: sticky; top: 0; height: 100vh;
  background: var(--noite); color: #C9D6F5;
  display: flex; flex-direction: column;
  padding: 18px 14px;
  border-right: 1px solid #13265A;
}
.lateral__marca { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; color: #fff; }
.marca43 {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--azul); color: #fff; font-family: var(--f-titulo); font-weight: 700; font-size: 16px;
}
.lateral__nome { font-family: var(--f-titulo); font-weight: 700; font-size: 16px; line-height: 1.1; }
.lateral__sub { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #8C9DC4; }
.lateral__grupo { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #6F80AA; padding: 18px 10px 8px; }
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 42px; padding: 0 12px; border-radius: 10px;
  color: #C9D6F5; font-weight: 500; font-size: 14.5px;
  transition: background-color .15s, color .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav a.ativo { background: rgba(47, 91, 234, .22); color: #fff; }
.nav a.ativo::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--azul-claro); }
.nav a svg { color: #8FA6DB; }
.nav a.ativo svg { color: #fff; }
.nav__contador { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(127, 160, 245, .18); color: #CFE0FF; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.nav__breve { margin-left: auto; font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; color: #6F80AA; }

.lateral__utilizador {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 12px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04);
}
.avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--azul); color: #fff; font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.avatar--peq { width: 28px; height: 28px; font-size: 11px; }
.lateral__utilizador div { min-width: 0; flex: 1; }
.lateral__utilizador strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.lateral__utilizador span { font-size: 12px; color: #8C9DC4; }
.lateral__utilizador .btn { color: #8FA6DB; }
.lateral__utilizador .btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.principal { min-width: 0; display: flex; flex-direction: column; }
.topo {
  position: sticky; top: 0; z-index: 20;
  height: var(--topo); display: flex; align-items: center; gap: 14px;
  padding: 0 28px;
  background: rgba(244, 246, 251, .85); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--borda);
}
.topo__menu { display: none; }
.pesquisa {
  flex: 1; max-width: 520px; position: relative;
}
.pesquisa > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--texto-3); }
.pesquisa input {
  width: 100%; height: 42px; padding: 0 70px 0 40px;
  border: 1px solid var(--borda); border-radius: 11px; background: var(--branco);
  font-size: 14px;
}
.pesquisa input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(47, 91, 234, .15); }
.pesquisa kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  padding: 2px 7px; border: 1px solid var(--borda); border-radius: 6px; background: var(--fundo);
  font-family: var(--f-texto); font-size: 11.5px; color: var(--texto-3);
}
.resultados-pesquisa { position: absolute; left: 0; top: 48px; z-index: 30; width: max(100%, min(480px, calc(100vw - 32px))); padding: 6px; max-height: min(70vh, 520px); overflow-y: auto; overflow-x: hidden; box-shadow: var(--sombra-2); }
.resultados-pesquisa .lista__item div { min-width: 0; }
.resultados-pesquisa .estado { flex-shrink: 0; }
@media (max-width: 900px) { .resultados-pesquisa { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; } }
.resultados-pesquisa__grupo { padding: 8px 12px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--texto-3); }
.resultados-pesquisa .lista__item { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
.resultados-pesquisa .lista__item.ativo { background: var(--azul-suave); }
.topo__acoes { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* Sino de avisos */
.avisos { position: relative; }
.avisos__botao { position: relative; }
.avisos__contador { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #F5A524; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--fundo, #F4F7FC); box-sizing: content-box; }
.avisos__contador--urgente { background: #F04438; }
.avisos__painel { position: absolute; right: 0; top: 48px; z-index: 30; width: min(420px, calc(100vw - 32px)); max-height: min(75vh, 560px); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--sombra-2); }
@media (max-width: 900px) { .avisos__painel { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; } }
.avisos__topo { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px 16px; border-bottom: 1px solid var(--borda-2); }
.avisos__topo strong { font-family: var(--f-titulo); font-size: 16px; }
.avisos__lista { overflow-y: auto; padding: 4px 6px 8px; }
.avisos__grupo { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--texto-3); }
.aviso-item { display: flex; align-items: center; gap: 8px; padding-right: 8px; border-radius: 12px; }
.aviso-item:hover { background: #F4F7FC; }
.aviso-item__corpo { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; padding: 10px; border: 0; background: none; text-align: left; cursor: pointer; }
.aviso-item__icone { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; background: #FEF3C7; color: #B45309; }
.aviso-item--urgente .aviso-item__icone { background: #FEE4E2; color: #B42318; }
.aviso-item__texto { min-width: 0; }
.aviso-item__texto strong { display: block; font-size: 14px; color: var(--texto); }
.aviso-item__texto span { display: block; font-size: 12.5px; color: var(--texto-3); margin-top: 1px; }
.aviso-item--novo .aviso-item__texto strong::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--azul); vertical-align: middle; }
.avisos__vazio { display: grid; justify-items: center; gap: 6px; padding: 28px 24px 30px; text-align: center; }
.avisos__vazio > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #DCFCE7; color: #15803D; margin-bottom: 4px; }
.avisos__vazio p { font-size: 13px; color: var(--texto-3); max-width: 300px; }

.conteudo { padding: 28px; max-width: 1480px; width: 100%; }
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.cabecalho h1 { font-size: 28px; line-height: 1.15; }
.cabecalho p { color: var(--texto-2); margin-top: 4px; }
.cabecalho__acoes { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cartões ---------- */
.cartao { background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); }
.cartao__topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.cartao__topo h2 { font-size: 16.5px; }
.cartao__topo .mudo { font-size: 13px; }
.cartao__corpo { padding: 4px 20px 20px; }

.grelha { display: grid; gap: 20px; }
.grelha--kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grelha--painel { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; }

/* KPIs */
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.kpi__topo { display: flex; align-items: center; justify-content: space-between; }
.kpi__rotulo { color: var(--texto-2); font-size: 13.5px; font-weight: 500; }
.kpi__icone { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.kpi__valor { font-family: var(--f-titulo); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.kpi__rodape { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--texto-3); }
.subida { color: #15803D; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.descida { color: var(--erro); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }

/* ---------- Estados (chips) ---------- */
.estado {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.estado--agendada { background: #E7EDFD; color: #1E45C8; }
.estado--diagnostico { background: #EFEBFD; color: #5B3CC4; }
.estado--orcamento { background: #FEF3C7; color: #92400E; }
.estado--reparacao { background: #DDF3F8; color: #0E7490; }
.estado--pecas { background: #FFEDD5; color: #C2410C; }
.estado--pronta { background: #DCFCE7; color: #15803D; }
.estado--entregue { background: #E8ECF3; color: #334155; }
.estado--cancelada { background: #FEE2E2; color: #B91C1C; }

.etiqueta { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--borda-2); color: var(--texto-2); }
.etiqueta--urgente { background: #FEE2E2; color: #B91C1C; }
.etiqueta--pago { background: #DCFCE7; color: #15803D; }
.etiqueta--pendente { background: #FEF3C7; color: #92400E; }
.etiqueta--parcial { background: #E0F2FE; color: #0369A1; }
.etiqueta--garantidor { display: inline-flex; align-items: center; gap: 5px; background: #EFEBFD; color: #5B3CC4; font-weight: 600; }

/* Garantidores */
.opcao-garantidor { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--borda); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.opcao-garantidor input { width: 18px; height: 18px; margin-top: 2px; accent-color: #5B3CC4; flex-shrink: 0; }
.opcao-garantidor strong { display: block; font-size: 14.5px; }
.opcao-garantidor small { display: block; font-size: 13px; color: var(--texto-3); margin-top: 2px; }
.opcao-garantidor.ativo { border-color: #C9BCF7; background: #F7F5FE; }
.garantidor-cartao { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #F7F5FE; border: 1px solid #E4DDFB; }
.garantidor-cartao strong { display: block; font-size: 15px; }
.garantidor-cartao span { display: block; font-size: 13px; color: var(--texto-3); }
.pag-garantidor { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; background: #F7F5FE; color: #5B3CC4; }
.pag-garantidor > svg { margin-top: 2px; flex-shrink: 0; }
.pag-garantidor span { display: block; font-size: 12px; color: var(--texto-3); }
.pag-garantidor strong { display: block; font-size: 14px; color: var(--texto); }

/* ---------- Agenda do dia ---------- */
.agenda { list-style: none; margin: 0; padding: 0 12px 12px; }
.agenda li + li { margin-top: 4px; }
.agenda__item {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 64px 4px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 10px; border: 1px solid transparent; border-radius: 12px; background: none;
  transition: background-color .15s, border-color .15s;
}
.agenda__item:hover, .agenda__item.selecionado { background: #F7F9FD; border-color: var(--borda); }
.agenda__hora { font-family: var(--f-titulo); font-weight: 600; font-size: 17px; }
.agenda__hora small { display: block; font-family: var(--f-texto); font-size: 11.5px; font-weight: 500; color: var(--texto-3); }
.agenda__barra { align-self: stretch; border-radius: 4px; background: var(--borda); }
.agenda__info { min-width: 0; }
.agenda__linha1 { display: flex; align-items: center; gap: 8px; }
.agenda__cliente { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda__os { font-size: 12.5px; color: var(--texto-3); font-weight: 500; }
.agenda__linha2 { display: flex; align-items: center; gap: 14px; margin-top: 3px; color: var(--texto-2); font-size: 13.5px; }
.agenda__linha2 span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda__lado { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.agenda__vazio { padding: 32px 20px; text-align: center; color: var(--texto-3); }

/* Linha do tempo do dia */
.dia { display: flex; gap: 6px; padding: 0 20px 16px; }
.dia__bloco { flex: 1; height: 8px; border-radius: 4px; background: var(--borda-2); position: relative; }
.dia__bloco.cheio { background: var(--azul); }
.dia__bloco.agora::after { content: ""; position: absolute; left: 50%; top: -5px; width: 2px; height: 18px; background: #F04438; border-radius: 2px; }
.dia__legenda { display: flex; justify-content: space-between; padding: 0 20px 4px; font-size: 11.5px; color: var(--texto-3); }

/* ---------- Listas simples ---------- */
.lista { list-style: none; margin: 0; padding: 0 8px 10px; }
.lista__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
}
.lista__item:hover { background: #F7F9FD; }
.lista__item div { min-width: 0; flex: 1; }
.lista__item strong { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista__item span { font-size: 12.5px; color: var(--texto-3); }
.lista__valor { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ---------- Gráfico de barras ---------- */
.barras { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 8px 20px 0; }
.barras__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.barras__barra { width: 100%; max-width: 38px; border-radius: 8px 8px 4px 4px; background: #D5DFFA; position: relative; transition: background-color .15s; }
.barras__col:last-child .barras__barra { background: var(--azul); }
.barras__col:hover .barras__barra { background: var(--azul-claro); }
.barras__col span { font-size: 11.5px; color: var(--texto-3); text-transform: capitalize; }
.barras__dica { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 3px 7px; border-radius: 6px; background: var(--noite); color: #fff; font-size: 11.5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.barras__col:hover .barras__dica { opacity: 1; }

.resumo-fin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px 20px 20px; }
.resumo-fin div { padding: 12px; border-radius: 12px; background: var(--fundo); }
.resumo-fin span { display: block; font-size: 12px; color: var(--texto-3); }
.resumo-fin strong { font-family: var(--f-titulo); font-size: 17px; font-weight: 600; }

/* ---------- Tabelas ---------- */
.tabela-envolve { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th {
  text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .3px; text-transform: uppercase;
  color: var(--texto-3); padding: 12px 16px; border-bottom: 1px solid var(--borda); background: #FAFBFE; white-space: nowrap;
}
.tabela td { padding: 13px 16px; border-bottom: 1px solid var(--borda-2); vertical-align: middle; }
.tabela tbody tr { transition: background-color .12s; }
.tabela tbody tr.clicavel { cursor: pointer; }
.tabela tbody tr.clicavel:hover { background: #F7F9FD; }
.tabela tfoot td { font-weight: 600; background: #FAFBFE; border-top: 1px solid var(--borda); border-bottom: 0; }
.tabela .dir { text-align: right; }
.tabela .principal-cel strong { display: block; font-weight: 600; }
.tabela .principal-cel span { font-size: 12.5px; color: var(--texto-3); }
.os-num { font-family: var(--f-titulo); font-weight: 600; color: var(--azul); }

/* Filtros */
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px; border-bottom: 1px solid var(--borda); }
.separadores-chip { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 1px solid var(--borda); border-radius: 999px; background: var(--branco);
  font-size: 13px; font-weight: 500; color: var(--texto-2);
}
.chip:hover { border-color: #C9D3E6; }
.chip.ativo { background: var(--noite); border-color: var(--noite); color: #fff; }
.chip b { font-weight: 600; opacity: .7; }
.campo-peq { height: 34px; padding: 0 12px; border: 1px solid var(--borda); border-radius: 9px; background: var(--branco); font-size: 13px; }
.filtros .pesquisa { max-width: 300px; }
.filtros .pesquisa input { height: 34px; border-radius: 9px; padding-right: 12px; }

/* ---------- Painel lateral (drawer) ---------- */
.veu { position: fixed; inset: 0; z-index: 60; background: rgba(8, 22, 52, .35); backdrop-filter: blur(2px); }
.gaveta {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(480px, 100%); background: var(--branco);
  display: flex; flex-direction: column;
  box-shadow: var(--sombra-2);
}
.gaveta__topo { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--borda-2); }
.gaveta__topo h2 { font-size: 22px; }
.gaveta__topo .mudo { font-size: 13px; margin-top: 2px; }
.gaveta__corpo { flex: 1; overflow-y: auto; padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.gaveta__rodape { display: flex; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--borda-2); }
.gaveta__rodape .btn { flex: 1; }

.entrar-gaveta-enter-active, .entrar-gaveta-leave-active { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.entrar-gaveta-enter-from, .entrar-gaveta-leave-to { transform: translateX(100%); }
.entrar-veu-enter-active, .entrar-veu-leave-active { transition: opacity .2s; }
.entrar-veu-enter-from, .entrar-veu-leave-to { opacity: 0; }

.bloco h3 { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--texto-3); font-family: var(--f-texto); font-weight: 600; margin-bottom: 10px; }
.cliente-cartao { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--fundo); }
.cliente-cartao div { flex: 1; min-width: 0; }
.cliente-cartao strong { display: block; font-size: 15px; }
.cliente-cartao span { display: block; font-size: 13px; color: var(--texto-2); }
.contacto-botoes { display: flex; gap: 6px; margin-top: 10px; }
.contacto-botoes .btn { flex: 1; }

.dados { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.dados div span { display: block; font-size: 12px; color: var(--texto-3); }
.dados div strong { font-weight: 600; font-size: 14px; }
.dados .largo { grid-column: 1 / -1; }
.defeito { padding: 12px 14px; border-radius: 10px; background: #FFF8EB; border: 1px solid #FDE7B5; color: #7A4A06; font-size: 14px; }

/* Progresso do estado */
.passos { display: flex; align-items: flex-start; }
.passo { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 11px; color: var(--texto-3); text-align: center; }
.passo::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--borda); z-index: 0; }
.passo:first-child::before { display: none; }
.passo i { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--branco); border: 2px solid var(--borda); font-style: normal; }
.passo.feito i { background: var(--azul); border-color: var(--azul); color: #fff; }
.passo.feito::before, .passo.atual::before { background: var(--azul); }
.passo.atual i { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(47, 91, 234, .15); }
.passo.atual i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); }
.passo.atual, .passo.feito { color: var(--texto); font-weight: 500; }

/* Valores */
.valores { border: 1px solid var(--borda); border-radius: 12px; overflow: hidden; }
.valores div { display: flex; justify-content: space-between; padding: 9px 14px; font-size: 14px; }
.valores div + div { border-top: 1px solid var(--borda-2); }
.valores span { color: var(--texto-2); }
.valores .total { background: #FAFBFE; font-weight: 600; font-size: 15px; }
.valores .total strong { font-family: var(--f-titulo); font-size: 18px; }

/* Fotos */
.fotos-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.foto-mini { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; color: #fff; overflow: hidden; }

/* Histórico */
.historico { list-style: none; margin: 0; padding: 0; position: relative; }
.historico li { position: relative; padding: 0 0 14px 22px; font-size: 13.5px; }
.historico li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); box-shadow: 0 0 0 3px var(--azul-suave); }
.historico li::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--borda-2); }
.historico li:last-child::after { display: none; }
.historico strong { font-weight: 500; }
.historico span { display: block; font-size: 12px; color: var(--texto-3); }

/* ---------- Ficha da OS ---------- */
.ficha-topo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ficha-topo h1 { font-size: 30px; }
.ficha-topo h1 small { font-family: var(--f-texto); font-size: 14px; font-weight: 500; color: var(--texto-3); margin-right: 6px; }
.ficha-topo .cabecalho__acoes { margin-left: auto; }
.voltar { display: inline-flex; align-items: center; gap: 6px; color: var(--texto-2); font-weight: 500; font-size: 14px; margin-bottom: 14px; }
.voltar:hover { color: var(--azul); }

.ficha { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ficha__lado { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--topo) + 20px); }
.ficha__resumo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; margin-bottom: 20px; }
.form.form--datas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form--datas .campo { grid-column: span 1; }

.separadores { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--borda); }
.separador {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border: 0; border-radius: 9px; background: none; color: var(--texto-2); font-weight: 500; font-size: 14px; white-space: nowrap;
}
.separador:hover { background: var(--fundo); color: var(--texto); }
.separador.ativo { background: var(--azul-suave); color: var(--azul-hover); font-weight: 600; }
.separador b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--borda-2); font-size: 11.5px; display: grid; place-items: center; }
.separador.ativo b { background: #fff; }
.painel-sep { padding: 20px; }

/* Formulários */
.form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; }
.campo { display: flex; flex-direction: column; gap: 6px; grid-column: span 3; }
.campo--2 { grid-column: span 2; }
.campo--4 { grid-column: span 4; }
.campo--6 { grid-column: 1 / -1; }
.campo label { font-size: 13px; font-weight: 600; color: var(--texto-2); }
.campo input, .campo select, .campo textarea, .entrada {
  width: 100%; min-height: 42px; padding: 9px 12px;
  border: 1px solid #D6DDEA; border-radius: 10px; background: var(--branco); font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s;
}
.campo textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .entrada:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(47, 91, 234, .15); }
.campo--destaque textarea { background: #FFFCF3; border-color: #F3DDA5; }

.linhas-tabela input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: 14px; }
.linhas-tabela input:hover { border-color: var(--borda); }
.linhas-tabela input:focus { outline: none; border-color: var(--azul); background: #fff; }
.linhas-tabela td { padding: 6px 8px; }
.linhas-tabela .dir input { text-align: right; }
.acrescentar { display: flex; gap: 8px; padding: 12px 8px 0; }

.fotos-grelha { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.foto { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; display: grid; place-items: center; color: #fff; }
.foto span { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(8, 22, 52, .6); font-size: 12px; }
.foto--nova { border: 2px dashed #C9D3E6; color: var(--texto-3); background: #FAFBFE; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }

/* ---------- Financeiro ---------- */
.grelha--fin { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
.grafico-area { padding: 8px 20px 20px; }
.grafico-area svg { width: 100%; height: 220px; display: block; }
.legenda { display: flex; gap: 16px; font-size: 12.5px; color: var(--texto-2); }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.metodos { padding: 4px 20px 20px; display: grid; gap: 14px; }
.metodo__topo { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.metodo__barra { height: 8px; border-radius: 4px; background: var(--borda-2); overflow: hidden; }
.metodo__barra i { display: block; height: 100%; border-radius: 4px; }

/* ---------- Janelas (modais) ---------- */
.modal-veu {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 24px;
  background: rgba(8, 22, 52, .5); backdrop-filter: blur(3px);
  overflow-y: auto;
}
.modal-veu--acima { z-index: 85; }
.modal {
  width: min(780px, 100%); max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  background: var(--branco); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 64px -16px rgba(8, 22, 52, .45);
}
.modal__topo { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--borda-2); }
.modal__icone { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--azul-suave); color: var(--azul); flex-shrink: 0; }
.modal__topo h2 { font-size: 21px; }
.modal__topo p { font-size: 13.5px; color: var(--texto-3); margin-top: 1px; }
.modal__topo .btn { margin-left: auto; }
.modal__corpo { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.modal__rodape { display: flex; align-items: center; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--borda-2); background: #FAFBFE; }
.modal__rodape .mudo { margin-right: auto; font-size: 13.5px; }
.modal__secao { padding-top: 18px; }
.modal__secao + .modal__secao { margin-top: 18px; border-top: 1px dashed var(--borda); }
.modal__secao > h3 { display: flex; align-items: center; gap: 10px; font-size: 15.5px; margin-bottom: 14px; }
.modal__secao > h3 i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--noite); color: #fff; font-style: normal; font-size: 12.5px; font-family: var(--f-texto); }
.modal__secao > h3 i.feito { background: #15803D; }

.modal-enter-active, .modal-leave-active { transition: opacity .2s; }
.modal-enter-active .modal, .modal-leave-active .modal { transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.modal-enter-from, .modal-leave-to { opacity: 0; }
.modal-enter-from .modal, .modal-leave-to .modal { transform: translateY(12px) scale(.98); }

.escolha-aparelho { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.escolha-aparelho button {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border: 1.5px solid var(--borda); border-radius: 12px; background: var(--branco);
  font-size: 12.5px; font-weight: 500; color: var(--texto-2); text-align: center; line-height: 1.25;
}
.escolha-aparelho button:hover { border-color: #C9D3E6; }
.escolha-aparelho button.ativo { border-color: var(--azul); background: var(--azul-suave); color: var(--azul-hover); }

.escolha-aparelho { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.escolha-tipo { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: -4px 0 16px; padding: 12px; border-radius: 12px; background: var(--fundo); }
.escolha-tipo__titulo { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--texto-2); }
.escolha-tipo button {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 12px; border: 1.5px solid var(--borda); border-radius: 11px; background: var(--branco);
}
.escolha-tipo button:hover { border-color: #C9D3E6; }
.escolha-tipo button.ativo { border-color: var(--azul); background: var(--azul-suave); }
.escolha-tipo button svg { color: var(--azul); }
.escolha-tipo strong { display: block; font-size: 13.5px; }
.escolha-tipo small { display: block; font-size: 11.5px; color: var(--texto-3); line-height: 1.3; }
.equip-linha { display: inline-flex; align-items: center; gap: 8px; }
.principal-cel strong.equip-linha { display: flex; }
.equip-linha svg { color: var(--azul); }
.sub-tipos { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12px; color: var(--texto-3); }
.stock { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 8px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.stock--ok { background: #DCFCE7; color: #15803D; }
.stock--baixo { background: #FEF3C7; color: #92400E; }
.stock--esgotado { background: #FEE2E2; color: #B91C1C; }
.stock--encomenda { background: var(--borda-2); color: var(--texto-3); }
.filtros .pesquisa { min-width: 220px; }
.margem { font-weight: 600; }
.margem--boa { color: #15803D; }
.margem--media { color: #B45309; }
.margem--baixa { color: var(--erro); }

/* Rota até ao cliente */
.rota { border: 1px solid var(--borda); border-radius: 12px; overflow: hidden; background: var(--branco); }
.rota__inicio { display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
.rota__inicio strong { display: block; font-size: 14px; }
.rota__inicio span { display: block; font-size: 13px; color: var(--texto-3); }
.rota__icone { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--azul-suave); color: var(--azul); flex-shrink: 0; }
.rota__mapa { height: 220px; background: #F2EFE9; z-index: 0; }
.rota__dados { display: flex; align-items: center; gap: 22px; padding: 12px 14px; border-top: 1px solid var(--borda-2); flex-wrap: wrap; }
.rota__dados span { display: block; font-size: 12px; color: var(--texto-3); }
.rota__dados strong { font-family: var(--f-titulo); font-size: 18px; font-weight: 600; }
.rota__dados small { margin-left: 6px; font-size: 11.5px; color: var(--texto-3); }
.rota__dados .btn { margin-left: auto; }
.rota__sugestao { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 14px 12px; padding: 10px 12px; border-radius: 10px; background: #FFF8EB; border: 1px solid #FDE7B5; color: #7A4A06; font-size: 13.5px; }
.rota__sugestao span { flex: 1; min-width: 180px; }
.rota__origem { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--azul); color: #fff; font: 700 13px var(--f-titulo); box-shadow: 0 2px 6px rgba(8, 22, 52, .35); border: 2px solid #fff; }
.rota__destino { display: block; width: 22px; height: 22px; border-radius: 50%; background: #F04438; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(8, 22, 52, .35); }
.valores-rapidos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.valores-rapidos button { height: 30px; padding: 0 10px; border: 1px solid var(--borda); border-radius: 8px; background: var(--branco); font-size: 12.5px; font-weight: 500; color: var(--texto-2); }
.valores-rapidos button:hover { border-color: #C9D3E6; }
.valores-rapidos button.ativo { border-color: var(--azul); background: var(--azul-suave); color: var(--azul-hover); font-weight: 600; }

/* Arranque e gravação */
.carregar { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--fundo, #F4F7FC); color: var(--texto-2); }
.carregar .marca43 { width: 52px; height: 52px; font-size: 22px; border-radius: 14px; }
.carregar__barra { display: block; width: 160px; height: 4px; border-radius: 4px; background: #E3E8F2; overflow: hidden; }
.carregar__barra i { display: block; width: 40%; height: 100%; border-radius: 4px; background: var(--azul); animation: carregar 1.1s ease-in-out infinite; }
@keyframes carregar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .carregar__barra i { animation: none; width: 100%; } }
.gravacao { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #DCFCE7; color: #15803D; white-space: nowrap; }
.gravacao--a-guardar { background: #E7EDFD; color: #1E45C8; }
.gravacao--erro { background: #FEE4E2; color: #B42318; }
@media (max-width: 720px) { .gravacao span { display: none; } }
.passos-ajuda { margin: 0 0 10px 18px; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--texto-2); }

/* Pagamentos da OS */
.pag-resumo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.pag-resumo div { padding: 10px 12px; border-radius: 12px; background: #F4F7FC; }
.pag-resumo span { display: block; font-size: 12px; color: var(--texto-3); }
.pag-resumo strong { font-size: 16px; }
.pag-valor { position: relative; }
.pag-valor input { width: 100%; height: 56px; padding: 0 44px 0 16px; border: 1px solid var(--borda); border-radius: 12px; font: 600 26px var(--f-titulo, inherit); color: var(--texto); }
.pag-valor input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px var(--azul-suave); }
.pag-valor span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 600; color: var(--texto-3); }
.pag-metodos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pag-metodos button { height: 40px; border: 1px solid var(--borda); border-radius: 10px; background: var(--branco); font-weight: 600; font-size: 13px; color: var(--texto-2); }
.pag-metodos button.ativo { border-color: #15803D; background: #DCFCE7; color: #15803D; }
.pag-info { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: #F4F7FC; font-size: 13.5px; color: var(--texto-2); }
.pag-info--ok { background: #DCFCE7; color: #15803D; font-weight: 600; }
.pag-info--aviso { background: #FEF3C7; color: #92400E; }
.pag-entregar { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.pag-entregar input { accent-color: #15803D; width: 17px; height: 17px; }
.pag-lista { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.pag-lista li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #F4F7FC; }
.pag-lista li > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #DCFCE7; color: #15803D; flex-shrink: 0; }
.pag-lista li div { flex: 1; min-width: 0; }
.pag-lista li strong { display: block; font-size: 14px; }
.pag-lista li span { display: block; font-size: 12px; color: var(--texto-3); }
.pag-espaco { display: none; }
@media (max-width: 560px) {
  .pag-metodos { grid-template-columns: repeat(2, 1fr); }
  .modal__rodape .pag-nota { display: none; }
  .modal__rodape .pag-espaco { display: block; margin-right: auto; }
}

.segmentado { display: inline-flex; padding: 4px; border-radius: 11px; background: var(--borda-2); gap: 4px; }
.segmentado button { height: 34px; padding: 0 16px; border: 0; border-radius: 8px; background: none; font-weight: 600; font-size: 13.5px; color: var(--texto-2); }
.segmentado button.ativo { background: var(--branco); color: var(--texto); box-shadow: var(--sombra); }

.erro-campo { font-size: 12.5px; color: var(--erro); font-weight: 500; }
.campo--erro input, .campo--erro select { border-color: var(--erro); }
.aviso-duplicado { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: #FFF8EB; border: 1px solid #FDE7B5; color: #7A4A06; font-size: 13.5px; margin-top: 14px; }
.caixa-rgpd { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--fundo); font-size: 13.5px; color: var(--texto-2); }
.caixa-rgpd input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--azul); flex-shrink: 0; }

/* Pré-visualização de PDF */
.modal.previsao { width: min(1040px, 100%); height: calc(100vh - 48px); }
.previsao__corpo { flex: 1; min-height: 0; background: #5B6475; }
.previsao__corpo iframe { width: 100%; height: 100%; border: 0; display: block; }
.previsao__paginas { height: 100%; overflow-y: auto; padding: 14px; }
.previsao__pagina { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto 14px; background: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, .35); }

/* ---------- Clientes ---------- */
.avatar--grande { width: 64px; height: 64px; font-size: 22px; font-family: var(--f-titulo); }
.cliente-cabeca { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.cliente-cabeca h1 { font-size: 28px; }
.cliente-cabeca__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; color: var(--texto-3); font-size: 13.5px; }
.cliente-cabeca .cabecalho__acoes { margin-left: auto; }
.cliente-grelha { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.cliente-grelha > .grelha:first-child { position: sticky; top: calc(var(--topo) + 20px); }
.lista-dados { list-style: none; margin: 0; padding: 0 20px 16px; }
.lista-dados li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borda-2); font-size: 14px; }
.lista-dados li:last-child { border-bottom: 0; }
.lista-dados svg { color: var(--texto-3); margin-top: 2px; }
.lista-dados span { display: block; font-size: 12px; color: var(--texto-3); }
.lista-dados strong { font-weight: 500; word-break: break-word; }
.equip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 4px 20px 20px; }
.equip__cartao { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--borda); border-radius: 12px; }
.equip__cartao .kpi__icone { background: var(--azul-suave); color: var(--azul); }
.equip__cartao strong { display: block; font-size: 14.5px; }
.equip__cartao span { display: block; font-size: 12.5px; color: var(--texto-3); }
.etiqueta--garantia { background: #DCFCE7; color: #15803D; margin-top: 6px; }
.mini-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mini-kpis > div { padding: 14px 16px; }
.mini-kpis span { display: block; font-size: 12.5px; color: var(--texto-3); }
.mini-kpis strong { font-family: var(--f-titulo); font-size: 21px; font-weight: 600; }
.nome-link { color: inherit; }
.nome-link:hover { color: var(--azul); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--branco); }
.login__arte {
  position: relative; overflow: hidden; background: var(--noite); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; padding: 48px;
}
.login__arte::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1.5px 1.5px, #1D3366 1.3px, transparent 0);
  background-size: 22px 22px; opacity: .8;
}
.login__arte > * { position: relative; }
.login__circulo { position: absolute; width: 620px; height: 620px; border-radius: 50%; background: rgba(47, 91, 234, .16); right: -180px; bottom: -160px; }
.login__marca { display: flex; align-items: center; gap: 12px; }
.login__marca .marca43 { width: 44px; height: 44px; font-size: 19px; border-radius: 12px; }
.login__frase h2 { font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; max-width: 520px; }
.login__frase p { margin-top: 16px; color: #B7C6E8; font-size: 17px; max-width: 460px; }
.login__pontos { display: flex; gap: 22px; flex-wrap: wrap; color: #AFC2EC; font-size: 14px; }
.login__pontos span { display: inline-flex; align-items: center; gap: 8px; }
.login__form { display: grid; place-items: center; padding: 40px 24px; }
.login__caixa { width: min(400px, 100%); }
.login__caixa h1 { font-size: 30px; }
.login__caixa > p { color: var(--texto-2); margin: 8px 0 28px; }
.login__caixa .campo { margin-bottom: 16px; }
.login__linha { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 22px; font-size: 14px; }
.login__linha label { display: inline-flex; align-items: center; gap: 8px; color: var(--texto-2); }
.login__linha input { width: 18px; height: 18px; accent-color: var(--azul); }
.login__caixa .btn--azul { width: 100%; min-height: 48px; font-size: 15px; }
.aviso-prototipo { margin-top: 20px; padding: 12px 14px; border-radius: 10px; background: var(--azul-suave); color: #1E3FB0; font-size: 13px; }
.senha { position: relative; }
.senha button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- Em breve ---------- */
.em-breve { padding: 64px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.em-breve__icone { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--azul-suave); color: var(--azul); }
.em-breve p { color: var(--texto-2); max-width: 460px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1280px) {
  .grelha--kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ficha { grid-template-columns: minmax(0, 1fr); }
  .ficha__lado { position: static; }
}
@media (max-width: 1100px) {
  .grelha--painel, .grelha--fin, .ficha__resumo, .cliente-grelha { grid-template-columns: minmax(0, 1fr); }
  .cliente-grelha > .grelha:first-child { position: static; }
  .mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .escolha-aparelho { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modal-veu { padding: 0; place-items: end center; }
  .modal { max-height: 94vh; border-radius: 20px 20px 0 0; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: fixed; left: 0; top: 0; z-index: 70; width: 272px; transform: translateX(-100%); transition: transform .25s; }
  .lateral.aberta { transform: none; box-shadow: var(--sombra-2); }
  .topo__menu { display: inline-flex; }
  .topo { padding: 0 16px; }
  .conteudo { padding: 20px 16px; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login__arte { display: none; }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campo, .campo--2 { grid-column: span 1; }
  .campo--4, .campo--6, .campo--m { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .form.form--datas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grelha--kpi { gap: 12px; }
  .kpi { padding: 14px; gap: 10px; }
  .kpi__icone { width: 30px; height: 30px; }
  .kpi__valor { font-size: 24px; }
  .kpi__rotulo, .kpi__rodape { font-size: 12px; }
  .form.form--datas { grid-template-columns: minmax(0, 1fr); }
  .pesquisa kbd, .topo .btn--azul span { display: none; }
  .agenda__item { grid-template-columns: 52px 4px minmax(0, 1fr); }
  .agenda__lado { display: none; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .campo, .campo--2, .campo--4 { grid-column: 1 / -1; }
  .dados { grid-template-columns: minmax(0, 1fr); }
}
