/* CRM da Curva: estilos de admin (carregado por index.php depois de app.css). Módulo Administração: envio, usuários, tokens, sistema, importar do AC. */

.adm { max-width: 1040px; }
.adm .panel h2 { font-size: 16px; }
.adm-gap { height: 4px; }
.adm-gap-top { margin-top: 12px; }
.adm-save { margin: -4px 0 16px; }
.adm-stack { gap: 14px; }
.adm-sub { align-self: flex-start; margin-bottom: 2px; }
.adm-sub button { height: 32px; padding: 0 14px; font-size: 13.5px; }

/* escolha do transporte */
.adm-transports { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.adm-transports .radio-card b { font-size: 14px; }
.adm-transports .radio-card small { color: var(--muted); line-height: 1.35; }
@media (max-width: 760px) { .adm-transports { grid-template-columns: 1fr; } }

/* mensagens da verificação do SES */
.adm-msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.adm-msgs li { padding: 8px 12px 8px 34px; border-radius: var(--radius); background: var(--fill-2); font-size: 13.5px; position: relative; line-height: 1.4; }
.adm-msgs li::before { content: ""; position: absolute; left: 13px; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.adm-msgs li.ok { background: var(--green-tint); }
.adm-msgs li.ok::before { background: var(--green); }
.adm-msgs li.warn { background: var(--warn-bg); color: var(--warn-text); }
.adm-msgs li.warn::before { background: var(--yellow); }
.adm-msgs li.err { background: var(--red-tint); color: var(--red); }
.adm-msgs li.err::before { background: var(--red); }
.adm-msgs li.info::before { background: var(--link); }

/* registros DNS */
.adm-dns .table td { vertical-align: top; }
.adm-wrap { word-break: break-all; white-space: normal; min-width: 180px; }
.adm-note { margin-top: 4px; font-family: inherit; word-break: normal; }

/* passo a passo */
.adm-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.45; }
.adm-steps li::marker { color: var(--accent-text); font-weight: 700; }

/* API: exemplos */
.adm-code { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; }
.adm-code pre { margin: 6px 0 0; white-space: pre-wrap; word-break: break-all; max-height: none; font-size: 12px; }
@media (max-width: 900px) { .adm-code { grid-template-columns: 1fr; } }

/* importação: progresso e registro */
.adm-kpis { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; margin: -6px 0 8px; }
.adm-kpis b { font-variant-numeric: tabular-nums; }
.adm-log { background: var(--surface-2); border-radius: var(--radius); padding: 10px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.5; max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; color: var(--text-2); }

/* linhas desligadas (usuário desativado, token inativo, automação já remontada) */
tr.adm-off td { opacity: .55; }
tr.adm-off td.actions, tr.adm-off td:first-child { opacity: 1; }

/* indicadores de sistema */
.stat.good .stat-value { color: var(--green); }
.stat.bad .stat-value { color: var(--red); }

/* celular: tabelas de admin rolam dentro da moldura; botões de ação empilham */
@media (max-width: 640px) {
  .adm .table td.actions { white-space: normal; }
  .adm .table td.actions .btn { margin: 2px 0; }
  .adm .row-gap > .input { flex: 1 1 200px; }
  .adm .copy-box { flex-wrap: wrap; }
  .adm .copy-box .input { flex: 1 1 100%; }
}
