/* =========================================================
   WIRTZ HUB · RECURSOS · PRODUCTOS
   CSS completo

   Diseño:
   - Moderno
   - Minimalista
   - Sin glow
   - Líneas finas
   - Compacto
   - Responsive
   - Modo oscuro negro real
   - Sin gris azulado
   - Sin azul oscuro
   ========================================================= */

/* =========================================================
   VARIABLES LOCALES
   ========================================================= */

.productos-page {
  --productos-bg: #f7f7f7;

  --productos-surface: #ffffff;
  --productos-surface-soft: #fafafa;
  --productos-surface-strong: #f0f0f0;

  --productos-text: #171717;
  --productos-text-soft: #555555;
  --productos-text-muted: #8a8a8a;

  --productos-line: rgba(0, 0, 0, 0.08);
  --productos-line-strong: rgba(0, 0, 0, 0.15);

  --productos-primary: #111111;
  --productos-primary-text: #ffffff;

  --productos-success: #177245;
  --productos-success-soft: rgba(23, 114, 69, 0.1);
  --productos-success-line: rgba(23, 114, 69, 0.22);

  --productos-warning: #9a6700;
  --productos-warning-soft: rgba(154, 103, 0, 0.1);
  --productos-warning-line: rgba(154, 103, 0, 0.22);

  --productos-danger: #b42318;
  --productos-danger-soft: rgba(180, 35, 24, 0.08);
  --productos-danger-line: rgba(180, 35, 24, 0.2);

  --productos-radius-xs: 7px;
  --productos-radius-sm: 10px;
  --productos-radius-md: 14px;
  --productos-radius-lg: 18px;

  --productos-shadow:
    0 10px 28px rgba(0, 0, 0, 0.06);

  --productos-transition:
    160ms ease;

  width: 100%;
  min-width: 0;
  min-height: 100%;

  color: var(--productos-text);
}

/* =========================================================
   DARK MODE · NEGRO REAL
   ========================================================= */

html[data-theme="dark"] .productos-page,
body.dark .productos-page,
.dark .productos-page {
  --productos-bg: #000000;

  --productos-surface: #080808;
  --productos-surface-soft: #0d0d0d;
  --productos-surface-strong: #181818;

  --productos-text: #f5f5f5;
  --productos-text-soft: #bdbdbd;
  --productos-text-muted: #7d7d7d;

  --productos-line: rgba(255, 255, 255, 0.08);
  --productos-line-strong: rgba(255, 255, 255, 0.15);

  --productos-primary: #f5f5f5;
  --productos-primary-text: #000000;

  --productos-success: #6fd7a3;
  --productos-success-soft: rgba(111, 215, 163, 0.09);
  --productos-success-line: rgba(111, 215, 163, 0.2);

  --productos-warning: #e5c36a;
  --productos-warning-soft: rgba(229, 195, 106, 0.09);
  --productos-warning-line: rgba(229, 195, 106, 0.2);

  --productos-danger: #ff8a80;
  --productos-danger-soft: rgba(255, 138, 128, 0.08);
  --productos-danger-line: rgba(255, 138, 128, 0.2);

  --productos-shadow:
    0 18px 44px rgba(0, 0, 0, 0.72);

  background: #000000;
}

/* =========================================================
   RESET LOCAL
   ========================================================= */

.productos-page,
.productos-page *,
.productos-modal-backdrop,
.productos-modal-backdrop *,
.productos-toast {
  box-sizing: border-box;
}

.productos-page button,
.productos-page input,
.productos-page select,
.productos-modal-backdrop button,
.productos-modal-backdrop input,
.productos-modal-backdrop select {
  font: inherit;
}

.productos-page button,
.productos-modal-backdrop button {
  -webkit-tap-highlight-color: transparent;
}

.productos-page img,
.productos-modal-backdrop img {
  display: block;
  max-width: 100%;
}

.productos-page .icon,
.productos-modal-backdrop .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;

  stroke-width: 1.8;
}

/* =========================================================
   CABECERA
   ========================================================= */

.productos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;

  margin-bottom: 18px;
}

.productos-brand {
  display: flex;
  align-items: center;
  gap: 13px;

  min-width: 0;
}

.productos-brand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  color: var(--productos-text);
  background: var(--productos-surface);
  border: 1px solid var(--productos-line);
  border-radius: 12px;
}

.productos-brand__icon .icon {
  width: 20px;
  height: 20px;
}

.productos-brand > div {
  min-width: 0;
}

.productos-brand h2 {
  margin: 0;

  color: var(--productos-text);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.productos-brand p {
  margin: 5px 0 0;

  color: var(--productos-text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.productos-head__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;

  flex-wrap: wrap;
}

/* =========================================================
   BOTONES
   ========================================================= */

.productos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 38px;
  padding: 0 13px;

  color: var(--productos-text);
  background: var(--productos-surface);
  border: 1px solid var(--productos-line-strong);
  border-radius: 9px;

  font-size: 12.5px;
  font-weight: 650;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color var(--productos-transition),
    border-color var(--productos-transition),
    color var(--productos-transition),
    transform var(--productos-transition);
}

.productos-btn:hover:not(:disabled) {
  background: var(--productos-surface-soft);
  border-color: var(--productos-line-strong);
}

.productos-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.productos-btn:focus-visible {
  outline: 2px solid var(--productos-text);
  outline-offset: 2px;
}

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

.productos-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;
  padding: 0;

  color: var(--productos-text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;

  cursor: pointer;

  transition:
    background-color var(--productos-transition),
    border-color var(--productos-transition),
    color var(--productos-transition);
}

.productos-icon-btn:hover {
  color: var(--productos-text);
  background: var(--productos-surface-strong);
  border-color: var(--productos-line);
}

/* =========================================================
   CAMBIO DE VISTA
   ========================================================= */

.productos-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;

  padding: 3px;

  background: var(--productos-surface-strong);
  border: 1px solid var(--productos-line);
  border-radius: 10px;
}

.productos-view-switch__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-height: 32px;
  padding: 0 11px;

  color: var(--productos-text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;

  font-size: 11.5px;
  font-weight: 650;

  cursor: pointer;

  transition:
    background-color var(--productos-transition),
    border-color var(--productos-transition),
    color var(--productos-transition);
}

.productos-view-switch__button:hover {
  color: var(--productos-text);
}

.productos-view-switch__button.is-active {
  color: var(--productos-text);
  background: var(--productos-surface);
  border-color: var(--productos-line);
}

/* =========================================================
   MÉTRICAS
   ========================================================= */

.productos-metrics {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1px;

  margin-bottom: 16px;

  overflow: hidden;

  background: var(--productos-line);
  border: 1px solid var(--productos-line);
  border-radius: 13px;
}

.productos-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;

  min-width: 0;
  min-height: 88px;
  padding: 14px 15px;

  background: var(--productos-surface);
}

.productos-metric span {
  color: var(--productos-text-muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.productos-metric strong {
  margin-top: 6px;

  overflow: hidden;

  color: var(--productos-text);
  font-size: 22px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.productos-metric small {
  margin-top: 5px;

  color: var(--productos-text-soft);
  font-size: 11px;
  line-height: 1.3;
}

/* =========================================================
   PANEL PRINCIPAL
   ========================================================= */

.productos-panel {
  min-width: 0;
  overflow: hidden;

  background: var(--productos-surface);
  border: 1px solid var(--productos-line);
  border-radius: var(--productos-radius-md);
}

.productos-panel[hidden] {
  display: none !important;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.productos-toolbar {
  display: grid;
  grid-template-columns:
    minmax(240px, 0.9fr)
    minmax(0, 2fr);
  gap: 12px;
  align-items: start;

  padding: 13px;

  background: var(--productos-surface);
  border-bottom: 1px solid var(--productos-line);
}

.productos-search {
  position: relative;

  display: flex;
  align-items: center;

  min-width: 0;
}

.productos-search .icon {
  position: absolute;
  left: 12px;
  z-index: 1;

  width: 16px;
  height: 16px;

  color: var(--productos-text-muted);

  pointer-events: none;
}

.productos-search input {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 0 12px 0 38px;

  color: var(--productos-text);
  background: var(--productos-surface-soft);
  border: 1px solid var(--productos-line);
  border-radius: 9px;

  font-size: 12.5px;

  outline: none;

  transition:
    background-color var(--productos-transition),
    border-color var(--productos-transition);
}

.productos-search input::placeholder {
  color: var(--productos-text-muted);
}

.productos-search input:focus {
  background: var(--productos-surface);
  border-color: var(--productos-line-strong);
}

.productos-filter-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(110px, 1fr))
    repeat(2, minmax(120px, 1fr))
    minmax(100px, 0.75fr);
  gap: 8px;

  min-width: 0;
}

.productos-filter-grid--categories {
  grid-template-columns:
    repeat(2, minmax(160px, 1fr))
    minmax(100px, 0.75fr);
}

.productos-filter-grid select,
.productos-filter-grid input {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 0 10px;

  color: var(--productos-text);
  background: var(--productos-surface-soft);
  border: 1px solid var(--productos-line);
  border-radius: 9px;

  font-size: 12px;

  outline: none;

  transition:
    background-color var(--productos-transition),
    border-color var(--productos-transition);
}

.productos-filter-grid select {
  cursor: pointer;
}

.productos-filter-grid select:focus,
.productos-filter-grid input:focus {
  background: var(--productos-surface);
  border-color: var(--productos-line-strong);
}

.productos-filter-grid .productos-btn {
  width: 100%;
}

/* =========================================================
   SELECTS · MODO OSCURO
   ========================================================= */

html[data-theme="dark"] .productos-page select,
body.dark .productos-page select,
.dark .productos-page select,
html[data-theme="dark"] .productos-modal-backdrop select,
body.dark .productos-modal-backdrop select,
.dark .productos-modal-backdrop select {
  color-scheme: dark;
}

html[data-theme="dark"] .productos-page option,
body.dark .productos-page option,
.dark .productos-page option,
html[data-theme="dark"] .productos-modal-backdrop option,
body.dark .productos-modal-backdrop option,
.dark .productos-modal-backdrop option {
  color: #f5f5f5;
  background: #080808;
}

/* =========================================================
   TABLAS
   ========================================================= */

.productos-table-wrap {
  width: 100%;
  min-width: 0;

  overflow: auto;
}

.productos-table {
  width: 100%;
  min-width: 1420px;

  border-collapse: collapse;
  table-layout: auto;
}

.productos-table--categories {
  min-width: 1240px;
}

.productos-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;

  padding: 10px 12px;

  color: var(--productos-text-muted);
  background: var(--productos-surface-soft);
  border-bottom: 1px solid var(--productos-line);

  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.065em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.productos-table tbody td {
  padding: 10px 12px;

  color: var(--productos-text-soft);
  background: var(--productos-surface);
  border-bottom: 1px solid var(--productos-line);

  font-size: 12px;
  line-height: 1.35;
  vertical-align: middle;
}

.productos-table tbody tr {
  transition:
    background-color var(--productos-transition);
}

.productos-table tbody tr:hover td {
  background: var(--productos-surface-soft);
}

.productos-table tbody tr:last-child td {
  border-bottom: 0;
}

.productos-table th:last-child,
.productos-table td:last-child {
  width: 68px;
  text-align: right;
}

.productos-table-main {
  display: flex;
  flex-direction: column;

  min-width: 180px;
  max-width: 320px;
}

.productos-table-main strong {
  overflow: hidden;

  color: var(--productos-text);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.productos-table-main span {
  margin-top: 3px;

  overflow: hidden;

  color: var(--productos-text-muted);
  font-size: 10.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.productos-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.productos-number {
  color: var(--productos-text);
  font-size: 12px;
  font-weight: 750;
}

.productos-number.is-danger {
  color: var(--productos-danger);
}

.productos-sku-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 28px;
  min-height: 24px;
  padding: 0 7px;

  color: var(--productos-text);
  background: var(--productos-surface-strong);
  border: 1px solid var(--productos-line);
  border-radius: 7px;

  font-size: 10.5px;
  font-weight: 750;
}

.productos-active-count {
  display: inline-flex;
  align-items: center;

  color: var(--productos-text-soft);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

/* =========================================================
   LINK DE CATEGORÍA
   ========================================================= */

.productos-category-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  max-width: 300px;
  padding: 0;

  color: var(--productos-text);
  background: transparent;
  border: 0;

  font-size: 12px;
  font-weight: 700;
  text-align: left;

  cursor: pointer;
}

.productos-category-link .icon {
  width: 16px;
  height: 16px;

  color: var(--productos-text-muted);
}

.productos-category-link span {
  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.productos-category-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   ESTADOS DE STOCK
   ========================================================= */

.productos-stock-status,
.productos-boolean-status,
.productos-item-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 24px;
  padding: 0 8px;

  border: 1px solid transparent;
  border-radius: 999px;

  font-size: 10.5px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.productos-stock-status.is-available {
  color: var(--productos-success);
  background: var(--productos-success-soft);
  border-color: var(--productos-success-line);
}

.productos-stock-status.is-low {
  color: var(--productos-warning);
  background: var(--productos-warning-soft);
  border-color: var(--productos-warning-line);
}

.productos-stock-status.is-empty {
  color: var(--productos-danger);
  background: var(--productos-danger-soft);
  border-color: var(--productos-danger-line);
}

.productos-boolean-status.is-yes {
  color: var(--productos-text);
  background: var(--productos-surface-strong);
  border-color: var(--productos-line);
}

.productos-boolean-status.is-no {
  color: var(--productos-text-muted);
  background: transparent;
  border-color: var(--productos-line);
}

.productos-item-status.is-active {
  color: var(--productos-success);
  background: var(--productos-success-soft);
  border-color: var(--productos-success-line);
}

.productos-item-status.is-inactive {
  color: var(--productos-text-muted);
  background: var(--productos-surface-strong);
  border-color: var(--productos-line);
}

/* =========================================================
   MENSAJES DE TABLA
   ========================================================= */

.productos-table-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 220px;
  padding: 28px;

  color: var(--productos-text-muted);
  text-align: center;
}

.productos-table-message .icon {
  width: 25px;
  height: 25px;
  margin-bottom: 10px;
}

.productos-table-message strong {
  color: var(--productos-text);
  font-size: 13px;
  font-weight: 700;
}

.productos-table-message span {
  margin-top: 5px;

  color: var(--productos-text-soft);
  font-size: 11.5px;
}

.productos-table-message.is-error .icon,
.productos-table-message.is-error strong {
  color: var(--productos-danger);
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */

.productos-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  min-height: 56px;
  padding: 9px 13px;

  background: var(--productos-surface-soft);
  border-top: 1px solid var(--productos-line);
}

.productos-pagination__info {
  display: flex;
  align-items: baseline;
  gap: 5px;

  color: var(--productos-text-soft);
  font-size: 11.5px;
}

.productos-pagination__info strong {
  color: var(--productos-text);
  font-size: 13px;
  font-weight: 750;
}

.productos-pagination__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.productos-pagination__page {
  color: var(--productos-text-soft);
  font-size: 11.5px;
  white-space: nowrap;
}

.productos-pagination__page strong {
  color: var(--productos-text);
  font-weight: 750;
}

/* =========================================================
   MODALES
   ========================================================= */

html.has-modal-open,
html.has-modal-open body {
  overflow: hidden;
}

.productos-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px;

  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(2px);
}

.productos-modal {
  --productos-surface: #ffffff;
  --productos-surface-soft: #fafafa;
  --productos-surface-strong: #f0f0f0;

  --productos-text: #171717;
  --productos-text-soft: #555555;
  --productos-text-muted: #8a8a8a;

  --productos-line: rgba(0, 0, 0, 0.08);
  --productos-line-strong: rgba(0, 0, 0, 0.15);

  --productos-primary: #111111;
  --productos-primary-text: #ffffff;

  --productos-success: #177245;
  --productos-success-soft: rgba(23, 114, 69, 0.1);
  --productos-success-line: rgba(23, 114, 69, 0.22);

  --productos-warning: #9a6700;
  --productos-warning-soft: rgba(154, 103, 0, 0.1);
  --productos-warning-line: rgba(154, 103, 0, 0.22);

  --productos-danger: #b42318;
  --productos-danger-soft: rgba(180, 35, 24, 0.08);
  --productos-danger-line: rgba(180, 35, 24, 0.2);

  display: flex;
  flex-direction: column;

  width: min(1180px, 100%);
  max-height: calc(100vh - 36px);

  overflow: hidden;

  color: var(--productos-text);
  background: var(--productos-surface);
  border: 1px solid var(--productos-line-strong);
  border-radius: 16px;
  box-shadow: var(--productos-shadow);
}

html[data-theme="dark"] .productos-modal,
body.dark .productos-modal,
.dark .productos-modal {
  --productos-surface: #050505;
  --productos-surface-soft: #0a0a0a;
  --productos-surface-strong: #171717;

  --productos-text: #f5f5f5;
  --productos-text-soft: #bdbdbd;
  --productos-text-muted: #7d7d7d;

  --productos-line: rgba(255, 255, 255, 0.08);
  --productos-line-strong: rgba(255, 255, 255, 0.15);

  --productos-primary: #f5f5f5;
  --productos-primary-text: #000000;

  --productos-success: #6fd7a3;
  --productos-success-soft: rgba(111, 215, 163, 0.09);
  --productos-success-line: rgba(111, 215, 163, 0.2);

  --productos-warning: #e5c36a;
  --productos-warning-soft: rgba(229, 195, 106, 0.09);
  --productos-warning-line: rgba(229, 195, 106, 0.2);

  --productos-danger: #ff8a80;
  --productos-danger-soft: rgba(255, 138, 128, 0.08);
  --productos-danger-line: rgba(255, 138, 128, 0.2);

  background: #050505;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.82);
}

.productos-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  padding: 17px 18px 15px;

  background: var(--productos-surface);
  border-bottom: 1px solid var(--productos-line);
}

.productos-modal__header > div {
  min-width: 0;
}

.productos-modal__header span {
  display: block;

  color: var(--productos-text-muted);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.09em;
}

.productos-modal__header h3 {
  margin: 4px 0 0;

  color: var(--productos-text);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.productos-modal__header p {
  margin: 5px 0 0;

  color: var(--productos-text-soft);
  font-size: 11.5px;
  line-height: 1.4;
}

.productos-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;

  color: var(--productos-text-soft);
  background: transparent;
  border: 1px solid var(--productos-line);
  border-radius: 9px;

  cursor: pointer;
}

.productos-modal__close:hover {
  color: var(--productos-text);
  background: var(--productos-surface-soft);
}

.productos-modal__body {
  flex: 1 1 auto;
  min-height: 0;

  overflow: auto;

  padding: 14px;

  background: var(--productos-surface-soft);
}

.productos-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;

  padding: 12px 18px;

  background: var(--productos-surface);
  border-top: 1px solid var(--productos-line);
}

/* =========================================================
   RESUMEN DE DETALLE
   ========================================================= */

.productos-detail-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;

  margin-bottom: 12px;

  overflow: hidden;

  background: var(--productos-line);
  border: 1px solid var(--productos-line);
  border-radius: 11px;
}

.productos-detail-summary article {
  display: flex;
  flex-direction: column;

  min-width: 0;
  padding: 12px;

  background: var(--productos-surface);
}

.productos-detail-summary span {
  color: var(--productos-text-muted);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.productos-detail-summary strong {
  margin-top: 5px;

  color: var(--productos-text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

/* =========================================================
   SECCIÓN DE DETALLE
   ========================================================= */

.productos-detail-section {
  padding: 13px;

  background: var(--productos-surface);
  border: 1px solid var(--productos-line);
  border-radius: 12px;
}

.productos-detail-section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 11px;
}

.productos-detail-section__title > div {
  display: flex;
  flex-direction: column;
}

.productos-detail-section__title span {
  color: var(--productos-text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.productos-detail-section__title strong {
  margin-top: 3px;

  color: var(--productos-text);
  font-size: 12.5px;
  font-weight: 750;
}

/* =========================================================
   TABLA DE DETALLE
   ========================================================= */

.productos-detail-table-wrap {
  width: 100%;
  overflow: auto;

  border: 1px solid var(--productos-line);
  border-radius: 9px;
}

.productos-detail-table {
  width: 100%;
  min-width: 940px;

  border-collapse: collapse;
}

.productos-detail-table thead th {
  padding: 9px 10px;

  color: var(--productos-text-muted);
  background: var(--productos-surface-soft);
  border-bottom: 1px solid var(--productos-line);

  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.productos-detail-table tbody td {
  padding: 9px 10px;

  color: var(--productos-text-soft);
  background: var(--productos-surface);
  border-bottom: 1px solid var(--productos-line);

  font-size: 11.5px;
  vertical-align: middle;
}

.productos-detail-table tbody tr:last-child td {
  border-bottom: 0;
}

.productos-detail-table tbody tr:hover td {
  background: var(--productos-surface-soft);
}

.productos-detail-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  padding: 0;

  overflow: hidden;

  color: var(--productos-text-muted);
  background: var(--productos-surface-strong);
  border: 1px solid var(--productos-line);
  border-radius: 8px;

  cursor: zoom-in;
}

.productos-detail-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.productos-detail-image.is-empty {
  cursor: default;
}

.productos-detail-image.is-empty .icon {
  width: 17px;
  height: 17px;
}

.productos-detail-sku {
  display: inline-flex;
  align-items: center;

  max-width: 240px;
  padding: 4px 7px;

  overflow: hidden;

  color: var(--productos-text-soft);
  background: var(--productos-surface-strong);
  border: 1px solid var(--productos-line);
  border-radius: 6px;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 10.5px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.productos-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 180px;
  padding: 24px;

  color: var(--productos-text-muted);
  text-align: center;
}

.productos-detail-empty .icon {
  width: 26px;
  height: 26px;
  margin-bottom: 9px;
}

.productos-detail-empty strong {
  color: var(--productos-text);
  font-size: 12.5px;
}

/* =========================================================
   MODAL DE IMAGEN
   ========================================================= */

.productos-image-modal {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: min(1100px, 100%);
  height: min(820px, calc(100vh - 36px));
  padding: 18px;

  overflow: hidden;

  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.productos-image-modal img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  background: #000000;
}

.productos-image-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  padding: 0;

  color: #ffffff;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;

  cursor: pointer;
}

/* =========================================================
   TOAST
   ========================================================= */

.productos-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;

  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 14px;

  color: #ffffff;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;

  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;

  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);

  transition:
    opacity var(--productos-transition),
    transform var(--productos-transition);
}

.productos-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.productos-toast.is-error {
  background: #8f1d15;
}

/* =========================================================
   ANIMACIÓN DE CARGA
   ========================================================= */

.is-spinning {
  animation:
    productos-spin 0.8s linear infinite;
}

@keyframes productos-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

.productos-table-wrap,
.productos-modal__body,
.productos-detail-table-wrap {
  scrollbar-width: thin;
  scrollbar-color:
    var(--productos-line-strong)
    transparent;
}

.productos-table-wrap::-webkit-scrollbar,
.productos-modal__body::-webkit-scrollbar,
.productos-detail-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.productos-table-wrap::-webkit-scrollbar-thumb,
.productos-modal__body::-webkit-scrollbar-thumb,
.productos-detail-table-wrap::-webkit-scrollbar-thumb {
  background: var(--productos-line-strong);
  border-radius: 999px;
}

/* =========================================================
   FORZAR NEGRO EN MODO OSCURO
   ========================================================= */

html[data-theme="dark"] .productos-page,
body.dark .productos-page,
.dark .productos-page {
  background-color: #000000;
  background-image: none;
}

html[data-theme="dark"] .productos-panel,
body.dark .productos-panel,
.dark .productos-panel {
  background-color: #080808;
  background-image: none;
}

html[data-theme="dark"] .productos-toolbar,
body.dark .productos-toolbar,
.dark .productos-toolbar {
  background-color: #080808;
  background-image: none;
}

html[data-theme="dark"] .productos-metric,
body.dark .productos-metric,
.dark .productos-metric {
  background-color: #080808;
}

html[data-theme="dark"] .productos-table thead th,
body.dark .productos-table thead th,
.dark .productos-table thead th {
  background-color: #0d0d0d;
}

html[data-theme="dark"] .productos-table tbody td,
body.dark .productos-table tbody td,
.dark .productos-table tbody td {
  background-color: #080808;
}

html[data-theme="dark"] .productos-table tbody tr:hover td,
body.dark .productos-table tbody tr:hover td,
.dark .productos-table tbody tr:hover td {
  background-color: #101010;
}

html[data-theme="dark"] .productos-pagination,
body.dark .productos-pagination,
.dark .productos-pagination {
  background-color: #0d0d0d;
  background-image: none;
}

html[data-theme="dark"] .productos-modal-backdrop,
body.dark .productos-modal-backdrop,
.dark .productos-modal-backdrop {
  background: rgba(0, 0, 0, 0.84);
}

html[data-theme="dark"] .productos-modal,
body.dark .productos-modal,
.dark .productos-modal {
  background-color: #050505;
  background-image: none;
}

html[data-theme="dark"] .productos-modal__header,
body.dark .productos-modal__header,
.dark .productos-modal__header {
  background-color: #050505;
  background-image: none;
}

html[data-theme="dark"] .productos-modal__body,
body.dark .productos-modal__body,
.dark .productos-modal__body {
  background-color: #0a0a0a;
  background-image: none;
}

html[data-theme="dark"] .productos-modal__footer,
body.dark .productos-modal__footer,
.dark .productos-modal__footer {
  background-color: #050505;
  background-image: none;
}

html[data-theme="dark"] .productos-detail-summary article,
body.dark .productos-detail-summary article,
.dark .productos-detail-summary article,
html[data-theme="dark"] .productos-detail-section,
body.dark .productos-detail-section,
.dark .productos-detail-section,
html[data-theme="dark"] .productos-detail-table tbody td,
body.dark .productos-detail-table tbody td,
.dark .productos-detail-table tbody td {
  background-color: #080808;
}

html[data-theme="dark"] .productos-detail-table thead th,
body.dark .productos-detail-table thead th,
.dark .productos-detail-table thead th {
  background-color: #0d0d0d;
}

html[data-theme="dark"] .productos-detail-table tbody tr:hover td,
body.dark .productos-detail-table tbody tr:hover td,
.dark .productos-detail-table tbody tr:hover td {
  background-color: #101010;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1440px) {
  .productos-metrics {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .productos-toolbar {
    grid-template-columns: 1fr;
  }

  .productos-filter-grid {
    grid-template-columns:
      repeat(3, minmax(130px, 1fr));
  }

  .productos-filter-grid--categories {
    grid-template-columns:
      repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 1040px) {
  .productos-filter-grid {
    grid-template-columns:
      repeat(2, minmax(130px, 1fr));
  }

  .productos-detail-summary {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .productos-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .productos-head__actions {
    width: 100%;
    justify-content: space-between;
  }

  .productos-view-switch {
    flex: 1 1 auto;
  }

  .productos-view-switch__button {
    flex: 1 1 0;
  }

  .productos-head__actions > .productos-btn {
    flex: 0 0 auto;
  }

  .productos-metrics {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .productos-filter-grid,
  .productos-filter-grid--categories {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .productos-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .productos-pagination__controls {
    justify-content: space-between;
  }

  .productos-modal-backdrop {
    padding: 8px;
  }

  .productos-modal {
    max-height: calc(100vh - 16px);
    border-radius: 12px;
  }

  .productos-modal__header {
    padding: 14px;
  }

  .productos-modal__body {
    padding: 10px;
  }

  .productos-modal__footer {
    padding: 10px 14px;
  }

  .productos-detail-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .productos-brand h2 {
    font-size: 18px;
  }

  .productos-brand p {
    font-size: 11.5px;
  }

  .productos-head__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .productos-head__actions > .productos-btn {
    width: 100%;
  }

  .productos-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .productos-metric {
    min-height: 78px;
    padding: 12px;
  }

  .productos-metric strong {
    font-size: 19px;
  }

  .productos-toolbar {
    padding: 10px;
  }

  .productos-filter-grid,
  .productos-filter-grid--categories {
    grid-template-columns: 1fr;
  }

  .productos-pagination__controls {
    flex-wrap: wrap;
  }

  .productos-pagination__controls .productos-btn {
    flex: 1 1 0;
  }

  .productos-pagination__page {
    width: 100%;

    text-align: center;

    order: -1;
  }

  .productos-modal__footer {
    flex-wrap: wrap;
  }

  .productos-modal__footer .productos-btn {
    flex: 1 1 0;
  }

  .productos-detail-summary {
    grid-template-columns: 1fr 1fr;
  }

  .productos-detail-section__title {
    align-items: flex-start;
    flex-direction: column;
  }

  .productos-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;

    max-width: none;
  }
}/* =========================================================
   WIRTZ HUB · PRODUCTOS · MODAL DE REPORTES
   ========================================================= */

/* =========================================================
   BOTÓN PRINCIPAL
   ========================================================= */

.productos-btn--primary {
  color: var(--productos-primary-text);
  background: var(--productos-primary);
  border-color: var(--productos-primary);
}

.productos-btn--primary:hover:not(:disabled) {
  color: var(--productos-primary-text);
  background: #000000;
  border-color: #000000;
}

html[data-theme="dark"] .productos-btn--primary,
body.dark .productos-btn--primary,
.dark .productos-btn--primary {
  color: #000000;
  background: #f5f5f5;
  border-color: #f5f5f5;
}

html[data-theme="dark"] .productos-btn--primary:hover:not(:disabled),
body.dark .productos-btn--primary:hover:not(:disabled),
.dark .productos-btn--primary:hover:not(:disabled) {
  color: #000000;
  background: #ffffff;
  border-color: #ffffff;
}

/* =========================================================
   MODAL DE REPORTE
   ========================================================= */

.productos-modal--report {
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
}

.productos-report-header {
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
}

.productos-report-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  color: var(--productos-text);
  background: var(--productos-surface-soft);
  border: 1px solid var(--productos-line);
  border-radius: 10px;
}

.productos-report-header__icon .icon,
.productos-report-header__icon svg {
  display: block;

  width: 19px;
  height: 19px;

  margin: 0;
}

.productos-report-header > div {
  min-width: 0;
}

.productos-report-body {
  display: grid;
  align-content: start;
  gap: 12px;

  padding: 14px;

  overflow-x: hidden;
  overflow-y: auto;
}

/* =========================================================
   SECCIONES
   ========================================================= */

.productos-report-section {
  min-width: 0;

  overflow: hidden;

  background: var(--productos-surface);
  border: 1px solid var(--productos-line);
  border-radius: 12px;
}

.productos-report-section__head {
  display: flex;
  flex-direction: column;
  gap: 4px;

  min-height: 52px;
  padding: 11px 13px;

  background: var(--productos-surface-soft);
  border-bottom: 1px solid var(--productos-line);
}

.productos-report-section__head span {
  color: var(--productos-text-muted);

  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.productos-report-section__head strong {
  color: var(--productos-text);

  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}

/* =========================================================
   OPCIONES DE VISTA
   ========================================================= */

.productos-report-options {
  display: grid;

  min-width: 0;

  background: var(--productos-line);
}

.productos-report-options--two {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 1px;
}

.productos-report-choice {
  position: relative;

  display: grid;
  grid-template-columns:
    38px
    minmax(0, 1fr);
  align-items: center;
  gap: 10px;

  min-width: 0;
  min-height: 78px;
  padding: 12px;

  background: var(--productos-surface);

  cursor: pointer;

  transition:
    background-color var(--productos-transition);
}

.productos-report-choice:hover {
  background: var(--productos-surface-soft);
}

.productos-report-choice input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.productos-report-choice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  color: var(--productos-text-soft);
  background: var(--productos-surface-strong);
  border: 1px solid var(--productos-line);
  border-radius: 9px;

  transition:
    color var(--productos-transition),
    background-color var(--productos-transition),
    border-color var(--productos-transition);
}

.productos-report-choice__icon .icon,
.productos-report-choice__icon svg {
  width: 18px;
  height: 18px;
}

.productos-report-choice__content {
  display: grid;
  gap: 4px;

  min-width: 0;
}

.productos-report-choice__content strong {
  color: var(--productos-text);

  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.2;
}

.productos-report-choice__content small {
  color: var(--productos-text-soft);

  font-size: 10.5px;
  line-height: 1.35;
}

.productos-report-choice:has(input:checked) {
  background: var(--productos-surface-soft);
}

.productos-report-choice:has(input:checked)
.productos-report-choice__icon {
  color: var(--productos-primary-text);
  background: var(--productos-primary);
  border-color: var(--productos-primary);
}

.productos-report-choice:has(input:checked)::after {
  content: "";

  position: absolute;
  top: 10px;
  right: 10px;

  width: 8px;
  height: 8px;

  background: var(--productos-success);
  border-radius: 999px;
}

/* =========================================================
   CAMPOS DEL REPORTE
   ========================================================= */

.productos-report-fields {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;

  padding: 12px;
}

.productos-report-fields label {
  display: grid;
  gap: 6px;

  min-width: 0;
}

.productos-report-fields label > span {
  color: var(--productos-text-muted);

  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.productos-report-fields select {
  width: 100%;
  min-width: 0;
  height: 40px;

  padding:
    0
    11px;

  color: var(--productos-text);
  background: var(--productos-surface-soft);
  border: 1px solid var(--productos-line);
  border-radius: 9px;

  font-size: 12px;
  font-weight: 600;

  outline: none;
  cursor: pointer;

  transition:
    background-color var(--productos-transition),
    border-color var(--productos-transition);
}

.productos-report-fields select:hover,
.productos-report-fields select:focus {
  background: var(--productos-surface);
  border-color: var(--productos-line-strong);
}

/* =========================================================
   INFORMACIÓN DE FILTROS
   ========================================================= */

.productos-report-filter-info {
  display: grid;
  grid-template-columns:
    34px
    minmax(0, 1fr);
  align-items: center;
  gap: 10px;

  margin:
    0
    12px
    12px;
  padding: 10px;

  background: var(--productos-surface-soft);
  border: 1px solid var(--productos-line);
  border-radius: 9px;
}

.productos-report-filter-info > .icon,
.productos-report-filter-info > svg {
  width: 16px;
  height: 16px;

  margin: auto;

  color: var(--productos-text-muted);
}

.productos-report-filter-info > div {
  display: grid;
  gap: 3px;

  min-width: 0;
}

.productos-report-filter-info strong {
  color: var(--productos-text);

  font-size: 11px;
  font-weight: 750;
}

.productos-report-filter-info span {
  overflow: hidden;

  color: var(--productos-text-soft);

  font-size: 10px;
  line-height: 1.35;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   CHECKBOXES
   ========================================================= */

.productos-report-checks {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  min-width: 0;

  background: var(--productos-line);
  gap: 1px;
}

.productos-report-checks label {
  display: grid;
  grid-template-columns:
    18px
    minmax(0, 1fr);
  align-items: start;
  gap: 9px;

  min-width: 0;
  min-height: 68px;
  padding: 11px 12px;

  background: var(--productos-surface);

  cursor: pointer;

  transition:
    background-color var(--productos-transition);
}

.productos-report-checks label:hover {
  background: var(--productos-surface-soft);
}

.productos-report-checks input {
  width: 16px;
  height: 16px;

  margin: 1px 0 0;

  accent-color: var(--productos-primary);

  cursor: pointer;
}

.productos-report-checks label > span {
  display: grid;
  gap: 4px;

  min-width: 0;
}

.productos-report-checks strong {
  color: var(--productos-text);

  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.2;
}

.productos-report-checks small {
  color: var(--productos-text-soft);

  font-size: 10px;
  line-height: 1.35;
}

/* =========================================================
   VISTA PREVIA
   ========================================================= */

.productos-report-preview {
  display: grid;
  grid-template-columns:
    42px
    minmax(0, 1fr);
  align-items: center;
  gap: 11px;

  min-width: 0;
  padding: 12px;

  background: var(--productos-surface);
  border: 1px solid var(--productos-line-strong);
  border-radius: 12px;
}

.productos-report-preview__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  color: var(--productos-text);
  background: var(--productos-surface-strong);
  border: 1px solid var(--productos-line);
  border-radius: 10px;
}

.productos-report-preview__icon .icon,
.productos-report-preview__icon svg {
  width: 19px;
  height: 19px;
}

.productos-report-preview > div {
  display: grid;
  gap: 3px;

  min-width: 0;
}

.productos-report-preview > div > span {
  color: var(--productos-text-muted);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.productos-report-preview strong {
  overflow: hidden;

  color: var(--productos-text);

  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.productos-report-preview small {
  overflow: hidden;

  color: var(--productos-text-soft);

  font-size: 10.5px;
  line-height: 1.3;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   FOOTER DEL MODAL
   ========================================================= */

.productos-modal--report
.productos-modal__footer {
  min-height: 62px;

  padding:
    11px
    16px;
}

.productos-modal--report
.productos-modal__footer
.productos-btn {
  min-width: 132px;
}

.productos-modal--report
.productos-modal__footer
.productos-btn--primary {
  min-width: 180px;
}

/* =========================================================
   ICONOS CENTRADOS
   ========================================================= */

.productos-modal--report
.productos-modal__close,
.productos-modal--report
.productos-btn,
.productos-report-header__icon,
.productos-report-choice__icon,
.productos-report-preview__icon {
  line-height: 0;
}

.productos-modal--report
.productos-modal__close
.icon,
.productos-modal--report
.productos-modal__close
svg,
.productos-modal--report
.productos-btn
.icon,
.productos-modal--report
.productos-btn
svg {
  display: block;

  margin: 0;
}

/* =========================================================
   MODO OSCURO
   ========================================================= */

html[data-theme="dark"]
.productos-report-choice:has(input:checked)
.productos-report-choice__icon,
body.dark
.productos-report-choice:has(input:checked)
.productos-report-choice__icon,
.dark
.productos-report-choice:has(input:checked)
.productos-report-choice__icon {
  color: #000000;
  background: #f5f5f5;
  border-color: #f5f5f5;
}

html[data-theme="dark"]
.productos-report-checks
input,
body.dark
.productos-report-checks
input,
.dark
.productos-report-checks
input {
  accent-color: #f5f5f5;
}

/* =========================================================
   SCROLLBAR DEL REPORTE
   ========================================================= */

.productos-report-body {
  scrollbar-width: thin;

  scrollbar-color:
    var(--productos-line-strong)
    transparent;
}

.productos-report-body::-webkit-scrollbar {
  width: 8px;
}

.productos-report-body::-webkit-scrollbar-track {
  background: transparent;
}

.productos-report-body::-webkit-scrollbar-thumb {
  background: var(--productos-line-strong);
  border-radius: 999px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
  .productos-modal--report {
    width: 100%;
    max-height: calc(100dvh - 16px);
  }

  .productos-report-body {
    padding: 10px;
  }

  .productos-report-options--two,
  .productos-report-fields,
  .productos-report-checks {
    grid-template-columns: 1fr;
  }

  .productos-report-choice {
    min-height: 72px;
  }

  .productos-report-checks label {
    min-height: 62px;
  }

  .productos-modal--report
  .productos-modal__footer {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    width: 100%;
  }

  .productos-modal--report
  .productos-modal__footer
  .productos-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .productos-report-header {
    align-items: flex-start;
  }

  .productos-report-header__icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .productos-report-header__icon .icon,
  .productos-report-header__icon svg {
    width: 17px;
    height: 17px;
  }

  .productos-report-section__head {
    min-height: 48px;

    padding:
      10px
      11px;
  }

  .productos-report-choice {
    grid-template-columns:
      34px
      minmax(0, 1fr);

    padding: 10px;
  }

  .productos-report-choice__icon {
    width: 34px;
    height: 34px;
  }

  .productos-report-fields {
    padding: 10px;
  }

  .productos-report-filter-info {
    margin:
      0
      10px
      10px;
  }

  .productos-report-filter-info span {
    white-space: normal;
  }

  .productos-report-preview {
    grid-template-columns:
      36px
      minmax(0, 1fr);

    padding: 10px;
  }

  .productos-report-preview__icon {
    width: 36px;
    height: 36px;
  }

  .productos-report-preview strong,
  .productos-report-preview small {
    white-space: normal;
  }

  .productos-modal--report
  .productos-modal__footer {
    grid-template-columns: 1fr;
  }
}/* =========================================================
   PRODUCTOS
   MISMO TAMAÑO + TABLAS CUADRICULADAS + SCROLL DE PÁGINA
   Agregar al FINAL de productos.css
   ========================================================= */

/* =========================================================
   CONTENIDO GENERAL
   ========================================================= */

.app-content:has(.productos-page) {
  display: block !important;

  width: 100% !important;
  max-width: none !important;

  height: auto !important;
  min-height: 0 !important;

  padding: 10px !important;

  overflow: visible !important;
}

.productos-page {
  display: grid !important;

  grid-template-rows:
    auto
    auto
    auto !important;

  align-content: start !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  gap: 12px !important;

  overflow: visible !important;
}

/* =========================================================
   CABECERA
   ========================================================= */

.productos-head {
  display: grid !important;

  grid-template-columns:
    minmax(300px, 1fr)
    auto !important;

  align-items: center !important;

  width: 100% !important;

  min-height: 92px !important;

  margin-bottom: 0 !important;

  padding:
    15px
    17px !important;

  gap: 16px !important;

  background:
    var(--productos-surface) !important;

  border:
    1px solid
    var(--productos-line) !important;

  border-radius: 13px !important;
}

.productos-brand {
  gap: 13px !important;
}

.productos-brand__icon {
  width: 46px !important;
  height: 46px !important;

  min-width: 46px !important;
  max-width: 46px !important;

  min-height: 46px !important;
  max-height: 46px !important;

  flex:
    0
    0
    46px !important;

  border-radius: 11px !important;
}

.productos-brand__icon .icon,
.productos-brand__icon svg {
  width: 21px !important;
  height: 21px !important;

  min-width: 21px !important;
  min-height: 21px !important;
}

.productos-brand h2 {
  font-size:
    clamp(
      24px,
      2.1vw,
      30px
    ) !important;

  font-weight: 950 !important;
  line-height: 1 !important;
}

.productos-brand p {
  margin-top: 6px !important;

  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

/* =========================================================
   BOTONES
   ========================================================= */

.productos-btn,
.productos-view-switch__button {
  min-height: 36px !important;
  height: 36px !important;

  padding:
    0
    12px !important;

  gap: 7px !important;

  border-radius: 9px !important;

  font-size: 11px !important;
  font-weight: 900 !important;
}

.productos-btn .icon,
.productos-btn svg,
.productos-view-switch__button .icon,
.productos-view-switch__button svg {
  width: 15px !important;
  height: 15px !important;

  min-width: 15px !important;
  min-height: 15px !important;
}

.productos-icon-btn {
  display: grid !important;
  place-items: center !important;

  width: 30px !important;
  height: 30px !important;

  min-width: 30px !important;
  max-width: 30px !important;

  min-height: 30px !important;
  max-height: 30px !important;

  padding: 0 !important;

  border:
    1px solid
    var(--productos-line) !important;

  border-radius: 8px !important;
}

.productos-icon-btn .icon,
.productos-icon-btn svg {
  width: 14px !important;
  height: 14px !important;

  min-width: 14px !important;
  min-height: 14px !important;
}

/* =========================================================
   SELECTOR DE VISTA
   ========================================================= */

.productos-view-switch {
  min-height: 42px !important;

  padding: 3px !important;

  border-radius: 10px !important;
}

/* =========================================================
   MÉTRICAS
   ========================================================= */

.productos-metrics {
  grid-template-columns:
    repeat(
      8,
      minmax(0, 1fr)
    ) !important;

  gap: 1px !important;

  width: 100% !important;

  margin-bottom: 0 !important;

  border-radius: 13px !important;
}

.productos-metric {
  min-height: 72px !important;

  padding:
    11px
    12px !important;
}

.productos-metric span {
  font-size: 9px !important;
  font-weight: 900 !important;
}

.productos-metric strong {
  margin-top: 5px !important;

  font-size: 19px !important;
  font-weight: 950 !important;
}

.productos-metric small {
  margin-top: 5px !important;

  font-size: 9.5px !important;
  font-weight: 700 !important;
}

/* =========================================================
   PANELES
   ========================================================= */

.productos-panel {
  display: block !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  border-radius: 13px !important;

  overflow: visible !important;
}

.productos-panel[hidden] {
  display: none !important;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.productos-toolbar {
  display: grid !important;

  grid-template-columns:
    minmax(300px, 1fr)
    minmax(0, 2fr) !important;

  align-items: center !important;

  width: 100% !important;

  gap: 10px !important;

  padding: 12px !important;
}

.productos-search {
  width: 100% !important;
  min-width: 0 !important;
}

.productos-search input {
  width: 100% !important;

  height: 38px !important;
  min-height: 38px !important;

  padding:
    0
    11px
    0
    35px !important;

  border-radius: 9px !important;

  font-size: 10.5px !important;
  font-weight: 800 !important;
}

.productos-search .icon,
.productos-search svg {
  left: 12px !important;

  width: 14px !important;
  height: 14px !important;
}

.productos-filter-grid {
  display: grid !important;

  grid-template-columns:
    repeat(
      5,
      minmax(110px, 1fr)
    )
    auto !important;

  width: 100% !important;
  min-width: 0 !important;

  gap: 7px !important;
}

.productos-filter-grid--categories {
  grid-template-columns:
    repeat(
      2,
      minmax(150px, 1fr)
    )
    auto !important;
}

.productos-filter-grid select,
.productos-filter-grid input {
  width: 100% !important;
  min-width: 0 !important;

  height: 38px !important;
  min-height: 38px !important;

  padding:
    0
    10px !important;

  border-radius: 9px !important;

  font-size: 10.3px !important;
  font-weight: 800 !important;
}

/* =========================================================
   CONTENEDOR DE TABLA
   SCROLL HORIZONTAL SOLAMENTE
   ========================================================= */

.productos-table-wrap {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  overflow-x: auto !important;
  overflow-y: visible !important;

  scrollbar-gutter: auto !important;
  overscroll-behavior: auto !important;
}

/* =========================================================
   TABLAS · CUADRÍCULA
   ========================================================= */

.productos-table,
.productos-table--categories {
  width: 100% !important;
  max-width: none !important;

  border-collapse: separate !important;
  border-spacing: 0 !important;

  table-layout: fixed !important;

  border:
    1px solid
    var(--productos-line-strong) !important;
}

.productos-table {
  min-width: 1420px !important;
}

.productos-table--categories {
  min-width: 1240px !important;
}

.productos-table thead {
  position: static !important;
}

.productos-table thead th,
.productos-table tbody td {
  border-right:
    1px solid
    var(--productos-line) !important;

  border-bottom:
    1px solid
    var(--productos-line) !important;
}

.productos-table thead th:last-child,
.productos-table tbody td:last-child {
  border-right: 0 !important;
}

.productos-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* =========================================================
   ENCABEZADOS
   ========================================================= */

.productos-table thead th {
  position: static !important;

  height: 42px !important;

  padding:
    0
    9px !important;

  color:
    var(--productos-text-muted) !important;

  background:
    var(--productos-surface-strong) !important;

  border-bottom:
    1px solid
    var(--productos-line-strong) !important;

  font-size: 8.5px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

/* =========================================================
   FILAS
   ========================================================= */

.productos-table tbody td {
  height: 50px !important;

  padding:
    0
    9px !important;

  font-size: 10px !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
}

.productos-table tbody tr:nth-child(even) td {
  background:
    color-mix(
      in srgb,
      var(--productos-surface-strong) 35%,
      var(--productos-surface)
    ) !important;
}

.productos-table tbody tr:hover td {
  background:
    var(--productos-surface-strong) !important;
}

/* =========================================================
   TABLA PRODUCTOS · ANCHOS
   ========================================================= */

#productosModelsPanel
.productos-table
th:nth-child(1),
#productosModelsPanel
.productos-table
td:nth-child(1) {
  width: 250px !important;
}

#productosModelsPanel
.productos-table
th:nth-child(2),
#productosModelsPanel
.productos-table
td:nth-child(2) {
  width: 70px !important;
}

#productosModelsPanel
.productos-table
th:nth-child(3),
#productosModelsPanel
.productos-table
td:nth-child(3),
#productosModelsPanel
.productos-table
th:nth-child(4),
#productosModelsPanel
.productos-table
td:nth-child(4),
#productosModelsPanel
.productos-table
th:nth-child(5),
#productosModelsPanel
.productos-table
td:nth-child(5) {
  width: 95px !important;
}

#productosModelsPanel
.productos-table
th:nth-child(6),
#productosModelsPanel
.productos-table
td:nth-child(6) {
  width: 110px !important;
}

#productosModelsPanel
.productos-table
th:nth-child(7),
#productosModelsPanel
.productos-table
td:nth-child(7),
#productosModelsPanel
.productos-table
th:nth-child(8),
#productosModelsPanel
.productos-table
td:nth-child(8) {
  width: 120px !important;
}

#productosModelsPanel
.productos-table
th:nth-child(9),
#productosModelsPanel
.productos-table
td:nth-child(9),
#productosModelsPanel
.productos-table
th:nth-child(10),
#productosModelsPanel
.productos-table
td:nth-child(10) {
  width: 105px !important;
}

#productosModelsPanel
.productos-table
th:nth-child(11),
#productosModelsPanel
.productos-table
td:nth-child(11) {
  width: 130px !important;
}

#productosModelsPanel
.productos-table
th:nth-child(12),
#productosModelsPanel
.productos-table
td:nth-child(12) {
  width: 78px !important;

  text-align: center !important;
}

/* =========================================================
   TABLA CATEGORÍAS · ANCHOS
   ========================================================= */

#productosCategoriesPanel
.productos-table
th:nth-child(1),
#productosCategoriesPanel
.productos-table
td:nth-child(1) {
  width: 250px !important;
}

#productosCategoriesPanel
.productos-table
th:nth-child(n + 2),
#productosCategoriesPanel
.productos-table
td:nth-child(n + 2) {
  width: 100px !important;
}

/* =========================================================
   CONTENIDO DE TABLA
   ========================================================= */

.productos-table-main {
  min-width: 0 !important;
  max-width: 100% !important;
}

.productos-table-main strong {
  font-size: 10.5px !important;
  font-weight: 950 !important;
}

.productos-table-main span {
  margin-top: 3px !important;

  font-size: 8.8px !important;
}

.productos-number {
  font-size: 10px !important;
  font-weight: 950 !important;
}

.productos-sku-count {
  min-width: 28px !important;
  min-height: 24px !important;

  font-size: 8.8px !important;
  font-weight: 950 !important;
}

.productos-active-count {
  font-size: 9px !important;
  font-weight: 850 !important;
}

.productos-category-link {
  max-width: 100% !important;

  font-size: 10px !important;
  font-weight: 900 !important;
}

.productos-category-link .icon,
.productos-category-link svg {
  width: 14px !important;
  height: 14px !important;
}

/* =========================================================
   ESTADOS
   ========================================================= */

.productos-stock-status,
.productos-boolean-status,
.productos-item-status {
  min-height: 24px !important;

  padding:
    4px
    8px !important;

  font-size: 8.5px !important;
  font-weight: 950 !important;
}

/* =========================================================
   ACCIONES
   ========================================================= */

.productos-table th:last-child,
.productos-table td:last-child {
  position: static !important;

  right: auto !important;

  background: inherit !important;

  border-left:
    1px solid
    var(--productos-line-strong) !important;

  box-shadow: none !important;
}

.productos-table thead th:last-child {
  background:
    var(--productos-surface-strong) !important;
}

.productos-table-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;

  gap: 5px !important;

  overflow: visible !important;
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */

.productos-pagination {
  position: static !important;

  width: 100% !important;

  min-height: 52px !important;

  padding:
    8px
    12px !important;

  background:
    var(--productos-surface-soft) !important;

  border:
    1px solid
    var(--productos-line) !important;

  border-top: 0 !important;

  border-radius:
    0
    0
    13px
    13px !important;
}

.productos-pagination__info,
.productos-pagination__page {
  font-size: 10px !important;
}

.productos-pagination__info strong,
.productos-pagination__page strong {
  font-size: 10.5px !important;
  font-weight: 950 !important;
}

/* =========================================================
   FOOTER · DEBAJO DE LA LISTA
   ========================================================= */

body:has(.productos-page) .app-main {
  min-height: 100vh !important;
  height: auto !important;

  overflow: visible !important;
}

body:has(.productos-page) .app-shell {
  min-height: 100vh !important;
  height: auto !important;

  overflow: visible !important;
}

body:has(.productos-page) .app-footer,
body:has(.productos-page) #footerMount,
body:has(.productos-page) footer.app-footer {
  position: static !important;

  inset: auto !important;

  width: 100% !important;

  margin-top: 12px !important;

  transform: none !important;
}

/* =========================================================
   MODALES
   ========================================================= */

.productos-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;

  z-index: 100000 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100vw !important;
  height: 100dvh !important;

  margin: 0 !important;
  padding: 18px !important;

  background:
    rgba(
      0,
      0,
      0,
      0.76
    ) !important;

  overflow: hidden !important;

  isolation: isolate !important;
}

.productos-modal {
  display: grid !important;

  grid-template-rows:
    auto
    minmax(0, 1fr)
    auto !important;

  width:
    min(
      1280px,
      calc(100vw - 36px)
    ) !important;

  height:
    min(
      860px,
      calc(100dvh - 36px)
    ) !important;

  max-height:
    calc(
      100dvh -
      36px
    ) !important;

  min-width: 0 !important;
  min-height: 0 !important;

  border-radius: 16px !important;

  overflow: hidden !important;
}

.productos-modal--report {
  width:
    min(
      960px,
      calc(100vw - 36px)
    ) !important;
}

.productos-modal__header {
  min-height: 72px !important;

  padding:
    13px
    15px !important;
}

.productos-modal__header h3 {
  font-size: 19px !important;
  font-weight: 950 !important;
}

.productos-modal__header p {
  font-size: 10.5px !important;
}

.productos-modal__close {
  width: 36px !important;
  height: 36px !important;

  min-width: 36px !important;
  min-height: 36px !important;

  flex:
    0
    0
    36px !important;
}

.productos-modal__body {
  min-height: 0 !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.productos-modal__footer {
  min-height: 64px !important;

  padding:
    12px
    15px !important;
}

/* =========================================================
   TABLA DEL DETALLE · CUADRÍCULA
   ========================================================= */

.productos-detail-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;

  border:
    1px solid
    var(--productos-line-strong) !important;
}

.productos-detail-table th,
.productos-detail-table td {
  border-right:
    1px solid
    var(--productos-line) !important;

  border-bottom:
    1px solid
    var(--productos-line) !important;
}

.productos-detail-table th:last-child,
.productos-detail-table td:last-child {
  border-right: 0 !important;
}

.productos-detail-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* =========================================================
   MODO OSCURO
   ========================================================= */

html[data-theme="dark"] .productos-table,
body.dark .productos-table,
.dark .productos-table,
html[data-theme="dark"] .productos-detail-table,
body.dark .productos-detail-table,
.dark .productos-detail-table {
  border-color:
    rgba(
      255,
      255,
      255,
      0.18
    ) !important;
}

html[data-theme="dark"] .productos-table th,
html[data-theme="dark"] .productos-table td,
body.dark .productos-table th,
body.dark .productos-table td,
.dark .productos-table th,
.dark .productos-table td,
html[data-theme="dark"] .productos-detail-table th,
html[data-theme="dark"] .productos-detail-table td,
body.dark .productos-detail-table th,
body.dark .productos-detail-table td,
.dark .productos-detail-table th,
.dark .productos-detail-table td {
  border-right-color:
    rgba(
      255,
      255,
      255,
      0.12
    ) !important;

  border-bottom-color:
    rgba(
      255,
      255,
      255,
      0.12
    ) !important;
}

html[data-theme="dark"]
.productos-table
tbody
tr:nth-child(even)
td,
body.dark
.productos-table
tbody
tr:nth-child(even)
td,
.dark
.productos-table
tbody
tr:nth-child(even)
td {
  background:
    #0a0a0a !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1450px) {
  .productos-metrics {
    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      ) !important;
  }

  .productos-toolbar {
    grid-template-columns:
      1fr !important;
  }

  .productos-filter-grid {
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      ) !important;
  }
}

@media (max-width: 900px) {
  .productos-head {
    grid-template-columns:
      1fr !important;
  }

  .productos-head__actions {
    justify-content:
      flex-start !important;
  }
}

@media (max-width: 760px) {
  .productos-head {
    min-height: 0 !important;

    padding: 12px !important;
  }

  .productos-brand h2 {
    font-size: 22px !important;
  }

  .productos-brand p {
    font-size: 11px !important;
  }

  .productos-metrics {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;
  }

  .productos-filter-grid,
  .productos-filter-grid--categories {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;
  }

  .productos-modal-backdrop {
    padding: 8px !important;
  }

  .productos-modal,
  .productos-modal--report {
    width:
      calc(
        100vw -
        16px
      ) !important;

    height:
      calc(
        100dvh -
        16px
      ) !important;

    max-height:
      calc(
        100dvh -
        16px
      ) !important;

    border-radius: 13px !important;
  }
}

@media (max-width: 520px) {
  .productos-filter-grid,
  .productos-filter-grid--categories,
  .productos-metrics {
    grid-template-columns:
      1fr !important;
  }

  .productos-head__actions {
    align-items: stretch !important;

    flex-direction: column !important;
  }

  .productos-view-switch {
    width: 100% !important;
  }

  .productos-view-switch__button {
    flex: 1 1 0 !important;
  }
}