@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ============================================================
   DESIGN SYSTEM — Supportical
   ============================================================
   Tipografías (Google Fonts — cargadas por @import arriba):
   - DM Serif Display 400       → titulares, display, KPI values
   - Plus Jakarta Sans 400–700  → cuerpo, labels, botones
   ============================================================ */

/* ------------------------------------------------------------
   TOKENS
   ------------------------------------------------------------ */
:root {
  /* Backgrounds */
  --bg:           #F5F6FA;
  --bg-light:     #E7F1FF;
  --surface:      #FFFFFF;
  --surface2:     #F0F1F8;

  /* Nav / dark */
  --nav:          #020A50;
  --nav-border:   rgba(255,255,255,0.12);

  /* Accent */
  --accent:       #1A56DB;
  --accent-hover: #1446B8;
  --accent-dim:   #EBF2FD;
  --accent-mid:   #DCDEF5;

  /* Borders */
  --border:       #DDDDDD;
  --border-strong:#CCCCCC;

  /* Text */
  --text:         #222222;
  --text-2:       #555560;
  --text-nav:     #FFFFFF;
  --text-nav-dim: rgba(255,255,255,0.55);

  /* Semantic */
  --success-bg:   #EDF7EE;
  --success:      #117C00;
  --warn-bg:      #FFF5E6;
  --warn:         #D97706;
  --error-bg:     #FDEDF0;
  --error:        #B2002C;
  --info-bg:      #EBF4FF;
  --info:         #115EBB;

  /* Classification */
  --clr-excepcional:   #117C00;
  --clr-sobresaliente: #115EBB;
  --clr-satisfactorio: #856C00;
  --clr-en-desarrollo: #D97706;
  --clr-insuficiente:  #B2002C;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Spacing (4px grid) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Radius */
  --radius-sm: 4px;
  --radius:    6px;
  --radius-lg: 10px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:     0 2px 8px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 4px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);

  /* Colores semánticos directos (usados en tablas y KPIs) */
  --green:  #16A34A;
  --red:    #DC2626;
  --yellow: #D97706;

  /* Tabla */
  --row-h: 38px;
}

/* ------------------------------------------------------------
   RESET
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------
   TIPOGRAFÍA
   ------------------------------------------------------------ */
.text-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.text-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}

.text-body   { font-size: 14px; color: var(--text); }
.text-small  { font-size: 12px; color: var(--text-2); }
.text-number { font-family: var(--font-display); color: var(--accent); }
.text-muted  { color: var(--text-2); }
.text-accent { color: var(--accent); }

/* ------------------------------------------------------------
   TOPBAR / NAV
   ------------------------------------------------------------ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-10);
  height: 56px;
  background: var(--nav);
  position: sticky; top: 0;
  z-index: 100;
}

.topbar-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-nav);
}

.topbar-back {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-nav-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: color 0.2s;
}
.topbar-back:hover { color: var(--text-nav); }

/* ------------------------------------------------------------
   CARD / PANEL
   ------------------------------------------------------------ */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel--accent {
  border-top: 3px solid var(--accent);
}

.panel-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.panel-body { padding: var(--space-6); }

/* ------------------------------------------------------------
   BOTONES
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px var(--space-5);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover:not(:disabled) { background: var(--accent-dim); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.btn-full { width: 100%; justify-content: center; }

/* ------------------------------------------------------------
   INPUTS
   ------------------------------------------------------------ */
.input, .textarea, .select {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: var(--radius-sm);
  appearance: none;
}

.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(26,86,219,0.55);
}
.textarea { resize: vertical; }

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: var(--space-2);
}

/* ------------------------------------------------------------
   SLIDER
   ------------------------------------------------------------ */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: var(--border-strong);
  outline: none;
  cursor: pointer;
  width: 100%;
  border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
input[type=range]::-webkit-slider-thumb:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.18);
}

input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
}

/* ------------------------------------------------------------
   BARRA DE PROGRESO
   ------------------------------------------------------------ */
.progress-track {
  width: 100%;
  height: 4px;
  background: var(--accent-dim);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}

/* ------------------------------------------------------------
   TAGS / BADGES
   ------------------------------------------------------------ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.badge-Excepcional   { background: #E3FBDF; color: #117C00; }
.badge-Sobresaliente { background: #DBECFF; color: #0C4283; }
.badge-Satisfactorio { background: #FFFCEB; color: #856C00; }
.badge-En-desarrollo { background: #FFF5E6; color: #995C00; }
.badge-Insuficiente  { background: #FED7DE; color: #9F0019; }

/* ------------------------------------------------------------
   MENSAJES DE ESTADO
   ------------------------------------------------------------ */
.msg {
  padding: var(--space-4) var(--space-5);
  font-size: 14px;
  border-radius: var(--radius-sm);
}
.msg-ok    { background: var(--success-bg); border: 1px solid #C3E8C3; color: var(--success); }
.msg-error { background: var(--error-bg);   border: 1px solid #FED7DE; color: var(--error); }
.msg-info  { background: var(--info-bg);    border: 1px solid #DBECFF; color: var(--info); }

/* ------------------------------------------------------------
   DIVISOR
   ------------------------------------------------------------ */
.sep {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ------------------------------------------------------------
   ANIMACIONES
   ------------------------------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up              { animation: fadeUp 0.35s cubic-bezier(0.16,1,0.3,1) both; }
.anim-fade-up.delay-1      { animation-delay: 0.05s; }
.anim-fade-up.delay-2      { animation-delay: 0.10s; }
.anim-fade-up.delay-3      { animation-delay: 0.15s; }
.anim-fade-up.delay-4      { animation-delay: 0.20s; }

/* ------------------------------------------------------------
   UTILIDADES
   ------------------------------------------------------------ */
.z-content { position: relative; z-index: 1; }
.full-w    { width: 100%; }

@keyframes spin { to { transform: rotate(360deg); } }
.loading-spinner { display:inline-block; width:15px; height:15px; border:2px solid var(--border); border-top-color:var(--accent); border-radius:50%; animation:spin 0.6s linear infinite; vertical-align:middle; margin-right:7px; flex-shrink:0; }

/* ------------------------------------------------------------
   FILTER FUNNEL PANELS
   Used by any list page with toggle-panel filters.
   JS helper: renderFunnelPanel() in utils.js
   ------------------------------------------------------------ */
.toggle-wrap { padding: 10px 0 4px; }
.funnel-blocks { display: flex; gap: 6px; flex-wrap: wrap; }
.funnel-block { flex: 1; min-width: 90px; max-width: 220px; border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 12px; cursor: pointer; transition: border-color 0.15s, opacity 0.15s, box-shadow 0.15s; }
.funnel-block:hover { border-color: var(--border-strong); }
.funnel-block.f-selected { border-width: 2px; box-shadow: 0 0 0 2px var(--accent); }
.funnel-block.fc-dimmed { opacity: 0.28; }
.funnel-block-header { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.funnel-block-name { font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel-block-count { font-size: 11px; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.funnel-track { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.funnel-fill { height: 100%; border-radius: 2px; transition: width 0.3s ease; }
.funnel-empty { text-align: center; color: var(--text-2); font-size: 13px; padding: 20px 0; }

/* ── Toast global ─────────────────────────────────────────────────────────── */
.ds-toast { position: fixed; bottom: 24px; right: 24px; min-width: 200px; max-width: 400px; background: var(--text); color: var(--bg); font-size: 13px; font-family: inherit; padding: 10px 18px; border-radius: 8px; z-index: 9999; opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; word-break: break-word; }
.ds-toast.ds-toast--show { opacity: 1; transform: translateY(0); }
.ds-toast.ds-toast--error { background: #dc2626; }
.ds-toast.ds-toast--success { background: #16a34a; }

/* ── Form & Modal Components ─────────────────────────────────────────────── */
/* Single source of truth — do NOT redeclare these per page.                  */
/* Per-page overrides allowed: modal max-width only.                          */

/* Filter topbar */
.filter-topbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); animation: fadeUp 0.3s 0.01s cubic-bezier(0.16,1,0.3,1) both; }

/* Filter select dropdown */
.filter-select { appearance: none; background: var(--surface); border: 1.5px solid var(--border); border-radius: 6px; padding: 5px 28px 5px 9px; font-size: 12px; font-family: var(--font-body); color: var(--text-2); cursor: pointer; outline: none; transition: border-color .15s, color .15s; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236C6C75' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.filter-select.has-filter { border-color: var(--accent); color: var(--accent); }

/* View toggle buttons (outlined variant) */
.em-toggle { display: flex; gap: 4px; flex-wrap: wrap; }
.em-btn { font-family: var(--font-body); font-size: 11px; font-weight: 500; padding: 5px 11px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text-2); border-radius: 5px; cursor: pointer; transition: all 0.15s; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.em-btn:hover, .em-btn.active, .em-btn.has-filter { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* Modal overlay & shell */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.18s; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.18); width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column; transform: translateY(10px); transition: transform 0.18s cubic-bezier(0.16,1,0.3,1); }
.modal-overlay.open .modal { transform: translateY(0); }

/* Modal rich structure */
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-title { font-family: var(--font-display); font-size: 18px; font-weight: 400; color: var(--text); }
.modal-close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text-2); border-radius: 6px; cursor: pointer; transition: all 0.15s; }
.modal-close:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.modal-body { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); flex-shrink: 0; }
.modal-error { font-size: 12px; color: #dc2626; margin-right: auto; }

/* Form layout (form-grid and form-row are aliases for the same 2-col pattern) */
.form-grid, .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .span2 { grid-column: 1 / -1; }
.form-field, .form-group { display: flex; flex-direction: column; gap: 5px; }
.form-field.full { grid-column: 1 / -1; }
.form-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.form-label .req { color: var(--accent); margin-left: 2px; }
@media (max-width: 640px) { .form-grid, .form-row { grid-template-columns: 1fr; } .form-grid .span2 { grid-column: span 1; } }

/* Form inputs (surface bg + box-shadow on focus) */
.form-input, .form-select, .form-textarea { background: var(--surface); color: var(--text); border: 1.5px solid var(--border-strong); border-radius: 6px; padding: 8px 10px; font-size: 13px; font-family: var(--font-body); outline: none; width: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,86,219,0.55); }
.form-textarea { resize: vertical; min-height: 72px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236C6C75' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }

/* Action buttons */
.btn-nuevo { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; font-family: var(--font-body); font-size: 12px; font-weight: 600; border-radius: 6px; cursor: pointer; border: 1.5px solid var(--accent); background: var(--accent); color: #fff; transition: opacity 0.15s; white-space: nowrap; }
.btn-nuevo:hover { opacity: 0.88; }
.btn-save { background: var(--accent); border: none; color: #fff; font-family: var(--font-body); font-size: 12px; font-weight: 600; padding: 7px 20px; border-radius: 6px; cursor: pointer; transition: opacity 0.15s; }
.btn-save:hover { opacity: 0.88; }
.btn-save:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-cancel { background: var(--surface); border: 1.5px solid var(--border-strong); color: var(--text); font-family: var(--font-body); font-size: 12px; font-weight: 500; padding: 7px 16px; border-radius: 6px; cursor: pointer; transition: all 0.15s; }
.btn-cancel:hover { border-color: var(--accent); color: var(--accent); }

/* ── Page heading & layout ─────────────────────────────────────────────────── */
/* Single source — pages no longer need to re-declare these inline.            */

h1 { font-family: var(--font-display); font-size: 28px; font-weight: 400; line-height: 1.15; color: var(--text); }

.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.eyebrow--muted { color: var(--text-2); letter-spacing: 0.14em; }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; animation: fadeUp 0.3s cubic-bezier(0.16,1,0.3,1) both; flex-wrap: wrap; }

.topbar-count { font-size: 16px; font-weight: 400; color: var(--text-2); font-family: var(--font-body); margin-left: 6px; }

/* ── Search bar ────────────────────────────────────────────────────────────── */
.search-box { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 140px; }
.search-input { flex: 1; background: transparent; border: none; outline: none; font-family: var(--font-body); font-size: 12px; color: var(--text); }
.search-input::placeholder { color: var(--text-2); }

/* ── Tab buttons ───────────────────────────────────────────────────────────── */
.tab-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; font-family: var(--font-body); font-size: 12px; font-weight: 500; border: 1px solid transparent; border-bottom: none; border-radius: 6px 6px 0 0; cursor: pointer; background: transparent; color: var(--text-2); transition: all 0.15s; white-space: nowrap; position: relative; top: 1px; }
.tab-btn:hover { color: var(--accent); }
.tab-btn.active { background: var(--surface); color: var(--accent); border-color: var(--border); border-bottom-color: var(--surface); font-weight: 600; }

/* ── Standalone page buttons (no .btn base required) ──────────────────────── */
.btn-primary { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-family: var(--font-body); font-size: 12px; font-weight: 600; border-radius: 6px; cursor: pointer; border: none; background: var(--accent); color: #fff; transition: opacity 0.15s; white-space: nowrap; }
.btn-primary:hover:not(:disabled) { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-family: var(--font-body); font-size: 12px; font-weight: 500; border-radius: 6px; cursor: pointer; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text-2); transition: all 0.15s; white-space: nowrap; }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.btn-export { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-family: var(--font-body); font-size: 12px; font-weight: 500; border-radius: 6px; cursor: pointer; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); transition: all 0.15s; white-space: nowrap; }
.btn-export:hover { border-color: var(--accent); color: var(--accent); }

/* ── Banner warnings ───────────────────────────────────────────────────────── */
.banner         { border-radius: 0 8px 8px 0; border: 1px solid var(--border); border-left-width: 3px; overflow: hidden; background: var(--surface); }
.banner-table   { width: 100%; border-collapse: collapse; }
.banner-amber   { border-left-color: var(--warn); }
.banner-red     { border-left-color: var(--error); }
.banner-blue    { border-left-color: var(--info); }
.banner-green   { border-left-color: var(--success); }

/* ── Canonical grid / table ────────────────────────────────────────────────── */
/* Used by every list page. Pages no longer need to re-declare these inline.   */

.grid-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.tab-frame .grid-wrap { box-shadow: none; }

.gf-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.gf-table th { background: var(--surface2); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); padding: 0 12px; height: 34px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.gf-table td { padding: 0 12px; height: var(--row-h); border-bottom: 1px solid var(--border); vertical-align: middle; }
.gf-table tbody tr:last-child td { border-bottom: none; }
.gf-table tbody tr:hover { background: var(--surface2); }

.th-inner { display: flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; }
.th-inner:hover { color: var(--text); }
.sort-icon { opacity: 0.35; transition: opacity 0.13s; flex-shrink: 0; }
.th-inner:hover .sort-icon,
.th-inner.sorted .sort-icon { opacity: 1; color: var(--accent); }

.cell-muted { color: var(--text-2); font-size: 11px; }
.cell-sub   { font-size: 10px; color: var(--text-2); margin-top: 1px; font-family: monospace; letter-spacing: 0.04em; }
.cell-num   { font-family: var(--font-body); font-variant-numeric: tabular-nums; text-align: right; }
.cell-right { text-align: right; }
.cell-center { text-align: center; }

.grid-footer { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--border); background: var(--surface2); gap: 12px; flex-wrap: wrap; }
.pag-controls { display: flex; align-items: center; gap: 3px; }
.pag-info { font-size: 11px; color: var(--text-2); }
.page-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 11px; font-weight: 500; border-radius: 5px; cursor: pointer; transition: all 0.12s; }
.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Info panel (resumen / detail pages) ──────────────────────────────────── */
.info-card    { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); display: flex; flex-direction: column; gap: 14px; align-self: start; }
.info-label   { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.info-value   { font-size: 13px; color: var(--text); font-weight: 500; }
.info-divider { height: 1px; background: var(--border); }
.info-row     { display: flex; flex-direction: column; gap: 2px; }

/* ── Toggle-clear (filter reset × button) ─────────────────────────────────── */
.toggle-clear { font-size: 13px; line-height: 1; opacity: 0.65; padding: 0 1px; border-radius: 2px; background: none; border: none; cursor: pointer; color: inherit; transition: opacity 0.12s; }
.toggle-clear:hover { opacity: 1; }
