/* ════════════════════════════════════════════════════════════
   WABIKS PRODUCTION MANAGER — Design System v2
   ════════════════════════════════════════════════════════════ */

/* ── 1. Variables ──────────────────────────────────────────── */
:root {
  --surface-0:  #ffffff;
  --surface-1:  #f8f9fa;
  --surface-2:  #f0f1f3;
  --border:     rgba(0,0,0,.07);
  --border-m:   rgba(0,0,0,.11);

  --text-1: #0f0f0f;
  --text-2: #4b5563;
  --text-3: #9ca3af;

  --sidebar-w: 180px;
  --topbar-h:  52px;
  --radius:    8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow:    0 3px 10px rgba(0,0,0,.09);

  /* Alert ramps */
  --rojo-bg: #FEE2E2;    --rojo-text: #7F1D1D;
  --rojo-badge: #FECACA; --rojo-bdr:  #FCA5A5;

  --naranja-bg: #FEF3C7;    --naranja-text: #78350F;
  --naranja-badge: #FDE68A; --naranja-bdr:  #FCD34D;

  --verde-bg: #F0FDF4;    --verde-text: #14532D;
  --verde-badge: #BBF7D0; --verde-bdr:  #86EFAC;
}

/* ── 2. Reset ──────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: var(--text-1);
  background: var(--surface-1);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── 3. App layout ─────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* ── 4. Sidebar ────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface-1);
  border-right: 0.5px solid var(--border-m);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  overflow: hidden;
}

.sidebar-logo {
  padding: 15px 12px 13px;
  border-bottom: 0.5px solid var(--border-m);
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.sidebar-logo-icon {
  width: 30px; height: 30px;
  background: #0f0f0f;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.sidebar-logo-name { font-size: 13px; font-weight: 700; color: var(--text-1); display: block; line-height: 1.3; }
.sidebar-logo-sub  { font-size: 10px; color: var(--text-3); display: block; }

.sidebar-nav { padding: 8px; flex: 1; overflow-y: auto; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 1px;
  font-size: 13px; color: var(--text-2);
  transition: background .12s, color .12s;
}
.sidebar-nav-item:hover { background: var(--surface-2); color: var(--text-1); }
.sidebar-nav-item.active { background: var(--surface-2); color: var(--text-1); font-weight: 500; }
.sidebar-nav-item svg { flex-shrink: 0; opacity: .55; }
.sidebar-nav-item.active svg, .sidebar-nav-item:hover svg { opacity: 1; }

.sidebar-user {
  margin-top: auto;
  padding: 10px 12px;
  border-top: 0.5px solid var(--border-m);
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.sidebar-avatar {
  width: 27px; height: 27px; border-radius: 50%;
  background: #0f0f0f; color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase; flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .4px; }
.sidebar-logout { color: var(--text-3); font-size: 11px; flex-shrink: 0; padding: 4px; border-radius: 4px; transition: color .12s; }
.sidebar-logout:hover { color: var(--text-1); }

/* ── 5. App main ───────────────────────────────────────────── */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── 6. Topbar ─────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--surface-0);
  border-bottom: 0.5px solid var(--border-m);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 40; flex-shrink: 0;
}
.topbar-left { display: flex; align-items: baseline; gap: 12px; }
.topbar-title { font-size: 15px; font-weight: 700; color: var(--text-1); }
.topbar-date  { font-size: 12px; color: var(--text-3); text-transform: capitalize; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

/* ── 7. Page content ───────────────────────────────────────── */
.page-content { padding: 24px; flex: 1; }
.page         { padding: 24px; flex: 1; } /* legacy alias */

/* ── 8. Flash ──────────────────────────────────────────────── */
.flash {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 16px;
}
.flash-success { background: var(--verde-bg); color: var(--verde-text); border: 0.5px solid var(--verde-bdr); }
.flash-error   { background: var(--rojo-bg);  color: var(--rojo-text);  border: 0.5px solid var(--rojo-bdr); }

/* ── 9. Stats bar ──────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--surface-0);
  border: 0.5px solid var(--border-m);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.stat-value {
  font-size: 26px; font-weight: 800;
  letter-spacing: -1px; line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.stat-card.criticos .stat-value { color: #dc2626; }
.stat-card.aviso    .stat-value { color: #d97706; }
.stat-card.plazo    .stat-value { color: #16a34a; }
.stat-card.total    .stat-value { color: var(--text-1); }

/* ── 10. Filter pills ──────────────────────────────────────── */
.filters-bar { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-pill {
  padding: 5px 14px; border-radius: 99px;
  border: 0.5px solid var(--border-m);
  background: var(--surface-0);
  cursor: pointer; font-size: 12px; font-weight: 500;
  color: var(--text-2); transition: all .12s; white-space: nowrap;
}
.filter-pill:hover  { border-color: #0f0f0f; color: var(--text-1); }
.filter-pill.active { background: #0f0f0f; color: #fff; border-color: #0f0f0f; }

/* ── 11. Cards grid ────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

/* ── 12. Pedido card ───────────────────────────────────────── */
.pedido-card {
  border-radius: var(--radius);
  border: 0.5px solid var(--border-m);
  background: var(--surface-0);
  overflow: hidden;
  transition: box-shadow .18s, transform .18s;
  display: flex; flex-direction: column;
}
.pedido-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.pedido-card.alerta-rojo    { background: var(--rojo-bg);    border-color: var(--rojo-bdr); }
.pedido-card.alerta-naranja { background: var(--naranja-bg); border-color: var(--naranja-bdr); }
.pedido-card.alerta-verde   { background: var(--verde-bg);   border-color: var(--verde-bdr); }
.pedido-card.alerta-neutro  { background: var(--surface-1);  border-color: var(--border-m); }

.card-render {
  width: 100%; max-height: 150px; object-fit: contain;
  background: rgba(255,255,255,.55); padding: 8px;
  border-bottom: 0.5px solid rgba(0,0,0,.06);
}
.card-render-placeholder {
  width: 100%; height: 72px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-bottom: 0.5px solid var(--border);
  font-size: 11px; color: var(--text-3); letter-spacing: .03em;
}

.card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.card-client-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.card-cliente { font-size: 14px; font-weight: 700; color: var(--text-1); }
.card-ref     { font-size: 11px; color: var(--text-3); margin-top: 1px; }

.alerta-rojo    .card-cliente { color: var(--rojo-text); }
.alerta-naranja .card-cliente { color: var(--naranja-text); }
.alerta-verde   .card-cliente { color: var(--verde-text); }
.alerta-rojo    .card-ref { color: rgba(127,29,29,.5); }
.alerta-naranja .card-ref { color: rgba(120,53,15,.5); }
.alerta-verde   .card-ref { color: rgba(20,83,45,.5); }

.card-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.card-footer-row { display: flex; align-items: center; justify-content: space-between; }

/* ── 13. Alert chip ────────────────────────────────────────── */
.alert-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 600;
}
.alerta-rojo    .alert-chip { background: var(--rojo-badge);    color: var(--rojo-text); }
.alerta-naranja .alert-chip { background: var(--naranja-badge); color: var(--naranja-text); }
.alerta-verde   .alert-chip { background: var(--verde-badge);   color: var(--verde-text); }
.alerta-neutro  .alert-chip { background: var(--surface-2);     color: var(--text-2); }

/* ── 14. Mini stepper ──────────────────────────────────────── */
.mini-stepper {
  display: flex; align-items: center;
  margin-top: 4px;
}
.mini-dot  { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.mini-line { flex: 1; height: 1px; min-width: 4px; }
.mini-estado-label { font-size: 9px; margin-left: 6px; white-space: nowrap; color: var(--text-3); }

/* Rojo */
.alerta-rojo .mini-dot.done   { background: var(--rojo-text); }
.alerta-rojo .mini-dot.active { background: #dc2626; }
.alerta-rojo .mini-dot.empty  { background: var(--rojo-badge); }
.alerta-rojo .mini-line       { background: var(--rojo-badge); }
.alerta-rojo .mini-estado-label { color: var(--rojo-text); opacity: .65; }

/* Naranja */
.alerta-naranja .mini-dot.done   { background: var(--naranja-text); }
.alerta-naranja .mini-dot.active { background: #d97706; }
.alerta-naranja .mini-dot.empty  { background: var(--naranja-badge); }
.alerta-naranja .mini-line       { background: var(--naranja-badge); }
.alerta-naranja .mini-estado-label { color: var(--naranja-text); opacity: .65; }

/* Verde */
.alerta-verde .mini-dot.done   { background: var(--verde-text); }
.alerta-verde .mini-dot.active { background: #16a34a; }
.alerta-verde .mini-dot.empty  { background: var(--verde-badge); }
.alerta-verde .mini-line       { background: var(--verde-badge); }
.alerta-verde .mini-estado-label { color: var(--verde-text); opacity: .65; }

/* Neutro */
.alerta-neutro .mini-dot.done   { background: #374151; }
.alerta-neutro .mini-dot.active { background: #6b7280; }
.alerta-neutro .mini-dot.empty  { background: #e5e7eb; }
.alerta-neutro .mini-line       { background: #e5e7eb; }
.alerta-neutro .mini-estado-label { color: var(--text-3); }

/* ── 15. Progress bar ──────────────────────────────────────── */
.progress-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-3); margin-bottom: 4px;
}
.alerta-rojo    .progress-meta { color: rgba(127,29,29,.55); }
.alerta-naranja .progress-meta { color: rgba(120,53,15,.55); }
.alerta-verde   .progress-meta { color: rgba(20,83,45,.55); }

.progress-bg {
  background: var(--surface-2); border-radius: 99px; height: 4px; overflow: hidden;
}
.alerta-rojo    .progress-bg { background: var(--rojo-badge); }
.alerta-naranja .progress-bg { background: var(--naranja-badge); }
.alerta-verde   .progress-bg { background: var(--verde-badge); }

/* Legacy names */
.progress-bar-bg  { background: var(--surface-2); border-radius: 99px; height: 6px; overflow: hidden; }
.progress-bar-fill {
  height: 100%; border-radius: 99px; background: #1e3a5f; transition: width .4s;
}
.progress-bar-fill.completo { background: #16a34a; }

.progress-fill {
  height: 100%; border-radius: 99px; background: #0f0f0f; transition: width .4s;
}
.alerta-rojo    .progress-fill { background: var(--rojo-text); }
.alerta-naranja .progress-fill { background: var(--naranja-text); }
.alerta-verde   .progress-fill { background: var(--verde-text); }
.progress-fill.completo { background: #16a34a; }

/* ── 16. Badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-pendiente     { background: #f3f4f6; color: #6b7280; }
.badge-en-produccion { background: #dbeafe; color: #1d4ed8; }
.badge-impreso       { background: #ede9fe; color: #7c3aed; }
.badge-a-etiquetar   { background: #ffedd5; color: #c2410c; }
.badge-preparado     { background: #dcfce7; color: #15803d; }
.badge-enviado       { background: #f0fdf4; color: #166534; }
.badge-cancelado     { background: #f3f4f6; color: #9ca3af; }

.badge-b2b    { background: #dbeafe; color: #1e40af; }
.badge-custom { background: #fdf4ff; color: #7e22ce; }
.badge-urgente { background: #dc2626; color: #fff; }
.badge-rol    { background: var(--surface-2); color: var(--text-2); padding: 2px 8px; border-radius: 99px; font-size: 11px; }

/* Override badges inside alert cards */
.alerta-rojo    .badge:not(.badge-urgente) { background: var(--rojo-badge);    color: var(--rojo-text); }
.alerta-naranja .badge:not(.badge-urgente) { background: var(--naranja-badge); color: var(--naranja-text); }
.alerta-verde   .badge:not(.badge-urgente) { background: var(--verde-badge);   color: var(--verde-text); }

/* ── 17. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  border: 0.5px solid transparent;
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: opacity .12s;
  text-decoration: none; white-space: nowrap; line-height: 1.4;
  font-family: inherit;
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn-black     { background: #0f0f0f; color: #fff; }
.btn-primary   { background: #1e3a5f; color: #fff; }
.btn-secondary { background: var(--surface-0); color: var(--text-2); border-color: var(--border-m); }
.btn-danger    { background: #dc2626; color: #fff; }
.btn-success   { background: #16a34a; color: #fff; }
.btn-warning   { background: #d97706; color: #fff; }
.btn-ghost     { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 10px 20px; font-size: 14px; }

/* ── 18. Table ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--surface-1);
  padding: 9px 12px; text-align: left;
  font-size: 11px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 0.5px solid var(--border-m); white-space: nowrap;
}
tbody td {
  padding: 10px 12px; border-bottom: 0.5px solid var(--border); vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover         { background: var(--surface-1); }
.linea-row-completa td { background: #f0fdf4; }

/* ── 19. Section card ──────────────────────────────────────── */
.section-card {
  background: var(--surface-0);
  border-radius: var(--radius);
  border: 0.5px solid var(--border-m);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.section-card-header {
  padding: 12px 18px;
  border-bottom: 0.5px solid var(--border);
  font-weight: 600; font-size: 13px; color: var(--text-2);
  display: flex; align-items: center; justify-content: space-between;
}
.section-card-body { padding: 18px; }

/* ── 20. Page header ───────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.page-title { font-size: 18px; font-weight: 700; }

/* ── 21. Stepper (detalle) ─────────────────────────────────── */
.stepper { display: flex; align-items: center; }
.step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; position: relative;
}
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 13px; left: 50%;
  width: 100%; height: 2px; background: var(--border-m); z-index: 0;
}
.step.done:not(:last-child)::after { background: #1e3a5f; }
.step-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  position: relative; z-index: 1; border: 2px solid var(--border-m);
}
.step.done   .step-dot { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.step.active .step-dot { background: #fff; color: #1e3a5f; border-color: #1e3a5f; }
.step-label  { font-size: 10px; color: var(--text-3); margin-top: 4px; text-align: center; white-space: nowrap; }
.step.done   .step-label { color: #1e3a5f; font-weight: 600; }
.step.active .step-label { color: #1e3a5f; font-weight: 700; }

/* ── 22. Forms ─────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-full  { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label {
  font-size: 11px; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .4px;
}
.form-control {
  padding: 8px 10px;
  border: 0.5px solid var(--border-m);
  border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit;
  color: var(--text-1); background: var(--surface-0);
  transition: border-color .12s, box-shadow .12s; width: 100%;
}
.form-control:focus { outline: none; border-color: #0f0f0f; box-shadow: 0 0 0 3px rgba(15,15,15,.07); }
.form-control:disabled { background: var(--surface-1); color: var(--text-3); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control   { cursor: pointer; }
.form-check { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.form-check input[type=checkbox] { width: 15px; height: 15px; cursor: pointer; accent-color: #0f0f0f; }
.form-check label { font-size: 13px; font-weight: 500; cursor: pointer; text-transform: none; letter-spacing: 0; color: var(--text-1); }
.form-help    { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.form-actions { display: flex; gap: 8px; align-items: center; padding-top: 4px; }
.progreso-form { display: flex; align-items: center; gap: 6px; }
.progreso-input {
  width: 68px; text-align: center;
  padding: 4px 6px; border: 0.5px solid var(--border-m);
  border-radius: var(--radius-sm); font-size: 13px; font-family: inherit;
}

/* ── 23. Detalle header ────────────────────────────────────── */
.detalle-header {
  background: var(--surface-0);
  border-radius: var(--radius);
  border: 0.5px solid var(--border-m);
  border-left: 4px solid var(--border-m);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 24px;
}
.detalle-header.alerta-rojo    { border-left-color: #dc2626; background: var(--rojo-bg); }
.detalle-header.alerta-naranja { border-left-color: #d97706; background: var(--naranja-bg); }
.detalle-header.alerta-verde   { border-left-color: #16a34a; background: var(--verde-bg); }

.detalle-header-main { flex: 1; }
.detalle-cliente { font-size: 20px; font-weight: 800; }
.detalle-ref     { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.detalle-badges  { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.detalle-meta    { display: flex; gap: 28px; align-items: center; }
.meta-item       { text-align: center; }
.meta-item-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.meta-item-value { font-size: 15px; font-weight: 700; margin-top: 2px; }
.meta-item-value.rojo    { color: #dc2626; }
.meta-item-value.naranja { color: #d97706; }
.meta-item-value.verde   { color: #16a34a; }

.render-grande {
  max-width: 360px; max-height: 360px; width: 100%;
  object-fit: contain; border-radius: var(--radius);
  border: 0.5px solid var(--border-m); background: var(--surface-1); padding: 8px;
}

/* ── 24. Alert banner ──────────────────────────────────────── */
.alert-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius-sm);
  margin-bottom: 16px; font-size: 13px; font-weight: 600;
}
.alert-banner.rojo    { background: var(--rojo-bg);    color: var(--rojo-text);    border: 0.5px solid var(--rojo-bdr); }
.alert-banner.naranja { background: var(--naranja-bg); color: var(--naranja-text); border: 0.5px solid var(--naranja-bdr); }

/* ── 25. Card fecha ────────────────────────────────────────── */
.card-fecha { font-size: 12px; font-weight: 600; color: var(--text-3); }
.alerta-rojo    .card-fecha { color: var(--rojo-text); opacity: .8; }
.alerta-naranja .card-fecha { color: var(--naranja-text); opacity: .8; }
.alerta-verde   .card-fecha { color: var(--verde-text); opacity: .8; }

/* ── 26. Login ─────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center; background: var(--surface-1);
}
.login-box {
  background: var(--surface-0); border-radius: 12px;
  border: 0.5px solid var(--border-m); box-shadow: var(--shadow);
  padding: 36px 32px; width: 100%; max-width: 360px;
}
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo-icon {
  width: 44px; height: 44px; background: #0f0f0f; border-radius: 10px;
  margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.login-logo h1 { font-size: 18px; font-weight: 800; color: var(--text-1); }
.login-logo p  { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* ── 27. Empty state ───────────────────────────────────────── */
.empty-state { text-align: center; padding: 56px 24px; color: var(--text-3); }
.empty-state h3 { font-size: 16px; color: var(--text-2); margin-bottom: 6px; }

/* ── 28. Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar   { display: none; }
  .app-main  { margin-left: 0; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .detalle-meta { flex-wrap: wrap; gap: 16px; }
  .detalle-header { flex-direction: column; }
}

/* ── 29. No-print util ─────────────────────────────────────── */
@media print { .no-print { display: none !important; } }

/* ── 30. Prueba de color ───────────────────────────────────── */
/* Checkbox en formulario nuevo/editar */
.prueba-color-check {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: #FFFBEB; border: 1.5px solid #F59E0B; border-radius: 8px;
  padding: 12px 16px; font-weight: 700; font-size: 13px; color: #92400E;
  user-select: none;
}
.prueba-color-check input { width: 16px; height: 16px; accent-color: #F59E0B; cursor: pointer; }

/* Chip en tarjeta del dashboard */
.chip-prueba-color {
  width: 100%; text-align: center; padding: 5px 10px;
  background: #FEF3C7; border: 1px solid #F59E0B; border-radius: 6px;
  font-size: 10px; font-weight: 800; color: #92400E;
  letter-spacing: .04em; margin-bottom: 8px;
}

/* Banner en cabecera del detalle */
.banner-prueba-color {
  margin-top: 10px; padding: 8px 14px;
  background: #FEF3C7; border: 1.5px solid #F59E0B; border-radius: 8px;
  font-size: 13px; font-weight: 700; color: #92400E;
}
