/* ==========================================================================
   Tipster Panel — sistema de diseño (dark, pro, responsive)
   ========================================================================== */
:root {
  --bg-1: #0a0f1c;
  --bg-2: #0e1424;
  --surface: #141b2d;
  --surface-2: #1a2337;
  --surface-3: #212c44;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8edf7;
  --muted: #93a1bd;
  --faint: #64748b;

  --brand: #22c55e;
  --brand-2: #10b981;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --info: #38bdf8;
  --danger: #f43f5e;
  --warn: #f59e0b;
  --gold: #e6b980;
  --gold-2: #caa15e;
  --icon: #e6b980;   /* color único para todos los iconos (dorado premium) */
  --title: #edd7a6;  /* color de los títulos (dorado claro legible) */

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --ring: 0 0 0 3px rgba(34, 197, 94, 0.25);
  --sidebar-w: 250px;
}

* { box-sizing: border-box; }
/* Fondo oscuro en el propio html: evita la franja blanca al hacer scroll
   elástico (rubber-band) en móvil. */
html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg-1);
  overscroll-behavior-y: none;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(99, 102, 241, 0.10), transparent 60%),
    radial-gradient(1000px 500px at -10% 110%, rgba(34, 197, 94, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
a { color: var(--brand); text-decoration: none; }
h1 { font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 6px; letter-spacing: -0.02em; color: var(--title); }
h2 { font-size: 17px; margin: 26px 0 12px; letter-spacing: -0.01em; color: var(--title); }
.page-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

/* ---------- Layout ---------- */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.topbar {
  display: none;
  position: sticky; top: 0; z-index: 40;
  align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(12, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 18px;
}
.topbar-brand { font-weight: 800; letter-spacing: -0.02em; }
.topbar-tenant { margin-left: auto; color: var(--muted); font-size: 13px;
  max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-overlay { display: none; }

.sidebar {
  position: fixed; top: 0; left: 0; z-index: 50;
  width: var(--sidebar-w); height: 100vh; overflow-y: auto;
  padding: 18px 12px 26px;
  background: linear-gradient(180deg, rgba(20, 27, 45, 0.98), rgba(12, 17, 30, 0.98));
  border-right: 1px solid var(--border);
  transition: transform 0.25s ease;
  /* Scrollbar con diseño (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
/* Scrollbar con diseño (Chrome/Edge/Safari) */
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  background: var(--surface-3); border-radius: 8px;
  border: 2px solid transparent; background-clip: content-box;
}
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--border-strong); background-clip: content-box; }
/* Scrollbar general del contenido */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px;
  border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--border-strong); background-clip: content-box; }
.content {
  margin-left: var(--sidebar-w);
  padding: 30px clamp(16px, 3vw, 40px) 60px;
  max-width: 1200px;
}

/* Botón de cerrar el menú (solo visible en móvil, pantalla completa) */
.sidebar-close {
  display: none; position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
  cursor: pointer;
}
.sidebar-close .icon { width: 20px; height: 20px; color: var(--text); }

/* Brand */
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
  padding: 6px 12px 16px;
}
/* Logo sin marco: solo el icono en dorado */
.nav-brand .logo {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: none; box-shadow: none;
}
.nav-brand .logo .icon { color: var(--gold); width: 26px; height: 26px; }

/* Nav links */
.nav-section { padding: 16px 14px 6px; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); }
.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; margin: 2px 0; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-link .ic { width: 20px; text-align: center; font-size: 15px; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active {
  color: #fff; font-weight: 600;
  background: linear-gradient(90deg, rgba(230, 185, 128, 0.20), rgba(230, 185, 128, 0.04));
  box-shadow: inset 3px 0 0 var(--gold);
}
.nav-link.active .icon { color: var(--gold); }
.nav-link.logout { margin-top: 14px; color: var(--faint);
  border-top: 1px solid var(--border); border-radius: 0; padding-top: 16px; }
.nav-link.logout:hover { color: var(--danger); }

/* Tenant switcher */
.tenant-switch { padding: 4px 12px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.tenant-switch .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; }
.tenant-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px;
  margin: 0 12px 14px; border-radius: 999px; font-size: 13px; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border); }

/* ---------- Cards / stats ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-bottom: 10px; }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: transform 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.card .label { color: var(--muted); font-size: 12.5px; font-weight: 500; padding-right: 46px; }
.card .value { font-size: 28px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.card-ic { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px; background: var(--surface-3); }
.card-ic .icon { width: 19px; height: 19px; }
.card.accent { background: linear-gradient(135deg, rgba(34,197,94,0.16), rgba(16,185,129,0.06)); }
.card.accent .value { color: #6ee7b7; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--surface); overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
th, td { padding: 13px 14px; text-align: left; font-size: 14px; vertical-align: middle;
  border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.05em; background: var(--surface-2); }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
tr:last-child td { border-bottom: none; }
code { background: var(--bg-1); padding: 2px 7px; border-radius: 6px; font-size: 13px;
  border: 1px solid var(--border); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.started { background: rgba(148,163,184,0.15); color: #cbd5e1; }
.badge.submitted { background: rgba(245,158,11,0.16); color: #fcd34d; }
.badge.approved { background: rgba(34,197,94,0.16); color: #6ee7b7; }
.badge.rejected { background: rgba(244,63,94,0.16); color: #fda4af; }

/* ---------- Forms & buttons ---------- */
input, textarea, select {
  width: 100%; padding: 11px 12px; background: var(--bg-1); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14.5px;
  font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
textarea { min-height: 84px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 5px; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #05230f;
  font-weight: 700; font-size: 14px; font-family: inherit;
  box-shadow: 0 6px 16px -8px rgba(16, 185, 129, 0.7); transition: transform 0.12s, filter 0.15s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: var(--surface-3); color: var(--text); box-shadow: none;
  border: 1px solid var(--border); }
.btn.danger { background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; box-shadow: none; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.block { width: 100%; }

.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 150px; }
.inline-form { display: inline; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

details.editor {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
details.editor summary { cursor: pointer; font-weight: 600; list-style: none; }
details.editor summary::-webkit-details-marker { display: none; }
details.editor[open] summary { margin-bottom: 6px; }

/* Ajustes: cada campo en su bloque separado y legible */
.field { padding: 16px 0; border-bottom: 1px solid var(--border); }
.field:last-of-type { border-bottom: none; }
.field > label:first-child { margin-top: 0; font-size: 14.5px; color: var(--text); font-weight: 600; }

/* Interruptor sí/no (ajustes booleanos) */
.switch-row { display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 14.5px; color: var(--text); font-weight: 600; cursor: pointer; }
.switch-row input { margin: 0; width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--gold); }

/* Acciones dentro de una fila de tabla (aprobar/rechazar) */
.row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Barra de navegación inferior (estilo app, solo móvil) ---------- */
.bottomnav { display: none; }
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 2px 7px; color: var(--muted); font-size: 10.5px; font-weight: 600;
  cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.bn-item .icon { width: 22px; height: 22px; color: var(--muted); }
.bn-item.active { color: var(--gold); }
.bn-item.active .icon { color: var(--gold); }

.muted { color: var(--muted); font-size: 13px; }
.error { background: rgba(244,63,94,0.14); color: #fda4af; padding: 11px 14px;
  border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid rgba(244,63,94,0.3); }

.media-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px;
  border-radius: 8px; background: var(--surface-3); font-size: 13px; margin: 2px 2px 0 0; }

/* ---------- Selector de países (casillas + banderas) ---------- */
.country-picker {
  max-height: 240px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-1); padding: 8px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px;
}
.country-picker label {
  display: flex; align-items: center; gap: 9px; margin: 0;
  padding: 7px 9px; border-radius: 8px; cursor: pointer;
  color: var(--text); font-size: 14px; font-weight: 400; user-select: none;
}
.country-picker label:hover { background: var(--surface-2); }
.country-picker input { width: auto; margin: 0; accent-color: var(--gold); }
.country-picker img.flag { width: 22px; height: 16px; border-radius: 2px; object-fit: cover;
  flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.25); }
.country-picker label:has(input:checked) { background: rgba(230,185,128,0.14); }

/* ---------- Selector de moneda con bandera (dropdown) ---------- */
.flag-select { position: relative; }
.fs-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14.5px; cursor: pointer;
  font-family: inherit; }
.fs-toggle:hover { border-color: var(--border-strong); }
.fs-current { display: flex; align-items: center; gap: 9px; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis; }
.flag-select img.flag { width: 22px; height: 16px; border-radius: 2px; object-fit: cover;
  flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.25); }
.fs-arrow { color: var(--muted); font-size: 12px; }
.fs-options { display: none; position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 260px; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px; }
.flag-select.open .fs-options { display: block; }
.fs-option { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px;
  cursor: pointer; font-size: 14px; }
.fs-option:hover { background: var(--surface-3); }

/* ---------- Login ---------- */
.login-wrap { display: flex; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100dvh; padding: 20px; overscroll-behavior: none; }
.login-box { background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: 20px; padding: 34px 30px; width: 100%;
  max-width: 380px; box-shadow: var(--shadow); }
.login-box .logo-lg { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 10px 24px -8px rgba(230,185,128,0.6); }
.login-box .logo-lg .icon { color: #1c1406; width: 28px; height: 28px; }
.login-box h1 { text-align: center; font-size: 22px; }
.login-box .page-sub { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .topbar { display: flex; }
  .nav-overlay { display: none !important; }
  /* En móvil el menú NO es lateral: es una pantalla completa (estilo app)
     que se abre desde "Más" y se cierra con la ✕. Nada se corta. */
  .sidebar {
    width: 100%; height: 100dvh; max-width: none;
    transform: translateY(100%); opacity: 0; visibility: hidden;
    transition: transform 0.28s ease, opacity 0.2s ease;
    box-shadow: none; z-index: 60;
    padding: 14px 14px calc(24px + env(safe-area-inset-bottom));
    border-right: none;
  }
  .nav-toggle:checked ~ .sidebar { transform: translateY(0); opacity: 1; visibility: visible; }
  .sidebar-close { display: inline-flex; }
  .sidebar .nav-brand { font-size: 20px; padding: 8px 12px 18px; }
  .sidebar .nav-link { font-size: 16px; padding: 13px 14px; }
  .sidebar .nav-link .icon { width: 22px; height: 22px; }
  .content { margin-left: 0; padding: 20px 16px 60px; }

  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { padding: 11px 12px; white-space: nowrap; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
  .card .value { font-size: 24px; }
  .btn { padding: 11px 16px; }        /* objetivos táctiles cómodos */
  h2 { margin-top: 22px; }

  /* Formularios: los pares de campos se apilan en vez de amontonarse */
  .row { flex-direction: column; gap: 0; }
  .row > div { min-width: 0; width: 100%; }
  details.editor { padding: 14px 14px; }
  .country-picker { grid-template-columns: 1fr 1fr; max-height: 260px; }

  /* Filtros: fila deslizable horizontal (no se amontonan) */
  .filter-chips {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 8px; margin: 0 -16px 16px; padding: 2px 16px 8px;
    scrollbar-width: none;
  }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chips .btn { flex: 0 0 auto; white-space: nowrap; margin-left: 0 !important; }

  /* Deja hueco abajo para la barra de navegación inferior */
  .content { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .country-picker { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

/* Barra inferior visible en móvil */
@media (max-width: 900px) {
  .bottomnav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 42;
    background: rgba(12, 18, 32, 0.96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Tablas en formato tarjeta en móvil (nada se monta ni se corta) */
@media (max-width: 760px) {
  table.responsive { display: block; border: none; box-shadow: none; background: transparent; }
  table.responsive thead { display: none; }
  table.responsive tbody { display: block; }
  table.responsive tr {
    display: block; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  table.responsive td {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 11px 14px; white-space: normal; text-align: right;
    border-bottom: 1px solid var(--border);
  }
  table.responsive tr td:last-child { border-bottom: none; }
  table.responsive td::before {
    content: attr(data-label); text-align: left; flex-shrink: 0;
    color: var(--muted); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
  }
  /* Enlaces/códigos largos: que se partan y no desborden la tarjeta */
  table.responsive td code { word-break: break-all; white-space: normal; min-width: 0; }
  table.responsive td > code { text-align: right; }
  table.responsive td.col-actions { flex-direction: column; align-items: stretch; text-align: left; gap: 8px; }
  table.responsive td.col-actions::before { margin-bottom: 2px; }
  table.responsive td.col-actions .row-actions { justify-content: flex-start; }
  table.responsive td.col-actions .inline-form { flex: 1; display: flex; gap: 6px; }
  table.responsive td.col-actions .inline-form,
  table.responsive td.col-actions .btn { width: 100%; }
  table.responsive td.col-actions select { flex: 1; }
  /* La fila vacía "No hay solicitudes" sin etiqueta */
  table.responsive td[colspan]::before { content: ""; }
  table.responsive td[colspan] { justify-content: center; text-align: center; }
}

/* ==========================================================================
   Iconos monocromo (SVG via CSS mask). Un único color: var(--icon).
   Uso: <span class="icon i-panel"></span>
   ========================================================================== */
.icon {
  display: inline-block; width: 1.05em; height: 1.05em; flex-shrink: 0;
  color: var(--icon); background-color: currentColor; vertical-align: -0.16em;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.btn .icon { color: inherit; }
.nav-link .icon, .card-ic .icon { color: var(--icon); }

.i-target { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="6"/><circle cx="12" cy="12" r="2"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="6"/><circle cx="12" cy="12" r="2"/></svg>'); }
.i-panel { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="7" height="9" x="3" y="3" rx="1"/><rect width="7" height="5" x="14" y="3" rx="1"/><rect width="7" height="9" x="14" y="12" rx="1"/><rect width="7" height="5" x="3" y="16" rx="1"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="7" height="9" x="3" y="3" rx="1"/><rect width="7" height="5" x="14" y="3" rx="1"/><rect width="7" height="9" x="14" y="12" rx="1"/><rect width="7" height="5" x="3" y="16" rx="1"/></svg>'); }
.i-list { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/><path d="M12 11h4"/><path d="M12 16h4"/><path d="M8 11h.01"/><path d="M8 16h.01"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/><path d="M12 11h4"/><path d="M12 16h4"/><path d="M8 11h.01"/><path d="M8 16h.01"/></svg>'); }
.i-bank { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" x2="21" y1="22" y2="22"/><line x1="6" x2="6" y1="18" y2="11"/><line x1="10" x2="10" y1="18" y2="11"/><line x1="14" x2="14" y1="18" y2="11"/><line x1="18" x2="18" y1="18" y2="11"/><polygon points="12 2 20 7 4 7"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" x2="21" y1="22" y2="22"/><line x1="6" x2="6" y1="18" y2="11"/><line x1="10" x2="10" y1="18" y2="11"/><line x1="14" x2="14" y1="18" y2="11"/><line x1="18" x2="18" y1="18" y2="11"/><polygon points="12 2 20 7 4 7"/></svg>'); }
.i-gift { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="8" width="18" height="4" rx="1"/><path d="M12 8v13"/><path d="M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7"/><path d="M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="8" width="18" height="4" rx="1"/><path d="M12 8v13"/><path d="M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7"/><path d="M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5"/></svg>'); }
.i-msg { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>'); }
.i-megaphone { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 11 18-5v12L3 14v-3z"/><path d="M11.6 16.8a3 3 0 1 1-5.8-1.6"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 11 18-5v12L3 14v-3z"/><path d="M11.6 16.8a3 3 0 1 1-5.8-1.6"/></svg>'); }
.i-wallet { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2"/><path d="M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2"/><path d="M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"/></svg>'); }
.i-video { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m22 8-6 4 6 4V8Z"/><rect width="14" height="12" x="2" y="6" rx="2"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m22 8-6 4 6 4V8Z"/><rect width="14" height="12" x="2" y="6" rx="2"/></svg>'); }
.i-trend { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 7 13.5 15.5 8.5 10.5 2 17"/><polyline points="16 7 22 7 22 13"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 7 13.5 15.5 8.5 10.5 2 17"/><polyline points="16 7 22 7 22 13"/></svg>'); }
.i-gear { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1Z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1Z"/></svg>'); }
.i-users { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>'); }
.i-logout { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" x2="9" y1="12" y2="12"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" x2="9" y1="12" y2="12"/></svg>'); }
.i-building { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z"/><path d="M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2"/><path d="M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2"/><path d="M10 6h4"/><path d="M10 10h4"/><path d="M10 14h4"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z"/><path d="M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2"/><path d="M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2"/><path d="M10 6h4"/><path d="M10 10h4"/><path d="M10 14h4"/></svg>'); }
.i-menu { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="18" y2="18"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="18" y2="18"/></svg>'); }
.i-clock { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>'); }
.i-check-c { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>'); }
.i-x-c { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>'); }
.i-user { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>'); }
.i-check { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>'); }
.i-x { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>'); }
.i-plus { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>'); }

/* ---------- Mini gráfica de barras ---------- */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 160px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 14px 8px; box-shadow: var(--shadow-sm); }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.chart-bars { position: relative; width: 100%; max-width: 34px; flex: 1;
  display: flex; align-items: flex-end; justify-content: center; }
.chart-bar { position: absolute; bottom: 0; width: 100%; border-radius: 6px 6px 0 0; min-height: 2px; }
.chart-bar.total { background: var(--surface-3); }
.chart-bar.approved { background: linear-gradient(180deg, var(--brand), var(--brand-2)); width: 60%; }
.chart-x { font-size: 11px; color: var(--faint); margin-top: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }
.dot.total { background: var(--surface-3); }
.dot.approved { background: var(--brand); }
