/* =========================================================
   WIRTZ HUB · OPERACIONES · ARMADO DE ETIQUETAS
   CSS completo limpio
   Lista diaria expansible · Escaneo SKU · Items por pedido
   ========================================================= */

/* =========================================================
   PAGE
   ========================================================= */

.armado-etiquetas-page {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 7px;

  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - var(--topbar-height) - 44px);

  color: #111827;
  overflow-x: hidden;

  animation: armadoEtiquetasPageIn 0.22s ease both;
}

.armado-etiquetas-page *,
.armado-etiquetas-modal *,
.armado-etiquetas-toast {
  box-sizing: border-box;
}

html[data-theme="dark"] .armado-etiquetas-page {
  color: #f9fafb;
}

/* =========================================================
   BLOQUES BASE
   ========================================================= */

.armado-etiquetas-head,
.armado-etiquetas-metrics,
.armado-etiquetas-panel {
  width: 100%;
  max-width: 100%;

  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 16px;

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(249, 250, 251, 0.965)),
    color-mix(in srgb, var(--panel-solid) 98%, transparent);

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 1px 0 rgba(17, 24, 39, 0.035),
    0 12px 28px rgba(17, 24, 39, 0.04);

  overflow: hidden;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

html[data-theme="dark"] .armado-etiquetas-head,
html[data-theme="dark"] .armado-etiquetas-metrics,
html[data-theme="dark"] .armado-etiquetas-panel {
  border-color: rgba(255, 255, 255, 0.1);

  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.965), rgba(8, 8, 8, 0.945)),
    rgba(10, 10, 10, 0.92);

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.035) inset,
    0 14px 36px rgba(0, 0, 0, 0.32);
}

/* =========================================================
   HEADER
   ========================================================= */

.armado-etiquetas-head {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 8px;
  align-items: center;

  min-height: 56px;
  padding: 8px;
}

.armado-etiquetas-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.armado-etiquetas-brand__icon {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;
  min-width: 30px;

  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(243, 244, 246, 0.94));

  color: #111827;

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 8px 18px rgba(17, 24, 39, 0.06);
}

.armado-etiquetas-brand__icon .icon,
.armado-etiquetas-brand__icon svg {
  display: block;
  width: 15px;
  height: 15px;
  stroke-width: 2.15;
}

.armado-etiquetas-brand h2 {
  margin: 0;

  color: #111827;

  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.055em;
}

.armado-etiquetas-brand p {
  margin: 2px 0 0;
  max-width: 760px;

  color: #4b5563;

  font-size: 8.5px;
  font-weight: 760;
  line-height: 1.28;
}

html[data-theme="dark"] .armado-etiquetas-brand__icon {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045));

  color: rgba(255, 255, 255, 0.92);

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 10px 26px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .armado-etiquetas-brand h2 {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .armado-etiquetas-brand p {
  color: rgba(255, 255, 255, 0.48);
}

.armado-etiquetas-actions,
.armado-etiquetas-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
}

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

.armado-etiquetas-btn,
.armado-etiquetas-modal-close {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;

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

  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f6f7f8);

  color: #111827;

  font-family: inherit;
  font-size: 7.4px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 1px 2px rgba(17, 24, 39, 0.05);

  cursor: pointer;
  outline: none;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.16s ease,
    opacity 0.18s ease;
}

.armado-etiquetas-btn:hover,
.armado-etiquetas-modal-close:hover {
  border-color: rgba(17, 24, 39, 0.32);
  background: linear-gradient(180deg, #ffffff, #eef0f2);

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 8px 18px rgba(17, 24, 39, 0.075);

  transform: translateY(-1px);
}

.armado-etiquetas-btn:active,
.armado-etiquetas-modal-close:active {
  transform: translateY(0) scale(0.985);
}

.armado-etiquetas-btn:disabled,
.armado-etiquetas-modal-close:disabled {
  cursor: not-allowed;
  color: #6b7280;
  background: linear-gradient(180deg, #eef0f2, #e5e7eb);
  border-color: #d1d5db;
  box-shadow: none;
  opacity: 0.72;
  transform: none;
}

.armado-etiquetas-btn .icon,
.armado-etiquetas-modal-close .icon,
.armado-etiquetas-btn svg,
.armado-etiquetas-modal-close svg {
  display: block;

  width: 10px;
  height: 10px;
  min-width: 10px;

  stroke-width: 2.15;
  color: currentColor;
  stroke: currentColor;
}

.armado-etiquetas-btn--dark {
  border-color: #050505;
  background: #050505;
  background-image: none;
  color: #ffffff;

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 10px 24px rgba(0, 0, 0, 0.26);
}

.armado-etiquetas-btn--dark:hover {
  border-color: #000000;
  background: #000000;
  background-image: none;
  color: #ffffff;
}

.armado-etiquetas-btn--danger {
  border-color: rgba(185, 28, 28, 0.42);
  background: #ffffff;
  color: #b91c1c;
}

.armado-etiquetas-btn--danger:hover {
  border-color: rgba(185, 28, 28, 0.7);
  background: #fff5f5;
  color: #991b1b;
}

html[data-theme="dark"] .armado-etiquetas-btn,
html[data-theme="dark"] .armado-etiquetas-modal-close {
  border-color: rgba(255, 255, 255, 0.18);
  background: #101010;
  background-image: none;
  color: rgba(255, 255, 255, 0.9);

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 8px 18px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .armado-etiquetas-btn:hover,
html[data-theme="dark"] .armado-etiquetas-modal-close:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: #181818;
  color: #ffffff;
}

html[data-theme="dark"] .armado-etiquetas-btn--dark {
  border-color: rgba(255, 255, 255, 0.28);
  background: #050505;
  color: #ffffff;
}

html[data-theme="dark"] .armado-etiquetas-btn--dark:hover {
  background: #000000;
  color: #ffffff;
}

html[data-theme="dark"] .armado-etiquetas-btn--danger {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
}

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

.armado-etiquetas-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.armado-etiquetas-metric {
  display: grid;
  align-content: center;
  gap: 3px;

  min-height: 46px;
  padding: 7px 8px;

  border-right: 1px solid rgba(17, 24, 39, 0.085);
  background: transparent;
}

.armado-etiquetas-metric:last-child {
  border-right: 0;
}

.armado-etiquetas-metric span {
  color: #4b5563;

  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.085em;
  line-height: 1;
  text-transform: uppercase;

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

.armado-etiquetas-metric strong {
  color: #111827;

  font-size: 13.5px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.06em;

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

.armado-etiquetas-metric small {
  color: #6b7280;

  font-size: 6.8px;
  font-weight: 820;
  line-height: 1;

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

.armado-etiquetas-metric:nth-child(2) strong {
  color: #c2410c;
}

.armado-etiquetas-metric:nth-child(3) strong {
  color: #15803d;
}

.armado-etiquetas-metric:nth-child(4) strong {
  color: #b91c1c;
}

.armado-etiquetas-metric:nth-child(5) strong {
  color: #0f766e;
}

html[data-theme="dark"] .armado-etiquetas-metric {
  border-right-color: rgba(255, 255, 255, 0.085);
}

html[data-theme="dark"] .armado-etiquetas-metric span {
  color: rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] .armado-etiquetas-metric strong {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .armado-etiquetas-metric small {
  color: rgba(255, 255, 255, 0.38);
}

html[data-theme="dark"] .armado-etiquetas-metric:nth-child(2) strong {
  color: #fdba74;
}

html[data-theme="dark"] .armado-etiquetas-metric:nth-child(3) strong {
  color: #86efac;
}

html[data-theme="dark"] .armado-etiquetas-metric:nth-child(4) strong {
  color: #fca5a5;
}

html[data-theme="dark"] .armado-etiquetas-metric:nth-child(5) strong {
  color: #5eead4;
}

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

.armado-etiquetas-list-panel {
  display: grid;
  align-content: start;
  min-height: 0;
}

.armado-etiquetas-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(420px, 1fr);
  gap: 8px;
  align-items: center;

  padding: 8px;

  border-bottom: 1px solid rgba(17, 24, 39, 0.085);
  background: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .armado-etiquetas-toolbar {
  border-bottom-color: rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.022);
}

.armado-etiquetas-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.armado-etiquetas-title span,
.armado-etiquetas-expanded-head span {
  color: #4b5563;

  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;

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

.armado-etiquetas-title strong,
.armado-etiquetas-expanded-head strong {
  color: #111827;

  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.045em;

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

html[data-theme="dark"] .armado-etiquetas-title span,
html[data-theme="dark"] .armado-etiquetas-expanded-head span {
  color: rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] .armado-etiquetas-title strong,
html[data-theme="dark"] .armado-etiquetas-expanded-head strong {
  color: rgba(255, 255, 255, 0.92);
}

.armado-etiquetas-filters {
  justify-content: flex-end;
}

.armado-etiquetas-search {
  display: flex;
  align-items: center;
  gap: 6px;

  width: min(100%, 360px);
  min-width: 210px;
  height: 30px;
  padding: 0 8px;

  border: 1px solid rgba(17, 24, 39, 0.15);
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff, #f9fafb);

  color: #4b5563;

  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.armado-etiquetas-search .icon,
.armado-etiquetas-search svg {
  display: block;

  width: 12px;
  height: 12px;

  stroke-width: 2.15;
  color: #111827;
}

.armado-etiquetas-search input {
  width: 100%;
  min-width: 0;

  border: 0;
  background: transparent;

  color: #111827;
  outline: none;

  font-size: 8.5px;
  font-weight: 780;
}

.armado-etiquetas-search input::placeholder {
  color: #6b7280;
}

.armado-etiquetas-filters select {
  height: 30px;
  min-width: 108px;
  padding: 0 8px;

  border: 1px solid rgba(17, 24, 39, 0.15);
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff, #f9fafb);

  color: #111827;
  outline: none;

  font-size: 8.1px;
  font-weight: 850;

  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

html[data-theme="dark"] .armado-etiquetas-search,
html[data-theme="dark"] .armado-etiquetas-filters select {
  border-color: rgba(255, 255, 255, 0.16);
  background: #090909;
  background-image: none;
  color: #f8fafc;

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 8px 18px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .armado-etiquetas-search .icon,
html[data-theme="dark"] .armado-etiquetas-search svg {
  color: rgba(255, 255, 255, 0.86);
}

html[data-theme="dark"] .armado-etiquetas-search input {
  color: rgba(255, 255, 255, 0.9);
}

/* =========================================================
   LISTA DE LOTES
   ========================================================= */

.armado-etiquetas-lotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;

  min-height: 0;
  height: auto;
  padding: 0;

  overflow: visible;
}

.armado-etiquetas-lotes--list {
  max-height: none;
  overflow: visible;
}

.armado-etiquetas-lote-row {
  display: grid;
  grid-template-columns: 1fr;

  width: 100%;
  min-width: 0;

  border-bottom: 1px solid rgba(17, 24, 39, 0.075);
  background: transparent;

  overflow: hidden;
}

.armado-etiquetas-lote-row:last-child {
  border-bottom: 0;
}

.armado-etiquetas-lote-row:hover {
  background: rgba(17, 24, 39, 0.022);
}

.armado-etiquetas-lote-row.is-expanded {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.026), rgba(17, 24, 39, 0.012));
}

html[data-theme="dark"] .armado-etiquetas-lote-row {
  border-bottom-color: rgba(255, 255, 255, 0.075);
}

html[data-theme="dark"] .armado-etiquetas-lote-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .armado-etiquetas-lote-row.is-expanded {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.02));
}

.armado-etiquetas-lote-line {
  position: relative;

  display: grid;
  grid-template-columns: 30px minmax(220px, 1.15fr) minmax(300px, 1fr) 96px 30px;
  gap: 0;
  align-items: center;

  width: 100%;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  padding: 0;

  border: 0;
  background: transparent;

  color: #111827;
  text-align: left;

  font-family: inherit;

  cursor: pointer;
  outline: none;
}

.armado-etiquetas-lote-line::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;

  width: 3px;
  background: transparent;
}

.armado-etiquetas-lote-line:hover::before,
.armado-etiquetas-lote-row.is-expanded .armado-etiquetas-lote-line::before {
  background: #111827;
}

html[data-theme="dark"] .armado-etiquetas-lote-line {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .armado-etiquetas-lote-line:hover::before,
html[data-theme="dark"] .armado-etiquetas-lote-row.is-expanded .armado-etiquetas-lote-line::before {
  background: rgba(255, 255, 255, 0.88);
}

.armado-etiquetas-lote-line__icon {
  display: grid;
  place-items: center;

  width: 100%;
  height: 40px;

  border-right: 1px solid rgba(17, 24, 39, 0.07);
}

.armado-etiquetas-lote-line__icon .icon,
.armado-etiquetas-lote-line__icon svg {
  display: block;

  width: 12px;
  height: 12px;

  stroke-width: 2.15;
  color: currentColor;
}

.armado-etiquetas-lote-line__main {
  display: grid;
  gap: 1px;
  min-width: 0;

  padding: 0 9px;

  border-right: 1px solid rgba(17, 24, 39, 0.07);
}

.armado-etiquetas-lote-line__main strong {
  color: currentColor;

  font-size: 8.4px;
  font-weight: 950;
  line-height: 1.05;

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

.armado-etiquetas-lote-line__main small {
  color: #4b5563;

  font-size: 6.8px;
  font-weight: 780;
  line-height: 1.05;

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

.armado-etiquetas-lote-line__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));

  min-width: 0;
  height: 100%;

  border-right: 1px solid rgba(17, 24, 39, 0.07);
}

.armado-etiquetas-lote-line__stats > span {
  display: grid;
  align-content: center;
  gap: 1px;

  min-width: 0;
  height: 40px;
  padding: 0 7px;

  border-right: 1px solid rgba(17, 24, 39, 0.055);
}

.armado-etiquetas-lote-line__stats > span:last-child {
  border-right: 0;
}

.armado-etiquetas-lote-line__stats small {
  color: #6b7280;

  font-size: 5.9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;

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

.armado-etiquetas-lote-line__stats strong {
  color: #111827;

  font-size: 8px;
  font-weight: 950;
  line-height: 1;

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

.armado-etiquetas-lote-line > .armado-etiquetas-status {
  justify-self: center;
  max-width: calc(100% - 10px);
}

.armado-etiquetas-lote-line__chevron {
  display: grid;
  place-items: center;

  width: 30px;
  height: 40px;

  border-left: 1px solid rgba(17, 24, 39, 0.055);
}

.armado-etiquetas-lote-line__chevron .icon,
.armado-etiquetas-lote-line__chevron svg {
  display: block;

  width: 12px;
  height: 12px;

  stroke-width: 2.15;
}

html[data-theme="dark"] .armado-etiquetas-lote-line__icon,
html[data-theme="dark"] .armado-etiquetas-lote-line__main,
html[data-theme="dark"] .armado-etiquetas-lote-line__stats,
html[data-theme="dark"] .armado-etiquetas-lote-line__chevron {
  border-color: rgba(255, 255, 255, 0.065);
}

html[data-theme="dark"] .armado-etiquetas-lote-line__stats > span {
  border-right-color: rgba(255, 255, 255, 0.055);
}

html[data-theme="dark"] .armado-etiquetas-lote-line__main small,
html[data-theme="dark"] .armado-etiquetas-lote-line__stats small {
  color: rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .armado-etiquetas-lote-line__stats strong {
  color: rgba(255, 255, 255, 0.88);
}

/* =========================================================
   EXPANDIDO
   ========================================================= */

.armado-etiquetas-expanded {
  display: grid;
  gap: 0;

  border-top: 1px solid rgba(17, 24, 39, 0.075);
  background:
    linear-gradient(180deg, rgba(249, 250, 251, 0.84), rgba(255, 255, 255, 0.62));

  animation: armadoEtiquetasExpandIn 0.18s ease both;
}

html[data-theme="dark"] .armado-etiquetas-expanded {
  border-top-color: rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
}

.armado-etiquetas-expanded-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  min-height: 34px;
  padding: 5px 8px 5px 34px;

  border-bottom: 1px solid rgba(17, 24, 39, 0.075);
  background: rgba(255, 255, 255, 0.42);
}

.armado-etiquetas-expanded-head span {
  font-size: 6.3px;
}

.armado-etiquetas-expanded-head strong {
  font-size: 9.4px;
}

.armado-etiquetas-expanded-head .armado-etiquetas-btn {
  min-height: 24px;
  height: 24px;
  padding: 0 7px;
  font-size: 6.8px;
}

html[data-theme="dark"] .armado-etiquetas-expanded-head {
  border-bottom-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.022);
}

.armado-etiquetas-pedidos-list {
  display: grid;
  gap: 0;

  max-height: none;

  overflow: visible;
}

/* =========================================================
   PEDIDOS
   ========================================================= */

.armado-etiquetas-pedido-row {
  position: relative;

  display: grid;
  grid-template-columns:
    minmax(245px, 1.35fr)
    minmax(290px, 1fr)
    minmax(230px, 1fr)
    84px
    245px;
  gap: 0;
  align-items: stretch;

  min-height: 48px;
  margin-left: 30px;

  border-bottom: 1px solid rgba(17, 24, 39, 0.068);
  background: transparent;

  overflow: hidden;

  transition:
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.armado-etiquetas-pedido-row:last-child {
  border-bottom: 0;
}

.armado-etiquetas-pedido-row:hover {
  background: rgba(17, 24, 39, 0.026);
}

.armado-etiquetas-pedido-row--pendiente {
  box-shadow: inset 3px 0 0 rgba(194, 65, 12, 0.58);
}

.armado-etiquetas-pedido-row--parcial {
  box-shadow: inset 3px 0 0 rgba(234, 88, 12, 0.64);
}

.armado-etiquetas-pedido-row--preparado {
  box-shadow: inset 3px 0 0 rgba(21, 128, 61, 0.6);
}

.armado-etiquetas-pedido-row--faltante {
  box-shadow: inset 3px 0 0 rgba(185, 28, 28, 0.56);
}

.armado-etiquetas-pedido-row--retirado {
  box-shadow: inset 3px 0 0 rgba(15, 118, 110, 0.58);
}

html[data-theme="dark"] .armado-etiquetas-pedido-row {
  border-bottom-color: rgba(255, 255, 255, 0.068);
}

html[data-theme="dark"] .armado-etiquetas-pedido-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.armado-etiquetas-pedido-row__main {
  display: grid;
  align-content: center;
  gap: 2px;

  min-width: 0;
  padding: 6px 9px;

  border-right: 1px solid rgba(17, 24, 39, 0.06);
}

.armado-etiquetas-pedido-row__main strong {
  color: #111827;

  font-size: 8.2px;
  font-weight: 950;
  line-height: 1.05;

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

.armado-etiquetas-pedido-row__main small {
  color: #4b5563;

  font-size: 6.8px;
  font-weight: 760;
  line-height: 1.12;

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

.armado-etiquetas-pedido-row__data {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  min-width: 0;

  border-right: 1px solid rgba(17, 24, 39, 0.06);
}

.armado-etiquetas-pedido-row__data > span {
  display: grid;
  align-content: center;
  gap: 2px;

  min-width: 0;
  padding: 5px 7px;

  border-right: 1px solid rgba(17, 24, 39, 0.055);
}

.armado-etiquetas-pedido-row__data > span:last-child {
  border-right: 0;
}

.armado-etiquetas-pedido-row__data small {
  color: #6b7280;

  font-size: 5.8px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;

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

.armado-etiquetas-pedido-row__data strong {
  color: #111827;

  font-size: 7.1px;
  font-weight: 860;
  line-height: 1.1;

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

.armado-etiquetas-pedido-row__items {
  display: grid;
  align-content: center;

  min-width: 0;
  padding: 5px 7px;

  border-right: 1px solid rgba(17, 24, 39, 0.06);
}

.armado-etiquetas-pedido-row__state {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  padding: 5px 6px;

  border-right: 1px solid rgba(17, 24, 39, 0.06);
}

.armado-etiquetas-pedido-row__bar {
  position: absolute;
  left: 30px;
  right: 0;
  bottom: 0;

  height: 3px;

  background: rgba(17, 24, 39, 0.075);
  overflow: hidden;
}

.armado-etiquetas-pedido-row__bar span {
  display: block;
  height: 100%;

  background: #111827;
  transition: width 0.16s ease;
}

.armado-etiquetas-pedido-row--pendiente .armado-etiquetas-pedido-row__bar span {
  background: #c2410c;
}

.armado-etiquetas-pedido-row--parcial .armado-etiquetas-pedido-row__bar span {
  background: #ea580c;
}

.armado-etiquetas-pedido-row--preparado .armado-etiquetas-pedido-row__bar span {
  background: #15803d;
}

.armado-etiquetas-pedido-row--faltante .armado-etiquetas-pedido-row__bar span {
  background: #b91c1c;
}

.armado-etiquetas-pedido-row--retirado .armado-etiquetas-pedido-row__bar span {
  background: #0f766e;
}

.armado-etiquetas-pedido-row__warning {
  grid-column: 1 / -1;

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

  min-height: 24px;
  padding: 5px 9px;

  border-bottom: 1px solid rgba(185, 28, 28, 0.12);
  background: rgba(254, 226, 226, 0.42);

  color: #b91c1c;

  font-size: 6.8px;
  font-weight: 820;
  line-height: 1.25;
}

.armado-etiquetas-pedido-row__warning .icon,
.armado-etiquetas-pedido-row__warning svg {
  display: block;

  width: 10px;
  height: 10px;

  stroke-width: 2.15;
}

.armado-etiquetas-pedido-row__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-content: stretch;
  gap: 4px;

  min-width: 0;
  width: 100%;
  padding: 5px 6px;

  overflow: hidden;
}

.armado-etiquetas-pedido-row__actions .armado-etiquetas-btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;

  min-height: 24px;
  height: 24px;

  padding: 0 4px;
  border-radius: 7px;

  font-size: 6.4px;

  overflow: hidden;
}

.armado-etiquetas-pedido-row__actions .armado-etiquetas-btn span {
  display: inline-block;
  min-width: 0;
  max-width: 100%;

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

.armado-etiquetas-pedido-row__actions .armado-etiquetas-btn .icon,
.armado-etiquetas-pedido-row__actions .armado-etiquetas-btn svg {
  width: 8px;
  height: 8px;
  min-width: 8px;
}

html[data-theme="dark"] .armado-etiquetas-pedido-row__main,
html[data-theme="dark"] .armado-etiquetas-pedido-row__data,
html[data-theme="dark"] .armado-etiquetas-pedido-row__data > span,
html[data-theme="dark"] .armado-etiquetas-pedido-row__items,
html[data-theme="dark"] .armado-etiquetas-pedido-row__state {
  border-color: rgba(255, 255, 255, 0.055);
}

html[data-theme="dark"] .armado-etiquetas-pedido-row__main strong,
html[data-theme="dark"] .armado-etiquetas-pedido-row__data strong {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .armado-etiquetas-pedido-row__main small {
  color: rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] .armado-etiquetas-pedido-row__data small {
  color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .armado-etiquetas-pedido-row__bar {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .armado-etiquetas-pedido-row__warning {
  border-bottom-color: rgba(248, 113, 113, 0.18);
  background: rgba(127, 29, 29, 0.18);
  color: #fca5a5;
}

/* =========================================================
   ITEMS MINI
   ========================================================= */

.armado-etiquetas-items-mini {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;

  min-width: 0;
}

.armado-etiquetas-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;

  max-width: 100%;
  min-height: 18px;
  padding: 0 5px;

  border: 1px solid rgba(100, 116, 139, 0.14);
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.62);

  color: #334155;

  font-size: 6.4px;
  font-weight: 900;
  line-height: 1;

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

.armado-etiquetas-item-chip small {
  color: #64748b;
  font-size: 5.9px;
  font-weight: 950;
}

.armado-etiquetas-item-chip--completo {
  border-color: rgba(21, 128, 61, 0.16);
  background: rgba(220, 252, 231, 0.58);
  color: #15803d;
}

.armado-etiquetas-item-chip--parcial {
  border-color: rgba(194, 65, 12, 0.17);
  background: rgba(255, 237, 213, 0.58);
  color: #c2410c;
}

.armado-etiquetas-item-chip--faltante {
  border-color: rgba(185, 28, 28, 0.17);
  background: rgba(254, 226, 226, 0.58);
  color: #b91c1c;
}

.armado-etiquetas-item-chip--sobrante {
  border-color: rgba(124, 45, 18, 0.17);
  background: rgba(255, 237, 213, 0.72);
  color: #7c2d12;
}

html[data-theme="dark"] .armado-etiquetas-item-chip {
  border-color: rgba(203, 213, 225, 0.16);
  background: rgba(30, 41, 59, 0.34);
  color: #cbd5e1;
}

html[data-theme="dark"] .armado-etiquetas-item-chip small {
  color: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .armado-etiquetas-item-chip--completo {
  border-color: rgba(134, 239, 172, 0.18);
  background: rgba(20, 83, 45, 0.26);
  color: #86efac;
}

html[data-theme="dark"] .armado-etiquetas-item-chip--parcial {
  border-color: rgba(253, 186, 116, 0.18);
  background: rgba(124, 45, 18, 0.26);
  color: #fdba74;
}

html[data-theme="dark"] .armado-etiquetas-item-chip--faltante {
  border-color: rgba(252, 165, 165, 0.18);
  background: rgba(127, 29, 29, 0.26);
  color: #fca5a5;
}

html[data-theme="dark"] .armado-etiquetas-item-chip--sobrante {
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(113, 63, 18, 0.28);
  color: #fbbf24;
}

/* =========================================================
   STATUS
   ========================================================= */

.armado-etiquetas-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 16px;
  padding: 0 6px;

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

  font-size: 6.6px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.armado-etiquetas-status--cargado,
.armado-etiquetas-status--pendiente {
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.16);
  background: rgba(241, 245, 249, 0.62);
}

.armado-etiquetas-status--en-armado,
.armado-etiquetas-status--armado-parcial,
.armado-etiquetas-status--parcial {
  color: #c2410c;
  border-color: rgba(194, 65, 12, 0.17);
  background: rgba(255, 237, 213, 0.58);
}

.armado-etiquetas-status--armado-completo,
.armado-etiquetas-status--preparado,
.armado-etiquetas-status--completo {
  color: #15803d;
  border-color: rgba(21, 128, 61, 0.17);
  background: rgba(220, 252, 231, 0.58);
}

.armado-etiquetas-status--faltante,
.armado-etiquetas-status--cancelado,
.armado-etiquetas-status--no-retirado {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.17);
  background: rgba(254, 226, 226, 0.58);
}

.armado-etiquetas-status--retirado {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.17);
  background: rgba(204, 251, 241, 0.56);
}

.armado-etiquetas-status--sobrante {
  color: #7c2d12;
  border-color: rgba(124, 45, 18, 0.17);
  background: rgba(255, 237, 213, 0.72);
}

html[data-theme="dark"] .armado-etiquetas-status--cargado,
html[data-theme="dark"] .armado-etiquetas-status--pendiente {
  color: #cbd5e1;
  border-color: rgba(203, 213, 225, 0.16);
  background: rgba(30, 41, 59, 0.34);
}

html[data-theme="dark"] .armado-etiquetas-status--en-armado,
html[data-theme="dark"] .armado-etiquetas-status--armado-parcial,
html[data-theme="dark"] .armado-etiquetas-status--parcial {
  color: #fdba74;
  border-color: rgba(253, 186, 116, 0.18);
  background: rgba(124, 45, 18, 0.26);
}

html[data-theme="dark"] .armado-etiquetas-status--armado-completo,
html[data-theme="dark"] .armado-etiquetas-status--preparado,
html[data-theme="dark"] .armado-etiquetas-status--completo {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.18);
  background: rgba(20, 83, 45, 0.26);
}

html[data-theme="dark"] .armado-etiquetas-status--faltante,
html[data-theme="dark"] .armado-etiquetas-status--cancelado,
html[data-theme="dark"] .armado-etiquetas-status--no-retirado {
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.18);
  background: rgba(127, 29, 29, 0.26);
}

html[data-theme="dark"] .armado-etiquetas-status--retirado {
  color: #5eead4;
  border-color: rgba(94, 234, 212, 0.18);
  background: rgba(19, 78, 74, 0.26);
}

html[data-theme="dark"] .armado-etiquetas-status--sobrante {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(113, 63, 18, 0.28);
}

/* =========================================================
   MODAL
   ========================================================= */

.armado-etiquetas-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  place-items: center;

  padding: 14px;

  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 34%),
    rgba(0, 0, 0, 0.44);

  backdrop-filter: blur(14px) saturate(1.03);
  -webkit-backdrop-filter: blur(14px) saturate(1.03);
}

.armado-etiquetas-modal.is-open {
  display: grid;
  animation: armadoEtiquetasModalBackdropIn 0.16s ease both;
}

.armado-etiquetas-modal-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;

  width: min(920px, calc(100vw - 28px));
  height: min(780px, calc(100vh - 28px));
  max-height: calc(100vh - 28px);

  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 18px;

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.97)),
    rgba(255, 255, 255, 0.96);

  box-shadow:
    0 32px 96px rgba(0, 0, 0, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;

  overflow: hidden;

  animation: armadoEtiquetasModalIn 0.18s ease both;
}

html[data-theme="dark"] .armado-etiquetas-modal-card {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(7, 7, 7, 0.965)),
    rgba(8, 8, 8, 0.96);

  box-shadow:
    0 32px 98px rgba(0, 0, 0, 0.64),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.armado-etiquetas-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

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

  border-bottom: 1px solid rgba(17, 24, 39, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.46));
}

html[data-theme="dark"] .armado-etiquetas-modal-head {
  border-bottom-color: rgba(255, 255, 255, 0.085);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.armado-etiquetas-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;

  min-width: 0;
}

.armado-etiquetas-modal-icon {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;
  min-width: 30px;

  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 11px;

  background: linear-gradient(180deg, #ffffff, #f3f4f6);

  color: #111827;
}

.armado-etiquetas-modal-icon .icon,
.armado-etiquetas-modal-icon svg {
  display: block;

  width: 14px;
  height: 14px;

  stroke-width: 2.15;
}

html[data-theme="dark"] .armado-etiquetas-modal-icon {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.92);
}

.armado-etiquetas-modal-title > div {
  min-width: 0;
}

.armado-etiquetas-modal-title span {
  color: #4b5563;

  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.armado-etiquetas-modal-title h3 {
  margin: 1px 0 0;

  color: #111827;

  font-size: 12.5px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.045em;

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

.armado-etiquetas-modal-title p {
  margin: 2px 0 0;

  color: #4b5563;

  font-size: 7.6px;
  font-weight: 730;
}

html[data-theme="dark"] .armado-etiquetas-modal-title span {
  color: rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] .armado-etiquetas-modal-title h3 {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .armado-etiquetas-modal-title p {
  color: rgba(255, 255, 255, 0.48);
}

.armado-etiquetas-modal-close {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border-radius: 9px;
}

.armado-etiquetas-modal-body {
  display: grid;
  align-content: start;
  gap: 8px;

  min-height: 0;
  padding: 8px;

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

.armado-etiquetas-modal-footer {
  position: relative;
  z-index: 3;

  min-height: 48px;
  padding: 8px 9px;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;

  border-top: 1px solid rgba(17, 24, 39, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.82));

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-theme="dark"] .armado-etiquetas-modal-footer {
  border-top-color: rgba(255, 255, 255, 0.085);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.04));
}

/* =========================================================
   SCANNER BOX
   ========================================================= */

.armado-etiquetas-scanner-box {
  display: grid;
  gap: 8px;

  padding: 10px;

  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(249, 250, 251, 0.74));

  overflow: hidden;
}

.armado-etiquetas-scanner-box--success {
  border-color: rgba(21, 128, 61, 0.22);
  background:
    linear-gradient(180deg, rgba(240, 253, 244, 0.88), rgba(220, 252, 231, 0.62));
}

.armado-etiquetas-scanner-box--error {
  border-color: rgba(185, 28, 28, 0.22);
  background:
    linear-gradient(180deg, rgba(254, 242, 242, 0.88), rgba(254, 226, 226, 0.62));
}

.armado-etiquetas-scanner-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.armado-etiquetas-scanner-box__head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.armado-etiquetas-scanner-box__head span {
  color: #4b5563;

  font-size: 6.8px;
  font-weight: 950;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.armado-etiquetas-scanner-box__head strong {
  color: #111827;

  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.armado-etiquetas-scanner-box__head small {
  color: #4b5563;

  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.armado-etiquetas-scanner-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.armado-etiquetas-scanner-form label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px;

  height: 38px;
  padding: 0 10px;

  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 11px;
  background: #ffffff;

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86) inset,
    0 8px 18px rgba(17, 24, 39, 0.045);
}

.armado-etiquetas-scanner-form label .icon,
.armado-etiquetas-scanner-form label svg {
  width: 14px;
  height: 14px;
  color: #111827;
  stroke-width: 2.15;
}

.armado-etiquetas-scanner-form input {
  width: 100%;
  min-width: 0;

  border: 0;
  background: transparent;

  color: #111827;
  outline: none;

  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.armado-etiquetas-scanner-form input::placeholder {
  color: #9ca3af;
  font-size: 10px;
  letter-spacing: 0;
}

.armado-etiquetas-scanner-form .armado-etiquetas-btn {
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 8.4px;
}

.armado-etiquetas-last-scan {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;

  min-height: 30px;
  padding: 7px 8px;

  border: 1px solid rgba(100, 116, 139, 0.14);
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.62);

  color: #334155;
}

.armado-etiquetas-last-scan strong {
  font-size: 8px;
  font-weight: 950;
  line-height: 1;

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

.armado-etiquetas-last-scan span {
  color: inherit;

  font-size: 7.8px;
  font-weight: 820;
  line-height: 1.25;

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

.armado-etiquetas-last-scan--success {
  border-color: rgba(21, 128, 61, 0.18);
  background: rgba(220, 252, 231, 0.58);
  color: #15803d;
}

.armado-etiquetas-last-scan--error {
  border-color: rgba(185, 28, 28, 0.18);
  background: rgba(254, 226, 226, 0.58);
  color: #b91c1c;
}

.armado-etiquetas-scan-progress {
  width: 100%;
  height: 6px;

  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);

  overflow: hidden;
}

.armado-etiquetas-scan-progress span {
  display: block;
  height: 100%;

  border-radius: inherit;
  background: #111827;

  transition: width 0.18s ease;
}

html[data-theme="dark"] .armado-etiquetas-scanner-box {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

html[data-theme="dark"] .armado-etiquetas-scanner-box--success {
  border-color: rgba(134, 239, 172, 0.22);
  background:
    linear-gradient(180deg, rgba(20, 83, 45, 0.22), rgba(20, 83, 45, 0.12));
}

html[data-theme="dark"] .armado-etiquetas-scanner-box--error {
  border-color: rgba(252, 165, 165, 0.22);
  background:
    linear-gradient(180deg, rgba(127, 29, 29, 0.22), rgba(127, 29, 29, 0.12));
}

html[data-theme="dark"] .armado-etiquetas-scanner-box__head span,
html[data-theme="dark"] .armado-etiquetas-scanner-box__head small {
  color: rgba(255, 255, 255, 0.52);
}

html[data-theme="dark"] .armado-etiquetas-scanner-box__head strong {
  color: rgba(255, 255, 255, 0.94);
}

html[data-theme="dark"] .armado-etiquetas-scanner-form label {
  border-color: rgba(255, 255, 255, 0.16);
  background: #090909;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 8px 18px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .armado-etiquetas-scanner-form label .icon,
html[data-theme="dark"] .armado-etiquetas-scanner-form label svg {
  color: rgba(255, 255, 255, 0.86);
}

html[data-theme="dark"] .armado-etiquetas-scanner-form input {
  color: rgba(255, 255, 255, 0.94);
}

html[data-theme="dark"] .armado-etiquetas-scanner-form input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

html[data-theme="dark"] .armado-etiquetas-last-scan {
  border-color: rgba(203, 213, 225, 0.16);
  background: rgba(30, 41, 59, 0.34);
  color: #cbd5e1;
}

html[data-theme="dark"] .armado-etiquetas-last-scan--success {
  border-color: rgba(134, 239, 172, 0.18);
  background: rgba(20, 83, 45, 0.26);
  color: #86efac;
}

html[data-theme="dark"] .armado-etiquetas-last-scan--error {
  border-color: rgba(252, 165, 165, 0.18);
  background: rgba(127, 29, 29, 0.26);
  color: #fca5a5;
}

html[data-theme="dark"] .armado-etiquetas-scan-progress {
  background: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .armado-etiquetas-scan-progress span {
  background: #f9fafb;
}

/* =========================================================
   MODAL DETAIL CONTENT
   ========================================================= */

.armado-etiquetas-pedido-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 13px;

  overflow: hidden;
}

.armado-etiquetas-pedido-detail-grid article {
  display: grid;
  gap: 4px;

  min-height: 48px;
  padding: 8px;

  border-right: 1px solid rgba(17, 24, 39, 0.075);
  border-bottom: 1px solid rgba(17, 24, 39, 0.075);
}

.armado-etiquetas-pedido-detail-grid article:nth-child(4n) {
  border-right: 0;
}

.armado-etiquetas-pedido-detail-grid article:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.armado-etiquetas-pedido-detail-grid span,
.armado-etiquetas-pedido-detail-text span {
  color: #4b5563;

  font-size: 6.6px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.armado-etiquetas-pedido-detail-grid strong,
.armado-etiquetas-pedido-detail-text strong {
  min-width: 0;

  color: #111827;

  font-size: 8px;
  font-weight: 880;
  line-height: 1.15;

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

.armado-etiquetas-pedido-detail-text {
  display: grid;
  gap: 5px;

  padding: 8px;

  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 13px;
}

.armado-etiquetas-pedido-detail-text p {
  margin: 0;

  color: #4b5563;

  font-size: 8px;
  font-weight: 760;
  line-height: 1.35;

  white-space: pre-wrap;
  word-break: break-word;
}

html[data-theme="dark"] .armado-etiquetas-pedido-detail-grid,
html[data-theme="dark"] .armado-etiquetas-pedido-detail-text {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .armado-etiquetas-pedido-detail-grid article {
  border-right-color: rgba(255, 255, 255, 0.075);
  border-bottom-color: rgba(255, 255, 255, 0.075);
}

html[data-theme="dark"] .armado-etiquetas-pedido-detail-grid span,
html[data-theme="dark"] .armado-etiquetas-pedido-detail-text span {
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .armado-etiquetas-pedido-detail-grid strong,
html[data-theme="dark"] .armado-etiquetas-pedido-detail-text strong {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .armado-etiquetas-pedido-detail-text p {
  color: rgba(255, 255, 255, 0.6);
}

.armado-etiquetas-warning,
.armado-etiquetas-warning--detail {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 6px;

  padding: 7px 8px;

  border: 1px solid rgba(185, 28, 28, 0.24);
  border-radius: 11px;
  background: rgba(254, 226, 226, 0.5);

  color: #b91c1c;

  font-size: 7.6px;
  font-weight: 820;
  line-height: 1.25;
}

.armado-etiquetas-warning .icon,
.armado-etiquetas-warning svg,
.armado-etiquetas-warning--detail .icon,
.armado-etiquetas-warning--detail svg {
  display: block;

  width: 11px;
  height: 11px;

  stroke-width: 2.15;
}

html[data-theme="dark"] .armado-etiquetas-warning,
html[data-theme="dark"] .armado-etiquetas-warning--detail {
  border-color: rgba(252, 165, 165, 0.18);
  background: rgba(127, 29, 29, 0.22);
  color: #fca5a5;
}

/* =========================================================
   ITEMS PANEL SCANNER
   ========================================================= */

.armado-etiquetas-items-panel,
.armado-etiquetas-scans-panel {
  display: grid;
  min-width: 0;

  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 13px;

  overflow: hidden;
}

.armado-etiquetas-items-panel > header,
.armado-etiquetas-scans-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  min-height: 38px;
  padding: 7px 9px;

  border-bottom: 1px solid rgba(17, 24, 39, 0.075);
  background: rgba(249, 250, 251, 0.72);
}

.armado-etiquetas-items-panel > header div,
.armado-etiquetas-scans-panel > header div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.armado-etiquetas-items-panel > header span,
.armado-etiquetas-scans-panel > header span {
  color: #4b5563;

  font-size: 6.6px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.armado-etiquetas-items-panel > header strong,
.armado-etiquetas-scans-panel > header strong {
  color: #111827;

  font-size: 9px;
  font-weight: 950;
  line-height: 1;
}

.armado-etiquetas-items-panel > header small {
  color: #6b7280;

  font-size: 7.4px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.armado-etiquetas-items-list,
.armado-etiquetas-scans-list {
  display: grid;
  gap: 0;
}

.armado-etiquetas-item-row {
  position: relative;

  display: grid;
  grid-template-columns: minmax(260px, 1fr) 120px 104px;
  gap: 8px;
  align-items: center;

  min-height: 54px;
  padding: 7px 9px 12px;

  border-bottom: 1px solid rgba(17, 24, 39, 0.068);
  background: transparent;

  overflow: hidden;
}

.armado-etiquetas-item-row:last-child {
  border-bottom: 0;
}

.armado-etiquetas-item-row__main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.armado-etiquetas-item-row__main strong {
  color: #111827;

  font-size: 9px;
  font-weight: 950;
  line-height: 1;

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

.armado-etiquetas-item-row__main span {
  color: #374151;

  font-size: 8px;
  font-weight: 780;
  line-height: 1.15;

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

.armado-etiquetas-item-row__main small {
  color: #6b7280;

  font-size: 7px;
  font-weight: 760;
  line-height: 1;

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

.armado-etiquetas-item-row__qty {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.armado-etiquetas-item-row__qty span {
  color: #6b7280;

  font-size: 6.4px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.armado-etiquetas-item-row__qty strong {
  color: #111827;

  font-size: 9px;
  font-weight: 950;
  line-height: 1;
}

.armado-etiquetas-item-row__state {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.armado-etiquetas-item-row__bar {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 5px;

  height: 4px;

  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);

  overflow: hidden;
}

.armado-etiquetas-item-row__bar span {
  display: block;
  height: 100%;

  border-radius: inherit;
  background: #111827;

  transition: width 0.16s ease;
}

.armado-etiquetas-item-row--completo .armado-etiquetas-item-row__bar span {
  background: #15803d;
}

.armado-etiquetas-item-row--parcial .armado-etiquetas-item-row__bar span {
  background: #c2410c;
}

.armado-etiquetas-item-row--faltante .armado-etiquetas-item-row__bar span {
  background: #b91c1c;
}

.armado-etiquetas-item-row--sobrante .armado-etiquetas-item-row__bar span {
  background: #7c2d12;
}

html[data-theme="dark"] .armado-etiquetas-items-panel,
html[data-theme="dark"] .armado-etiquetas-scans-panel {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .armado-etiquetas-items-panel > header,
html[data-theme="dark"] .armado-etiquetas-scans-panel > header {
  border-bottom-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .armado-etiquetas-items-panel > header span,
html[data-theme="dark"] .armado-etiquetas-scans-panel > header span,
html[data-theme="dark"] .armado-etiquetas-items-panel > header small {
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .armado-etiquetas-items-panel > header strong,
html[data-theme="dark"] .armado-etiquetas-scans-panel > header strong {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .armado-etiquetas-item-row {
  border-bottom-color: rgba(255, 255, 255, 0.068);
}

html[data-theme="dark"] .armado-etiquetas-item-row__main strong,
html[data-theme="dark"] .armado-etiquetas-item-row__qty strong {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .armado-etiquetas-item-row__main span {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .armado-etiquetas-item-row__main small,
html[data-theme="dark"] .armado-etiquetas-item-row__qty span {
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .armado-etiquetas-item-row__bar {
  background: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .armado-etiquetas-item-row__bar span {
  background: #f9fafb;
}

html[data-theme="dark"] .armado-etiquetas-item-row--completo .armado-etiquetas-item-row__bar span {
  background: #86efac;
}

html[data-theme="dark"] .armado-etiquetas-item-row--parcial .armado-etiquetas-item-row__bar span {
  background: #fdba74;
}

html[data-theme="dark"] .armado-etiquetas-item-row--faltante .armado-etiquetas-item-row__bar span {
  background: #fca5a5;
}

html[data-theme="dark"] .armado-etiquetas-item-row--sobrante .armado-etiquetas-item-row__bar span {
  background: #fbbf24;
}

/* =========================================================
   SCANS PANEL
   ========================================================= */

.armado-etiquetas-scan-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1fr) 120px;
  gap: 8px;
  align-items: center;

  min-height: 34px;
  padding: 6px 9px;

  border-bottom: 1px solid rgba(17, 24, 39, 0.068);
}

.armado-etiquetas-scan-row:last-child {
  border-bottom: 0;
}

.armado-etiquetas-scan-row strong {
  color: #111827;

  font-size: 8px;
  font-weight: 950;
  line-height: 1;

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

.armado-etiquetas-scan-row span {
  color: #4b5563;

  font-size: 7.4px;
  font-weight: 780;
  line-height: 1.2;

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

.armado-etiquetas-scan-row small {
  color: #6b7280;

  font-size: 6.8px;
  font-weight: 820;
  line-height: 1;
  text-align: right;

  white-space: nowrap;
}

.armado-etiquetas-scan-row--ok strong,
.armado-etiquetas-scan-row--ok span {
  color: #15803d;
}

.armado-etiquetas-scan-row--sobrante strong,
.armado-etiquetas-scan-row--sobrante span {
  color: #c2410c;
}

.armado-etiquetas-scan-row--sku-no-esperado strong,
.armado-etiquetas-scan-row--sku-no-esperado span,
.armado-etiquetas-scan-row--error strong,
.armado-etiquetas-scan-row--error span {
  color: #b91c1c;
}

html[data-theme="dark"] .armado-etiquetas-scan-row {
  border-bottom-color: rgba(255, 255, 255, 0.068);
}

html[data-theme="dark"] .armado-etiquetas-scan-row strong {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .armado-etiquetas-scan-row span {
  color: rgba(255, 255, 255, 0.58);
}

html[data-theme="dark"] .armado-etiquetas-scan-row small {
  color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .armado-etiquetas-scan-row--ok strong,
html[data-theme="dark"] .armado-etiquetas-scan-row--ok span {
  color: #86efac;
}

html[data-theme="dark"] .armado-etiquetas-scan-row--sobrante strong,
html[data-theme="dark"] .armado-etiquetas-scan-row--sobrante span {
  color: #fdba74;
}

html[data-theme="dark"] .armado-etiquetas-scan-row--sku-no-esperado strong,
html[data-theme="dark"] .armado-etiquetas-scan-row--sku-no-esperado span,
html[data-theme="dark"] .armado-etiquetas-scan-row--error strong,
html[data-theme="dark"] .armado-etiquetas-scan-row--error span {
  color: #fca5a5;
}

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

.armado-etiquetas-empty {
  display: grid;
  gap: 4px;

  margin: 6px;
  padding: 10px;

  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 13px;

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(249, 250, 251, 0.72));

  animation: armadoEtiquetasSoftPop 0.2s ease both;
}

.armado-etiquetas-empty strong {
  color: #111827;

  font-size: 8.6px;
  font-weight: 950;
  line-height: 1.2;
}

.armado-etiquetas-empty span {
  color: #4b5563;

  font-size: 7px;
  font-weight: 820;
  line-height: 1.2;
}

.armado-etiquetas-empty.is-error strong {
  color: #b91c1c;
}

html[data-theme="dark"] .armado-etiquetas-empty {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

html[data-theme="dark"] .armado-etiquetas-empty strong {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .armado-etiquetas-empty span {
  color: rgba(255, 255, 255, 0.48);
}

.armado-etiquetas-toast {
  position: fixed;
  right: 14px;
  bottom: 38px;
  z-index: 10000;

  max-width: min(380px, calc(100vw - 28px));
  padding: 9px 11px;

  border: 1px solid rgba(17, 24, 39, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(249, 250, 251, 0.95)),
    color-mix(in srgb, var(--panel-solid) 98%, transparent);

  color: #111827;

  font-size: 8.8px;
  font-weight: 900;
  line-height: 1.25;

  box-shadow:
    0 18px 48px rgba(17, 24, 39, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;

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

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

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

.armado-etiquetas-toast--error {
  color: #b91c1c;
}

.armado-etiquetas-toast--success {
  color: #15803d;
}

html[data-theme="dark"] .armado-etiquetas-toast {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.985), rgba(8, 8, 8, 0.95)),
    rgba(10, 10, 10, 0.96);

  color: rgba(255, 255, 255, 0.9);

  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.46),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

html[data-theme="dark"] .armado-etiquetas-toast--error {
  color: #fca5a5;
}

html[data-theme="dark"] .armado-etiquetas-toast--success {
  color: #86efac;
}

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

@media (max-width: 1480px) {
  .armado-etiquetas-pedido-row {
    grid-template-columns:
      minmax(230px, 1.2fr)
      minmax(270px, 1fr)
      minmax(220px, 1fr)
      80px
      230px;
  }
}

@media (max-width: 1380px) {
  .armado-etiquetas-head {
    grid-template-columns: 1fr;
  }

  .armado-etiquetas-actions {
    justify-content: flex-start;
  }

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

  .armado-etiquetas-filters {
    justify-content: flex-start;
  }

  .armado-etiquetas-search {
    width: min(100%, 420px);
  }

  .armado-etiquetas-lote-line {
    grid-template-columns: 30px minmax(190px, 1fr) minmax(300px, 1fr) 90px 30px;
  }

  .armado-etiquetas-pedido-row {
    grid-template-columns:
      minmax(220px, 1fr)
      minmax(260px, 1fr)
      minmax(210px, 1fr)
      76px
      220px;
  }
}

@media (max-width: 1180px) {
  .armado-etiquetas-pedido-row {
    grid-template-columns: 1fr;
    margin-left: 30px;
  }

  .armado-etiquetas-pedido-row__main,
  .armado-etiquetas-pedido-row__data,
  .armado-etiquetas-pedido-row__items,
  .armado-etiquetas-pedido-row__state {
    border-right: 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.065);
  }

  .armado-etiquetas-pedido-row__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[data-theme="dark"] .armado-etiquetas-pedido-row__main,
  html[data-theme="dark"] .armado-etiquetas-pedido-row__data,
  html[data-theme="dark"] .armado-etiquetas-pedido-row__items,
  html[data-theme="dark"] .armado-etiquetas-pedido-row__state {
    border-bottom-color: rgba(255, 255, 255, 0.065);
  }
}

@media (max-width: 1120px) {
  .armado-etiquetas-lote-line {
    grid-template-columns: 30px minmax(190px, 1fr) 90px 30px;
  }

  .armado-etiquetas-lote-line__stats {
    display: none;
  }

  .armado-etiquetas-modal-card {
    width: min(860px, calc(100vw - 28px));
  }
}

@media (max-width: 980px) {
  .armado-etiquetas-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .armado-etiquetas-metric:nth-child(3n) {
    border-right: 0;
  }

  .armado-etiquetas-metric:nth-child(n + 4) {
    border-top: 1px solid rgba(17, 24, 39, 0.085);
  }

  .armado-etiquetas-pedido-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .armado-etiquetas-pedido-detail-grid article:nth-child(2n) {
    border-right: 0;
  }

  .armado-etiquetas-pedido-detail-grid article:nth-last-child(-n + 4) {
    border-bottom: 1px solid rgba(17, 24, 39, 0.075);
  }

  .armado-etiquetas-pedido-detail-grid article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .armado-etiquetas-item-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .armado-etiquetas-item-row__state {
    justify-content: flex-start;
  }

  .armado-etiquetas-scan-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .armado-etiquetas-scan-row small {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .armado-etiquetas-page {
    gap: 7px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow-x: hidden;
  }

  .armado-etiquetas-head,
  .armado-etiquetas-metrics,
  .armado-etiquetas-panel {
    border-radius: 14px;
  }

  .armado-etiquetas-head {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
    padding: 9px;
  }

  .armado-etiquetas-brand {
    align-items: flex-start;
  }

  .armado-etiquetas-brand h2 {
    font-size: 13px;
  }

  .armado-etiquetas-brand p {
    display: none;
  }

  .armado-etiquetas-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    width: 100%;
  }

  .armado-etiquetas-actions .armado-etiquetas-btn {
    width: 100%;
    min-height: 32px;
    height: 32px;
  }

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

  .armado-etiquetas-metric {
    min-height: 48px;
    padding: 8px;
    border-right: 1px solid rgba(17, 24, 39, 0.085);
    border-top: 1px solid rgba(17, 24, 39, 0.085);
  }

  .armado-etiquetas-metric:nth-child(1),
  .armado-etiquetas-metric:nth-child(2) {
    border-top: 0;
  }

  .armado-etiquetas-metric:nth-child(2n) {
    border-right: 0;
  }

  .armado-etiquetas-toolbar {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .armado-etiquetas-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
  }

  .armado-etiquetas-search,
  .armado-etiquetas-filters select,
  .armado-etiquetas-filters .armado-etiquetas-btn {
    width: 100%;
    min-width: 0;
    height: 32px;
    min-height: 32px;
    border-radius: 9px;
  }

  .armado-etiquetas-lote-line {
    min-height: 44px;
    height: 44px;
    grid-template-columns: 30px minmax(0, 1fr) 78px 28px;
  }

  .armado-etiquetas-lote-line__stats {
    display: none;
  }

  .armado-etiquetas-lote-line__icon,
  .armado-etiquetas-lote-line__chevron {
    height: 44px;
  }

  .armado-etiquetas-lote-line__main {
    padding: 0 8px;
  }

  .armado-etiquetas-lote-line__main strong {
    font-size: 8.3px;
  }

  .armado-etiquetas-lote-line__main small {
    font-size: 6.9px;
  }

  .armado-etiquetas-lote-line > .armado-etiquetas-status {
    max-width: 76px;
    padding: 0 5px;
    font-size: 6.8px;
  }

  .armado-etiquetas-expanded-head {
    padding: 7px;
    align-items: flex-start;
    flex-direction: column;
  }

  .armado-etiquetas-expanded-head .armado-etiquetas-btn {
    width: 100%;
    min-height: 32px;
    height: 32px;
  }

  .armado-etiquetas-pedido-row {
    margin-left: 0;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .armado-etiquetas-pedido-row__main {
    padding: 8px;
  }

  .armado-etiquetas-pedido-row__main strong,
  .armado-etiquetas-pedido-row__main small {
    white-space: normal;
  }

  .armado-etiquetas-pedido-row__data {
    grid-template-columns: 1fr;
  }

  .armado-etiquetas-pedido-row__data > span {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
    gap: 8px;

    min-height: 28px;
    padding: 6px 8px;

    border-right: 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.065);
  }

  .armado-etiquetas-pedido-row__data > span:last-child {
    border-bottom: 0;
  }

  .armado-etiquetas-pedido-row__data strong {
    text-align: right;
  }

  .armado-etiquetas-pedido-row__items {
    padding: 8px;
  }

  .armado-etiquetas-pedido-row__state {
    justify-content: flex-start;
    padding: 8px 9px;
  }

  .armado-etiquetas-pedido-row__bar {
    left: 0;
  }

  .armado-etiquetas-pedido-row__actions {
    grid-template-columns: 1fr 1fr;
    padding: 7px;
  }

  .armado-etiquetas-pedido-row__actions .armado-etiquetas-btn {
    min-height: 30px;
    height: 30px;
    font-size: 7px;
  }

  .armado-etiquetas-modal {
    padding: 8px;
    align-items: end;
  }

  .armado-etiquetas-modal-card {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 16px;
  }

  .armado-etiquetas-modal-head {
    align-items: flex-start;
    min-height: auto;
    padding: 9px;
  }

  .armado-etiquetas-modal-title p {
    display: none;
  }

  .armado-etiquetas-modal-body {
    padding: 8px;
  }

  .armado-etiquetas-scanner-form {
    grid-template-columns: 1fr;
  }

  .armado-etiquetas-scanner-form label,
  .armado-etiquetas-scanner-form .armado-etiquetas-btn {
    height: 38px;
    min-height: 38px;
    width: 100%;
  }

  .armado-etiquetas-last-scan {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .armado-etiquetas-last-scan span {
    white-space: normal;
  }

  .armado-etiquetas-pedido-detail-grid {
    grid-template-columns: 1fr;
  }

  .armado-etiquetas-pedido-detail-grid article {
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;

    border-right: 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.075);
  }

  .armado-etiquetas-pedido-detail-grid article:last-child {
    border-bottom: 0;
  }

  .armado-etiquetas-pedido-detail-grid strong {
    text-align: right;
  }

  .armado-etiquetas-items-panel > header,
  .armado-etiquetas-scans-panel > header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .armado-etiquetas-items-panel > header small {
    white-space: normal;
  }

  .armado-etiquetas-modal-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: auto;
    padding: 8px;
  }

  .armado-etiquetas-modal-footer .armado-etiquetas-btn {
    width: 100%;
    min-height: 32px;
    height: 32px;
  }

  .armado-etiquetas-toast {
    left: 10px;
    right: 10px;
    bottom: 34px;
    max-width: none;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .armado-etiquetas-head,
  .armado-etiquetas-metrics,
  .armado-etiquetas-panel {
    border-radius: 12px;
  }

  .armado-etiquetas-head {
    padding: 8px;
  }

  .armado-etiquetas-brand__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .armado-etiquetas-brand h2 {
    font-size: 12.5px;
  }

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

  .armado-etiquetas-metric {
    border-right: 0;
  }

  .armado-etiquetas-metric:nth-child(2) {
    border-top: 1px solid rgba(17, 24, 39, 0.085);
  }

  .armado-etiquetas-lote-line {
    grid-template-columns: 30px minmax(0, 1fr) 70px 28px;
  }

  .armado-etiquetas-lote-line__icon,
  .armado-etiquetas-lote-line__chevron {
    height: 46px;
  }

  .armado-etiquetas-lote-line__main strong {
    font-size: 7.9px;
  }

  .armado-etiquetas-lote-line__main small {
    font-size: 6.5px;
  }

  .armado-etiquetas-lote-line > .armado-etiquetas-status {
    max-width: 66px;
    font-size: 6.3px;
  }

  .armado-etiquetas-pedido-row__actions {
    grid-template-columns: 1fr;
  }

  .armado-etiquetas-pedido-row__data > span,
  .armado-etiquetas-pedido-detail-grid article {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .armado-etiquetas-item-row {
    min-height: auto;
  }

  .armado-etiquetas-scan-row {
    min-height: auto;
  }
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

.is-spinning {
  animation: armadoEtiquetasSpin 0.85s linear infinite;
}

@keyframes armadoEtiquetasSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes armadoEtiquetasPageIn {
  from {
    opacity: 0;
    transform: translateY(5px);
    filter: blur(1px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes armadoEtiquetasExpandIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes armadoEtiquetasSoftPop {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes armadoEtiquetasModalBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes armadoEtiquetasModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .armado-etiquetas-page,
  .armado-etiquetas-page *,
  .armado-etiquetas-page *::before,
  .armado-etiquetas-page *::after,
  .armado-etiquetas-modal,
  .armado-etiquetas-modal *,
  .armado-etiquetas-modal *::before,
  .armado-etiquetas-modal *::after,
  .armado-etiquetas-toast {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}/* =========================================================
   ARMADO DE ETIQUETAS · MISMO TAMAÑO VISUAL QUE LAS DEMÁS
   Agrandar un poco sin cambiar estructura
   ========================================================= */

.armado-etiquetas-page {
  gap: 9px !important;
}

/* Header */
.armado-etiquetas-head {
  min-height: 60px !important;
  padding: 10px !important;
  gap: 10px !important;
}

.armado-etiquetas-brand {
  gap: 9px !important;
}

.armado-etiquetas-brand__icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 11px !important;
}

.armado-etiquetas-brand__icon .icon,
.armado-etiquetas-brand__icon svg {
  width: 15.5px !important;
  height: 15.5px !important;
}

.armado-etiquetas-brand h2 {
  font-size: 15px !important;
}

.armado-etiquetas-brand p {
  font-size: 9.8px !important;
  line-height: 1.36 !important;
}

/* Botones */
.armado-etiquetas-btn,
.armado-etiquetas-modal-close {
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  font-size: 9.4px !important;
}

.armado-etiquetas-btn .icon,
.armado-etiquetas-modal-close .icon,
.armado-etiquetas-btn svg,
.armado-etiquetas-modal-close svg {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
}

/* Métricas */
.armado-etiquetas-metric {
  min-height: 48px !important;
  padding: 9px 10px !important;
  gap: 4px !important;
}

.armado-etiquetas-metric span {
  font-size: 7.8px !important;
}

.armado-etiquetas-metric strong {
  font-size: 16px !important;
}

.armado-etiquetas-metric small {
  font-size: 7.8px !important;
}

/* Toolbar */
.armado-etiquetas-toolbar {
  grid-template-columns: minmax(220px, 0.45fr) minmax(420px, 1fr) !important;
  gap: 9px !important;
  padding: 9px !important;
}

.armado-etiquetas-title span,
.armado-etiquetas-expanded-head span {
  font-size: 7.8px !important;
}

.armado-etiquetas-title strong,
.armado-etiquetas-expanded-head strong {
  font-size: 12px !important;
}

.armado-etiquetas-search {
  height: 30px !important;
  padding: 0 9px !important;
  border-radius: 10px !important;
}

.armado-etiquetas-search .icon,
.armado-etiquetas-search svg {
  width: 12.5px !important;
  height: 12.5px !important;
}

.armado-etiquetas-search input {
  font-size: 9.6px !important;
}

.armado-etiquetas-filters select {
  height: 30px !important;
  min-width: 108px !important;
  padding: 0 9px !important;
  border-radius: 10px !important;
  font-size: 9.2px !important;
}

/* Lotes */
.armado-etiquetas-lote-line {
  min-height: 48px !important;
  height: 48px !important;
  grid-template-columns: 34px minmax(220px, 1.15fr) minmax(300px, 1fr) 104px 34px !important;
}

.armado-etiquetas-lote-line__icon,
.armado-etiquetas-lote-line__chevron {
  height: 48px !important;
}

.armado-etiquetas-lote-line__icon .icon,
.armado-etiquetas-lote-line__icon svg,
.armado-etiquetas-lote-line__chevron .icon,
.armado-etiquetas-lote-line__chevron svg {
  width: 13px !important;
  height: 13px !important;
}

.armado-etiquetas-lote-line__main {
  padding: 0 10px !important;
}

.armado-etiquetas-lote-line__main strong {
  font-size: 10px !important;
}

.armado-etiquetas-lote-line__main small {
  font-size: 8px !important;
}

.armado-etiquetas-lote-line__stats > span {
  height: 48px !important;
  padding: 0 8px !important;
}

.armado-etiquetas-lote-line__stats small {
  font-size: 7px !important;
}

.armado-etiquetas-lote-line__stats strong {
  font-size: 9.2px !important;
}

/* Estados / chips */
.armado-etiquetas-status {
  min-height: 20px !important;
  padding: 0 8px !important;
  font-size: 8px !important;
}

.armado-etiquetas-item-chip {
  min-height: 21px !important;
  padding: 0 7px !important;
  font-size: 7.6px !important;
}

.armado-etiquetas-item-chip small {
  font-size: 7px !important;
}

/* Expandido */
.armado-etiquetas-expanded-head {
  min-height: 40px !important;
  padding: 7px 9px 7px 36px !important;
}

.armado-etiquetas-expanded-head .armado-etiquetas-btn {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 9px !important;
  font-size: 8.4px !important;
}

/* Filas de pedidos */
.armado-etiquetas-pedido-row {
  grid-template-columns:
    minmax(245px, 1.35fr)
    minmax(290px, 1fr)
    minmax(230px, 1fr)
    90px
    250px !important;

  min-height: 56px !important;
}

.armado-etiquetas-pedido-row__main {
  padding: 8px 10px !important;
  gap: 3px !important;
}

.armado-etiquetas-pedido-row__main strong {
  font-size: 9.8px !important;
}

.armado-etiquetas-pedido-row__main small {
  font-size: 8px !important;
}

.armado-etiquetas-pedido-row__data > span {
  padding: 7px 8px !important;
  gap: 3px !important;
}

.armado-etiquetas-pedido-row__data small {
  font-size: 7px !important;
}

.armado-etiquetas-pedido-row__data strong {
  font-size: 8.6px !important;
}

.armado-etiquetas-pedido-row__items {
  padding: 7px 8px !important;
}

.armado-etiquetas-pedido-row__state {
  padding: 7px 8px !important;
}

.armado-etiquetas-pedido-row__warning {
  min-height: 28px !important;
  padding: 6px 10px !important;
  font-size: 8px !important;
}

.armado-etiquetas-pedido-row__warning .icon,
.armado-etiquetas-pedido-row__warning svg {
  width: 12px !important;
  height: 12px !important;
}

.armado-etiquetas-pedido-row__actions {
  gap: 5px !important;
  padding: 6px 7px !important;
}

.armado-etiquetas-pedido-row__actions .armado-etiquetas-btn {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 6px !important;
  border-radius: 8px !important;
  font-size: 8px !important;
}

.armado-etiquetas-pedido-row__actions .armado-etiquetas-btn .icon,
.armado-etiquetas-pedido-row__actions .armado-etiquetas-btn svg {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
}

/* Empty */
.armado-etiquetas-empty {
  gap: 6px !important;
  margin: 8px !important;
  padding: 14px !important;
  border-radius: 14px !important;
}

.armado-etiquetas-empty strong {
  font-size: 11px !important;
}

.armado-etiquetas-empty span {
  font-size: 9px !important;
}

/* Modal */
.armado-etiquetas-modal-card {
  width: min(940px, calc(100vw - 32px)) !important;
  height: min(740px, calc(100vh - 32px)) !important;
  max-height: calc(100vh - 32px) !important;
  border-radius: 16px !important;
}

.armado-etiquetas-modal-head {
  min-height: 54px !important;
  padding: 10px 12px !important;
}

.armado-etiquetas-modal-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 11px !important;
}

.armado-etiquetas-modal-icon .icon,
.armado-etiquetas-modal-icon svg {
  width: 15px !important;
  height: 15px !important;
}

.armado-etiquetas-modal-title span {
  font-size: 8px !important;
}

.armado-etiquetas-modal-title h3 {
  font-size: 14px !important;
}

.armado-etiquetas-modal-title p {
  font-size: 8.8px !important;
}

.armado-etiquetas-modal-close {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  padding: 0 !important;
}

.armado-etiquetas-modal-body {
  gap: 10px !important;
  padding: 10px !important;
}

.armado-etiquetas-modal-footer {
  min-height: 48px !important;
  padding: 10px 12px !important;
}

/* Scanner */
.armado-etiquetas-scanner-box {
  gap: 9px !important;
  padding: 10px !important;
}

.armado-etiquetas-scanner-box__head span {
  font-size: 7.8px !important;
}

.armado-etiquetas-scanner-box__head strong {
  font-size: 12px !important;
}

.armado-etiquetas-scanner-box__head small {
  font-size: 8.8px !important;
}

.armado-etiquetas-scanner-form {
  gap: 7px !important;
}

.armado-etiquetas-scanner-form label {
  height: 38px !important;
  padding: 0 10px !important;
}

.armado-etiquetas-scanner-form input {
  font-size: 13px !important;
}

.armado-etiquetas-scanner-form input::placeholder {
  font-size: 10px !important;
}

.armado-etiquetas-scanner-form .armado-etiquetas-btn {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  font-size: 9px !important;
}

.armado-etiquetas-last-scan {
  min-height: 32px !important;
  padding: 8px 9px !important;
}

.armado-etiquetas-last-scan strong {
  font-size: 9px !important;
}

.armado-etiquetas-last-scan span {
  font-size: 8.6px !important;
}

/* Detalle modal */
.armado-etiquetas-pedido-detail-grid article {
  min-height: 54px !important;
  padding: 9px !important;
}

.armado-etiquetas-pedido-detail-grid span,
.armado-etiquetas-pedido-detail-text span {
  font-size: 7.8px !important;
}

.armado-etiquetas-pedido-detail-grid strong,
.armado-etiquetas-pedido-detail-text strong {
  font-size: 9.8px !important;
}

.armado-etiquetas-pedido-detail-text {
  padding: 10px !important;
}

.armado-etiquetas-pedido-detail-text p {
  font-size: 9px !important;
}

.armado-etiquetas-warning,
.armado-etiquetas-warning--detail {
  padding: 9px 10px !important;
  font-size: 8.8px !important;
}

/* Items panel */
.armado-etiquetas-items-panel > header,
.armado-etiquetas-scans-panel > header {
  min-height: 44px !important;
  padding: 9px 10px !important;
}

.armado-etiquetas-items-panel > header span,
.armado-etiquetas-scans-panel > header span {
  font-size: 7.8px !important;
}

.armado-etiquetas-items-panel > header strong,
.armado-etiquetas-scans-panel > header strong {
  font-size: 11px !important;
}

.armado-etiquetas-items-panel > header small {
  font-size: 8.4px !important;
}

.armado-etiquetas-item-row {
  min-height: 62px !important;
  padding: 9px 10px 14px !important;
}

.armado-etiquetas-item-row__main strong {
  font-size: 10.2px !important;
}

.armado-etiquetas-item-row__main span {
  font-size: 9px !important;
}

.armado-etiquetas-item-row__main small {
  font-size: 8px !important;
}

.armado-etiquetas-item-row__qty span {
  font-size: 7.8px !important;
}

.armado-etiquetas-item-row__qty strong {
  font-size: 10px !important;
}

/* Scans */
.armado-etiquetas-scan-row {
  min-height: 38px !important;
  padding: 7px 10px !important;
}

.armado-etiquetas-scan-row strong {
  font-size: 9px !important;
}

.armado-etiquetas-scan-row span {
  font-size: 8.4px !important;
}

.armado-etiquetas-scan-row small {
  font-size: 7.8px !important;
}

/* Toast */
.armado-etiquetas-toast {
  padding: 10px 12px !important;
  font-size: 10px !important;
}

/* Responsive */
@media (max-width: 1380px) {
  .armado-etiquetas-lote-line {
    grid-template-columns: 34px minmax(190px, 1fr) minmax(300px, 1fr) 96px 34px !important;
  }
}

@media (max-width: 1180px) {
  .armado-etiquetas-pedido-row {
    grid-template-columns: 1fr !important;
  }

  .armado-etiquetas-pedido-row__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .armado-etiquetas-brand h2 {
    font-size: 15px !important;
  }

  .armado-etiquetas-actions .armado-etiquetas-btn,
  .armado-etiquetas-search,
  .armado-etiquetas-filters select,
  .armado-etiquetas-filters .armado-etiquetas-btn {
    min-height: 32px !important;
    height: 32px !important;
  }

  .armado-etiquetas-lote-line {
    min-height: 46px !important;
    height: 46px !important;
    grid-template-columns: 34px minmax(0, 1fr) 84px 32px !important;
  }

  .armado-etiquetas-lote-line__icon,
  .armado-etiquetas-lote-line__chevron {
    height: 46px !important;
  }

  .armado-etiquetas-pedido-row__actions .armado-etiquetas-btn {
    min-height: 32px !important;
    height: 32px !important;
    font-size: 8.4px !important;
  }
}