/*
 * ZentyPay Design System v1.0
 * Manual de marca aplicado — Junio 2026
 * Importar en: backoffice layouts, hpp, status, landing
 *
 * @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
 */

/* ═══════════════════════════════════════════════════════════
   1. TOKENS DE MARCA
═══════════════════════════════════════════════════════════ */
:root {
  /* Primario */
  --zp-primary:       #6C3EF5;
  --zp-primary-hover: #5A2FE0;
  --zp-primary-dark:  #4E22D4;
  --zp-primary-soft:  #EDE8FE;
  --zp-primary-mid:   #8F65F7;

  /* Semánticos */
  --zp-success:       #1D9E75;
  --zp-success-bg:    #E1F5EE;
  --zp-success-text:  #085041;
  --zp-error:         #E24B4A;
  --zp-error-bg:      #FCEBEB;
  --zp-error-text:    #791F1F;
  --zp-warning:       #BA7517;
  --zp-warning-bg:    #FAEEDA;
  --zp-warning-text:  #633806;
  --zp-info:          #378ADD;
  --zp-info-bg:       #E6F1FB;
  --zp-info-text:     #0C447C;

  /* Neutros */
  --zp-text-primary:   #111827;
  --zp-text-secondary: #6B7280;
  --zp-text-muted:     #9CA3AF;
  --zp-border:         #E5E7EB;
  --zp-border-strong:  #D1D5DB;
  --zp-bg-page:        #F9FAFB;
  --zp-bg-card:        #FFFFFF;
  --zp-bg-subtle:      #F3F4F6;

  /* Tipografía */
  --zp-font:     'Inter', 'Segoe UI', system-ui, Arial, sans-serif;
  --zp-font-mono: 'Courier New', monospace;

  /* Espaciado y bordes */
  --zp-radius-sm: 6px;
  --zp-radius:    8px;
  --zp-radius-lg: 12px;
  --zp-radius-xl: 16px;
  --zp-shadow:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);

  /* Compatibilidad con variables legacy del backoffice */
  --bg:       var(--zp-bg-page);
  --paper:    var(--zp-bg-card);
  --paper2:   var(--zp-bg-subtle);
  --ink:      var(--zp-text-primary);
  --muted:    var(--zp-text-secondary);
  --line:     var(--zp-border);
  --primary:  var(--zp-primary);
  --primary-2:var(--zp-primary-hover);
  --ok:       var(--zp-success);
  --ok-bg:    var(--zp-success-bg);
  --warn:     var(--zp-warning);
  --warn-bg:  var(--zp-warning-bg);
  --bad:      var(--zp-error);
  --bad-bg:   var(--zp-error-bg);
  --focus:    0 0 0 3px rgba(108,62,245,.2);
}

/* ═══════════════════════════════════════════════════════════
   2. RESET Y BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--zp-font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--zp-text-primary);
  background: var(--zp-bg-page);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--zp-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
code, pre { font-family: var(--zp-font-mono); }

/* ═══════════════════════════════════════════════════════════
   3. TIPOGRAFÍA
═══════════════════════════════════════════════════════════ */
h1 { font-size: 24px; font-weight: 500; color: var(--zp-text-primary); }
h2 { font-size: 18px; font-weight: 500; color: var(--zp-text-primary); }
h3 { font-size: 15px; font-weight: 500; color: var(--zp-text-primary); }
p  { color: var(--zp-text-secondary); line-height: 1.6; }

.text-primary   { color: var(--zp-text-primary) !important; }
.text-secondary { color: var(--zp-text-secondary) !important; }
.text-muted     { color: var(--zp-text-muted) !important; }
.text-brand     { color: var(--zp-primary) !important; }
.text-success   { color: var(--zp-success) !important; }
.text-error     { color: var(--zp-error) !important; }
.text-warning   { color: var(--zp-warning) !important; }

/* ═══════════════════════════════════════════════════════════
   4. BOTONES
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-family: var(--zp-font);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--zp-radius);
  border: 1px solid var(--zp-border-strong);
  background: var(--zp-bg-card);
  color: var(--zp-text-primary);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--zp-bg-subtle); }

.btn-primary {
  background: var(--zp-primary);
  border-color: var(--zp-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--zp-primary-hover);
  border-color: var(--zp-primary-hover);
  color: #fff;
  text-decoration: none;
}

.btn-danger {
  background: var(--zp-error);
  border-color: var(--zp-error);
  color: #fff;
}
.btn-danger:hover { background: #c73938; border-color: #c73938; }

.btn-ghost {
  background: transparent;
  border-color: var(--zp-border);
  color: var(--zp-text-secondary);
}
.btn-ghost:hover { background: var(--zp-bg-subtle); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; font-weight: 500; }
.btn-full { width: 100%; justify-content: center; }

/* Botón CTA pago — HPP */
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--zp-primary);
  color: #fff;
  border: none;
  border-radius: var(--zp-radius);
  font-family: var(--zp-font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
.btn-cta:hover { background: var(--zp-primary-hover); }
.btn-cta:disabled { opacity: .7; cursor: not-allowed; }
.btn-cta.loading .btn-label { opacity: .7; }

/* ═══════════════════════════════════════════════════════════
   5. BADGES DE ESTADO
═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

/* Estados de orden — Manual de marca */
.badge.ok,
.badge-paid     { background: var(--zp-success-bg); color: var(--zp-success-text); }
.badge-created,
.badge.info     { background: var(--zp-info-bg);    color: var(--zp-info-text); }
.badge-pending,
.badge.warn     { background: var(--zp-warning-bg); color: var(--zp-warning-text); }
.badge.bad,
.badge-expired,
.badge-canceled { background: var(--zp-error-bg);   color: var(--zp-error-text); }
.badge-refunded { background: var(--zp-primary-soft); color: var(--zp-primary-dark); }
.badge-default  { background: var(--zp-bg-subtle);  color: var(--zp-text-secondary); }

/* Orden dinámica por enum value */
[data-status="PAID"]     { background: var(--zp-success-bg); color: var(--zp-success-text); }
[data-status="CREATED"]  { background: var(--zp-info-bg);    color: var(--zp-info-text); }
[data-status="PENDING"]  { background: var(--zp-warning-bg); color: var(--zp-warning-text); }
[data-status="EXPIRED"]  { background: var(--zp-error-bg);   color: var(--zp-error-text); }
[data-status="CANCELED"] { background: var(--zp-bg-subtle);  color: var(--zp-text-secondary); }
[data-status="REFUNDED"] { background: var(--zp-primary-soft); color: var(--zp-primary-dark); }

/* ═══════════════════════════════════════════════════════════
   6. FORMULARIOS
═══════════════════════════════════════════════════════════ */
.field, input[type="text"], input[type="email"],
input[type="password"], input[type="number"],
input[type="tel"], select, textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--zp-font);
  font-size: 14px;
  color: var(--zp-text-primary);
  background: var(--zp-bg-card);
  border: 1px solid var(--zp-border-strong);
  border-radius: var(--zp-radius-sm);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--zp-primary);
  box-shadow: var(--focus);
}
.field.error { border-color: var(--zp-error); }
.field.error:focus { box-shadow: 0 0 0 3px rgba(226,75,74,.15); }

label, .lbl {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--zp-text-secondary);
  margin-bottom: 4px;
}

.field-row { margin-bottom: 14px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.field-error { font-size: 12px; color: var(--zp-error); margin-top: 4px; }

/* Checkbox */
input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--zp-primary);
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   7. CARDS Y PANELS
═══════════════════════════════════════════════════════════ */
.card {
  background: var(--zp-bg-card);
  border: 0.5px solid var(--zp-border);
  border-radius: var(--zp-radius-lg);
  padding: 1rem 1.25rem;
}

.panel {
  background: var(--zp-bg-card);
  border: 0.5px solid var(--zp-border);
  border-radius: var(--zp-radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.panel-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--zp-text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--zp-border);
}

/* Stat cards — Dashboard */
.stat-card {
  background: var(--zp-bg-subtle);
  border-radius: var(--zp-radius);
  padding: 1rem;
  text-align: center;
}
.stat-label {
  font-size: 11px;
  color: var(--zp-text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.stat-value {
  font-size: 26px;
  font-weight: 500;
  color: var(--zp-text-primary);
}

/* ═══════════════════════════════════════════════════════════
   8. TABLAS
═══════════════════════════════════════════════════════════ */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead tr { background: var(--zp-bg-subtle); }
th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--zp-text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--zp-border);
}
td {
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--zp-border);
  color: var(--zp-text-primary);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--zp-bg-subtle); transition: background .1s; }
td.muted, td .muted { color: var(--zp-text-secondary); }
td code { font-size: 11px; background: var(--zp-bg-subtle); padding: 2px 6px; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════
   9. LAYOUT BACKOFFICE
═══════════════════════════════════════════════════════════ */
.shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--zp-bg-card);
  border-right: 1px solid var(--zp-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-inner { padding: 16px; flex: 1; }

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--zp-text-primary);
  padding: 16px;
  border-bottom: 1px solid var(--zp-border);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-accent { color: var(--zp-primary); }
.brand-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--zp-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* User block sidebar */
.user-block {
  padding: 12px 16px;
  border-bottom: 1px solid var(--zp-border);
  background: var(--zp-bg-subtle);
}
.user-name  { font-size: 13px; font-weight: 500; color: var(--zp-text-primary); }
.user-email { font-size: 11px; color: var(--zp-text-muted); margin-top: 1px; }
.user-role  {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--zp-primary-soft);
  color: var(--zp-primary-dark);
}

/* Nav */
.nav-section { margin-bottom: 20px; }
.nav-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--zp-text-muted);
  padding: 0 4px 6px;
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--zp-text-secondary);
  border-radius: var(--zp-radius-sm);
  transition: background .12s, color .12s;
  text-decoration: none;
}
.nav a:hover {
  background: var(--zp-bg-subtle);
  color: var(--zp-text-primary);
  text-decoration: none;
}
.nav a.active {
  background: var(--zp-primary-soft);
  color: var(--zp-primary);
  font-weight: 500;
}
.nav a span { font-size: 15px; }

/* Main area */
.main { display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--zp-border);
  background: var(--zp-bg-card);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-left h1 { font-size: 17px; font-weight: 500; }
.topbar-left .subtitle { font-size: 12px; color: var(--zp-text-muted); margin-top: 1px; }

.content-wrap { padding: 24px; flex: 1; }

/* Grids */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* ═══════════════════════════════════════════════════════════
   10. FILTROS Y FORMULARIOS DE BÚSQUEDA
═══════════════════════════════════════════════════════════ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.filters input, .filters select { max-width: 200px; }

/* ═══════════════════════════════════════════════════════════
   11. FLASH / ALERTAS
═══════════════════════════════════════════════════════════ */
.flash {
  padding: 12px 16px;
  border-radius: var(--zp-radius);
  font-size: 13px;
  margin-bottom: 16px;
  background: var(--zp-success-bg);
  color: var(--zp-success-text);
  border: 1px solid rgba(29,158,117,.2);
}
.flash-warning {
  background: var(--zp-warning-bg);
  color: var(--zp-warning-text);
  border-color: rgba(186,117,23,.2);
}
.flash-error {
  background: var(--zp-error-bg);
  color: var(--zp-error-text);
  border-color: rgba(226,75,74,.2);
}

/* ═══════════════════════════════════════════════════════════
   12. SPINNER / LOADING
═══════════════════════════════════════════════════════════ */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin .6s linear infinite;
}
.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   13. PAGINACIÓN
═══════════════════════════════════════════════════════════ */
.pagination { display: flex; gap: 4px; align-items: center; margin-top: 16px; }
.pagination a, .pagination span {
  padding: 6px 12px;
  border-radius: var(--zp-radius-sm);
  font-size: 13px;
  border: 1px solid var(--zp-border);
  color: var(--zp-text-secondary);
  text-decoration: none;
}
.pagination a:hover { background: var(--zp-bg-subtle); color: var(--zp-text-primary); }
.pagination .active span {
  background: var(--zp-primary);
  border-color: var(--zp-primary);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   14. HPP — ESPECÍFICO DEL CHECKOUT
═══════════════════════════════════════════════════════════ */
/* Method cards */
.method-pane { display: none; }
.method-pane.active { display: block; }

.method-item, .method-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--zp-border-strong);
  border-radius: var(--zp-radius);
  background: var(--zp-bg-card);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin-bottom: 6px;
  text-align: left;
  width: 100%;
  font-family: var(--zp-font);
}
.method-item:hover, .method-btn:hover {
  border-color: var(--zp-primary);
  background: var(--zp-primary-soft);
}
.method-item.active, .method-btn.active {
  border: 2px solid var(--zp-primary);
  background: #F5F0FF;
}
.method-name { font-size: 14px; font-weight: 500; color: var(--zp-text-primary); }
.method-sub  { font-size: 12px; color: var(--zp-text-muted); }

/* Pane badges */
.pane-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pane-title  { font-size: 15px; font-weight: 500; color: var(--zp-text-primary); }
.pane-badges { display: flex; gap: 5px; }
.pane-badge  {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--zp-bg-subtle);
  color: var(--zp-text-muted);
  border: 0.5px solid var(--zp-border);
}

/* Terms row */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--zp-text-secondary);
  margin-bottom: 14px;
}
.terms-row a { color: var(--zp-primary); }

/* Security footer HPP */
.security-footer {
  text-align: center;
  font-size: 11px;
  color: var(--zp-text-muted);
  margin-top: 12px;
}
.security-footer span { color: var(--zp-primary); font-weight: 500; }

/* Card number wrap */
.card-num-wrap { position: relative; }
.card-brand-ic {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════
   15. MERCANT INITIALS / AVATAR
═══════════════════════════════════════════════════════════ */
.merchant-initials, .avatar {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--zp-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   16. RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--zp-border);
  }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .content-wrap { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .field-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   UTILITY CLASSES — migración desde estilos inline
   Generado: Jun 2026
══════════════════════════════════════════════════════════════ */

/* Typography */
.text-11  { font-size: 11px; }
.text-12  { font-size: 12px; }
.text-13  { font-size: 13px; }
.text-14  { font-size: 14px; }
.text-muted  { color: var(--zp-text-muted); }
.text-secondary { color: var(--zp-text-secondary); }
.text-primary-color { color: var(--zp-primary); }
.text-success-color { color: var(--zp-success); }
.text-error-color   { color: var(--zp-error); }
.text-warning-color { color: var(--zp-warning); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-upper  { text-transform: uppercase; }
.mono { font-family: monospace; }

/* Spacing */
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: 4px; }
.mb-6  { margin-bottom: 6px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-4  { margin-top: 4px; }
.mt-6  { margin-top: 6px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.p-0   { padding: 0; }
.p-16  { padding: 16px; }
.p-20  { padding: 20px; }

/* Flex utilities */
.d-flex         { display: flex; }
.flex-col       { flex-direction: column; }
.align-center   { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap      { flex-wrap: wrap; }
.gap-4  { gap: 4px; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* Grid utilities */
.grid-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Section header — título de sección con acción */
.section-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-hdr .panel-title { margin: 0; border: none; padding: 0; }

/* Section label — etiqueta gris uppercase */
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--zp-text-muted);
  margin-bottom: 6px;
}

/* Code block */
.code-block {
  font-size: 11px;
  background: var(--zp-bg-subtle);
  padding: 10px;
  border-radius: 6px;
  overflow: auto;
  max-height: 200px;
  font-family: monospace;
  word-break: break-all;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 32px;
  color: var(--zp-text-muted);
  font-size: 13px;
}

/* KV row — clave: valor */
.kv-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--zp-border);
}
.kv-row:last-child { border-bottom: none; }
.kv-label { color: var(--zp-text-muted); }

/* Progress mini bar */
.progress-bar-wrap {
  margin-top: 6px;
  height: 4px;
  background: var(--zp-bg-subtle);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .4s;
}

/* Field group */
.field-group { display: flex; flex-direction: column; gap: 4px; }
.field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--zp-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Overflow x scroll wrapper */
.table-scroll { overflow-x: auto; }

/* Filter chips */
.filter-active-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--zp-primary-soft);
  border-radius: 6px;
  font-size: 12px;
  color: var(--zp-primary);
}
.filter-chip {
  background: var(--zp-bg-card);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--zp-primary);
  font-size: 11px;
}

/* ── Sidebar footer ── */
.sidebar { display: flex; flex-direction: column; }
.sidebar .sidebar-inner { flex: 1; overflow-y: auto; }

/* ── Tablas responsivas en móvil ── */
@media (max-width: 768px) {
  .panel { overflow-x: auto; }
  table { min-width: 600px; }
  .filters { flex-direction: column; }
  .filters input, .filters select { width: 100%; max-width: 100%; }
}

/* ── Hamburguesa móvil ── */
.btn-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--zp-border);
    border-radius: 8px;
    background: transparent;
    color: var(--zp-text-secondary);
    cursor: pointer;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .btn-hamburger { display: flex; }
    .topbar-left h1 { font-size: 15px; }
}
@media (min-width: 769px) {
    .btn-hamburger { display: none !important; }
}

/* ══════════════════════════════════════════════════════
   BREADCRUMBS
══════════════════════════════════════════════════════ */
.bc-item { display: flex; align-items: center; gap: 5px; }
.bc-link { color: var(--zp-text-muted); text-decoration: none; font-size: 12px; transition: color .15s; }
.bc-link:hover { color: var(--zp-primary); }
.bc-sep { color: var(--zp-border); font-size: 11px; }
.bc-current { color: var(--zp-text-secondary); font-size: 12px; font-weight: 500; }

/* ══════════════════════════════════════════════════════
   SKELETON LOADERS
══════════════════════════════════════════════════════ */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--zp-bg-subtle) 25%, var(--zp-border) 50%, var(--zp-bg-subtle) 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
}
.skeleton-row td { padding: 10px; }
.skeleton-cell { height: 14px; border-radius: 4px; }
.skeleton-cell-sm { height: 14px; width: 60%; border-radius: 4px; }
.skeleton-cell-xs { height: 14px; width: 40%; border-radius: 4px; }
.skeleton-badge { height: 20px; width: 64px; border-radius: 10px; }

/* Table loading state */
.table-loading tbody { position: relative; }
