/* Armador Central — QUA-812 F1b mock (scoped, cero impacto en ventas legacy) */
#page-armador-central[data-skin="central"] {
  background: var(--bg);
  --bg-card: var(--card);
  --bg-card-hover: color-mix(in oklch, var(--card) 94%, var(--ink) 6%);
  --bg-input: var(--card);
  --border: var(--line);
  --border-light: var(--line);
  --border-strong: var(--line-2);
  --text: var(--ink);
  --text-secondary: var(--ink-2);
  --text-muted: var(--ink-3);
  --accent: var(--go);
  --accent-hover: var(--go-ink);
  --accent-soft: var(--go-soft);
  --accent-green: var(--go);
  --accent-red: var(--bad);
  --accent-yellow: var(--warn);
  --radius: var(--r);
  --radius-lg: calc(var(--r) + 4px);
  --shadow-lg: 0 -8px 32px oklch(25% 0.02 330 / 0.18);
  --font-serif: var(--sans);
  font-family: var(--sans);
}

#page-armador-central[data-skin="central"] .qc-page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
}

.ac-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 200px minmax(280px, 1fr) 360px;
  gap: 16px;
  min-height: 0;
  flex: 1;
}

.ac-slots { display: flex; flex-direction: column; gap: 6px; }

.ac-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  width: 100%;
}

.ac-slot.active { border-color: var(--go); background: var(--go-soft); }
.ac-slot.done { border-color: color-mix(in srgb, var(--dom-odoo) 40%, var(--line)); }
.ac-slot.warn { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }

.ac-slot-ic {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--dom-odoo);
}

.ac-slot-tx { flex: 1; min-width: 0; }
.ac-slot-tx b { font-size: var(--t-s); font-weight: 700; display: block; }
.ac-slot-tx span { font-size: var(--t-xs); color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-slot-stock { font-size: var(--t-xs); flex-shrink: 0; }
.ac-slot-opt { font-size: 10px; font-weight: 700; color: var(--ink-3); background: var(--dom-admin-soft); padding: 2px 6px; border-radius: 999px; flex-shrink: 0; }

.ac-picker { min-width: 0; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.ac-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.ac-search input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-family: var(--sans);
  font-size: var(--t-s);
  color: var(--ink);
}
.ac-pick-list { display: flex; flex-direction: column; gap: 8px; }

.qm-pickrow-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.ac-stock--ok { color: var(--go-ink); font-weight: 700; }
.ac-stock--zero { color: var(--bad); font-weight: 700; }
.ac-stock--void { color: var(--ink-3); }

.ac-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  min-height: 0;
}

.ac-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--t-s);
  font-weight: 700;
}

.ac-build-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.ac-build-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--t-xs);
  color: var(--ink-2);
}

.ac-build-list li b { color: var(--ink); font-weight: 600; }

.ac-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.ac-total span { font-size: var(--t-xs); color: var(--ink-3); }
.ac-total b { font-size: var(--t-xl); font-weight: 800; }
.ac-total-note { font-size: 10px; color: var(--ink-3); margin-top: -6px; }

.ac-actions { display: flex; flex-direction: column; gap: 8px; }
.ac-actions .btn { min-height: var(--tap); width: 100%; font-family: var(--sans); font-weight: 700; }

.ac-status {
  font-size: var(--t-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.ac-status--borrador { background: var(--dom-admin-soft); color: var(--ink-2); }
.ac-status--creada { background: var(--dom-odoo-soft); color: var(--dom-odoo); }
.ac-status--publicada { background: var(--go-soft); color: var(--go-ink); }
.ac-status--vendida { background: var(--warn-soft); color: var(--warn); }

.ac-head-status { display: flex; align-items: center; gap: 8px; }

/* Layout B — grid de tarjetas */
.ac-layout--grid {
  grid-template-columns: 1fr 360px;
}

.ac-main-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.ac-grid-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ac-slot-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  min-height: 120px;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
}

.ac-slot-card.active { border-color: var(--go); background: var(--go-soft); }
.ac-slot-card.done { border-color: color-mix(in srgb, var(--dom-odoo) 40%, var(--line)); }
.ac-slot-card.warn { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }

.ac-slot-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ac-slot-card-head b { font-size: var(--t-s); font-weight: 700; }
.ac-slot-card-sub { font-size: var(--t-xs); color: var(--ink-3); }

.ac-chip-contrast-strip {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  justify-content: center;
}

.ac-sheet-chev { display: none; }

@media (max-width: 980px) {
  .ac-layout { grid-template-columns: 1fr; }
  .ac-layout--grid { grid-template-columns: 1fr; }
  .ac-slots { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .ac-slot { min-width: 140px; flex-shrink: 0; }
  .ac-grid-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-side {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    border-radius: var(--r) var(--r) 0 0;
    box-shadow: var(--shadow-lg);
    max-height: 72vh;
    overflow-y: auto;
  }
  .ac-side .ac-build-list { display: none; }
  .ac-side.open .ac-build-list { display: flex; }
  .ac-side-head { cursor: pointer; }
  .ac-sheet-chev { display: inline-flex; transition: transform 0.15s; }
  .ac-side.open .ac-sheet-chev { transform: rotate(180deg); }
  .ac-picker { padding-bottom: 140px; }
}

@media (min-width: 981px) {
  .ac-side .ac-build-list { display: flex; }
  .ac-side:not(.open) .ac-build-list { display: flex; }
}
