/* Identidade TelecomCloud — mesmas cores e fonte do monitor e do painel de atendimentos. */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f3f5f5; --surface: #ffffff; --surface-2: #f8faf9;
  --ink: #1a2630; --ink-2: #55636d; --rule: #d9dfe2; --rule-2: #e6eaec; --field: #85919a;
  --petrol: #0a5867; --petrol-dark: #073e49; --petrol-wash: #e3eff1; --hero-ink-2: #d3e7eb;
  --green: #1d9f57; --green-logo: #2dbd6c; --amber: #d18b0b; --red: #c3402f;
  --ok-bg: #e7f5ed; --ok-fg: #12663a; --warn-bg: #fbf2e0; --warn-fg: #84570a; --warn-rule: #edd6a4;
  --bad-bg: #fbeae7; --bad-fg: #922d20; --neutral-bg: #eceff1;
  --radius: 6px; --radius-l: 10px;
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.45; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--petrol); }
a:hover { color: var(--petrol-dark); }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; }
h1 { margin: 0; font-size: 30px; font-weight: 700; font-stretch: 110%; line-height: 1.15; }
h2 { margin: 0; font-size: 20px; font-weight: 700; }
h3 { margin: 0; font-size: 16px; font-weight: 700; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.texto-2 { color: var(--ink-2); }
.pequeno { font-size: 14px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

/* topo */
.topo { background: var(--petrol-dark); color: #fff; padding: 10px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.topo a { color: #fff; }
.topo__esq, .topo__dir { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marca__nome { font-size: 20px; font-weight: 700; font-stretch: 110%; }
.marca__selo { padding: 3px 10px; border-radius: 999px; background: var(--green-logo); color: var(--petrol-dark); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.topo__nav { display: flex; gap: 4px; }
.topo__nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--hero-ink-2); text-decoration: none; }
.topo__nav a[aria-current="page"] { color: #fff; font-weight: 600; box-shadow: inset 0 -3px 0 var(--green-logo); }
.topo__empresa { color: var(--hero-ink-2); font-size: 14px; }
.topo__pessoa { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--petrol); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; }
.topo form { margin: 0; }
.botao-topo { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid #3f6f79; border-radius: var(--radius); background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.botao-topo--plano { border-color: transparent; padding: 0 4px; }

/* página */
.pagina { flex: 1 0 auto; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 32px 48px; display: flex; flex-direction: column; gap: 24px; }
.pagina--estreita { max-width: 1120px; }
.cabecalho { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cabecalho__sub { margin-top: 8px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rodape { padding: 20px 32px 28px; text-align: center; font-size: 14px; color: var(--ink-2); }
.migalha { font-size: 14px; color: var(--ink-2); }

/* com menu lateral (painel TelecomCloud) */
.com-lateral { flex: 1 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; padding: 28px 32px 48px; }
.lateral { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 2px; }
.lateral a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.lateral a:hover { background: var(--surface); }
.lateral a[aria-current="page"] { background: var(--petrol-wash); color: var(--petrol); font-weight: 600; }
.conteudo { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.colunas { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.colunas__principal { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.colunas__lado { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* blocos */
.cartao { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.cartao--aviso { border-color: var(--warn-rule); }
.cartao__topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.caixa { padding: 16px; border: 1px solid var(--rule-2); border-radius: 8px; display: flex; flex-direction: column; gap: 12px; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.grade--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.grade--kpi { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 14px 18px; }
.kpi__rotulo { font-size: 14px; color: var(--ink-2); }
.kpi__valor { font-size: 30px; font-weight: 700; }
dl { margin: 0; }
dt { font-size: 13px; color: var(--ink-2); margin: 0 0 2px; }
dd { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.linha-sep { padding-top: 14px; border-top: 1px solid var(--rule-2); }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* botões */
.botao, .botao--contorno, .botao--perigo, .botao--neutro { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.botao { background: var(--petrol); color: #fff; border: 1px solid var(--petrol); }
.botao:hover { background: var(--petrol-dark); color: #fff; }
.botao--grande { min-height: 48px; font-size: 16px; width: 100%; }
.botao--contorno { background: var(--surface); color: var(--petrol); border: 1px solid var(--petrol); }
.botao--contorno:hover { background: var(--petrol-wash); }
.botao--neutro { background: var(--surface); color: var(--ink); border: 1px solid var(--field); }
.botao--neutro:hover { background: var(--surface-2); }
.botao--perigo { background: var(--surface); color: var(--bad-fg); border: 1px solid var(--red); }
.botao--perigo:hover { background: var(--bad-bg); }
.botao-link { background: none; border: 0; padding: 0; font: inherit; color: var(--petrol); font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 44px; }
form.inline { display: inline; margin: 0; }

/* formulários */
.form { display: flex; flex-direction: column; gap: 16px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > label, .rotulo { font-size: 14px; font-weight: 600; }
.campo input[type=text], .campo input[type=password], .campo input[type=email], .campo input[type=date], .campo input[type=number], .campo input[type=search], .campo input[type=file], .campo select, .campo textarea, .entrada {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: var(--radius); font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); }
.campo textarea { padding: 10px 12px; min-height: 90px; resize: vertical; }
.campo input[type=file] { padding: 9px 12px; }
.ajuda { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.erro-campo { font-size: 13px; color: var(--bad-fg); font-weight: 600; }
.marcar { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.marcar input { width: 18px; height: 18px; margin: 0; accent-color: var(--petrol); flex: 0 0 auto; }
.marcar__texto { flex: 1 1 auto; }
.marcar--off { color: var(--ink-2); cursor: default; }
fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 2px; }
legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.sufixo { display: flex; align-items: stretch; min-height: 44px; border: 1px solid var(--field); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.sufixo input { flex: 1 1 auto; min-width: 0; border: 0 !important; border-radius: 0 !important; }
.sufixo__fixo { display: flex; align-items: center; padding: 0 12px; background: var(--neutral-bg); border-left: 1px solid var(--rule); color: var(--ink-2); font-weight: 600; }
.senha-campo { position: relative; }
.senha-campo input { padding-right: 48px; }
.senha-campo button { position: absolute; right: 3px; top: 3px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; }
.passo { display: inline-flex; align-items: center; border: 1px solid var(--field); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.passo button { width: 38px; height: 38px; border: 0; background: var(--surface-2); font: inherit; font-size: 18px; cursor: pointer; }
.passo input { width: 56px; height: 38px; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.passo input::-webkit-outer-spin-button, .passo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mascarado { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface-2); font-family: ui-monospace, Consolas, monospace; font-size: 14px; }

/* selos e avisos */
.selo { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--petrol-wash); color: var(--petrol); }
.selo--ok { background: var(--ok-bg); color: var(--ok-fg); }
.selo--aviso { background: var(--warn-bg); color: var(--warn-fg); }
.selo--erro { background: var(--bad-bg); color: var(--bad-fg); }
.selo--neutro { background: var(--neutral-bg); color: var(--ink-2); }
.contador { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--amber); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--petrol-wash); color: var(--petrol); font-size: 13px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.aviso { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border: 1px solid var(--rule); border-radius: 8px; background: var(--petrol-wash); color: var(--petrol); font-size: 15px; line-height: 1.5; }
.aviso svg { flex: 0 0 auto; margin-top: 2px; }
.aviso--aviso { border-color: var(--warn-rule); background: var(--warn-bg); color: var(--warn-fg); }
.aviso--erro { border-color: #f0c4bc; background: var(--bad-bg); color: var(--bad-fg); }
.aviso--ok { border-color: #bfe3cd; background: var(--ok-bg); color: var(--ok-fg); }
.resultado-ok { color: var(--ok-fg); font-weight: 600; font-size: 14px; }
.resultado-erro { color: var(--bad-fg); font-weight: 600; font-size: 14px; }
.senha-gerada { font-family: ui-monospace, Consolas, monospace; font-size: 18px; font-weight: 700; padding: 2px 8px; background: #fff; border-radius: 4px; user-select: all; }

/* tabelas */
.tabela-caixa { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); }
.tabela-caixa--plana { border: 0; border-radius: 0; }
table.tabela { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabela th, .tabela td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--rule-2); vertical-align: middle; }
.tabela th { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); }
.tabela tr:last-child td { border-bottom: 0; }
.tabela .sub { display: block; font-size: 13px; color: var(--ink-2); }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; }
.vazio { padding: 24px; text-align: center; color: var(--ink-2); }

/* programas (tela de escolha) */
.programas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.programa { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.programa:hover { border-color: var(--petrol); }
.programa__icone { width: 48px; height: 48px; border-radius: 10px; background: var(--petrol-wash); display: grid; place-items: center; color: var(--petrol); }
.programa__corpo { flex: 1 1 auto; }
.programa__corpo h2 { margin-bottom: 6px; }
.programa__corpo p { font-size: 15px; color: var(--ink-2); }
.programa .botao { align-self: flex-start; }
.programa--bloqueado { background: var(--surface-2); border: 1px dashed #aab4bb; }
.programa--bloqueado:hover { border-color: #aab4bb; }
.programa--bloqueado .programa__icone { background: var(--neutral-bg); color: var(--ink-2); }
.programa--bloqueado h2 { color: var(--ink-2); }

/* licenças */
.licenca { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.licenca--cheia { border-color: var(--warn-rule); }
.licenca__nome { font-size: 15px; font-weight: 600; }
.licenca__num { font-size: 26px; font-weight: 700; font-stretch: 110%; }
.licenca__num span { font-size: 16px; font-weight: 500; color: var(--ink-2); }
.barra { height: 8px; border-radius: 4px; background: var(--rule-2); overflow: hidden; }
.barra > span { display: block; height: 100%; background: var(--petrol); }
.licenca--cheia .barra > span { background: var(--amber); }
.livres { font-size: 14px; font-weight: 600; color: var(--ok-fg); }
.licenca--cheia .livres { color: var(--warn-fg); }

/* login */
.entrada-pagina { flex: 1 0 auto; display: flex; flex-wrap: wrap; min-height: 100vh; }
.entrada-marca { flex: 1 1 440px; background: var(--petrol-dark); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.entrada-marca h2 { font-size: 40px; line-height: 1.1; font-stretch: 112%; margin-bottom: 16px; }
.entrada-marca p { font-size: 17px; line-height: 1.55; color: var(--hero-ink-2); max-width: 460px; }
.entrada-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; font-size: 14px; color: var(--hero-ink-2); }
.entrada-lista li { display: flex; align-items: center; gap: 10px; }
.entrada-form { flex: 1 1 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 56px 32px; }
.entrada-cartao { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 40px; box-shadow: 0 1px 2px rgba(26, 38, 48, .06); }
.entrada-cartao h1 { font-size: 28px; margin-bottom: 6px; }
.seguro { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }

@media (max-width: 640px) {
  .topo, .pagina, .com-lateral { padding-left: 16px; padding-right: 16px; }
  .entrada-marca { padding: 32px 24px; }
  .entrada-marca h2 { font-size: 30px; }
  .entrada-cartao { padding: 28px 22px; }
  .grade--2 { grid-template-columns: minmax(0, 1fr); }
  .lateral { max-width: none; flex-direction: row; flex-wrap: wrap; }
}
