:root {
  --cv2-bg: #f0f2f5;
  --cv2-surface: #ffffff;
  --cv2-surface-2: #f8f9fc;
  --cv2-border: rgba(33, 40, 50, 0.1);
  --cv2-text: #212832;
  --cv2-muted: #69707a;
  --cv2-accent: #6900c7;
  --cv2-accent-hover: #5a00a8;
  --cv2-success: #00ac69;
  --cv2-warning: #f4a100;
  --cv2-danger: #e649a0;
  --cv2-play: #6900c7;
  --cv2-maint: #f4a100;
  --cv2-maq-active: #00ac69;
  --cv2-maq-maint: #dc3545;
  --cv2-maq-inactive: #6c757d;
  --cv2-salon-wait: #f4a100;
  --cv2-salon-play: #00ac69;
  --cv2-card-1: #6900c7;
  --cv2-card-2: #f4a100;
  --cv2-card-3: #e649a0;
  --cv2-card-4: #00ac69;
  --cv2-sidebar-bg: #ffffff;
  --cv2-radius: 14px;
  --cv2-shadow: 0 0.15rem 1.75rem rgba(33, 40, 50, 0.08);
  --cv2-sidebar-w: 260px;
  --cv2-sidebar-collapsed-w: 72px;
  --cv2-topbar-h: 64px;
  --cv2-content-gap: 1.25rem;
  --cv2-sidebar-head-bg: #ffffff;
  --cv2-sidebar-head-text: #212832;
  --cv2-topbar-bg: #ffffff;
  --cv2-topbar-text: #212832;
  --cv2-action-btn: #6900c7;
  --cv2-font: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
  max-width: 100vw;
  font-family: var(--cv2-font);
  background: var(--cv2-bg);
  color: var(--cv2-text);
  -webkit-font-smoothing: antialiased;
}

.cv2-shell {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: var(--cv2-sidebar-w) minmax(0, 1fr);
  grid-template-rows: var(--cv2-topbar-h) 1fr;
  grid-template-areas:
    "side top"
    "side main";
  column-gap: var(--cv2-content-gap);
  row-gap: var(--cv2-content-gap);
  padding: 0;
  transition: grid-template-columns 0.2s ease;
  align-items: stretch;
}

.cv2-shell:not(.cv2-shell-ready) {
  transition: none;
}

.cv2-shell.is-sidebar-collapsed {
  grid-template-columns: var(--cv2-sidebar-collapsed-w) minmax(0, 1fr);
}

.cv2-topbar {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  min-height: var(--cv2-topbar-h);
  width: 100%;
  background: var(--cv2-topbar-bg, var(--cv2-surface));
  color: var(--cv2-topbar-text, var(--cv2-text));
  border-bottom: 1px solid var(--cv2-border);
  position: sticky;
  top: 0;
  z-index: 110;
  box-sizing: border-box;
}

.cv2-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--cv2-topbar-text, var(--cv2-text)) 6%, var(--cv2-topbar-bg, var(--cv2-surface)));
  border: 1px solid color-mix(in srgb, var(--cv2-topbar-text, var(--cv2-text)) 18%, var(--cv2-topbar-bg, var(--cv2-surface)));
  color: var(--cv2-topbar-text, var(--cv2-text));
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.cv2-nav-toggle:hover {
  background: color-mix(in srgb, var(--cv2-topbar-text, var(--cv2-text)) 12%, var(--cv2-topbar-bg, var(--cv2-surface-2)));
  border-color: color-mix(in srgb, var(--cv2-accent) 35%, var(--cv2-topbar-bg, var(--cv2-border)));
}

.cv2-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.cv2-brand > div {
  min-width: 0;
  overflow: hidden;
}

.cv2-brand strong,
.cv2-brand-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}

.cv2-brand strong { display: block; font-size: 0.95rem; }

.cv2-brand-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--cv2-muted);
}

.cv2-topbar .cv2-brand-sub,
.cv2-topbar .cv2-topbar-user small {
  color: color-mix(in srgb, var(--cv2-topbar-text, var(--cv2-text)) 62%, transparent);
}

.cv2-brand-icon {
  font-size: 1.5rem;
  color: var(--cv2-accent);
}

/* Logo circular del casino (login, menú, tickets, avatares) */
.cv2-negocio-logo,
.cv2-negocio-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--cv2-border);
  background: var(--cv2-surface-2);
}

.cv2-negocio-logo--xs { width: 38px; height: 38px; }
.cv2-negocio-logo--sm { width: 50px; height: 50px; }
.cv2-negocio-logo--md { width: 72px; height: 72px; }
.cv2-negocio-logo--lg { width: 88px; height: 88px; }
.cv2-negocio-logo--xl { width: 96px; height: 96px; }

.cv2-negocio-logo-fallback {
  color: var(--cv2-accent);
  background: color-mix(in srgb, var(--cv2-accent) 12%, var(--cv2-surface-2));
}

.cv2-negocio-logo--xs.cv2-negocio-logo-fallback i { font-size: 1rem; }
.cv2-negocio-logo--sm.cv2-negocio-logo-fallback i { font-size: 1.15rem; }
.cv2-negocio-logo--md.cv2-negocio-logo-fallback i { font-size: 1.75rem; }
.cv2-negocio-logo--lg.cv2-negocio-logo-fallback i,
.cv2-negocio-logo--xl.cv2-negocio-logo-fallback i { font-size: 2rem; }

.cv2-sidebar-head .cv2-negocio-logo,
.cv2-sidebar-head .cv2-negocio-logo-fallback {
  border-color: color-mix(in srgb, var(--cv2-sidebar-head-text) 18%, transparent);
  background: color-mix(in srgb, var(--cv2-sidebar-head-text) 6%, var(--cv2-sidebar-bg));
  color: var(--cv2-accent);
  box-shadow: none;
}

.cv2-brand-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--cv2-surface-2);
  border: 2px solid var(--cv2-border);
  flex-shrink: 0;
}

.cv2-empresa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.cv2-empresa-form .cv2-field:last-of-type {
  margin-bottom: 1rem;
}
.cv2-empresa-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px dashed var(--cv2-border);
  border-radius: var(--cv2-radius);
  background: var(--cv2-surface-2);
}
.cv2-empresa-logo-img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}
.cv2-empresa-logo-placeholder {
  text-align: center;
  color: var(--cv2-muted);
}
.cv2-empresa-logo-placeholder i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cv2-accent);
  opacity: 0.5;
}
.cv2-empresa-logo-preview--sidebar {
  background: var(--cv2-surface-2);
  border-color: var(--cv2-border);
}
.cv2-empresa-logo-img--round,
.cv2-empresa-logo-placeholder--round,
.cv2-empresa-logo-preview .cv2-negocio-logo,
.cv2-empresa-logo-preview .cv2-negocio-logo-fallback {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cv2-border);
}
.cv2-empresa-logo-placeholder--round {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cv2-muted);
  background: var(--cv2-surface);
}

.cv2-ticket-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
}
.cv2-ticket-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  cursor: pointer;
}
.cv2-ticket-flag input { accent-color: var(--cv2-accent); }
.cv2-ticket-flag span i { color: var(--cv2-muted); margin-right: 0.15rem; }

.cv2-ticket-preview {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
.cv2-ticket-preview-inner {
  width: 220px;
  padding: 1rem 0.85rem;
  background: #fff;
  border: 1px dashed var(--cv2-border);
  border-radius: 8px;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #222;
  box-shadow: var(--cv2-shadow);
}
.cv2-ticket-preview-inner strong {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}
.cv2-ticket-preview-inner small {
  display: block;
  color: #555;
}
.cv2-ticket-preview-inner hr {
  border: none;
  border-top: 1px dashed #ccc;
  margin: 0.5rem 0;
}
.cv2-ticket-preview-inner em {
  display: block;
  font-style: normal;
  font-weight: 700;
  margin: 0.25rem 0;
}

.cv2-priv-modulo td {
  background: var(--cv2-surface-2);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cv2-muted);
}
.cv2-priv-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}
.cv2-priv-label input { margin-top: 0.2rem; flex-shrink: 0; }
.cv2-priv-clave {
  margin: 0.25rem 0 0 1.5rem;
  font-size: 0.75rem;
  color: var(--cv2-muted);
}
.cv2-priv-clave code {
  background: var(--cv2-surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.cv2-brand--text {
  flex: 0 1 auto;
}

.cv2-brand--text strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.cv2-brand--text .cv2-brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.cv2-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cv2-topbar-user {
  text-align: right;
  line-height: 1.2;
  padding-right: 0.35rem;
  border-right: 1px solid var(--cv2-border);
  margin-right: 0.15rem;
  min-width: 0;
}

.cv2-topbar-user span {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.cv2-topbar-user small {
  color: var(--cv2-muted);
  font-size: 0.7rem;
}

.cv2-topbar-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cv2-topbar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--cv2-border);
  background: var(--cv2-surface-2);
  color: var(--cv2-topbar-text, var(--cv2-text));
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.cv2-topbar-icon-btn i {
  font-size: 1.05rem;
  line-height: 1;
}

.cv2-topbar-icon-btn:hover {
  border-color: color-mix(in srgb, var(--cv2-accent) 40%, var(--cv2-border));
  background: color-mix(in srgb, var(--cv2-accent) 10%, var(--cv2-surface-2));
  color: var(--cv2-accent);
}

.cv2-topbar-icon-btn:active {
  transform: scale(0.96);
}

.cv2-topbar-icon-btn--theme {
  background: color-mix(in srgb, var(--cv2-topbar-text, var(--cv2-text)) 11%, var(--cv2-topbar-bg, var(--cv2-surface-2)));
}

.cv2-topbar-icon-btn--theme:hover {
  background: color-mix(in srgb, var(--cv2-accent) 22%, var(--cv2-topbar-bg, var(--cv2-surface-2)));
  border-color: color-mix(in srgb, var(--cv2-accent) 40%, var(--cv2-topbar-bg, var(--cv2-surface)));
  color: color-mix(in srgb, var(--cv2-accent) 75%, var(--cv2-topbar-text, #fff));
}

.cv2-topbar-icon-btn--logout:hover {
  border-color: color-mix(in srgb, var(--cv2-danger, #ef4444) 45%, var(--cv2-border));
  background: color-mix(in srgb, var(--cv2-danger, #ef4444) 12%, var(--cv2-surface-2));
  color: var(--cv2-danger, #ef4444);
}

.cv2-topbar-notif-wrap {
  position: relative;
}

.cv2-topbar-icon-btn--notif {
  position: relative;
}

.cv2-notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--cv2-topbar-bg, var(--cv2-surface));
}

.cv2-notif-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(360px, calc(100vw - 1.5rem));
  max-height: min(420px, calc(100vh - var(--cv2-topbar-h, 64px) - 1.5rem));
  flex-direction: column;
  background: #ffffff;
  color: var(--cv2-text);
  border: 1px solid rgba(33, 40, 50, 0.12);
  border-radius: 14px;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(33, 40, 50, 0.04);
  z-index: 1200;
  overflow: hidden;
}

.cv2-notif-panel:not([hidden]) {
  display: flex;
}

.cv2-notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(33, 40, 50, 0.08);
  background: #f8f9fc;
  font-size: 0.88rem;
  color: var(--cv2-text);
}

.cv2-notif-panel-head strong {
  color: var(--cv2-text);
  font-weight: 700;
}

.cv2-notif-panel-close {
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--cv2-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.cv2-notif-panel-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--cv2-text);
}

.cv2-notif-list {
  overflow: auto;
  padding: 0.35rem 0;
}

.cv2-notif-empty {
  margin: 0;
  padding: 1.25rem 0.85rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--cv2-muted);
}

.cv2-notif-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(33, 40, 50, 0.06);
}

.cv2-notif-item:last-child {
  border-bottom: none;
}

.cv2-notif-item.is-unread {
  background: rgba(47, 111, 173, 0.07);
}

.cv2-notif-item-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #2f6fad;
  background: rgba(47, 111, 173, 0.1);
  border: 1px solid rgba(47, 111, 173, 0.12);
}

.cv2-notif-item-body {
  min-width: 0;
  flex: 1;
}

.cv2-notif-item-body strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
  color: var(--cv2-text);
}

.cv2-notif-item-body p {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  color: var(--cv2-text);
  line-height: 1.35;
}

.cv2-notif-item-body time {
  font-size: 0.68rem;
  color: var(--cv2-muted);
}

.cv2-notif-item-action {
  margin-top: 0.45rem;
}

.cv2-notif-item--devolucion_solicitada .cv2-notif-item-icon {
  color: #d97706;
  background: rgba(212, 160, 23, 0.16);
}

.cv2-notif-item--maquina_activada .cv2-notif-item-icon {
  color: #007aff;
  background: rgba(0, 122, 255, 0.12);
  border-color: rgba(0, 122, 255, 0.18);
}

.cv2-notif-item--pago_jugador .cv2-notif-item-icon {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.18);
}

/* Panel claro en tema mixto: cae sobre el contenido blanco */
[data-cv2-theme="mixto"] .cv2-notif-panel {
  background: #ffffff;
  color: #212832;
  border-color: rgba(33, 40, 50, 0.12);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(33, 40, 50, 0.05);
}

[data-cv2-theme="mixto"] .cv2-notif-panel-head {
  background: #f8f9fc;
  border-bottom-color: rgba(33, 40, 50, 0.08);
  color: #212832;
}

[data-cv2-theme="mixto"] .cv2-notif-panel-head strong,
[data-cv2-theme="mixto"] .cv2-notif-item-body strong {
  color: #212832;
}

[data-cv2-theme="mixto"] .cv2-notif-item-body p {
  color: #3d4654;
}

[data-cv2-theme="mixto"] .cv2-notif-panel-close {
  color: #69707a;
}

[data-cv2-theme="mixto"] .cv2-notif-panel-close:hover {
  background: rgba(33, 40, 50, 0.06);
  color: #212832;
}

[data-cv2-theme="mixto"] .cv2-notif-item.is-unread {
  background: rgba(47, 111, 173, 0.08);
}

[data-cv2-theme="mixto"] .cv2-notif-empty {
  color: #69707a;
}

.cv2-user {
  text-align: right;
  line-height: 1.2;
}

.cv2-sidebar {
  grid-area: side;
  grid-row: 1 / -1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  background: var(--cv2-sidebar-bg, #f8f9fa);
  border: none;
  border-right: 1px solid var(--cv2-border);
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.cv2-sidebar-head {
  flex-shrink: 0;
  padding: 1.15rem 0.85rem 0.9rem;
  background: var(--cv2-sidebar-bg, var(--cv2-sidebar-head-bg));
  color: var(--cv2-sidebar-head-text);
  text-align: center;
  border-bottom: none;
}

.cv2-sidebar-brand {
  display: block;
  color: inherit;
  text-decoration: none;
}
.cv2-sidebar-brand-link:hover {
  color: inherit;
  opacity: 0.92;
}

.cv2-sidebar-casino {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--cv2-sidebar-head-muted, var(--cv2-muted));
}

.cv2-sidebar-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.cv2-sidebar-logo,
.cv2-sidebar-logo-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cv2-border);
  background: var(--cv2-surface-2);
  box-shadow: 0 2px 8px rgba(33, 40, 50, 0.06);
}

.cv2-sidebar-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--cv2-accent);
}

.cv2-sidebar-user strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cv2-text);
}
.cv2-sidebar-user small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--cv2-muted);
  text-transform: lowercase;
}

.cv2-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-height: 0;
  padding: 0.35rem 0.65rem 1rem;
  background: var(--cv2-sidebar-bg, #f8f9fa);
  border-top: 1px solid color-mix(in srgb, var(--cv2-sidebar-head-text) 8%, transparent);
}

/* Scroll sutil solo cuando hay submenús abiertos */
.cv2-shell:not(.is-sidebar-collapsed) .cv2-sidebar:has(.cv2-nav-group.is-open) {
  overflow: hidden;
}

.cv2-shell:not(.is-sidebar-collapsed) .cv2-sidebar:has(.cv2-nav-group.is-open) .cv2-nav,
.cv2-sidebar.is-open:has(.cv2-nav-group.is-open) .cv2-nav,
.cv2-shell.is-sidebar-collapsed .cv2-nav-submenu-inner {
  scrollbar-width: thin;
  scrollbar-color: rgba(33, 40, 50, 0.16) transparent;
}

.cv2-shell:not(.is-sidebar-collapsed) .cv2-sidebar:has(.cv2-nav-group.is-open) .cv2-nav::-webkit-scrollbar,
.cv2-sidebar.is-open:has(.cv2-nav-group.is-open) .cv2-nav::-webkit-scrollbar,
.cv2-shell.is-sidebar-collapsed .cv2-nav-submenu-inner::-webkit-scrollbar {
  width: 4px;
}

.cv2-shell:not(.is-sidebar-collapsed) .cv2-sidebar:has(.cv2-nav-group.is-open) .cv2-nav::-webkit-scrollbar-track,
.cv2-sidebar.is-open:has(.cv2-nav-group.is-open) .cv2-nav::-webkit-scrollbar-track,
.cv2-shell.is-sidebar-collapsed .cv2-nav-submenu-inner::-webkit-scrollbar-track {
  background: transparent;
}

.cv2-shell:not(.is-sidebar-collapsed) .cv2-sidebar:has(.cv2-nav-group.is-open) .cv2-nav::-webkit-scrollbar-thumb,
.cv2-sidebar.is-open:has(.cv2-nav-group.is-open) .cv2-nav::-webkit-scrollbar-thumb,
.cv2-shell.is-sidebar-collapsed .cv2-nav-submenu-inner::-webkit-scrollbar-thumb {
  background: rgba(33, 40, 50, 0.12);
  border-radius: 999px;
}

.cv2-shell:not(.is-sidebar-collapsed) .cv2-sidebar:has(.cv2-nav-group.is-open) .cv2-nav::-webkit-scrollbar-thumb:hover,
.cv2-sidebar.is-open:has(.cv2-nav-group.is-open) .cv2-nav::-webkit-scrollbar-thumb:hover,
.cv2-shell.is-sidebar-collapsed .cv2-nav-submenu-inner::-webkit-scrollbar-thumb:hover {
  background: rgba(33, 40, 50, 0.24);
}

.cv2-shell:not(.is-sidebar-collapsed) .cv2-sidebar:has(.cv2-nav-group.is-open) .cv2-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.15rem;
}

.cv2-shell.is-sidebar-collapsed .cv2-sidebar {
  overflow: visible;
}

.cv2-shell.is-sidebar-collapsed .cv2-sidebar-casino,
.cv2-shell.is-sidebar-collapsed .cv2-sidebar-user {
  display: none;
}

.cv2-shell.is-sidebar-collapsed .cv2-sidebar-head {
  padding: 0.75rem 0.35rem 0.65rem;
}

.cv2-shell.is-sidebar-collapsed .cv2-negocio-logo,
.cv2-shell.is-sidebar-collapsed .cv2-negocio-logo-fallback {
  width: 44px;
  height: 44px;
}

.cv2-shell.is-sidebar-collapsed .cv2-negocio-logo-fallback i {
  font-size: 1.1rem;
}

.cv2-shell.is-sidebar-collapsed .cv2-sidebar-logo-wrap {
  margin-bottom: 0;
}

.cv2-shell.is-sidebar-collapsed .cv2-nav {
  overflow: visible;
}

.cv2-shell.is-sidebar-collapsed .cv2-nav-link span,
.cv2-shell.is-sidebar-collapsed .cv2-nav-group-toggle span,
.cv2-shell.is-sidebar-collapsed .cv2-nav-chevron {
  display: none;
}

.cv2-shell.is-sidebar-collapsed .cv2-nav-link,
.cv2-shell.is-sidebar-collapsed .cv2-nav-group-toggle {
  justify-content: center;
  padding: 0.75rem;
}

.cv2-shell.is-sidebar-collapsed .cv2-nav-link i,
.cv2-shell.is-sidebar-collapsed .cv2-nav-group-toggle > i:first-child {
  width: auto;
  font-size: 1.1rem;
}

.cv2-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  color: var(--cv2-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.cv2-nav-link:hover {
  background: color-mix(in srgb, var(--cv2-text) 6%, transparent);
  color: var(--cv2-text);
}
.cv2-nav-link.is-active {
  background: color-mix(in srgb, var(--cv2-accent) 14%, transparent);
  color: var(--cv2-accent);
  font-weight: 600;
}
.cv2-nav-link i { width: 1.25rem; text-align: center; flex-shrink: 0; }

.cv2-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cv2-nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--cv2-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cv2-nav-group-toggle:hover,
.cv2-nav-group.has-active > .cv2-nav-group-toggle {
  background: color-mix(in srgb, var(--cv2-text) 6%, transparent);
  color: var(--cv2-text);
}
.cv2-nav-group.has-active > .cv2-nav-group-toggle {
  color: var(--cv2-accent);
}
.cv2-nav-group-toggle > i:first-child {
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}
.cv2-nav-chevron {
  margin-left: auto;
  font-size: 0.65rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
}
.cv2-nav-group.is-open .cv2-nav-chevron {
  transform: rotate(180deg);
}

.cv2-nav-submenu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}
.cv2-nav-group.is-open .cv2-nav-submenu {
  grid-template-rows: 1fr;
}
.cv2-nav-submenu-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0.15rem 0 0.35rem 1.85rem;
  padding-left: 0.65rem;
  border-left: 2px solid var(--cv2-border);
}

.cv2-nav-sublink {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--cv2-muted);
  text-decoration: none;
  font-size: 0.84rem;
  transition: background 0.15s, color 0.15s;
}
.cv2-nav-sublink:hover {
  background: var(--cv2-surface-2);
  color: var(--cv2-text);
}
.cv2-nav-sublink.is-active {
  background: rgba(105, 0, 199, 0.1);
  color: var(--cv2-accent);
  font-weight: 600;
}
.cv2-nav-sublink i {
  width: 1rem;
  text-align: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  opacity: 0.85;
}

/* Flyout al colapsar sidebar */
.cv2-shell.is-sidebar-collapsed .cv2-nav-group {
  position: relative;
}
.cv2-shell.is-sidebar-collapsed .cv2-nav-submenu {
  position: absolute;
  left: calc(100% + 0.5rem);
  top: 0;
  display: none;
  grid-template-rows: 1fr;
  min-width: 240px;
  z-index: 120;
  pointer-events: none;
  transition: none;
}

.cv2-shell.is-sidebar-collapsed .cv2-nav-group.is-open:not(.is-flyout-open) .cv2-nav-submenu {
  display: none;
  grid-template-rows: 0fr;
}
.cv2-shell.is-sidebar-collapsed .cv2-nav-submenu-inner {
  margin: 0;
  padding: 0.35rem;
  border-left: none;
  background: var(--cv2-surface);
  color: var(--cv2-text);
  border: 1px solid var(--cv2-border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(33, 40, 50, 0.14), 0 2px 8px rgba(33, 40, 50, 0.08);
  pointer-events: auto;
  max-height: calc(100vh - var(--cv2-topbar-h) - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
}
.cv2-shell.is-sidebar-collapsed .cv2-nav-submenu-inner::before {
  content: attr(data-flyout-title);
  display: block;
  padding: 0.55rem 0.75rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--cv2-muted);
  border-bottom: 1px solid var(--cv2-border);
  margin-bottom: 0.2rem;
}
.cv2-shell.is-sidebar-collapsed .cv2-nav-group.is-flyout-open .cv2-nav-submenu {
  display: block;
}
.cv2-shell.is-sidebar-collapsed .cv2-nav-sublink {
  padding: 0.62rem 0.85rem;
  white-space: nowrap;
  color: var(--cv2-text);
  font-size: 0.875rem;
  gap: 0.65rem;
}
.cv2-shell.is-sidebar-collapsed .cv2-nav-sublink span {
  display: inline;
  flex: 1;
  min-width: 0;
}
.cv2-shell.is-sidebar-collapsed .cv2-nav-sublink:hover {
  background: var(--cv2-surface-2);
  color: var(--cv2-text);
}
.cv2-shell.is-sidebar-collapsed .cv2-nav-sublink.is-active {
  background: color-mix(in srgb, var(--cv2-accent) 12%, transparent);
  color: var(--cv2-accent);
  font-weight: 600;
}
.cv2-shell.is-sidebar-collapsed .cv2-nav-sublink i {
  font-size: 0.9rem;
  opacity: 1;
}

.cv2-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cv2-card-action {
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.cv2-card-action:hover { border-color: var(--cv2-accent); transform: translateY(-2px); }
.cv2-card-action i { font-size: 1.75rem; color: var(--cv2-accent); margin-bottom: 0.5rem; }
.cv2-card-action strong { display: block; font-size: 0.95rem; }
.cv2-card-action small { color: var(--cv2-muted); }

.cv2-main {
  grid-area: main;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 0 var(--cv2-content-gap) var(--cv2-content-gap) 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.cv2-main-inner {
  width: 100%;
  max-width: 1600px;
  min-width: 0;
  padding: 1rem;
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  box-shadow: var(--cv2-shadow);
  overflow-x: hidden;
}

.cv2-main-inner:has(> .cv2-dash) {
  padding: 0.65rem;
}

/* Buttons */
.cv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.cv2-btn:active { transform: scale(0.98); }
.cv2-btn-sm { padding: 0.45rem 0.75rem; font-size: 0.8rem; }
.cv2-btn-primary { background: var(--cv2-accent); color: #fff; }
.cv2-btn-primary:hover { background: var(--cv2-accent-hover); }
.cv2-btn-success { background: var(--cv2-success); color: #fff; }
.cv2-btn-danger { background: var(--cv2-danger); color: #fff; }
.cv2-btn-warning { background: var(--cv2-warning); color: #111; }
.cv2-btn-ghost {
  background: transparent;
  border: 1px solid var(--cv2-border);
  color: var(--cv2-text);
}

/* Cards & stats */
.cv2-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cv2-stat {
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  padding: 1rem 1.15rem;
}
.cv2-stat-label { font-size: 0.75rem; color: var(--cv2-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cv2-stat-value { font-size: 1.75rem; font-weight: 700; margin-top: 0.25rem; }
.cv2-stat-value.is-danger { color: var(--cv2-danger); }
.cv2-stat-value.is-success { color: var(--cv2-success); }
.cv2-stat-pulse,
.cv2-transacciones-saldo-monto.cv2-stat-pulse {
  animation: cv2-saldo-pulse 1.2s ease-out 2;
}
@keyframes cv2-saldo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); color: var(--cv2-success); }
}

.cv2-alert {
  padding: 1rem 1.15rem;
  border-radius: var(--cv2-radius);
  margin-bottom: 1rem;
  border: 1px solid;
}
.cv2-alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Zone tabs */
.cv2-zones {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  scrollbar-width: thin;
}
.cv2-zone-tab {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--cv2-border);
  background: var(--cv2-surface);
  color: var(--cv2-muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.cv2-zone-tab.is-active {
  background: var(--cv2-accent);
  border-color: var(--cv2-accent);
  color: #fff;
}

/* Machine grid */
.cv2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.cv2-machine {
  position: relative;
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  padding: 1rem 0.75rem 0.85rem;
  text-align: center;
  cursor: default;
  transition: border-color 0.15s, transform 0.15s, opacity 0.15s;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.cv2-machine.is-clickable {
  cursor: pointer;
}
.cv2-machine.is-clickable:hover {
  transform: translateY(-2px);
}
.cv2-machine.is-clickable.is-free:hover {
  border-color: #d97706;
}
.cv2-machine.is-clickable.is-play:hover {
  border-color: var(--cv2-salon-play);
}
.cv2-machine.is-locked { opacity: 0.45; pointer-events: none; }

/* Salón: naranja esperando, verde jugando */
.cv2-machine.is-free {
  border-color: rgba(244, 161, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(244, 161, 0, 0.22);
}
.cv2-machine.is-play {
  border-color: rgba(0, 172, 105, 0.65);
  box-shadow: 0 0 0 1px rgba(0, 172, 105, 0.25);
}
.cv2-machine.is-maint {
  border-color: rgba(108, 117, 125, 0.45);
  opacity: 0.72;
}

.cv2-machine-icon {
  font-size: 2rem;
  color: var(--cv2-muted);
}
.cv2-machine.is-free .cv2-machine-icon { color: #d97706; }
.cv2-machine.is-play .cv2-machine-icon { color: var(--cv2-salon-play); }
.cv2-machine.is-maint .cv2-machine-icon { color: var(--cv2-maq-inactive); }

.cv2-machine-name {
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-word;
}
.cv2-machine-code {
  font-size: 0.7rem;
  color: var(--cv2-muted);
}

.cv2-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.cv2-badge-play { background: rgba(0, 172, 105, 0.18); color: #00875a; }
.cv2-badge-free { background: rgba(244, 161, 0, 0.2); color: #9a6700; }
.cv2-badge-maint { background: rgba(108, 117, 125, 0.18); color: #6c757d; }

/* Modals */
.cv2-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cv2-modal.is-open { display: flex; }

.cv2-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.cv2-modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: calc(var(--cv2-radius) + 4px);
  box-shadow: var(--cv2-shadow);
  padding: 1.25rem;
}
.cv2-modal-panel.lg { max-width: 720px; }

.cv2-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cv2-modal-header h2 { margin: 0; font-size: 1.15rem; }
.cv2-modal-close {
  background: transparent;
  border: none;
  color: var(--cv2-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
}

.cv2-field { margin-bottom: 1rem; }
.cv2-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--cv2-muted);
  margin-bottom: 0.35rem;
}
.cv2-input, .cv2-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--cv2-border);
  background: var(--cv2-bg);
  color: var(--cv2-text);
  font-family: inherit;
  font-size: 0.9rem;
}
.cv2-input:focus, .cv2-select:focus {
  outline: none;
  border-color: var(--cv2-accent);
}

.cv2-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.cv2-confirm-modal {
  z-index: 2100;
}

.cv2-confirm-panel {
  max-width: 440px;
  padding: 1.35rem 1.35rem 1.15rem;
  text-align: center;
}

.cv2-confirm-icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.cv2-confirm-icon-wrap.is-success {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.14);
}

.cv2-confirm-icon-wrap.is-warning {
  color: #d97706;
  background: rgba(212, 160, 23, 0.16);
}

.cv2-confirm-icon-wrap.is-danger {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.12);
}

.cv2-confirm-icon-wrap.is-primary {
  color: var(--cv2-accent, #6900c7);
  background: color-mix(in srgb, var(--cv2-accent, #6900c7) 14%, transparent);
}

.cv2-confirm-title {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--cv2-text);
}

.cv2-confirm-body {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--cv2-muted);
  line-height: 1.45;
}

.cv2-confirm-body strong {
  color: var(--cv2-text);
}

.cv2-confirm-checklist {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-radius: 10px;
  background: var(--cv2-surface-2);
  border: 1px solid var(--cv2-border);
}

.cv2-confirm-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--cv2-text);
  line-height: 1.35;
}

.cv2-confirm-checklist li + li {
  margin-top: 0.4rem;
}

.cv2-confirm-checklist i {
  color: #2f6fad;
  font-size: 0.72rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.cv2-confirm-highlight {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.22);
}

.cv2-confirm-highlight-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cv2-muted);
  margin-bottom: 0.2rem;
}

.cv2-confirm-highlight-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #d97706;
  letter-spacing: -0.02em;
}

.cv2-confirm-input-wrap {
  margin: 0 0 1rem;
  text-align: left;
}

.cv2-confirm-input-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.cv2-confirm-input-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--cv2-muted);
  line-height: 1.35;
}

.cv2-confirm-calc-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.cv2-confirm-calc-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0;
}

.cv2-confirm-calc-list li.is-total {
  margin-top: 0.25rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--cv2-border);
  font-weight: 700;
}

.cv2-confirm-note {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
}

.cv2-confirm-actions {
  justify-content: center;
  margin-top: 0.35rem;
}

.cv2-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cv2-confirm-actions .cv2-btn {
  min-width: 7.5rem;
}

.cv2-modal-panel.cv2-cli-modal {
  max-height: min(90vh, 680px);
  overflow: hidden;
}

/* Modal cliente — todo en un solo panel */
.cv2-cli-modal {
  max-width: 620px;
  padding: 0;
  overflow: hidden;
  border-radius: calc(var(--cv2-radius) + 6px);
}

.cv2-cli-modal-form {
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 680px);
}

.cv2-cli-modal-head {
  position: relative;
  flex-shrink: 0;
  padding: 1.15rem 1.25rem 1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cv2-accent) 88%, #fff) 0%, var(--cv2-accent) 55%, color-mix(in srgb, var(--cv2-accent) 70%, #000) 100%);
  color: #fff;
}

.cv2-cli-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cv2-cli-modal-close:hover { background: rgba(255, 255, 255, 0.28); }

.cv2-cli-modal-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-right: 2rem;
}

.cv2-cli-modal-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  backdrop-filter: blur(6px);
  overflow: hidden;
  position: relative;
}

.cv2-cli-modal-avatar-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.cv2-cli-modal-initials {
  display: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.cv2-cli-modal-avatar #cliModalHeroIcon {
  position: relative;
  z-index: 1;
}

.cv2-cli-modal-avatar.has-logo .cv2-cli-modal-avatar-logo { display: block; }
.cv2-cli-modal-avatar.has-logo #cliModalHeroIcon { display: none; }
.cv2-cli-modal-avatar.has-initials .cv2-cli-modal-initials { display: block; }
.cv2-cli-modal-avatar.has-initials .cv2-cli-modal-avatar-logo,
.cv2-cli-modal-avatar.has-initials #cliModalHeroIcon { display: none; }

.cv2-cli-modal-intro h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}
.cv2-cli-modal-intro p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  opacity: 0.88;
  line-height: 1.3;
}

.cv2-cli-modal-content {
  flex: 1;
  min-height: 0;
  padding: 1rem 1.25rem 0.75rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(33, 40, 50, 0.12) transparent;
}
.cv2-cli-modal-content::-webkit-scrollbar { width: 4px; }
.cv2-cli-modal-content::-webkit-scrollbar-thumb {
  background: rgba(33, 40, 50, 0.1);
  border-radius: 999px;
}

.cv2-cli-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.85rem;
}
.cv2-cli-field-full { grid-column: 1 / -1; }

.cv2-cli-modal .cv2-field { margin-bottom: 0; }
.cv2-cli-modal .cv2-field label {
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.28rem;
  color: var(--cv2-muted);
}
.cv2-req { color: var(--cv2-danger); }

.cv2-cli-auto-tag {
  display: none;
  margin-left: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cv2-accent);
  background: color-mix(in srgb, var(--cv2-accent) 10%, transparent);
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  vertical-align: middle;
}
.cv2-cli-modal.is-new .cv2-cli-auto-tag { display: inline; }
.cv2-cli-modal.is-new #cliNumreg {
  background: color-mix(in srgb, var(--cv2-accent) 6%, var(--cv2-bg));
  color: var(--cv2-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: default;
}

.cv2-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.cv2-input-wrap > i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cv2-muted);
  font-size: 0.8rem;
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}
.cv2-input-wrap-area > i {
  top: 0.7rem;
  transform: none;
}
.cv2-input-wrap .cv2-input,
.cv2-input-wrap .cv2-select,
.cv2-input-wrap .cv2-textarea {
  padding-left: 2.2rem;
  background: var(--cv2-bg);
  border-color: var(--cv2-border);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cv2-input-wrap .cv2-input:focus,
.cv2-input-wrap .cv2-select:focus,
.cv2-input-wrap .cv2-textarea:focus {
  border-color: var(--cv2-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cv2-accent) 10%, transparent);
}

.cv2-textarea {
  resize: none;
  min-height: 2.5rem;
  line-height: 1.4;
}

.cv2-cli-modal-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.8rem 1.25rem 1rem;
  border-top: 1px solid var(--cv2-border);
  background: var(--cv2-surface);
}

.cv2-cli-btn-save {
  min-width: 155px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--cv2-accent) 30%, transparent);
}

@media (max-width: 540px) {
  .cv2-cli-grid { grid-template-columns: 1fr; }
  .cv2-cli-modal-foot {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .cv2-cli-btn-save { min-width: 0; width: 100%; }
}

.cv2-client-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--cv2-border);
  border-radius: 10px;
}
.cv2-client-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--cv2-text);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid var(--cv2-border);
}
.cv2-client-item:hover, .cv2-client-item.is-selected {
  background: rgba(59, 130, 246, 0.12);
}

/* Admin table */
.cv2-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  background: var(--cv2-surface);
}
.cv2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.cv2-table th, .cv2-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--cv2-border);
}
.cv2-table th {
  color: var(--cv2-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.cv2-table tr:last-child td { border-bottom: none; }

.cv2-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.cv2-toolbar .cv2-field { margin-bottom: 0; flex: 1; min-width: 140px; }
.cv2-toolbar > .cv2-btn {
  margin-top: 1.15rem;
  min-height: 2.45rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

.cv2-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.35rem;
}
.cv2-status-dot.activa { background: var(--cv2-maq-active); }
.cv2-status-dot.inactiva { background: var(--cv2-maq-inactive); }
.cv2-status-dot.mantenimiento { background: var(--cv2-maq-maint); }

/* Notificación flotante */
.cv2-toast-wrap {
  position: fixed;
  top: calc(var(--cv2-topbar-h, 56px) + 0.75rem);
  right: 1rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(22rem, calc(100vw - 1.5rem));
  pointer-events: none;
}

.cv2-float-notify {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 0.95rem 1rem;
  border-radius: 14px;
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  pointer-events: auto;
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.cv2-float-notify.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.cv2-float-notify-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 111, 173, 0.12);
  color: #2f6fad;
  font-size: 1rem;
  flex-shrink: 0;
}

.cv2-float-notify-body {
  min-width: 0;
  padding-top: 0.1rem;
}

.cv2-float-notify-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cv2-text);
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.cv2-float-notify-msg {
  margin: 0;
  font-size: 0.82rem;
  color: var(--cv2-muted);
  line-height: 1.4;
  word-break: break-word;
}

.cv2-float-notify-actions {
  margin-top: 0.55rem;
}

.cv2-float-notify-action {
  width: 100%;
}

.cv2-float-notify-close {
  border: none;
  background: transparent;
  color: var(--cv2-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.cv2-float-notify-close:hover {
  color: var(--cv2-text);
  background: rgba(0, 0, 0, 0.06);
}

.cv2-float-notify-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  background: currentColor;
  opacity: 0.55;
  animation: cv2-notify-progress linear forwards;
}

@keyframes cv2-notify-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.cv2-float-notify.is-success {
  border-color: rgba(34, 197, 94, 0.45);
}
.cv2-float-notify.is-success .cv2-float-notify-icon {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}
.cv2-float-notify.is-success .cv2-float-notify-progress { color: #22c55e; }

.cv2-float-notify.is-warning {
  border-color: rgba(212, 160, 23, 0.5);
}
.cv2-float-notify.is-warning .cv2-float-notify-icon {
  background: rgba(212, 160, 23, 0.16);
  color: #b8860b;
}
.cv2-float-notify.is-warning .cv2-float-notify-progress { color: #d4a017; }

.cv2-float-notify.is-error {
  border-color: rgba(239, 68, 68, 0.45);
}
.cv2-float-notify.is-error .cv2-float-notify-icon {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}
.cv2-float-notify.is-error .cv2-float-notify-title { color: #fca5a5; }
.cv2-float-notify.is-error .cv2-float-notify-progress { color: #ef4444; }

/* Compatibilidad toast simple */
.cv2-toast {
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  background: var(--cv2-surface-2);
  border: 1px solid var(--cv2-border);
  box-shadow: var(--cv2-shadow);
  font-size: 0.875rem;
  animation: cv2-slide-in 0.25s ease;
}
.cv2-toast.is-error { border-color: var(--cv2-danger); color: #fca5a5; }
.cv2-toast.is-success { border-color: var(--cv2-success); }

@keyframes cv2-slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.cv2-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}
.cv2-overlay.is-visible { display: block; }

.cv2-loading {
  text-align: center;
  padding: 3rem;
  color: var(--cv2-muted);
}

/* Responsive — sidebar como offcanvas */
@media (max-width: 900px) {
  :root {
    --cv2-content-gap: 0.75rem;
  }

  .cv2-shell {
    grid-template-columns: 1fr;
    grid-template-rows: var(--cv2-topbar-h) 1fr;
    grid-template-areas:
      "top"
      "main";
    column-gap: 0;
    row-gap: var(--cv2-content-gap);
    padding: 0 var(--cv2-content-gap) var(--cv2-content-gap);
  }

  .cv2-shell.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .cv2-sidebar {
    grid-row: auto;
    position: fixed;
    top: var(--cv2-topbar-h);
    left: 0;
    bottom: 0;
    width: min(var(--cv2-sidebar-w), 85vw);
    height: auto;
    min-height: 0;
    z-index: 95;
    border-radius: 0;
    border-right: 1px solid var(--cv2-border);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .cv2-sidebar.is-open {
    transform: translateX(0);
  }

  .cv2-sidebar.is-open:has(.cv2-nav-group.is-open) .cv2-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.15rem;
  }

  .cv2-topbar {
    padding: 0 0.85rem;
    gap: 0.5rem;
  }

  .cv2-main {
    padding: 0 var(--cv2-content-gap);
  }

  .cv2-main-inner {
    border-radius: var(--cv2-radius);
    padding: 1rem;
  }

  .cv2-user,
  .cv2-topbar-user { display: none; }

  .cv2-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
  }

  .cv2-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cv2-toolbar .cv2-field {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .cv2-toolbar > .cv2-btn {
    width: 100%;
    margin-top: 0;
  }

  .cv2-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv2-metrics,
  .cv2-metrics-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv2-dash-ops-grid { grid-template-columns: 1fr; }
  .cv2-saldo-top { grid-template-columns: 1fr; }
  .cv2-caja-act-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv2-caja-act-resumen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv2-caja-act-checks { grid-template-columns: 1fr; }
  .cv2-caja-act-form { flex-direction: column; align-items: stretch; }
  .cv2-caja-act-form .cv2-field { width: 100%; min-width: 0; flex: 0 0 auto; }
  .cv2-caja-act-form > .cv2-btn {
    width: 100%;
    margin-top: 0;
  }

  .cv2-caja-act-panel {
    padding: 0.85rem 0.95rem;
  }

  .cv2-caja-act-panel h3 {
    margin-bottom: 0.55rem;
  }

  .cv2-caja-act-form--compact {
    gap: 0.55rem;
  }

  .cv2-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  .cv2-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .cv2-dash-ops-head,
  .cv2-caja-act-asig header,
  .cv2-caja-act-historial-head,
  .cv2-saldo-mov-head {
    flex-direction: column;
    align-items: stretch;
  }

  .cv2-saldo-mov-filter {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .cv2-saldo-mov-filter .cv2-input {
    width: 100%;
    min-width: 0;
  }

  .cv2-dash-head h1 {
    font-size: 1.05rem;
  }

  .cv2-dash-head-actions {
    width: 100%;
  }

  .cv2-dash-toolbar {
    width: 100%;
  }

  .cv2-table:not(.cv2-saldo-table) tr:not(.cv2-caja-hist-detalle):not(.cv2-saldo-detalle):not(.cv2-tx-detalle) > td:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: flex-start;
  }

  .cv2-chart-wrap,
  .cv2-dash-chart-wrap {
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  :root {
    --cv2-content-gap: 0.5rem;
    --cv2-topbar-h: 56px;
  }

  .cv2-main-inner { padding: 0.75rem; }
  .cv2-stat-value { font-size: 1.35rem; }

  .cv2-brand-sub { display: none; }

  .cv2-nav-toggle {
    width: 36px;
    height: 36px;
  }

  .cv2-cards,
  .cv2-caja-act-cards,
  .cv2-caja-act-resumen,
  .cv2-metrics,
  .cv2-metrics-preview,
  .cv2-dash-kpis,
  .cv2-dash-kpis--sub {
    grid-template-columns: 1fr;
  }

  .cv2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .cv2-table {
    font-size: 0.8rem;
  }

  .cv2-table th,
  .cv2-table td {
    padding: 0.5rem 0.6rem;
  }

  .cv2-saldo-actions {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .cv2-saldo-actions-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cv2-saldo-actions .cv2-saldo-act:not(.cv2-saldo-act--icon) {
    flex: 1 1 auto;
    min-width: 5.5rem;
  }

  .cv2-table td .cv2-btn {
    margin: 0.15rem 0;
  }

  .cv2-modal {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .cv2-modal-panel {
    max-height: 92vh;
    border-radius: var(--cv2-radius) var(--cv2-radius) 0 0;
    padding: 1rem;
  }

  .cv2-toast-wrap {
    top: auto;
    bottom: 0.75rem;
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
  }

  .cv2-float-notify {
    border-radius: 12px;
  }

  .cv2-caja-act-card {
    min-height: 96px;
    padding: 0.85rem;
  }

  .cv2-caja-act-card i { font-size: 1.5rem; }

  .cv2-tab {
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
  }

  .cv2-dash-head-actions,
  .cv2-dash-export,
  .cv2-dash-toolbar {
    width: 100%;
  }

  .cv2-btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* Métricas coloridas (estilo dashboard) */
.cv2-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.cv2-metric {
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  color: #fff;
  box-shadow: var(--cv2-shadow);
  position: relative;
  overflow: hidden;
}
.cv2-metric-1 { background: var(--cv2-card-1); }
.cv2-metric-2 { background: var(--cv2-card-2); }
.cv2-metric-3 { background: var(--cv2-card-3); }
.cv2-metric-4 { background: var(--cv2-card-4); }
.cv2-metric-label { font-size: 0.68rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.04em; }
.cv2-metric-value { font-size: 1.35rem; font-weight: 700; margin-top: 0.15rem; }
.cv2-metric a { color: inherit; text-decoration: none; display: block; }
.cv2-metrics-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem; margin-top: 0.65rem; }

/* Panel de tema */
.cv2-theme-panel {
  position: fixed;
  top: var(--cv2-topbar-h);
  right: 0;
  width: 320px;
  max-width: 90vw;
  bottom: 0;
  background: var(--cv2-surface);
  border-left: 1px solid var(--cv2-border);
  box-shadow: var(--cv2-shadow);
  z-index: 150;
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.2s ease;
  overflow-y: auto;
}
.cv2-theme-panel.is-open { transform: translateX(0); }
.cv2-theme-panel h3 { margin: 0 0 1rem; font-size: 1rem; }
.cv2-theme-presets { display: flex; flex-direction: column; gap: 0.5rem; }
.cv2-theme-preset {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--cv2-border);
  background: var(--cv2-surface-2);
  color: var(--cv2-text);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.cv2-theme-preset.is-active { border-color: var(--cv2-accent); background: color-mix(in srgb, var(--cv2-accent) 12%, transparent); }
.cv2-theme-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.cv2-theme-swatch { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8rem; color: var(--cv2-muted); }
.cv2-theme-swatch input[type=color] { width: 100%; height: 36px; border: none; border-radius: 8px; cursor: pointer; }

/* KDS Cocina / Bar */
.cv2-kds .cv2-main-inner { max-width: none; }
.cv2-kds-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: var(--cv2-surface);
  border-radius: var(--cv2-radius);
  border: 1px solid var(--cv2-border);
  border-top: 4px solid var(--kds-accent, var(--cv2-accent));
}
.cv2-kds-header-main { display: flex; align-items: center; gap: 1rem; }
.cv2-kds-header-main i { font-size: 2.5rem; color: var(--kds-accent, var(--cv2-accent)); }
.cv2-kds-header h1 { margin: 0; font-size: 1.5rem; }
.cv2-kds-header p { margin: 0.25rem 0 0; color: var(--cv2-muted); font-size: 0.875rem; }
.cv2-kds-header-stats { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.cv2-kds-station-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: var(--cv2-surface-2);
  border: 1px solid var(--cv2-border);
}
.cv2-kds-station-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--cv2-muted);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.cv2-kds-station-btn:hover {
  color: var(--cv2-text);
  background: rgba(255, 255, 255, 0.06);
}
.cv2-kds-station-btn.is-active {
  background: var(--cv2-surface);
  color: var(--cv2-text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.cv2-kds-station-btn.is-active i { color: var(--cv2-accent); }
.cv2-topbar-actions .cv2-kds-station-switch { flex-shrink: 0; }
.cv2-kds-station-btn span { display: inline; }
@media (max-width: 520px) {
  .cv2-kds-station-btn span { display: none; }
  .cv2-kds-station-btn { padding: 0.45rem 0.65rem; }
}

.cv2-kds-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--cv2-surface-2);
  border: 1px solid var(--cv2-border);
  color: var(--cv2-text);
  font-size: 0.875rem;
}
.cv2-kds-pill strong { color: var(--cv2-accent); }
.cv2-kds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.cv2-kds-card {
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  padding: 1rem;
  box-shadow: var(--cv2-shadow);
  border-left: 4px solid var(--cv2-border);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.cv2-kds-card--enter {
  animation: cv2-slide-in 0.3s ease;
}
.cv2-kds-card--ok {
  border-left-color: #22c55e;
}
.cv2-kds-card--warn {
  border-left-color: #d97706;
  background: color-mix(in srgb, #d97706 8%, var(--cv2-surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, #d97706 18%, transparent);
}
.cv2-kds-card--urgent {
  border-left-color: #ea580c;
  background: color-mix(in srgb, #ea580c 12%, var(--cv2-surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, #ea580c 22%, transparent);
  animation: cv2-kds-urgent-pulse 1.4s ease-in-out infinite;
}
.cv2-kds-card--overdue {
  border-color: #dc2626;
  border-left-color: #dc2626;
  background: color-mix(in srgb, #dc2626 14%, var(--cv2-surface));
  box-shadow: 0 0 0 2px color-mix(in srgb, #dc2626 28%, transparent);
  animation: cv2-kds-overdue-pulse 1s ease-in-out infinite;
}
@keyframes cv2-kds-urgent-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes cv2-kds-overdue-pulse {
  0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, #dc2626 28%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, #dc2626 40%, transparent); }
}
.cv2-kds-overdue-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: -0.25rem 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}
.cv2-kds-overdue-alert[hidden] { display: none !important; }
.cv2-kds-overdue-alert i { flex-shrink: 0; }
.cv2-kds-overdue-alert strong { font-weight: 800; }
.cv2-kds-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.cv2-kds-num { font-size: 1.25rem; font-weight: 700; color: var(--cv2-accent); }
.cv2-kds-time { font-size: 0.8rem; color: var(--cv2-warning); font-weight: 600; }
.cv2-kds-time--warn { color: #d97706; }
.cv2-kds-time--urgent { color: #dc2626; font-weight: 700; }
.cv2-kds-time--overdue {
  color: #dc2626;
  font-weight: 800;
  animation: cv2-kds-zero-blink 0.85s ease-in-out infinite;
}
@keyframes cv2-kds-zero-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.08); }
}
.cv2-kds-meta { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--cv2-muted); margin-bottom: 0.75rem; }
.cv2-kds-meta span { display: flex; align-items: center; gap: 0.45rem; }
.cv2-kds-meta i {
  width: 1rem;
  text-align: center;
  color: var(--kds-accent, var(--cv2-accent));
  opacity: 0.9;
}
.cv2-kds-items { list-style: none; padding: 0; margin: 0 0 1rem; }
.cv2-kds-items li { padding: 0.4rem 0; border-bottom: 1px solid var(--cv2-border); font-size: 0.95rem; }
.cv2-kds-items li:last-child { border-bottom: none; }
.cv2-btn-block { width: 100%; }
.cv2-kds-empty { grid-column: 1 / -1; text-align: center; padding: 4rem; color: var(--cv2-muted); }
.cv2-kds-empty i { font-size: 3rem; color: var(--cv2-success); display: block; margin-bottom: 1rem; }
.cv2-kds-bitacora-body { max-height: min(70vh, 520px); overflow: auto; }
.cv2-kds-bitacora-table-wrap { overflow-x: auto; }
.cv2-kds-bitacora-table { width: 100%; font-size: 0.875rem; }
.cv2-kds-bitacora-table th { white-space: nowrap; }
.cv2-kds-bitacora-items { max-width: 280px; font-size: 0.82rem; color: var(--cv2-muted); }
.cv2-kds-bitacora-estado {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.cv2-kds-bitacora-estado--listo {
  background: color-mix(in srgb, var(--cv2-success) 18%, transparent);
  color: var(--cv2-success);
}
.cv2-kds-bitacora-estado--pendiente {
  background: color-mix(in srgb, var(--cv2-warning) 18%, transparent);
  color: var(--cv2-warning);
}
.cv2-kds-bitacora-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--cv2-muted);
}
.cv2-kds-bitacora-empty i { display: block; font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.7; }
.cv2-pedido-area { margin: 1.25rem 0; padding: 1rem; background: var(--cv2-surface-2); border-radius: var(--cv2-radius); }
.cv2-pedido-area h4 { margin: 0 0 0.75rem; display: flex; align-items: center; gap: 0.5rem; }

/* ——— Pedidos: menú + carrito ——— */
body.cv2-pedido-page .cv2-main-inner { max-width: none; }

.cv2-pedido-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.cv2-pedido-menu {
  background: var(--cv2-surface-2);
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: min(78vh, 720px);
  max-height: calc(100vh - 5.5rem);
  position: sticky;
  top: calc(var(--cv2-topbar-h) + 0.75rem);
}

.cv2-pedido-menu-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--cv2-accent) 12%, var(--cv2-surface));
  border-bottom: 1px solid var(--cv2-border);
  flex-shrink: 0;
}

.cv2-pedido-menu-head i { color: var(--cv2-accent); font-size: 1.1rem; }
.cv2-pedido-menu-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }

.cv2-pedido-menu-tree {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.5rem 0.65rem 0.85rem;
}

.cv2-pedido-menu-loading {
  margin: 1rem 0.65rem;
  font-size: 0.85rem;
  color: var(--cv2-muted);
}

.cv2-pedido-menu-group {
  margin-bottom: 0.4rem;
  border: 1px solid var(--cv2-border);
  border-radius: 10px;
  background: var(--cv2-surface);
  overflow: hidden;
}

.cv2-pedido-menu-group:last-child { margin-bottom: 0; }

.cv2-pedido-menu-group-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: none;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--cv2-accent) 8%, var(--cv2-surface-2));
  font-size: 0.86rem;
  font-weight: 700;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.cv2-pedido-menu-group-head:hover {
  background: color-mix(in srgb, var(--cv2-accent) 14%, var(--cv2-surface-2));
}

.cv2-pedido-menu-group.is-open .cv2-pedido-menu-group-head {
  border-bottom-color: var(--cv2-border);
  background: color-mix(in srgb, var(--cv2-accent) 14%, var(--cv2-surface-2));
}

.cv2-pedido-menu-chevron {
  font-size: 0.65rem;
  color: var(--cv2-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.cv2-pedido-menu-group.is-open .cv2-pedido-menu-chevron {
  transform: rotate(90deg);
  color: var(--cv2-accent);
}

.cv2-pedido-menu-folder {
  color: var(--cv2-accent);
  opacity: 0.85;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.cv2-pedido-menu-cat-name { flex: 1; min-width: 0; }

.cv2-pedido-menu-cat-dest {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: rgba(47, 111, 173, 0.12);
  color: #2f6fad;
  flex-shrink: 0;
}

.cv2-pedido-menu-cat-count {
  font-size: 0.7rem;
  color: var(--cv2-muted);
  font-weight: 600;
  min-width: 1.1rem;
  text-align: right;
  flex-shrink: 0;
}

.cv2-pedido-menu-group-body {
  display: none;
}

.cv2-pedido-menu-group.is-open .cv2-pedido-menu-group-body {
  display: block;
}

.cv2-pedido-menu-items {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0;
}

.cv2-pedido-menu-empty-item {
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  color: var(--cv2-muted);
}

.cv2-pedido-cats {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem;
  border-bottom: 1px solid var(--cv2-border);
  max-height: 220px;
  overflow-y: auto;
}

.cv2-pedido-cat {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--cv2-border);
  border-radius: 10px;
  background: var(--cv2-surface);
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}

.cv2-pedido-cat i { color: var(--cv2-accent); opacity: 0.85; }
.cv2-pedido-cat span { flex: 1; }
.cv2-pedido-cat small {
  font-size: 0.72rem;
  color: var(--cv2-muted);
  font-weight: 500;
}

.cv2-pedido-cat:hover,
.cv2-pedido-cat.is-active {
  border-color: color-mix(in srgb, var(--cv2-accent) 40%, var(--cv2-border));
  background: color-mix(in srgb, var(--cv2-accent) 8%, var(--cv2-surface));
}

.cv2-pedido-products-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.5rem 0.65rem 0.75rem;
}

.cv2-pedido-products-hint {
  margin: 0.5rem 0.65rem;
  font-size: 0.85rem;
  color: var(--cv2-muted);
}

.cv2-pedido-products {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cv2-pedido-product {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  margin: 0 0.35rem 0.35rem;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  transition: background 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.cv2-pedido-product:hover,
.cv2-pedido-product:focus {
  background: #fff;
  border-color: rgba(217, 119, 6, 0.22);
  box-shadow: 0 4px 12px rgba(120, 80, 20, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.cv2-pedido-product-thumb {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.cv2-pedido-product-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.cv2-pedido-product-add {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: #c2410c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.15s, transform 0.15s;
}

.cv2-pedido-product:hover .cv2-pedido-product-add,
.cv2-pedido-product:focus .cv2-pedido-product-add {
  opacity: 1;
  transform: scale(1);
}

.cv2-pedido-product-name {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
}

.cv2-pedido-product-meta {
  font-size: 0.72rem;
  color: var(--cv2-muted);
}

.cv2-pedido-panel {
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  overflow: hidden;
}

.cv2-pedido-panel-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--cv2-accent);
  color: #fff;
}

.cv2-pedido-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cv2-pedido-cart-wrap {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.65) 0%, var(--cv2-surface) 100%);
  border-bottom: 1px solid var(--cv2-border);
}

.cv2-pedido-cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 320px;
  overflow: auto;
  padding: 0.75rem;
}

.cv2-pedido-cart-empty {
  margin: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--cv2-muted);
  border: 1px dashed rgba(217, 119, 6, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.cv2-pedido-cart-empty i {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
  color: #d97706;
  opacity: 0.75;
}

.cv2-pedido-cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 4px 14px rgba(120, 80, 20, 0.08);
}

.cv2-pedido-cart-item-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.cv2-pedido-cart-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.cv2-pedido-cart-item-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cv2-text);
}

.cv2-pedido-cart-item-qty {
  font-size: 0.78rem;
  font-weight: 700;
  color: #b45309;
}

.cv2-pedido-cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cv2-pedido-cart-btn {
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid var(--cv2-border);
  border-radius: 8px;
  background: var(--cv2-surface);
  color: var(--cv2-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cv2-pedido-cart-btn:hover {
  background: rgba(47, 111, 173, 0.08);
  color: var(--cv2-accent);
  border-color: rgba(47, 111, 173, 0.25);
}

.cv2-pedido-cart-btn--remove:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--cv2-danger);
  border-color: rgba(239, 68, 68, 0.25);
}

.cv2-pedido-cart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: rgba(217, 119, 6, 0.1);
  border-top: 1px solid rgba(217, 119, 6, 0.18);
  font-size: 0.78rem;
  color: var(--cv2-muted);
}

.cv2-pedido-cart-foot-qty {
  font-size: 1.05rem;
  font-weight: 800;
  color: #c2410c;
}

.cv2-food-nachos .cv2-pedido-cart-item-icon,
.cv2-food-nachos .cv2-pedido-product-thumb { background: linear-gradient(145deg, #fef3c7, #fde68a); color: #b45309; }
.cv2-food-pizza .cv2-pedido-cart-item-icon,
.cv2-food-pizza .cv2-pedido-product-thumb { background: linear-gradient(145deg, #fee2e2, #fecaca); color: #dc2626; }
.cv2-food-burger .cv2-pedido-cart-item-icon,
.cv2-food-burger .cv2-pedido-product-thumb { background: linear-gradient(145deg, #ffedd5, #fed7aa); color: #c2410c; }
.cv2-food-hotdog .cv2-pedido-cart-item-icon,
.cv2-food-hotdog .cv2-pedido-product-thumb { background: linear-gradient(145deg, #fce7f3, #fbcfe8); color: #be185d; }
.cv2-food-beer .cv2-pedido-cart-item-icon,
.cv2-food-beer .cv2-pedido-product-thumb { background: linear-gradient(145deg, #fef9c3, #fde047); color: #a16207; }
.cv2-food-coffee .cv2-pedido-cart-item-icon,
.cv2-food-coffee .cv2-pedido-product-thumb { background: linear-gradient(145deg, #ede9fe, #ddd6fe); color: #6d28d9; }
.cv2-food-drink .cv2-pedido-cart-item-icon,
.cv2-food-drink .cv2-pedido-product-thumb { background: linear-gradient(145deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.cv2-food-dessert .cv2-pedido-cart-item-icon,
.cv2-food-dessert .cv2-pedido-product-thumb { background: linear-gradient(145deg, #fce7f3, #f9a8d4); color: #db2777; }
.cv2-food-chicken .cv2-pedido-cart-item-icon,
.cv2-food-chicken .cv2-pedido-product-thumb { background: linear-gradient(145deg, #ffedd5, #fdba74); color: #9a3412; }
.cv2-food-snack .cv2-pedido-cart-item-icon,
.cv2-food-snack .cv2-pedido-product-thumb { background: linear-gradient(145deg, #fef3c7, #fcd34d); color: #92400e; }
.cv2-food-default .cv2-pedido-cart-item-icon,
.cv2-food-default .cv2-pedido-product-thumb { background: linear-gradient(145deg, #f3f4f6, #e5e7eb); color: #6b7280; }

body.cv2-pedido-boquitas .cv2-pedido-panel-head {
  background: linear-gradient(135deg, #ea580c 0%, #d97706 48%, #f59e0b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.cv2-pedido-boquitas .cv2-pedido-menu-head {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12), rgba(245, 158, 11, 0.08));
}

body.cv2-pedido-boquitas .cv2-pedido-menu-head i {
  color: #ea580c;
}

body.cv2-pedido-boquitas .cv2-pedido-btn-send {
  background: linear-gradient(135deg, #ea580c, #d97706);
  border-color: #c2410c;
}

body.cv2-pedido-boquitas .cv2-pedido-cart-wrap {
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
}

body.cv2-pedido-boquitas .cv2-pedido-menu-group-head:hover,
body.cv2-pedido-boquitas .cv2-pedido-menu-group.is-open .cv2-pedido-menu-group-head {
  background: rgba(234, 88, 12, 0.1);
}

.cv2-pedido-th-actions { width: 88px; white-space: nowrap; }

.cv2-pedido-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
  flex-wrap: wrap;
}

.cv2-pedido-btn-send,
.cv2-pedido-btn-cancel {
  min-width: 160px;
  padding: 0.85rem 1.25rem;
  flex-direction: column;
  gap: 0.35rem;
}

.cv2-pedido-btn-send i,
.cv2-pedido-btn-cancel i { font-size: 1.35rem; }

.cv2-pedido-historial {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cv2-pedido-hist-block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cv2-pedido-hist-table { max-height: 220px; overflow: auto; }

.cv2-pedido-check-entregados {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.cv2-pedido-modal-body { padding: 1rem 1.25rem; }
.cv2-pedido-stock-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--cv2-muted);
}

.cv2-pedido-empty {
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--cv2-muted);
}

@media (max-width: 900px) {
  .cv2-pedido-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .cv2-pedido-menu {
    position: static;
    max-height: none;
    min-height: 0;
    height: auto;
  }

  .cv2-pedido-menu-tree {
    flex: none;
    max-height: min(42vh, 280px);
    min-height: 0;
  }

  .cv2-pedido-cart-wrap {
    max-height: none;
  }

  .cv2-pedido-cart-list {
    max-height: none;
  }

  .cv2-pedido-cart-empty {
    padding: 0.85rem 0.75rem;
  }

  .cv2-pedido-actions {
    padding: 0.75rem;
    gap: 0.65rem;
  }

  .cv2-pedido-btn-send,
  .cv2-pedido-btn-cancel {
    min-width: 0;
    flex: 1 1 140px;
    padding: 0.7rem 0.85rem;
  }

  .cv2-pedido-historial {
    padding: 0 0.75rem 0.75rem;
    gap: 0.75rem;
  }

  .cv2-pedido-hist-table {
    max-height: 180px;
  }
}

@media (max-width: 768px) {
  .cv2-metrics-preview { grid-template-columns: 1fr 1fr; }
}

/* Dashboard (inicio) */
.cv2-input-sm,
.cv2-select.cv2-input-sm {
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  min-height: 2.1rem;
}

.cv2-dash {
  --dash-gap: 0.5rem;
  --dash-radius: 8px;
  --dash-control-h: 2rem;
  margin-bottom: 0.65rem;
}

.cv2-dash-head {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.cv2-dash-head h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cv2-dash-head h1 i {
  font-size: 0.9rem;
  opacity: 0.85;
}

.cv2-dash-head p {
  margin: 0;
  color: var(--cv2-muted);
  font-size: 0.72rem;
}

.cv2-dash-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.05rem;
  scrollbar-width: thin;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}

.cv2-dash-mod,
.cv2-dash-period {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.cv2-dash-period[hidden] {
  display: none !important;
}

.cv2-dash-field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--cv2-muted);
  white-space: nowrap;
}

.cv2-dash-seg {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--cv2-border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--cv2-surface-2);
  flex-shrink: 0;
}

.cv2-dash-seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: var(--dash-control-h);
  padding: 0 0.6rem;
  border: none;
  background: transparent;
  color: var(--cv2-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.cv2-dash-seg-btn + .cv2-dash-seg-btn {
  border-left: 1px solid var(--cv2-border);
}

.cv2-dash-seg-btn.is-active {
  background: color-mix(in srgb, var(--cv2-accent) 14%, var(--cv2-surface));
  color: var(--cv2-accent);
}

.cv2-dash-seg-btn:hover:not(.is-active) {
  background: var(--cv2-surface);
  color: var(--cv2-text);
}

.cv2-dash-date-nav {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--cv2-border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--cv2-surface);
  flex-shrink: 0;
}

.cv2-dash-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  min-height: var(--dash-control-h);
  border: none;
  background: var(--cv2-surface-2);
  color: var(--cv2-text);
  cursor: pointer;
  font-size: 0.68rem;
  transition: background 0.15s;
}

.cv2-dash-nav-btn + .cv2-dash-nav-btn {
  border-left: 1px solid var(--cv2-border);
}

.cv2-dash-nav-btn:hover {
  background: color-mix(in srgb, var(--cv2-accent) 10%, var(--cv2-surface-2));
  color: var(--cv2-accent);
}

.cv2-dash-date-input {
  min-width: 8.75rem;
  min-height: var(--dash-control-h);
  padding: 0 0.45rem;
  border: none;
  border-left: 1px solid var(--cv2-border);
  border-right: 1px solid var(--cv2-border);
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 600;
}

.cv2-dash-select {
  min-height: var(--dash-control-h);
  min-width: 6.25rem;
  padding: 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.cv2-dash-select--year {
  min-width: 4.5rem;
}

.cv2-dash-btn-today,
.cv2-dash-btn-apply,
.cv2-dash-btn-export {
  min-height: var(--dash-control-h);
  padding: 0 0.65rem;
  font-size: 0.75rem;
  gap: 0.35rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.cv2-dash-btn-today {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.68rem;
}

.cv2-dash-export {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
  margin-left: auto;
}

.cv2-dash-kpis-wrap {
  margin-bottom: var(--dash-gap);
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: var(--dash-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(33, 40, 50, 0.04);
}

.cv2-dash-kpis {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}

.cv2-dash-kpis--row {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.cv2-dash-kpi {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem;
  min-height: 52px;
  min-width: 0;
  flex: 1 1 0;
  background: transparent;
  border: none;
  border-right: 1px solid var(--cv2-border);
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.cv2-dash-kpis--row .cv2-dash-kpi:last-child {
  border-right: none;
}

.cv2-dash-kpi-body {
  min-width: 0;
  flex: 1;
}

.cv2-dash-kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #fff;
  flex-shrink: 0;
}

.cv2-dash-kpi-icon.is-purple { background: var(--cv2-card-1); }
.cv2-dash-kpi-icon.is-blue { background: #3b82f6; }
.cv2-dash-kpi-icon.is-green { background: var(--cv2-success); }
.cv2-dash-kpi-icon.is-pink { background: var(--cv2-card-3); }
.cv2-dash-kpi-icon.is-teal { background: #0d9488; }
.cv2-dash-kpi-icon.is-orange { background: #f59e0b; }

.cv2-dash-kpi-label {
  display: block;
  font-size: 0.58rem;
  color: var(--cv2-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv2-dash-kpi-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0.05rem;
  color: var(--cv2-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv2-dash-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--dash-gap);
  margin-bottom: var(--dash-gap);
}

.cv2-dash-grid--secondary {
  grid-template-columns: 0.9fr 1.1fr;
}

.cv2-dash-panel {
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: var(--dash-radius);
  box-shadow: 0 1px 4px rgba(33, 40, 50, 0.05);
  overflow: hidden;
}

.cv2-dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background: var(--cv2-surface-2);
  border-bottom: 1px solid var(--cv2-border);
}

.cv2-dash-panel-head.is-blue {
  background: #1a273a;
  color: #fff;
  border-bottom: none;
}

.cv2-dash-panel-head.is-green {
  background: var(--cv2-success);
  color: #fff;
  border-bottom: none;
}

.cv2-dash-panel-head.is-purple {
  background: var(--cv2-card-1);
  color: #fff;
  border-bottom: none;
}

.cv2-dash-panel-head h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.cv2-dash-panel-head p {
  margin: 0.1rem 0 0;
  font-size: 0.7rem;
  opacity: 0.85;
}

.cv2-dash-chart-wrap {
  padding: 0.65rem 0.75rem 0.75rem;
  height: 200px;
}

.cv2-dash-chart-wrap--donut {
  height: 185px;
}

.cv2-dash-emp-list {
  padding: 0.65rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 220px;
  overflow-y: auto;
}

.cv2-dash-emp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
}

.cv2-dash-emp-head strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv2-dash-emp-head span {
  font-weight: 700;
  color: var(--cv2-success);
  flex-shrink: 0;
}

.cv2-dash-emp-bar {
  position: relative;
  height: 10px;
  background: var(--cv2-surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.cv2-dash-emp-fill {
  height: 100%;
  background: color-mix(in srgb, var(--cv2-success) 55%, var(--cv2-border));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.cv2-dash-emp-fill.is-top {
  background: var(--cv2-success);
}

.cv2-dash-emp-pct {
  position: absolute;
  right: 0;
  top: -1.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cv2-success);
}

.cv2-dash-emp-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--cv2-muted);
}

.cv2-dash-table-wrap { padding: 0 0.65rem 0.65rem; }
.cv2-dash-table .is-num { text-align: right; font-weight: 600; }
.cv2-dash-table .is-center { text-align: center; }

.cv2-dash-empty {
  text-align: center;
  color: var(--cv2-muted);
  padding: 0.65rem 0.5rem;
  font-size: 0.8rem;
}

.cv2-dash-shortcuts { margin-top: 0.35rem; }
.cv2-dash-shortcuts-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.cv2-dash-kpis.is-loading,
.cv2-dash-emp-list.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .cv2-dash-kpis--row .cv2-dash-kpi {
    flex: 0 0 min(220px, 42vw);
  }
  .cv2-dash-grid,
  .cv2-dash-grid--secondary { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cv2-dash-toolbar {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .cv2-dash-export {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
  .cv2-dash-kpis--row {
    flex-direction: column;
    overflow-x: visible;
  }
  .cv2-dash-kpis--row .cv2-dash-kpi {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--cv2-border);
    min-height: 68px;
  }
  .cv2-dash-kpis--row .cv2-dash-kpi:last-child {
    border-bottom: none;
  }
  .cv2-dash-kpis,
  .cv2-dash-kpis--sub { grid-template-columns: 1fr; }
}

/* Saldo pagadores */
.cv2-btn-xs {
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  gap: 0.3rem;
}

.cv2-alert-success {
  background: rgba(0, 172, 105, 0.1);
  border-color: rgba(0, 172, 105, 0.35);
  color: var(--cv2-success);
  margin-bottom: 1rem;
}

.cv2-saldo { display: flex; flex-direction: column; gap: 1.25rem; }

.cv2-saldo-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.cv2-saldo-caja-card {
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  overflow: hidden;
  background: var(--cv2-surface);
  box-shadow: var(--cv2-shadow);
}

.cv2-saldo-caja-head {
  background: #4a90d9;
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cv2-saldo-caja-body { padding: 1.15rem 1.25rem 1rem; }

.cv2-saldo-caja-hero {
  text-align: center;
  margin-bottom: 0.9rem;
}

.cv2-saldo-caja-hero-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cv2-muted);
}

.cv2-saldo-caja-monto {
  font-size: 2.35rem;
  font-weight: 700;
  color: #2f6fad;
  line-height: 1.1;
  margin: 0;
}

.cv2-saldo-caja-monto.is-muted {
  font-size: 1.35rem;
  color: var(--cv2-muted);
}

.cv2-saldo-caja-hint {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  color: var(--cv2-muted);
}

.cv2-saldo-caja-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.cv2-saldo-caja-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(74, 144, 217, 0.12);
  color: #2f6fad;
  border: 1px solid rgba(74, 144, 217, 0.2);
}

.cv2-saldo-caja-badge--muted {
  font-weight: 500;
  background: var(--cv2-surface-2);
  color: var(--cv2-text);
  border-color: var(--cv2-border);
}

.cv2-saldo-caja-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.cv2-saldo-caja-stat {
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: var(--cv2-surface-2);
  border: 1px solid var(--cv2-border);
}

.cv2-saldo-caja-stat--highlight {
  background: rgba(74, 144, 217, 0.07);
  border-color: rgba(74, 144, 217, 0.18);
}

.cv2-saldo-caja-stat--wide {
  grid-column: 1 / -1;
}

.cv2-saldo-caja-stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cv2-muted);
  margin-bottom: 0.2rem;
}

.cv2-saldo-caja-stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cv2-text);
  line-height: 1.2;
}

.cv2-saldo-caja-stat-value.is-plus { color: var(--cv2-success); }
.cv2-saldo-caja-stat-value.is-minus { color: #c2410c; }
.cv2-saldo-caja-stat-value.is-return { color: #b45309; }

.cv2-saldo-caja-stat small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--cv2-muted);
}

.cv2-saldo-caja-actions {
  margin-top: 0.75rem;
}

.cv2-saldo-caja-meta {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.cv2-saldo-caja-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}

.cv2-saldo-caja-meta span { color: var(--cv2-muted); }
.cv2-saldo-caja-extra small { color: var(--cv2-muted); font-size: 0.78rem; }
.cv2-saldo-caja-off { margin: 0.5rem 0 0; font-size: 0.88rem; }

.cv2-saldo-mi {
  margin-top: 0.9rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px dashed var(--cv2-border);
  background: rgba(16, 185, 129, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cv2-saldo-mi-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.cv2-saldo-mi-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cv2-text);
}

.cv2-saldo-mi-text small {
  font-size: 0.72rem;
  color: var(--cv2-muted);
}

.cv2-saldo-mi-monto {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cv2-success);
}

.cv2-saldo-recarga {
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  background: var(--cv2-surface);
  box-shadow: var(--cv2-shadow);
  padding: 1.15rem 1.25rem;
}

.cv2-saldo-recarga h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.cv2-saldo-recarga-form {
  display: grid;
  gap: 0.85rem;
}

.cv2-saldo-btn-recarga { width: 100%; }

.cv2-saldo-recarga--off {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  color: var(--cv2-muted);
}

.cv2-saldo-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
}

.cv2-saldo-search-field {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.cv2-saldo-search-field i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cv2-muted);
  font-size: 0.85rem;
}

.cv2-saldo-search-field .cv2-input {
  padding-left: 2.15rem;
  width: 100%;
}

@media (max-width: 900px) {
  .cv2-saldo-search {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
  }

  .cv2-saldo-search-field {
    flex: 1 1 auto;
    min-width: 0;
  }

  .cv2-saldo-search .cv2-btn-sm {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.42rem 0.65rem;
  }
}

@media (max-width: 420px) {
  .cv2-saldo-search {
    gap: 0.3rem;
    padding: 0.55rem 0.6rem;
  }

  .cv2-saldo-search-field .cv2-input {
    font-size: 0.82rem;
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
  }

  .cv2-saldo-search .cv2-btn-sm {
    font-size: 0;
    padding: 0.42rem 0.48rem;
    min-width: 2.15rem;
    justify-content: center;
  }

  .cv2-saldo-search .cv2-btn-sm i {
    font-size: 0.82rem;
    margin: 0;
  }
}

.cv2-saldo-mov {
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  background: var(--cv2-surface);
  box-shadow: var(--cv2-shadow);
  overflow: visible;
}

.cv2-saldo-row--highlight {
  animation: cv2-saldo-row-pulse 1.1s ease-in-out 2;
  box-shadow: inset 0 0 0 2px rgba(212, 160, 23, 0.55);
}

@keyframes cv2-saldo-row-pulse {
  0%, 100% { background: transparent; }
  50% { background: rgba(212, 160, 23, 0.08); }
}

.cv2-saldo-mov-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--cv2-surface-2);
  border-bottom: 1px solid var(--cv2-border);
}

.cv2-saldo-mov-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.cv2-saldo-mov-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--cv2-muted);
}

.cv2-saldo-mov-filter .cv2-input { min-width: 160px; }

.cv2-saldo-table-wrap {
  border: none;
  border-radius: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.cv2-saldo-table {
  min-width: 100%;
  table-layout: auto;
}

.cv2-saldo-table th,
.cv2-saldo-table td {
  vertical-align: middle;
}

.cv2-saldo-table .cv2-saldo-txn {
  white-space: nowrap;
}

.cv2-saldo-table .cv2-saldo-emp {
  min-width: 8.5rem;
  word-break: break-word;
}

.cv2-saldo-table .is-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cv2-saldo-table thead th {
  background: #5a6268;
  color: #fff;
  border-color: #4e555b;
  font-size: 0.78rem;
  text-transform: none;
  white-space: nowrap;
}

.cv2-saldo-table .is-center { text-align: center; }
.cv2-saldo-table .is-highlight { color: var(--cv2-success); font-weight: 700; }

.cv2-saldo-txn {
  font-size: 0.8rem;
  background: var(--cv2-surface-2);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.cv2-saldo-emp {
  color: #2f6fad;
  font-weight: 600;
}

.cv2-saldo-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.cv2-saldo-badge.is-active { background: rgba(0, 172, 105, 0.15); color: var(--cv2-success); }
.cv2-saldo-badge.is-closed { background: rgba(230, 73, 160, 0.12); color: var(--cv2-danger); }
.cv2-saldo-badge.is-pause { background: rgba(244, 161, 0, 0.18); color: #9a6700; }
.cv2-saldo-badge.is-pending { background: rgba(47, 111, 173, 0.15); color: #2f6fad; }

.cv2-saldo-dev-pend-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.cv2-saldo-dev-pend-banner p {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
}

.cv2-saldo-detalle-devol-monto.is-pending {
  color: #2f6fad;
}

.cv2-saldo-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.cv2-saldo-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.cv2-saldo-actions-group--tools {
  padding: 0.15rem;
  border-radius: 10px;
  background: rgba(0, 122, 255, 0.05);
  border: 1px solid rgba(0, 122, 255, 0.1);
}

.cv2-saldo-actions-group--ops {
  gap: 0.35rem;
}

.cv2-saldo-action-form { display: inline-flex; margin: 0; }

.cv2-saldo-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0 0.7rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.cv2-saldo-act:active {
  transform: scale(0.97);
}

.cv2-saldo-act--icon {
  width: 2rem;
  min-width: 2rem;
  padding: 0;
}

.cv2-saldo-act i {
  font-size: 0.78rem;
  line-height: 1;
  flex-shrink: 0;
}

.cv2-saldo-act--tool {
  background: #ffffff;
  border-color: rgba(0, 122, 255, 0.16);
  color: #007aff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cv2-saldo-act--tool:hover {
  background: rgba(0, 122, 255, 0.08);
  border-color: rgba(0, 122, 255, 0.28);
  box-shadow: 0 2px 6px rgba(0, 122, 255, 0.12);
}

.cv2-saldo-toggle[aria-expanded="true"] {
  background: rgba(0, 122, 255, 0.14);
  border-color: rgba(0, 122, 255, 0.32);
  color: #0066d6;
}

.cv2-saldo-act--pause {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
  color: #b45309;
}

.cv2-saldo-act--pause:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.18);
}

.cv2-saldo-act--close {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.24);
  color: #dc2626;
}

.cv2-saldo-act--close:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.36);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.14);
}

.cv2-saldo-act--accept {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.26);
  color: #15803d;
}

.cv2-saldo-act--accept:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.38);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.14);
}

.cv2-saldo-act--play {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.26);
  color: #15803d;
}

.cv2-saldo-act--play:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.38);
}

.cv2-saldo-detalle-actions .cv2-saldo-act {
  min-height: 2.15rem;
  padding: 0 0.85rem;
  font-size: 0.78rem;
}

.cv2-saldo-empty {
  text-align: center;
  color: var(--cv2-muted);
  padding: 2rem !important;
}

.cv2-saldo-detalle td {
  background: var(--cv2-surface-2);
  padding: 0.75rem 1rem !important;
  border-top: none;
}

.cv2-saldo-detalle-inner {
  border: 1px solid var(--cv2-border);
  border-radius: 8px;
  background: var(--cv2-surface);
  overflow: hidden;
}

.cv2-saldo-detalle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.cv2-saldo-detalle-block {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--cv2-border);
}

.cv2-saldo-detalle-block:last-child {
  border-right: none;
}

.cv2-saldo-detalle-block h4 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cv2-muted);
}

.cv2-saldo-detalle-block h4 i {
  margin-right: 0.25rem;
  color: var(--cv2-accent);
}

.cv2-saldo-detalle-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
}

.cv2-saldo-detalle-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--cv2-border);
  flex-wrap: wrap;
}

.cv2-saldo-detalle-list strong {
  flex-shrink: 0;
  text-align: right;
}

.cv2-saldo-detalle-list li:last-child {
  border-bottom: none;
}

.cv2-saldo-detalle-list span {
  color: var(--cv2-muted);
  min-width: 0;
}

.cv2-saldo-detalle-list span small {
  display: block;
  font-size: 0.75rem;
  color: var(--cv2-muted);
}

.cv2-saldo-detalle-list .is-success {
  color: var(--cv2-success);
}

.cv2-saldo-detalle-pagos {
  max-height: 160px;
  overflow-y: auto;
}

.cv2-saldo-detalle-recargas {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(0, 122, 255, 0.16);
}

.cv2-saldo-detalle-recargas li span {
  color: var(--cv2-text);
}

.cv2-saldo-detalle-total {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  color: var(--cv2-muted);
}

.cv2-saldo-detalle-empty {
  margin: 0;
  font-size: 0.84rem;
  color: var(--cv2-muted);
}

.cv2-saldo-detalle-devol-monto {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cv2-success);
}

.cv2-saldo-detalle-devol-monto.is-closed {
  color: var(--cv2-accent);
}

.cv2-saldo-detalle-hint {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: var(--cv2-muted);
  line-height: 1.35;
}

.cv2-saldo-detalle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .cv2-saldo-table-wrap {
    overflow: visible;
    padding: 0.65rem;
    background: var(--cv2-surface-2);
  }

  .cv2-saldo-table {
    min-width: 0;
    display: block;
    border-collapse: separate;
  }

  .cv2-saldo-table thead {
    display: none;
  }

  .cv2-saldo-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .cv2-saldo-table tbody tr.cv2-saldo-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "turno turno estado"
      "empleado empleado empleado"
      "asig actual final"
      "acciones acciones acciones";
    gap: 0.45rem 0.55rem;
    padding: 0.85rem 0.9rem 0.7rem;
    background: var(--cv2-surface);
    border: 1px solid var(--cv2-border);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    margin-bottom: 0.85rem;
  }

  .cv2-saldo-table tbody tr.cv2-saldo-row:has(+ tr.cv2-saldo-detalle:not([hidden])) {
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  }

  .cv2-saldo-table:not(.cv2-saldo-table--manage) tbody tr.cv2-saldo-row {
    grid-template-areas:
      "turno turno estado"
      "empleado empleado empleado"
      "asig actual final";
  }

  .cv2-saldo-table tbody tr.cv2-saldo-row td {
    display: block;
    padding: 0;
    border: none;
    text-align: left;
    min-width: 0;
  }

  .cv2-saldo-row td:nth-child(1) { grid-area: turno; }
  .cv2-saldo-row td:nth-child(2) { grid-area: empleado; }
  .cv2-saldo-row td:nth-child(3) { grid-area: asig; }
  .cv2-saldo-row td:nth-child(4) { grid-area: actual; }
  .cv2-saldo-row td:nth-child(5) { grid-area: final; }
  .cv2-saldo-row td:nth-child(6) {
    grid-area: estado;
    justify-self: end;
    align-self: start;
  }
  .cv2-saldo-table--manage .cv2-saldo-row td:nth-child(7) {
    grid-area: acciones;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--cv2-border);
  }

  .cv2-saldo-row td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.12rem;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cv2-muted);
  }

  .cv2-saldo-row td:nth-child(1)::before,
  .cv2-saldo-row td:nth-child(2)::before,
  .cv2-saldo-row td:nth-child(6)::before,
  .cv2-saldo-table--manage .cv2-saldo-row td:nth-child(7)::before {
    display: none;
  }

  .cv2-saldo-row .cv2-saldo-emp {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .cv2-saldo-row td.is-num {
    text-align: left;
    font-size: 0.88rem;
    font-weight: 700;
  }

  .cv2-saldo-row td.is-num.is-highlight {
    color: var(--cv2-success);
  }

  .cv2-saldo-row .cv2-saldo-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cv2-saldo-row .cv2-saldo-toggle {
    display: none;
  }

  .cv2-saldo-table tbody tr.cv2-saldo-detalle:not([hidden]) {
    display: block;
    margin: 0 0 0.85rem;
    border: 1px solid var(--cv2-border);
    border-top: none;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
    background: var(--cv2-surface);
  }

  .cv2-saldo-table tbody tr.cv2-saldo-detalle[hidden] {
    display: none !important;
  }

  .cv2-saldo-detalle td {
    display: block;
    min-width: 0;
    padding: 0 !important;
    background: transparent;
  }

  .cv2-saldo-detalle-inner {
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .cv2-saldo-detalle-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .cv2-saldo-detalle-block {
    padding: 0.75rem 0.9rem;
    border-right: none;
    border-bottom: 1px solid var(--cv2-border);
  }

  .cv2-saldo-detalle-block:last-child {
    border-bottom: none;
  }

  .cv2-saldo-detalle-block h4 {
    font-size: 0.76rem;
  }

  .cv2-saldo-detalle-list {
    font-size: 0.84rem;
  }

  .cv2-saldo-detalle-devol-monto {
    font-size: 1.3rem;
  }

  .cv2-saldo-detalle-hint {
    font-size: 0.8rem;
  }

  .cv2-saldo-detalle-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cv2-saldo-table tbody tr.cv2-saldo-empty {
    display: block;
    padding: 1.25rem 1rem;
    border: 1px dashed var(--cv2-border);
    border-radius: 14px;
    background: var(--cv2-surface);
    text-align: center;
  }

  /* Historial caja — tarjetas en móvil */
  .cv2-caja-act-historial .cv2-table-wrap {
    overflow: visible;
    padding: 0.65rem;
    background: var(--cv2-surface-2);
    border: none;
  }

  .cv2-caja-act-table {
    min-width: 0;
    display: block;
    border-collapse: separate;
  }

  .cv2-caja-act-table thead {
    display: none;
  }

  .cv2-caja-act-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .cv2-caja-act-table tbody tr.cv2-caja-hist-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "apertura estado"
      "nombre nombre"
      "fecha hora"
      "saldo cierre"
      "devol devol";
    gap: 0.45rem 0.65rem;
    padding: 0.85rem 0.9rem 0.75rem;
    background: var(--cv2-surface);
    border: 1px solid var(--cv2-border);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    margin-bottom: 0.85rem;
  }

  .cv2-caja-act-table tbody tr.cv2-caja-hist-row.is-open {
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  }

  .cv2-caja-act-table tbody tr.cv2-caja-hist-row td {
    display: block;
    padding: 0;
    border: none;
    min-width: 0;
  }

  .cv2-caja-hist-row td:nth-child(1) { grid-area: apertura; }
  .cv2-caja-hist-row td:nth-child(2) { grid-area: nombre; }
  .cv2-caja-hist-row td:nth-child(3) { grid-area: fecha; }
  .cv2-caja-hist-row td:nth-child(4) { grid-area: hora; }
  .cv2-caja-hist-row td:nth-child(5) { grid-area: saldo; }
  .cv2-caja-hist-row td:nth-child(6) { grid-area: cierre; }
  .cv2-caja-hist-row td:nth-child(7) { grid-area: devol; }
  .cv2-caja-hist-row td:nth-child(8) {
    grid-area: estado;
    justify-self: end;
    align-self: start;
    display: block;
  }

  .cv2-caja-hist-row td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.12rem;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cv2-muted);
  }

  .cv2-caja-hist-row td:nth-child(1)::before,
  .cv2-caja-hist-row td:nth-child(8)::before {
    display: none;
  }

  .cv2-caja-act-table tbody tr.cv2-caja-hist-detalle:not([hidden]) {
    display: block;
    margin: 0 0 0.85rem;
    border: 1px solid var(--cv2-border);
    border-top: none;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
    background: var(--cv2-surface);
  }

  .cv2-caja-act-table tbody tr.cv2-caja-hist-detalle[hidden] {
    display: none !important;
  }

  .cv2-caja-hist-detalle td {
    display: block !important;
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    background: transparent;
  }

  .cv2-caja-hist-panel {
    padding: 0.85rem 0.9rem 1rem;
    border-top: 1px dashed var(--cv2-border);
  }

  .cv2-caja-hist-resumen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv2-caja-hist-grid {
    grid-template-columns: 1fr;
  }

  .cv2-caja-hist-timeline-body header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  /* Transacciones — recargas acordeón (tarjetas móvil) */
  .cv2-tx-table-wrap {
    overflow: visible;
    padding: 0.65rem;
    background: var(--cv2-surface-2);
    border: none;
  }

  .cv2-tx-accordion-table {
    min-width: 0;
    display: block;
    border-collapse: separate;
  }

  .cv2-tx-accordion-table thead {
    display: none;
  }

  .cv2-tx-accordion-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .cv2-tx-accordion-table tbody tr.cv2-tx-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.65rem;
    padding: 0.85rem 0.9rem 0.75rem;
    background: var(--cv2-surface);
    border: 1px solid var(--cv2-border);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    margin-bottom: 0.85rem;
  }

  .cv2-tx-accordion-table:not(.cv2-tx-table--no-caja) tbody tr.cv2-tx-row {
    grid-template-areas:
      "estado estado"
      "fecha fecha"
      "caja caja"
      "monto monto"
      "saldo entregado"
      "acciones acciones";
  }

  .cv2-tx-accordion-table.cv2-tx-table--no-caja tbody tr.cv2-tx-row {
    grid-template-areas:
      "estado estado"
      "fecha fecha"
      "monto monto"
      "saldo entregado"
      "acciones acciones";
  }

  .cv2-tx-accordion-table tbody tr.cv2-tx-row:has(+ tr.cv2-tx-detalle:not([hidden])) {
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  }

  .cv2-tx-accordion-table tbody tr.cv2-tx-row td {
    display: block;
    padding: 0;
    border: none;
    min-width: 0;
    text-align: left;
  }

  .cv2-tx-row td:nth-child(1) { grid-area: acciones; }
  .cv2-tx-row td:nth-child(2) { grid-area: fecha; }
  .cv2-tx-accordion-table:not(.cv2-tx-table--no-caja) .cv2-tx-row td:nth-child(3) { grid-area: caja; }
  .cv2-tx-accordion-table:not(.cv2-tx-table--no-caja) .cv2-tx-row td:nth-child(4) { grid-area: monto; }
  .cv2-tx-accordion-table:not(.cv2-tx-table--no-caja) .cv2-tx-row td:nth-child(5) { grid-area: estado; }
  .cv2-tx-accordion-table:not(.cv2-tx-table--no-caja) .cv2-tx-row td:nth-child(6) { grid-area: saldo; }
  .cv2-tx-accordion-table:not(.cv2-tx-table--no-caja) .cv2-tx-row td:nth-child(7) { grid-area: entregado; }

  .cv2-tx-accordion-table.cv2-tx-table--no-caja .cv2-tx-row td:nth-child(3) { grid-area: monto; }
  .cv2-tx-accordion-table.cv2-tx-table--no-caja .cv2-tx-row td:nth-child(4) { grid-area: estado; }
  .cv2-tx-accordion-table.cv2-tx-table--no-caja .cv2-tx-row td:nth-child(5) { grid-area: saldo; }
  .cv2-tx-accordion-table.cv2-tx-table--no-caja .cv2-tx-row td:nth-child(6) { grid-area: entregado; }

  .cv2-tx-accordion-table:not(.cv2-tx-table--no-caja) .cv2-tx-row td:nth-child(5),
  .cv2-tx-accordion-table.cv2-tx-table--no-caja .cv2-tx-row td:nth-child(4) {
    justify-self: end;
    align-self: start;
  }

  .cv2-tx-row td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.12rem;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cv2-muted);
  }

  .cv2-tx-row td:nth-child(1)::before,
  .cv2-tx-accordion-table:not(.cv2-tx-table--no-caja) .cv2-tx-row td:nth-child(5)::before,
  .cv2-tx-accordion-table.cv2-tx-table--no-caja .cv2-tx-row td:nth-child(4)::before {
    display: none;
  }

  .cv2-tx-row .cv2-tx-row-actions {
    justify-content: flex-start;
  }

  .cv2-tx-accordion-table tbody tr.cv2-tx-detalle:not([hidden]) {
    display: block;
    margin: 0 0 0.85rem;
    border: 1px solid var(--cv2-border);
    border-top: none;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
    background: var(--cv2-surface);
  }

  .cv2-tx-accordion-table tbody tr.cv2-tx-detalle[hidden] {
    display: none !important;
  }

  .cv2-tx-accordion-table tbody tr.cv2-tx-detalle td {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    padding: 0 !important;
    background: transparent;
  }
}

/* Dashboard / caja operaciones en vivo */
.cv2-dash-ops {
  border: 1px solid var(--cv2-border);
  border-radius: var(--dash-radius, 10px);
  background: var(--cv2-surface);
  box-shadow: 0 1px 4px rgba(33, 40, 50, 0.05);
  overflow: hidden;
  margin-bottom: var(--dash-gap, 0.65rem);
}

.cv2-dash-ops-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: #1a273a;
  color: #fff;
}

.cv2-dash-ops-head.is-warn { background: #9a6700; }

.cv2-dash-ops-head h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.cv2-dash-ops-head-meta {
  margin: 0.1rem 0 0;
  font-size: 0.68rem;
  opacity: 0.88;
  font-weight: 500;
}

.cv2-dash-ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
}

.cv2-dash-ops-block h4 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--cv2-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cv2-dash-ops-value {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2f6fad;
}

.cv2-dash-ops-datetime {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cv2-text);
}
.cv2-dash-ops-datetime i {
  color: var(--cv2-accent);
  margin-right: 0.2rem;
}

.cv2-dash-ops-block small { color: var(--cv2-muted); font-size: 0.78rem; }

.cv2-dash-ops-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.cv2-dash-ops-list li { padding: 0.3rem 0; border-bottom: 1px solid var(--cv2-border); }
.cv2-dash-ops-list li:last-child { border-bottom: none; }

.cv2-dash-ops-ok {
  margin: 0;
  color: var(--cv2-success);
  font-size: 0.88rem;
  font-weight: 600;
}

.cv2-dash-ops-warn {
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: rgba(244, 161, 0, 0.12);
  color: #9a6700;
  font-size: 0.78rem;
  border-top: 1px solid rgba(244, 161, 0, 0.25);
}

/* Actividad de caja */
.cv2-caja-act { display: flex; flex-direction: column; gap: 1rem; }

.cv2-caja-act-banner {
  background: linear-gradient(135deg, #1e5a8a 0%, #2f6fad 100%);
  color: #fff;
  border-radius: var(--cv2-radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--cv2-shadow);
}

.cv2-caja-act-banner h1 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.cv2-caja-act-banner p { margin: 0; opacity: 0.9; font-size: 0.88rem; }

.cv2-caja-act-resumen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.cv2-caja-act-resumen > div {
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  padding: 0.75rem 1rem;
}

.cv2-caja-act-resumen span {
  display: block;
  font-size: 0.75rem;
  color: var(--cv2-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cv2-caja-act-resumen strong { font-size: 1.15rem; }
.cv2-caja-act-resumen .is-highlight strong { color: #2f6fad; }
.cv2-caja-act-resumen .is-cierre strong { color: var(--cv2-success); }

.cv2-caja-cierre-calc {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--cv2-success) 35%, var(--cv2-border));
  border-radius: var(--cv2-radius);
  background: color-mix(in srgb, var(--cv2-success) 6%, var(--cv2-surface));
}

.cv2-caja-cierre-calc h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.cv2-caja-cierre-calc-hint {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--cv2-muted);
}

.cv2-caja-cierre-calc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.cv2-caja-cierre-calc-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--cv2-border);
}

.cv2-caja-cierre-calc-list li.is-sub {
  font-weight: 600;
  color: var(--cv2-text);
}

.cv2-caja-cierre-calc-list .is-neg { color: var(--cv2-danger); }
.cv2-caja-cierre-calc-list .is-pos { color: var(--cv2-success); }

.cv2-caja-cierre-calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 2px solid var(--cv2-border);
  font-size: 1rem;
}

.cv2-caja-cierre-calc-total strong {
  font-size: 1.45rem;
  color: var(--cv2-success);
}

.cv2-caja-cierre-calc-note {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--cv2-muted);
}

.cv2-caja-cierre-calc-note.is-warn {
  color: #9a6700;
}

.cv2-caja-cierre-calc.is-blocked {
  opacity: 0.88;
}

.cv2-saldo-devol-calc {
  margin-bottom: 0.75rem;
}

.cv2-saldo-devol-form .cv2-field {
  margin-bottom: 0.65rem;
}

.cv2-saldo-devol-form .cv2-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.cv2-saldo-devol-form .cv2-field small {
  color: var(--cv2-muted);
  font-weight: 400;
}

.cv2-caja-asig-cierre-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem;
}

.cv2-caja-asig-cierre-esp {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.75rem;
  color: var(--cv2-muted);
}

.cv2-caja-asig-cierre-esp strong {
  font-size: 0.9rem;
  color: var(--cv2-text);
}

.cv2-caja-asig-cierre-fields .cv2-field {
  margin: 0;
}

.cv2-caja-asig-cierre-fields .cv2-input-sm {
  width: 6.5rem;
}

.cv2-transacciones-reintegro-inputs .cv2-field {
  margin-top: 0.35rem;
}

.cv2-transacciones-reintegro-inputs .cv2-field small {
  display: block;
  margin-top: 0.15rem;
  color: var(--cv2-muted);
}

.cv2-caja-act-check-link {
  margin: 0.5rem 0 0;
}

.cv2-caja-act-warn--final {
  margin-top: 0.75rem;
  font-weight: 600;
}

.cv2-caja-act-warn--final a {
  color: inherit;
  text-decoration: underline;
}

.cv2-caja-act-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.cv2-caja-act-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 120px;
  padding: 1rem;
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  background: var(--cv2-surface);
  box-shadow: var(--cv2-shadow);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.cv2-caja-act-card:hover:not(.is-disabled):not(:disabled) {
  border-color: var(--cv2-accent);
  transform: translateY(-2px);
}

.cv2-caja-act-card i { font-size: 2rem; color: #6c757d; }
.cv2-caja-act-card strong { font-size: 0.92rem; }
.cv2-caja-act-card small { color: var(--cv2-muted); font-size: 0.78rem; }

.cv2-caja-act-card--link {
  text-decoration: none;
  color: inherit;
}

.cv2-caja-act-card--link:not(.is-disabled):hover {
  border-color: var(--cv2-accent);
  transform: translateY(-2px);
}

.cv2-caja-act-card.is-disabled,
.cv2-caja-act-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.cv2-caja-act-panel {
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  background: var(--cv2-surface);
  padding: 1rem 1.15rem;
  box-shadow: var(--cv2-shadow);
}

.cv2-caja-act-panel h3 { margin: 0 0 0.75rem; font-size: 1rem; }

.cv2-caja-act-panel--compact {
  padding: 0.85rem 1rem;
}

.cv2-caja-act-form--compact {
  gap: 0.55rem;
}

.cv2-caja-act-form--compact > .cv2-btn {
  margin-top: 0;
  width: 100%;
}

.cv2-caja-act-panel--wide {
  max-width: none;
}

.cv2-caja-corte-simple {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cv2-border);
}

.cv2-caja-corte-simple h4 {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--cv2-muted);
  font-weight: 600;
}

.cv2-caja-cambio-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--cv2-radius);
  background: linear-gradient(135deg, rgba(0, 172, 105, 0.12), rgba(47, 111, 173, 0.1));
  border: 1px solid rgba(0, 172, 105, 0.35);
}

.cv2-caja-cambio-banner p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--cv2-muted);
}

.cv2-caja-cambio-aceptar-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.cv2-caja-cambio-aceptar-form .cv2-input {
  min-width: 160px;
}

.cv2-caja-autorizacion-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.85rem;
  border-radius: var(--cv2-radius);
  border: 1px solid var(--cv2-border);
}

.cv2-caja-autorizacion-banner p {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: var(--cv2-muted);
  line-height: 1.4;
}

.cv2-caja-autorizacion-banner--responsable {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(47, 111, 173, 0.08));
  border-color: rgba(0, 122, 255, 0.28);
}

.cv2-caja-autorizacion-banner--solicita {
  background: linear-gradient(135deg, rgba(244, 161, 0, 0.1), rgba(212, 160, 23, 0.06));
  border-color: rgba(244, 161, 0, 0.28);
}

.cv2-caja-autorizacion-list {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cv2-caja-autorizacion-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cv2-caja-autorizacion-list li span small {
  display: block;
  margin-top: 0.15rem;
  color: var(--cv2-muted);
  font-size: 0.78rem;
}

.cv2-caja-autorizacion-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cv2-caja-autorizacion-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.cv2-inline-form {
  display: inline;
  margin: 0;
}

.cv2-caja-cambios-box {
  margin-top: 0.75rem;
}

@media (max-width: 900px) {
  .cv2-caja-cambio-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cv2-caja-cambio-aceptar-form {
    flex-direction: column;
    align-items: stretch;
  }

  .cv2-caja-cambio-aceptar-form .cv2-input,
  .cv2-caja-cambio-aceptar-form .cv2-btn {
    width: 100%;
  }
}

.cv2-caja-act-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem;
}

.cv2-caja-act-form .cv2-field {
  margin-bottom: 0;
  min-width: 180px;
  flex: 1 1 180px;
}

.cv2-caja-act-form .cv2-input,
.cv2-caja-act-form .cv2-select {
  min-height: 2.45rem;
  box-sizing: border-box;
}

/* Alinear botones con el input (no con la etiqueta del campo) */
.cv2-caja-act-form > .cv2-btn {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 1.15rem;
  min-height: 2.45rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

.cv2-caja-act-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.cv2-caja-act-checks section {
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  padding: 0.85rem 1rem;
  background: var(--cv2-surface-2);
}

.cv2-caja-act-checks h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}

.cv2-caja-act-checks ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.cv2-caja-act-checks li { padding: 0.25rem 0; }

.cv2-caja-maquinas-play-list { display: flex; flex-direction: column; gap: 0.5rem; }
.cv2-caja-maquinas-play-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cv2-caja-maquinas-play-all { margin-top: 0.65rem; }
.cv2-caja-act-check-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--cv2-muted);
}

.cv2-caja-act-ok {
  margin: 0;
  color: var(--cv2-success);
  font-size: 0.88rem;
  font-weight: 600;
}

.cv2-caja-act-warn {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: rgba(244, 161, 0, 0.12);
  color: #9a6700;
  border-radius: var(--cv2-radius);
  font-size: 0.88rem;
}

.cv2-caja-act-asig {
  margin-bottom: 1rem;
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  overflow: hidden;
}

.cv2-caja-act-asig header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--cv2-surface-2);
  border-bottom: 1px solid var(--cv2-border);
}

.cv2-caja-act-asig h4 { margin: 0; font-size: 0.85rem; }
.cv2-caja-act-inline { display: inline; margin: 0; }

.cv2-caja-act-historial {
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  background: var(--cv2-surface);
  overflow: hidden;
  box-shadow: var(--cv2-shadow);
}

.cv2-caja-act-historial-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--cv2-border);
  background: var(--cv2-surface-2);
}

.cv2-caja-act-historial-meta,
.cv2-caja-act-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--cv2-muted);
}

.cv2-caja-act-table thead th {
  background: #5a6268;
  color: #fff;
  border-color: #4e555b;
  font-size: 0.78rem;
  white-space: nowrap;
}

.cv2-caja-act-table .is-highlight { color: var(--cv2-success); font-weight: 700; }

.cv2-caja-act-link { color: #2f6fad; font-weight: 700; }
.cv2-caja-act-eye { color: #2f6fad; margin-left: 0.35rem; font-size: 0.8rem; }

.cv2-caja-act-st {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.cv2-caja-act-st--abierta { background: rgba(0, 172, 105, 0.15); color: var(--cv2-success); }
.cv2-caja-act-st--pausada { background: rgba(244, 161, 0, 0.18); color: #9a6700; }
.cv2-caja-act-st--cerrada { background: rgba(108, 117, 125, 0.2); color: #6c757d; }

.cv2-caja-act-recarga-hint {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--cv2-muted);
}

.cv2-caja-act-recargas-list {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--cv2-border);
}

.cv2-caja-act-recargas-list h4 {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
}

.cv2-caja-act-recargas-list ul,
.cv2-caja-recargas-box ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.88rem;
}

.cv2-caja-act-recargas-list li,
.cv2-caja-recargas-box li {
  padding: 0.25rem 0;
}

.cv2-caja-act-recargas-list code,
.cv2-caja-recargas-box code {
  font-size: 0.8rem;
  background: var(--cv2-surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.cv2-caja-act-recarga-empty {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--cv2-muted);
}

.cv2-caja-hist-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-right: 0.15rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: color-mix(in srgb, var(--cv2-accent) 10%, transparent);
  color: var(--cv2-accent);
  cursor: pointer;
  vertical-align: middle;
}

.cv2-caja-hist-toggle:hover {
  background: color-mix(in srgb, var(--cv2-accent) 18%, transparent);
}

.cv2-caja-hist-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.cv2-caja-hist-row.is-open .cv2-caja-hist-chevron {
  transform: rotate(90deg);
}

.cv2-caja-hist-row.is-accordion {
  cursor: pointer;
}

.cv2-caja-hist-row.is-open {
  background: color-mix(in srgb, var(--cv2-accent) 6%, var(--cv2-surface));
}

.cv2-caja-hist-count {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--cv2-muted);
  font-weight: 500;
}

.cv2-caja-hist-recargas td,
.cv2-caja-hist-detalle td {
  background: var(--cv2-surface-2);
  padding: 0 !important;
  border-top: none;
  display: table-cell;
  width: 100%;
  min-width: 0;
}

.cv2-caja-hist-panel {
  padding: 1rem 1.1rem 1.15rem;
  border-top: 2px solid color-mix(in srgb, var(--cv2-accent) 25%, var(--cv2-border));
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cv2-caja-hist-resumen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.cv2-caja-hist-resumen > div {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
}

.cv2-caja-hist-resumen span {
  display: block;
  font-size: 0.72rem;
  color: var(--cv2-muted);
}

.cv2-caja-hist-resumen strong {
  font-size: 0.92rem;
}

.cv2-caja-hist-section {
  margin-bottom: 1rem;
}

.cv2-caja-hist-section h5 {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  color: var(--cv2-text);
}

.cv2-caja-hist-section h5 i {
  margin-right: 0.35rem;
  color: var(--cv2-accent);
}

.cv2-caja-hist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.cv2-caja-hist-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.cv2-caja-hist-list li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--cv2-border) 80%, transparent);
  line-height: 1.45;
}

.cv2-caja-hist-list li:last-child { border-bottom: none; }

.cv2-caja-hist-list time {
  display: inline-block;
  min-width: 9.5rem;
  color: var(--cv2-muted);
  font-size: 0.78rem;
}

.cv2-caja-hist-list em,
.cv2-caja-hist-list small {
  display: block;
  color: var(--cv2-muted);
  font-size: 0.76rem;
}

.cv2-caja-hist-tag {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
}

.cv2-caja-hist-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv2-caja-hist-timeline-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--cv2-border) 70%, transparent);
}

.cv2-caja-hist-timeline-item:last-child { border-bottom: none; }

/* Sangría: asignaciones y reintegros anidados bajo movimientos de caja */
.cv2-caja-hist-timeline-item--asignacion {
  margin-left: 1.35rem;
  padding-left: 0.85rem;
  border-left: 2px solid color-mix(in srgb, var(--cv2-accent) 38%, var(--cv2-border));
}

.cv2-caja-hist-timeline-item--reintegro {
  margin-left: 2.7rem;
  padding-left: 0.85rem;
  border-left: 2px solid color-mix(in srgb, var(--cv2-warning) 50%, var(--cv2-border));
}

.cv2-caja-hist-timeline-item--asignacion .cv2-caja-hist-timeline-icon,
.cv2-caja-hist-timeline-item--reintegro .cv2-caja-hist-timeline-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-basis: 1.5rem;
  font-size: 0.68rem;
}

.cv2-caja-hist-timeline-icon {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cv2-accent) 12%, var(--cv2-surface));
  color: var(--cv2-accent);
  font-size: 0.75rem;
}

.cv2-caja-hist-timeline-body {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
}

.cv2-caja-hist-timeline-body header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
}

.cv2-caja-hist-timeline-body time {
  font-size: 0.76rem;
  color: var(--cv2-muted);
}

.cv2-caja-hist-timeline-body p {
  margin: 0.15rem 0 0;
}

.cv2-caja-hist-monto {
  margin-left: 0.35rem;
  font-weight: 700;
  color: var(--cv2-success);
}

.cv2-caja-hist-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--cv2-border);
}

.cv2-caja-hist-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cv2-muted);
}

.cv2-reporte-caja-filtro .cv2-field-grow {
  flex: 1 1 14rem;
  min-width: 12rem;
}

.cv2-reporte-caja-filtro .cv2-field-grow .cv2-select {
  width: 100%;
  max-width: 28rem;
}

.cv2-reporte-caja-hist {
  margin-top: 1rem;
}

.cv2-caja-pendiente-note {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.75rem 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(244, 161, 0, 0.18);
  border-left: 3px solid rgba(230, 175, 65, 0.75);
  background: linear-gradient(135deg, rgba(255, 249, 236, 0.95), rgba(255, 245, 228, 0.7));
  font-size: 0.82rem;
  color: #8f7340;
  line-height: 1.45;
}

.cv2-caja-pendiente-note--page {
  margin-top: 0;
  margin-bottom: 1rem;
}

.cv2-caja-pendiente-note > i {
  flex-shrink: 0;
  margin-top: 0.12rem;
  font-size: 0.78rem;
  color: rgba(210, 155, 55, 0.85);
}

.cv2-caja-pendiente-note strong {
  color: #7a5f2a;
  font-weight: 600;
}

.cv2-caja-pendiente-note ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: #9a8050;
}

.cv2-caja-pendiente-note-hint {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #a89468;
  font-style: italic;
}

.cv2-turno-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(120, 95, 50, 0.08);
  color: #7a6340;
  border: 1px solid rgba(120, 95, 50, 0.14);
  white-space: nowrap;
}

.cv2-transacciones .cv2-turno-tag {
  font-family: var(--cv2-font);
  font-weight: 600;
  letter-spacing: -0.01em;
  background: rgba(0, 122, 255, 0.08);
  color: #0066cc;
  border-color: rgba(0, 122, 255, 0.14);
}

.cv2-transacciones-turnos {
  margin-bottom: 0;
}

.cv2-transacciones-turnos.cv2-card-compact {
  padding: 0.45rem 0.65rem;
}

.cv2-transacciones-kpis-dia {
  margin: 0;
  font-size: 0.82rem;
  color: var(--cv2-muted);
}

.cv2-dia-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cv2-dia-nav .cv2-input {
  flex: 1;
  min-width: 0;
}

.cv2-field-dia-nav {
  min-width: 220px;
}

.cv2-transacciones-dia-resumen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(0, 122, 255, 0.04);
  border: 1px solid rgba(0, 122, 255, 0.1);
}

.cv2-transacciones-turnos .cv2-card-head p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--cv2-muted);
}

.cv2-tx-turno-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 12px;
  background: rgba(0, 122, 255, 0.04);
  border: 1px solid rgba(0, 122, 255, 0.1);
}

.cv2-tx-turno-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-family: var(--cv2-font);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  color: #3a3a3c;
  background: #ffffff;
  border: 1px solid rgba(0, 122, 255, 0.14);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cv2-tx-turno-pill:hover {
  background: rgba(0, 122, 255, 0.06);
  border-color: rgba(0, 122, 255, 0.28);
  color: #007aff;
}

.cv2-tx-turno-pill.is-active {
  background: #007aff;
  border-color: #007aff;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.38);
  transform: translateY(-1px);
}

.cv2-tx-turno-pill.is-active:hover {
  background: #0066d6;
  border-color: #0066d6;
  color: #ffffff;
}

.cv2-tx-turno-pill .cv2-turno-tag {
  margin: 0;
  font-size: 0.8rem;
}

.cv2-tx-turno-pill.is-active .cv2-turno-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.cv2-tx-turno-pill.is-active > span:last-child {
  color: #ffffff;
  font-weight: 700;
}

.cv2-tx-turno-context {
  padding: 0 1rem 1rem;
}

.cv2-tx-turno-context-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  background: rgba(120, 95, 50, 0.05);
  border: 1px solid rgba(120, 95, 50, 0.1);
}

.cv2-tx-turno-context-meta {
  flex: 1 1 220px;
  font-size: 0.84rem;
  color: var(--cv2-muted);
}

.cv2-caja-turnos-resumen {
  margin-top: 0.75rem;
}

.cv2-caja-hist-panel--lazy:empty {
  min-height: 0;
}

.cv2-loading-inline {
  margin: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--cv2-muted);
  text-align: center;
}

.cv2-caja-recargas-box strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

/* Pestañas administración */
.cv2-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--cv2-border);
  padding-bottom: 0;
}

.cv2-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  color: var(--cv2-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.cv2-tab:hover { color: var(--cv2-text); }

.cv2-tab.is-active {
  color: #2f6fad;
  border-bottom-color: #2f6fad;
}

.cv2-tab-panel { display: block; }
.cv2-tab-panel[hidden] { display: none !important; }

.cv2-tab-hint {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--cv2-radius);
  background: rgba(47, 111, 173, 0.08);
  color: #2f6fad;
  font-size: 0.88rem;
}

.cv2-maq-form-card {
  margin-bottom: 1rem;
}

.cv2-maq-create-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 0.65rem 0.75rem;
  align-items: end;
}

.cv2-maq-create-grid .cv2-field {
  margin: 0;
  min-width: 0;
}

.cv2-maq-create-grid .cv2-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cv2-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv2-maq-create-grid .cv2-input,
.cv2-maq-create-grid .cv2-btn {
  width: 100%;
  min-height: 2.5rem;
  height: 2.5rem;
  box-sizing: border-box;
}

.cv2-maq-create-grid .cv2-input-readonly {
  background: var(--cv2-surface-2);
  color: var(--cv2-text);
  font-weight: 600;
  cursor: default;
}

.cv2-maq-create-grid #admFormPreview {
  color: #2f6fad;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cv2-maq-create-actions .cv2-btn {
  white-space: nowrap;
  padding-inline: 1rem;
}

@media (max-width: 1200px) {
  .cv2-maq-create-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cv2-maq-create-actions {
    grid-column: 1 / -1;
  }

  .cv2-maq-create-actions .cv2-btn {
    width: auto;
    min-width: 10rem;
  }
}

@media (max-width: 640px) {
  .cv2-maq-create-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cv2-maq-form-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
}

.cv2-maq-naming-hint {
  margin: 0 0 0.85rem;
  color: var(--cv2-muted);
  font-size: 0.88rem;
}

.cv2-maq-preview-field {
  min-width: 12rem;
}

.cv2-maq-preview {
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: var(--cv2-radius);
  background: rgba(47, 111, 173, 0.08);
  color: #2f6fad;
  font-size: 0.88rem;
  font-weight: 600;
}

.cv2-maq-zone-st {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.cv2-maq-zone-st.is-on { background: rgba(0, 172, 105, 0.15); color: var(--cv2-success); }
.cv2-maq-zone-st.is-off { background: rgba(108, 117, 125, 0.2); color: #6c757d; }

.cv2-actions-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
}

.cv2-maq-actions .cv2-act-btn,
.cv2-maq-card-actions .cv2-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.38rem 0.62rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
}

.cv2-maq-actions .cv2-act-btn:active,
.cv2-maq-card-actions .cv2-act-btn:active {
  transform: scale(0.97);
}

.cv2-maq-actions .cv2-act-btn i,
.cv2-maq-card-actions .cv2-act-btn i {
  font-size: 0.82rem;
  pointer-events: none;
}

.cv2-maq-actions .cv2-act-btn.is-edit,
.cv2-maq-card-actions .cv2-act-btn.is-edit {
  background: rgba(47, 111, 173, 0.12);
  border-color: rgba(47, 111, 173, 0.35);
  color: #2f6fad;
}

.cv2-maq-actions .cv2-act-btn.is-edit:hover,
.cv2-maq-card-actions .cv2-act-btn.is-edit:hover {
  background: rgba(47, 111, 173, 0.22);
}

.cv2-maq-actions .cv2-act-btn.is-on,
.cv2-maq-card-actions .cv2-act-btn.is-on {
  background: rgba(0, 172, 105, 0.12);
  border-color: rgba(0, 172, 105, 0.35);
  color: #00875a;
}

.cv2-maq-actions .cv2-act-btn.is-on:hover,
.cv2-maq-card-actions .cv2-act-btn.is-on:hover {
  background: rgba(0, 172, 105, 0.22);
}

.cv2-maq-actions .cv2-act-btn.is-maint,
.cv2-maq-card-actions .cv2-act-btn.is-maint {
  background: rgba(244, 161, 0, 0.14);
  border-color: rgba(244, 161, 0, 0.45);
  color: #9a6700;
}

.cv2-maq-actions .cv2-act-btn.is-maint:hover,
.cv2-maq-card-actions .cv2-act-btn.is-maint:hover {
  background: rgba(244, 161, 0, 0.24);
}

.cv2-maq-actions .cv2-act-btn.is-off,
.cv2-maq-card-actions .cv2-act-btn.is-off {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.35);
  color: #c92a2a;
}

.cv2-maq-actions .cv2-act-btn.is-off:hover,
.cv2-maq-card-actions .cv2-act-btn.is-off:hover {
  background: rgba(220, 53, 69, 0.18);
}

.cv2-maq-actions .cv2-act-btn.is-history,
.cv2-maq-card-actions .cv2-act-btn.is-history {
  background: rgba(108, 117, 125, 0.1);
  border-color: rgba(108, 117, 125, 0.28);
  color: #495057;
}

.cv2-maq-actions .cv2-act-btn.is-history:hover,
.cv2-maq-card-actions .cv2-act-btn.is-history:hover {
  background: rgba(108, 117, 125, 0.18);
}

@media (max-width: 1280px) {
  .cv2-maq-actions .cv2-act-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .cv2-maq-actions .cv2-act-btn,
  .cv2-maq-card-actions .cv2-act-btn {
    width: 2rem;
    min-width: 2rem;
    padding: 0.38rem;
  }
}

@media (min-width: 1281px) {
  .cv2-table .cv2-maq-actions {
    min-width: 14rem;
  }
}

/* ——— Admin máquinas: pestañas por zona + tarjetas ——— */
.adm-maq-toolbar {
  margin-bottom: 0.75rem;
}

.cv2-maq-zone-tabs .cv2-zone-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cv2-maq-zone-tabs .cv2-zone-tab.is-inactive {
  opacity: 0.72;
  border-style: dashed;
}

.cv2-maq-zone-tabs .cv2-zone-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
}

.cv2-maq-zone-tabs .cv2-zone-tab.is-active .cv2-zone-tab-count {
  background: rgba(255, 255, 255, 0.22);
}

.cv2-maq-admin-board {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.cv2-maq-admin-board > .cv2-maq-admin-grid {
  margin-bottom: 0;
}

.cv2-maq-admin-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.15rem 0;
  color: var(--cv2-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  user-select: none;
}

.cv2-maq-admin-divider::before,
.cv2-maq-admin-divider::after {
  content: '';
  flex: 1;
  border-top: 1px dashed var(--cv2-border);
}

.cv2-maq-admin-divider span {
  flex-shrink: 0;
  padding: 0 0.35rem;
}

.cv2-maq-admin-divider.is-maint span {
  color: var(--cv2-maq-maint);
}

.cv2-maq-admin-divider.is-off span {
  color: var(--cv2-maq-inactive);
}

.cv2-maq-admin-card.is-admin-active {
  border-color: rgba(0, 172, 105, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 172, 105, 0.18);
}

.cv2-maq-admin-card.is-admin-active .cv2-machine-icon {
  color: var(--cv2-maq-active);
}

.cv2-maq-admin-card.is-admin-maint {
  border-color: rgba(220, 53, 69, 0.55);
  box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.18);
}

.cv2-maq-admin-card.is-admin-maint .cv2-machine-icon {
  color: var(--cv2-maq-maint);
}

.cv2-maq-admin-card.is-admin-inactive {
  border-color: rgba(108, 117, 125, 0.45);
  border-style: dashed;
  opacity: 0.78;
}

.cv2-maq-admin-card.is-admin-inactive .cv2-machine-icon {
  color: var(--cv2-maq-inactive);
}

.cv2-badge-admin-active {
  background: rgba(0, 172, 105, 0.15);
  color: #00875a;
}

.cv2-badge-admin-maint {
  background: rgba(220, 53, 69, 0.12);
  color: #c92a2a;
}

.cv2-badge-admin-inactive {
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
}

.cv2-maq-admin-grid {
  margin-bottom: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

.cv2-maq-admin-card {
  min-height: 168px;
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.cv2-maq-admin-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.85rem 0.65rem 0.65rem;
  flex: 1;
}

.cv2-maq-admin-card .cv2-machine-name {
  font-size: 0.82rem;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
}

.cv2-maq-admin-card .cv2-machine-code {
  font-size: 0.66rem;
}

.cv2-maq-admin-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  margin-top: 0.15rem;
  font-size: 0.66rem;
  color: var(--cv2-muted);
}

.cv2-maq-admin-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.cv2-maq-admin-meta .is-playing {
  color: var(--cv2-salon-play);
  font-weight: 700;
}

.cv2-maq-admin-notes {
  margin: 0.15rem 0 0;
  font-size: 0.66rem;
  color: var(--cv2-muted);
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
}

.cv2-maq-admin-card-foot {
  border-top: 1px solid var(--cv2-border);
  padding: 0.45rem 0.4rem;
  background: var(--cv2-surface-2);
}

.cv2-maq-card-actions {
  justify-content: center;
  gap: 0.3rem;
}

.cv2-maq-card-actions .cv2-act-btn {
  min-height: 1.75rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.68rem;
}

.cv2-maq-card-actions .cv2-act-label {
  display: none;
}

.cv2-maq-admin-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--cv2-muted);
  border: 1px dashed var(--cv2-border);
  border-radius: var(--cv2-radius);
  background: var(--cv2-surface);
}

.cv2-maq-admin-empty i {
  font-size: 2rem;
  opacity: 0.35;
  margin-bottom: 0.65rem;
}

.cv2-maq-admin-empty p {
  margin: 0;
}

.cv2-maq-admin-empty-hint {
  margin-top: 0.35rem !important;
  font-size: 0.85rem;
}

.cv2-maq-create-zone {
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: var(--cv2-radius);
  background: rgba(47, 111, 173, 0.08);
  color: #2f6fad;
  font-size: 0.88rem;
  font-weight: 700;
}

.cv2-maq-prefijo-label {
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: var(--cv2-radius);
  background: rgba(0, 172, 105, 0.08);
  color: #00875a;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cv2-badge-inactive {
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
}

/* Inputs y selects siempre dentro del ancho en móvil */
@media (max-width: 900px) {
  .cv2-input,
  .cv2-select,
  .cv2-main-inner img,
  .cv2-main-inner video,
  .cv2-main-inner canvas {
    max-width: 100%;
  }

  .cv2-field .cv2-input,
  .cv2-field .cv2-select {
    width: 100%;
  }

  .cv2-stat .cv2-toolbar {
    margin-bottom: 0;
  }

  .cv2-empresa-grid {
    grid-template-columns: 1fr;
  }

  .cv2-kds-grid {
    grid-template-columns: 1fr;
  }

  .cv2-kds-header {
    flex-direction: column;
    align-items: stretch;
  }

  .cv2-kds-header-stats {
    flex-wrap: wrap;
  }
}

/* ——— Gastos por consumo / compras ——— */
.cv2-table .num,
.cv2-gc-items-table .num { text-align: right; white-space: nowrap; }
.cv2-table .center,
.cv2-gc-items-table .center { text-align: center; }
.cv2-table-compact th,
.cv2-table-compact td { font-size: 0.84rem; vertical-align: middle; }
.cv2-actions-cell { white-space: nowrap; }

.cv2-gc-modal {
  max-width: 820px;
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
}

.cv2-gc-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.cv2-gc-modal-head {
  position: relative;
  padding: 1.15rem 1.25rem 1rem;
  border-bottom: 1px solid var(--cv2-border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--cv2-accent) 10%, var(--cv2-surface)), var(--cv2-surface));
}

.cv2-gc-modal-head .cv2-cli-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
}

.cv2-gc-modal-title-wrap h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cv2-gc-modal-title-wrap p {
  margin: 0;
  color: var(--cv2-muted);
  font-size: 0.85rem;
}

.cv2-gc-modal-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.cv2-gc-section + .cv2-gc-section {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--cv2-border);
}

.cv2-gc-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cv2-text);
}

.cv2-gc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.cv2-gc-section-head .cv2-gc-section-title { margin: 0; }

.cv2-gc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.cv2-gc-field-wide { grid-column: 1 / -1; }

.cv2-gc-tipo-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cv2-gc-tipo-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--cv2-border);
  background: var(--cv2-surface-2);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.cv2-gc-tipo-opt input { accent-color: var(--cv2-accent); }

.cv2-gc-tipo-opt:has(input:checked) {
  border-color: color-mix(in srgb, var(--cv2-accent) 45%, var(--cv2-border));
  background: color-mix(in srgb, var(--cv2-accent) 12%, var(--cv2-surface-2));
}

.cv2-gc-items-wrap {
  border: 1px solid var(--cv2-border);
  border-radius: 12px;
  overflow: auto;
  max-height: 240px;
}

.cv2-gc-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.cv2-gc-items-table th,
.cv2-gc-items-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--cv2-border);
  vertical-align: middle;
}

.cv2-gc-items-table th {
  position: sticky;
  top: 0;
  background: var(--cv2-surface-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cv2-muted);
  z-index: 1;
}

.cv2-gc-items-table .cv2-input {
  padding: 0.45rem 0.55rem;
  font-size: 0.84rem;
  min-width: 0;
}

.cv2-gc-item-row:last-child td { border-bottom: none; }

.cv2-gc-iva-check {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--cv2-muted);
  cursor: pointer;
}

.cv2-gc-totals {
  margin-top: 0.85rem;
  margin-left: auto;
  width: min(280px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cv2-gc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--cv2-muted);
}

.cv2-gc-total-row strong {
  color: var(--cv2-text);
  font-variant-numeric: tabular-nums;
}

.cv2-gc-total-row--grand {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--cv2-border);
  font-size: 1rem;
  color: var(--cv2-text);
}

.cv2-gc-total-row--grand strong {
  color: var(--cv2-accent);
  font-size: 1.1rem;
}

@media (max-width: 720px) {
  .cv2-gc-grid { grid-template-columns: 1fr; }
  .cv2-gc-tipo-group { flex-direction: column; }
  .cv2-gc-tipo-opt { width: 100%; }
}

/* Inventario */
.cv2-inv-toolbar { margin-bottom: 1rem; }

.cv2-inv-modal {
  max-width: 560px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 820px);
}

.cv2-inv-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.cv2-inv-modal-head {
  position: relative;
  padding: 1rem 1.15rem;
  background: #1a2332;
  color: #fff;
  border-bottom: none;
}

.cv2-inv-modal-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cv2-inv-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cv2-inv-modal-close:hover { background: rgba(255, 255, 255, 0.22); }

.cv2-inv-modal-body {
  padding: 1rem 1.15rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.cv2-inv-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--cv2-border);
  background: var(--cv2-surface-2);
}

.cv2-inv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.cv2-inv-field-wide { grid-column: 1 / -1; }

.cv2-inv-cat-row {
  display: flex;
  gap: 0.35rem;
  align-items: stretch;
}

.cv2-inv-cat-row .cv2-select { flex: 1; min-width: 0; }

.cv2-inv-cat-hint {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--cv2-radius);
  background: rgba(47, 111, 173, 0.08);
  color: #2f6fad;
  font-size: 0.85rem;
}

.cv2-inv-destino-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cv2-inv-destino-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--cv2-border);
  background: var(--cv2-surface-2);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.cv2-inv-destino-opt input { accent-color: var(--cv2-accent); }

.cv2-inv-destino-opt:has(input:checked) {
  border-color: color-mix(in srgb, var(--cv2-accent) 45%, var(--cv2-border));
  background: color-mix(in srgb, var(--cv2-accent) 12%, var(--cv2-surface-2));
}

.cv2-inv-cat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.cv2-inv-cat-list-wrap h3 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
}

.cv2-inv-dest {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.cv2-inv-dest--bar {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.cv2-inv-dest--cocina {
  background: rgba(234, 88, 12, 0.15);
  color: #c2410c;
}

.cv2-inv-qty-cell { min-width: 90px; }

.cv2-inv-qty-input {
  width: 5.5rem;
  text-align: center;
  font-weight: 700;
}

.cv2-inv-estado {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.cv2-inv-estado--on {
  background: rgba(22, 163, 74, 0.15);
  color: #15803d;
}

.cv2-inv-estado--off {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
}

.cv2-inv-row--inactive td {
  opacity: 0.72;
}

.cv2-inv-activo-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--cv2-radius);
  border: 1px solid var(--cv2-border);
  background: var(--cv2-surface-2);
  cursor: pointer;
  font-size: 0.88rem;
}

.cv2-inv-activo-opt input {
  margin-top: 0.15rem;
  accent-color: var(--cv2-accent);
}

.cv2-inv-activo-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--cv2-muted);
}

@media (max-width: 900px) {
  .cv2-inv-grid { grid-template-columns: 1fr; }
  .cv2-inv-qty-input { width: 100%; max-width: 6rem; }
}

/* ——— Tema mixto: sidebar/topbar oscuros + contenido claro ——— */
[data-cv2-theme="mixto"] .cv2-topbar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-cv2-theme="mixto"] .cv2-topbar-user small {
  color: rgba(255, 255, 255, 0.62);
}

[data-cv2-theme="mixto"] .cv2-nav-toggle,
[data-cv2-theme="mixto"] .cv2-topbar .cv2-btn-ghost,
[data-cv2-theme="mixto"] .cv2-topbar-icon-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-cv2-theme="mixto"] .cv2-topbar-icon-btn--theme {
  background: rgba(255, 255, 255, 0.09);
}

[data-cv2-theme="mixto"] .cv2-nav-toggle:hover,
[data-cv2-theme="mixto"] .cv2-topbar .cv2-btn-ghost:hover,
[data-cv2-theme="mixto"] .cv2-topbar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

[data-cv2-theme="mixto"] .cv2-topbar-icon-btn--theme:hover {
  background: rgba(30, 136, 229, 0.28);
  border-color: rgba(144, 202, 249, 0.45);
  color: #bbdefb;
}

[data-cv2-theme="mixto"] .cv2-topbar-icon-btn--logout:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(252, 165, 165, 0.4);
  color: #fecaca;
}

[data-cv2-theme="mixto"] .cv2-topbar-user {
  border-right-color: rgba(255, 255, 255, 0.12);
}

[data-cv2-theme="mixto"] .cv2-sidebar {
  border-right-color: rgba(255, 255, 255, 0.06);
  --cv2-sidebar-head-muted: rgba(255, 255, 255, 0.55);
}

[data-cv2-theme="mixto"] .cv2-sidebar-head {
  border-bottom: none;
}

[data-cv2-theme="mixto"] .cv2-nav {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-cv2-theme="mixto"] .cv2-sidebar-casino {
  color: rgba(255, 255, 255, 0.55);
}

[data-cv2-theme="mixto"] .cv2-sidebar-user strong {
  color: #ffffff;
}

[data-cv2-theme="mixto"] .cv2-sidebar-user small {
  color: rgba(255, 255, 255, 0.55);
}

[data-cv2-theme="mixto"] .cv2-sidebar-head .cv2-negocio-logo,
[data-cv2-theme="mixto"] .cv2-sidebar-head .cv2-negocio-logo-fallback {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

[data-cv2-theme="mixto"] .cv2-nav-link,
[data-cv2-theme="mixto"] .cv2-nav-group-toggle {
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.045em;
}

[data-cv2-theme="mixto"] .cv2-nav-link:hover,
[data-cv2-theme="mixto"] .cv2-nav-group-toggle:hover,
[data-cv2-theme="mixto"] .cv2-nav-group.has-active > .cv2-nav-group-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

[data-cv2-theme="mixto"] .cv2-nav-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
}

[data-cv2-theme="mixto"] .cv2-nav-link > i:first-child,
[data-cv2-theme="mixto"] .cv2-nav-group-toggle > i:first-child,
[data-cv2-theme="mixto"] .cv2-nav-sublink > i:first-child {
  color: var(--cv2-icon-color, rgba(255, 255, 255, 0.55));
}

[data-cv2-theme="mixto"] .cv2-nav-sublink {
  color: rgba(255, 255, 255, 0.62);
  text-transform: none;
  font-size: 0.82rem;
  letter-spacing: normal;
}

[data-cv2-theme="mixto"] .cv2-nav-sublink:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

[data-cv2-theme="mixto"] .cv2-nav-sublink.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

[data-cv2-theme="mixto"] .cv2-nav-submenu-inner {
  border-left-color: rgba(255, 255, 255, 0.12);
}

/* Flyout colapsado: panel claro → texto oscuro aunque el sidebar sea oscuro */
[data-cv2-theme="mixto"] .cv2-shell.is-sidebar-collapsed .cv2-nav-submenu-inner {
  background: var(--cv2-surface);
  border-color: var(--cv2-border);
  color: var(--cv2-text);
}

[data-cv2-theme="mixto"] .cv2-shell.is-sidebar-collapsed .cv2-nav-submenu-inner::before {
  color: var(--cv2-muted);
  border-bottom-color: var(--cv2-border);
}

[data-cv2-theme="mixto"] .cv2-shell.is-sidebar-collapsed .cv2-nav-sublink {
  color: var(--cv2-text);
}

[data-cv2-theme="mixto"] .cv2-shell.is-sidebar-collapsed .cv2-nav-sublink:hover {
  background: var(--cv2-surface-2);
  color: var(--cv2-text);
}

[data-cv2-theme="mixto"] .cv2-shell.is-sidebar-collapsed .cv2-nav-sublink.is-active {
  background: color-mix(in srgb, var(--cv2-accent) 12%, transparent);
  color: var(--cv2-accent);
}

[data-cv2-theme="mixto"] .cv2-nav-chevron {
  color: rgba(255, 255, 255, 0.45);
}

[data-cv2-theme="mixto"] .cv2-main {
  background: transparent;
}

[data-cv2-theme="mixto"] .cv2-main-inner {
  background: var(--cv2-surface);
  border-color: var(--cv2-border);
}

[data-cv2-theme="mixto"] .cv2-dash-head,
[data-cv2-theme="mixto"] .cv2-kds-header {
  padding: 0.45rem 0.65rem;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, var(--cv2-accent), color-mix(in srgb, var(--cv2-accent) 75%, #0d47a1));
  border: none;
  color: #ffffff;
  margin-bottom: 0;
}

[data-cv2-theme="mixto"] .cv2-dash-head h1,
[data-cv2-theme="mixto"] .cv2-kds-header h1 {
  color: #ffffff;
  font-size: 0.95rem;
}

[data-cv2-theme="mixto"] .cv2-dash-head p,
[data-cv2-theme="mixto"] .cv2-kds-header p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
}

[data-cv2-theme="mixto"] .cv2-dash-head + .cv2-dash-kpis-wrap,
[data-cv2-theme="mixto"] .cv2-dash-head + * {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

[data-cv2-theme="mixto"] .cv2-dash-kpis-wrap {
  border-top: none;
}

[data-cv2-theme="mixto"] .cv2-dash-field-label,
[data-cv2-theme="mixto"] .cv2-kds-header .cv2-muted {
  color: rgba(255, 255, 255, 0.75);
}

[data-cv2-theme="mixto"] .cv2-dash-head h1 i {
  color: #ffffff;
}

[data-cv2-theme="mixto"] .cv2-dash-seg {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

[data-cv2-theme="mixto"] .cv2-dash-seg-btn {
  color: rgba(255, 255, 255, 0.82);
}

[data-cv2-theme="mixto"] .cv2-dash-seg-btn + .cv2-dash-seg-btn {
  border-left-color: rgba(255, 255, 255, 0.25);
}

[data-cv2-theme="mixto"] .cv2-dash-seg-btn.is-active {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

[data-cv2-theme="mixto"] .cv2-dash-date-nav,
[data-cv2-theme="mixto"] .cv2-dash-date-input,
[data-cv2-theme="mixto"] .cv2-dash-select {
  border-color: rgba(255, 255, 255, 0.25);
}

[data-cv2-theme="mixto"] .cv2-dash-nav-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

[data-cv2-theme="mixto"] .cv2-dash-nav-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

[data-cv2-theme="mixto"] .cv2-dash-export .cv2-btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

[data-cv2-theme="mixto"] .cv2-dash-export .cv2-btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* KDS header sobre gradiente — pill, icono y botones legibles */
[data-cv2-theme="mixto"] .cv2-kds-header-main i {
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

[data-cv2-theme="mixto"] .cv2-kds-pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

[data-cv2-theme="mixto"] .cv2-kds-pill strong {
  color: #ffffff;
}

[data-cv2-theme="mixto"] .cv2-kds-header .cv2-btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

[data-cv2-theme="mixto"] .cv2-kds-header .cv2-btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

[data-cv2-theme="mixto"] .cv2-table tbody tr:nth-child(even) {
  background: var(--cv2-surface-2);
}

[data-cv2-theme="mixto"] .cv2-btn-action,
[data-cv2-theme="mixto"] .cv2-table .cv2-btn-warning,
[data-cv2-theme="mixto"] .cv2-table .cv2-btn-ghost.cv2-btn-sm {
  background: var(--cv2-action-btn);
  border-color: var(--cv2-action-btn);
  color: #ffffff;
}

[data-cv2-theme="mixto"] .cv2-btn-action:hover,
[data-cv2-theme="mixto"] .cv2-table .cv2-btn-warning:hover {
  background: color-mix(in srgb, var(--cv2-action-btn) 85%, #000);
  border-color: color-mix(in srgb, var(--cv2-action-btn) 85%, #000);
}

/* ——— Online (monitoreo en vivo) ——— */
.cv2-online {
  --online-gap: 0.65rem;
  --online-radius: 10px;
  margin-bottom: 1rem;
}

.cv2-online-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.cv2-online-head h1 {
  margin: 0 0 0.15rem;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: -0.02em;
}

.cv2-online-head p {
  margin: 0;
  color: var(--cv2-muted);
  font-size: 0.78rem;
}

.cv2-online-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.cv2-online-head-meta small {
  color: var(--cv2-muted);
  font-size: 0.68rem;
}

.cv2-online-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  font-size: 0.72rem;
  font-weight: 700;
}

.cv2-online-live-badge.is-offline {
  background: rgba(100, 116, 139, 0.14);
  color: #64748b;
}

.cv2-online-head.is-offline h1 {
  color: var(--cv2-muted);
}

.cv2-online-pulse.is-offline {
  background: #94a3b8;
  animation: none;
  opacity: 0.65;
}

.cv2-online-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: cv2-online-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes cv2-online-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.cv2-online-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-bottom: var(--online-gap);
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: var(--online-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(33, 40, 50, 0.04);
}

.cv2-online-kpi {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.6rem;
  min-height: 54px;
  border-right: 1px solid var(--cv2-border);
  border-bottom: none;
}

.cv2-online-kpi:nth-child(6n) {
  border-right: none;
}

.cv2-online-kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  flex-shrink: 0;
}

.cv2-online-kpi-icon.is-teal { background: #14b8a6; }
.cv2-online-kpi-icon.is-red { background: #ef4444; }
.cv2-online-kpi-icon.is-green { background: var(--cv2-success); }
.cv2-online-kpi-icon.is-cyan { background: #06b6d4; }
.cv2-online-kpi-icon.is-blue { background: #38bdf8; }
.cv2-online-kpi-icon.is-purple { background: #8b5cf6; }

.cv2-online-kpi-label {
  display: block;
  font-size: 0.6rem;
  color: var(--cv2-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cv2-online-kpi-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0.05rem;
}

.cv2-online-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--online-gap);
  margin-bottom: var(--online-gap);
}

.cv2-online-panel {
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: var(--online-radius);
  box-shadow: 0 1px 4px rgba(33, 40, 50, 0.05);
  overflow: hidden;
}

.cv2-online-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: var(--cv2-surface-2);
  border-bottom: 1px solid var(--cv2-border);
  color: #fff;
}

.cv2-online-panel-head h2 {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cv2-online-panel-head.is-teal { background: #0d9488; border-bottom: none; }
.cv2-online-panel-head.is-red { background: #dc2626; border-bottom: none; }
.cv2-online-panel-head.is-green { background: var(--cv2-success); border-bottom: none; }
.cv2-online-panel-head.is-amber { background: #d97706; border-bottom: none; }
.cv2-online-panel-head.is-cyan { background: #0891b2; border-bottom: none; }
.cv2-online-panel-head.is-blue { background: #2563eb; border-bottom: none; }
.cv2-online-panel-head.is-dark { background: #1e293b; border-bottom: none; }

.cv2-online-panel-count {
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cv2-online-panel-body {
  padding: 0.55rem 0.75rem 0.65rem;
  max-height: 260px;
  overflow-y: auto;
}

.cv2-online-panel-body--table {
  padding: 0;
  max-height: 280px;
}

.cv2-online-panel-body--table .cv2-table-wrap {
  border: none;
  border-radius: 0;
}

.cv2-online-bitacora {
  margin-bottom: var(--online-gap);
}

.cv2-online-bitacora .cv2-online-panel-body {
  max-height: 320px;
  padding: 0.35rem 0.65rem 0.55rem;
}

.cv2-online-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv2-online-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--cv2-border);
}

.cv2-online-list-item:last-child {
  border-bottom: none;
}

.cv2-online-list-item strong {
  display: block;
  font-size: 0.82rem;
}

.cv2-online-list-item small {
  display: block;
  color: var(--cv2-muted);
  font-size: 0.68rem;
  margin-top: 0.1rem;
}

.cv2-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.cv2-online-dot.is-live { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.cv2-online-dot.is-play { background: #2563eb; }
.cv2-online-dot.is-saldo { background: #f59e0b; }
.cv2-online-dot.is-warn { background: #ef4444; }

.cv2-online-tag {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: var(--cv2-surface-2);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--cv2-muted);
  margin-left: 0.2rem;
}

.cv2-online-caja-summary {
  margin-bottom: 0.45rem;
}

.cv2-online-caja-value {
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cv2-success);
}

.cv2-online-caja-summary small {
  display: block;
  color: var(--cv2-muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.cv2-online-list--compact .cv2-online-list-item {
  padding: 0.35rem 0;
}

.cv2-online-table th,
.cv2-online-table td {
  font-size: 0.76rem;
  padding: 0.35rem 0.5rem;
}

.cv2-online-orders {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cv2-online-order {
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--cv2-border);
  border-radius: 8px;
  background: var(--cv2-surface-2);
}

.cv2-online-order header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.cv2-online-order-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: #16a34a;
}

.cv2-online-order-meta {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  color: var(--cv2-muted);
}

.cv2-online-order-items {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.74rem;
  line-height: 1.35;
}

.cv2-online-empty {
  padding: 1rem 0;
  text-align: center;
  color: var(--cv2-muted);
  font-size: 0.82rem;
}

.cv2-online-feed {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv2-online-feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: start;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--cv2-border);
}

.cv2-online-feed-item:last-child {
  border-bottom: none;
}

.cv2-online-feed-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #fff;
  background: #64748b;
}

.cv2-online-feed-item.is-pago .cv2-online-feed-icon { background: #8b5cf6; }
.cv2-online-feed-item.is-play .cv2-online-feed-icon { background: #2563eb; }
.cv2-online-feed-item.is-pedido .cv2-online-feed-icon { background: #0d9488; }

.cv2-online-feed-text {
  margin: 0 0 0.1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.cv2-online-feed-body small {
  color: var(--cv2-muted);
  font-size: 0.68rem;
}

.cv2-online-feed-time {
  font-size: 0.68rem;
  color: var(--cv2-muted);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .cv2-online-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cv2-online-kpi:nth-child(3n) {
    border-right: none;
  }

  .cv2-online-kpi:nth-child(6n) {
    border-right: 1px solid var(--cv2-border);
  }
}

@media (max-width: 768px) {
  .cv2-online-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv2-online-kpi:nth-child(2n) {
    border-right: none;
  }

  .cv2-online-grid {
    grid-template-columns: 1fr;
  }

  .cv2-online-head-meta {
    align-items: flex-start;
  }
}

.cv2-online {
  display: flex;
  flex-direction: column;
  gap: var(--dash-gap, 0.65rem);
}

.cv2-online-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--cv2-border);
  border-radius: var(--dash-radius, 10px);
  background: var(--cv2-surface);
  box-shadow: 0 1px 4px rgba(33, 40, 50, 0.05);
}

.cv2-online-head h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.cv2-online-head p {
  margin: 0.2rem 0 0;
  color: var(--cv2-muted);
  font-size: 0.82rem;
}

.cv2-online-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.cv2-online-head-meta small {
  color: var(--cv2-muted);
  font-size: 0.72rem;
}

.cv2-online-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--dash-gap, 0.65rem);
}

.cv2-online-kpi {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--cv2-border);
  border-radius: var(--dash-radius, 10px);
  background: var(--cv2-surface);
  box-shadow: 0 1px 4px rgba(33, 40, 50, 0.04);
}

.cv2-online-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.cv2-online-kpi-icon.is-teal { background: #14b8a6; }
.cv2-online-kpi-icon.is-red { background: #ef4444; }
.cv2-online-kpi-icon.is-green { background: #22c55e; }
.cv2-online-kpi-icon.is-cyan { background: #06b6d4; }
.cv2-online-kpi-icon.is-blue { background: #3b82f6; }
.cv2-online-kpi-icon.is-purple { background: #8b5cf6; }

.cv2-online-kpi-label {
  display: block;
  font-size: 0.68rem;
  color: var(--cv2-muted);
  margin-bottom: 0.1rem;
}

.cv2-online-kpi-value {
  font-size: 0.95rem;
  font-weight: 700;
}

.cv2-online-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--dash-gap, 0.65rem);
}

.cv2-online-panel {
  border: 1px solid var(--cv2-border);
  border-radius: var(--dash-radius, 10px);
  background: var(--cv2-surface);
  box-shadow: 0 1px 4px rgba(33, 40, 50, 0.05);
  overflow: hidden;
}

.cv2-online-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  color: #fff;
}

.cv2-online-panel-head h2 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cv2-online-panel-head.is-teal { background: #0d9488; }
.cv2-online-panel-head.is-red { background: #dc2626; }
.cv2-online-panel-head.is-green { background: #16a34a; }
.cv2-online-panel-head.is-amber { background: #d97706; }
.cv2-online-panel-head.is-cyan { background: #0891b2; }
.cv2-online-panel-head.is-blue { background: #2563eb; }

.cv2-online-panel-count {
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cv2-online-panel-body {
  padding: 0.55rem 0.65rem;
  max-height: 280px;
  overflow-y: auto;
}

.cv2-online-panel-body--table {
  padding: 0;
  max-height: 320px;
}

.cv2-online-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cv2-online-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--cv2-border);
}

.cv2-online-list-item:last-child { border-bottom: none; }

.cv2-online-list-item strong {
  display: block;
  font-size: 0.82rem;
}

.cv2-online-list-item small {
  color: var(--cv2-muted);
  font-size: 0.72rem;
}

.cv2-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.cv2-online-dot.is-live { background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25); }
.cv2-online-dot.is-saldo { background: #8b5cf6; }
.cv2-online-dot.is-play { background: #ef4444; animation: cv2-online-pulse 1.8s ease-in-out infinite; }
.cv2-online-dot.is-warn { background: #f59e0b; }

.cv2-online-tag {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: var(--cv2-surface-2);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--cv2-muted);
  margin-left: 0.2rem;
}

.cv2-online-caja-summary {
  text-align: center;
  padding: 0.35rem 0 0.55rem;
}

.cv2-online-caja-value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cv2-success);
}

.cv2-online-caja-summary small {
  display: block;
  color: var(--cv2-muted);
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.cv2-online-table th,
.cv2-online-table td {
  font-size: 0.76rem;
  padding: 0.35rem 0.5rem;
}

.cv2-online-order header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.cv2-online-order-items {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
  font-size: 0.74rem;
  color: var(--cv2-text);
}

@media (max-width: 1100px) {
  .cv2-online-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cv2-online-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cv2-online-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ——— Empleados ——— */
.cv2-alert-warn {
  background: rgba(244, 161, 0, 0.12);
  border: 1px solid rgba(244, 161, 0, 0.35);
  color: #9a6700;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.cv2-emp { display: flex; flex-direction: column; gap: 1rem; }

.cv2-emp-usuarios-panel {
  border: 1px solid rgba(244, 161, 0, 0.35);
  border-radius: var(--cv2-radius);
  background: rgba(244, 161, 0, 0.08);
  overflow: hidden;
}

.cv2-emp-usuarios-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(244, 161, 0, 0.2);
}

.cv2-emp-usuarios-head h2 {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cv2-emp-usuarios-head p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--cv2-muted);
}

.cv2-emp-usuarios-count {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: var(--cv2-warning);
  color: #111;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.cv2-emp-usuarios-list {
  display: flex;
  flex-direction: column;
}

.cv2-emp-usuarios-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(244, 161, 0, 0.15);
}

.cv2-emp-usuarios-item:last-child { border-bottom: none; }

.cv2-emp-usuarios-item-main strong { display: block; font-size: 0.9rem; }
.cv2-emp-usuarios-item-main small { color: var(--cv2-muted); font-size: 0.78rem; }

.cv2-emp-usuarios-hint {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  color: var(--cv2-muted);
  border-top: 1px solid rgba(244, 161, 0, 0.15);
}

.cv2-emp-toolbar { margin-bottom: 0.25rem; }

.cv2-emp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #4a6cf0, #7c6cf0);
  flex-shrink: 0;
}

.cv2-emp-avatar--lg {
  width: 88px;
  height: 88px;
  font-size: 1.5rem;
}

.cv2-emp-avatar--xl {
  width: 96px;
  height: 96px;
  font-size: 1.6rem;
}

.cv2-emp-avatar--xl .cv2-emp-avatar-init { font-size: 1.5rem; }

.cv2-emp-avatar img.is-hidden,
.cv2-emp-avatar-init.is-hidden { display: none; }

.cv2-emp-avatar.has-photo img,
.cv2-emp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv2-emp-avatar-init {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.cv2-emp-avatar--lg .cv2-emp-avatar-init { font-size: 1.35rem; }

.cv2-emp-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.cv2-emp-tag--ok {
  background: rgba(0, 172, 105, 0.12);
  color: var(--cv2-success);
}

.cv2-emp-tag--warn {
  background: rgba(244, 161, 0, 0.15);
  color: #9a6700;
}

.cv2-emp-row--no-user { background: rgba(244, 161, 0, 0.04); }
.cv2-emp-row--new { animation: cv2-emp-flash 1.2s ease 2; }

@keyframes cv2-emp-flash {
  0%, 100% { background: transparent; }
  50% { background: rgba(244, 161, 0, 0.12); }
}

.cv2-emp-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cv2-emp-empty {
  text-align: center;
  color: var(--cv2-muted);
  padding: 1.5rem !important;
}

.cv2-emp-modal-body { padding: 0 0.25rem 0.5rem; }

.cv2-emp-form-note {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: var(--cv2-surface-2);
  color: var(--cv2-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.cv2-emp-foto-body { text-align: center; }

.cv2-emp-foto-name {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.cv2-emp-foto-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Modal empleado (estilo profesional) */
.cv2-modal-panel.cv2-emp-modal {
  max-width: 640px;
  padding: 0;
  overflow: hidden;
  max-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
}

.cv2-emp-modal-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: min(92vh, 820px);
  width: 100%;
}

.cv2-emp-modal-head {
  position: relative;
  padding: 1.35rem 1.35rem 1.1rem;
  background: linear-gradient(135deg, var(--cv2-accent) 0%, #4a6cf0 100%);
  color: #fff;
}

.cv2-emp-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.cv2-emp-modal-close:hover { background: rgba(255, 255, 255, 0.28); }

.cv2-emp-modal-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 2rem;
}

.cv2-emp-modal-avatar {
  position: relative;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.cv2-emp-modal-avatar .cv2-emp-avatar {
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cv2-emp-modal-avatar-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--cv2-accent);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cv2-emp-foto-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.cv2-emp-modal-intro h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.cv2-emp-modal-intro p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.cv2-emp-modal-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.1rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.cv2-emp-modal-content::-webkit-scrollbar { width: 4px; }
.cv2-emp-modal-content::-webkit-scrollbar-thumb {
  background: var(--cv2-border);
  border-radius: 4px;
}

.cv2-emp-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cv2-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cv2-emp-section-title i { color: var(--cv2-accent); }

.cv2-emp-section-title--inline {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: var(--cv2-text);
}

.cv2-emp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 0.85rem;
}

.cv2-emp-field-full { grid-column: 1 / -1; }

.cv2-emp-modal .cv2-field { margin-bottom: 0; }

.cv2-emp-modal .cv2-field label {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.cv2-emp-section--emergency {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.06) 0%, var(--cv2-surface) 100%);
}

.cv2-emp-emergency-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.cv2-emp-emergency-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.cv2-emp-emergency-desc {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--cv2-muted);
  line-height: 1.4;
}

.cv2-emp-modal-foot {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem 1.1rem;
  border-top: 1px solid var(--cv2-border);
  background: var(--cv2-surface);
}

@media (max-width: 720px) {
  .cv2-emp-usuarios-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cv2-emp-grid { grid-template-columns: 1fr; }

  .cv2-emp-modal-hero {
    flex-direction: column;
    text-align: center;
    padding-right: 0;
  }

  .cv2-emp-modal-foot {
    flex-direction: column-reverse;
  }

  .cv2-emp-modal-foot .cv2-btn { width: 100%; justify-content: center; }

  .cv2-emp-usuario-foot {
    flex-direction: column-reverse;
  }

  .cv2-emp-usuario-foot .cv2-btn { width: 100%; justify-content: center; }

  .cv2-emp-usuario-tab {
    font-size: 0.72rem;
    padding: 0.45rem 0.35rem;
  }
}

.cv2-emp-btn-label {
  margin-left: 0.25rem;
  font-size: 0.72rem;
}

.cv2-emp-usuario-modal {
  max-width: 460px;
  max-height: min(92vh, 620px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cv2-emp-usuario-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--cv2-border);
  background: var(--cv2-surface);
}

.cv2-emp-usuario-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.cv2-emp-usuario-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.15rem;
  -webkit-overflow-scrolling: touch;
}

.cv2-emp-usuario-scroll::-webkit-scrollbar { width: 5px; }
.cv2-emp-usuario-scroll::-webkit-scrollbar-thumb {
  background: var(--cv2-border);
  border-radius: 4px;
}

.cv2-emp-usuario-panel.is-hidden { display: none; }

.cv2-emp-usuario-emp {
  margin: 0;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--cv2-muted);
}

.cv2-emp-usuario-intro {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--cv2-muted);
  line-height: 1.45;
}

.cv2-emp-usuario-panel .cv2-field { margin-bottom: 0.75rem; }

.cv2-emp-usuario-panel .cv2-emp-form-note {
  margin: 0.5rem 0 0;
}

.cv2-emp-usuario-foot {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--cv2-border);
  background: var(--cv2-surface);
}

.cv2-emp-usuario-foot .cv2-btn.is-hidden { display: none; }

.cv2-emp-usuario-account {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(0, 172, 105, 0.08);
  border: 1px solid rgba(0, 172, 105, 0.2);
}

.cv2-emp-usuario-account-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cv2-muted);
  margin-bottom: 0.15rem;
}

.cv2-emp-usuario-account strong {
  font-size: 1rem;
  color: var(--cv2-success);
}

.cv2-emp-usuario-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.25rem;
  border-radius: 10px;
  background: var(--cv2-surface-2);
  border: 1px solid var(--cv2-border);
}

.cv2-emp-usuario-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--cv2-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 0.45rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.cv2-emp-usuario-tab.is-active {
  background: var(--cv2-surface);
  color: var(--cv2-accent);
  box-shadow: var(--cv2-shadow-sm);
}

.cv2-emp-usuario-tab-panel { display: none; }
.cv2-emp-usuario-tab-panel.is-active { display: block; }

.cv2-emp-revealed {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: var(--cv2-surface-2);
  border: 1px dashed var(--cv2-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.cv2-emp-revealed.is-hidden { display: none; }

.cv2-emp-revealed-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--cv2-muted);
  width: 100%;
}

.cv2-emp-revealed code {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cv2-accent);
  word-break: break-all;
}

/* ——— Backup diario ——— */
.cv2-backup {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1100px;
}

.cv2-backup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cv2-backup-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cv2-backup-head h1 i { color: var(--cv2-accent); }

.cv2-backup-head p {
  margin: 0;
  color: var(--cv2-muted);
  max-width: 36rem;
  line-height: 1.5;
}

.cv2-backup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.cv2-backup-kpi {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  box-shadow: var(--cv2-shadow-sm);
}

.cv2-backup-kpi-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cv2-backup-kpi-icon.is-blue { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.cv2-backup-kpi-icon.is-green { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
.cv2-backup-kpi-icon.is-purple { background: rgba(105, 0, 199, 0.12); color: var(--cv2-accent); }

.cv2-backup-kpi-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cv2-muted);
}

.cv2-backup-kpi-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.cv2-backup-kpi-value--sm { font-size: 1rem; }

.cv2-backup-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1rem;
  align-items: start;
}

.cv2-backup-panel {
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--cv2-shadow-sm);
}

.cv2-backup-panel--hero {
  background: linear-gradient(145deg, rgba(105, 0, 199, 0.08) 0%, var(--cv2-surface) 55%);
}

.cv2-backup-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cv2-backup-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.cv2-backup-panel-head h2 { margin: 0; }

.cv2-backup-hero-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(105, 0, 199, 0.12);
  color: var(--cv2-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.cv2-backup-features {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cv2-backup-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--cv2-muted);
  line-height: 1.45;
}

.cv2-backup-features li i {
  color: var(--cv2-accent);
  margin-top: 0.15rem;
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}

.cv2-backup-retention {
  padding-top: 0.85rem;
  border-top: 1px solid var(--cv2-border);
}

.cv2-backup-retention label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.cv2-backup-retention small {
  display: block;
  margin-top: 0.4rem;
  color: var(--cv2-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.cv2-backup-progress {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: rgba(105, 0, 199, 0.08);
  border: 1px dashed rgba(105, 0, 199, 0.25);
}

.cv2-backup-progress.is-hidden { display: none; }

.cv2-backup-progress p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--cv2-muted);
}

.cv2-backup-progress-ring {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--cv2-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cv2-accent);
  flex-shrink: 0;
}

.cv2-backup-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--cv2-muted);
}

.cv2-backup-empty.is-hidden { display: none; }

.cv2-backup-empty i {
  font-size: 2rem;
  opacity: 0.45;
  margin-bottom: 0.65rem;
}

.cv2-backup-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 420px;
  overflow-y: auto;
}

.cv2-backup-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--cv2-border);
  background: var(--cv2-surface-2);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cv2-backup-item.is-latest {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.05);
}

.cv2-backup-item-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: rgba(244, 161, 0, 0.15);
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cv2-backup-item-body { flex: 1; min-width: 0; }

.cv2-backup-item-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cv2-backup-item-name {
  font-size: 0.82rem;
  word-break: break-all;
}

.cv2-backup-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.cv2-backup-item-meta,
.cv2-backup-item-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.75rem;
  color: var(--cv2-muted);
  margin-top: 0.2rem;
}

.cv2-backup-item-meta span,
.cv2-backup-item-sub span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.cv2-backup-item-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cv2-backup-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(244, 161, 0, 0.08);
  border: 1px solid rgba(244, 161, 0, 0.2);
  font-size: 0.85rem;
  color: var(--cv2-muted);
  line-height: 1.5;
}

.cv2-backup-tip > i {
  color: #d97706;
  margin-top: 0.15rem;
}

@media (max-width: 900px) {
  .cv2-backup-grid { grid-template-columns: 1fr; }
  .cv2-backup-kpis { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cv2-backup-item {
    flex-wrap: wrap;
  }
  .cv2-backup-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .cv2-backup-head-actions {
    width: 100%;
  }
  .cv2-backup-btn-create {
    width: 100%;
    justify-content: center;
  }
}

/* ——— Exportación reportes ——— */
.cv2-reporte-filtro {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
}

.cv2-reporte-export {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding-left: 0.5rem;
  border-left: 1px solid var(--cv2-border);
}

.cv2-reporte-export .cv2-btn-rep-export[data-format="pdf"] i { color: #dc2626; }
.cv2-reporte-export .cv2-btn-rep-export[data-format="excel"] i { color: #16a34a; }

@media (max-width: 720px) {
  .cv2-reporte-export {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    justify-content: flex-end;
  }
}

/* ——— Transacciones pagador ——— */
.cv2-transacciones {
  --tx-system-blue: #007aff;
  --tx-system-blue-dark: #0066d6;
  --tx-system-blue-soft: rgba(0, 122, 255, 0.08);
  --tx-system-blue-border: rgba(0, 122, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cv2-transacciones-top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem 0.7rem;
  background: var(--cv2-card);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--tx-system-blue-border);
  position: relative;
  overflow: hidden;
}

.cv2-transacciones-top-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0 0 0.45rem;
  border: none;
  border-bottom: 1px solid var(--tx-system-blue-border);
  background: transparent;
  box-shadow: none;
}

.cv2-transacciones-top-toolbar-label {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cv2-muted);
}

.cv2-transacciones-caja-select {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  padding: 0.38rem 0.55rem;
}

.cv2-transacciones-top-body {
  display: grid;
  gap: 0.65rem;
  align-items: start;
  min-width: 0;
}

.cv2-transacciones-top.has-reintegro .cv2-transacciones-top-body {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 250px);
}

.cv2-transacciones-hero {
  display: grid;
  grid-template-columns: minmax(155px, 200px) minmax(0, 1fr);
  gap: 0.5rem;
  align-items: stretch;
  min-width: 0;
}

.cv2-transacciones-top::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 55%;
  background: radial-gradient(ellipse 90% 80% at 0% 50%, rgba(34, 197, 94, 0.09), transparent 72%);
  pointer-events: none;
}

.cv2-transacciones-top > * {
  position: relative;
  z-index: 1;
}

.cv2-transacciones-top-body > * {
  position: relative;
  z-index: 1;
}

.cv2-transacciones-saldo {
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(34, 197, 94, 0.05);
  border-radius: 12px;
}

.cv2-transacciones-saldo::after {
  display: none;
}

.cv2-transacciones-saldo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #16a34a;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.06));
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.12);
  flex-shrink: 0;
}

.cv2-transacciones-saldo-main {
  min-width: 0;
}

.cv2-transacciones-saldo header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  font-size: 0.74rem;
  color: var(--cv2-muted);
  margin-bottom: 0.1rem;
}

.cv2-tx-caja-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--tx-system-blue-soft);
  color: var(--tx-system-blue);
  font-size: 0.72rem;
  font-weight: 600;
}

.cv2-transacciones-saldo-monto {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cv2-success);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.cv2-transacciones-kpis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: stretch;
  padding: 0.35rem;
  border-radius: 12px;
  background: rgba(0, 122, 255, 0.04);
  border: 1px solid var(--tx-system-blue-border);
  min-width: 0;
}

.cv2-tx-kpi {
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.cv2-tx-kpi:hover:not(.is-active) {
  background: rgba(0, 122, 255, 0.06);
  transform: translateY(-1px);
}

.cv2-tx-kpi.is-active {
  background: var(--tx-system-blue);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.32);
}

.cv2-tx-kpi.is-active .cv2-tx-kpi-label,
.cv2-tx-kpi.is-active small {
  color: rgba(255, 255, 255, 0.82);
}

.cv2-tx-kpi.is-active .cv2-tx-kpi-value {
  color: #ffffff;
}

.cv2-tx-kpi.is-active .cv2-tx-kpi-value.is-success,
.cv2-tx-kpi.is-active .cv2-tx-kpi-value.is-warning {
  color: #ffffff;
}

.cv2-tx-kpi.is-active .cv2-tx-kpi-icon {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.cv2-tx-kpi-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.cv2-tx-kpi--ing .cv2-tx-kpi-icon { background: rgba(34, 197, 94, 0.16); color: #16a34a; }
.cv2-tx-kpi--egr .cv2-tx-kpi-icon { background: rgba(0, 122, 255, 0.14); color: #007aff; }
.cv2-tx-kpi--ent .cv2-tx-kpi-icon { background: rgba(212, 160, 23, 0.18); color: #b8860b; }

.cv2-tx-kpi-body {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.cv2-tx-kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cv2-muted);
}

.cv2-tx-kpi-value {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--cv2-text);
  letter-spacing: -0.01em;
}

.cv2-tx-kpi-value.is-success { color: var(--cv2-success); }
.cv2-tx-kpi-value.is-warning { color: #d97706; }

.cv2-tx-kpi small {
  font-size: 0.65rem;
  color: var(--cv2-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv2-transacciones-reintegro {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(212, 160, 23, 0.14), rgba(212, 160, 23, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.cv2-transacciones-reintegro-head {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cv2-text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cv2-transacciones-reintegro-head i {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 160, 23, 0.2);
  color: #b8860b;
  font-size: 0.68rem;
}

.cv2-transacciones-reintegro-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}

.cv2-tx-reintegro-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem;
  align-items: end;
}

.cv2-tx-reintegro-row--single {
  align-items: end;
}

.cv2-tx-reintegro-esp {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.14);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cv2-muted);
  white-space: nowrap;
}

.cv2-tx-reintegro-esp strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--cv2-success);
  text-transform: none;
  letter-spacing: -0.01em;
}

.cv2-transacciones-reintegro-form .cv2-field {
  margin: 0;
  min-width: 0;
}

.cv2-transacciones-reintegro-form .cv2-field label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cv2-muted);
  margin-bottom: 0.15rem;
}

.cv2-transacciones-reintegro-form .cv2-input-sm {
  width: 100%;
  padding: 0.35rem 0.45rem;
  font-size: 0.85rem;
}

.cv2-tx-reintegro-diff {
  margin: 0.2rem 0 0;
  font-size: 0.62rem;
  color: var(--cv2-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.cv2-tx-reintegro-diff strong {
  font-size: 0.72rem;
  font-weight: 700;
}

.cv2-tx-reintegro-diff.is-neg strong {
  color: var(--cv2-danger);
}

.cv2-tx-reintegro-diff.is-pos strong {
  color: #d97706;
}

.cv2-tx-reintegro-rows .cv2-tx-reintegro-diff {
  grid-column: 1 / -1;
  margin-top: -0.1rem;
}

.cv2-tx-reintegro-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cv2-tx-reintegro-rows .cv2-tx-reintegro-row {
  display: grid;
  grid-template-columns: minmax(0, 4.5rem) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem;
}

.cv2-tx-reintegro-rows code {
  font-size: 0.65rem;
  padding: 0.12rem 0.3rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv2-tx-reintegro-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cv2-tx-reintegro-actions .cv2-btn {
  flex-shrink: 0;
  border-radius: 8px;
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
}

.cv2-tx-reintegro-cancel-form {
  margin: 0;
  padding-top: 0.15rem;
}

.cv2-tx-reintegro-cancel {
  width: 100%;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--cv2-muted);
}

.cv2-tx-reintegro-cancel:hover {
  color: var(--cv2-danger);
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
}

.cv2-transacciones-reintegro-hint {
  margin: 0;
  font-size: 0.62rem;
  color: var(--cv2-muted);
  line-height: 1.2;
}

.cv2-transacciones-reintegro-status {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
}

.cv2-transacciones-reintegro-status i {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  flex-shrink: 0;
}

.cv2-transacciones-reintegro-status.is-pending i {
  color: #d97706;
  background: rgba(212, 160, 23, 0.18);
}

.cv2-transacciones-reintegro-status.is-done i {
  color: var(--cv2-success);
  background: rgba(34, 197, 94, 0.14);
}

.cv2-transacciones-reintegro-status strong {
  display: block;
  margin-bottom: 0.05rem;
  font-size: 0.72rem;
}

.cv2-transacciones-reintegro-status p {
  margin: 0;
  color: var(--cv2-muted);
  font-size: 0.65rem;
  line-height: 1.25;
}

.cv2-transacciones-kpis .cv2-stat-value.is-warning {
  color: #d97706;
}

.cv2-table .is-warning {
  color: #d97706;
}

.cv2-transacciones-kpis .cv2-stat small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--cv2-muted);
}

.cv2-transacciones-tabs {
  margin: 0;
  gap: 0.2rem;
  margin-bottom: 0.35rem;
  border-bottom-color: var(--tx-system-blue-border);
}

.cv2-transacciones-tabs .cv2-tab {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}

.cv2-transacciones-tabs .cv2-tab.is-active {
  color: var(--tx-system-blue);
  border-bottom-color: var(--tx-system-blue);
}

.cv2-transacciones-panel.cv2-card,
.cv2-transacciones-turnos.cv2-card {
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--tx-system-blue-border);
}

.cv2-transacciones-panel {
  padding: 0.65rem 0.85rem 0.75rem;
}

.cv2-transacciones-panel .cv2-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--tx-system-blue-border);
}

.cv2-transacciones-panel .cv2-card-head h2 {
  margin: 0;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cv2-tx-th-actions {
  width: 5.5rem;
  white-space: nowrap;
}

.cv2-tx-accordion-table tr.cv2-tx-detalle td,
.cv2-tx-accordion-table tr.cv2-saldo-detalle td {
  display: table-cell;
  width: 100%;
  min-width: 0;
  padding: 0 !important;
  background: var(--cv2-surface-2);
  border-top: none;
}

.cv2-tx-accordion-table .cv2-saldo-detalle-inner {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .cv2-tx-accordion-table .cv2-saldo-detalle-grid {
    grid-template-columns: 1fr;
  }

  .cv2-tx-accordion-table .cv2-saldo-detalle-block {
    border-right: none;
    border-bottom: 1px solid var(--cv2-border);
  }

  .cv2-tx-accordion-table .cv2-saldo-detalle-block:last-child {
    border-bottom: none;
  }
}

.cv2-tx-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.cv2-tx-table-wrap .cv2-tx-row:hover td {
  background: rgba(0, 0, 0, 0.02);
}

.cv2-table .is-success {
  color: var(--cv2-success);
}

@media (max-width: 1100px) {
  .cv2-transacciones-top {
    padding: 0.6rem 0.75rem 0.65rem;
    border-radius: 14px;
  }

  .cv2-transacciones-top.has-reintegro .cv2-transacciones-top-body {
    grid-template-columns: 1fr;
  }

  .cv2-transacciones-hero {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .cv2-transacciones-saldo {
    padding: 0.5rem 0.65rem;
  }

  .cv2-transacciones-reintegro {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .cv2-transacciones-kpis-grid {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .cv2-tx-kpi {
    border-radius: 12px;
  }
}

/* ——— Salón pagador (home) ——— */
.cv2-salon-pagador-hint {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--cv2-radius);
  background: rgba(47, 111, 173, 0.08);
  color: var(--cv2-muted);
  font-size: 0.88rem;
}

.cv2-salon-pagador-hint a {
  color: #2f6fad;
  font-weight: 600;
}

.cv2-salon-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cv2-stat-link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.cv2-stat-link:hover {
  border-color: var(--cv2-accent);
  transform: translateY(-1px);
}

.cv2-transacciones-filters {
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.cv2-transacciones-filters-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr);
  gap: 0.75rem 1rem;
  align-items: end;
}

.cv2-tx-egresos-filters {
  padding: 0 0 0.55rem;
  border-bottom: 1px solid rgba(120, 95, 50, 0.08);
  margin-bottom: 0.55rem;
}

.cv2-tx-egresos-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: flex-end;
}

.cv2-tx-egresos-filters .cv2-field-cliente {
  flex: 1 1 220px;
  min-width: 0;
}

.cv2-tx-egresos-filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cv2-field-caja {
  min-width: 0;
}

#txCaja {
  font-size: 0.84rem;
}

.cv2-transacciones-filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.cv2-transacciones-cliente-wrap {
  position: relative;
}

.cv2-transacciones-cliente-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow: auto;
  background: var(--cv2-surface);
  border: 1px solid var(--cv2-border);
  border-radius: var(--cv2-radius);
  box-shadow: var(--cv2-shadow);
}

.cv2-transacciones-cliente-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.cv2-transacciones-cliente-item:hover {
  background: rgba(47, 111, 173, 0.08);
}

.cv2-transacciones-cliente-item strong {
  display: block;
  font-size: 0.9rem;
}

.cv2-transacciones-cliente-item small {
  color: var(--cv2-muted);
  font-size: 0.78rem;
}

@media (max-width: 768px) {
  .cv2-transacciones-filters-grid {
    grid-template-columns: 1fr;
  }
}

.cv2-transacciones-entregar {
  margin-bottom: 1rem;
  border-color: rgba(244, 161, 0, 0.35);
  background: linear-gradient(135deg, rgba(244, 161, 0, 0.06), rgba(244, 161, 0, 0.02));
}

.cv2-transacciones-entregar-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.cv2-transacciones-entregar h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cv2-transacciones-entregar p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cv2-muted);
}

.cv2-transacciones-entregar-list {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--cv2-muted);
}

.cv2-transacciones-entregar-action {
  text-align: center;
  min-width: 160px;
}

.cv2-transacciones-entregar-monto {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cv2-warning, #f4a100);
  margin-bottom: 0.5rem;
}

.cv2-transacciones-entregar-off {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cv2-muted);
}

.cv2-transacciones-entregas-pend {
  padding: 0 1rem 1rem;
}

.cv2-transacciones-entregas-pend h3 {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: #9a6700;
}
