/* Pampling Store — Design System (basado en wiki/guias/estetica). */

:root {
  --bg-base:       #F5F0EB;
  --bg-card:       rgba(255, 255, 255, 0.70);
  --bg-card-2:     rgba(255, 255, 255, 0.90);
  --bg-input:      rgba(255, 255, 255, 0.80);

  --border:        rgba(45, 42, 38, 0.08);
  --border-light:  rgba(45, 42, 38, 0.05);

  --text-primary:   #2D2A26;
  --text-secondary: rgba(45, 42, 38, 0.60);
  --text-muted:     rgba(45, 42, 38, 0.35);

  --accent-a:      #7947F8;
  --accent-a-end:  #A855F7;
  --accent-a-grad: linear-gradient(135deg, #7947F8, #A855F7);
  --accent-a-soft: rgba(121, 71, 248, 0.10);

  --accent-b:      #4A9EFF;
  --accent-b-soft: rgba(74, 158, 255, 0.10);

  --green:         #5C8A6C;
  --green-soft:    rgba(92, 138, 108, 0.12);
  --amber:         #C99555;
  --amber-soft:    rgba(201, 149, 85, 0.12);
  --red:           #E05252;
  --red-soft:      rgba(224, 82, 82, 0.12);

  --radius-sm:     8px;
  --radius:        16px;
  --radius-lg:     20px;

  --shadow:        0 1px 4px rgba(45, 42, 38, 0.06);
  --shadow-md:     0 4px 16px rgba(45, 42, 38, 0.08);

  --font:          'Poppins', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --nav-height:    60px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Navbar ── */
nav.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  padding: 0 32px;
  background: rgba(245, 240, 235, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.navbar .navleft { display: flex; align-items: center; gap: 6px; }
.navbar .brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--text-primary); text-decoration: none;
  padding-right: 14px; margin-right: 8px;
  border-right: 1px solid var(--border);
}
.navbar .brand::before {
  content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent-a);
}
.navbar .navleft > a:not(.brand) {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  padding: 6px 14px; border-radius: 8px; text-decoration: none;
}
.navbar .navleft > a:not(.brand):hover { color: var(--text-primary); }
.navbar .navleft > a.active {
  color: var(--accent-a); background: var(--accent-a-soft);
}
.navbar .user-info { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); }
.navbar .user-info .email { font-weight: 600; color: var(--text-secondary); }

main.page { padding: calc(var(--nav-height) + 24px) 32px 48px; max-width: 1320px; margin: 0 auto; }

/* ── Headers ── */
.section-tag {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--accent-a);
  margin-bottom: 6px;
}
.section-tag .bar { width: 24px; height: 3px; background: var(--accent-a); border-radius: 2px; }

h1.page-title {
  font-size: 32px; font-weight: 800; color: var(--text-primary);
  letter-spacing: -1px; margin: 0 0 4px;
}
.page-desc { font-size: 14px; color: var(--text-secondary); margin: 0 0 24px; }

.breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-primary); }

/* ── Card ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.card.solid { background: var(--bg-card-2); }
.card.active { border-color: var(--accent-a); box-shadow: 0 0 0 2px var(--accent-a-soft); }

.section-title {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}

/* ── KPI ── */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.kpi .value { font-size: 28px; font-weight: 800; color: var(--accent-a); letter-spacing: -1px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  padding: 8px 16px; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: #fff; }
.btn-primary {
  background: var(--accent-a-grad); color: #fff !important;
  border: none; border-radius: 999px;
  padding: 9px 22px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.5); }
.btn-danger { color: var(--red); border-color: var(--red-soft); background: transparent; }
.btn-danger:hover { background: var(--red-soft); }

/* ── Form ── */
.field { display: flex; flex-direction: column; gap: 4px; }
.field label, .form-label {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}
input[type=email], input[type=password], input[type=text], input[type=file], input[type=date], input[type=number], select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font: inherit; color: var(--text-primary);
  width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--accent-a); box-shadow: 0 0 0 3px var(--accent-a-soft); }

/* ── Alerts ── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; border: 1px solid var(--border); }
.alert.ok    { background: var(--green-soft); color: var(--green); border-color: rgba(92,138,108,0.25); }
.alert.warn  { background: var(--amber-soft); color: var(--amber); border-color: rgba(201,149,85,0.25); }
.alert.error { background: var(--red-soft); color: var(--red); border-color: rgba(224,82,82,0.25); }

/* ── Badges / pills ── */
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge.violet { background: var(--accent-a-soft); color: var(--accent-a); }
.badge.green  { background: var(--green-soft); color: var(--green); }
.badge.amber  { background: var(--amber-soft); color: var(--amber); }
.badge.red    { background: var(--red-soft); color: var(--red); }
.badge.muted  { background: rgba(45,42,38,0.06); color: var(--text-secondary); }

/* ── Tables ── */
table.t {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
table.t th {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 10px 14px; text-align: left;
  background: rgba(245,240,235,0.5);
  border-bottom: 1px solid var(--border);
}
table.t td {
  font-size: 13px; padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary); vertical-align: middle;
}
table.t tr:last-child td { border-bottom: none; }
table.t tr:hover td { background: rgba(255,255,255,0.4); }
.mono { font-family: var(--font-mono); font-size: 12px; }

/* ── Grids ── */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  main.page { padding-left: 16px; padding-right: 16px; }
}

/* ── Spinner / loading ── */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid var(--accent-a-soft);
  border-top-color: var(--accent-a);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 48px 16px;
  font-size: 13px; color: var(--text-secondary);
}
.htmx-indicator { opacity: 0; transition: opacity .15s; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }

/* Spinner overlay sobre contenedores que tardan en swap (paginacion etc).
   Usamos position:fixed para que sea visible siempre, independientemente
   del scroll del usuario. No bajamos opacidad del contenedor (eso afectaria
   al pseudo-elemento por herencia de opacity). */
#surtido-gallery,
#stock-table,
#surtido-changes {
  position: relative;
}
#surtido-gallery.htmx-request,
#stock-table.htmx-request,
#surtido-changes.htmx-request {
  pointer-events: none;
  filter: grayscale(0.4);
  transition: filter .15s;
}
#surtido-gallery.htmx-request::after,
#stock-table.htmx-request::after,
#surtido-changes.htmx-request::after {
  content: '';
  position: fixed;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border: 4px solid var(--accent-a-soft);
  border-top-color: var(--accent-a);
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  animation: spin 0.7s linear infinite;
  z-index: 250;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(45,42,38,0.15);
}

/* ── Product gallery ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-card .img {
  position: relative;
  aspect-ratio: 1/1;
  background: rgba(255,255,255,0.5);
  overflow: hidden;
}
/* Spinner que se ve hasta que la imagen carga (o falla y cae al SVG). */
.product-card .img::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 2px solid var(--accent-a-soft);
  border-top-color: var(--accent-a);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.product-card .img.loaded::before { display: none; }
.product-card .img img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .2s ease;
  position: relative; z-index: 1;
}
.product-card .img img.loaded { opacity: 1; }
.product-card .img.no-image img { object-fit: contain; padding: 8px; }

/* ── Boton 'Refrescar' sobre la imagen ── */
.img-refresh-btn {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px; font-weight: 600;
  background: rgba(255,255,255,0.95);
  color: var(--accent-a);
  border: 1px solid var(--accent-a-soft);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 1px 4px rgba(45,42,38,0.08);
}
.img-refresh-btn:hover { background: #fff; border-color: var(--accent-a); }
.img-refresh-msg {
  position: absolute; bottom: 6px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px; line-height: 1.2;
  color: var(--text-muted);
  text-align: center;
  background: rgba(255,255,255,0.95);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  z-index: 3;
}
/* Spinner en la celda .img cuando se esta refrescando via HTMX. */
.product-card .img.htmx-request img { opacity: 0.25; }
.product-card .img.htmx-request .img-refresh-btn,
.product-card .img.htmx-request .img-refresh-msg { display: none; }
.product-card .img.htmx-request::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 2px solid var(--accent-a-soft);
  border-top-color: var(--accent-a);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  z-index: 10;
}
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 11px; color: var(--text-muted);
}
.product-card { position: relative; }
.product-card.new {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-soft), var(--shadow);
}
.product-card.removed {
  border-color: rgba(224,82,82,0.5);
  box-shadow: 0 0 0 2px var(--red-soft), var(--shadow);
  opacity: 0.85;
}
.product-card.removed .img img { filter: grayscale(0.65); }
.new-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 9px; font-weight: 700;
  color: #fff; background: var(--green);
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: 0.5px;
  z-index: 2;
}
.new-badge.removed-badge { background: var(--red); }

/* Tira superior con tipo (family) + subcategoria. Color por familia. */
.product-card .type-strip {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.product-card .type-strip .type-main {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.product-card .type-strip .type-sub {
  font-size: 11px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* 8 slots de color por familia (deterministico segun nombre).
   Paleta amable: fondo claro con un tinte de color, texto en color saturado. */
.type-color-0 { background: #ffe4e6; }                       /* rosa */
.type-color-0 .type-main { color: #be185d; }
.type-color-1 { background: #dbeafe; }                       /* azul */
.type-color-1 .type-main { color: #1d4ed8; }
.type-color-2 { background: #dcfce7; }                       /* verde */
.type-color-2 .type-main { color: #15803d; }
.type-color-3 { background: #fef3c7; }                       /* amarillo */
.type-color-3 .type-main { color: #a16207; }
.type-color-4 { background: #ede9fe; }                       /* lavanda */
.type-color-4 .type-main { color: #6d28d9; }
.type-color-5 { background: #ccfbf1; }                       /* turquesa */
.type-color-5 .type-main { color: #0f766e; }
.type-color-6 { background: #ffedd5; }                       /* naranja */
.type-color-6 .type-main { color: #c2410c; }
.type-color-7 { background: #f3e8ff; }                       /* violeta */
.type-color-7 .type-main { color: #7e22ce; }

/* En estado new/removed forzamos el color de la tira para resaltar el estado. */
.product-card.new .type-strip {
  background: var(--green-soft) !important;
  border-bottom-color: rgba(92,138,108,0.25);
}
.product-card.new .type-strip .type-main { color: var(--green) !important; }
.product-card.removed .type-strip {
  background: var(--red-soft) !important;
}
.product-card.removed .type-strip .type-main { color: var(--red) !important; }

/* Puntitos de color del articulo (uno por color disponible). */
.color-dots {
  display: flex; align-items: center; gap: 3px;
  flex-wrap: wrap;
}
.color-dot {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, #f5f0eb, #d6cfc7);
  border: 1px solid rgba(45,42,38,0.22);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.color-dot.multi {
  background: conic-gradient(#e74c3c, #f1c40f, #2ecc71, #3498db, #9b59b6, #e74c3c) !important;
  border-color: rgba(0,0,0,0.25);
}
.color-more { font-size: 10px; color: var(--text-muted); margin-left: 2px; }

/* Chips de color con nombre (bolita + texto). */
.color-list {
  display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center;
}
.color-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border-light);
  padding: 2px 8px 2px 4px;
  border-radius: 999px;
  font-size: 10px; font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.2;
}
.color-chip .color-dot {
  width: 12px; height: 12px;
  border-width: 1px;
}
.color-chip .color-name {
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card .meta { padding: 8px 12px 10px; }
.product-card .brand {
  font-size: 10px; color: var(--text-muted); margin-top: 3px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── Filtro de categorias en surtido (botones) ── */
.cat-row {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 4px 0;
}
.cat-row + .cat-row { margin-top: 6px; }
.subcat-row {
  border-top: 1px dashed var(--border-light);
  padding-top: 10px;
}
.cat-row-label {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-right: 4px;
  min-width: 88px;
}
.cat-btn {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background .12s, color .12s, border-color .12s;
}
.cat-btn:hover {
  background: #fff;
  color: var(--text-primary);
  border-color: rgba(45,42,38,0.18);
}
.cat-btn.active {
  background: var(--accent-a);
  border-color: var(--accent-a);
  color: #fff;
}
.cat-btn.subcat-btn {
  font-size: 11px;
  padding: 3px 10px;
  font-weight: 500;
}
.cat-btn.subcat-btn.active {
  background: var(--accent-b);
  border-color: var(--accent-b);
}
.marca-row select {
  font-size: 12px; padding: 6px 10px;
}

/* ── Banner de cambios colapsable ── */
details.changes-collapse {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
details.changes-collapse > summary.changes-summary {
  list-style: none;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  background: var(--bg-card-2);
  transition: background .15s;
}
details.changes-collapse > summary.changes-summary::-webkit-details-marker { display: none; }
details.changes-collapse > summary.changes-summary:hover { background: rgba(255,255,255,0.95); }
.changes-summary-info {
  display: flex; flex: 1; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.changes-pill {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.changes-pill.green { background: var(--green-soft); color: var(--green); }
.changes-pill.red   { background: var(--red-soft); color: var(--red); }
.changes-toggle {
  font-size: 13px; font-weight: 600; color: var(--accent-a);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-a-soft);
  white-space: nowrap;
}
.changes-toggle .chevron { font-size: 11px; transition: transform .2s; }
.changes-toggle-close { display: none; }
details[open] > summary .changes-toggle-open { display: none; }
details[open] > summary .changes-toggle-close { display: inline-flex; align-items: center; gap: 6px; }
.changes-content { padding: 8px 18px 18px; }

/* ── Mini-grid en banner de cambios ── */
.mini-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.mini-card {
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.mini-card.new    { border-color: var(--green); box-shadow: 0 0 0 1px var(--green-soft); }
.mini-card.removed { border-color: rgba(224,82,82,0.4); opacity: 0.85; }
.mini-card .img {
  position: relative; aspect-ratio: 1/1; background: rgba(255,255,255,0.5); overflow: hidden;
}
.mini-card .img::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 2px solid var(--accent-a-soft); border-top-color: var(--accent-a);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
.mini-card .img.loaded::before { display: none; }
.mini-card .img img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .2s ease; position: relative; z-index: 1;
}
.mini-card .img img.loaded { opacity: 1; }
.mini-card .img.no-image img { object-fit: contain; padding: 6px; }
.mini-card.removed .img img { filter: grayscale(0.7); }
.mini-card .meta { padding: 6px 8px 8px; font-size: 11px; }
.mini-card .type {
  font-size: 9px; font-weight: 700; color: var(--accent-a);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px;
}
.mini-card.new .type     { color: var(--green); }
.mini-card.removed .type { color: var(--red); }
.mini-card .cod  { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.mini-card .name {
  font-size: 11px; color: var(--text-primary); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .cod { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.product-card .name { font-size: 12px; color: var(--text-primary); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Stock image cell ── */
img.product-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: rgba(255,255,255,0.5); }

/* ── Filter bar ── */
.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: end; }
.filter-bar .field { gap: 4px; }
.filter-bar .submit { display: flex; align-items: end; }

/* ── KPI sub-line (porcentaje) ── */
.kpi .sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.summary-kpis { margin-bottom: 24px; }
.summary-total .label { color: var(--accent-a); }

/* ── Stock list ultracompacto ── */
.stock-list {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.stock-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-light);
}
.stock-row:last-child { border-bottom: none; }
.stock-row:hover { background: rgba(255,255,255,0.4); }

.stock-row-head {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  font-size: 12px; line-height: 1.3;
}
.stock-row-head .cod { font-size: 11px; color: var(--text-muted); }
.stock-row-head .desc { font-size: 12px; font-weight: 600; min-width: 0; }
.stock-row-head .meta-tag { font-size: 10px; color: var(--text-muted); }
.stock-row-head .tag-pill {
  font-size: 10px; font-weight: 600; color: var(--text-secondary);
  background: rgba(45,42,38,0.06); padding: 1px 6px; border-radius: 999px;
}
.stock-row-head .tag-pill.mh { color: var(--accent-a); background: var(--accent-a-soft); }
.stock-row-head .stock-row-total {
  margin-left: auto;
  font-size: 14px; font-weight: 700; color: var(--accent-a);
  font-variant-numeric: tabular-nums; letter-spacing: -0.3px;
}

.pivot-wrap { overflow-x: auto; }
table.pivot {
  border-collapse: separate; border-spacing: 0;
  font-size: 10px;
  min-width: max-content;
}
table.pivot thead th {
  font-size: 9px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 1px 6px; min-width: 28px;
  text-align: center;
}
table.pivot thead th:first-child { text-align: left; min-width: 100px; }
table.pivot tbody th {
  font-weight: 500; color: var(--text-primary); text-align: left;
  padding: 1px 6px 1px 0;
  font-size: 10px; white-space: nowrap;
}
table.pivot tbody td {
  padding: 1px 6px; text-align: center; min-width: 28px;
  font-variant-numeric: tabular-nums; font-size: 11px;
}
table.pivot tbody td.empty    { color: var(--text-muted); }
table.pivot tbody td.zero     { color: var(--red); font-weight: 600; }
table.pivot tbody td.positive { color: var(--text-primary); font-weight: 600; }

.color-cell { display: inline-flex; align-items: center; gap: 5px; }
.color-cell .swatch {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, #f5f0eb, #d6cfc7);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.color-cell .color-name { font-size: 10px; color: var(--text-secondary); }

.stock-pager {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; font-size: 12px; color: var(--text-secondary);
}

/* ── Modal ── */
#modal-root {
  position: fixed; inset: 0;
  background: rgba(45, 42, 38, 0.45);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 80px 16px 24px;
  z-index: 200;
  overflow-y: auto;
}
#modal-root.open { display: flex; }
.modal-panel {
  position: relative;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%; max-width: 760px;
  padding: 24px 26px;
  box-shadow: var(--shadow-md);
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: transparent; border: none;
  color: var(--text-muted); font-size: 18px; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%;
}
.modal-close:hover { background: rgba(45,42,38,0.06); color: var(--text-primary); }
.modal-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; padding-right: 32px; }
.modal-header h2 { margin: 2px 0 0; font-size: 20px; font-weight: 700; }
.modal-eyebrow { font-size: 10px; font-weight: 600; color: var(--accent-a); text-transform: uppercase; letter-spacing: 1px; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form select[multiple] { padding: 6px; min-height: 160px; font-size: 13px; }
.modal-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.modal-actions .spacer { flex: 1; }

/* ── Click-row ── */
table.t tr.row-click:hover td { background: rgba(255,255,255,0.55); }

/* ── Store picker ── */
.picker-block .form-label { display: block; font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.store-picker { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; background: var(--bg-card); }
.picker-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .picker-cols { grid-template-columns: 1fr; } }
.picker-source, .picker-target { display: flex; flex-direction: column; min-width: 0; }
.picker-search {
  width: 100%; padding: 6px 10px; font-size: 12px;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.picker-list {
  flex: 1; min-height: 220px; max-height: 260px; overflow-y: auto;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.4);
}
.picker-item {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px; font-size: 12px; cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  user-select: none;
}
.picker-item:last-child { border-bottom: none; }
.picker-item:hover { background: rgba(255,255,255,0.7); }
.picker-item.is-selected { opacity: 0.45; }
.picker-item .picker-cb { margin: 0; flex-shrink: 0; }
.picker-item .mono { color: var(--text-muted); }
.picker-item .picker-name { color: var(--text-primary); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-add-btn {
  margin-top: 8px; align-self: flex-start;
  font-size: 12px; font-weight: 600;
}

.picker-target .section-title { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.picker-count { color: var(--accent-a); }
.picker-selected {
  flex: 1; min-height: 220px; max-height: 295px; overflow-y: auto;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.4);
  padding: 6px;
}
.picker-selected-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; font-size: 12px; margin-bottom: 4px;
  background: var(--accent-a-soft); border-radius: var(--radius-sm);
}
.picker-selected-item .mono { color: var(--accent-a); font-weight: 600; }
.picker-selected-item .picker-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-remove {
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 16px; line-height: 1; padding: 0 4px;
}
.picker-remove:hover { color: var(--red); }
.picker-empty { padding: 14px 10px; color: var(--text-muted); font-size: 12px; text-align: center; font-style: italic; }

/* ── Danger zone ── */
.danger-zone {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--red-soft);
  border: 1px solid rgba(224, 82, 82, 0.25);
  border-radius: var(--radius-sm);
}
.danger-zone-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.danger-zone-title {
  font-size: 11px; font-weight: 700; color: var(--red);
  text-transform: uppercase; letter-spacing: 1px;
}
.danger-zone-desc {
  font-size: 12px; color: var(--text-secondary); margin-top: 2px; max-width: 360px;
}
.danger-zone .btn-danger { border-color: rgba(224, 82, 82, 0.4); }

/* ── Definition list ── */
.dl { display: grid; grid-template-columns: 1fr; gap: 4px 16px; }
@media (min-width: 720px) { .dl { grid-template-columns: 200px 1fr; } }
.dl dt { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; padding-top: 4px; }
.dl dd { margin: 0; font-size: 14px; color: var(--text-primary); padding-bottom: 8px; border-bottom: 1px solid var(--border-light); }

/* ── REAPRO badge en stock ── */
.reapro-pill {
  font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.5px;
  line-height: 1.4;
}
.reapro-pill.yes {
  color: #1e5a3a;
  background: rgba(62, 163, 94, 0.16);
  border: 1px solid rgba(62, 163, 94, 0.35);
}
.reapro-pill.no {
  color: #8b1c1c;
  background: rgba(224, 82, 82, 0.12);
  border: 1px solid rgba(224, 82, 82, 0.4);
}
.stock-row.stock-row-no-reapro {
  background: rgba(224, 82, 82, 0.035);
}
.stock-row.stock-row-no-reapro:hover {
  background: rgba(224, 82, 82, 0.07);
}

/* ── Tarjeta deshabilitada (acceso restringido por rol) ── */
.card.card-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: repeating-linear-gradient(
    -45deg,
    rgba(45,42,38,0.025),
    rgba(45,42,38,0.025) 8px,
    transparent 8px,
    transparent 16px
  ), var(--bg-card);
}
.card.card-disabled:hover {
  transform: none;
  box-shadow: none;
}
.lock-pill {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
  background: rgba(45,42,38,0.08);
  border: 1px solid rgba(45,42,38,0.12);
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.5px;
  vertical-align: middle; margin-left: 6px;
}

/* ── Navegacion fechas en banner de cambios ── */
.changes-nav {
  display: inline-flex; align-items: center; gap: 8px;
  margin-right: 8px;
}
.changes-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--accent-a);
  font-size: 14px; font-weight: 700; line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background .12s, border-color .12s;
}
.changes-arrow:hover {
  background: var(--accent-a-soft);
  border-color: var(--accent-a);
}
.changes-arrow.disabled {
  color: var(--text-muted);
  background: transparent;
  border-color: var(--border-light);
  cursor: not-allowed;
  opacity: 0.5;
}
.changes-date {
  font-size: 12px; color: var(--text-secondary);
  display: inline-flex; align-items: baseline; gap: 6px;
  white-space: nowrap;
}
.changes-date strong {
  color: var(--accent-a);
  font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
  font-weight: 700;
}
.changes-vs {
  font-size: 11px; color: var(--text-muted);
}
.changes-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.changes-header {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.changes-header-total {
  margin-left: auto; color: var(--text-muted); font-size: 12px;
}

/* ── KPI subtitulo (uso en logs: 'X de Y global') ── */
.kpi .kpi-sub {
  font-size: 10px; color: var(--text-muted);
  margin-top: 2px;
}

/* ── Reapro por variante (celdas del pivote) ── */
table.pivot tbody td.rea-yes {
  box-shadow: inset 0 -2px 0 0 var(--green);
}
table.pivot tbody td.rea-no {
  box-shadow: inset 0 -2px 0 0 var(--red);
}
.reapro-pill.mixed {
  color: #7a5500;
  background: rgba(201, 149, 85, 0.16);
  border: 1px solid rgba(201, 149, 85, 0.45);
}
.stock-row.stock-row-mixed-reapro {
  background: rgba(201, 149, 85, 0.05);
}
.stock-row.stock-row-mixed-reapro:hover {
  background: rgba(201, 149, 85, 0.10);
}

/* ── Tabla con sort + filtros por columna ── */
table.t .sort-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
table.t .sort-link:hover { color: var(--accent-a); }
table.t .sort-link.active {
  color: var(--accent-a);
  font-weight: 700;
}
table.t .filter-row th {
  padding: 4px 6px;
  background: rgba(245, 240, 235, 0.30);
  border-top: 1px solid var(--border-light);
}
table.t .filter-row .mini-input {
  width: 100%;
  font-size: 11px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
}
table.t .filter-row .mini-input:focus {
  outline: none;
  border-color: var(--accent-a);
  box-shadow: 0 0 0 2px var(--accent-a-soft);
}

/* ── Stock cards: una tarjeta por producto, bloques por color ── */
.stock-cards { display: flex; flex-direction: column; gap: 14px; }

.stock-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent-a);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stock-card--reapro-yes   { border-left-color: var(--green); }
.stock-card--reapro-no    { border-left-color: var(--red); }
.stock-card--reapro-mixed { border-left-color: var(--amber); }
.stock-card--reapro-none  { border-left-color: var(--text-muted); }

.stock-card__head {
  display: flex; align-items: stretch; gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}
.stock-card__info {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}
.stock-card__info .cod {
  font-size: 11px;
  color: var(--text-muted);
}
.stock-card__info .desc {
  font-weight: 700; font-size: 13px;
}
.stock-card__info .tag-pill {
  font-size: 10px; font-weight: 600; color: var(--text-secondary);
  background: rgba(45,42,38,0.06); padding: 1px 7px; border-radius: 999px;
}
.stock-card__info .tag-pill.mh { color: var(--accent-a); background: var(--accent-a-soft); }
.stock-card__info .meta-tag { font-size: 10px; color: var(--text-muted); }

.stock-card__total {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  min-width: 80px; padding: 4px 10px;
  background: var(--accent-a-soft);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(121, 71, 248, 0.20);
}
.stock-card__total-label {
  font-size: 9px; font-weight: 600;
  color: var(--accent-a);
  text-transform: uppercase; letter-spacing: 1px;
}
.stock-card__total-value {
  font-size: 26px; font-weight: 800;
  color: var(--accent-a);
  letter-spacing: -1px; line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stock-card__colors {
  display: flex; flex-direction: column;
}
.color-block {
  display: flex; align-items: stretch;
  border-bottom: 1px dashed var(--border-light);
  padding: 8px 14px;
  position: relative;
}
.color-block:last-child { border-bottom: none; }
/* Linea vertical que une los bloques de colores del mismo producto. */
.color-block::before {
  content: '';
  position: absolute;
  left: 22px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border-light);
}
.color-block:first-child::before { top: 8px; }
.color-block:last-child::before  { bottom: 8px; }

.color-block__label {
  display: flex; align-items: center; gap: 8px;
  min-width: 150px;
  font-size: 12px; font-weight: 600;
}
.color-block__label .swatch {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border);
  z-index: 1;  /* encima de la linea vertical */
}
.color-block__label .color-name {
  font-size: 12px; color: var(--text-primary);
  text-transform: uppercase; letter-spacing: 0.3px;
}

.color-block__variants {
  display: flex; flex-wrap: wrap; gap: 6px;
  flex: 1;
}
.variant-cell {
  display: flex; flex-direction: column; align-items: center;
  min-width: 54px; padding: 4px 6px 5px;
  border-radius: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  line-height: 1.2;
}
.variant-cell__talla {
  font-size: 9px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.variant-cell__qty {
  font-size: 16px; font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.variant-cell__rea {
  font-size: 9px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px;
  line-height: 1.3;
  margin-top: 2px;
}
.variant-cell__rea.yes { color: #1e5a3a; background: rgba(62, 163, 94, 0.20); }
.variant-cell__rea.no  { color: #8b1c1c; background: rgba(224, 82, 82, 0.18); }

.variant-cell.is-empty {
  background: transparent;
  border-style: dashed;
  color: var(--text-muted);
}
.variant-cell.is-empty .variant-cell__qty { color: var(--text-muted); }
.variant-cell.is-zero .variant-cell__qty { color: var(--red); }

.variant-cell.is-reapro-yes {
  background: rgba(62, 163, 94, 0.06);
  border-color: rgba(62, 163, 94, 0.30);
}
.variant-cell.is-reapro-no {
  background: rgba(224, 82, 82, 0.05);
  border-color: rgba(224, 82, 82, 0.25);
}

/* ── Botones de filtro reapro ── */
.cat-btn.reapro-btn-yes.active {
  background: var(--green-soft);
  color: var(--green);
  border-color: rgba(92, 138, 108, 0.40);
}
.cat-btn.reapro-btn-no.active {
  background: var(--red-soft);
  color: var(--red);
  border-color: rgba(224, 82, 82, 0.40);
}


/* ── min-max y transito por variante ── */
.variant-cell__minmax {
  font-size: 9px; font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-top: 1px;
}
.variant-cell__transit {
  font-size: 9px; font-weight: 700;
  color: var(--accent-b);
  background: var(--accent-b-soft);
  padding: 1px 5px; border-radius: 999px;
  line-height: 1.3;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* ── Mini-tabla por color (Stock / Min-Max / Tránsito) ── */
.color-block {
  align-items: flex-start;
}
table.variants-grid {
  border-collapse: collapse;
  flex: 1;
  table-layout: fixed;
}
table.variants-grid thead th.variants-grid__metric-head {
  width: 64px;
}
table.variants-grid thead th.variants-grid__talla {
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 1px 6px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}
table.variants-grid tbody th.vgrid-metric {
  font-size: 9px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  text-align: right;
  padding: 4px 8px 4px 0;
  white-space: nowrap;
  width: 64px;
}
table.variants-grid tbody td.vgrid-cell {
  text-align: center;
  padding: 3px 6px;
  font-variant-numeric: tabular-nums;
}
/* Fila Stock: numero grande, indicador de reapro como borde inferior. */
.vgrid-row--stock td.vgrid-cell {
  font-size: 16px; font-weight: 700;
  color: var(--text-primary);
  border-bottom: 3px solid transparent;
}
.vgrid-row--stock td.vgrid-cell.is-empty {
  color: var(--text-muted); font-weight: 400;
}
.vgrid-row--stock td.vgrid-cell.is-zero {
  color: var(--red);
}
.vgrid-row--stock td.vgrid-cell.is-reapro-yes {
  border-bottom-color: var(--green);
  background: rgba(62, 163, 94, 0.05);
}
.vgrid-row--stock td.vgrid-cell.is-reapro-no {
  border-bottom-color: var(--red);
  background: rgba(224, 82, 82, 0.05);
}
/* Filas Min/Max y Transito: gris, pequeno. */
.vgrid-row--minmax td.vgrid-cell,
.vgrid-row--transit td.vgrid-cell {
  font-size: 10px; font-weight: 600;
  color: var(--text-secondary);
}
.transit-badge {
  font-size: 10px; font-weight: 700;
  color: var(--accent-b);
  background: var(--accent-b-soft);
  padding: 1px 6px; border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ── Escaparates propuestos y comprobaciones de tienda ── */
.store-head-actions .btn-primary,
.window-feature .btn-primary,
.window-upload-card .btn-primary,
.sticky-save-bar .btn-primary,
.check-upload-card .btn-primary,
.page-head-row .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.verify-form textarea {
  width: 100%; padding: 10px 12px; resize: vertical;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font: inherit; color: var(--text-primary);
}
.verify-form textarea:focus {
  outline: none; border-color: var(--accent-a);
  box-shadow: 0 0 0 3px var(--accent-a-soft);
}
.page-head-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 24px;
}
.store-head-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 9px; flex-wrap: wrap;
}
.store-head-actions form { display: flex; margin: 0; }
.button-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}
.text-link {
  color: var(--accent-a); font-size: 12px; font-weight: 700; text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link--notice { color: #a86f29; }

.window-alert {
  display: flex; align-items: center; gap: 14px;
  margin: 2px 0 22px; padding: 14px 16px;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.window-alert__icon {
  flex: 0 0 34px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 999px;
  font-size: 17px; font-weight: 800;
}
.window-alert > div:nth-child(2) { flex: 1; }
.window-alert strong { display: block; font-size: 14px; }
.window-alert p { margin: 2px 0 0; color: var(--text-secondary); font-size: 12px; }
.window-alert--required { background: var(--amber-soft); border-color: rgba(201,149,85,.28); }
.window-alert--required .window-alert__icon { color: #fff; background: var(--amber); }
.window-alert--pending { background: var(--accent-b-soft); border-color: rgba(74,158,255,.25); }
.window-alert--pending .window-alert__icon { color: #fff; background: var(--accent-b); }
.window-alert--verified { background: var(--green-soft); border-color: rgba(92,138,108,.28); }
.window-alert--verified .window-alert__icon { color: #fff; background: var(--green); }

.window-feature {
  margin: 4px 0 32px;
}
.window-feature__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; width: 100%; max-width: 960px;
  margin: 0 auto 14px;
}
.window-feature__head h2,
.window-feature--empty h2 {
  margin: 0; font-size: 21px; letter-spacing: -.4px;
}
.window-review-card {
  display: flex; align-items: center; gap: 14px;
  width: 100%; max-width: 960px; box-sizing: border-box;
  margin: 0 auto 14px; padding: 14px 16px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--border); border-radius: 14px;
}
.window-review-card--pending {
  background: linear-gradient(135deg, rgba(121,71,248,.10), rgba(255,255,255,.76));
  border-color: rgba(121,71,248,.24);
  box-shadow: 0 8px 24px rgba(74,45,145,.07);
}
.window-review-card__icon {
  flex: 0 0 44px; width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--accent-a); background: var(--accent-a-soft);
  border-radius: 13px;
}
.window-review-card__icon svg {
  width: 23px; height: 23px; fill: none;
  stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.window-review-card__copy {
  min-width: 0; flex: 1;
  display: flex; flex-direction: column; align-items: flex-start;
}
.window-review-card__status {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 2px; color: var(--text-muted);
  font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .75px;
}
.window-review-card__status i {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}
.window-review-card__copy strong { font-size: 14px; line-height: 1.25; }
.window-review-card__copy p {
  margin: 3px 0 0; color: var(--text-secondary);
  font-size: 11px; line-height: 1.4;
}
.window-review-card__button {
  flex: 0 0 auto; min-height: 42px;
  white-space: nowrap;
}
.window-review-card__button svg {
  width: 16px; height: 16px; fill: none;
  stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.window-feature__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.window-feature__grid--1 {
  grid-template-columns: minmax(0, 960px);
  justify-content: center;
}
.window-feature__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.window-feature__item {
  margin: 0; min-width: 0; overflow: hidden;
  background: #efeae4; border: 1px solid var(--border);
  border-radius: 12px;
}
.window-feature__item a {
  display: flex; align-items: center; justify-content: center;
  min-height: 220px; height: clamp(230px, 31vw, 410px);
  background: #ede8e2;
}
.window-feature__grid--2 .window-feature__item a,
.window-feature__grid--3 .window-feature__item a { height: clamp(210px, 24vw, 330px); }
.window-feature__item img {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
.window-feature__item figcaption {
  padding: 8px 12px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 11px; font-weight: 600;
  color: var(--text-secondary); background: rgba(255,255,255,.72);
}
.window-feature__store-action {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 14px; padding: 12px 14px;
  background: var(--accent-a-soft); border-radius: 12px;
}
.window-feature__store-action div { display: flex; flex-direction: column; }
.window-feature__store-action strong { font-size: 13px; }
.window-feature__store-action span { color: var(--text-secondary); font-size: 11px; }
.window-feature--empty {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.window-feature--empty p { margin: 5px 0 0; color: var(--text-secondary); }

.window-upload-card {
  display: grid; grid-template-columns: 1fr minmax(320px, 1fr);
  align-items: center; gap: 24px; margin-bottom: 26px;
}
.window-upload-card h2, .window-editor-head h2 { margin: 0 0 4px; font-size: 20px; }
.window-upload-card p, .window-editor-head p {
  margin: 0; color: var(--text-secondary); font-size: 12px;
}
.window-upload-card .section-title { margin-bottom: 7px; }
.window-upload-form { display: flex; align-items: center; gap: 10px; }
.window-upload-form input { min-width: 0; }
.window-upload-form .btn-primary { white-space: nowrap; }
.window-editor-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 14px;
}
.window-editor-head .section-title { margin-bottom: 7px; }
.window-selection-counter {
  display: flex; align-items: baseline; gap: 4px; padding: 8px 13px;
  background: var(--accent-a-soft); color: var(--accent-a); border-radius: 999px;
}
.window-selection-counter strong { font-size: 20px; }
.window-selection-counter span { font-size: 11px; font-weight: 600; }
.window-editor-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.window-editor-card {
  position: relative; min-width: 0; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.window-editor-card.is-featured {
  border-color: var(--accent-a);
  box-shadow: 0 0 0 3px var(--accent-a-soft), var(--shadow-md);
}
.window-editor-card__select {
  display: flex; align-items: center; gap: 7px;
  position: absolute; z-index: 2; top: 9px; left: 9px;
  padding: 6px 10px; border-radius: 999px;
  color: var(--text-primary); background: rgba(255,255,255,.94);
  box-shadow: 0 2px 10px rgba(45,42,38,.14);
  cursor: pointer; font-size: 10px; font-weight: 700;
}
.window-editor-card__select input { accent-color: var(--accent-a); }
.window-editor-card__image {
  display: flex; align-items: center; justify-content: center;
  height: 230px; background: #ede8e2;
}
.window-editor-card__image img {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
.window-editor-card__body {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 8px;
}
.window-editor-card__body strong {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px;
}
.window-editor-card__body span { color: var(--text-muted); font-size: 10px; }
.window-delete-link {
  margin: 0 12px 11px; padding: 0; border: 0; background: transparent;
  color: var(--red); font: inherit; font-size: 10px; font-weight: 600; cursor: pointer;
}
.sticky-save-bar {
  position: sticky; z-index: 20; bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 13px 15px; margin-top: 18px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.sticky-save-bar div { display: flex; flex-direction: column; }
.sticky-save-bar strong { font-size: 12px; }
.sticky-save-bar span { color: var(--text-secondary); font-size: 10px; }

.window-all-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.window-all-card {
  margin: 0; overflow: hidden; min-width: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.window-all-card.is-featured {
  border-color: var(--accent-a); box-shadow: 0 0 0 2px var(--accent-a-soft);
}
.window-all-card > a {
  display: flex; align-items: center; justify-content: center;
  height: 260px; background: #ede8e2;
}
.window-all-card img { width: 100%; height: 100%; object-fit: contain; }
.window-all-card figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px;
}
.window-all-card figcaption > div { min-width: 0; display: flex; flex-direction: column; }
.window-all-card figcaption strong {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px;
}
.window-all-card figcaption span:not(.badge) { color: var(--text-muted); font-size: 10px; }
.open-fixture-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.open-fixture-card {
  overflow: hidden; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.open-fixture-card__image {
  display: flex; height: 230px; align-items: center; justify-content: center;
  background: #fff; border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}
.open-fixture-card__image img {
  width: 100%; height: 100%; object-fit: contain;
}
.open-fixture-card__empty {
  color: var(--text-muted); font-size: 13px; font-weight: 600;
}
.open-fixture-card__body {
  display: flex; min-height: 76px; align-items: flex-start;
  justify-content: space-between; gap: 12px; padding: 14px 16px 10px;
}
.open-fixture-card__body h2 { margin: 0 0 3px; font-size: 17px; }
.open-fixture-card__body p {
  margin: 0; color: var(--text-secondary); font-size: 12px;
}
.open-fixture-card__actions {
  display: flex; gap: 8px; padding: 0 16px 16px;
}
.open-fixture-card__actions .btn,
.open-fixture-card__actions .btn-primary {
  flex: 1; text-align: center;
}
.window-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 50px 24px; background: rgba(255,255,255,.48);
  border: 1px dashed rgba(45,42,38,.16); border-radius: var(--radius-lg);
}
.window-empty__icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  margin-bottom: 12px; border-radius: 16px;
  color: var(--accent-a); background: var(--accent-a-soft); font-size: 25px;
}
.window-empty h2 { margin: 0 0 5px; }
.window-empty p { margin: 0 0 16px; color: var(--text-secondary); }
.window-empty--pending { margin-top: 10px; }

.check-layout {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 24px; align-items: start;
}
.check-current-status {
  margin-bottom: 16px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px;
}
.check-current-status p { margin: 3px 0 0; color: var(--text-secondary); }
.check-current-status--pending { background: var(--amber-soft); }
.check-current-status--verified { background: var(--green-soft); }
.check-current-status--rejected { background: var(--red-soft); }
.check-upload-card {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  padding: 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.check-upload-card--single {
  max-width: 520px;
  background: linear-gradient(145deg, rgba(121,71,248,.09), rgba(255,255,255,.65));
  border-color: rgba(121,71,248,.20);
}
.check-upload-card__icon {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 13px; background: var(--accent-a-soft);
  color: var(--accent-a); font-size: 22px; font-weight: 700;
}
.check-upload-card h2 { margin: 0 0 4px; font-size: 17px; }
.check-upload-card p { margin: 0; color: var(--text-secondary); font-size: 11px; }
.check-photo-source { position: relative; }
.check-photo-source__trigger { min-width: 150px; }
.check-photo-source__menu {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0;
  display: grid; gap: 4px; width: 270px; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.check-photo-source__menu[hidden] { display: none; }
.check-photo-source__choice {
  display: flex; flex-direction: column; gap: 1px; padding: 10px 12px;
  border-radius: 8px; cursor: pointer;
}
.check-photo-source__choice:hover { background: var(--accent-a-soft); }
.check-photo-source__choice strong { font-size: 12px; }
.check-photo-source__choice span { color: var(--text-secondary); font-size: 10px; }
.check-photo-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.check-uploading-label { display: none; color: var(--text-secondary); font-size: 12px; }
.check-upload-card.is-uploading .check-photo-source { display: none; }
.check-upload-card.is-uploading .check-uploading-label { display: inline; }
.check-reference {
  position: sticky; top: calc(var(--nav-height) + 20px);
  padding: 18px; background: rgba(255,255,255,.55);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.check-reference .section-title { margin-bottom: 10px; }
.check-reference img {
  display: block; width: 100%; max-height: 280px; object-fit: contain;
  margin-bottom: 9px; background: #ede8e2; border-radius: 10px;
}

.verify-current {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 20px; overflow: hidden; margin-bottom: 30px;
  background: rgba(255,255,255,.58); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.verify-current__photo {
  display: flex; align-items: center; justify-content: center;
  min-height: 450px; background: #e9e3dc;
}
.verify-current__photo img { width: 100%; height: 100%; max-height: 620px; object-fit: contain; }
.verify-current__panel { padding: 26px 24px 24px 4px; }
.verify-current__panel h2 { margin: 14px 0 5px; font-size: 21px; }
.verify-current__panel > p { color: var(--text-secondary); font-size: 12px; }
.review-note {
  margin: 14px 0; padding: 11px 13px; border-left: 3px solid var(--amber);
  background: var(--amber-soft); font-size: 12px;
}
.verify-form { display: flex; flex-direction: column; gap: 13px; margin-top: 20px; }
.verify-form__actions { display: flex; justify-content: space-between; gap: 10px; }
.check-history { margin-top: 30px; }
.check-history h2 { margin: 0 0 14px; }
.check-history__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.check-history__item {
  overflow: hidden; color: inherit; text-decoration: none;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px;
}
.check-history__item img {
  display: block; width: 100%; height: 150px; object-fit: cover; background: #ede8e2;
}
.check-history__item > div {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 9px 10px;
}
.check-history__item strong { font-size: 11px; }
.check-history__item span:not(.badge) { color: var(--text-muted); font-size: 9px; }

@media (max-width: 900px) {
  .window-editor-grid, .window-all-grid, .open-fixture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .window-upload-card { grid-template-columns: 1fr; }
  .check-layout, .verify-current { grid-template-columns: 1fr; }
  .check-reference { position: static; }
  .verify-current__panel { padding: 4px 20px 22px; }
  .check-history__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .store-head-actions { justify-content: flex-start; width: 100%; }
  .store-head-actions form { flex: 1; }
  .store-head-actions form > button { width: 100%; }
  .store-head-actions .btn, .store-head-actions .btn-primary { flex: 1; text-align: center; }
  .window-alert { align-items: flex-start; flex-wrap: wrap; }
  .window-feature__head { align-items: flex-start; flex-direction: column; }
  .window-review-card { align-items: flex-start; flex-wrap: wrap; padding: 14px; }
  .window-review-card__copy { min-width: calc(100% - 58px); }
  .window-review-card__button {
    width: 100%; box-sizing: border-box; margin-top: 2px;
    justify-content: center;
  }
  .window-feature__grid,
  .window-feature__grid--2,
  .window-feature__grid--3 { grid-template-columns: 1fr; }
  .window-feature__item a,
  .window-feature__grid--2 .window-feature__item a,
  .window-feature__grid--3 .window-feature__item a { height: 250px; min-height: 0; }
  .window-feature__store-action { align-items: flex-start; flex-direction: column; }
  .window-feature__store-action .btn-primary { width: 100%; }
  .window-feature--empty { align-items: flex-start; flex-direction: column; }
  .window-upload-form { align-items: stretch; flex-direction: column; }
  .window-editor-head { align-items: flex-start; flex-direction: column; }
  .window-editor-grid, .window-all-grid, .open-fixture-grid { grid-template-columns: 1fr; }
  .open-fixture-card__image { height: min(72vw, 300px); }
  .sticky-save-bar { align-items: stretch; flex-direction: column; bottom: 8px; }
  .check-upload-card--single { max-width: none; }
  .check-photo-source, .check-photo-source__trigger { width: 100%; }
  .check-photo-source__menu {
    position: static; width: 100%; margin-top: 8px; box-sizing: border-box;
  }
  .verify-current__photo { min-height: 300px; }
  .verify-form__actions { flex-direction: column-reverse; }
  .verify-form__actions > * { width: 100%; }
  .check-history__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Store sections / Otros muebles ── */
.store-section-row { margin-bottom: 16px; }
.store-section-row--visual { margin-bottom: 32px; }
.store-section-row > .card {
  min-height: 124px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.store-section-row > a.card:hover {
  transform: translateY(-2px);
  border-color: rgba(121, 71, 248, .22);
  box-shadow: var(--shadow-md);
}
.store-section-card__heading {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.store-section-card__heading > span:first-child {
  display: flex; flex-direction: column; gap: 4px;
}
.store-section-card__heading .section-title { margin-bottom: 0; }
.store-section-card__heading strong { font-size: 18px; }
.store-section-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: 0 0 42px;
  color: var(--accent-a); background: var(--accent-a-soft); border-radius: 12px;
}
.store-section-card > p {
  margin: 13px 0 0; color: var(--text-secondary); font-size: 13px;
}

.furniture-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 24px;
}
.furniture-page-header .page-desc { margin-bottom: 0; }
.furniture-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; margin-bottom: 22px;
}
.furniture-kpi {
  display: flex; align-items: center; gap: 13px;
  min-height: 82px; padding: 15px 17px;
  background: rgba(255,255,255,.6); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow);
}
.furniture-kpi__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 44px;
  color: var(--accent-a); background: var(--accent-a-soft); border-radius: 13px;
}
.furniture-kpi__icon--blue { color: var(--accent-b); background: var(--accent-b-soft); }
.furniture-kpi__icon--amber { color: var(--amber); background: var(--amber-soft); }
.furniture-kpi__icon--green { color: var(--green); background: var(--green-soft); }
.furniture-kpi > span:last-child { display: flex; flex-direction: column; }
.furniture-kpi strong { font-size: 22px; line-height: 1.1; }
.furniture-kpi small {
  margin-top: 3px; color: var(--text-secondary); font-size: 11px; font-weight: 600;
}
.furniture-note { margin-bottom: 20px; }
.furniture-location-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  align-items: start; gap: 18px;
}
.furniture-location-card {
  overflow: hidden; background: rgba(255,255,255,.72);
  border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
}
.furniture-location-card__header {
  display: flex; align-items: center; gap: 13px; padding: 18px 19px 15px;
  border-bottom: 1px solid var(--border-light);
}
.furniture-location-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: 0 0 48px;
  color: var(--accent-a); background: var(--accent-a-soft); border-radius: 14px;
}
.furniture-location-card__eyebrow {
  display: block; color: var(--text-muted); font-size: 9px; font-weight: 700;
  letter-spacing: .9px; text-transform: uppercase;
}
.furniture-location-card h2,
.furniture-add-card h2 {
  margin: 2px 0 0; font-size: 16px; line-height: 1.25;
}
.furniture-item-list { padding: 5px 19px; }
.furniture-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 49px; padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
}
.furniture-item:last-child { border-bottom: 0; }
.furniture-item__copy {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0;
}
.furniture-item__product { min-width: 0; font-size: 12px; font-weight: 600; }
.furniture-item__brand {
  display: inline-flex; max-width: 180px; padding: 2px 7px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--amber); background: var(--amber-soft);
  border-radius: 999px; font-size: 8px; font-weight: 700;
  letter-spacing: .35px; text-transform: uppercase;
}
.furniture-item__quantity {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; max-width: 145px; padding: 4px 9px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--accent-a); background: var(--accent-a-soft);
  border-radius: 999px; font: 600 11px var(--font-mono);
}
.furniture-location-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 19px; color: var(--text-muted); background: rgba(245,240,235,.42);
  border-top: 1px solid var(--border-light); font-size: 10px;
}
.furniture-location-card__footer strong { color: var(--text-secondary); }
.furniture-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 52px 24px; background: rgba(255,255,255,.55);
  border: 1px dashed rgba(121,71,248,.25); border-radius: 18px;
}
.furniture-empty--compact { padding: 34px 20px; }
.furniture-empty__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; color: var(--accent-a);
  background: var(--accent-a-soft); border-radius: 18px;
}
.furniture-empty h2 { margin: 14px 0 3px; font-size: 18px; }
.furniture-empty p { margin: 0 0 18px; color: var(--text-secondary); font-size: 12px; }

.furniture-add-card {
  margin-bottom: 28px; padding: 20px;
  background: linear-gradient(135deg, rgba(121,71,248,.09), rgba(255,255,255,.72));
  border: 1px solid rgba(121,71,248,.16); border-radius: 18px;
}
.furniture-add-card__intro {
  display: flex; align-items: center; gap: 12px; margin-bottom: 17px;
}
.furniture-add-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 45px; height: 45px; color: #fff; background: var(--accent-a-grad);
  border-radius: 13px; box-shadow: 0 5px 14px rgba(121,71,248,.2);
}
.furniture-add-form {
  display: grid; grid-template-columns: 1.1fr 1.1fr .72fr .55fr auto;
  align-items: end; gap: 12px;
}
.furniture-add-form .btn-primary { min-height: 40px; }
.furniture-editor-heading {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 15px; margin: 0 2px 13px;
}
.furniture-editor-heading .section-title { display: block; margin-bottom: 3px; }
.furniture-editor-heading h2 { margin: 0; font-size: 20px; }
.furniture-editor-heading > span { color: var(--text-muted); font-size: 11px; }
.furniture-editor-list { display: flex; flex-direction: column; gap: 9px; }
.furniture-editor-row {
  display: grid; grid-template-columns: 34px 1fr 1fr .64fr .42fr auto;
  align-items: end; gap: 11px; padding: 13px;
  background: rgba(255,255,255,.64); border: 1px solid var(--border);
  border-radius: 13px;
}
.furniture-editor-row__number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 39px; color: var(--text-muted);
  background: rgba(45,42,38,.05); border-radius: 8px; font: 600 10px var(--font-mono);
}
.furniture-editor-row__actions { display: flex; gap: 7px; }
.furniture-editor-row__actions .btn { min-height: 40px; padding-inline: 13px; }

@media (max-width: 1100px) {
  .furniture-add-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .furniture-add-form .btn-primary { justify-self: start; }
  .furniture-editor-row {
    grid-template-columns: 30px 1fr 1fr;
  }
  .furniture-editor-row__brand { grid-column: 2; }
  .furniture-editor-row__quantity { grid-column: 3; }
  .furniture-editor-row__actions {
    grid-column: 2 / 4; justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .furniture-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .furniture-page-header > .btn,
  .furniture-page-header > .btn-primary { width: 100%; justify-content: center; }
  .furniture-kpis { grid-template-columns: 1fr; }
  .furniture-location-grid { grid-template-columns: 1fr; }
  .furniture-add-form { grid-template-columns: 1fr; }
  .furniture-add-form .btn-primary { width: 100%; justify-content: center; }
  .furniture-editor-heading { align-items: flex-start; flex-direction: column; }
  .furniture-editor-row { grid-template-columns: 30px 1fr; }
  .furniture-editor-row .field,
  .furniture-editor-row__brand,
  .furniture-editor-row__quantity,
  .furniture-editor-row__actions { grid-column: 2; }
  .furniture-editor-row__number { grid-row: 1 / span 5; }
  .furniture-editor-row__actions { justify-content: stretch; }
  .furniture-editor-row__actions .btn { flex: 1; justify-content: center; }
}
