/* Inti Contable - identidad visual "amanecer andino": azul noche + sol naranja */
:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel-2: #f3f5fa;
  --line: #e6e9f2;
  --line-2: #d6dbe8;
  --text: #182033;
  --muted: #6a7389;
  --accent: #f2661c;
  --accent-2: #ffae1a;
  --accent-bg: #fff2e8;
  --accent-ink: #b8460a;
  --grad: linear-gradient(135deg, #ff5f1f 0%, #ff9a1a 55%, #ffc23d 100%);
  --nav-bg: linear-gradient(180deg, #0f1838 0%, #18265a 100%);
  --nav-text: #d8def0;
  --nav-muted: #8691b5;
  --ok: #128a5a; --ok-bg: #e5f7ef; --ok-line: #b9e8d3;
  --warn: #a96400; --warn-bg: #fff4dc; --warn-line: #f6dca2;
  --bad: #c73a32; --bad-bg: #fdeceb; --bad-line: #f5c3bf;
  --shadow: 0 1px 2px rgba(16, 24, 56, .06), 0 4px 14px rgba(16, 24, 56, .06);
  --shadow-up: 0 8px 26px rgba(16, 24, 56, .12);
  --input-bg: #ffffff;
  --row-hover: #fff8f2;
  --radius: 14px;
  font-family: "Segoe UI Variable", "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
}
[data-theme="dark"] {
  --bg: #0b1122;
  --panel: #131b33;
  --panel-2: #18213d;
  --line: #24304f;
  --line-2: #2f3c60;
  --text: #e8ecf7;
  --muted: #95a0bf;
  --accent-bg: #2b1d18;
  --accent-ink: #ffb27a;
  --nav-bg: linear-gradient(180deg, #070c1a 0%, #0f1838 100%);
  --ok: #4fd39a; --ok-bg: #12301f; --ok-line: #1f5a3c;
  --warn: #ffc461; --warn-bg: #33270f; --warn-line: #5b4519;
  --bad: #ff8a80; --bad-bg: #3a1716; --bad-line: #6a2a27;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
  --shadow-up: 0 10px 28px rgba(0,0,0,.45);
  --input-bg: #0f1730;
  --row-hover: #1b2546;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-size: 14px; transition: background .3s, color .3s; }
a { color: var(--accent); }
h1 { font-size: 27px; margin: 0 0 4px; letter-spacing: -.5px; font-weight: 750; }
h2 { font-size: 17px; margin: 0 0 4px; font-weight: 700; }
h3 { font-size: 15px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.hidden { display: none !important; }

/* ---------------- layout ---------------- */
.app { display: grid; grid-template-columns: 250px 1fr; height: 100vh; }
.sidebar { background: var(--nav-bg); color: var(--nav-text); display: flex; flex-direction: column; overflow-y: auto; position: relative; }
.sidebar::before { content: ""; position: absolute; top: -80px; right: -80px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,154,26,.35), transparent 70%); pointer-events: none; animation: glow 6s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.15); opacity: .7; } }
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 12px; position: relative; }
.brand img.logo { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 14px rgba(245,166,35,.35); transition: transform .4s; }
.brand:hover img.logo { transform: translateY(-2px) scale(1.05); }
.brand b { font-size: 19px; letter-spacing: -.4px; color: #fff; display: block; }
.brand small { display: block; font-size: 10px; color: #ffb366; letter-spacing: .6px; text-transform: uppercase; margin-top: 2px; }
.empresa-box { margin: 8px 14px 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.empresa-box label { color: var(--nav-muted); }
.empresa-box select { width: 100%; background: rgba(0,0,0,.25); color: #fff; border-color: rgba(255,255,255,.15); }
.empresa-box select option { color: #182033; }
.empresa-box .ruc { font-size: 11px; color: var(--nav-muted); margin-top: 6px; }
.nav { display: flex; flex-direction: column; padding: 4px 10px; gap: 2px; }
.nav a { color: var(--nav-text); text-decoration: none; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 13px; display: flex; gap: 11px; align-items: center; transition: background .2s, transform .2s, color .2s; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.08); transform: translateX(3px); color: #fff; }
.nav a.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(255,110,30,.35); }
.nav a.active svg { opacity: 1; }
.nav .sep { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--nav-muted); padding: 16px 12px 5px; }
.sidebar .foot { margin-top: auto; padding: 14px 18px 16px; font-size: 11px; color: var(--nav-muted); display: flex; flex-direction: column; gap: 10px; }
.theme-btn { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.15); justify-content: center; }
.theme-btn:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }
.main { overflow-y: auto; padding: 26px 34px 70px; }
.main > * { animation: rise .35s ease both; }
.main > *:nth-child(2) { animation-delay: .04s; } .main > *:nth-child(3) { animation-delay: .08s; }
.main > *:nth-child(4) { animation-delay: .12s; } .main > *:nth-child(5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.topbar h1::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 4px; background: var(--grad); margin-top: 8px; }
.periodo { display: flex; gap: 8px; align-items: center; }

/* ---------------- controles ---------------- */
button, .btn { font: inherit; font-weight: 600; font-size: 13px; color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: transform .15s, box-shadow .2s, border-color .2s, background .2s; }
button:hover, .btn:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow); }
button:active { transform: translateY(0) scale(.98); }
button.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(255,110,30,.3); }
button.primary:hover { color: #fff; box-shadow: 0 8px 22px rgba(255,110,30,.45); }
button.ghost { background: transparent; border-color: transparent; }
button.ghost:hover { background: var(--panel-2); }
button.danger { color: var(--bad); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
button.icon { padding: 7px 9px; min-width: 34px; justify-content: center; }
button.icon.on { background: var(--grad); color: #fff; border-color: transparent; }
input, select, textarea { font: inherit; color: var(--text); background: var(--input-bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,102,28,.15); }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.field { margin-bottom: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid2 > *, .grid3 > * { min-width: 0; }
.field select, .field input:not([type=checkbox]) { width: 100%; }

/* ---------------- tarjetas ---------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.cards .card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); opacity: .9; }
.cards .card:nth-child(2)::after { background: linear-gradient(180deg, #3b82f6, #6366f1); }
.cards .card:nth-child(3)::after { background: linear-gradient(180deg, #10b981, #22c55e); }
.cards .card:nth-child(4)::after { background: linear-gradient(180deg, #8b5cf6, #d946ef); }
.cards .card:nth-child(5)::after { background: linear-gradient(180deg, #64748b, #94a3b8); }
.stat { display: flex; align-items: baseline; gap: 10px; }
.stat b, .stat-money b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat b { font-size: 28px; font-weight: 800; }
.stat-money b { font-size: 23px; display: block; margin: 6px 0 2px; font-weight: 800; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; box-shadow: var(--shadow); overflow: hidden; }
.panel-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-body { padding: 16px 18px; }
.tabs { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { padding: 7px 13px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.tabs a:hover { background: var(--panel-2); color: var(--text); }
.tabs a.active { color: #fff; background: var(--grad); box-shadow: 0 4px 12px rgba(255,110,30,.3); }
.note { background: var(--accent-bg); border: 1px solid rgba(242,102,28,.18); border-radius: 12px; padding: 11px 14px; color: var(--text); font-size: 12.5px; line-height: 1.55; margin-bottom: 16px; }
.note::before { content: "☀ "; color: var(--accent); }

/* ---------------- tablas ---------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; padding: 11px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
td { padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; transition: background .15s; }
tbody tr:hover td { background: var(--row-hover); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 700; background: var(--panel-2); }
tr.sub td { font-weight: 700; color: var(--accent-ink); }
.desc-lines { font-size: 11px; line-height: 1.6; max-height: 140px; overflow: auto; text-transform: uppercase; }
.desc-lines .muted { text-transform: none; }
.cp-num { font-weight: 700; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.badge.gold { background: var(--accent-bg); color: var(--accent-ink); border-color: rgba(242,102,28,.3); }
.tipo-sel select { width: 100%; max-width: 300px; }
.hint { font-size: 11px; color: var(--muted); margin-top: 5px; }
.hint.changed { color: var(--accent); font-weight: 600; }
.actions { display: grid; grid-template-columns: repeat(3, 34px); gap: 6px; }

/* ---------------- drawer / modal ---------------- */
.overlay { position: fixed; inset: 0; background: rgba(10,16,38,.45); backdrop-filter: blur(3px); z-index: 50; display: flex; justify-content: flex-end; animation: fade .2s ease; }
.overlay.center { justify-content: center; align-items: center; }
@keyframes fade { from { opacity: 0; } }
.drawer { width: min(760px, 96vw); height: 100%; background: var(--bg); border-left: 1px solid var(--line-2); overflow-y: auto; padding: 24px 26px 40px; animation: slide .28s cubic-bezier(.2,.8,.2,1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.modal { width: min(720px, 96vw); max-height: 90vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px 26px; box-shadow: var(--shadow-up); animation: pop .22s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.close { float: right; }
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; margin: 0 0 14px; font-size: 13px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }

/* ---------------- toast ---------------- */
#toast { position: fixed; bottom: 22px; right: 22px; z-index: 99; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-left: 5px solid var(--accent); padding: 11px 15px; border-radius: 12px; max-width: 420px; box-shadow: var(--shadow-up); font-size: 13px; animation: toastIn .3s cubic-bezier(.2,.8,.2,1); }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } }
.toast.err { border-left-color: var(--bad); }
.toast.ok { border-left-color: var(--ok); }

.eeff-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.empty { text-align: center; padding: 42px 10px; color: var(--muted); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg); }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
@media (max-width: 1000px) { .app { grid-template-columns: 1fr; } .sidebar { display: none; } .eeff-cols, .grid2, .grid3 { grid-template-columns: 1fr; } }

/* aviso de sincronización automática */
.sync { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 13px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); animation: rise .3s ease both; }
.sync.busy { border-color: rgba(242,102,28,.35); background: var(--accent-bg); }
.sync.busy::before { content: ""; }
.sync.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); padding: 7px 14px; font-size: 12px; }
.sync.err { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }
.sync.info { background: var(--panel-2); }

/* botón de tipo en la tabla */
.tipo-btn { width: 100%; max-width: 300px; justify-content: space-between; text-align: left; white-space: normal; font-weight: 600; }
.tipo-btn span:first-child { overflow: hidden; text-overflow: ellipsis; }
.tipo-btn:not(.set) { color: var(--muted); border-style: dashed; }
.tipo-btn.set { border-color: rgba(242,102,28,.45); background: var(--accent-bg); color: var(--accent-ink); }
.tipo-btn .car { opacity: .6; }

/* selector de catálogo */
.modal.picker { width: min(760px, 96vw); padding: 0; display: flex; flex-direction: column; max-height: 88vh; overflow: hidden; }
.picker .close { position: absolute; right: 14px; top: 14px; z-index: 2; }
.modal.picker { position: relative; }
.pk-head { padding: 22px 24px 12px; background: linear-gradient(135deg, rgba(255,95,31,.10), rgba(255,194,61,.06)); border-bottom: 1px solid var(--line); }
.pk-kicker { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.pk-head h2 { font-size: 20px; margin-bottom: 4px; }
.pk-desc { text-transform: uppercase; }
.pk-search { display: flex; align-items: center; gap: 10px; margin: 14px 24px 8px; padding: 4px 14px; border: 2px solid var(--line-2); border-radius: 14px; background: var(--input-bg); transition: border-color .2s, box-shadow .2s; }
.pk-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242,102,28,.12); }
.pk-search input { border: 0; box-shadow: none !important; flex: 1; font-size: 15px; padding: 10px 0; background: transparent; }
.pk-cats { display: flex; gap: 6px; padding: 4px 24px 10px; overflow-x: auto; scrollbar-width: thin; }
.pk-cats a { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); transition: all .15s; }
.pk-cats a:hover { color: var(--text); border-color: var(--line-2); }
.pk-cats a.active { background: var(--grad); color: #fff; border-color: transparent; }
.pk-list { flex: 1; overflow-y: auto; padding: 4px 16px 10px; min-height: 260px; }
.pk-sec { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 12px 8px 6px; }
.pk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: background .12s, border-color .12s, transform .12s; }
.pk-item.on { background: var(--accent-bg); border-color: rgba(242,102,28,.35); transform: translateX(2px); }
.pk-code { flex: none; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--panel-2); color: var(--muted); min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; }

.pk-main { flex: 1; min-width: 0; }
.pk-name { font-weight: 650; font-size: 13.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pk-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pk-cta { flex: none; width: 64px; text-align: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--accent-ink); background: var(--accent-bg); border: 1px solid rgba(242,102,28,.28); padding: 7px 0; border-radius: 10px; letter-spacing: .3px; }
.pk-item.on .pk-cta { background: var(--grad); color: #fff; border-color: transparent; }
.pk-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 24px; border-top: 1px solid var(--line); background: var(--panel-2); }
.pk-regla { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--text); cursor: pointer; }
.pk-regla input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ---------------- acceso (login) · "amanecer andino" ---------------- */
.auth { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg); animation: authIn .5s ease; }
.auth.saliendo { animation: authOut .38s ease forwards; }
@keyframes authIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes authOut { to { opacity: 0; transform: scale(1.02); } }
.auth-hero { position: relative; overflow: hidden; color: #e9edf9; padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  background: radial-gradient(ellipse at 50% 120%, rgba(255,140,40,.55) 0%, rgba(255,95,31,.18) 35%, transparent 60%), linear-gradient(180deg, #0a1130 0%, #16245a 70%, #2a2560 100%); }
.auth-hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: 90px; background: #0a1130; opacity: .55;
  clip-path: polygon(0 100%, 0 62%, 12% 30%, 22% 55%, 34% 12%, 46% 50%, 58% 22%, 70% 58%, 82% 28%, 92% 52%, 100% 36%, 100% 100%); }
.auth-sol { position: absolute; right: 8%; top: 9%; width: 150px; height: 150px; display: grid; place-items: center; }
.auth-sol img { width: 74px; height: 74px; border-radius: 20px; position: relative; z-index: 1; box-shadow: 0 0 60px rgba(255,150,40,.8); animation: flotar 5s ease-in-out infinite; }
.auth-sol .rayos { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,190,80,.45) 0deg 6deg, transparent 6deg 22.5deg);
  -webkit-mask: radial-gradient(circle, transparent 34%, #000 36%, #000 60%, transparent 72%); mask: radial-gradient(circle, transparent 34%, #000 36%, #000 60%, transparent 72%); animation: girar 28s linear infinite; }
.auth-sol .rayos.r2 { inset: -26px; opacity: .45; animation-duration: 46s; animation-direction: reverse; }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes flotar { 50% { transform: translateY(-8px); } }
.auth-marca b { font-size: 22px; color: #fff; letter-spacing: -.4px; display: block; }
.auth-marca small { color: #ffb366; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; }
.auth-lema { font-size: 40px; line-height: 1.12; color: #fff; max-width: 520px; margin: 0; }
.auth-lema span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; transition: opacity .35s, transform .35s; }
.auth-lema span.fuera { opacity: 0; transform: translateY(10px); }
.auth-feats { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 14px; max-width: 460px; position: relative; z-index: 1; }
.auth-feats li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(4px); animation: subir .6s ease both; }
.auth-feats li:nth-child(2) { animation-delay: .12s; } .auth-feats li:nth-child(3) { animation-delay: .24s; }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.auth-feats i { font-style: normal; width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; }
.auth-feats b { display: block; color: #fff; font-size: 14px; } .auth-feats span { color: #aab4d4; font-size: 12.5px; }
.auth-pie { position: absolute; bottom: 18px; left: 56px; font-size: 11px; color: #8691b5; z-index: 1; }
.auth-lado { display: grid; place-items: center; padding: 32px; }
.auth-card { width: min(410px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 34px 32px; box-shadow: var(--shadow-up); position: relative; overflow: hidden; animation: subir .5s ease both; }
.auth-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); background-size: 200% 100%; animation: brillo 4s linear infinite; }
@keyframes brillo { to { background-position: 200% 0; } }
.auth-card.sacudir { animation: sacudir .4s; }
@keyframes sacudir { 25% { transform: translateX(-8px); } 50% { transform: translateX(7px); } 75% { transform: translateX(-4px); } }
.auth-hola { color: var(--accent-ink); font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.auth-card h2 { font-size: 23px; margin-bottom: 6px; }
.auth-card .field input { width: 100%; padding: 11px 12px; font-size: 14px; }
.auth-pass { display: flex; gap: 6px; } .auth-pass input { flex: 1; }
.auth-btn { width: 100%; padding: 12px; font-size: 15px; margin-top: 6px; display: flex; justify-content: center; gap: 8px; }
.auth-btn span { transition: transform .2s; } .auth-btn:hover span { transform: translateX(4px); }
.auth-aviso { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; margin: 8px 0; }
.auth-links { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 12.5px; }
.auth-links a { text-decoration: none; }
a.wa, a.wa-btn { color: #1faa59; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
a.wa svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-hero { display: none; } }

/* ---------------- usuario en la barra lateral ---------------- */
.user-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.user-chip { display: flex; gap: 10px; align-items: center; }
.user-chip .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.user-chip b { color: #fff; font-size: 13px; display: block; } .user-chip small { color: var(--nav-muted); font-size: 11px; }
.user-box a.wa-btn { justify-content: center; background: rgba(31,170,89,.14); border: 1px solid rgba(31,170,89,.35); color: #5fe39a; padding: 7px; border-radius: 10px; font-size: 12px; }
.user-box a.wa-btn:hover { background: rgba(31,170,89,.25); }
.user-box .ghost { color: var(--nav-text); font-size: 11px; padding: 5px 8px; flex: 1; }
pre.acceso { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13px; white-space: pre-wrap; }
body.rol-cliente .note { display: none; }

/* ---------------- celular y tablet (vertical) ---------------- */
.mbar, .menu-fondo, .wa-fab { display: none; }
@media (max-width: 1000px) {
  html, body { overflow-x: hidden; }
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 100dvh; }
  .main { min-width: 0; padding: 16px 14px 90px; }
  .mbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--nav-bg); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 4px 16px rgba(10,16,38,.25); }
  .mbar img { width: 32px; height: 32px; border-radius: 9px; }
  .mbar b { font-size: 16px; letter-spacing: -.3px; } .mbar small { display: block; font-size: 10.5px; color: #ffb366; max-width: 58vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar .ham { margin-left: auto; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: #fff; width: 42px; height: 42px; border-radius: 12px; font-size: 20px; padding: 0; }
  .sidebar { display: flex !important; position: fixed; left: 0; top: 0; bottom: 0; width: min(290px, 84vw); z-index: 60; transform: translateX(-105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: 10px 0 40px rgba(0,0,0,.35); }
  .app.menu-abierto .sidebar { transform: none; }
  .app.menu-abierto .menu-fondo { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(10,16,38,.5); backdrop-filter: blur(2px); animation: fade .2s; }
  .topbar { flex-direction: column; gap: 10px; margin-bottom: 14px; }
  .topbar h1 { font-size: 22px; }
  .topbar > .row, .topbar > .periodo { width: 100%; }
  .periodo select { flex: 1; } .periodo input { width: 84px !important; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 12px 13px; }
  .stat-money b { font-size: 18px; }
  .card:hover { transform: none; }
  .panel-head { padding: 12px; }
  .panel-head > input { min-width: 0 !important; width: 100%; }
  .grid2, .grid3, .eeff-cols { grid-template-columns: 1fr !important; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  table { font-size: 12.5px; }
  th, td { padding: 8px 9px; }
  .modal { width: 100vw; max-height: 92dvh; border-radius: 18px 18px 0 0; padding: 18px 16px; align-self: flex-end; }
  .overlay.center { align-items: flex-end; }
  .drawer { width: 100vw; padding: 18px 14px 40px; }
  .wa-fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.45); animation: pop .4s; }
  .wa-fab svg { width: 30px; height: 30px; }
  #toast { left: 12px; right: 12px; bottom: 84px; }
}
.auth-movil { display: none; }
@media (max-width: 900px) {
  .auth { background: radial-gradient(ellipse at 50% 115%, rgba(255,140,40,.5), transparent 55%), linear-gradient(180deg, #0a1130, #1b2a63); overflow-y: auto; }
  .auth-lado { padding: 20px 14px; align-content: center; }
  .auth-card { padding: 26px 20px; }
  .auth-movil { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
  .auth-movil b { font-size: 19px; display: block; } .auth-movil small { color: var(--muted); font-size: 12px; }
  .auth-sol.mini { position: relative; right: auto; top: auto; width: 58px; height: 58px; flex: none; }
  .auth-sol.mini img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 0 26px rgba(255,150,40,.7); }
  .auth-sol.mini .rayos { inset: -6px; }
}

/* ===================================================== Honorarios y cobros */
:root { --s1: #3b6fd8; --s2: #e8611a; }
[data-theme="dark"] { --s1: #5b8cf0; --s2: #e8611a; }
.btn.small, button.small { padding: 6px 11px; font-size: 12px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.wa { color: #fff; background: #1faa59; border-color: transparent; }
.btn.wa:hover { color: #fff; background: #17904a; }
.nowrap { white-space: nowrap; }
.neg { color: var(--bad) !important; background: none !important; -webkit-text-fill-color: currentColor; }
.cards.mini { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.cards.mini .stat-money b { font-size: 19px; }
.tabs.chips { border: 0; padding: 0; }
.tabs a .cnt { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 3px; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 11px; text-align: center; }
.tabs a.active .cnt { background: rgba(255,255,255,.28); color: #fff; }
.hon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; padding: 16px; }
.hon-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--panel); transition: transform .2s, box-shadow .2s; }
.hon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.hon-card.sin { border-style: dashed; background: transparent; }
.hon-card.inactivo { opacity: .6; }
.hon-top { display: flex; gap: 12px; align-items: center; }
.hon-nom { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.hon-nom b { font-size: 14.5px; line-height: 1.25; }
.hon-datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--panel-2); border-radius: 10px; padding: 10px; }
.hon-datos > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hon-datos b { font-size: 15px; }
.hon-acc { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-top: auto; }
.anillo { position: relative; flex: none; display: grid; place-items: center; }
.anillo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.anillo circle { fill: none; stroke-width: 6; }
.anillo .pista { stroke: var(--line); }
.anillo .avance { stroke-linecap: round; transition: stroke-dasharray .6s; }
.anillo.ok .avance { stroke: var(--ok); } .anillo.warn .avance { stroke: var(--warn); } .anillo.bad .avance { stroke: var(--bad); }
.anillo b { font-size: 13px; font-weight: 800; }
.anillo.vacio { width: 58px; height: 58px; border: 2px dashed var(--line-2); border-radius: 50%; color: var(--muted); }
.alertas { list-style: none; margin: 0; padding: 6px 0; }
.alertas li { display: flex; gap: 10px; align-items: center; padding: 9px 18px; border-bottom: 1px solid var(--line); }
.alertas li:last-child { border-bottom: 0; }
.alertas li > span { flex: 1; }
.alertas li i { font-style: normal; font-weight: 800; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; }
.alertas li.bad i { background: var(--bad-bg); color: var(--bad); } .alertas li.warn i { background: var(--warn-bg); color: var(--warn); }
.leyenda { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.leyenda span, .graf-tip div { display: inline-flex; align-items: center; gap: 6px; }
.leyenda i, .graf-tip i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
i.s1 { background: var(--s1); } i.s2 { background: var(--s2); }
.graf-box { position: relative; padding: 10px 14px 6px; }
.graf { width: 100%; height: auto; display: block; }
.graf .s1 { fill: var(--s1); } .graf .s2 { fill: var(--s2); }
.graf .grid { stroke: var(--line); stroke-width: 1; }
.graf .base { stroke: var(--line-2); stroke-width: 1; }
.graf .eje { fill: var(--muted); font-size: 11px; }
.graf .hit { fill: transparent; }
.graf .mes { transition: opacity .15s; } .graf .mes.dim { opacity: .4; }
.graf-tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-up); padding: 8px 11px; font-size: 12px; min-width: 180px; z-index: 5; }
.graf-tip div { display: flex; gap: 6px; margin-top: 4px; } .graf-tip .mono { margin-left: auto; font-weight: 700; }
.timeline { list-style: none; margin: 14px 0; padding: 0 0 0 6px; }
.timeline li { display: flex; gap: 12px; padding: 0 0 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 13px; }
.timeline .t-cobro i { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.timeline .t-cuota.vencida i { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.timeline .t-contrato i { background: var(--accent-bg); color: var(--accent-ink); }
.timeline li > div { display: flex; flex-direction: column; gap: 2px; }
.mi-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, #0f1838, #2a3f8f); box-shadow: var(--shadow-up); }
.mi-hero.ok { background: linear-gradient(135deg, #0d6b47, #18a06a); }
.mi-hero.bad { background: linear-gradient(135deg, #8f2a24, #d0503f); }
.mi-hero > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.mi-hero b { font-size: 34px; font-weight: 800; }
.datos-pago { white-space: pre-wrap; font: inherit; margin: 8px 0 0; color: var(--text); }
@media (max-width: 1000px) {
  .hon-grid { grid-template-columns: 1fr; padding: 10px; }
  .hon-datos b { font-size: 13.5px; }
  .mi-hero { padding: 18px; } .mi-hero b { font-size: 28px; }
  .graf-box { padding: 6px 4px; }
}
.ficha-hon .drawer { width: min(1000px, 96vw); }
td .mono b, td.mono b { white-space: nowrap; }

.rxh-doc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.rxh-doc > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 1000px) { .rxh-doc { grid-template-columns: 1fr 1fr; } }

.btn-alerta { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-line); padding: 5px 10px; font-size: 12px; font-weight: 700; animation: latido 1.8s ease-in-out infinite; }
.btn-alerta:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
@keyframes latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(199,58,50,.35); } 50% { box-shadow: 0 0 0 5px rgba(199,58,50,0); } }
.txt-alerta { color: var(--bad); font-weight: 700; font-size: 11px; }
.input-alerta { border-color: var(--bad) !important; box-shadow: 0 0 0 3px var(--bad-bg); }

/* ======================================================= logo e Inicio */
.logo-inti { display: block; border-radius: 22%; }
.logo-inti.sube .sol { animation: amanecer 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes amanecer { from { transform: translateY(26px); opacity: .2; } to { transform: none; opacity: 1; } }
.auth-sol .logo-inti { width: 100%; height: 100%; box-shadow: 0 0 70px rgba(245,166,35,.45); animation: flotar 5s ease-in-out infinite; }
.auth-sol.mini .logo-inti { box-shadow: 0 0 24px rgba(245,166,35,.45); animation: none; }
.inicio-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 34px; padding: 38px 40px; border-radius: 22px; color: #eef1fb;
  background: linear-gradient(180deg, #121a3a 0%, #1b2340 55%, #2c3a66 100%); box-shadow: var(--shadow-up); margin-bottom: 18px; }
.inicio-cielo { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 18% 115%, rgba(245,166,35,.45) 0%, rgba(226,83,31,.18) 30%, transparent 58%); }
.inicio-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: #141c3a; opacity: .7;
  clip-path: polygon(0 100%, 0 60%, 10% 35%, 20% 62%, 32% 18%, 44% 58%, 56% 30%, 68% 64%, 80% 26%, 90% 55%, 100% 40%, 100% 100%); }
.inicio-logo { position: relative; z-index: 1; flex: none; filter: drop-shadow(0 10px 30px rgba(245,166,35,.35)); }
.inicio-txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.inicio-hola { color: #ffcf7a; font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.inicio-hola .cap { text-transform: capitalize; }
.inicio-txt h1 { margin: 0; font-size: 40px; letter-spacing: -1px; color: #fff; }
.inicio-lema { margin: 0; font-size: 22px; font-weight: 700; background: linear-gradient(90deg, #f5a623, #e2531f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.inicio-historia { margin: 6px 0 0; max-width: 620px; color: #c9d0ea; line-height: 1.55; }
.inicio-historia b { color: #fff; }
.inicio-frases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.frase { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  animation: entrar .6s cubic-bezier(.2,.8,.2,1) both; }
.frase i { font-style: normal; width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; font-size: 20px; color: #fff;
  background: linear-gradient(180deg, #f5a623, #e2531f); }
.frase b { display: block; font-size: 16px; margin-bottom: 4px; }
.frase span { color: var(--muted); font-size: 13px; line-height: 1.45; }
@keyframes entrar { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.inicio-alertas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.inicio-alertas .aviso { padding: 10px 14px; border-radius: 12px; font-size: 13px; text-decoration: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.inicio-alertas .aviso.bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.inicio-alertas .aviso.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.inicio-alertas .aviso.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.inicio-sub { font-size: 15px; margin: 6px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.inicio-accesos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.acceso { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.acceso:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: #f5a623; }
.acceso span { color: var(--muted); font-size: 12px; }
.acceso em { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; color: #f5a623; font-weight: 800; }
.inicio-pie { text-align: center; color: var(--muted); font-size: 12px; margin-top: 26px; }
@media (max-width: 1000px) {
  .inicio-hero { flex-direction: column; text-align: center; padding: 28px 18px 60px; gap: 16px; }
  .inicio-txt { align-items: center; }
  .inicio-txt h1 { font-size: 30px; } .inicio-lema { font-size: 18px; }
  .inicio-logo .logo-inti { width: 104px; height: 104px; }
  .inicio-frases { grid-template-columns: 1fr; }
  .inicio-accesos { grid-template-columns: 1fr 1fr; }
}

/* Usuarios: módulos del cliente / emprendedor */
.badge.info { background: rgba(59,111,216,.12); color: #3b6fd8; border-color: rgba(59,111,216,.3); }
.auth-aviso.info { background: rgba(59,111,216,.08); color: inherit; border-color: rgba(59,111,216,.3); }
.mods-box { margin: 6px 0 10px; }
.mods-box > label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.mods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.mod-chk { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 9px; cursor: pointer; margin: 0; }
.mod-chk:has(input:checked) { border-color: #e8611a; background: rgba(232,97,26,.06); }
.mod-chk.editar { margin-top: 8px; align-items: flex-start; }
.mod-chk.editar input { margin-top: 3px; }

/* Modo soporte */
.soporte-bar { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 60; background: #1b2340; color: #fff; border: 2px solid #f5a623;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: calc(100% - 28px); text-align: center; }
.empresa-box.en-soporte { border-color: #f5a623 !important; box-shadow: 0 0 0 2px rgba(245,166,35,.35); }
.aviso.info { background: rgba(59,111,216,.1); color: inherit; border: 1px solid rgba(59,111,216,.3); }
tr.fila-cambio td { font-weight: 600; }

.nom-comercial { color: #e8611a; font-weight: 600; font-size: 13px; margin: -2px 0 4px; }

.sop-activos { border: 2px solid #e8611a; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; background: rgba(232,97,26,.05); }
.sop-titulo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.sop-item { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line-2); }
.btn-quitar { background: #d93636; color: #fff; border: 0; border-radius: 10px; padding: 9px 14px; font-weight: 700; cursor: pointer; }
.btn-quitar:hover { background: #b82626; }
.sop-cerrado { padding: 10px 12px; border-radius: 10px; background: var(--panel-2); margin-bottom: 12px; font-size: 13px; }
@media (max-width: 640px) { .sop-item .btn-quitar, .sop-titulo .btn-quitar { width: 100%; } }

/* Inicio: publicidad de Servicontaplub */
.promo { margin: 4px 0 20px; }
.inicio-accesos + .promo { margin-top: 24px; }
.inicio-frases.al-final { margin-top: 26px; }
.svc-marca { position: relative; overflow: hidden; display: flex; align-items: center; gap: 30px; padding: 26px 34px; margin-bottom: 12px; border-radius: 22px;
  background: radial-gradient(ellipse at 88% 120%, rgba(232, 189, 96, .30) 0%, rgba(226, 83, 31, .12) 32%, transparent 60%),
              linear-gradient(180deg, #121a3a 0%, #1b2340 55%, #2c3a66 100%);
  border: 1px solid rgba(232, 189, 96, .35); box-shadow: var(--shadow-up); color: #eef1fb; }
.svc-emblema { width: 150px; height: 150px; flex: none; border-radius: 50%; filter: drop-shadow(0 10px 28px rgba(232, 189, 96, .28)); }
.svc-texto { min-width: 0; }
.svc-nombre { font-size: 30px; font-weight: 800; letter-spacing: -.01em; line-height: 1.05; }
.svc-sub { display: inline-block; margin-top: 6px; padding-top: 6px; border-top: 1.5px solid #e8bd60; font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #f0c96b; }
.svc-marca h2 { margin: 12px 0 4px; font-size: 20px; color: #fff; }
.svc-marca p { margin: 0; max-width: 760px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.svc-marca p b { color: #f6d27a; }
.svc-valores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.svc-valores span { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(246, 210, 122, .45); color: #fbe7b0; }
@media (max-width: 640px) { .svc-marca { flex-direction: column; text-align: center; padding: 20px 16px; } .svc-valores { justify-content: center; } .svc-emblema { width: 120px; height: 120px; } }
.promo-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: flex-end; margin-bottom: 12px; }
.promo-head h2 { margin: 2px 0 0; font-size: 19px; }
.promo-tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #e8611a; }
.promo-redes { display: flex; gap: 8px; flex-wrap: wrap; }
.promo-redes .btn { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.promo-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.promo-actualidad { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 220px; padding: 22px;
  border-radius: var(--radius); color: #fff; text-decoration: none;
  background: radial-gradient(circle at 85% 20%, rgba(245,166,35,.55), transparent 45%), linear-gradient(135deg, #1b2340 0%, #2c3a66 70%, #3b4a80 100%); }
.promo-actualidad::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 220px; height: 120px; background: #e2531f; opacity: .25;
  clip-path: polygon(0 100%, 35% 30%, 55% 60%, 75% 10%, 100% 100%); }
.promo-actualidad h3 { margin: 0; font-size: 22px; line-height: 1.2; position: relative; z-index: 1; }
.promo-actualidad p { margin: 0; opacity: .85; font-size: 13.5px; position: relative; z-index: 1; max-width: 420px; }
.promo-chip { align-self: flex-start; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.promo-ir { font-weight: 700; color: #f5a623; position: relative; z-index: 1; }
.promo-actualidad:hover .promo-ir { text-decoration: underline; }
.promo-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promo-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); text-decoration: none; color: #1b2340; transition: transform .15s, box-shadow .15s; }
.promo-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27,35,64,.15); }
.promo-tile i { font-style: normal; font-size: 22px; }
.promo-tile b { font-size: 14.5px; }
.promo-tile span { font-size: 12.5px; opacity: .8; }
.promo-tile.t1 { background: #fde3c8; } .promo-tile.t2 { background: #d9e4fb; } .promo-tile.t3 { background: #fbd5c9; } .promo-tile.t4 { background: #e7dcf7; }
.promo-servicios { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.promo-serv { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: inherit; text-decoration: none; }
.promo-serv:hover { border-color: #e8611a; color: #e8611a; }
[data-theme="dark"] .promo-tile { color: #1b2340; }
@media (max-width: 900px) { .promo-grid { grid-template-columns: 1fr; } .promo-actualidad { min-height: 180px; } }

/* Accesos rápidos de colores */
.inicio-accesos .acceso { flex-direction: row; align-items: center; gap: 12px; padding: 14px 38px 14px 14px; border-left: 4px solid var(--c);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, var(--panel)) 0%, var(--panel) 70%); }
.inicio-accesos .acceso > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inicio-accesos .acceso:hover { border-color: var(--c); border-left-color: var(--c); box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 28%, transparent); }
.acceso-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-style: normal; font-size: 19px;
  background: color-mix(in srgb, var(--c) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.inicio-accesos .acceso em { color: var(--c); }

/* Detracción en el panel de cobros */
.det-aviso { margin: 12px 0 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); line-height: 1.5; }
.det-aviso.ok { border-color: rgba(46, 160, 67, .55); background: rgba(46, 160, 67, .08); }
.det-aviso.warn { border-color: rgba(245, 166, 35, .6); background: rgba(245, 166, 35, .08); }
.det-cobro { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }

/* Análisis SSCO */
.ssco-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; margin-bottom: 14px; border: 1px solid var(--line); line-height: 1.5; }
.ssco-banner > div:nth-child(2) { flex: 1; }
.ssco-banner.ok { background: rgba(46, 160, 67, .09); border-color: rgba(46, 160, 67, .45); }
.ssco-banner.alerta { background: rgba(229, 83, 75, .10); border-color: rgba(229, 83, 75, .55); }
.ssco-banner.warn { background: rgba(245, 166, 35, .10); border-color: rgba(245, 166, 35, .55); }
.ssco-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, .06); flex: none; }
.ssco-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.ssco-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; background: var(--panel, transparent); border-top: 3px solid #6366f1; }
.ssco-card b { font-size: 20px; }
.ssco-card.ok { border-top-color: #2ea043; }
.ssco-card.alerta { border-top-color: #e5534b; }
.ssco-card.alerta b { color: #e5534b; }
.ssco-paso { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; font-weight: 700; }
.ssco-barra { height: 6px; border-radius: 6px; background: rgba(127, 127, 127, .2); overflow: hidden; margin-top: 6px; }
.ssco-barra i { display: block; height: 100%; background: linear-gradient(90deg, #f5a623, #ff7a18); }
.ssco-ley { font-size: 12px; display: flex; gap: 10px; align-items: center; }
.ssco-ley .ok, .ssco-mes.ok .ssco-dot { color: #2ea043; }
.ssco-ley .alerta, .ssco-mes.alerta .ssco-dot { color: #e5534b; }
.ssco-ley .vacio { color: #8b93a7; }
.ssco-linea { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; padding: 14px; position: relative; }
.ssco-mes { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer; color: inherit; font: inherit; }
.ssco-mes:hover:not([disabled]), .ssco-mes.sel { border-color: var(--line); background: rgba(127, 127, 127, .08); }
.ssco-mes.sel { border-color: #f5a623; }
.ssco-mes[disabled] { cursor: default; opacity: .55; }
.ssco-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; border: 2px dashed #8b93a7; margin-bottom: 4px; }
.ssco-mes.ok .ssco-dot { border: 2px solid #2ea043; background: rgba(46, 160, 67, .12); }
.ssco-mes.alerta .ssco-dot { border: 2px solid #e5534b; background: rgba(229, 83, 75, .15); }
.ssco-mes > span:not(.ssco-dot) { font-size: 18px; font-weight: 700; }
.ssco-mes.alerta > span:not(.ssco-dot) { color: #e5534b; }
.ssco-mes.ok > span:not(.ssco-dot) { color: #2ea043; }
.ssco-mes small { font-size: 11px; opacity: .7; }
.ssco-prov { border-top: 1px solid var(--line); padding: 12px 16px; }
.ssco-prov-h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ssco-fila td { background: rgba(229, 83, 75, .07); }
.badge.danger { background: rgba(229, 83, 75, .15); color: #e5534b; border: 1px solid rgba(229, 83, 75, .4); text-decoration: none; }
@media (max-width: 900px) {
  .ssco-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ssco-linea { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ssco-banner { flex-wrap: wrap; }
}

/* Descarga de libros SUNAT */
.libro-op { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }

.badge.manual{background:#eef2ff;color:#3730a3;border-color:#c7d2fe;font-size:10px;padding:1px 6px;vertical-align:middle}

/* ---------------- registro de comprobante (rc) ---------------- */
.modal.rc-modal { width: min(1240px, 97vw); max-height: 94vh; padding: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.rc-modal > .close { position: absolute; right: 14px; top: 14px; z-index: 3; }
.rc { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.rc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; padding: 20px 26px 14px; background: linear-gradient(135deg, rgba(255,95,31,.10), rgba(255,194,61,.05)); border-bottom: 1px solid var(--line); }
.rc-head h2 { margin: 2px 0 4px; font-size: 21px; }
.rc-total { display: flex; flex-direction: column; align-items: flex-end; margin-right: 40px; min-width: 190px; }
.rc-total b { font-size: 26px; letter-spacing: -.5px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-tabs { display: flex; gap: 4px; padding: 8px 20px 0; border-bottom: 1px solid var(--line); background: var(--panel); overflow-x: auto; }
.rc-tabs a { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 14px 11px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.rc-tabs a span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--panel-2); font-size: 11px; }
.rc-tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.rc-tabs a.active span { background: var(--grad); color: #fff; }
.rc-tabs a i.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.rc-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 0; flex: 1; overflow: hidden; }
.rc-main { padding: 18px 26px 24px; overflow-y: auto; }
.rc-side { padding: 18px 20px; background: var(--panel-2); border-left: 1px solid var(--line); overflow-y: auto; }
.rc-sec { margin: 4px 0 10px; font-size: 11.5px; letter-spacing: .9px; text-transform: uppercase; color: var(--accent-ink); display: flex; align-items: center; gap: 8px; }
.rc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 14px; margin-bottom: 10px; }
.rc-grid .c2 { grid-column: span 2; }
.rc-box { border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px 4px; margin: 4px 0 14px; background: var(--panel-2); }
.rc-seg-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-top: 4px; }
.seg a { padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg a.active { background: var(--grad); color: #fff; box-shadow: 0 3px 10px rgba(255,110,30,.25); }
input.big { font-size: 20px; font-weight: 700; padding: 10px 12px; }
.rc-cols, .rc-lines { width: 100%; border-collapse: collapse; }
.rc-cols td, .rc-cols th, .rc-lines td, .rc-lines th { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.rc-cols td:first-child { font-size: 13px; }
.rc-cols input, .rc-lines input { width: 100%; }
.rc-cols input { text-align: right; max-width: 150px; margin-left: auto; display: block; }
.rc-cols input:disabled { opacity: .65; }
.rc-cols tfoot td { border-bottom: 0; padding-top: 10px; font-size: 15px; }
.rc-lines input.num { text-align: right; }
.rc-dist { margin-top: 10px; font-size: 13px; }
.ok-t { color: var(--ok); font-weight: 600; } .bad-t { color: var(--bad); font-weight: 600; }
.rc-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; background: var(--panel); }
.rc-card .off { opacity: .4; pointer-events: none; }
.rc-sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.rc-sw input { display: none; }
.rc-sw span { width: 36px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; }
.rc-sw span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.rc-sw input:checked + span { background: var(--accent); }
.rc-sw input:checked + span::after { transform: translateX(16px); }
.rc-kv { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; font-size: 13px; margin: 0 0 18px; }
.rc-kv dt { color: var(--muted); } .rc-kv dd { margin: 0; text-align: right; }
.rc-asi { width: 100%; font-size: 12.5px; border-collapse: collapse; }
.rc-asi td, .rc-asi th { padding: 5px 4px; border-bottom: 1px solid var(--line); }
.rc-asi tr.tot td { font-weight: 700; border-bottom: 0; }
.rc-warn { margin: 12px 0 0; padding-left: 18px; color: var(--bad); font-size: 12.5px; line-height: 1.6; }
.rc-foot { display: flex; gap: 10px; padding: 12px 26px; border-top: 1px solid var(--line); background: var(--panel); }
@media (max-width: 900px) {
  .rc-body { grid-template-columns: 1fr; overflow-y: auto; }
  .rc-main, .rc-side { overflow: visible; }
  .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-total { margin-right: 36px; min-width: 0; }
}
.rc-lock { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.rc input:disabled, .rc select:disabled { background: var(--panel-2); color: var(--muted); cursor: not-allowed; opacity: 1; }

/* ---------------- tesorería ---------------- */
.ts-kpis { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.ts-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.ts-kpi span { font-size: 12px; color: var(--muted); font-weight: 600; }
.ts-kpi b { font-size: 21px; font-weight: 800; }
.ts-kpi small { font-size: 11.5px; color: var(--muted); }
.ts-kpi.main { background: var(--nav-bg); border: 0; color: #fff; }
.ts-kpi.main span, .ts-kpi.main small { color: var(--nav-text); }
.ts-kpi.main b { font-size: 27px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ts-body { padding: 18px; }
.ts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.ts-banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ts-bank { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); cursor: pointer; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.ts-bank:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.ts-bank .big { font-size: 18px; font-weight: 800; margin: 4px 0; }
.ts-chart { width: 100%; height: auto; }
.ts-chart .grid { stroke: var(--line); stroke-width: 1; }
.ts-chart text { font-size: 10.5px; fill: var(--muted); }
.ts-chart .s-in { fill: var(--s1); } .ts-chart .s-out { fill: var(--s2); }
.ts-chart path:hover { opacity: .8; }
.ts-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.ts-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ts-legend i.s-in { background: var(--s1); } .ts-legend i.s-out { background: var(--s2); }
.ts-aging { margin-bottom: 18px; }
.ts-aging-h { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13.5px; }
.ts-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--panel-2); gap: 2px; }
.ts-stack i { display: block; height: 100%; }
.ts-stack i.vacio { background: var(--panel-2); }
.ts-tramos { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.ts-tramos span { display: inline-flex; align-items: center; gap: 6px; }
.ts-tramos b { color: var(--text); font-weight: 600; }
.ts-tramos i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.tr-por_vencer { background: #3b6fd8; } .tr-1_30 { background: #f2b33d; } .tr-31_60 { background: #ef8a2c; } .tr-61_90 { background: #e2562f; } .tr-90_mas { background: #b4232a; }
.ts-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
.ts-split.bancos { grid-template-columns: 280px minmax(0, 1fr); }
.ts-aside { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; align-self: start; }
.ts-terc { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ts-terc:last-of-type { border-bottom: 0; }
.ts-ctas { display: flex; flex-direction: column; gap: 8px; }
.ts-ctas a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: inherit; text-decoration: none; background: var(--panel); }
.ts-ctas a.active { border-color: var(--accent); background: var(--accent-bg); }
.ts-ctas a .mono { font-weight: 700; margin: 4px 0 2px; }
.ts-movh { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
@media (max-width: 1100px) { .ts-kpis { grid-template-columns: repeat(2, 1fr); } .ts-grid, .ts-split, .ts-split.bancos { grid-template-columns: 1fr; } }
.ts-pos{display:block;margin-top:6px;font-size:12px;color:var(--gold,#f5a524);cursor:pointer;text-decoration:underline}

/* ---- Buzón SOL */
.bz-multa{--bz:#dc2626}.bz-coactiva{--bz:#9f1239}.bz-orden{--bz:#ea580c}.bz-determinacion{--bz:#db2777}
.bz-esquela{--bz:#d97706}.bz-fiscalizacion{--bz:#7c3aed}.bz-resolucion{--bz:#2563eb}.bz-fraccionamiento{--bz:#0d9488}
.bz-devolucion{--bz:#16a34a}.bz-info{--bz:#64748b}
.bz-kpis{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr)) 2.4fr;gap:14px;margin-bottom:16px}
.bz-kpi{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.bz-kpi span{font-size:12px;color:var(--muted)}.bz-kpi b{font-size:26px}.bz-kpi small{font-size:11.5px;color:var(--muted)}
.bz-kpi.main{background:#14204a;color:#fff;border-color:transparent}.bz-kpi.main span,.bz-kpi.main small{color:#cbd5e1}.bz-kpi.main b{color:var(--accent-2)}
.bz-kpi.alerta b{color:#dc2626}
.bz-kpi.cats{flex-direction:row;flex-wrap:wrap;align-content:flex-start;gap:6px}
.bz-chip{cursor:pointer;font-size:12px;padding:4px 10px;border-radius:999px;border:1px solid color-mix(in srgb,var(--bz) 45%,transparent);
  color:var(--bz);background:color-mix(in srgb,var(--bz) 10%,transparent);font-weight:600}
.bz-chip b{margin-left:4px}.bz-chip.on{background:var(--bz);color:#fff}
.bz-filtros{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;padding:14px 16px}
.bz-filtros .field{margin:0;min-width:170px}.bz-checks{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;padding-bottom:8px}
.bz-checks label{display:flex;gap:6px;align-items:center;margin:0;cursor:pointer}
.bz-split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:16px;align-items:start}
.bz-sync{margin:0 0 10px}
.bz-card{position:relative;background:var(--panel);border:1px solid var(--line);border-left:5px solid var(--bz);border-radius:14px;
  padding:14px 16px;margin-bottom:12px;cursor:pointer;transition:box-shadow .15s,transform .15s}
.bz-card:hover{box-shadow:0 6px 18px rgba(0,0,0,.08);transform:translateY(-1px)}
.bz-card.sel{box-shadow:0 0 0 2px var(--bz)}
.bz-card.ok{background:color-mix(in srgb,#16a34a 7%,var(--panel));border-left-color:#16a34a}
.bz-card h3{font-size:15px;margin:8px 0 4px;line-height:1.35}
.bz-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bz-tag{display:inline-block;font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:6px;color:#fff;background:var(--bz)}
.bz-star{margin-left:auto;background:none;border:0;font-size:20px;line-height:1;color:#cbd5e1;cursor:pointer;padding:0 2px}
.bz-star.on{color:#f59e0b}
.bz-acc{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.bz-nota{font-size:12.5px;margin-top:6px;padding:6px 8px;border-radius:8px;background:color-mix(in srgb,#f59e0b 10%,transparent)}
.bz-side{position:sticky;top:12px}
.bz-vacio{border:1.5px dashed var(--line);border-radius:14px;padding:22px}
.bz-exp{background:var(--panel);border:1px solid var(--line);border-top:5px solid var(--bz);border-radius:14px;padding:16px 18px;max-height:calc(100vh - 40px);overflow:auto}
.bz-exp h3{font-size:15px;margin:8px 0 2px}.bz-exp p,.bz-exp li{font-size:13.5px;line-height:1.5}.bz-exp ul{padding-left:18px;margin:4px 0}
.bz-exp textarea{width:100%}
.bz-datos{display:grid;gap:6px}.bz-datos div{display:flex;justify-content:space-between;gap:10px;font-size:13px;border-bottom:1px solid var(--line);padding:4px 0}
.bz-datos span{color:var(--muted)}
.bz-files{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
@media (max-width:1100px){.bz-kpis{grid-template-columns:repeat(3,1fr)}.bz-kpi.cats{grid-column:1/-1}.bz-split{grid-template-columns:1fr}.bz-side{position:static}}
.bz-kpi.cats b{font-size:12.5px}
[data-theme="dark"] .bz-chip:not(.on){color:color-mix(in srgb,var(--bz) 55%,#fff)}
[data-theme="dark"] .bz-card.ok{background:color-mix(in srgb,#16a34a 12%,var(--panel))}
.bz-pdf,.bz-retry{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;
  padding:8px 12px;border-radius:10px;border:1px solid var(--line);text-decoration:none;color:var(--text);background:var(--panel-2)}
.bz-pdf:hover{border-color:var(--accent)}.bz-retry{color:var(--warn);border-color:var(--warn-line);background:var(--warn-bg)}
.bz-files{align-items:stretch}

/* ---- conciliación bancaria */
.warn-t { color: var(--warn); font-weight: 600; }
.note.bad-n { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.cb-drop { text-align: center; padding: 38px 28px; border: 2px dashed var(--line-2); transition: border-color .2s, background .2s; }
.cb-drop.over { border-color: var(--accent); background: var(--accent-bg); }
.cb-drop h3 { margin: 8px 0 4px; }
.cb-drop-ic { width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--accent-bg); color: var(--accent-ink); }
.cb-tips { max-width: 560px; margin: 22px auto 0; text-align: left; background: var(--panel-2); border-radius: 12px; padding: 10px 14px; }
.cb-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.cb-kpis { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.cb-kpis .ts-kpi b { font-size: 19px; white-space: nowrap; }
.cb-av { flex-direction: row !important; align-items: center; gap: 14px !important; }
.cb-av > div:last-child { display: flex; flex-direction: column; gap: 3px; }
.cb-av .anillo b { font-size: 15px; }
.ts-kpi.cb-ok { background: var(--ok-bg); border-color: var(--ok-line); } .ts-kpi.cb-ok b { color: var(--ok); }
.ts-kpi.cb-bad { background: var(--bad-bg); border-color: var(--bad-line); } .ts-kpi.cb-bad b { color: var(--bad); }
.cb-formal table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cb-formal td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.cb-formal tr.tot td { background: var(--panel-2); }
.cb-formal tr.sub td { border-top: 2px solid var(--text); font-weight: 700; }
.cb-formal tr.sep td { border: 0; padding: 6px; }
.cb-formal tr.cb-difok td { background: var(--ok-bg); color: var(--ok); border-top: 2px solid var(--ok); }
.cb-formal tr.cb-difbad td { background: var(--bad-bg); color: var(--bad); border-top: 2px solid var(--bad); }
.cb-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.cb-mini.c3 { grid-template-columns: repeat(3, 1fr); }
.cb-mini > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.cb-mini b { font-size: 16px; }
.cb-obs { list-style: none; margin: 0; padding: 0; }
.cb-obs li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.cb-obs li:last-child { border-bottom: 0; }
.cb-obs li i { font-style: normal; font-weight: 800; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; }
.cb-obs li.bad i { background: var(--bad-bg); color: var(--bad); } .cb-obs li.warn i { background: var(--warn-bg); color: var(--warn); }
.cb-obs li.info i { background: rgba(59,111,216,.12); color: #3b6fd8; } .cb-obs li.ok i { background: var(--ok-bg); color: var(--ok); }
.cb-sug { border-left: 3px solid var(--line-2); padding-left: 8px; }
.cb-sug.cp { border-left-color: var(--ok); }
.cb-nota { font-size: 12px; color: var(--accent-ink); margin-top: 3px; }
.cb-sis { padding: 2px 0; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cb-saldos { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.cb-saldos .field { margin: 0; width: 170px; }
.cb-calc { display: flex; flex-direction: column; gap: 3px; padding: 6px 12px; background: var(--panel-2); border-radius: 10px; margin-right: auto; }
.ts-chart.cb-lin polyline { fill: none; stroke-width: 2; } .cb-lin polyline.s-in { stroke: var(--s1); } .cb-lin polyline.s-out { stroke: var(--s2); stroke-dasharray: 5 4; }
.ts-chart.cb-lin circle { stroke: var(--panel); stroke-width: 2; opacity: 0; } .cb-lin .cb-pt:hover circle { opacity: 1; }
.cb-comp { display: flex; flex-direction: column; gap: 8px; }
.cb-crow { display: grid; grid-template-columns: 170px 1fr 150px; gap: 10px; align-items: center; font-size: 13px; }
.cb-cb { display: flex; flex-direction: column; gap: 2px; }
.cb-cb i { display: block; height: 7px; border-radius: 0 4px 4px 0; min-width: 3px; }
.cb-cb i.s-in { background: var(--s1); } .cb-cb i.s-out { background: var(--s2); }
.cb-cv { text-align: right; }
.cb-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.cb-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
@media (max-width: 1100px) { .cb-kpis { grid-template-columns: repeat(2, 1fr); } .cb-mini { grid-template-columns: repeat(2, 1fr); } }

/* ---- documento SA y control de placas */
.drawer.wide { width: min(1080px, 96vw); }
.modal.wide { width: min(980px, 96vw); }
.pl-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pl-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); font-weight: 700; font-size: 12.5px; }
.pl-chip small { font-weight: 400; color: var(--muted); } .pl-chip a { cursor: pointer; color: var(--muted); }
.pl-in { width: 100px; padding: 4px 8px; font-family: var(--mono, monospace); text-transform: uppercase; margin-bottom: 4px; }
.mv-t input { width: 100%; padding: 5px 7px; min-width: 0; }

/* ---- finanzas */
.fz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 18px; }
.fz-card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.fz-card.ok { border-left-color: var(--ok); } .fz-card.warn { border-left-color: var(--warn); } .fz-card.bad { border-left-color: var(--bad); }
.fz-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 13px; }
.fz-card > b { font-size: 22px; font-weight: 800; }
.fz-lect { color: var(--text); }
.fz-datos { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); }
.fz-gb { display: flex; flex-direction: column; gap: 3px; } .fz-gb i { display: block; height: 7px; border-radius: 0 4px 4px 0; min-width: 2px; }
.fz-gb i.s-in { background: var(--s1); } .fz-gb i.s-out { background: var(--s2); }

/* Logo de la empresa en sus facturas */
.lg-opc { display:flex; flex-direction:column; gap:10px; margin-bottom:12px; }
.lg-opc .mod-chk { display:flex; align-items:center; gap:8px; }
.lg-opc input[type=color] { width:34px; height:28px; padding:0; border:1px solid var(--line, #d6dbe8); border-radius:6px; background:none; cursor:pointer; }
.lg-cols { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.lg-cols #lgCols { display:flex; gap:6px; }
.lg-prev { background:#e9edf5; border-radius:12px; padding:18px; }
.lg-hoja { background:#fff; color:#1b2235; border-radius:6px; padding:16px 20px 20px; box-shadow:0 6px 20px rgba(16,24,56,.12); font-size:12px; }
.lg-franja { height:6px; border-radius:3px; margin-bottom:14px; }
.lg-top { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.lg-izq { display:flex; align-items:center; gap:14px; min-width:0; }
.lg-izq img { max-width:170px; max-height:88px; object-fit:contain; display:block; }
.lg-emi { border-left:2px solid #e3e7f0; padding-left:12px; color:#4a5268; }
.lg-emi b { color:#1b2235; font-size:14px; display:block; margin-bottom:2px; }
.lg-num { border:2px solid; border-radius:9px; padding:9px 14px; text-align:center; font-weight:700; min-width:170px; }
.lg-num div { margin-top:3px; }
.lg-th { margin-top:16px; color:#fff; font-weight:700; font-size:11px; padding:7px 8px; border-radius:3px; display:flex; gap:6px; }
.lg-th span { margin-left:auto; }

/* Facturas / Boletas (cada una con sus notas) */
.seg-clases { display:flex; gap:6px; flex-wrap:wrap; padding:12px 16px 0; }
.seg-clases:empty { display:none; }
.seg-clases a { cursor:pointer; padding:6px 12px; border-radius:8px; font-size:13px; font-weight:600; color:var(--muted, #8a93a8);
  border:1px solid var(--line, rgba(140,150,180,.25)); }
.seg-clases a.active { color:var(--text, #1b2235); border-color:#ff8a1f; background:rgba(255,138,31,.12); }

/* Alerta de comprobantes sin XML */
#alertaXml:empty { display:none; }
.alerta-xml { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin:12px 16px 0;
  padding:10px 14px; border-radius:10px; border:1px solid rgba(229,83,75,.45); background:rgba(229,83,75,.10); font-size:13px; }
.alerta-xml .row { gap:6px; }

/* Tickets de venta internos */
.tk-items { display:grid; grid-template-columns: 1fr 80px 100px 100px 34px; gap:6px; align-items:center; }
.tk-items .h { font-size:11px; font-weight:700; color:var(--muted, #8a93a8); text-transform:uppercase; }
.tk-items input { width:100%; box-sizing:border-box; }
.tk-items .imp { text-align:right; font-variant-numeric:tabular-nums; }
.tk-total { display:flex; justify-content:flex-end; align-items:baseline; gap:12px; margin:10px 0; font-size:15px; }
.tk-total b { font-size:22px; }
.tk-doc { display:flex; gap:6px; } .tk-doc input { flex:1; }
.tk-fp { display:flex; flex-wrap:wrap; gap:6px; }
.tk-fp label { cursor:pointer; padding:6px 12px; border-radius:8px; border:1px solid var(--line, rgba(140,150,180,.3)); font-weight:600; font-size:13px; }
.tk-fp input { display:none; } .tk-fp input:checked + span { color:#ff7a1a; }
.tk-fp label:has(input:checked) { border-color:#ff8a1f; background:rgba(255,138,31,.12); }
.tk-anulado td { opacity:.5; text-decoration:line-through; }
.tk-ok { text-align:center; } .tk-ok .num { font-size:20px; font-weight:800; margin:6px 0; }
.tk-ok .row { justify-content:center; flex-wrap:wrap; }
.tk-ok iframe { width:100%; height:420px; border:0; border-radius:10px; background:#eef1f7; margin-top:10px; }
@media (max-width: 700px) { .tk-items { grid-template-columns: 1fr 60px 80px 34px; } .tk-items .imp, .tk-items .h.imp { display:none; } }

/* Panel del negocio */
.ng-kpis { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:12px; margin-bottom:14px; }
.ng-k { display:flex; flex-direction:column; gap:4px; padding:14px 16px; }
.ng-k b { font-size:22px; }
.ng-k.pos b { color:#18a058; } .ng-k.neg b { color:#e5534b; }
.ng-d { font-weight:700; font-size:12.5px; } .ng-d.up { color:#18a058; } .ng-d.dn { color:#e5534b; }
.ng-alertas { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:10px; margin-bottom:14px; }
.ng-al { display:flex; gap:10px; padding:12px 14px; border-radius:12px; border:1px solid var(--line, rgba(140,150,180,.25)); border-left-width:4px; background:var(--panel, #fff); }
.ng-al.ok { border-left-color:#18a058; } .ng-al.warn { border-left-color:#e5a000; } .ng-al.bad { border-left-color:#e5534b; } .ng-al.info { border-left-color:#6273a8; }
.ng-al-i { font-size:20px; line-height:1; } .ng-al ul { margin:6px 0 0 16px; padding:0; } .ng-al li { margin:2px 0; }
.ng-ley { display:flex; flex-wrap:wrap; gap:14px; padding:4px 16px 0; font-size:12.5px; }
.ng-ley span { display:inline-flex; align-items:center; gap:6px; } .ng-ley i { width:12px; height:12px; border-radius:3px; display:inline-block; }
.ng-ley i.ln { height:3px; border-radius:2px; width:16px; }
.ng-graf { position:relative; padding:8px 12px 12px; }
.ng-svg { width:100%; height:auto; display:block; }
.ng-ax { font-size:12px; fill:var(--muted, #8a93a8); } .ng-gl { stroke:var(--line, rgba(140,150,180,.2)); stroke-width:1; } .ng-cero { stroke:var(--muted, #8a93a8); stroke-width:1; }
.ng-hit { fill:transparent; cursor:default; } .ng-hit.on { fill:rgba(140,150,180,.10); }
.ng-tip { display:none; position:absolute; top:6px; width:180px; background:var(--panel, #fff); color:var(--text, #1b2235); border:1px solid var(--line, rgba(140,150,180,.3));
  border-radius:10px; padding:8px 10px; font-size:12px; box-shadow:0 8px 24px rgba(16,24,56,.18); pointer-events:none; z-index:2; }
.ng-tip div { display:flex; align-items:center; gap:6px; margin-top:3px; } .ng-tip div span { margin-left:auto; }
.ng-tip i { width:9px; height:9px; border-radius:2px; display:inline-block; }
.ng-tabs, .ng-mini { border:0; padding:0; }
.ng-dos { display:grid; grid-template-columns:repeat(auto-fit, minmax(360px, 1fr)); gap:14px; }
.ng-list { padding:4px 16px 14px; }
.ng-hb { padding:7px 0; border-bottom:1px solid var(--line, rgba(140,150,180,.15)); }
.ng-hb-t { display:flex; justify-content:space-between; gap:10px; font-size:13px; } .ng-hb-t span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ng-hb-bar { display:flex; align-items:center; gap:8px; margin-top:4px; }
.ng-hb-bar i { height:8px; border-radius:4px; display:block; flex:0 0 auto; max-width:75%; }
.ng-mini-kpis { display:flex; flex-wrap:wrap; gap:18px; margin-top:12px; } .ng-mini-kpis div { display:flex; flex-direction:column; } .ng-mini-kpis b { font-size:16px; }

/* Modo privado del empresario */
.privado-box { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:14px; padding:12px 16px;
  border-radius:12px; border:1px dashed var(--line, rgba(140,150,180,.4)); background:var(--panel, #fff); }
.privado-box.on { border-style:solid; border-color:rgba(24,160,88,.5); background:rgba(24,160,88,.07); }

/* casillas con texto */
.chk { display: flex; gap: 8px; align-items: center; margin: 6px 0; cursor: pointer; font-size: 14px; }
.chk input { width: auto; }

/* activos fijos */
.af-sec { font-size: 13px; margin: 14px 0 4px; color: var(--muted, #667); text-transform: uppercase; letter-spacing: .04em; }
/* grupo de botones con texto: sin encimarse */
.acc-txt { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.acc-txt button { white-space: nowrap; }
.py-tot td { font-weight: 700; background: rgba(127,127,127,.08); }
/* cobranzas */
tr.clic, a.clic { cursor: pointer; }
tr.clic:hover td { background: var(--panel-2); }
a.clic { color: var(--accent-ink); text-decoration: underline; }
.cob-pt { display: grid; grid-template-columns: 130px 1fr 44px; gap: 8px; align-items: center; font-size: 12.5px; margin: 5px 0; }
.cob-pt i { display: block; height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.cob-pt i b { display: block; height: 100%; border-radius: 4px; background: var(--grad); }
.cob-pt em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.cob-ind { width: 100%; font-size: 12.5px; }
.cob-ind td { padding: 3px 4px; border: 0; }
.cob-hist { max-height: 220px; overflow: auto; font-size: 12.5px; line-height: 1.6; }
.modal.xwide { width: min(1240px, 97vw); }
/* vencimientos */
.vn-filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; padding: 14px 16px 6px; align-items: end; }
.vn-filtros .vn-q { grid-column: span 2; }
.vn-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.vn-item.vencido { box-shadow: inset 3px 0 0 var(--bad); }
.vn-item.por_vencer { box-shadow: inset 3px 0 0 var(--warn); }
.vn-item.atendido { opacity: .75; }
.vn-fecha { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding-left: 8px; }
.vn-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.vn-dow { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; text-transform: uppercase; }
.vn-dia { min-height: 86px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; font-size: 11px; background: var(--panel); }
.vn-dia[data-dia] { cursor: pointer; }
.vn-dia.vacio { border: 0; background: transparent; }
.vn-dia.hoy { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.vn-n { font-weight: 700; color: var(--muted); }
.vn-chip { margin-top: 3px; padding: 2px 5px; border-radius: 6px; background: var(--panel-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vn-chip.vencido { background: var(--bad-bg); color: var(--bad); }
.vn-chip.por_vencer { background: var(--warn-bg); color: var(--warn); }
.vn-chip.atendido { background: var(--ok-bg); color: var(--ok); }
@media (max-width: 760px) { .vn-item { grid-template-columns: 1fr; } .vn-filtros .vn-q { grid-column: auto; } }
.vn-item.recien { background: var(--ok-bg); box-shadow: inset 3px 0 0 var(--ok); opacity: 1; transition: background .6s; }

/* ---- cierre anual y DJ ---- */
.ci-tabs { margin-bottom: 14px; flex-wrap: wrap; }
.ci-paso .panel-head h2 { display: flex; align-items: center; gap: 10px; }
.ci-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent, #f97316); color: #fff; font-size: 13px; font-weight: 700; }
table.ht th, table.ht td { white-space: nowrap; font-size: 12px; }
table.ht thead th[colspan] { text-align: center; }
.mayor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); gap: 14px; }
.mayor-grid .panel { margin: 0; }
table.f710 td.cas { width: 52px; font-family: ui-monospace, monospace; color: var(--muted, #94a3b8); }
.notas .nota { margin-bottom: 18px; }
.notas .nota h3 { margin: 0 0 6px; }
.notas .nota p { margin: 4px 0; line-height: 1.5; }
table.compact th, table.compact td { padding: 5px 8px; font-size: 12.5px; }
.mayor-grid td:first-child, .mayor-grid td:nth-child(2) { white-space: nowrap; }

/* sin flechitas en campos numéricos */
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* hoja de trabajo con cuadrícula, como el Excel */
table.ht-grid { border-collapse: collapse; }
table.ht-grid th, table.ht-grid td { border: 1px solid var(--line-2); }
table.ht-grid thead th { text-align: center; }
table.ht-grid tr.ht-res td { font-weight: 700; background: var(--ok-bg); color: var(--ok); }
table.ht-grid tr.ht-tot td { font-weight: 800; background: var(--warn-bg); color: var(--text); }

/* Tickets: cuánto de lo vendido ya tiene boleta/factura y avisos del régimen (Nuevo RUS) */
.fm-wrap { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:10px; margin-bottom:14px; }
.fm-card { padding:14px 16px; display:flex; flex-direction:column; gap:8px; }
.fm-kpis { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.fm-kpis > div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.fm-kpis b { font-size:16px; }
.fm-bar { position:relative; height:10px; border-radius:999px; background:var(--panel-2, rgba(140,150,180,.18)); overflow:hidden; }
.fm-bar > i { position:absolute; left:0; top:0; bottom:0; border-radius:999px; background:#18a058; }
.fm-bar > i.warn { background:#e5a000; } .fm-bar > i.bad { background:#e5534b; }
.fm-bar > span { position:absolute; top:0; bottom:0; width:2px; background:rgba(0,0,0,.35); }
@media (max-width: 600px) { .fm-kpis b { font-size:14px; } .fm-wrap { grid-template-columns:1fr; } }

/* facturación electrónica: elegir entre emitir con el PSE o anotar la emitida en SOL */
.fe-camino { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.fe-camino label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line, #ddd); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.fe-camino label:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
.fe-camino label:has(input:disabled) { opacity: .6; cursor: default; }
.fe-camino span { display: flex; flex-direction: column; gap: 2px; }
.fe-camino input { margin-top: 3px; }
@media (max-width: 640px) { .fe-camino { grid-template-columns: 1fr; } }
.fe-aviso { border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--text); border-radius: 12px; padding: 10px 14px; font-size: 12.5px; line-height: 1.55; margin: 4px 0 12px; }
.fe-aviso[hidden] { display: none; }
.fe-aviso.real { border-color: var(--bad-line); background: var(--bad-bg); }
.fe-aviso.ok { border-color: var(--ok-line); background: var(--ok-bg); }
