/* ===========================================================================
   ORBITRACK VENTAS  -  Design System
   Paleta inspirada en Orbitrack (azul corporativo + navy + acento teal).
   100% themeable: cambia las variables en :root para ajustar al branding.
   =========================================================================== */

:root {
  /* --- Marca / Brand --- */
  --brand-900: #081229;
  --brand-800: #0b1b3f;
  --brand-700: #102a56;
  --brand-600: #16356c;
  --primary: #1e6bff;
  --primary-600: #1557d6;
  --primary-700: #1146ad;
  --primary-soft: #e8f0ff;
  --accent: #00c9a7;      /* teal: sincronizacion/exito */
  --accent-600: #00a98d;
  --accent-soft: #d9f7f0;

  /* --- Semanticos --- */
  --success: #1eb980;
  --success-soft: #def5ec;
  --warning: #ff9f1c;
  --warning-soft: #fff1da;
  --danger: #ff4d5e;
  --danger-soft: #ffe2e5;
  --info: #3aa0ff;

  /* --- Neutros --- */
  --ink: #0e1726;
  --ink-2: #33415c;
  --muted: #6b7a90;
  --muted-2: #93a1b5;
  --line: #e4ebf3;
  --line-2: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --bg: #f1f5fa;
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, #e9f1ff 0%, rgba(233,241,255,0) 60%), var(--bg);

  /* --- Tipografia --- */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs-xs: 11.5px;
  --fs-sm: 13px;
  --fs-md: 14.5px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 26px;
  --fs-3xl: 34px;

  /* --- Radios / Sombras / Espacio --- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(16, 42, 86, 0.06), 0 1px 3px rgba(16, 42, 86, 0.05);
  --sh-2: 0 4px 14px rgba(16, 42, 86, 0.08);
  --sh-3: 0 12px 34px rgba(16, 42, 86, 0.14);
  --sh-4: 0 24px 60px rgba(8, 18, 41, 0.28);
  --ring: 0 0 0 4px rgba(30, 107, 255, 0.16);

  --header-h: 64px;
  --rail-w: 256px;
  --bottomnav-h: 66px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  color: var(--ink);
  background: var(--bg-grad);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(30,107,255,.18); }

/* Scrollbar fina */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #cfd9e6; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #b6c3d4; background-clip: content-box; }

/* ============================ UTILIDADES ============================ */
.flex { display: flex; }
.col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.grow { flex: 1; } .wrap { flex-wrap: wrap; }
.text-muted { color: var(--muted); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-right { text-align: right; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.hide { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================ APP SHELL ============================ */
.app {
  min-height: 100%;
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  grid-template-rows: 100%;
}
.rail {
  background: linear-gradient(180deg, var(--brand-800), var(--brand-900));
  color: #cdd8ec;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.rail__brand {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 10px 18px;
}
.rail__brand .logo { width: 38px; height: 38px; }
.rail__brand b { color: #fff; font-size: var(--fs-lg); letter-spacing: -.02em; }
.rail__brand span { display: block; font-size: var(--fs-xs); color: #8da2c6; }
.rail__section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #6c80a6; margin: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 13px; border-radius: var(--r-md);
  color: #b9c6df; font-weight: 600; font-size: var(--fs-md);
  cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease);
  position: relative; user-select: none;
}
.nav-item svg { width: 21px; height: 21px; opacity: .9; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(30,107,255,.22), rgba(30,107,255,.05)); color: #fff; }
.nav-item.active::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--primary); }
.nav-item .pill-count { margin-left: auto; }
.rail__spacer { flex: 1; }
.rail__user {
  display: flex; align-items: center; gap: 11px;
  padding: 12px; border-radius: var(--r-md);
  background: rgba(255,255,255,.05);
}
.rail__user .name { color: #fff; font-weight: 600; font-size: var(--fs-sm); }
.rail__user .role { color: #8da2c6; font-size: var(--fs-xs); }

.main { min-width: 0; display: flex; flex-direction: column; }

/* Topbar */
.topbar {
  height: var(--header-h);
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: var(--fs-xl); }
.topbar .sub { color: var(--muted); font-size: var(--fs-sm); margin-top: 1px; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

.content { padding: 22px; max-width: 1180px; width: 100%; margin: 0 auto; }
@media (min-width: 1200px) { .content { padding: 28px 22px 60px; } }

/* Bottom nav (movil) */
.bottomnav { display: none; }

@media (max-width: 880px) {
  .app { grid-template-columns: 1fr; }
  .rail { display: none; }
  .menu-btn { display: inline-flex; }
  .content { padding: 16px 14px calc(var(--bottomnav-h) + 20px); }
  .bottomnav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: var(--bottomnav-h);
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottomnav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: var(--muted-2); font-size: 10.5px; font-weight: 600;
    position: relative;
  }
  .bottomnav a svg { width: 23px; height: 23px; }
  .bottomnav a.active { color: var(--primary); }
  .bottomnav a .pill-count { position: absolute; top: 6px; right: 50%; transform: translateX(20px); }
}

/* ============================ BOTONES ============================ */
.btn {
  --bg: var(--primary); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 18px;
  border: 0; border-radius: var(--r-md);
  background: var(--bg); color: var(--fg);
  font-weight: 650; font-size: var(--fs-md); line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform .12s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), opacity .18s;
  box-shadow: 0 6px 16px rgba(30,107,255,.24);
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { background: var(--primary-600); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn--block { width: 100%; }
.btn--lg { height: 52px; font-size: var(--fs-lg); border-radius: var(--r-lg); }
.btn--sm { height: 36px; padding: 0 13px; font-size: var(--fs-sm); border-radius: var(--r-sm); box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ink-2); box-shadow: none; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--outline { background: var(--surface); color: var(--primary); box-shadow: none; border: 1.5px solid var(--line); }
.btn--outline:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn--soft { background: var(--primary-soft); color: var(--primary-700); box-shadow: none; }
.btn--soft:hover { background: #dbe8ff; }
.btn--accent { background: var(--accent); box-shadow: 0 6px 16px rgba(0,201,167,.26); }
.btn--accent:hover { background: var(--accent-600); }
.btn--danger { background: var(--danger); box-shadow: 0 6px 16px rgba(255,77,94,.24); }
.btn--danger:hover { filter: brightness(.95); }
.btn--success { background: var(--success); box-shadow: 0 6px 16px rgba(30,185,128,.24); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-md);
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); border-color: #d3dcea; }
.icon-btn--bare { border: 0; background: transparent; }
.icon-btn--bare:hover { background: var(--surface-2); }

/* FAB */
.fab {
  position: fixed; right: 20px; z-index: 35;
  bottom: calc(var(--bottomnav-h) + 18px);
  width: 58px; height: 58px; border-radius: 20px;
  background: var(--primary); color: #fff; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-3);
  transition: transform .15s var(--ease);
}
.fab svg { width: 26px; height: 26px; }
.fab:active { transform: scale(.94); }
@media (min-width: 881px) { .fab { bottom: 28px; right: 28px; } }

/* ============================ CARDS ============================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.card--pad { padding: 18px; }
.card__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.card__head h3 { font-size: var(--fs-lg); }
.card__body { padding: 18px; }
.card--hover { transition: box-shadow .2s var(--ease), transform .2s var(--ease); cursor: pointer; }
.card--hover:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: #d8e2f0; }

/* Stat card */
.stat {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  position: relative; overflow: hidden;
}
.stat__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.stat__icon svg { width: 23px; height: 23px; }
.stat__val { font-size: var(--fs-2xl); font-weight: 750; letter-spacing: -.02em; }
.stat__label { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.stat__trend { font-size: var(--fs-xs); font-weight: 700; }
.tint-blue { background: var(--primary-soft); color: var(--primary); }
.tint-teal { background: var(--accent-soft); color: var(--accent-600); }
.tint-amber { background: var(--warning-soft); color: #c9780a; }
.tint-rose { background: var(--danger-soft); color: var(--danger); }
.tint-green { background: var(--success-soft); color: var(--success); }

/* ============================ CAMPOS (Floating label) ============================ */
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; height: 54px;
  padding: 22px 14px 8px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink);
  font-size: var(--fs-md); font-family: inherit;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s;
  appearance: none;
}
.field textarea { height: auto; min-height: 96px; padding-top: 24px; resize: vertical; }
.field label {
  position: absolute; left: 15px; top: 16px;
  color: var(--muted); font-size: var(--fs-md); pointer-events: none;
  transition: all .15s var(--ease); transform-origin: left;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); box-shadow: var(--ring); background: #fff;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:valid + label,
.field.filled label {
  top: 8px; font-size: 11px; color: var(--primary-700); font-weight: 600;
}
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field--icon input { padding-left: 44px; }
.field--icon label { left: 44px; }
.field__icon { position: absolute; left: 14px; top: 17px; color: var(--muted-2); width: 20px; height: 20px; pointer-events: none; }
.field__hint { font-size: var(--fs-xs); color: var(--muted); margin: 5px 4px 0; }
.field--error input, .field--error textarea, .field--error select { border-color: var(--danger); }
.field--error .field__hint { color: var(--danger); }
.field select { cursor: pointer; }
.field__chev { position: absolute; right: 14px; top: 18px; color: var(--muted-2); width: 18px; height: 18px; pointer-events: none; }

/* Search bar */
.search {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill);
  transition: border-color .16s, box-shadow .16s;
}
.search:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.search svg { width: 20px; height: 20px; color: var(--muted-2); flex: none; }
.search input { border: 0; outline: 0; background: transparent; flex: 1; font-size: var(--fs-md); height: 100%; color: var(--ink); }
.search input::placeholder { color: var(--muted-2); }

/* ============================ TOGGLE / SEGMENT / CHIP ============================ */
.toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; }
.toggle__track { width: 46px; height: 28px; border-radius: 999px; background: #cdd8e6; transition: background .18s var(--ease); position: relative; flex: none; }
.toggle__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .2s var(--ease); }
.toggle input:checked + .toggle__track { background: var(--primary); }
.toggle input:checked + .toggle__track::after { transform: translateX(18px); }

.segment { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px; gap: 2px; }
.segment button {
  border: 0; background: transparent; cursor: pointer;
  padding: 8px 15px; border-radius: 9px; font-weight: 600; font-size: var(--fs-sm); color: var(--muted);
  transition: all .15s var(--ease);
}
.segment button.active { background: var(--surface); color: var(--primary-700); box-shadow: var(--sh-1); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px; border-radius: var(--r-pill);
  background: var(--surface); border: 1.5px solid var(--line);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: all .15s var(--ease); white-space: nowrap;
}
.chip svg { width: 16px; height: 16px; }
.chip:hover { border-color: #cdd8e6; }
.chip.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-700); }

/* ============================ BADGES / PILLS ============================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .01em;
}
.badge svg { width: 13px; height: 13px; }
.badge--blue { background: var(--primary-soft); color: var(--primary-700); }
.badge--teal { background: var(--accent-soft); color: var(--accent-600); }
.badge--green { background: var(--success-soft); color: var(--success); }
.badge--amber { background: var(--warning-soft); color: #b9740a; }
.badge--rose { background: var(--danger-soft); color: var(--danger); }
.badge--gray { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 800;
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--on { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.dot--off { background: var(--muted-2); box-shadow: 0 0 0 4px var(--line-2); }

/* Avatar */
.avatar {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), #5b8bff);
  font-size: var(--fs-md); letter-spacing: .02em;
}
.avatar--sm { width: 34px; height: 34px; border-radius: 10px; font-size: var(--fs-sm); }
.avatar--lg { width: 56px; height: 56px; border-radius: 17px; font-size: var(--fs-xl); }

/* ============================ LISTAS ============================ */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; background: var(--surface);
  border: 1px solid var(--line); cursor: pointer;
  transition: background .14s var(--ease);
}
.list-item + .list-item { border-top: 0; }
.list-item:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.list-item:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.list-item:only-child { border-radius: var(--r-lg); }
.list-item:hover { background: var(--surface-2); }
.list-item__main { min-width: 0; flex: 1; }
.list-item__title { font-weight: 650; font-size: var(--fs-md); }
.list-item__sub { color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.list-item__meta { text-align: right; flex: none; }
.list-item .chev { color: var(--muted-2); width: 20px; height: 20px; flex: none; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.qty button { width: 38px; height: 40px; border: 0; background: transparent; cursor: pointer; color: var(--primary); display: grid; place-items: center; }
.qty button:hover { background: var(--primary-soft); }
.qty button svg { width: 18px; height: 18px; }
.qty input { width: 52px; height: 40px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: var(--fs-md); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============================ MODAL / SHEET ============================ */
.scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8, 18, 41, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .2s var(--ease);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.scrim.show { opacity: 1; }
.modal {
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--sh-4); width: 100%; max-width: 460px;
  max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(14px) scale(.98); opacity: 0; transition: all .22s var(--ease);
}
.scrim.show .modal { transform: none; opacity: 1; }
.modal--lg { max-width: 720px; }
.modal__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.modal__head h3 { font-size: var(--fs-xl); flex: 1; }
.modal__body { padding: 20px; overflow-y: auto; }
.modal__foot { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line-2); }
.modal__foot .btn { flex: 1; }

/* Bottom sheet (movil) */
@media (max-width: 880px) {
  .scrim--sheet { align-items: flex-end; padding: 0; }
  .scrim--sheet .modal {
    max-width: 100%; border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(100%); transition: transform .26s var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .scrim--sheet.show .modal { transform: none; }
}

/* ============================ TOAST ============================ */
.toasts { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottomnav-h) + 16px); display: flex; flex-direction: column; gap: 10px; width: min(420px, 92vw); }
@media (min-width: 881px) { .toasts { left: auto; right: 22px; transform: none; bottom: 22px; } }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: var(--r-md);
  background: var(--brand-800); color: #fff; box-shadow: var(--sh-3);
  font-size: var(--fs-sm); font-weight: 600;
  transform: translateY(20px); opacity: 0; transition: all .24s var(--ease);
}
.toast.show { transform: none; opacity: 1; }
.toast svg { width: 20px; height: 20px; flex: none; }
.toast__icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.toast--success .toast__icon { background: var(--success); }
.toast--error .toast__icon { background: var(--danger); }
.toast--info .toast__icon { background: var(--primary); }
.toast--warn .toast__icon { background: var(--warning); }

/* ============================ SKELETON / EMPTY / SPINNER ============================ */
.skel { background: linear-gradient(100deg, #eef2f7 30%, #f6f9fc 50%, #eef2f7 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.spinner--ink { border-color: var(--line); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty__icon { width: 76px; height: 76px; border-radius: 24px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 16px; color: var(--muted-2); }
.empty__icon svg { width: 36px; height: 36px; }
.empty h3 { color: var(--ink-2); margin-bottom: 6px; }

/* ============================ SECTION HEADERS ============================ */
.section-title { display: flex; align-items: center; gap: 10px; margin: 26px 2px 12px; }
.section-title h2 { font-size: var(--fs-lg); }
.section-title .line { flex: 1; height: 1px; background: var(--line); }
.grid { display: grid; gap: 14px; }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* connectivity banner */
.netbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 600; }
.netbar--off { background: var(--warning-soft); color: #9a5a00; }
.netbar--syncing { background: var(--primary-soft); color: var(--primary-700); }

/* tables (reportes) */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th { text-align: left; padding: 11px 12px; color: var(--muted); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1.5px solid var(--line); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tfoot td { font-weight: 800; border-top: 2px solid var(--line); border-bottom: 0; }

/* Animations */
.fade-in { animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: fadeIn .35s var(--ease) backwards; }
.stagger > *:nth-child(1){animation-delay:.02s}.stagger > *:nth-child(2){animation-delay:.06s}.stagger > *:nth-child(3){animation-delay:.1s}.stagger > *:nth-child(4){animation-delay:.14s}.stagger > *:nth-child(5){animation-delay:.18s}.stagger > *:nth-child(6){animation-delay:.22s}.stagger > *:nth-child(7){animation-delay:.26s}.stagger > *:nth-child(8){animation-delay:.3s}

/* ============================================================================
   Omega Reportes  -  componentes de la app de reportes
   ========================================================================== */
.badge--blue{background:#e8f0ff;color:#1146ad}
.badge--blue .dot{background:#1e6bff}
#periodoPill{cursor:pointer;border:none}
.rep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:12px;margin-bottom:10px}
.rep-card{transition:transform .12s,box-shadow .12s,border-color .12s}
.rep-card:hover{transform:translateY(-2px);border-color:var(--primary);box-shadow:0 8px 24px rgba(30,107,255,.14)}
.flt{margin-top:12px}
.flt__lbl{font-size:12px;font-weight:700;color:var(--muted-2);margin-bottom:6px;text-transform:uppercase;letter-spacing:.03em}
.flt-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.inp{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 12px;font:inherit;background:#fff;color:inherit}
.inp:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(30,107,255,.14)}
.ms-trigger{display:flex;align-items:center;gap:8px;width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff;font:inherit;color:inherit;cursor:pointer;text-align:left}
.ms-trigger:hover{border-color:var(--primary)}
.ms-chev{color:var(--muted-2);display:inline-flex}
.rep-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.rtable-wrap{overflow-x:auto;max-width:100%}
.rtable{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}
.rtable th{position:sticky;top:0;background:#0b1b3f;color:#fff;text-align:left;padding:9px 12px;font-size:11px;text-transform:uppercase;letter-spacing:.02em;z-index:1}
.rtable th.right,.rtable td.right{text-align:right}
.rtable th.center,.rtable td.center{text-align:center}
.rtable td{padding:8px 12px;border-bottom:1px solid var(--line)}
.rtable tbody tr:nth-child(even){background:#f7f9fc}
.rtable tbody tr:hover{background:#eef3fb}
.rtable tfoot td{font-weight:800;border-top:2px solid #0b1b3f;background:#eef3fb;position:sticky;bottom:0}
@media(max-width:560px){.flt-row{grid-template-columns:1fr}}
