/* PALETA ESCURA ANTIGA (para reverter, cole estes valores no :root e remova o bloco
   "TEMA CLARO — ajustes header/sidebar" no fim do arquivo):
   --bg-primary:#0F172A; --bg-secondary:#0B1220; --bg-card:#1E293B; --bg-hover:#1E2B3F;
   --border:#334155; --border-subtle:#1E293B; --text-primary:#F1F5F9; --text-secondary:#94A3B8;
   --text-muted:#64748B; --accent:#38BDF8; --accent-strong:#0284C7; --green:#4ADE80; --green-bg:#14532D;
   --amber:#FB923C; --amber-bg:#422006; --red:#F87171; --red-bg:#7F1D1D; */
:root {
    /* TEMA CLARO (estilo Lufthansa Cargo) — 2026-07-31. */
    --bg-primary: #eef2f7;     /* fundo do conteúdo / inputs / cabeçalho de tabela */
    --bg-secondary: #0a1f4d;   /* AZUL-MARINHO — sidebar + topbar (mantido escuro) */
    --bg-card: #ffffff;        /* cards brancos */
    --bg-hover: #e8eef8;
    --border: #d3dbe7;
    --border-subtle: #e7ecf3;
    --text-primary: #16233d;   /* texto escuro (navy) */
    --text-secondary: #5b6b86;
    --text-muted: #8592a8;
    --accent: #0b57a6;         /* azul p/ links / destaques */
    --accent-strong: #0b57a6;
    --green: #12924a;
    --green-bg: #e3f5ea;
    --amber: #b26a00;
    --amber-bg: #fdf1dd;
    --red: #c0392b;
    --red-bg: #fdecea;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    overflow: hidden;
}

/* Layout: sidebar + main */
.app { display: flex; height: 100vh; }

/* SIDEBAR */
.sidebar {
    width: 64px; background: var(--bg-secondary); border-right: 1px solid var(--border-subtle);
    display: flex; flex-direction: column; transition: width 0.2s ease; z-index: 10;
    overflow: hidden; flex-shrink: 0;
}
.sidebar:hover { width: 220px; }
.sidebar .brand {
    height: 56px; display: flex; align-items: center; padding: 0 22px; gap: 12px;
    border-bottom: 1px solid var(--border-subtle); flex-shrink: 0;
}
.sidebar .brand .logo { font-size: 22px; }
.sidebar .brand .name { font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 0.2s; }
.sidebar:hover .brand .name { opacity: 1; }

.sidebar nav { padding: 12px 0; flex: 1; overflow-y: auto; }
.sidebar-section { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 1px; padding: 16px 22px 6px; opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
.sidebar:hover .sidebar-section { opacity: 1; }

.nav-item {
    display: flex; align-items: center; padding: 9px 22px; gap: 14px;
    color: var(--text-secondary); cursor: pointer; transition: all 0.15s;
    border-left: 2px solid transparent; white-space: nowrap;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--bg-card); color: var(--accent); border-left-color: var(--accent); }
.nav-item svg { width: 18px; height: 18px; stroke-width: 1.75; flex-shrink: 0; }
.nav-item .label { font-size: 13px; opacity: 0; transition: opacity 0.2s; }
.sidebar:hover .nav-item .label { opacity: 1; }
.nav-item .badge-wip {
    margin-left: auto; font-size: 9px; padding: 2px 6px; background: var(--amber-bg);
    color: var(--amber); border-radius: 3px; opacity: 0; transition: opacity 0.2s;
}
.sidebar:hover .badge-wip { opacity: 1; }
.sidebar .divider { height: 1px; background: var(--border-subtle); margin: 12px 16px; }

/* MAIN */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.topbar {
    height: 56px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle); background: var(--bg-secondary); flex-shrink: 0;
}
.topbar .title { font-size: 16px; font-weight: 500; }
.topbar .meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.topbar .actions { display: flex; gap: 8px; align-items: center; }

.tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
    font-size: 11px; font-weight: 500; border-radius: 4px; background: var(--bg-card);
    color: var(--text-secondary); border: 1px solid var(--border-subtle);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
    border: 1px solid var(--border); background: transparent; color: var(--text-primary);
    font-size: 13px; font-weight: 500; border-radius: 6px; cursor: pointer; transition: all 0.15s;
    font-family: inherit;
}
.btn:hover { background: var(--bg-hover); border-color: var(--accent); }
.btn svg { width: 14px; height: 14px; stroke-width: 1.75; }
.btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: white; }
.btn.primary:hover { background: #0369A1; border-color: #0369A1; }
.btn.danger { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.btn.warning { background: var(--amber-bg); border-color: var(--amber); color: var(--amber); }
.btn.warning:hover { background: var(--amber); color: #1a1205; }
.btn.icon-only { padding: 6px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.content { flex: 1; padding: 20px 24px; overflow: auto; }

/* Tab panes */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Tables */
table { width: 100%; background: var(--bg-card); border-radius: 8px; overflow: hidden;
    border-collapse: separate; border-spacing: 0; }
thead th {
    background: var(--bg-primary); padding: 11px 12px; text-align: left;
    font-size: 10px; font-weight: 600; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
}
tbody td { padding: 11px 12px; border-bottom: 1px solid var(--border-subtle); font-size: 13px; vertical-align: middle; }
tbody tr:hover td { background: var(--bg-hover); }
tbody tr:last-child td { border-bottom: none; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button {
    width: 22px; height: 22px; border: 1px solid var(--border); background: transparent;
    color: var(--text-primary); cursor: pointer; border-radius: 4px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.stepper button:hover { background: var(--bg-hover); border-color: var(--accent); }
.stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper .val { min-width: 28px; text-align: center; font-weight: 600; font-size: 13px; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { display: none; }
.switch .slider {
    position: absolute; cursor: pointer; inset: 0; background: var(--border);
    transition: 0.2s; border-radius: 20px;
}
.switch .slider::before {
    content: ''; position: absolute; height: 14px; width: 14px; left: 3px; top: 3px;
    background: white; transition: 0.2s; border-radius: 50%;
}
.switch input:checked + .slider { background: var(--accent-strong); }
.switch input:checked + .slider::before { transform: translateX(16px); }

/* Cards grid (LPCOs) */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px; }
.lpco-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 8px;
    padding: 14px; border-left: 3px solid var(--green);
}
.lpco-card.faixa-pronta { border-left-color: var(--green); }
.lpco-card.faixa-atencao { border-left-color: var(--amber); background: linear-gradient(135deg, var(--bg-card), var(--amber-bg) 200%); }
.lpco-card.faixa-excluir { border-left-color: var(--red); background: linear-gradient(135deg, var(--bg-card), var(--red-bg) 150%); }
.lpco-card.cancelado { opacity: 0.4; }
.lpco-card .lpco-num { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; color: var(--accent); }
.lpco-card .meta-row { font-size: 11px; color: var(--text-secondary); margin-top: 6px; }
.faixa-pill { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.faixa-pill.verde { background: var(--green-bg); color: var(--green); }
.faixa-pill.pronta { background: var(--green-bg); color: var(--green); }
.faixa-pill.atencao { background: var(--amber-bg); color: var(--amber); }
.faixa-pill.excluir { background: var(--red-bg); color: var(--red); }
.lpco-card .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.lpco-card .btn { padding: 5px 10px; font-size: 11px; }

/* Config cards */
.config-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.config-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 16px;
}
.config-card .header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.config-card .header .name { font-size: 16px; font-weight: 600; }
.config-card .header .urf-tag { background: var(--bg-primary); padding: 3px 8px; border-radius: 4px; font-size: 11px; color: var(--text-secondary); margin-left: 8px; }
.config-card .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 12px; font-size: 12px; }
.config-card .grid .lbl { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.config-card .grid .val { color: var(--text-primary); font-family: 'JetBrains Mono', monospace; }
.config-card .qtd-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); margin-bottom: 12px; }
.config-card .footer-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal-backdrop.show { display: flex; }
.modal {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
    padding: 24px; width: 480px; max-width: 90vw;
    max-height: 88vh; display: flex; flex-direction: column;
}
.modal h3 { font-size: 16px; margin-bottom: 16px; flex: 0 0 auto; }
#modal-body { overflow-y: auto; overflow-x: hidden; flex: 1 1 auto; min-height: 0; }
.modal .actions { flex: 0 0 auto; }
/* Cartões de erro/alerta do Siscomex */
.sisc-summary { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 12px; }
.sisc-item { padding: 10px 12px; border-radius: 6px; margin-bottom: 8px; border-left: 4px solid var(--border); background: var(--bg-primary); }
.sisc-item .sisc-head { font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.sisc-item .sisc-code { font-weight: 500; font-size: 11px; opacity: .75; }
.sisc-item .sisc-msg { color: var(--text-primary); font-size: 13px; line-height: 1.45; }
.sisc-item.err { background: var(--red-bg); border-left-color: var(--red); }
.sisc-item.err .sisc-head { color: var(--red); }
.sisc-item.alert { background: var(--amber-bg); border-left-color: var(--amber); }
.sisc-item.alert .sisc-head { color: var(--amber); }
/* Overlay de carregamento */
.loading-ov { position: fixed; inset: 0; background: rgba(10,35,61,.55); display: none; align-items: center; justify-content: center; z-index: 200; }
.loading-ov.show { display: flex; }
.loading-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 26px 34px; display: flex; flex-direction: column; align-items: center; gap: 16px; box-shadow: 0 8px 30px rgba(16,35,61,.25); max-width: 320px; text-align: center; }
.loading-card .spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-card #loading-msg { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.modal input, .modal select {
    width: 100%; padding: 9px 11px; background: var(--bg-primary); border: 1px solid var(--border);
    color: var(--text-primary); border-radius: 6px; font-size: 13px; margin-bottom: 14px;
    font-family: inherit;
}
.modal input:focus, .modal select:focus { outline: none; border-color: var(--accent); }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.modal .validation-box {
    padding: 10px 12px; border-radius: 6px; font-size: 12px; margin-bottom: 14px; display: none;
}
.modal .validation-box.ok { display: block; background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }
.modal .validation-box.err { display: block; background: var(--red-bg); color: var(--red); border: 1px solid var(--red); }

/* Toast */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
    background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent);
    padding: 12px 18px; border-radius: 6px; font-size: 13px; min-width: 240px;
    animation: slideIn 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; }}

/* Filters bar */
.filters-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.filters-bar input, .filters-bar select {
    padding: 7px 11px; background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-primary); border-radius: 6px; font-size: 13px;
}
.filters-bar input { flex: 1; }

/* Construction badge */
.construction-banner {
    background: var(--amber-bg); color: var(--amber); padding: 14px 18px; border-radius: 8px;
    border-left: 3px solid var(--amber); margin-bottom: 18px;
    font-size: 13px;
}

/* Log */
.log-block {
    background: #050810; border: 1px solid var(--border-subtle); border-radius: 6px;
    padding: 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
    color: var(--green); white-space: pre-wrap; max-height: 320px; overflow: auto; margin-bottom: 12px;
}
.log-block .log-name { color: var(--accent); margin-bottom: 6px; font-weight: 600; }

/* Helpers */
.flex { display: flex; gap: 8px; align-items: center; }
.muted { color: var(--text-muted); }
.mono { font-family: 'JetBrains Mono', monospace; }
.text-right { text-align: right; }

/* ─── BLINDAGEM SVG (anti-explosão se CSS variável falhar) ─── */
svg { max-width: 100%; max-height: 100%; }
.nav-item svg, .btn svg, .icon { width: 18px !important; height: 18px !important; flex-shrink: 0 !important; }
.btn svg { width: 14px !important; height: 14px !important; }
.modal svg { width: 18px !important; height: 18px !important; }
.add-card svg { width: 32px !important; height: 32px !important; }

/* ─── DECLARADOR extras ─── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
.form-col { display: flex; flex-direction: column; gap: 14px; }
.card-box { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 16px; }
.box-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.card-box label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.card-box input, .card-box textarea {
    width: 100%; padding: 9px 11px; background: var(--bg-primary); border: 1px solid var(--border);
    color: var(--text-primary); border-radius: 6px; font-size: 13px; margin-bottom: 14px; font-family: inherit;
}
.card-box textarea { font-family: 'JetBrains Mono', monospace; font-size: 12px; resize: vertical; }
.card-box input:focus, .card-box textarea:focus { outline: none; border-color: var(--accent); }
#especies-preview { margin-top: 10px; }
.esp-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 8px; border-radius: 5px; background: var(--bg-primary); margin-bottom: 5px; }
.esp-row .code { font-family: 'JetBrains Mono', monospace; font-weight: 600; min-width: 52px; }
.esp-row.outros { border-left: 3px solid var(--amber); }
.esp-row.ok { border-left: 3px solid var(--green); }
.payload-json {
    background: #050810; border: 1px solid var(--border-subtle); border-radius: 6px; padding: 14px;
    font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--green);
    white-space: pre-wrap; max-height: 480px; overflow: auto; margin-top: 16px;
}
.aviso-box { background: var(--amber-bg); color: var(--amber); padding: 10px 12px; border-radius: 6px; font-size: 12px; margin-top: 12px; border-left: 3px solid var(--amber); }
.decl-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 14px; border-left: 3px solid var(--accent); }
.decl-card .decl-id { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--accent); }
.card-box textarea { margin-bottom: 0; }

/* Anexação de documentos */
.anex-modal { width: 620px; max-width: 94vw; max-height: 88vh; display: flex; flex-direction: column; }
.anex-modal #anex-body { overflow-y: auto; flex: 1; min-height: 0; padding-right: 4px; }
.anex-modal input[type="file"] { padding: 8px; background: var(--bg-primary); border: 1px dashed var(--border); border-radius: 6px; width: 100%; font-size: 12px; color: var(--text-primary); }
.anex-modal .esp-row { word-break: break-all; }
.anex-modal #anex-result .esp-row.ok { border-left: 3px solid var(--green); }
.anex-modal #anex-result .esp-row.outros { border-left: 3px solid var(--red); }

/* ─── LAYOUT VERTICAL EM LINHAS (ajuste Adriano 2026-06-23) ─── */
.decl-list { display: flex; flex-direction: column; gap: 8px; }
.decl-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding: 12px 16px;
    background: var(--bg-card, #1E293B);
    border: 1px solid var(--border, #2A3A50);
    border-left: 3px solid var(--border, #2A3A50);
    border-radius: 8px;
    transition: background 0.12s, border-color 0.12s;
}
.decl-row:hover { background: var(--bg-hover, #1E2B3F); border-color: var(--accent, #38BDF8); }
.decl-row.is-registrada { border-left-color: #1f9d55; }
.decl-row .row-main { flex: 1; min-width: 0; }
.decl-row .row-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.decl-row .decl-id { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 13px; color: var(--accent, #38BDF8); }
.decl-row .row-body { margin-top: 4px; font-size: 13px; display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.decl-row .row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.decl-row .row-actions .btn { padding: 6px 10px; font-size: 15px; line-height: 1; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 12px; font-weight: 500; white-space: nowrap; }
.badge.ok { background: rgba(31,157,85,.15); color: #4ADE80; border: 1px solid rgba(74,222,128,.3); }
.badge.pend { background: rgba(148,163,184,.12); color: #94A3B8; border: 1px solid rgba(148,163,184,.25); }

/* ─── DU-E (espelho Portal Único) ─── */
.due-stepbar { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.due-step { font-size:12px; padding:6px 12px; border-radius:6px; background:var(--bg-card);
  border:1px solid var(--border); color:var(--text-secondary); white-space:nowrap; }
.due-step.active { background:var(--accent-strong); border-color:var(--accent-strong); color:#fff; font-weight:600; }
.due-subttl { font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.04em;
  color:var(--accent); margin:18px 0 10px; padding-bottom:6px; border-bottom:1px solid var(--border); }
.due-radios { display:flex; flex-wrap:wrap; gap:14px; margin:2px 0 12px; }
label.rb { display:inline-flex; align-items:center; gap:7px; font-size:13px; color:var(--text-primary);
  font-weight:400; text-transform:none; letter-spacing:normal; cursor:pointer; margin:0; }
label.rb input { width:auto; margin:0; accent-color:var(--accent); }
#tab-due .card-box { margin-bottom:16px; }

/* ─── DU-E uploads ─── */
.due-uploads { display:flex; gap:12px; flex-wrap:wrap; }
.due-drop { flex:1; min-width:210px; display:flex; align-items:center; gap:12px; padding:14px;
  border:1.5px dashed var(--border); border-radius:8px; background:var(--bg-card); cursor:pointer; transition:.15s; }
.due-drop:hover, .due-drop.drag { border-color:var(--accent); background:var(--bg-hover); }
.due-drop-ic { font-size:26px; line-height:1; }
.due-drop b { color:var(--text-primary); }

/* ═══════════════ TEMA CLARO — ajustes header/sidebar (estilo Lufthansa) ═══════════════ */
/* Barra lateral e topo permanecem azul-marinho com texto claro */
.sidebar { background: #0a1f4d; border-right: 1px solid #0a1f4d; }
.sidebar .brand { border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar .brand .name { color: #fff; }
.sidebar-section { color: rgba(255,255,255,.45); }
.nav-item { color: rgba(255,255,255,.72); }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.12); color: #fff; border-left-color: #ffad00; }
.sidebar .divider { background: rgba(255,255,255,.12); }

.topbar { background: #0a1f4d; border-bottom: 1px solid #0a1f4d; }
.topbar .title { color: #fff; }
.topbar .meta { color: rgba(255,255,255,.7); }
.topbar .tag { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.topbar .tag .dot { background: #35d07f; }
.topbar .btn { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.topbar .btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }

/* Botão principal estilo Lufthansa: amarelo/dourado com texto escuro */
.btn.primary { background: #ffad00; border-color: #ffad00; color: #16233d; font-weight: 600; }
.btn.primary:hover { background: #e89f00; border-color: #e89f00; color: #16233d; }

/* Cards com leve sombra e sem "brilho" de gradiente escuro */
.card-box, .lpco-card, .config-card, .decl-row, .modal, .due-drop { box-shadow: 0 1px 3px rgba(16,35,61,.07); }
.lpco-card.faixa-atencao, .lpco-card.faixa-excluir { background: var(--bg-card); }
.content { background: var(--bg-primary); }

/* Badges/realces mais legíveis no claro */
.badge.ok { background: #e3f5ea; color: #12924a; border: 1px solid #b7e3c8; }
.badge.pend { background: #eef1f6; color: #5b6b86; border: 1px solid #d3dbe7; }
.decl-row.is-registrada { border-left-color: #12924a; }

/* Blocos de código (XML/JSON/log) seguem escuros — leem melhor como "terminal" */
