:root {
  --primary: #6550D2;
  --primary-2: #6d5efc;
  --primary-soft: #eeedfd;
  --accent: #1E9E84;
  --accent-soft: #e8f8ee;
  --warn: #D9A21B;
  --warn-ink: #b7791f;
  --warn-soft: #fdf6e3;
  --danger: #B4412E;
  --danger-soft: #fdecec;
  --cyan: #3A86C8;
  --bg: #f6f5fb;
  --bg-grad: radial-gradient(1200px 600px at 0% 0%, #fdf1e4 0%, transparent 60%),
             radial-gradient(1000px 700px at 100% 0%, #f1effe 0%, transparent 55%),
             #f7f6fb;
  --surface: #ffffff;
  --surface-2: #f6f6fa;
  --border: #ececf3;
  --text: #1e1f2b;
  --muted: #71737f;
  --side-w: 272px;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(30, 31, 60, .03), 0 8px 28px rgba(30, 31, 60, .05);
  --dark-card: linear-gradient(135deg, #0e1530 0%, #1a1f4a 55%, #2b2a6b 100%);
}
[data-bs-theme="dark"] {
  --primary: #7c74ff;
  --primary-2: #9a8cff;
  --primary-soft: rgba(124, 116, 255, .15);
  --accent: #34d399;
  --accent-soft: rgba(52, 211, 153, .13);
  --warn: #facc15;
  --warn-ink: #facc15;
  --warn-soft: rgba(250, 204, 21, .12);
  --danger: #D9634D;
  --danger-soft: rgba(248, 113, 113, .13);
  --cyan: #22d3ee;
  --bg: #0d1020;
  --bg-grad: radial-gradient(1100px 600px at 0% 0%, rgba(124, 116, 255, .10) 0%, transparent 60%),
             radial-gradient(900px 600px at 100% 0%, rgba(34, 211, 238, .06) 0%, transparent 55%),
             #0d1020;
  --surface: #161a2e;
  --surface-2: #1d2238;
  --border: #262b44;
  --text: #e8e9f1;
  --muted: #9a9db0;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02);
  --dark-card: linear-gradient(135deg, #1b1f45 0%, #2a2878 60%, #4338ca 100%);
}

* { box-sizing: border-box; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.01em; }
a { color: var(--ui); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.up { color: var(--accent); } .down { color: var(--danger); }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }
/* Menú lateral único */
.sidebar {
  width: var(--side-w); position: fixed; inset: 0 auto 0 0; z-index: 1040;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 14px 14px; gap: 12px;
  transition: width .22s ease, transform .25s ease;
}
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0; }
.sb-head .sb-company { flex: 1; min-width: 0; }
.sb-wm { display: flex; justify-content: center; align-items: center; padding: 8px 10px; border-radius: 10px; opacity: .7; transition: opacity .15s ease; }
.sb-wm:hover { opacity: 1; }
.sb-wm .wm { height: 17px; width: auto; }
.sb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.sb-logo { width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0; background: var(--ui); color: var(--ui-ink); display: grid; place-items: center; font-size: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 18px -10px var(--ui); }
.sb-logo i { line-height: 1; }
.sb-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.sb-name span { color: var(--ui); margin-left: 2px; }
.sb-toggle { width: 34px; height: 34px; border-radius: 10px; border: 0; background: none; color: var(--muted); font-size: 17px; display: grid; place-items: center; flex-shrink: 0; }
.sb-toggle:hover { background: var(--surface-2); color: var(--ui); }

.sb-company { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); cursor: pointer; position: relative; transition: background .15s ease; }
.sb-company:hover { background: var(--ui-soft); }
.sb-company .sb-co-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--ui); color: var(--ui-ink); display: grid; place-items: center; flex-shrink: 0; font-size: 15px; }
.sb-company .sb-co-tx { min-width: 0; flex: 1; line-height: 1.25; }
.sb-company b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-company small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-company .bi-chevron-expand { color: var(--muted); }
.sb-new { position: relative; }
.sb-new .btn-x { padding: 10px 14px; }

.side-nav { flex: 1; overflow-y: auto; overflow-x: hidden; margin: 0 -6px; padding: 0 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px;
  color: var(--text); text-decoration: none; font-weight: 500; margin-bottom: 2px; font-size: 14px; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-item i { font-size: 17px; color: var(--muted); transition: color .15s ease; flex-shrink: 0; }
.nav-item:hover, .nav-item:hover i { color: var(--ui); }
.nav-item.active { background: var(--ui-soft); color: var(--ui); font-weight: 600; }
.nav-item.active i { color: var(--ui); }
.nav-item .badge-soft { margin-left: auto; }

.nav-sec { margin-bottom: 2px; }
.nav-sec-h { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 0; background: none; border-radius: 11px; color: var(--text); font-weight: 600; font-size: 14px; text-align: left; white-space: nowrap; }
.nav-sec-h > i:first-child { font-size: 17px; color: var(--muted); flex-shrink: 0; }
.nav-sec-h:hover { background: var(--surface-2); }
.nav-sec-h .chev { margin-left: auto; font-size: 12px; color: var(--muted); transition: transform .2s ease; }
.nav-sec.open .nav-sec-h .chev { transform: rotate(180deg); }
.nav-sec.has-active > .nav-sec-h, .nav-sec.has-active > .nav-sec-h > i:first-child { color: var(--ui); }
.nav-sec-h .sec-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); margin-left: auto; }
.nav-sec-h .sec-dot + .chev { margin-left: 6px; }
.nav-sec.open .sec-dot { display: none; }
.nav-sec-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.nav-sec.open .nav-sec-b { grid-template-rows: 1fr; }
.nav-sec-b > div { overflow: hidden; padding-left: 18px; position: relative; }
.nav-sec-b > div::before { content: ''; position: absolute; left: 20px; top: 4px; bottom: 6px; width: 1.5px; background: var(--border); border-radius: 2px; }
.nav-sec-b .nav-item { padding: 8px 12px 8px 22px; font-size: 13.5px; }
.nav-sec-b .nav-item i { font-size: 15px; }

.sb-foot { border-top: 1px solid var(--border); padding-top: 10px; display: grid; gap: 2px; }
.sb-status { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.sb-status:hover { background: var(--surface-2); color: var(--text); }
.sb-status .led { width: 8px; height: 8px; border-radius: 50%; background: #2BAE8F; box-shadow: 0 0 0 3px color-mix(in srgb, #2BAE8F 20%, transparent); flex-shrink: 0; }
.sb-status b { color: var(--text); font-weight: 600; }

/* Menú contraído: solo iconos, submenús flotantes */
@media (min-width: 992px) {
  body.sb-collapsed { --side-w: 84px; }
  body.sb-collapsed .sidebar { padding-left: 12px; padding-right: 12px; align-items: stretch; }
  body.sb-collapsed .sb-name, body.sb-collapsed .sb-co-tx, body.sb-collapsed .sb-company .bi-chevron-expand,
  body.sb-collapsed .sb-new span, body.sb-collapsed .nav-item span, body.sb-collapsed .nav-item .badge-soft,
  body.sb-collapsed .nav-sec-h span, body.sb-collapsed .nav-sec-h .chev, body.sb-collapsed .nav-sec-b,
  body.sb-collapsed .sb-status span:not(.led), body.sb-collapsed .sb-wm { display: none !important; }
  body.sb-collapsed .sb-head { flex-direction: column; padding: 0; }
  body.sb-collapsed .sb-company { justify-content: center; padding: 8px; }
  body.sb-collapsed .sb-new .btn-x { padding: 10px; }
  body.sb-collapsed .nav-item, body.sb-collapsed .nav-sec-h { justify-content: center; padding: 11px; position: relative; }
  body.sb-collapsed .nav-sec-h .sec-dot { position: absolute; top: 8px; right: 12px; display: block; }
  body.sb-collapsed .sb-status { justify-content: center; }
  body.sb-collapsed .nav-sec { position: relative; }
  body.sb-collapsed .pop-x.pop-flyout { width: 260px; max-height: calc(100vh - 24px); }
}
.pop-x.pop-flyout { position: fixed; }

.main { flex: 1; min-width: 0; margin-left: var(--side-w); transition: margin-left .22s ease; }

/* ---------- Topbar ---------- */
.topbar { display: flex; align-items: center; gap: 14px; padding: 22px 28px 6px; }
.search { flex: 1; max-width: 450px; position: relative; }
.search input {
  width: 100%; border: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  border-radius: 999px; padding: 13px 56px 13px 24px; outline: none; font-size: 15px;
}
.search input:focus { box-shadow: 0 0 0 3px var(--ui-soft); }
.search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ui); color: var(--ui-ink); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--surface); color: var(--text);
  display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow); transition: transform .15s ease, color .15s ease;
}
.icon-btn:hover { color: var(--ui); transform: translateY(-1px); }
.icon-btn.round { border-radius: 50%; width: 48px; height: 48px; }
.icon-btn.ghost { background: transparent; box-shadow: none; font-size: 20px; }
.icon-btn .dot { position: absolute; top: 11px; right: 13px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; border: 2px solid var(--surface); }
.user { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.user b { display: block; font-size: 15px; }
.user small { color: var(--muted); font-size: 12.5px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ui); color: var(--ui-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }

.content { padding: 18px 28px 32px; max-width: 1560px; }

/* ---------- Page head ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.page-head .ph-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ph-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--ui); display: grid; place-items: center; font-size: 21px; box-shadow: var(--shadow); flex-shrink: 0; }
.page-head h1 { font-size: 26px; margin: 0; }
.page-head p { color: var(--muted); margin: 4px 0 0; font-size: 14.5px; }

/* ---------- Cards ---------- */
.card-x { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid transparent; }
[data-bs-theme="dark"] .card-x { border-color: var(--border); }
.card-x .card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 22px 6px; }
.card-x .card-h h3 { font-size: 17px; margin: 0; }
.card-x .card-b { padding: 18px 22px 22px; }
.ch-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ch-icon { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ui) 25%, transparent); background: var(--ui-soft); color: var(--ui); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.ch-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.kebab { background: none; border: 0; color: var(--muted); font-size: 18px; padding: 2px 4px; }

/* KPI */
.kpi { padding: 20px 22px; height: 100%; display: flex; flex-direction: column; }
.kpi-top { display: flex; align-items: center; gap: 12px; }
.kpi-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.kpi-label { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.kpi-name { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 14px 0 10px; font-variant-numeric: tabular-nums; }
.kpi-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.kpi-delta { font-size: 12.5px; font-weight: 500; }
.spark { width: 120px !important; height: 44px !important; flex-shrink: 0; }

.soft-primary { background: var(--primary-soft); color: var(--primary); }
.soft-accent { background: var(--accent-soft); color: var(--accent); }
.soft-warn { background: var(--warn-soft); color: var(--warn-ink); }
.soft-danger { background: var(--danger-soft); color: var(--danger); }
.soft-cyan { background: color-mix(in srgb, var(--cyan) 14%, transparent); color: var(--cyan); }
.badge-soft { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* Segmented */
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.seg button { border: 0; background: none; color: var(--text); font-weight: 500; padding: 6px 15px; border-radius: 999px; transition: all .2s ease; }
.seg button.active { background: var(--ui); color: var(--ui-ink); box-shadow: 0 6px 14px -6px var(--ui); }

/* Donut */
.donut-wrap { position: relative; max-width: 250px; margin: 6px auto 4px; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.donut-center div { width: 52%; aspect-ratio: 1; border-radius: 50%; background: var(--surface-2); display: grid; place-content: center; text-align: center; }
.donut-center b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.donut-center small { color: var(--muted); font-size: 12.5px; }
.legend-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--border); }
.legend-row:first-child { border-top: 0; }
.legend-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: #fff; flex-shrink: 0; }

/* Dark card */
.dark-card { background: var(--dark-card); color: #fff; border-radius: 18px; padding: 22px; position: relative; overflow: hidden; }
.dark-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 116, 255, .45), transparent 70%); }
.dark-card .dc-label { opacity: .75; font-size: 13.5px; }
.dark-card .dc-value { font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 14px; }
.dark-card .dc-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .1); position: relative; z-index: 1; }
.dark-card .dc-row b { font-weight: 600; }

.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }

/* Tables */
.table-x { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-x th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 12px 16px; background: var(--surface-2); text-align: left; white-space: nowrap; }
.table-x th:first-child { border-radius: 12px 0 0 12px; }
.table-x th:last-child { border-radius: 0 12px 12px 0; }
.table-x td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-x tr:last-child td { border-bottom: 0; }
.table-x tbody tr { transition: background .15s ease; }
.table-x tbody tr:hover td { background: color-mix(in srgb, var(--ui-soft) 45%, transparent); }
.table-x .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow-x: auto; padding: 8px 14px 10px; }

/* Buttons */
.btn-x { border-radius: 999px; font-weight: 600; padding: 9px 18px; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; border: 0; background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, color .15s ease; }
.btn-x:hover { color: var(--ui); transform: translateY(-1px); }
.btn-x.primary { background: var(--ui); color: var(--ui-ink); box-shadow: 0 10px 22px -10px var(--ui); }
.btn-x.primary:hover { background: var(--ui-2); color: var(--ui-ink); }
.btn-x.sm { padding: 6px 13px; font-size: 13px; }
.card-x .btn-x:not(.primary) { background: var(--surface-2); box-shadow: none; }

.form-control, .form-select { border-radius: 12px; border-color: var(--border); background-color: var(--surface-2); color: var(--text); padding-top: 9px; padding-bottom: 9px; }
.form-control:focus, .form-select:focus { border-color: var(--ui); box-shadow: 0 0 0 3px var(--ui-soft); background-color: var(--surface); }
.form-control-sm, .form-select-sm { padding-top: 5px; padding-bottom: 5px; }
.form-label { font-weight: 600; font-size: 13px; color: var(--muted); }

.tabs-x { display: flex; gap: 6px; padding: 16px 22px 4px; overflow-x: auto; }
.tabs-x button { background: var(--surface-2); border: 0; padding: 7px 16px; color: var(--muted); font-weight: 600; border-radius: 999px; white-space: nowrap; transition: all .2s ease; }
.tabs-x button.active { background: var(--ui); color: var(--ui-ink); }

.timeline-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.timeline-item:last-child { border-bottom: 0; }
.date-box { width: 52px; flex-shrink: 0; text-align: center; border-radius: 14px; padding: 7px 0; }
.date-box b { display: block; font-size: 18px; line-height: 1.1; }
.date-box small { font-size: 11px; text-transform: uppercase; font-weight: 600; }

.legal-note { font-size: 12.5px; color: var(--muted); background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.card-x .legal-note, .modal .legal-note { background: var(--surface-2); box-shadow: none; }
.legal-note i { color: var(--ui); }

.progress-x { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress-x span { display: block; height: 100%; border-radius: 99px; transform-origin: left; animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }

.qr { width: 132px; height: 132px; border-radius: 12px; background: #fff; padding: 6px; border: 1px solid var(--border); }
.modal-content { background: var(--surface); border-radius: var(--radius); border: 0; }
.modal-header, .modal-footer { border-color: var(--border); }

/* ---------- Animaciones ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.anim { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .anim, .progress-x span { animation: none; } }

/* ---------- Responsive ---------- */
.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
  .sidebar { width: 280px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(10, 12, 30, .2); }
  .layout.nav-open .sidebar { transform: none; }
  .layout.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(10, 12, 30, .4); z-index: 1030; }
  .main { margin-left: 0; }
  .content { padding: 12px 16px 24px; }
  .topbar { padding: 14px 16px 4px; gap: 10px; }
  .icon-btn.round { width: 42px; height: 42px; }
  .page-head h1 { font-size: 21px; }
  .ph-icon { width: 44px; height: 44px; }
}
@media (max-width: 575.98px) {
  .search input { padding: 11px 50px 11px 18px; font-size: 14px; }
  .kpi-value { font-size: 24px; }
  .user .avatar { width: 40px; height: 40px; }
}

/* ---------- Componentes Admina (2ª pasada) ---------- */
.solid { color: #fff !important; }
.solid-primary { background: var(--primary); }
.solid-accent { background: #2BAE8F; }
.solid-warn { background: #D9A21B; }
.solid-danger { background: #D9634D; }
.solid-cyan { background: #3A86C8; }
.kpi-a { padding: 22px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.kpi-a .kpi-row { display: flex; align-items: center; gap: 14px; }
.kpi-a .kpi-icon { width: 50px; height: 50px; font-size: 21px; box-shadow: 0 8px 16px -8px currentColor; }
.kpi-a .kpi-label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14.5px; color: var(--muted); }
.kpi-a .kpi-value { margin: 0; font-size: 28px; }
.kpi-a .kpi-delta { font-size: 14px; color: var(--muted); }
.kpi-a .kpi-delta b { font-weight: 600; }
.tone-primary { color: var(--primary); } .tone-accent { color: var(--accent); }
.tone-warn { color: var(--warn); } .tone-danger { color: var(--danger); }

.ch-icon.t-warn { border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-soft); color: var(--warn-ink); }
.ch-icon.t-accent { border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: var(--accent-soft); color: var(--accent); }
.ch-icon.t-danger { border-color: color-mix(in srgb, var(--danger) 30%, transparent); background: var(--danger-soft); color: var(--danger); }
.ch-icon.t-cyan { border-color: color-mix(in srgb, var(--cyan) 30%, transparent); background: color-mix(in srgb, var(--cyan) 12%, transparent); color: var(--cyan); }

.pill-select { border-radius: 999px; background-color: var(--surface-2); border: 1px solid var(--border); font-weight: 500; padding: 8px 36px 8px 16px; width: auto; }
.round-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; font-size: 19px; transition: transform .15s ease; }
.round-btn:hover { transform: translateY(-2px); }
.round-btn.primary { background: var(--ui); color: var(--ui-ink); box-shadow: 0 10px 20px -10px var(--ui); }
.round-btn.green { background: #2BAE8F; box-shadow: 0 10px 20px -10px #2BAE8F; }

/* Gauge */
.gauge-wrap { position: relative; max-width: 300px; margin: 8px auto 0; }
.gauge-center { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; pointer-events: none; }
.gauge-center small { color: var(--muted); font-size: 13.5px; }
.gauge-center b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.lg-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.lg-row:last-child { border-bottom: 0; }
.lg-row .dot-c { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 10px; }
.lg-row .d { font-size: 12.5px; font-weight: 600; min-width: 64px; text-align: right; }
.lg-row .v { font-weight: 700; min-width: 86px; text-align: right; font-variant-numeric: tabular-nums; }

/* Tarjeta con área a sangre */
.area-card { position: relative; overflow: hidden; padding: 22px 22px 0; min-height: 200px; display: flex; flex-direction: column; }
.area-card .ac-head { display: flex; justify-content: space-between; align-items: flex-start; }
.area-card .ac-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: #fff; }
.area-card .ac-label { color: var(--muted); font-size: 15px; margin-top: 16px; }
.area-card .ac-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.area-card .ac-value small { font-size: 15px; font-weight: 500; color: var(--muted); }
.area-card .ac-chart { margin: auto -22px 0; height: 84px; position: relative; }

/* Mosaicos de categoría */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-tile { position: relative; overflow: hidden; border-radius: 12px; display: flex; align-items: center; gap: 10px; padding: 11px 14px 11px 11px; background: var(--tile-bg); font-size: 13.5px; font-weight: 600; }
.cat-tile .fill { position: absolute; inset: 0 auto 0 0; background: var(--tile-fill); transform-origin: left; animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; }
.cat-tile > *:not(.fill) { position: relative; }
.cat-tile .ci { width: 30px; height: 30px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; color: var(--tile-ink); font-size: 14px; }
.cat-tile .pct { margin-left: auto; font-variant-numeric: tabular-nums; }
.cat-tile.t-primary { --tile-bg: color-mix(in srgb, var(--primary) 6%, transparent); --tile-fill: color-mix(in srgb, var(--primary) 14%, transparent); --tile-ink: var(--primary); }
.cat-tile.t-accent { --tile-bg: color-mix(in srgb, #2BAE8F 6%, transparent); --tile-fill: color-mix(in srgb, #2BAE8F 16%, transparent); --tile-ink: #1E9E84; }
.cat-tile.t-danger { --tile-bg: color-mix(in srgb, #D9634D 6%, transparent); --tile-fill: color-mix(in srgb, #D9634D 16%, transparent); --tile-ink: #B4412E; }
.cat-tile.t-warn { --tile-bg: color-mix(in srgb, #D9A21B 7%, transparent); --tile-fill: color-mix(in srgb, #D9A21B 18%, transparent); --tile-ink: #b7791f; }
.cat-tile.t-cyan { --tile-bg: color-mix(in srgb, #3A86C8 6%, transparent); --tile-fill: color-mix(in srgb, #3A86C8 16%, transparent); --tile-ink: #0891b2; }

/* Tarjeta premium bancaria */
.bank-card { background: radial-gradient(400px 220px at 85% 10%, rgba(99, 91, 255, .35), transparent 60%), linear-gradient(135deg, #0b1023, #141b3a 60%, #1c1f4f); color: #fff; border-radius: 18px; padding: 22px 24px; position: relative; overflow: hidden; }
.bank-card .bc-top { display: flex; justify-content: space-between; font-weight: 600; }
.bank-card .bc-stars { letter-spacing: .25em; font-size: 20px; margin: 22px 0 4px; opacity: .9; }
.bank-card .bc-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.bank-card .bc-num { font-size: 28px; font-weight: 700; letter-spacing: .08em; }
.bank-card small { opacity: .7; }
.bank-card .bc-total { font-size: 26px; font-weight: 700; text-align: right; }
.btn-x.outline { background: transparent !important; border: 1.5px solid var(--ui); color: var(--ui); box-shadow: none; }

/* Botón flotante */
.fab { position: fixed; right: 26px; bottom: 26px; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ui); color: var(--ui-ink); font-size: 23px; display: grid; place-items: center; box-shadow: 0 14px 28px -10px var(--ui); z-index: 1050; }
.fab i { display: inline-block; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--border); cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 2px var(--text); }
@media (max-width: 575.98px) { .cat-grid { grid-template-columns: 1fr; } .fab { right: 16px; bottom: 16px; } }
.kpi-a .kpi-value { font-size: clamp(20px, 1.55vw, 28px); white-space: nowrap; }
.kpi-a .kpi-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-row { gap: 10px; font-size: 13.5px; }
.lg-row .d, .lg-row .v { min-width: 0; }

/* ---------- Componentes globales (3ª pasada) ---------- */
/* Pantallas sin chrome (login, registro, onboarding) */
body.auth-mode .sidebar, body.auth-mode .topbar, body.auth-mode .fab { display: none !important; }
body.auth-mode .main { margin-left: 0; }
body.auth-mode .content { max-width: none; padding: 0; }

/* Toasts */
#toasts { position: fixed; top: 20px; right: 20px; z-index: 2000; display: grid; gap: 10px; }
.toast-x { display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--text); padding: 13px 18px; border-radius: 14px; box-shadow: 0 14px 34px -12px rgba(20, 20, 50, .3); font-weight: 500; border: 1px solid var(--border); animation: rise .35s cubic-bezier(.2, .8, .2, 1) both; max-width: 360px; }
.toast-x i { font-size: 18px; }
.toast-x.out { opacity: 0; transform: translateY(-6px); transition: all .3s ease; }

/* Ventanas flotantes */
.pop-x { position: absolute; top: calc(100% + 10px); left: 0; z-index: 1060; width: 380px; max-width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 48px -16px rgba(20, 20, 50, .28); padding: 8px; }
.pop-x.pop-right { left: auto; right: 0; }
.pop-x.pop-search { width: 100%; min-width: 320px; }
.pop-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.pop-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 10px 12px 4px; }
.pop-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--text); text-decoration: none; }
.pop-item:hover { background: var(--surface-2); color: var(--text); }
.pop-item b { display: block; font-weight: 600; font-size: 13.5px; }
.pop-item small { color: var(--muted); font-size: 12.5px; }
.pop-item.read { opacity: .6; }
.pop-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); color: var(--muted); }
.pop-sep { height: 1px; background: var(--border); margin: 6px 8px; }
.user { cursor: pointer; }

/* Estado vacío */
.empty-x { text-align: center; padding: 48px 20px; }
.empty-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--ui-soft); color: var(--ui); margin: 0 auto 14px; }
.empty-x h4 { font-size: 17px; margin-bottom: 6px; }
.empty-x p { color: var(--muted); max-width: 380px; margin: 0 auto 16px; }

/* Pasos (stepper) */
.stepper { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stepper .step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.stepper .step:not(:last-child)::after { content: ''; width: 28px; height: 2px; background: var(--border); border-radius: 2px; margin-left: 4px; }
.stepper .step span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 13px; }
.stepper .step.active { color: var(--ui); }
.stepper .step.active span { background: var(--ui); color: var(--ui-ink); }
.stepper .step.done span { background: var(--accent-soft); color: var(--accent); }

/* Zona para soltar archivos */
.drop-x { display: grid; place-items: center; gap: 6px; text-align: center; padding: 34px 20px; border: 2px dashed var(--border); border-radius: 16px; cursor: pointer; background: var(--surface-2); transition: border-color .2s ease; }
.drop-x:hover { border-color: var(--ui); }
.drop-x i { font-size: 34px; color: var(--ui); }
.drop-x small { color: var(--muted); }

/* Filas clicables y pestañas de detalle */
tr.row-link { cursor: pointer; }
.detail-grid dt { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.detail-grid dd { font-weight: 600; margin-bottom: 12px; }
.alert-link-x { color: var(--text); text-decoration: none; border-radius: 12px; padding: 4px; margin: -4px; transition: background .15s ease; }
.alert-link-x:hover { background: var(--surface-2); color: var(--text); }
.layout.nav-open ~ .fab { display: none; }

/* ---------- Color de interfaz (personalizable, siempre neutro) ----------
   --primary, --accent, --warn, --danger y --cyan son colores de DATOS (estados, gráficas,
   indicadores) y no cambian. --ui solo pinta la interfaz: botones, menú, pestañas, foco. */
:root {
  --ui: #334155; --ui-2: #1e293b; --ui-soft: rgba(51, 65, 85, .08); --ui-ink: #fff;
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-line: rgba(255, 255, 255, .75);
  --glass-edge: rgba(15, 23, 42, .07);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .9);
  --blur: saturate(160%) blur(18px);
}
[data-bs-theme="dark"] {
  --ui: #cbd5e1; --ui-2: #e2e8f0; --ui-soft: rgba(203, 213, 225, .10); --ui-ink: #0f172a;
  --glass: rgba(24, 27, 36, .58);
  --glass-strong: rgba(24, 27, 36, .78);
  --glass-line: rgba(255, 255, 255, .08);
  --glass-edge: rgba(0, 0, 0, .3);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* Fondos neutros: manchas de luz muy suaves para que el vidrio se perciba sin llamar la atención */
:root, :root[data-bg="niebla"] {
  --bg: #eef0f4;
  --bg-grad: radial-gradient(900px 520px at 8% -4%, rgba(186, 200, 222, .55) 0%, transparent 62%),
             radial-gradient(800px 560px at 96% 8%, rgba(214, 208, 226, .45) 0%, transparent 60%),
             radial-gradient(900px 600px at 60% 108%, rgba(200, 214, 214, .40) 0%, transparent 60%),
             #eef0f4;
}
:root[data-bg="arena"] {
  --bg: #f2efea;
  --bg-grad: radial-gradient(900px 520px at 8% -4%, rgba(231, 214, 192, .55) 0%, transparent 62%),
             radial-gradient(800px 560px at 96% 8%, rgba(222, 214, 205, .5) 0%, transparent 60%),
             radial-gradient(900px 600px at 60% 108%, rgba(214, 206, 192, .4) 0%, transparent 60%),
             #f2efea;
}
:root[data-bg="papel"] { --bg: #f5f5f4; --bg-grad: #f5f5f4; }
[data-bs-theme="dark"], [data-bs-theme="dark"][data-bg="niebla"] {
  --bg: #0e1015;
  --bg-grad: radial-gradient(900px 520px at 8% -4%, rgba(100, 116, 139, .16) 0%, transparent 62%),
             radial-gradient(800px 560px at 96% 8%, rgba(120, 113, 140, .12) 0%, transparent 60%),
             #0e1015;
  --surface: #181b24; --surface-2: #1f232e; --border: #2a2f3b;
}
[data-bs-theme="dark"][data-bg="arena"] {
  --bg: #12100e;
  --bg-grad: radial-gradient(900px 520px at 8% -4%, rgba(168, 140, 110, .12) 0%, transparent 62%),
             radial-gradient(800px 560px at 96% 8%, rgba(140, 120, 100, .10) 0%, transparent 60%), #12100e;
  --surface: #1c1916; --surface-2: #24201c; --border: #322c26;
}
[data-bs-theme="dark"][data-bg="papel"] { --bg: #111113; --bg-grad: #111113; --surface: #1a1a1d; --surface-2: #222226; --border: #2d2d32; }

/* ---------- Liquid glass sutil ----------
   Desenfoque real solo en piezas que flotan (menú, barra superior, ventanas); las tarjetas
   son translúcidas sin desenfoque para no penalizar el rendimiento de las gráficas. */
.sidebar { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-right: 1px solid var(--glass-line); box-shadow: var(--glass-hi), 1px 0 0 var(--glass-edge); }
.card-x { background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), 0 1px 2px var(--glass-edge), 0 10px 30px -12px rgba(15, 23, 42, .10); }
[data-bs-theme="dark"] .card-x { box-shadow: var(--glass-hi), 0 1px 2px var(--glass-edge); }
.search input, .icon-btn:not(.ghost), .btn-x:not(.primary):not(.outline) { background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), 0 1px 2px var(--glass-edge); }
.card-x .btn-x:not(.primary):not(.outline) { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.pop-x, .modal-content { background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), 0 24px 60px -20px rgba(15, 23, 42, .35); }
.seg { background: color-mix(in srgb, var(--surface-2) 80%, transparent); box-shadow: inset 0 1px 2px var(--glass-edge); }
.seg button.active, .tabs-x button.active, .btn-x.primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 18px -10px var(--ui); }
.nav-item.active { background: var(--glass-strong); color: var(--text); box-shadow: var(--glass-hi), 0 1px 2px var(--glass-edge), 0 6px 16px -10px rgba(15, 23, 42, .25); }
.nav-item.active i, .nav-sec.has-active > .nav-sec-h, .nav-sec.has-active > .nav-sec-h > i:first-child { color: var(--text); }
.nav-item:hover, .nav-item:hover i { color: var(--text); }
.nav-item:not(.active):hover { background: var(--ui-soft); }
.modal-backdrop.show { opacity: .25; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sidebar, .pop-x, .modal-content { background: var(--surface); }
}
@media (max-width: 991.98px) { .sidebar { background: var(--glass-strong); } }
.swatch-x { display: grid; justify-items: center; gap: 6px; min-width: 84px; padding: 10px 10px 8px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 600; transition: border-color .15s ease, box-shadow .15s ease; }
.swatch-x span { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .35); }
.swatch-x small { color: var(--muted); font-weight: 500; font-size: 11px; margin-top: -4px; }
.swatch-x.active { border-color: var(--ui); box-shadow: 0 0 0 3px var(--ui-soft); }
[data-bs-theme="dark"] .form-check-input:checked[type="checkbox"] { --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%230f172a' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
[data-bs-theme="dark"] .form-switch .form-check-input:checked { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%230f172a'/%3e%3c/svg%3e"); }
.sb-name span { margin-left: 0; color: inherit; opacity: .5; }

/* ---------- Selector de sucursal ---------- */
.suc-sel { position: relative; flex: 0 0 auto; }
.suc-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--glass-line, var(--border)); background: var(--glass, var(--card)); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s, border-color .2s; }
.suc-btn:hover { border-color: var(--ui-2); }
.suc-btn.on { background: var(--ui); color: var(--ui-ink); border-color: transparent; }
.suc-btn .bi-chevron-down { opacity: .6; }
.pop-suc { left: 0; right: auto; min-width: 320px; }
.pop-suc .pop-item.active { background: var(--ui-soft); }
.suc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.suc-chip .dot-c { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
@media (max-width: 767.98px) { .suc-btn span { display: none; } .suc-btn { padding: 0 12px; } .pop-suc { position: fixed; left: 16px; right: 16px; min-width: 0; } }

/* Comparativo de sucursales (Resumen) */
.suc-list { display: grid; gap: 6px; }
.suc-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) 2fr minmax(150px, auto); align-items: center; gap: 18px; padding: 10px 12px; border-radius: 14px; color: inherit; text-decoration: none; transition: background .2s; }
.suc-row:hover { background: var(--ui-soft); }
.suc-n { display: flex; align-items: center; gap: 12px; } .suc-n small, .suc-v small { display: block; color: var(--muted); font-size: 12px; }
.suc-bar { height: 10px; border-radius: 99px; background: var(--border); overflow: hidden; }
.suc-bar .fill { display: block; height: 100%; border-radius: 99px; transform-origin: left; animation: sucFill .9s cubic-bezier(.22,1,.36,1) both; }
@keyframes sucFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.suc-v { text-align: right; }
@media (max-width: 767.98px) { .suc-row { grid-template-columns: 1fr auto; gap: 8px 12px; } .suc-bar { grid-column: 1 / -1; order: 3; } }
@media (prefers-reduced-motion: reduce) { .suc-bar .fill { animation: none; } }

/* =========================================================================
   Marca Solvenzy (kit de marca v1): Sora para titulares y cifras, Figtree para texto,
   familia de verdes inclinada al verdín, acento lila solo gráfico, signal-600 para errores.
   ========================================================================= */
:root {
  --ink-900: #0D2B27; --verdigris-600: #177262; --jade-500: #1E9E84; --lilac-300: #B7A6F0;
  --mist-100: #E3F1EC; --cloud-50: #F3F5F2; --slate-600: #55635E; --line-200: #D3DAD6; --signal-600: #B4412E;
  --font-display: Sora, "Avenir Next", system-ui, sans-serif;
  --font-sans: Figtree, "Segoe UI", system-ui, sans-serif;
  /* Colores de datos armonizados con la marca (mismo significado de siempre) */
  --primary: #6550D2; --primary-2: #8270E6; --primary-soft: #EEEBFB;
  --accent: #1E9E84; --accent-soft: #E3F1EC;
  --danger: #B4412E; --danger-soft: #F7E8E4;
  --text: #0D2B27; --muted: #55635E;
  --surface: #ffffff; --surface-2: #F3F5F2; --border: #E1E7E3;
  --radius: 16px;
  --ui: #177262; --ui-2: #0D2B27; --ui-soft: rgba(23, 114, 98, .09); --ui-ink: #fff;
  --glass-edge: rgba(13, 43, 39, .08);
  --dark-card: linear-gradient(135deg, #0D2B27 0%, #145347 60%, #177262 100%);
}
[data-bs-theme="dark"] {
  --primary: #B7A6F0; --primary-2: #CBBDF5; --primary-soft: rgba(183, 166, 240, .14);
  --accent: #3FC2A4; --accent-soft: rgba(63, 194, 164, .14);
  --danger: #E2826F; --danger-soft: rgba(226, 130, 111, .14);
  --text: #E6F0EC; --muted: #9DB0A9;
  --ui: #5CC9AE; --ui-2: #8EE0CB; --ui-soft: rgba(92, 201, 174, .12); --ui-ink: #0D2B27;
  --glass: rgba(13, 34, 30, .62); --glass-strong: rgba(13, 34, 30, .8);
  --dark-card: linear-gradient(135deg, #0D2B27 0%, #145347 60%, #1E9E84 100%);
}
/* Fondo de marca: cloud-50 con relieves mist muy suaves */
:root, :root[data-bg="nube"] {
  --bg: #F3F5F2;
  --bg-grad: radial-gradient(900px 520px at 6% -6%, rgba(227, 241, 236, .95) 0%, transparent 62%),
             radial-gradient(760px 520px at 98% 4%, rgba(183, 166, 240, .16) 0%, transparent 60%),
             radial-gradient(900px 600px at 60% 110%, rgba(30, 158, 132, .08) 0%, transparent 60%),
             #F3F5F2;
}
[data-bs-theme="dark"], [data-bs-theme="dark"][data-bg="nube"] {
  --bg: #081916;
  --bg-grad: radial-gradient(900px 520px at 6% -6%, rgba(30, 158, 132, .14) 0%, transparent 62%),
             radial-gradient(760px 520px at 98% 4%, rgba(183, 166, 240, .08) 0%, transparent 60%), #081916;
  --surface: #0F2420; --surface-2: #142D28; --border: #1E3A34;
}
/* Tipografía */
body { font-family: var(--font-sans); }
h1, h2, h3, .h1, .h2, .h3, .head h1, .page-head h1, .kpi-value, .ac-value, .bc-total, .gauge-center b, .sb-name, .card-h h5, .modal-title, .ab-body h2 {
  font-family: var(--font-display); letter-spacing: -.01em;
}
.kpi-value, .ac-value, .bc-total, .gauge-center b { font-weight: 600; font-variant-numeric: tabular-nums; }
/* Botones y campos según el kit: radius-md en botones, radius-sm en campos */
.btn-x { border-radius: 12px; }
.form-control, .form-select { border-radius: 10px; }
.swatch-x, .seg, .seg button { border-radius: 12px; }
/* Logo */
.sb-logo { background: none; box-shadow: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; }
.sb-logo img { width: 40px; height: 40px; display: block; }
.sb-name { display: inline-flex; align-items: center; }
.sb-name .wm { height: 22px; width: auto; display: block; }
.wm-d { display: none !important; }
[data-bs-theme="dark"] .wm-l { display: none !important; }
[data-bs-theme="dark"] .wm-d { display: block !important; }

/* ---------- Payly (planilla): se muestra con su logo oficial ---------- */
.pl-mark { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.25em; border-radius: 28%; flex-shrink: 0; }
.pl-mark-xs { width: 13px; height: 13px; border-radius: 4px; vertical-align: -2px; margin-right: 2px; }
.nav-item .pl-mark { width: 18px; height: 18px; }
.ch-icon.is-payly, .ph-icon.is-payly, .pop-ic.is-payly, .kpi-icon.is-payly { background: none !important; box-shadow: none; padding: 0; }
.ch-icon.is-payly .pl-mark, .ph-icon.is-payly .pl-mark, .kpi-icon.is-payly .pl-mark { width: 100%; height: 100%; border-radius: 30%; }
.pop-ic.is-payly .pl-mark { width: 30px; height: 30px; }
.payly-wm { display: inline-flex; align-items: center; gap: .3em; font-family: "Plus Jakarta Sans", var(--font-sans); font-weight: 800; letter-spacing: -.03em; color: #1c2333; white-space: nowrap; vertical-align: -.08em; }
.payly-wm em { font-style: normal; color: #2bb5a5; }
.payly-wm .pl-mark { width: 1.05em; height: 1.05em; }
[data-bs-theme="dark"] .payly-wm { color: #fff; }
.ab-props li .pl-mark { width: 36px; height: 36px; border-radius: 10px; }
.ab-chips .pl-mark { width: 14px; height: 14px; }
/* Logotipo de Payly en línea con el texto (sin símbolo, para no repetir el ícono de la página) */
.payly-wm.solo .pl-mark { display: none; }
.payly-wm.solo { font-size: 1.05em; }
