/* ═══════════════════════════════════════════════════════════════════
   Diseño nuevo "Mapa de sedes" (rediseño 2026-11) · solo con body.v2
   ─ Se activa desde Perfil o con ?v2=1. Sin body.v2 este archivo no hace nada.
   ─ Redefine los tokens base de style.css (todas las pantallas toman la piel
     nueva) y agrega la composición nueva de Hoy (.v2-today, en js/v2.js).
   ─ Un fondo, una tinta, un acento (teal). El color de sede es DATO: tinte de
     fondo + texto AA + marca, por tema (--s-*-bg / -ink / -mark).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens · oscuro (default de la app) ── */
body.v2 {
  --bg: #0F141B;
  --bg-sidebar: #0A0E14;
  --bg-card: #171D26;
  --bg-card2: #1D2430;
  --bg-card-hover: #222A37;
  --border: #283140;
  --border-em: #36404F;
  --border-glow: rgba(79,193,202,0.35);
  --text: #E8ECF1;
  --text-muted: #A9B2C0;
  --text-faint: #939CAB;
  --blue: #5CC6CE;
  --blue-dark: #3FB0B9;
  --blue-solid: #0E7C86;
  --blue-solid-dark: #0B656D;
  --blue-bg: rgba(92,198,206,0.10);
  --blue-glow: rgba(92,198,206,0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --sidebar-w: 92px;
  --shadow-sm: none;
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.45);
  --scrollbar-thumb: rgba(169,178,192,0.30);
  --scrollbar-thumb-hover: rgba(169,178,192,0.50);

  --v2-nav: #0A0E14;
  --v2-nav-ink: #C7CED9;
  --v2-accent: #0E7C86;          /* relleno: texto blanco 4.9:1 */
  --v2-accent-ink: #5CC6CE;      /* texto de acento sobre el fondo */
  --v2-now: #5CC6CE;

  --s-gejho-bg: #33290F; --s-gejho-ink: #F2C46B; --s-gejho-mark: #D99A1E; --s-gejho-line: #4A3B16;
  --s-jho-bg:   #3A1F23; --s-jho-ink:   #F4A3A3; --s-jho-mark:   #E05A5A; --s-jho-line:   #57292F;
  --s-njp-bg:   #14302A; --s-njp-ink:   #86D9AE; --s-njp-mark:   #3DAE7A; --s-njp-line:   #1E4A3C;
  --s-msl-bg:   #172843; --s-msl-ink:   #A4C4F5; --s-msl-mark:   #5B93E6; --s-msl-line:   #233C63;

  font-family: 'Figtree', 'Inter', system-ui, sans-serif;
}

/* ── Tokens · claro ── */
body.v2.light {
  --bg: #EEF1F4;
  --bg-sidebar: #101828;
  --bg-card: #FFFFFF;
  --bg-card2: #F5F7FA;
  --bg-card-hover: #EDF1F5;
  --border: #D5DBE3;
  --border-em: #C3CBD6;
  --border-glow: rgba(14,124,134,0.30);
  --text: #101828;
  --text-muted: #4A5568;
  --text-faint: #5A6577;
  --blue: #0B6E77;
  --blue-dark: #08565D;
  --blue-solid: #0E7C86;
  --blue-solid-dark: #0B656D;
  --blue-bg: rgba(14,124,134,0.08);
  --blue-glow: rgba(14,124,134,0.12);
  --shadow-md: 0 8px 24px rgba(16,24,40,0.12);
  --shadow-lg: 0 16px 48px rgba(16,24,40,0.16);
  --scrollbar-thumb: rgba(74,85,104,0.30);
  --scrollbar-thumb-hover: rgba(74,85,104,0.50);

  --v2-nav: #101828;
  --v2-nav-ink: #C7CED9;
  --v2-accent-ink: #0B6E77;
  --v2-now: #0E7C86;

  --s-gejho-bg: #FBEFD9; --s-gejho-ink: #7A4F07; --s-gejho-mark: #C98A12; --s-gejho-line: #F1E2C6;
  --s-jho-bg:   #FBE4E4; --s-jho-ink:   #9B2C2C; --s-jho-mark:   #D64545; --s-jho-line:   #F0D3D3;
  --s-njp-bg:   #DDF3E8; --s-njp-ink:   #1E6B48; --s-njp-mark:   #2E9E6A; --s-njp-line:   #CBE7D8;
  --s-msl-bg:   #DEE8F7; --s-msl-ink:   #1F4E9A; --s-msl-mark:   #3B7DD8; --s-msl-line:   #CCDAF0;
}

body.v2, body.v2 html { background: var(--bg); }
body.v2 h1, body.v2 h2, body.v2 h3, body.v2 .sidebar-logo, body.v2 button, body.v2 input,
body.v2 select, body.v2 textarea { font-family: inherit; }
body.v2 { font-size: 15px; }

/* ── Shell · navegación lateral angosta y oscura (escritorio) ── */
@media (min-width: 901px) {
  body.v2 .sidebar {
    width: var(--sidebar-w); background: var(--v2-nav); border-right: 0;
    padding: 20px 0; align-items: center;
  }
  body.v2 .sidebar-logo {
    font-size: 14px; font-weight: 800; color: #FFFFFF; padding: 0 0 16px; letter-spacing: 0;
  }
  body.v2 .sidebar-nav { padding: 0 10px; gap: 6px; align-items: stretch; width: 100%; box-sizing: border-box; }
  body.v2 .nav-item {
    flex-direction: column; gap: 4px; padding: 10px 2px; border-radius: 12px;
    color: var(--v2-nav-ink); font-size: 12px; font-weight: 600; text-align: center;
    box-shadow: none; transform: none;
    transition: background-color 160ms ease-out, color 160ms ease-out;
  }
  body.v2 .nav-item span { display: block !important; position: static; width: auto; height: auto; clip: auto; clip-path: none; overflow: visible; white-space: normal; line-height: 1.15; }
  body.v2 .nav-item svg { width: 22px; height: 22px; transform: none !important; }
  body.v2 .nav-item:hover { background: rgba(255,255,255,0.06); color: #FFFFFF; transform: none; }
  body.v2 .nav-item.active { background: var(--v2-accent); color: #FFFFFF; box-shadow: none; }
  body.v2 .nav-item::after { display: none !important; }
  body.v2 .main { padding: 24px 40px 40px; gap: 20px; }
}

/* ── Shell · barra inferior (celular) ── */
@media (max-width: 900px) {
  body.v2 .sidebar { background: var(--v2-nav) !important; border-top: 0 !important; box-shadow: none !important; }
  body.v2 .nav-item { color: var(--v2-nav-ink) !important; font-size: 12px !important; }
  body.v2 .nav-item.active { background: var(--v2-accent) !important; color: #FFFFFF !important; box-shadow: none !important; }
}

/* ── Header: título chico, acciones con íconos SVG (no emoji) ── */
body.v2 .header { gap: 16px; padding-bottom: 0; }
body.v2 #page-title { font-size: 15px; font-weight: 700; color: var(--text-muted); letter-spacing: 0; }
body.v2 .date-label { display: none; }
body.v2.v2-own-title .header-left { visibility: hidden; }
body.v2 .header-right { gap: 8px; }
body.v2 .badge {
  height: 40px; border-radius: 20px; padding: 0 14px; background: var(--bg-card);
  border: 1px solid var(--border); color: var(--text); box-shadow: none; transform: none;
  font-size: 14px; font-weight: 600;
}
body.v2 .badge:hover { border-color: var(--border-em); transform: none; box-shadow: none; }
body.v2 .clock { font-size: 20px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
body.v2 .theme-toggle, body.v2 .logout-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); font-size: 0; display: grid; place-items: center;
}
body.v2 .theme-toggle::before, body.v2 .logout-btn::before, body.v2 #calendar-badge::before, body.v2 #mytasks-badge::before {
  content: ''; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--v2-ico) center / contain no-repeat; mask: var(--v2-ico) center / contain no-repeat;
}
body.v2 .theme-toggle { --v2-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E"); }
body.v2.light .theme-toggle { --v2-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
body.v2 #profile-btn { --v2-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
body.v2 #logout-btn { --v2-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4M10 17l5-5-5-5M15 12H3'/%3E%3C/svg%3E"); }
body.v2 #calendar-badge, body.v2 #mytasks-badge { font-size: 0; gap: 6px; }
body.v2 #calendar-badge .calendar-count, body.v2 #mytasks-badge .calendar-count, body.v2 #mytasks-badge .badge-label { font-size: 14px; }
body.v2 #calendar-badge { --v2-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M3 9h18M8 2v4M16 2v4'/%3E%3C/svg%3E"); }
body.v2 #mytasks-badge { --v2-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 11l3 3 8-8'/%3E%3Cpath d='M20 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E"); }
body.v2 .calendar-count.has-events { animation: none; }

/* Botones base con el acento nuevo */
body.v2 .btn-primary { background: var(--text); color: var(--bg); border-radius: 12px; box-shadow: none; }
body.v2 .btn-primary:hover { background: var(--text); opacity: .9; transform: none; box-shadow: none; }
body.v2 .btn-secondary { border-radius: 12px; }

/* ══════════════ HOY · por sede ══════════════ */
/* La vista vieja se oculta solo con el diseño nuevo activo */
body.v2 #page-today > .today-layout { display: none !important; }
.v2-today { display: none; }
body.v2 .v2-today { display: flex; flex-direction: column; gap: 22px; padding-bottom: 32px; }

.v2-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 28px; }
.v2-head-text { flex: 1 1 380px; min-width: 0; }
.v2-h1 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.v2-sub { margin: 8px 0 0; font-size: 16px; color: var(--text-muted); }
.v2-new { height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--text); color: var(--bg);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform 120ms ease-out, opacity 120ms ease-out; }
.v2-new:active { transform: scale(0.97); }
.v2-new kbd { font: inherit; font-size: 12px; margin-left: 6px; padding: 1px 6px; border-radius: 5px; border: 1px solid currentColor; opacity: .7; }

/* Recorrido sugerido */
.v2-route { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; }
.v2-route h2 { margin: 0 10px 0 0; font-size: 16px; font-weight: 800; color: var(--text); }
.v2-stop { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 22px;
  border: 0; background: var(--sb); color: var(--si); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform 120ms ease-out; }
.v2-stop:active { transform: scale(0.97); }
.v2-stop .v2-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sm); }
.v2-stop.is-now { outline: 2px solid var(--v2-now); outline-offset: 2px; }
.v2-stop.is-done { background: transparent; box-shadow: inset 0 0 0 1px var(--border-em); color: var(--text-muted); font-weight: 600; }
.v2-arrow { color: var(--text-faint); flex: 0 0 auto; }

/* Bloques de sede */
.v2-sedes { columns: 2; column-gap: 18px; }
.v2-sedes > * { break-inside: avoid; margin-bottom: 18px; }
.v2-sede { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  scroll-margin-top: 16px; transition: border-color 200ms ease-out; }
.v2-sede.is-now { border: 2px solid var(--sm); }
.v2-sede-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 20px 12px; background: var(--sb); }
.v2-sede-head h2 { margin: 0; font-size: 24px; font-weight: 800; color: var(--si); letter-spacing: -0.01em; }
.v2-sede-head p { margin: 0; font-size: 15px; color: var(--si); opacity: .85; }
.v2-sede-empty { background: transparent; border: 1px dashed var(--border-em); padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.v2-sede-empty h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--si); }
.v2-sede-empty p { margin: 0; font-size: 15px; color: var(--text-muted); }

/* Fila de tarea / ticket */
.v2-row { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-top: 1px solid var(--sl);
  min-height: 48px; cursor: pointer; position: relative;
  transition: background-color 140ms ease-out, opacity 180ms ease-out; }
.v2-row:hover { background: var(--bg-card2); }
.v2-check { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--text-faint);
  background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; color: transparent;
  transition: background-color 140ms ease-out, border-color 140ms ease-out, transform 120ms ease-out; }
.v2-check:hover { border-color: var(--text); }
.v2-check:active { transform: scale(0.9); }
.v2-check.is-next { border-color: var(--text); }
.v2-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  background: none; border: 0; padding: 4px 0; margin: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; border-radius: 6px; }
.v2-row-main:focus-visible { outline: 2px solid var(--v2-now); outline-offset: 2px; }
.v2-row-title { font-size: 16px; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.v2-row.is-next .v2-row-title { font-weight: 700; }
.v2-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--text-muted); }
.v2-time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.v2-time.is-late { color: var(--s-jho-ink); }
.v2-tk { font-weight: 700; font-variant-numeric: tabular-nums; }
.v2-tag { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--text); color: var(--bg); }
.v2-av { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; border: 0; padding: 0; cursor: pointer; }
.v2-av.is-empty { background: transparent; border: 1.5px dashed var(--text-faint); color: var(--text-muted); font-size: 16px; font-weight: 500; }
.v2-more { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--text-muted);
  display: grid; place-items: center; cursor: pointer; transition: background-color 140ms ease-out; }
.v2-more:hover { background: var(--bg-card-hover); color: var(--text); }
.v2-weekly { font-size: 12px; font-weight: 700; color: var(--text-muted); }

/* Cerrar: la fila se tacha y se pliega (solo opacidad/transform + alto final) */
.v2-row.is-closing { opacity: .45; }
.v2-row.is-closing .v2-row-title { text-decoration: line-through; }
.v2-row.is-closing .v2-check { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Sede → variables locales */
.v2-s-GEJHO { --sb: var(--s-gejho-bg); --si: var(--s-gejho-ink); --sm: var(--s-gejho-mark); --sl: var(--s-gejho-line); }
.v2-s-JHO   { --sb: var(--s-jho-bg);   --si: var(--s-jho-ink);   --sm: var(--s-jho-mark);   --sl: var(--s-jho-line); }
.v2-s-NJP   { --sb: var(--s-njp-bg);   --si: var(--s-njp-ink);   --sm: var(--s-njp-mark);   --sl: var(--s-njp-line); }
.v2-s-MSL   { --sb: var(--s-msl-bg);   --si: var(--s-msl-ink);   --sm: var(--s-msl-mark);   --sl: var(--s-msl-line); }

/* Fila inferior: calendario + frase (nodos existentes reubicados) */
.v2-extras { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.v2-extras .today-section, .v2-extras .today-quote {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; box-shadow: none; margin: 0;
}
.v2-extras .today-quote-mark { display: none; }

/* Estados */
.v2-skel { height: 160px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border); }
.v2-error { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.v2-error p { margin: 0; flex: 1 1 260px; font-size: 16px; }
.v2-empty-all { background: var(--bg-card); border: 1px dashed var(--border-em); border-radius: 18px; padding: 28px; text-align: center; }
.v2-empty-all h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.v2-empty-all p { margin: 0; color: var(--text-muted); font-size: 16px; }

/* Entrada: los bloques aparecen una sola vez al cargar (no en cada refresh) */
.v2-enter { animation: v2-rise 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes v2-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) { .v2-extras { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .v2-sedes { columns: 1; }
  .v2-sedes > * { margin-bottom: 14px; }
  /* Header del celular: badges solo ícono (sin emoji), contador como globito */
  body.v2 .header-right .badge { width: 44px !important; height: 44px !important; min-width: 44px !important; font-size: 0 !important; position: relative; border-radius: 12px !important; }
  body.v2 #calendar-badge .calendar-count, body.v2 #mytasks-badge .calendar-count {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box;
    border-radius: 9px; background: var(--text); color: var(--bg); font-size: 11px !important; font-weight: 800;
    display: grid; place-items: center; line-height: 1; }
  body.v2 #calendar-badge .calendar-count:empty, body.v2 #mytasks-badge .calendar-count:empty { display: none; }
  body.v2 .theme-toggle { width: 44px; height: 44px; min-width: 44px; }
  body.v2 .clock { font-size: 16px !important; }
  body.v2 .v2-today { gap: 16px; padding-bottom: 96px; }
  .v2-route { padding: 12px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .v2-route h2 { display: none; }
  .v2-arrow { display: none; }
  .v2-stop { flex: 0 0 auto; min-height: 44px; }
  .v2-new { width: 100%; height: 48px; }
  .v2-new kbd { display: none; }
  .v2-row { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-enter { animation: none; }
  .v2-row, .v2-check, .v2-stop, .v2-new { transition: none; }
}

/* Áreas táctiles de 44px sin agrandar el dibujo (pantallas touch) */
@media (pointer: coarse) {
  .v2-check { position: relative; }
  .v2-check::after { content: ''; position: absolute; inset: -10px; }
  .v2-more { width: 44px; height: 44px; flex-basis: 44px; }
  .v2-av { position: relative; }
  .v2-av::after { content: ''; position: absolute; inset: -7px; }
}

/* ══════════════ SEMANA · sede × día ══════════════ */
body.v2 #page-dashboard > .dashboard-search-wrap, body.v2 #page-dashboard > #week-grid { display: none !important; }
.v2-week { display: none; }
body.v2 .v2-week { display: flex; flex-direction: column; gap: 20px; padding-bottom: 32px; }
.v2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.v2-week-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.v2-search { height: 44px; width: 200px; box-sizing: border-box; padding: 0 14px; border: 1px solid var(--border-em); border-radius: 12px;
  background: var(--bg-card); color: var(--text); font: inherit; font-size: 15px; }
.v2-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); }
.v2-seg button { height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 140ms ease-out, color 140ms ease-out; }
.v2-seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.v2-grid-wrap { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; }
.v2-grid { width: 100%; min-width: 980px; border-collapse: collapse; table-layout: fixed; }
.v2-grid thead th { padding: 14px 12px; text-align: left; font-size: 15px; font-weight: 700; color: var(--text);
  border-bottom: 1px solid var(--border); background: var(--bg-card); position: sticky; top: 0; z-index: 1; }
.v2-grid thead th.is-today { background: var(--v2-accent); color: #FFFFFF; }
.v2-grid .v2-gh-sede { width: 128px; color: var(--text-muted); font-weight: 600; font-size: 14px; }
.v2-gh-row { padding: 14px 16px; text-align: left; vertical-align: top; background: var(--sb); border-bottom: 1px solid var(--border); }
.v2-gh-name { display: block; font-size: 20px; font-weight: 800; color: var(--si); }
.v2-gh-count { display: block; font-size: 13px; color: var(--si); opacity: .85; margin-top: 2px; }
.v2-cell { padding: 8px; vertical-align: top; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border);
  min-height: 72px; transition: background-color 120ms ease-out; }
.v2-cell.is-today { background: color-mix(in srgb, var(--v2-accent) 5%, transparent); }
tbody tr:last-child .v2-cell, tbody tr:last-child .v2-gh-row { border-bottom: 0; }
.drop-zone.is-over { background: color-mix(in srgb, var(--v2-now) 14%, transparent) !important; outline: 2px dashed var(--v2-now); outline-offset: -4px; }
.v2-cell-add { display: block; width: 100%; height: 30px; margin-top: 2px; border: 1px dashed transparent; border-radius: 8px; background: transparent;
  color: var(--text-faint); font: inherit; font-size: 16px; cursor: pointer; opacity: 0; transition: opacity 120ms ease-out, border-color 120ms ease-out; }
.v2-cell:hover .v2-cell-add, .v2-cell-add:focus-visible { opacity: 1; border-color: var(--border-em); }
@media (hover: none) { .v2-cell-add { opacity: .6; } }

/* Tarjeta compacta (grilla, celular, cubetas) */
.v2-card { display: flex; align-items: flex-start; gap: 8px; padding: 8px 8px 8px 10px; margin-bottom: 6px; border-radius: 10px;
  background: var(--sb); color: var(--text); cursor: grab; position: relative;
  transition: transform 140ms ease-out, opacity 160ms ease-out; -webkit-user-select: none; user-select: none; }
.v2-card:last-of-type { margin-bottom: 0; }
.v2-card.is-weekly { background: transparent; box-shadow: inset 0 0 0 1px var(--sm); cursor: default; }
.v2-card.is-dragging { opacity: .4; }
.v2-card.dragging { opacity: .4; }
.v2-card.is-closing { opacity: .4; }
.v2-card.is-closing .v2-card-title { text-decoration: line-through; }
.v2-card-check { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--si); background: transparent;
  color: transparent; display: grid; place-items: center; padding: 0; cursor: pointer; position: relative; }
.v2-card-check:hover { background: var(--si); color: var(--sb); }
.v2-card-main { flex: 1; min-width: 0; background: none; border: 0; padding: 0; margin: 0; text-align: left; color: inherit; font: inherit;
  cursor: inherit; display: flex; flex-direction: column; gap: 4px; border-radius: 4px; }
.v2-card-main:focus-visible, .v2-card-check:focus-visible { outline: 2px solid var(--v2-now); outline-offset: 2px; }
.v2-card-title { font-size: 14px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v2-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--si); }
.v2-card-meta .v2-time { color: var(--si); }
.v2-mini-av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; margin-left: auto; }
/* Iniciales de la tarjeta de Semana: botón de asignar en la esquina inferior derecha */
.v2-card > .v2-mini-av { flex: 0 0 22px; align-self: flex-end; margin: 0; border: 0; padding: 0; font-family: inherit; line-height: 1; cursor: pointer; }
.v2-card > .v2-mini-av.is-empty { background: transparent; border: 1.5px dashed var(--text-faint); color: var(--text-muted); font-size: 13px; font-weight: 500; }
.v2-card > .v2-mini-av:hover { filter: brightness(1.08); }
.v2-card > .v2-mini-av:focus-visible { outline: 2px solid var(--v2-now); outline-offset: 2px; }
@media (pointer: coarse) { .v2-card > .v2-mini-av { position: relative; } .v2-card > .v2-mini-av::after { content: ''; position: absolute; inset: -11px; } }
.v2-card .v2-tag { font-size: 10px; padding: 1px 6px; }

/* Mensual y Pendiente */
.v2-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.v2-bucket { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; transition: background-color 120ms ease-out; }
.v2-bucket h2 { margin: 0 0 12px; font-size: 17px; font-weight: 800; color: var(--text); }
.v2-bucket h2 span { color: var(--text-muted); font-weight: 600; }
.v2-bucket-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.v2-bucket-list .v2-card { margin: 0; }
.v2-bucket-empty { margin: 0; color: var(--text-muted); font-size: 15px; }

/* Celular: tira de días + sedes del día elegido */
.v2-daystrip, .v2-mday { display: none; }
@media (max-width: 900px) {
  .v2-week-tools { width: 100%; }
  .v2-search { flex: 1 1 140px; width: auto; }
  .v2-seg { flex: 1 1 100%; }
  .v2-seg button { flex: 1; height: 40px; }
  .v2-grid-wrap { display: none; }
  .v2-daystrip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .v2-daychip { flex: 0 0 auto; min-width: 52px; min-height: 56px; padding: 6px 8px; border-radius: 14px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px; position: relative; cursor: pointer; }
  .v2-daychip[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
  .v2-daychip.is-today:not([aria-selected="true"]) { border: 2px solid var(--v2-now); }
  .v2-dc-a { font-size: 13px; font-weight: 700; }
  .v2-dc-b { font-size: 18px; font-weight: 800; line-height: 1; }
  .v2-dc-n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 4px; box-sizing: border-box;
    background: var(--v2-accent); color: #FFFFFF; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
  .v2-mday { display: flex; flex-direction: column; gap: 12px; }
  .v2-mblock { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  .v2-mblock h2 { margin: 0; padding: 12px 14px 8px; font-size: 20px; font-weight: 800; color: var(--si); background: var(--sb); }
  .v2-mlist { padding: 10px; }
  .v2-mlist .v2-card { padding: 12px; min-height: 44px; }
  .v2-mlist .v2-card-title { font-size: 16px; }
  .v2-bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) { .v2-card-check::after { content: ''; position: absolute; inset: -12px; } }
@media (prefers-reduced-motion: reduce) { .v2-card, .v2-cell, .v2-seg button { transition: none; } }

/* ══════════════ PROYECTOS ══════════════ */
body.v2 .v2-proj .projects-header { display: flex !important; flex-wrap: wrap; align-items: flex-end !important; gap: 14px 28px; margin-bottom: 16px !important; }
body.v2 .v2-proj .projects-header .v2-head-text { flex: 1 1 380px; min-width: 0; }
.v2-proj-filter { margin-bottom: 18px; }
.v2-proj-filter button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
body.v2 #project-group-list { display: block !important; columns: 2; column-gap: 18px; }
body.v2 #project-group-list > * { break-inside: avoid; margin-bottom: 18px; }
body.v2 #project-group-list > .v2-empty-all { column-span: all; }
.v2-proj-row { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 20px; border-top: 1px solid var(--sl);
  transition: background-color 140ms ease-out; }
.v2-proj-row:hover { background: var(--bg-card2); }
.v2-proj-open { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: left;
  background: none; border: 0; padding: 2px 0; margin: 0; color: inherit; font: inherit; cursor: pointer; border-radius: 6px; }
.v2-proj-open:focus-visible { outline: 2px solid var(--v2-now); outline-offset: 3px; }
.v2-proj-name { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.3; overflow-wrap: anywhere; }
.v2-proj-meta { font-size: 14px; color: var(--text-muted); }
.v2-proj-row.is-finished .v2-proj-name { color: var(--text-muted); }
.v2-bar { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--sm) 22%, transparent); overflow: hidden; }
.v2-bar > span { display: block; height: 100%; background: var(--sm); border-radius: 3px; transform-origin: left; animation: v2-grow 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes v2-grow { from { transform: scaleX(0.15); } to { transform: none; } }
.v2-proj-owner { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; max-width: 150px; }
.v2-proj-owner .v2-mini-av { margin: 0; }
.v2-proj-who { font-size: 14px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-icon-btn { flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted);
  display: grid; place-items: center; cursor: pointer; transition: background-color 140ms ease-out, color 140ms ease-out; }
.v2-icon-btn:hover { background: var(--bg-card-hover); color: var(--text); }
.v2-icon-btn.is-danger:hover { color: var(--s-jho-ink); }

/* Tablero del proyecto */
body.v2 .v2-board .projects-header { display: flex !important; flex-wrap: wrap; align-items: center !important; gap: 12px 20px; margin-bottom: 10px !important; }
body.v2 .v2-board .projects-header > div { flex: 1 1 360px; display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 6px !important; min-width: 0; }
.v2-back { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 4px; border: 0; border-radius: 10px; background: transparent;
  color: var(--text-muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.v2-back:hover { background: var(--bg-card); color: var(--text); }
body.v2 #project-board-title { margin: 0; overflow-wrap: anywhere; }
.v2-board-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 18px; font-size: 15px; color: var(--text-muted); }
.v2-chip { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 8px; background: var(--sb); color: var(--si); }
.v2-bar-wide { flex: 1 1 240px; max-width: 420px; height: 8px; border-radius: 4px; }
.v2-bar-wide > span { border-radius: 4px; }

body.v2 .v2-board .kanban-board { gap: 16px; }
body.v2 .v2-board .kanban-col { flex: 1 1 0; min-width: 260px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border); transition: background-color 140ms ease-out, border-color 140ms ease-out; }
body.v2 .v2-board .kanban-col:hover { border-color: var(--border); }
body.v2 .v2-board .kanban-col.drag-over { border-color: var(--v2-now); background: color-mix(in srgb, var(--v2-now) 8%, var(--bg-card)); box-shadow: none; }
body.v2 .v2-board .kanban-col-header { padding: 16px 18px 12px; font-size: 16px; font-weight: 800; color: var(--text); border-bottom: 1px solid var(--border); }
body.v2 .v2-board .kanban-col[data-status="done"] .kanban-col-header { color: var(--text-muted); }
body.v2 .v2-board .kanban-count { font-size: 13px; font-weight: 700; background: var(--bg-card2); color: var(--text-muted); }
body.v2 .v2-board .kanban-items { padding: 12px; gap: 10px; }
body.v2 .v2-board .project-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 12px 8px;
  gap: 6px; box-shadow: none; transition: border-color 140ms ease-out, opacity 160ms ease-out; }
body.v2 .v2-board .project-card:hover { transform: none; box-shadow: none; border-color: var(--border-em); }
body.v2 .v2-board .project-card.dragging { opacity: .4; transform: none; }
body.v2 .v2-board .project-card.project-done { background: transparent; border-color: var(--border); opacity: 1; }
body.v2 .v2-board .project-card.project-done .project-title { color: var(--text-muted); }
body.v2 .v2-board .project-title { font-size: 15px; font-weight: 700; line-height: 1.35; }
body.v2 .v2-board .project-desc { font-size: 14px; line-height: 1.45; }
body.v2 .v2-board .project-meta { margin-top: 2px; }
body.v2 .v2-board .project-btn { width: 36px; height: 36px; min-width: 36px; padding: 0; display: grid; place-items: center; color: var(--text-muted); }
body.v2 .v2-board .project-btn:hover { background: var(--bg-card-hover); color: var(--text); }
body.v2 .v2-board .project-btn.delete:hover { color: var(--s-jho-ink); }
body.v2 .v2-board .comment-badge { background: var(--v2-accent) !important; }

@media (max-width: 900px) {
  body.v2 #project-group-list { columns: 1; }
  body.v2 .v2-proj .projects-header .v2-new, body.v2 .v2-board .projects-header .v2-new { width: 100%; height: 48px; }
  .v2-proj-row { flex-wrap: wrap; padding-left: 16px; }
  .v2-proj-open { flex: 1 1 100%; }
  .v2-proj-owner { flex: 1; max-width: none; }
  body.v2 .v2-board .kanban-board { scroll-snap-type: x mandatory; scroll-padding: 0 4px; overscroll-behavior-x: contain; }
  body.v2 .v2-board .kanban-col { flex: 0 0 86%; min-width: 0; scroll-snap-align: start; }
  body.touch-dragging.v2 .v2-board .kanban-board { scroll-snap-type: none; }
}
@media (pointer: coarse) { .v2-icon-btn { flex-basis: 44px; width: 44px; height: 44px; } body.v2 .v2-board .project-btn { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .v2-bar > span { animation: none; } .v2-proj-row, .v2-icon-btn { transition: none; } }
body.v2 .v2-board .project-meta span { font-size: 13px !important; color: var(--text-muted) !important; }
body.v2 .v2-board .kanban-items:empty::after { content: 'Nada por acá. Arrastrá una tarea a esta columna.'; display: block; padding: 18px 8px; text-align: center;
  font-size: 14px; color: var(--text-faint); border: 1px dashed var(--border-em); border-radius: 12px; }

/* ══════════════ HISTORIAL ══════════════ */
.v2-hist-head { display: none; }
body.v2 .v2-hist-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 40px; margin-bottom: 20px; }
body.v2 .v2-hist-head .v2-head-text { flex: 1 1 380px; }
.v2-hist-sedes { flex: 1 1 360px; max-width: 520px; display: grid; gap: 8px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 18px; }
.v2-hist-sede { display: grid; grid-template-columns: 64px minmax(0, 1fr) 32px; align-items: center; gap: 12px; }
.v2-hist-name { font-size: 14px; font-weight: 800; color: var(--si); }
.v2-hist-sede .v2-bar { height: 8px; border-radius: 4px; }
.v2-hist-n { font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }

body.v2 .v2-history .history-toolbar { gap: 10px; margin-bottom: 18px; }
body.v2 .v2-history .history-tabs { padding: 3px; gap: 2px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); }
body.v2 .v2-history .htab { height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted);
  font-size: 14px; font-weight: 600; box-shadow: none; display: inline-flex; align-items: center; gap: 6px;
  transition: background-color 140ms ease-out, color 140ms ease-out; }
body.v2 .v2-history .htab:hover { color: var(--text); background: var(--bg-card2); }
body.v2 .v2-history .htab.active { background: var(--text); color: var(--bg); }
body.v2 .v2-history .htab.active .hcount { background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
body.v2 .v2-history .hcount { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 9px; background: var(--bg-card2); color: var(--text-muted); }
body.v2 .v2-history .history-search { height: 42px; border-radius: 12px; border: 1px solid var(--border-em); background: var(--bg-card); font-size: 15px; padding: 0 14px; flex: 1 1 220px; max-width: 360px; }
body.v2 .v2-history .fsec { height: 38px; border-radius: 19px; font-size: 13px; font-weight: 700; padding: 0 12px; background: var(--bg-card); }
body.v2 .v2-history .fsec.on { background: var(--text); color: var(--bg) !important; border-color: var(--text); }
body.v2 #history-export { height: 42px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }

body.v2 .v2-history .history-timeline { max-width: 960px; }
body.v2 .v2-history .dgroup { margin: 18px 0 10px; gap: 12px; }
body.v2 .v2-history .dlabel { font-size: 15px; font-weight: 800; padding: 0; border: 0; background: none; color: var(--text); text-transform: none; letter-spacing: 0; }
body.v2 .v2-history .dlabel::first-letter { text-transform: uppercase; }
body.v2 .v2-history .dlabel.today { color: var(--v2-accent-ink); background: none; }
body.v2 .v2-history .dcount { font-size: 13px; color: var(--text-muted); }
body.v2 .v2-history .hrow { grid-template-columns: 52px 14px minmax(0, 1fr); margin-bottom: 8px; }
body.v2 .v2-history .htime { font-size: 14px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
body.v2 .v2-history .hcard { border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); padding: 10px 14px; gap: 10px; box-shadow: none; }
body.v2 .v2-history .hcard:hover { transform: none; box-shadow: none; border-color: var(--border-em); }
body.v2 .v2-history .htitle { font-size: 15px; font-weight: 600; }
body.v2 .v2-history .hid { font-size: 13px; }
body.v2 .v2-history .hdur { font-size: 13px; color: var(--text-muted); }
body.v2 .v2-history .hchk { background: var(--v2-accent); }
body.v2 .v2-history .hcard-av { width: 26px; height: 26px; font-size: 10px; }
body.v2 .v2-history .task-sector { font-size: 12px !important; }

body.v2 .v2-history .qcard { border-radius: 16px; border: 1px solid var(--border); background: var(--bg-card); box-shadow: none; }
body.v2 .v2-history .qtext { font-size: 16px; line-height: 1.55; }
body.v2 .v2-history .qfoot { font-size: 13px; }
body.v2 .v2-history .qheart { font-size: 13px; }
body.v2 .v2-history .qcard.q-typed .qheart { text-shadow: none; }

@media (max-width: 900px) {
  body.v2 .v2-hist-head { gap: 12px; margin-bottom: 14px; }
  .v2-hist-sedes { max-width: none; }
  body.v2 .v2-history .history-tabs { width: 100%; overflow-x: auto; }
  body.v2 .v2-history .htab { flex: 0 0 auto; }
  body.v2 .v2-history .history-search { max-width: none; }
  body.v2 .v2-history .hrow { grid-template-columns: 44px 12px minmax(0, 1fr); }
}
.v2-hist-sedes h2 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--text-muted); }
#v2-hist-sedes { display: grid; gap: 8px; }
/* Estadísticas: tareas/tickets con la paleta categórica validada (dataviz, slots 1-2; CVD ΔE 24.7 claro / 26.8 oscuro) */
body.v2 #history-stats { --green: #2a78d6; --blue: #eb6834; }
body.v2:not(.light) #history-stats { --green: #3987e5; --blue: #d95926; }
body.v2 #history-stats .hst-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
body.v2 #history-stats .hst-spark polyline { stroke: var(--text-muted); }
body.v2 #history-stats .hst-spark circle { fill: var(--text-muted); }

/* ══════════════ IMPRESORAS ══════════════ */
.v2-pr-head { display: none; }
body.v2 .v2-pr-head { display: flex; margin-bottom: 18px; }
body.v2 .v2-printers .printers-toolbar { gap: 10px; margin-bottom: 16px; }
body.v2 .v2-printers .printers-tabs { padding: 3px; gap: 2px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); }
body.v2 .v2-printers .ptab { height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted);
  font-size: 14px; font-weight: 600; box-shadow: none; display: inline-flex; align-items: center; gap: 6px; transform: none;
  transition: background-color 140ms ease-out, color 140ms ease-out; }
body.v2 .v2-printers .ptab:hover { color: var(--text); background: var(--bg-card2); }
body.v2 .v2-printers .ptab.active { background: var(--text); color: var(--bg); }
body.v2 .v2-printers .ptab .hcount { font-size: 12px; font-weight: 700; background: var(--bg-card2); color: var(--text-muted); }
body.v2 .v2-printers .ptab.active .hcount { background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
body.v2 .v2-printers .ptab .hcount.alert { background: var(--s-jho-mark); color: #FFFFFF; }
body.v2 .v2-printers #printers-search { height: 42px; border-radius: 12px; font-size: 15px; max-width: 320px; }

/* Indicadores: franja compacta, número + rótulo alineados a la izquierda */
body.v2 .v2-printers .pr-kpis { gap: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
body.v2 .v2-printers .pr-kpi { flex: 1; border: 0; border-radius: 0; background: transparent; padding: 14px 20px; text-align: left; box-shadow: none; transform: none; }
body.v2 .v2-printers .pr-kpi + .pr-kpi { border-left: 1px solid var(--border); }
body.v2 .v2-printers .pr-kpi:hover { transform: none; }
body.v2 .v2-printers .pr-kpi-value { font-family: inherit; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
body.v2 .v2-printers .pr-kpi-label { font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 600; margin-top: 2px; }

/* Colores de sede del módulo con los tokens nuevos (Admin y Jardín conservan su tono propio) */
body.v2 .v2-printers .sede-jho { --sede-color: var(--s-jho-ink); --sede-tint: var(--s-jho-bg); }
body.v2 .v2-printers .sede-njp { --sede-color: var(--s-njp-ink); --sede-tint: var(--s-njp-bg); }
body.v2 .v2-printers .sede-msl { --sede-color: var(--s-msl-ink); --sede-tint: var(--s-msl-bg); }
body.v2 .v2-printers .sede-admin { --sede-color: var(--s-gejho-ink); --sede-tint: var(--s-gejho-bg); }

/* Parque: tarjetas blancas; la sede la dice el encabezado del grupo */
body.v2 .v2-printers .pr-sede-group { margin-bottom: 22px; }
body.v2 .v2-printers .pr-sede-group .dgroup { margin: 6px 0 12px; gap: 10px; }
body.v2 .v2-printers .pr-sede-group.sede-c .dlabel { font-size: 20px; font-weight: 800; padding: 6px 14px; border-radius: 10px; border: 0;
  background: var(--sede-tint); color: var(--sede-color); letter-spacing: 0; text-transform: none; }
body.v2 .v2-printers .pr-sede-group.sede-c .dlabel::before { display: none; }
body.v2 .v2-printers .pr-sede-group .dcount { font-size: 14px; color: var(--text-muted); }
body.v2 .v2-printers .printer-card, body.v2 .v2-printers .printer-card.sede-c { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: none; transform: none; }
body.v2 .v2-printers .printer-card:hover { transform: none; box-shadow: none; border-color: var(--border-em); }
body.v2 .v2-printers .printer-card-modelo { font-family: inherit; font-size: 16px; }
body.v2 .v2-printers .printer-card-sector { font-size: 13px; }
body.v2 .v2-printers .printer-card-obs { font-size: 13px; }
body.v2 .v2-printers .btn-tertiary { border-radius: 10px; font-size: 13px; min-height: 34px; }
body.v2 .v2-printers table, body.v2 .v2-printers .pr-table, body.v2 .v2-printers .pgrid { width: 100%; max-width: none; }
@media (max-width: 900px) {
  body.v2 .v2-printers .printers-tabs { width: 100%; overflow-x: auto; }
  body.v2 .v2-printers .ptab { flex: 0 0 auto; }
  body.v2 .v2-printers #printers-search { max-width: none; }
  body.v2 .v2-printers .pr-kpis { flex-wrap: wrap; }
  body.v2 .v2-printers .pr-kpi { flex: 1 1 33%; padding: 12px 14px; }
}
body.v2 .v2-printers .pr-chipset button, body.v2 .v2-printers .pr-chipset .fsec { min-height: 36px; padding: 0 12px; border-radius: 18px; font-size: 13px; }
body.v2 .v2-printers .pr-chipset button[aria-pressed="true"], body.v2 .v2-printers .pr-chipset .on { box-shadow: inset 0 0 0 2px currentColor; }
body.v2 .v2-printers .pr-sub, body.v2 .v2-printers .pgrid small, body.v2 .v2-printers .pr-ins-sub { font-size: 12px; }

/* ══════════════ TICKETS · bandeja lateral de Zammad ══════════════ */
body.v2 .v2-inbox { justify-content: flex-end; align-items: stretch; padding: 0; background: rgba(10, 14, 20, 0.45); }
body.v2 .v2-inbox > .modal { width: min(560px, 100vw); max-width: none; height: 100%; max-height: none !important; margin: 0; border-radius: 0;
  border: 0; border-left: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: v2-drawer 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes v2-drawer { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
body.v2 .v2-inbox .modal-header { padding: 20px 22px 12px; border-bottom: 0; background: var(--bg); }
.v2-inbox-title { font-size: 22px; font-weight: 800; color: var(--text); }
.v2-inbox-title span { color: var(--text-muted); font-weight: 600; }
body.v2 .v2-inbox .modal-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 22px 14px; border-bottom: 1px solid var(--border); background: var(--bg); }
body.v2 .v2-inbox #ticket-search { flex: 1 1 200px; height: 42px; border-radius: 12px; border: 1px solid var(--border-em); background: var(--bg-card); font-size: 15px; padding: 0 14px; }
body.v2 .v2-inbox .ticket-list { flex: 1; overflow-y: auto; padding: 14px 22px 24px; display: flex; flex-direction: column; gap: 10px; max-height: none; }
.v2-inbox-row { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.v2-inbox-row.is-pinned { background: transparent; }
.v2-inbox-main { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; background: none; border: 0; padding: 0; margin: 0;
  color: inherit; font: inherit; cursor: pointer; border-radius: 6px; }
.v2-inbox-main:focus-visible { outline: 2px solid var(--v2-now); outline-offset: 3px; }
.v2-inbox-ttl { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.v2-inbox-row.is-pinned .v2-inbox-ttl { color: var(--text-muted); }
.v2-inbox-prev { font-size: 14px; line-height: 1.45; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-inbox-pin { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v2-inbox-pin select { height: 40px; border-radius: 10px; border: 1px solid var(--border-em); background: var(--bg-card); color: var(--text); font: inherit; font-size: 14px; padding: 0 10px; }
.v2-inbox-btn { height: 40px; padding: 0 16px; font-size: 14px; margin-left: auto; }
.v2-inbox-pinned { font-size: 14px; font-weight: 700; color: var(--v2-accent-ink); }
@media (max-width: 900px) {
  body.v2 .v2-inbox > .modal { width: 100vw; border-left: 0; }
  .v2-inbox-pin select { flex: 1 1 120px; height: 44px; }
  .v2-inbox-btn { flex: 1 1 100%; height: 46px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { body.v2 .v2-inbox > .modal { animation: none; } }
