/* painel.css do kit de identidade v2.0 (painel/recursos/painel.css), com os ajustes da etapa 5e:
   textos de 11,5 px → 12 px (mínimo de tela) e micro 24 × 24 px com área de proteção de 30%. */
/* Painel estático da demonstração — identidade visual Vianodus (docs/marca/), versão para telas.
   Fontes e marca copiadas para esta pasta (recursos/); nenhuma URL externa.
   Telas: Inter (OFL). Documentos em PDF e logo continuam em DejaVu / arquivos da marca. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fontes/Inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fontes/Inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fontes/Inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fontes/Inter-700.woff2") format("woff2"); }

:root {
  --navy: #07335C; --navy-2: #0B4A80; --blue: #0077C8; --teal: #007F82; --mint: #57D98B;
  --paper: #F4F8FB; --white: #FFFFFF; --ink: #203447; --muted: #526779; --border: #E3EBF1;
  --success: #12643D; --warning: #7A4800; --danger: #A3200F;
  --raio-controle: 10px; --raio-painel: 16px; --raio-destaque: 22px;
  --sombra: 0 1px 2px rgba(7, 51, 92, .05), 0 8px 24px rgba(7, 51, 92, .07);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 15px/1.55 "Inter", "Segoe UI", system-ui, Arial, sans-serif;
       font-feature-settings: "cv11" 1; -webkit-font-smoothing: antialiased;  /* tnum só em .n e .mono */
       background: linear-gradient(180deg, #F7FAFC 0%, #EBF2F8 100%); min-height: 100vh; }
h1, h2 { color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 38px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.apoio { color: var(--muted); font-size: 13px; margin: 0; }
.mono, .n { font-family: "Inter", sans-serif; font-feature-settings: "tnum" 1; font-size: 14px; letter-spacing: .01em; }
td.mono { white-space: nowrap; color: var(--muted); }

/* Cabeçalho, faixa de demonstração e corpo */
.topo { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--border); padding: 14px 36px;
        display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.marca-vianodus { height: 40px; width: auto; display: block; }  /* horizontal: altura mínima de 32 px */
.produto { font-weight: 600; color: var(--navy); font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
           border-left: 1px solid var(--border); padding-left: 20px; }
.cartao-locadora { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--border);
                   border-radius: 999px; padding: 6px 18px 6px 8px; }
.logo-locadora { max-height: 32px; max-width: 120px; width: auto; height: auto; display: block; }
.inicial { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--blue));
           color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.locadora-nome { font-weight: 600; font-size: 14px; color: var(--navy); line-height: 1.25; }
.cartao-locadora .apoio { font-size: 12px; }
.faixa { margin: 0; background: #E4F0F9; color: var(--navy); font-size: 13px; padding: 8px 36px;
         border-bottom: 1px solid #CFE2F1; }
.faixa strong { background: var(--navy); color: var(--white); border-radius: 999px; padding: 2px 10px; margin-right: 6px;
                font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.corpo { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; }
/* Ocupa toda a largura ao lado do menu; limite só em telas muito largas (centralizado pela .corpo). */
.conteudo { flex: 999 1 560px; min-width: 0; max-width: 1680px; padding: 28px 36px 56px;
            display: flex; flex-direction: column; gap: 24px; }

/* Seletor de competência: controle segmentado */
.seletor { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.seletor .apoio { margin-right: 8px; font-weight: 500; }
.seletor a { color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: 13px;
             font-weight: 600; background: var(--white); border: 1px solid var(--border); }
.seletor a:hover { color: var(--navy); border-color: #C7D8E6; }
.seletor a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Título da página como faixa de destaque, com os cartões seguintes sobrepostos */
.titulo-pagina { position: relative; overflow: hidden; border-radius: var(--raio-destaque); color: var(--white);
                 padding: 34px 40px 92px;
                 background:
                   radial-gradient(circle at 92% 8%, rgba(87, 217, 139, .38), transparent 34%),
                   radial-gradient(circle at 100% 100%, rgba(0, 119, 200, .75), transparent 55%),
                   linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); }
.titulo-pagina::after { content: ""; position: absolute; inset: 0; pointer-events: none;
                        background: repeating-radial-gradient(circle at 112% 130%, transparent 0 30px, rgba(255, 255, 255, .06) 30px 32px); }
.titulo-pagina h1 { color: var(--white); position: relative; z-index: 1; }
.titulo-pagina .apoio { color: rgba(255, 255, 255, .82); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
                        font-size: 12px; margin-bottom: 8px; position: relative; z-index: 1; }
.titulo-pagina + section { margin-top: -64px; position: relative; z-index: 2; }

/* Cartões */
.cartao { background: var(--white); border: 0; border-radius: var(--raio-painel); padding: 16px 18px; box-shadow: var(--sombra); }
.ciclo { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.etapa { border-top: 4px solid var(--border); }
.etapa:has(.rotulo-ok) { border-top-color: var(--teal); }
.etapa:has(.rotulo-info) { border-top-color: var(--blue); }
.etapa:has(.rotulo-alerta) { border-top-color: #D68A00; }
.etapa:has(.rotulo-erro) { border-top-color: #C93A25; }
.rotulo { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.rotulo-ok { color: var(--success); }
.rotulo-info { color: #0A62A5; }
.rotulo-alerta { color: var(--warning); }
.rotulo-erro { color: var(--danger); }
.rotulo-neutro { color: var(--muted); }
.etapa-nome { font-weight: 600; margin: 4px 0 2px; color: var(--navy); font-size: 15.5px; line-height: 1.3; }
.barra { height: 8px; background: #E9EFF4; border-radius: 999px; margin-top: 12px; overflow: hidden; }
.barra-cheia { height: 8px; background: var(--blue); border-radius: 999px; }
.barra-ok { background: linear-gradient(90deg, var(--teal), var(--mint)); }
.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.indicador { padding: 20px 22px; }
.indicador-rotulo { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.indicador-rotulo.rotulo-ok, .indicador-rotulo.rotulo-info, .indicador-rotulo.rotulo-erro, .indicador-rotulo.rotulo-alerta {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.indicador-valor { font-size: 30px; font-weight: 700; margin: 6px 0 4px; color: var(--navy); letter-spacing: -0.02em;
                   line-height: 1.15; }
.valor-economia { color: var(--teal); }
.indicador-apoio { font-size: 13px; color: var(--muted); }
.destaque { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); }
.destaque .indicador-rotulo, .destaque .indicador-apoio { color: rgba(255, 255, 255, .85); }
.destaque .indicador-valor { color: var(--white); }

/* Tabelas: cabeçalho claro, linhas amplas e discretas */
.duas-colunas { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.tabela-cartao { min-width: 0; padding: 0; overflow: hidden; }
/* Só ao lado das pendências: numa coluna, a base de 520 px viraria altura e cortaria a tabela. */
.duas-colunas > .tabela-cartao { flex: 999 1 520px; }
.tabela-titulo { padding: 20px 20px 14px; display: flex; justify-content: space-between; align-items: baseline;
                 gap: 12px; flex-wrap: wrap; }
.rolagem { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { background: #F1F6FA; color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .07em;
     text-transform: uppercase; text-align: left; padding: 12px 12px; white-space: nowrap;
     border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
td { padding: 14px 12px; border-bottom: 1px solid #EDF2F6; font-size: 14px; vertical-align: middle; }
tbody tr:hover td { background: #F8FBFD; }
td:first-child { font-weight: 500; }
td.mono:first-child { font-weight: 400; }
.n { text-align: right; white-space: nowrap; }
th.n { white-space: normal; font-size: 12px; letter-spacing: .07em; max-width: 150px; }
td.n { font-weight: 500; }
.pendencias { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
td a { display: inline-block; text-decoration: none; font-weight: 600; font-size: 13px; padding: 5px 12px;
       border-radius: 999px; background: #E6F2FB; color: #0A5C99; }
td a:hover { background: var(--navy); color: var(--white); }

/* Selos de situação: ícone e texto, nunca só cor */
.selo { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.selo-ok { color: var(--success); background: #E1F5EA; }
.selo-info { color: #0A4D86; background: #E2EFFA; }
.selo-erro { color: var(--danger); background: #FDE6E2; }
.selo-alerta { color: var(--warning); background: #FFF0D1; }
.selo-neutro { color: #435668; background: #EAEFF3; }

/* Histórico da cobrança (details nativo: sem JavaScript) */
.cobranca .historico-linha td { padding: 0 16px 6px; background: #FAFCFE; border-bottom: 1px solid #E3EBF1; }
tbody.cobranca tr:hover td { background: inherit; }
tbody.cobranca tr:first-child:hover td { background: #F8FBFD; }
details summary { cursor: pointer; color: #0A5C99; font-size: 13px; font-weight: 500; padding: 10px 0; list-style-position: inside; }
details[open] summary { color: var(--navy); font-weight: 600; }
.linha-tempo { list-style: none; margin: 6px 0 14px 6px; padding: 0 0 0 22px; border-left: 2px solid #D5E2EC;
               display: flex; flex-direction: column; gap: 14px; }
.linha-tempo li { position: relative; }
.linha-tempo li::before { content: ""; position: absolute; left: -29px; top: 5px; width: 12px; height: 12px;
                          border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px #FAFCFE; }
.linha-tempo .tom-ok::before { background: var(--teal); }
.linha-tempo .tom-erro::before { background: #C93A25; }
.linha-tempo .tom-alerta::before { background: #D68A00; }
.linha-tempo .tom-ok b { color: var(--success); }
.linha-tempo .tom-erro b { color: var(--danger); }
.linha-tempo .tom-alerta b { color: var(--warning); }
.notas { padding: 14px 20px; font-size: 13px; color: var(--muted); }
.notas p { margin: 0 0 6px; }

/* Rodapé com o micro da plataforma (24 px: mínimo do manual) */
.rodape { margin: 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 0; }
/* Micro v2 quadrado (viewBox 100×100), de 12 a 48 px, com proteção de 30% da altura (diâmetro do nó). */
.micro { width: 24px; height: 24px; margin: 7.2px; flex: none; }

@media (max-width: 760px) {
  .topo, .faixa { padding-left: 16px; padding-right: 16px; }
  .conteudo { padding: 20px 16px 40px; }
  .titulo-pagina { padding: 26px 22px 84px; }
  h1 { font-size: 30px; }
}

/* ---- Dashboard (etapa 7) ------------------------------------------------------------
   Menu lateral fixo em navy com a marca negativa; indicadores com variação; gráficos SVG
   inline (largura fixa em px, rolam em tela estreita); economia acumulada por UC; processo
   do mês como faixa de apoio. Texto sobre menta, se houver, é sempre navy. */
.app { display: flex; align-items: stretch; min-height: 100vh; }
.lateral { flex: none; width: 248px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
           background: var(--navy); color: var(--white); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.lateral-marca { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px 10px 26px;
                 text-decoration: none; }
.lateral .produto { color: var(--white); background: var(--navy); border-left: 0; padding-left: 0; font-size: 13px; }
.lateral a.item { color: #D6E4F0; background: var(--navy); text-decoration: none; padding: 11px 14px;
                  border-radius: var(--raio-controle); font-weight: 500; font-size: 15px; border-left: 4px solid transparent; }
.lateral a.item:hover { color: var(--white); background: var(--navy-2); }
.lateral a.item[aria-current="page"] { color: var(--white); background: var(--navy-2); font-weight: 600;
                                       border-left-color: var(--mint); }
.lateral a:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.principal { flex: 1 1 auto; min-width: 0; }

.variacao { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.variacao .seta { color: var(--ink); font-weight: 700; }
.variacao .n { font-size: 13px; color: var(--ink); font-weight: 600; }
.destaque .variacao { color: rgba(255, 255, 255, .85); }
.destaque .variacao .seta, .destaque .variacao .n { color: var(--white); }

/* Grid em fr: os 4 indicadores e a linha gráfico + rosca acompanham a largura do conteúdo. */
.indicadores-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.graficos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.cartao-grafico { min-width: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.grafico-cabecalho { display: flex; flex-direction: column; gap: 4px; }
.grafico-evolucao, .grafico-rosca { display: block; flex: none; font-family: "Inter", "Segoe UI", system-ui, Arial, sans-serif; }
/* Evolução: cresce com o cartão (proporção do viewBox); abaixo de 720 px rola em .rolagem (texto nunca < 12 px). */
.grafico-evolucao { width: 100%; height: auto; min-width: 720px; max-height: 520px; }
.grafico-evolucao text.n, .grafico-rosca text.n { font-feature-settings: "tnum" 1; }
.rosca-corpo { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.legenda-rosca { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.legenda-rosca .amostra { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px;
                          vertical-align: -2px; }
.sem-dados { padding: 12px 0; }
.cartao-grafico details table { margin-top: 4px; }

.apoio-processo { display: flex; flex-direction: column; gap: 10px; }
.apoio-processo h2 { font-size: 15px; color: var(--muted); }
.apoio-processo .ciclo { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.apoio-processo .etapa { padding: 12px 14px; box-shadow: none; border: 1px solid var(--border); border-top-width: 3px; }
.apoio-processo .etapa-nome { font-size: 14px; }

@media (max-width: 1100px) {
  .indicadores-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .graficos { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .indicadores-4 { grid-template-columns: minmax(0, 1fr); }
  .app { flex-direction: column; }
  .lateral { position: static; width: auto; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center;
             padding: 10px 12px; gap: 2px; }
  .lateral-marca { width: 100%; flex-direction: row; align-items: center; gap: 14px; padding: 4px 6px 10px; }
  .lateral a.item { font-size: 14px; padding: 8px 10px; border-left: 0; border-bottom: 3px solid transparent;
                    border-radius: 6px 6px 0 0; }
  .lateral a.item[aria-current="page"] { border-bottom-color: var(--mint); }
}

/* Sem style= inline (CSP estrita da web): cor de cada situação na legenda e largura das barras de progresso. */
.amostra-paga { background: #007F82; }
.amostra-aberta { background: #0077C8; }
.amostra-vencida { background: #A3200F; }
.amostra-analise { background: #7A4800; }
.amostra-cancelada { background: #526779; }
.largura-0 { width: 0%; } .largura-1 { width: 1%; } .largura-2 { width: 2%; } .largura-3 { width: 3%; } .largura-4 { width: 4%; } .largura-5 { width: 5%; } .largura-6 { width: 6%; } .largura-7 { width: 7%; } .largura-8 { width: 8%; } .largura-9 { width: 9%; } .largura-10 { width: 10%; } .largura-11 { width: 11%; } .largura-12 { width: 12%; } .largura-13 { width: 13%; } .largura-14 { width: 14%; } .largura-15 { width: 15%; } .largura-16 { width: 16%; } .largura-17 { width: 17%; } .largura-18 { width: 18%; } .largura-19 { width: 19%; } .largura-20 { width: 20%; } .largura-21 { width: 21%; } .largura-22 { width: 22%; } .largura-23 { width: 23%; } .largura-24 { width: 24%; } .largura-25 { width: 25%; } .largura-26 { width: 26%; } .largura-27 { width: 27%; } .largura-28 { width: 28%; } .largura-29 { width: 29%; } .largura-30 { width: 30%; } .largura-31 { width: 31%; } .largura-32 { width: 32%; } .largura-33 { width: 33%; } .largura-34 { width: 34%; } .largura-35 { width: 35%; } .largura-36 { width: 36%; } .largura-37 { width: 37%; } .largura-38 { width: 38%; } .largura-39 { width: 39%; } .largura-40 { width: 40%; } .largura-41 { width: 41%; } .largura-42 { width: 42%; } .largura-43 { width: 43%; } .largura-44 { width: 44%; } .largura-45 { width: 45%; } .largura-46 { width: 46%; } .largura-47 { width: 47%; } .largura-48 { width: 48%; } .largura-49 { width: 49%; } .largura-50 { width: 50%; } .largura-51 { width: 51%; } .largura-52 { width: 52%; } .largura-53 { width: 53%; } .largura-54 { width: 54%; } .largura-55 { width: 55%; } .largura-56 { width: 56%; } .largura-57 { width: 57%; } .largura-58 { width: 58%; } .largura-59 { width: 59%; } .largura-60 { width: 60%; } .largura-61 { width: 61%; } .largura-62 { width: 62%; } .largura-63 { width: 63%; } .largura-64 { width: 64%; } .largura-65 { width: 65%; } .largura-66 { width: 66%; } .largura-67 { width: 67%; } .largura-68 { width: 68%; } .largura-69 { width: 69%; } .largura-70 { width: 70%; } .largura-71 { width: 71%; } .largura-72 { width: 72%; } .largura-73 { width: 73%; } .largura-74 { width: 74%; } .largura-75 { width: 75%; } .largura-76 { width: 76%; } .largura-77 { width: 77%; } .largura-78 { width: 78%; } .largura-79 { width: 79%; } .largura-80 { width: 80%; } .largura-81 { width: 81%; } .largura-82 { width: 82%; } .largura-83 { width: 83%; } .largura-84 { width: 84%; } .largura-85 { width: 85%; } .largura-86 { width: 86%; } .largura-87 { width: 87%; } .largura-88 { width: 88%; } .largura-89 { width: 89%; } .largura-90 { width: 90%; } .largura-91 { width: 91%; } .largura-92 { width: 92%; } .largura-93 { width: 93%; } .largura-94 { width: 94%; } .largura-95 { width: 95%; } .largura-96 { width: 96%; } .largura-97 { width: 97%; } .largura-98 { width: 98%; } .largura-99 { width: 99%; } .largura-100 { width: 100%; }
