/* AoSeuLado — identidade visual (referência: docs/identidade visual/aoseulado-dashboard-tarefas.svg)
   azul-noite no menu, verde-água nos destaques, coral só em avisos e atalhos, fundo cinza-azulado claro */
:root {
  --noite: #142B3E; --noite-2: #204559; --noite-linha: #2A4557; --noite-texto: #D2DFE6; --noite-suave: #91A8B8;
  --teal: #27B99E; --teal-claro: #69D4C1; --teal-escuro: #208A82; --teal-fundo: #EAF5F3; --teal-borda: #C8E1DC; --teal-texto: #187F79;
  --coral: #E97854; --coral-escuro: #C95E3C; --coral-fundo: #FFF2EB; --vermelho: #D96259; --vermelho-fundo: #FDECEA;
  --indigo: #657DCC; --indigo-fundo: #EEF2FC; --azul: #4A9CFF; --azul-fundo: #EAF2FF; --azul-texto: #416A96;
  --texto: #1B3045; --texto-2: #34465C; --suave: #8291A0; --suave-2: #52677B;
  --fundo: #F5F8FA; --branco: #FFFFFF; --linha: #E3EAEF; --linha-2: #EDF0F3; --cinza-fundo: #F7FAFB;
  --raio: 14px; --sombra: 0 4px 8px rgba(16,42,67,.06);
  --fonte: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fonte); font-size: 15px; line-height: 1.5; color: var(--texto); background: var(--fundo); }
h1 { font-size: 1.5rem; margin: 0 0 1.1rem; color: var(--texto); letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 .25rem; color: var(--texto); }
a { color: var(--teal-escuro); }
svg { width: 20px; height: 20px; flex: none; }
.mono { font-family: var(--mono); font-size: .86em; }
.suave { color: var(--suave); }
.direita { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* marca: dois anéis (verde-água e coral) e o nome */
.marca { display: inline-flex; align-items: center; gap: .5rem; color: var(--texto); font-size: 1.3rem; font-weight: 700; }
.marca-simbolo { width: 36px; height: 36px; }
.marca-nome b { font-weight: 700; }
.marca-nome i { font-style: normal; color: var(--teal-claro); }
.marca-clara { color: #fff; }

/* casca: menu lateral azul-noite */
.casca { display: flex; min-height: 100vh; }
.lateral { width: 244px; flex: none; background: var(--noite); color: var(--noite-texto); padding: 1.3rem 1rem 1rem; display: flex; flex-direction: column; gap: .9rem; position: sticky; top: 0; height: 100vh; }
.lateral-topo { padding: 0 .4rem .9rem; border-bottom: 1px solid var(--noite-linha); }
.menu-rotulo { font-size: .68rem; font-weight: 700; letter-spacing: .1em; color: var(--noite-suave); padding: .3rem .5rem 0; }
.menu { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.menu-item { display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; border-radius: 10px; color: var(--noite-texto); text-decoration: none; font: inherit; font-weight: 500; font-size: .92rem; background: transparent; border: 0; cursor: pointer; width: 100%; text-align: left; position: relative; }
.menu-item:hover { background: rgba(255,255,255,.06); }
.menu-item.ativo { background: var(--noite-2); color: #fff; font-weight: 700; }
.menu-item.ativo::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--teal-claro); }
.menu-sair { margin: 0; }
.lateral-ajuda { display: flex; align-items: center; gap: .7rem; padding: .8rem .4rem; border-top: 1px solid var(--noite-linha); color: #fff; text-decoration: none; font-size: .8rem; }
.lateral-ajuda i { width: 32px; height: 32px; border-radius: 50%; background: #23465B; color: #9DDED4; display: grid; place-items: center; font-style: normal; font-weight: 700; flex: none; }
.lateral-ajuda b { display: block; font-size: .8rem; }
.lateral-ajuda small { color: var(--noite-suave); font-size: .72rem; }
.lateral-assinante { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #C7D5DF; margin-bottom: .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lateral-assinatura { display: flex; justify-content: center; padding: .7rem 0 .1rem; border-top: 1px solid var(--noite-linha); }
.area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topo { display: flex; align-items: center; gap: .8rem; padding: .7rem 2rem; background: var(--branco); border-bottom: 1px solid var(--linha); min-height: 66px; }
.topo-cliente { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.topo-cliente small { font-size: .62rem; letter-spacing: .08em; color: var(--suave); font-weight: 600; text-transform: uppercase; }
.topo-cliente strong { color: var(--texto); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topo-cliente span { font-size: .78rem; color: var(--suave); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #DDEFEA; color: #24685F; display: grid; place-items: center; font-size: .72rem; font-weight: 700; flex: none; }
.botao-menu { display: none; background: var(--teal-fundo); color: var(--teal-escuro); border: 0; border-radius: 10px; padding: .5rem; cursor: pointer; }
.conteudo { flex: 1; padding: 1.6rem 2rem; max-width: 1340px; width: 100%; margin: 0 auto; }
.rodape { padding: 1rem 2rem 1.3rem; color: #8B99A7; font-size: .76rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* boas-vindas */
.boas-vindas { position: relative; overflow: hidden; background: linear-gradient(135deg, #153B4E, #126B70); color: #fff; border-radius: 18px; padding: 1.7rem 2.1rem 1.8rem; margin-bottom: 1.6rem; }
.boas-vindas::before, .boas-vindas::after { content: ''; position: absolute; border-radius: 50%; background: #fff; opacity: .045; }
.boas-vindas::before { width: 250px; height: 250px; right: -40px; top: -50px; }
.boas-vindas::after { width: 160px; height: 160px; right: -10px; bottom: -70px; opacity: .035; }
.boas-vindas small { display: block; color: #9ADCD2; font-weight: 700; letter-spacing: .12em; font-size: .68rem; text-transform: uppercase; }
.boas-vindas h1 { color: #fff; font-size: 1.75rem; margin: .5rem 0 .2rem; }
.boas-vindas p { margin: 0 0 1.1rem; color: #D4E7E9; font-size: .9rem; }
.boas-vindas .data { position: absolute; right: 2.1rem; top: 1.5rem; color: #C5E1E2; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; z-index: 1; }
.boas-vindas .botao { position: relative; z-index: 1; }
.secao-titulo { margin: 0 0 .15rem; font-size: 1.1rem; }
.secao-sub { margin: 0 0 .9rem; color: var(--suave); font-size: .8rem; }
.atalhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin-bottom: 1.6rem; }
.atalho { display: flex; align-items: center; gap: 1rem; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); padding: 1.2rem; text-decoration: none; color: inherit; }
.atalho:hover { border-color: var(--teal-borda); }
.atalho .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.atalho .ico svg { width: 21px; height: 21px; }
.atalho b { display: block; font-size: .95rem; }
.atalho small { color: var(--suave); font-size: .78rem; }
.atalho .seta { margin-left: auto; font-size: 1.1rem; }
.ico-teal { background: var(--teal-fundo); color: var(--teal-escuro); }
.ico-coral { background: var(--coral-fundo); color: var(--coral); }
.ico-indigo { background: var(--indigo-fundo); color: var(--indigo); }
.grade-2 { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 1.1rem; margin-bottom: 1.1rem; align-items: start; }
.coluna { display: flex; flex-direction: column; gap: 1.1rem; }

/* cartões */
.cartao { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); padding: 1.3rem 1.5rem; margin-bottom: 1.1rem; }
.coluna .cartao, .grade-2 .cartao { margin-bottom: 0; }
.cartao-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .9rem; }
.cartao-topo a { font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cartao-ajuda { background: var(--teal-fundo); border-color: transparent; box-shadow: none; }
.cartao-ajuda h2 { font-size: .95rem; }
.cartao-ajuda p { margin: 0 0 .9rem; color: #5F7E80; font-size: .82rem; }
.pedido-destaque { background: var(--cinza-fundo); border-radius: 10px; padding: 1rem 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pedido-destaque small { color: var(--suave); font-weight: 700; letter-spacing: .05em; font-size: .68rem; text-transform: uppercase; }
.pedido-destaque strong { display: block; margin: .15rem 0; }
.linha-resumo { display: flex; justify-content: space-between; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--linha-2); color: var(--suave); font-size: .85rem; text-decoration: none; }
.linha-resumo:last-child { border-bottom: 0; }
.linha-resumo b { color: var(--texto); font-size: 1.05rem; }
.linha-resumo b.atraso { color: var(--vermelho); }
.linha-resumo b.credito { color: var(--teal-escuro); }
.etapas { display: flex; margin: 1.6rem .4rem .4rem; }
.etapa { flex: 1; position: relative; text-align: center; font-size: .72rem; color: #9AA7B3; padding-top: 1.7rem; }
.etapa::before { content: ''; position: absolute; top: 7px; left: -50%; right: 50%; height: 4px; background: #DDE6E9; border-radius: 2px; }
.etapa:first-child::before { display: none; }
.etapa i { position: absolute; top: 0; left: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #C8D5DA; }
.etapa.feita { color: var(--suave-2); }
.etapa.feita::before { background: var(--teal); }
.etapa.feita i { background: var(--teal); border-color: #fff; box-shadow: 0 0 0 1px var(--teal); }
.etapa.atual { color: var(--teal-escuro); font-weight: 700; }

/* indicadores (outras páginas) */
.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.1rem; }
.indicador { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); padding: 1rem 1.2rem; text-decoration: none; color: inherit; display: block; border-top: 4px solid var(--teal); }
.indicador small { display: block; color: var(--suave); font-weight: 600; }
.indicador strong { display: block; font-size: 1.5rem; color: var(--texto); margin: .15rem 0; }
.indicador.atencao { border-top-color: var(--vermelho); }
.indicador.atencao strong { color: var(--vermelho); }

/* avisos */
.aviso { padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; border: 1px solid; font-size: .92rem; }
.aviso-sucesso { background: var(--teal-fundo); border-color: var(--teal-borda); color: #1B4E51; }
.aviso-erro { background: var(--coral-fundo); border-color: #F5C9B8; color: #8A3A1E; }
.aviso-info { background: var(--azul-fundo); border-color: #C9DDF7; color: var(--azul-texto); }

/* tabelas */
.tabela-rolagem { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); padding: .65rem .8rem; background: #F6F8FA; white-space: nowrap; font-weight: 700; }
th:first-child { border-radius: 6px 0 0 6px; } th:last-child { border-radius: 0 6px 6px 0; }
td { padding: .8rem; border-bottom: 1px solid var(--linha-2); vertical-align: middle; font-size: .88rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--cinza-fundo); }
td.num, th.num { text-align: right; white-space: nowrap; }
td span, td.mono { white-space: nowrap; }
@media (min-width: 881px) { td.acao .acoes { flex-wrap: nowrap; } }
.vazio { padding: 1.6rem; text-align: center; color: var(--suave); }

/* etiquetas de situação */
.etiqueta { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.etiqueta::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.et-ok { background: #E8F6EF; color: #347A55; }
.et-aberto { background: var(--azul-fundo); color: var(--azul-texto); }
.et-atraso { background: var(--vermelho-fundo); color: #B84A41; }
.et-cancelada { background: #ECEFF2; color: #667; text-decoration: line-through; }
.et-neutro { background: #F1F4F7; color: var(--suave-2); }

/* formulários e botões */
form.filtros { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; }
label { display: block; font-weight: 600; font-size: .84rem; margin-bottom: .25rem; color: var(--texto-2); }
input[type=text], input[type=password], input[type=email], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: .65rem .8rem; border: 1px solid #D5DEE5; border-radius: 10px; background: var(--branco); color: var(--texto); }
textarea { min-height: 90px; font-family: var(--mono); font-size: .9rem; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(39,185,158,.35); outline-offset: 1px; }
.campo { margin-bottom: .9rem; }
.dica { font-size: .8rem; color: var(--suave); margin-top: .25rem; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1.15rem; border-radius: 9px; border: 1px solid var(--teal-claro); background: var(--teal-claro); color: #123D49; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; text-decoration: none; }
.botao:hover { background: #57C7B3; border-color: #57C7B3; }
.botao-sec { background: var(--branco); color: var(--teal-texto); border-color: var(--teal-borda); }
.botao-sec:hover { background: var(--teal-fundo); border-color: var(--teal-borda); }
.botao-destaque { background: var(--coral); border-color: var(--coral); color: #fff; }
.botao-destaque:hover { background: var(--coral-escuro); border-color: var(--coral-escuro); }
.botao-pequeno { padding: .35rem .7rem; font-size: .8rem; }
.botao-bloco { width: 100%; }
.acoes { display: flex; gap: .5rem; flex-wrap: wrap; }
.chave { font-family: var(--mono); font-size: .78rem; word-break: break-all; }

/* entrada (login) em duas colunas */
.entrada { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.entrada-marca { background: linear-gradient(135deg, #153B4E, #126B70); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.entrada-marca::before { content: ''; position: absolute; width: 380px; height: 380px; right: -110px; top: -90px; border-radius: 50%; background: #fff; opacity: .045; }
.entrada-marca > * { position: relative; }
.entrada-marca h2 { color: #fff; font-size: 2rem; line-height: 1.2; max-width: 22ch; margin: 0 0 1rem; }
.entrada-marca p { color: #D4E7E9; max-width: 40ch; }
.entrada-marca ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.entrada-marca li { display: flex; gap: .6rem; align-items: center; }
.entrada-marca li svg { color: var(--teal-claro); }
.entrada-marca small { color: #C5E1E2; }
.entrada-marca .lateral-assinante { font-size: .85rem; }
.entrada-form { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.entrada-caixa { width: 100%; max-width: 400px; }
.entrada-caixa h1 { margin-bottom: .3rem; }
.entrada-caixa .suave { margin: 0 0 1.4rem; }
.entrada-assinatura { margin-top: .7rem; display: flex; }
.links-baixo { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .4rem; font-size: .92rem; }
.opcoes-assinante { display: grid; gap: .6rem; margin: 1rem 0; }
.opcoes-assinante label { display: flex; gap: .6rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--linha); border-radius: 10px; margin: 0; cursor: pointer; background: var(--branco); }

/* detalhes */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem 1.4rem; margin: 0; }
.dl dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); font-weight: 700; }
.dl dd { margin: 0; font-weight: 700; }

/* assinatura codeSmart */
.por-codesmart { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--suave); font-weight: 600; text-decoration: none; }
.por-codesmart img { width: 28px; height: 28px; border-radius: 7px; }
.por-codesmart b { color: var(--texto); font-weight: 800; letter-spacing: -.01em; }
.por-codesmart b i { font-style: normal; color: var(--azul); }
.lateral .por-codesmart, .entrada-marca .por-codesmart { color: var(--noite-suave); }
.lateral .por-codesmart b, .entrada-marca .por-codesmart b { color: #fff; }

@media (max-width: 1100px) { .grade-2 { grid-template-columns: 1fr; } }
@media (max-width: 880px) {
  .lateral { position: fixed; z-index: 20; left: 0; top: 0; bottom: 0; height: auto; transform: translateX(-102%); transition: transform .2s; width: 270px; box-shadow: 8px 0 24px rgba(0,0,0,.25); }
  .lateral.aberto { transform: none; }
  .botao-menu { display: inline-flex; }
  .topo, .conteudo, .rodape { padding-left: 1rem; padding-right: 1rem; }
  .boas-vindas { padding: 1.3rem; } .boas-vindas .data { position: static; display: block; margin-bottom: .5rem; }
  .entrada { grid-template-columns: 1fr; }
  .entrada-marca { padding: 1.6rem; min-height: 0; gap: 1.2rem; }
  .entrada-marca h2 { font-size: 1.4rem; } .entrada-marca ul { display: none; }
  /* tabelas viram cartões no celular */
  table.empilha thead { display: none; }
  table.empilha tr { display: block; border: 1px solid var(--linha); border-radius: 12px; margin-bottom: .7rem; padding: .4rem .7rem; background: var(--branco); }
  table.empilha td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .35rem 0; text-align: right; }
  table.empilha td::before { content: attr(data-rotulo); font-weight: 600; color: var(--suave); text-align: left; }
  table.empilha td.acao { justify-content: flex-end; }
  table.empilha td.acao::before { content: none; }
  table.empilha td.num, table.empilha th.num { text-align: right; }
}
@media print { .lateral, .topo, .botao-menu, .rodape, .acoes { display: none !important; } body { background: #fff; } }
