/* =====================================================================
   COTIX — Sistema de diseño
   Interfaz premium: minimalista, responsive, modo claro/oscuro
   ===================================================================== */

:root {
  --cx-primary: #4f46e5;
  --cx-primary-rgb: 79, 70, 229;
  --cx-primary-dark: #4338ca;
  --cx-secondary: #0ea5e9;
  --cx-sidebar-w: 260px;
  --cx-sidebar-w-collapsed: 72px;
  --cx-topbar-h: 64px;
  --cx-radius: 14px;
  --cx-radius-sm: 10px;
  --cx-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cx-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --cx-bg: #f4f5fa;
  --cx-surface: #ffffff;
  --cx-surface-2: #f8f9fc;
  --cx-border: #e8eaf1;
  --cx-text: #1f2333;
  --cx-text-muted: #6b7280;
  --cx-shadow: 0 1px 3px rgba(16, 24, 40, 0.05), 0 8px 24px -12px rgba(16, 24, 40, 0.12);
  --cx-shadow-lg: 0 12px 40px -12px rgba(16, 24, 40, 0.25);
}

[data-bs-theme="dark"] {
  --cx-bg: #0f1117;
  --cx-surface: #171a23;
  --cx-surface-2: #1d212d;
  --cx-border: #262b3a;
  --cx-text: #e5e7ef;
  --cx-text-muted: #9aa1b5;
  --cx-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --cx-shadow-lg: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
}

html { font-size: 15px; }

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

/* ------------------------------------------------------------------ */
/* Sidebar                                                             */
/* ------------------------------------------------------------------ */
.cx-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--cx-sidebar-w);
  background: var(--cx-surface);
  border-right: 1px solid var(--cx-border);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: width var(--cx-transition), transform var(--cx-transition);
  overflow: hidden;
}

.cx-sidebar .brand {
  height: var(--cx-topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  flex-shrink: 0;
}

.cx-sidebar .brand .logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cx-primary), var(--cx-secondary));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.cx-sidebar .brand .logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.cx-sidebar .company-badge {
  margin: 4px 14px 10px;
  padding: 10px 12px;
  border-radius: var(--cx-radius-sm);
  background: var(--cx-surface-2);
  border: 1px solid var(--cx-border);
  font-size: 0.8rem;
  color: var(--cx-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cx-nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 14px 20px;
  scrollbar-width: thin;
}

.cx-nav .nav-section {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--cx-text-muted);
  margin: 18px 10px 6px;
  white-space: nowrap;
}

.cx-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: var(--cx-radius-sm);
  color: var(--cx-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background var(--cx-transition), color var(--cx-transition), transform 0.15s ease;
}

.cx-nav a i {
  width: 22px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.cx-nav a:hover {
  background: var(--cx-surface-2);
  color: var(--cx-text);
  transform: translateX(3px);
}

.cx-nav a.active {
  background: rgba(var(--cx-primary-rgb), 0.1);
  color: var(--cx-primary);
  font-weight: 600;
}

body.sidebar-collapsed .cx-sidebar { width: var(--cx-sidebar-w-collapsed); }
body.sidebar-collapsed .cx-sidebar .logo-text,
body.sidebar-collapsed .cx-sidebar .company-badge,
body.sidebar-collapsed .cx-sidebar .nav-section,
body.sidebar-collapsed .cx-sidebar a span { display: none; }
body.sidebar-collapsed .cx-main { margin-left: var(--cx-sidebar-w-collapsed); }
body.sidebar-collapsed .cx-topbar { left: var(--cx-sidebar-w-collapsed); }

/* ------------------------------------------------------------------ */
/* Topbar y contenido                                                  */
/* ------------------------------------------------------------------ */
.cx-topbar {
  position: fixed;
  top: 0; right: 0; left: var(--cx-sidebar-w);
  height: var(--cx-topbar-h);
  background: color-mix(in srgb, var(--cx-surface) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cx-border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  z-index: 1030;
  transition: left var(--cx-transition);
}

.cx-main {
  margin-left: var(--cx-sidebar-w);
  padding: calc(var(--cx-topbar-h) + 24px) 24px 40px;
  transition: margin-left var(--cx-transition);
  min-height: 100vh;
}

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--cx-border);
  background: var(--cx-surface);
  color: var(--cx-text-muted);
  display: grid;
  place-items: center;
  transition: all var(--cx-transition);
}
.icon-btn:hover { color: var(--cx-primary); border-color: rgba(var(--cx-primary-rgb), .4); transform: translateY(-1px); }

/* ------------------------------------------------------------------ */
/* Tarjetas y componentes                                              */
/* ------------------------------------------------------------------ */
.card {
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius);
  background: var(--cx-surface);
  box-shadow: var(--cx-shadow);
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--cx-radius);
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  box-shadow: var(--cx-shadow);
  transition: transform var(--cx-transition), box-shadow var(--cx-transition);
  animation: cx-rise 0.5s ease both;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--cx-shadow-lg); }

.stat-card .stat-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.stat-card .stat-value { font-size: 1.55rem; font-weight: 800; line-height: 1.1; }
.stat-card .stat-label { color: var(--cx-text-muted); font-size: 0.82rem; font-weight: 500; }

@keyframes cx-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.page-header { animation: cx-rise 0.4s ease both; }
.page-header h1 { font-size: 1.45rem; font-weight: 800; margin: 0; }
.page-header .breadcrumb { font-size: 0.8rem; margin: 2px 0 0; }

/* Tablas */
.table { --bs-table-bg: transparent; color: var(--cx-text); }
.table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--cx-text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--cx-border) !important;
  padding: 12px 16px;
  white-space: nowrap;
}
.table tbody td { padding: 13px 16px; border-color: var(--cx-border); vertical-align: middle; font-size: 0.9rem; }
.table tbody tr { transition: background 0.15s ease; }
.table-hover tbody tr:hover { background: var(--cx-surface-2); }

/* Badges de estado */
.badge-soft { font-weight: 600; font-size: 0.74rem; padding: 5px 10px; border-radius: 8px; }
.badge-soft.primary   { background: rgba(var(--cx-primary-rgb), .12); color: var(--cx-primary); }
.badge-soft.success   { background: rgba(22, 163, 74, .12);  color: #16a34a; }
.badge-soft.danger    { background: rgba(220, 38, 38, .12);  color: #ef4444; }
.badge-soft.warning   { background: rgba(217, 119, 6, .14);  color: #d97706; }
.badge-soft.info      { background: rgba(2, 132, 199, .12);  color: #0ea5e9; }
.badge-soft.secondary { background: rgba(107, 114, 128, .14); color: var(--cx-text-muted); }
.badge-soft.dark      { background: rgba(55, 65, 81, .18); color: var(--cx-text); }

/* Botones */
.btn { border-radius: 10px; font-weight: 600; transition: all var(--cx-transition); }
.btn-primary {
  --bs-btn-bg: var(--cx-primary);
  --bs-btn-border-color: var(--cx-primary);
  --bs-btn-hover-bg: var(--cx-primary-dark);
  --bs-btn-hover-border-color: var(--cx-primary-dark);
  --bs-btn-active-bg: var(--cx-primary-dark);
  --bs-btn-active-border-color: var(--cx-primary-dark);
  box-shadow: 0 4px 14px -4px rgba(var(--cx-primary-rgb), .5);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-light { border: 1px solid var(--cx-border); background: var(--cx-surface); color: var(--cx-text); }
.btn-light:hover { background: var(--cx-surface-2); border-color: var(--cx-border); color: var(--cx-text); }

/* Formularios */
.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--cx-border);
  background: var(--cx-surface);
  color: var(--cx-text);
  padding: 9px 14px;
  transition: border-color var(--cx-transition), box-shadow var(--cx-transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--cx-primary);
  box-shadow: 0 0 0 4px rgba(var(--cx-primary-rgb), .12);
  background: var(--cx-surface);
  color: var(--cx-text);
}
.form-label { font-weight: 600; font-size: 0.82rem; margin-bottom: 5px; }
.input-group-text { background: var(--cx-surface-2); border-color: var(--cx-border); color: var(--cx-text-muted); border-radius: 10px; }

/* Modales / offcanvas */
.modal-content { border-radius: 18px; border: 1px solid var(--cx-border); background: var(--cx-surface); box-shadow: var(--cx-shadow-lg); }
.modal-header, .modal-footer { border-color: var(--cx-border); }
.offcanvas { background: var(--cx-surface); }

/* Dropdowns */
.dropdown-menu {
  border-radius: 14px;
  border: 1px solid var(--cx-border);
  background: var(--cx-surface);
  box-shadow: var(--cx-shadow-lg);
  padding: 6px;
  animation: cx-pop 0.18s ease;
}
.dropdown-item { border-radius: 9px; padding: 8px 12px; font-size: 0.88rem; font-weight: 500; color: var(--cx-text); }
.dropdown-item:hover { background: var(--cx-surface-2); color: var(--cx-text); }

@keyframes cx-pop {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* Skeleton loaders */
.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--cx-surface-2) 25%, var(--cx-border) 50%, var(--cx-surface-2) 75%);
  background-size: 200% 100%;
  animation: cx-shimmer 1.3s infinite;
}
@keyframes cx-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Paginación */
.pagination { --bs-pagination-border-radius: 10px; gap: 5px; }
.page-link {
  border-radius: 10px !important;
  border: 1px solid var(--cx-border);
  color: var(--cx-text-muted);
  background: var(--cx-surface);
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 38px;
  text-align: center;
}
.page-item.active .page-link { background: var(--cx-primary); border-color: var(--cx-primary); }

/* ------------------------------------------------------------------ */
/* Constructor de cotizaciones                                         */
/* ------------------------------------------------------------------ */
.quote-builder { display: grid; grid-template-columns: 340px 1fr; gap: 20px; }

.item-picker {
  position: sticky;
  top: calc(var(--cx-topbar-h) + 20px);
  max-height: calc(100vh - var(--cx-topbar-h) - 44px);
  display: flex;
  flex-direction: column;
}

.item-picker .picker-results { flex: 1; overflow-y: auto; scrollbar-width: thin; }

.picker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--cx-surface);
}
.picker-item:hover {
  border-color: var(--cx-primary);
  background: rgba(var(--cx-primary-rgb), .05);
  transform: translateX(2px);
}
.picker-item .pi-name { font-weight: 600; font-size: 0.86rem; }
.picker-item .pi-meta { font-size: 0.75rem; color: var(--cx-text-muted); }
.picker-item .pi-price { font-weight: 700; font-size: 0.85rem; color: var(--cx-primary); white-space: nowrap; }

/* Tabla de ítems editable */
#quote-items .qi-row td { padding: 8px 6px; }
#quote-items .form-control { padding: 6px 10px; font-size: 0.87rem; }
#quote-items .drag-handle { cursor: grab; color: var(--cx-text-muted); }
#quote-items tr.dragging { opacity: 0.45; }
#quote-items .qi-total { font-weight: 700; white-space: nowrap; }

.quote-totals { font-size: 0.95rem; }
.quote-totals .qt-row { display: flex; justify-content: space-between; padding: 6px 0; }
.quote-totals .qt-grand { font-size: 1.3rem; font-weight: 800; color: var(--cx-primary); border-top: 2px solid var(--cx-border); margin-top: 6px; padding-top: 12px; }

/* Timeline del historial */
.cx-timeline { position: relative; padding-left: 26px; }
.cx-timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--cx-border);
}
.cx-timeline .tl-item { position: relative; padding-bottom: 18px; }
.cx-timeline .tl-item::before {
  content: '';
  position: absolute;
  left: -24px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cx-primary);
  border: 2.5px solid var(--cx-surface);
  box-shadow: 0 0 0 2px rgba(var(--cx-primary-rgb), .3);
}

/* Toasts */
.toast-container { z-index: 2000; }
.cx-toast {
  border: 1px solid var(--cx-border);
  border-radius: 14px;
  background: var(--cx-surface);
  color: var(--cx-text);
  box-shadow: var(--cx-shadow-lg);
  animation: cx-pop 0.25s ease;
  min-width: 300px;
}

/* Login / auth */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(var(--cx-primary-rgb), .14), transparent),
    radial-gradient(800px 400px at 110% 110%, rgba(14, 165, 233, .12), transparent),
    var(--cx-bg);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  border-radius: 22px;
  padding: 38px;
  background: var(--cx-surface);
  border: 1px solid var(--cx-border);
  box-shadow: var(--cx-shadow-lg);
  animation: cx-rise 0.5s ease both;
}

/* Empty states */
.empty-state { text-align: center; padding: 48px 20px; color: var(--cx-text-muted); }
.empty-state i { font-size: 2.6rem; opacity: 0.35; margin-bottom: 14px; }

/* Avatares */
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(var(--cx-primary-rgb), .12);
  color: var(--cx-primary);
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Scrollbars */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--cx-border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--cx-text-muted); }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1035;
  backdrop-filter: blur(2px);
}
body.sidebar-open .sidebar-backdrop { display: block; }

/* ==================================================================== */
/* RESPONSIVE — Tablet y móvil                                          */
/* ==================================================================== */

/* ---- Tablet y menor: sidebar como drawer deslizable ---------------- */
@media (max-width: 991.98px) {
  .cx-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
    width: min(84vw, 300px);
  }
  body.sidebar-open .cx-sidebar { transform: none; box-shadow: var(--cx-shadow-lg); }
  .cx-topbar { left: 0; padding: 0 14px; gap: 8px; }
  .cx-main { margin-left: 0; padding: calc(var(--cx-topbar-h) + 16px) 14px 30px; }
  .quote-builder { grid-template-columns: 1fr; }
  .item-picker { position: static; max-height: none; }
  .item-picker .picker-results { max-height: 320px; }
  /* En móvil el drawer siempre se muestra completo, nunca colapsado */
  body.sidebar-collapsed .cx-main { margin-left: 0; }
  body.sidebar-collapsed .cx-topbar { left: 0; }
  body.sidebar-collapsed .cx-sidebar .logo-text,
  body.sidebar-collapsed .cx-sidebar .company-badge,
  body.sidebar-collapsed .cx-sidebar .nav-section,
  body.sidebar-collapsed .cx-sidebar a span { display: initial; }
  body.sidebar-collapsed .cx-sidebar { width: min(84vw, 300px); }
}

/* ---- Móvil (≤767px): densidad, tablas-tarjeta, cabeceras ----------- */
@media (max-width: 767.98px) {
  html { font-size: 14.5px; }

  .cx-main { padding: calc(var(--cx-topbar-h) + 14px) 12px 90px; }

  /* Cabeceras de página: apilar título y acciones */
  .page-header h1 { font-size: 1.25rem; }
  .page-header > .d-flex,
  .page-header.d-flex { flex-direction: column; align-items: stretch !important; }
  /* Contenedor de acciones: los botones crecen y se acomodan en filas */
  .page-header .d-flex.gap-2,
  .page-header > div:last-child { flex-wrap: wrap; }
  .page-header .btn { flex: 1 1 auto; justify-content: center; min-width: 44px; }
  .page-header .dropdown { flex: 1 1 auto; }
  .page-header .dropdown > .btn { width: 100%; }

  /* Tarjetas: menos padding interno */
  .card > .card-body { padding: 1rem; }
  .stat-card { padding: 16px; }
  .stat-card .stat-value { font-size: 1.3rem; }

  /* Filtros y buscadores: cada control a lo ancho */
  .card-body > .row.g-2 > [class*="col-"],
  .filters-row > [class*="col-"] { width: 100%; flex: 0 0 100%; max-width: 100%; }

  /* --- Tablas que se transforman en tarjetas apiladas --- */
  .table-cards thead { display: none; }
  .table-cards,
  .table-cards tbody,
  .table-cards tr,
  .table-cards td { display: block; width: 100%; }
  .table-cards tr {
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius);
    background: var(--cx-surface);
    box-shadow: var(--cx-shadow);
    margin-bottom: 12px;
    padding: 4px 6px;
    overflow: hidden;
  }
  .table-cards td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    text-align: right;
    padding: 10px 12px !important;
    border: none;
    border-bottom: 1px solid var(--cx-border);
    min-height: 46px;
  }
  .table-cards tr td:last-child { border-bottom: none; }
  .table-cards td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--cx-text-muted);
    font-size: .68rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-align: left;
    flex-shrink: 0;
  }
  /* Celda de acciones: ocupa toda la fila, botones grandes */
  .table-cards td.cell-actions {
    justify-content: flex-end;
    gap: 8px;
    background: var(--cx-surface-2);
    padding: 10px 12px !important;
  }
  .table-cards td.cell-actions::before { display: none; }
  .table-cards td.cell-actions .btn { flex: 1; min-height: 42px; }
  /* Celda destacada (nombre principal) a ancho completo, sin etiqueta */
  .table-cards td.cell-primary {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    background: transparent;
  }
  .table-cards td.cell-primary::before { display: none; }

  /* El asa de arrastre no aplica en táctil */
  .table-cards td.cell-drag { display: none; }

  /* Constructor de cotizaciones: inputs etiquetados en tarjeta */
  #quote-items-table.table-cards td { padding: 8px 12px !important; }
  #quote-items-table.table-cards td .form-control,
  #quote-items-table.table-cards td .form-select { max-width: 55%; text-align: right; }
  #quote-items-table.table-cards td.cell-primary .form-control { max-width: 100%; text-align: left; }
  #quote-items-table.table-cards td.qi-total {
    background: var(--cx-surface-2);
    font-size: 1.05rem;
    color: var(--cx-primary);
  }

  /* Paginación centrada y táctil */
  .pagination { justify-content: center; flex-wrap: wrap; }
  .page-link { min-width: 42px; min-height: 42px; display: flex; align-items: center; justify-content: center; }

  /* Botones y controles con mejor área táctil */
  .btn { min-height: 42px; }
  .btn-sm { min-height: 36px; }
  .form-control, .form-select { min-height: 44px; font-size: 16px; /* evita zoom en iOS */ }
  .input-group .btn { min-height: 44px; }

  /* Dropdowns pegados al borde no se salen de pantalla */
  .dropdown-menu { max-width: calc(100vw - 24px); }
}

/* ---- Teléfono (≤575px): modales como hoja inferior ----------------- */
@media (max-width: 575.98px) {
  .modal-dialog {
    margin: 0;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    max-width: 100%;
    min-height: auto;
  }
  .modal-dialog-centered { min-height: auto; align-items: flex-end; }
  .modal-content {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    overflow-y: auto;
  }
  .modal.show .modal-dialog { animation: cx-sheet-up .28s cubic-bezier(.32,.72,0,1); }
  .modal-header, .modal-body, .modal-footer { padding-left: 16px; padding-right: 16px; }
  .modal-footer { position: sticky; bottom: 0; background: var(--cx-surface); }
  .modal-footer .btn { flex: 1; }

  /* Grilla de tarjetas estadísticas: 2 por fila con menos gap */
  .row.g-3 { --bs-gutter-x: .6rem; --bs-gutter-y: .6rem; }

  .page-header h1 { font-size: 1.15rem; }

  /* Login / registro / instalador */
  .auth-wrap { padding: 16px; }
  .auth-card { padding: 26px 20px; border-radius: 18px; }

  /* Offcanvas de detalle ocupa casi toda la pantalla */
  .offcanvas.offcanvas-end { width: 100% !important; max-width: 100vw !important; }

  /* Constructor: barra de acción fija abajo para guardar sin subir */
  .cx-main { padding-bottom: 96px; }
}

@keyframes cx-sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* Impresión */
@media print {
  .cx-sidebar, .cx-topbar, .no-print { display: none !important; }
  .cx-main { margin: 0; padding: 0; }
}
