/* =========================================================
   WIRTZ HUB · OPERACIONES · ESTACIÓN DE ARMADO
   CSS COMPLETO

   Layout operativo:
   - Pedidos a la izquierda
   - Pedido activo al centro
   - Scanner permanente a la derecha
   - Texto ligeramente más grande
   - Líneas finas
   - Sin glow
   - Sin gradientes
   - Modo claro y oscuro
   - Responsive
   ========================================================= */

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

:root {
  --ae-bg: #f5f6f8;
  --ae-surface: #ffffff;
  --ae-surface-soft: #f8f9fb;
  --ae-surface-muted: #f1f3f5;
  --ae-surface-hover: #f7f8fa;

  --ae-text: #111827;
  --ae-text-soft: #374151;
  --ae-muted: #6b7280;
  --ae-muted-strong: #4b5563;

  --ae-border: rgba(15, 23, 42, 0.11);
  --ae-border-soft: rgba(15, 23, 42, 0.07);
  --ae-border-strong: rgba(15, 23, 42, 0.2);

  --ae-primary: #111827;
  --ae-primary-hover: #030712;
  --ae-primary-text: #ffffff;

  --ae-success: #15803d;
  --ae-success-soft: rgba(21, 128, 61, 0.08);
  --ae-success-border: rgba(21, 128, 61, 0.22);

  --ae-warning: #b45309;
  --ae-warning-soft: rgba(180, 83, 9, 0.08);
  --ae-warning-border: rgba(180, 83, 9, 0.22);

  --ae-danger: #b91c1c;
  --ae-danger-soft: rgba(185, 28, 28, 0.08);
  --ae-danger-border: rgba(185, 28, 28, 0.22);

  --ae-info: #0369a1;
  --ae-info-soft: rgba(3, 105, 161, 0.08);
  --ae-info-border: rgba(3, 105, 161, 0.22);

  --ae-radius-sm: 8px;
  --ae-radius-md: 10px;
  --ae-radius-lg: 12px;
  --ae-radius-xl: 14px;

  --ae-shadow:
    0 1px 2px rgba(15, 23, 42, 0.025);

  --ae-transition: 160ms ease;

  --ae-font:
    "ATF Franklin Gothic",
    "Franklin Gothic Medium",
    "Arial Narrow",
    Arial,
    sans-serif;
}

html[data-theme="dark"] {
  --ae-bg: #050505;
  --ae-surface: #0a0a0a;
  --ae-surface-soft: #0f0f0f;
  --ae-surface-muted: #151515;
  --ae-surface-hover: #121212;

  --ae-text: #f8fafc;
  --ae-text-soft: rgba(255, 255, 255, 0.78);
  --ae-muted: rgba(255, 255, 255, 0.48);
  --ae-muted-strong: rgba(255, 255, 255, 0.64);

  --ae-border: rgba(255, 255, 255, 0.11);
  --ae-border-soft: rgba(255, 255, 255, 0.07);
  --ae-border-strong: rgba(255, 255, 255, 0.22);

  --ae-primary: rgba(255, 255, 255, 0.92);
  --ae-primary-hover: #ffffff;
  --ae-primary-text: #090909;

  --ae-success: #86efac;
  --ae-success-soft: rgba(134, 239, 172, 0.08);
  --ae-success-border: rgba(134, 239, 172, 0.22);

  --ae-warning: #fdba74;
  --ae-warning-soft: rgba(253, 186, 116, 0.08);
  --ae-warning-border: rgba(253, 186, 116, 0.22);

  --ae-danger: #fca5a5;
  --ae-danger-soft: rgba(252, 165, 165, 0.08);
  --ae-danger-border: rgba(252, 165, 165, 0.22);

  --ae-info: #7dd3fc;
  --ae-info-soft: rgba(125, 211, 252, 0.08);
  --ae-info-border: rgba(125, 211, 252, 0.22);

  --ae-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28);
}

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

.armado-etiquetas-page {
  display: grid;
  grid-template-rows:
    auto
    auto
    auto
    minmax(0, 1fr);
  align-content: start;
  gap: 8px;

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

  min-height:
    calc(
      100vh -
      var(--topbar-height, 56px) -
      44px
    );

  color: var(--ae-text);
  font-family: var(--ae-font);

  overflow: hidden;

  animation:
    armadoEtiquetasPageIn
    180ms
    ease
    both;
}

.armado-etiquetas-page *,
.armado-etiquetas-page *::before,
.armado-etiquetas-page *::after,
.armado-etiquetas-toast,
.armado-etiquetas-toast::before,
.armado-etiquetas-toast::after {
  box-sizing: border-box;
  font-family: var(--ae-font) !important;
}

.armado-etiquetas-page button,
.armado-etiquetas-page input,
.armado-etiquetas-page select {
  font: inherit;
}

.armado-etiquetas-page svg {
  display: block;
  flex: 0 0 auto;
}

.armado-etiquetas-page .icon {
  display: block;

  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;

  margin: 0;

  color: currentColor;
  stroke: currentColor;
  stroke-width: 2.1;

  pointer-events: none;
}

/* =========================================================
   BLOQUES PRINCIPALES
   ========================================================= */

.armado-etiquetas-head,
.armado-etiquetas-controlbar,
.armado-etiquetas-metrics,
.armado-etiquetas-workspace {
  width: 100%;
  min-width: 0;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-xl);

  background: var(--ae-surface);

  box-shadow: var(--ae-shadow);

  overflow: hidden;
}

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

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

  min-height: 68px;

  padding:
    11px
    13px;
}

.armado-etiquetas-brand {
  display: flex;
  align-items: center;
  gap: 11px;

  min-width: 0;
}

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

  flex: 0 0 38px;

  width: 38px;
  height: 38px;

  border: 1px solid var(--ae-border);
  border-radius: 10px;

  background: var(--ae-surface-soft);

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

.armado-etiquetas-brand__icon .icon,
.armado-etiquetas-brand__icon svg {
  width: 18px;
  height: 18px;
}

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

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

  color: var(--ae-text);

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

.armado-etiquetas-brand p {
  max-width: 780px;

  margin: 5px 0 0;

  color: var(--ae-muted);

  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.armado-etiquetas-head__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;

  min-width: 0;

  flex-wrap: wrap;
}

.armado-etiquetas-header-status {
  display: flex;
  align-items: center;

  min-width: 0;
}

.armado-etiquetas-header-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  min-height: 32px;

  padding:
    0
    10px;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-sm);

  background: var(--ae-surface-soft);

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

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

  white-space: nowrap;
}

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

.armado-etiquetas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-height: 34px;

  padding:
    0
    11px;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-sm);

  background: var(--ae-surface);

  color: var(--ae-text);

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

  white-space: nowrap;
  text-decoration: none;

  cursor: pointer;
  outline: none;

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

.armado-etiquetas-btn:hover:not(:disabled) {
  border-color: var(--ae-border-strong);

  background: var(--ae-surface-muted);
}

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

.armado-etiquetas-btn:disabled {
  opacity: 0.42;

  cursor: not-allowed;

  transform: none;
}

.armado-etiquetas-btn--dark {
  border-color: var(--ae-primary);

  background: var(--ae-primary);

  color: var(--ae-primary-text);
}

.armado-etiquetas-btn--dark:hover:not(:disabled) {
  border-color: var(--ae-primary-hover);

  background: var(--ae-primary-hover);

  color: var(--ae-primary-text);
}

.armado-etiquetas-btn--danger {
  border-color: var(--ae-danger-border);

  background: var(--ae-danger-soft);

  color: var(--ae-danger);
}

.armado-etiquetas-btn--danger:hover:not(:disabled) {
  border-color: var(--ae-danger);

  background: var(--ae-danger-soft);

  color: var(--ae-danger);
}

/* =========================================================
   BARRA DE CONTROL
   ========================================================= */

.armado-etiquetas-controlbar {
  display: grid;
  grid-template-columns:
    minmax(220px, 0.75fr)
    minmax(420px, 1.6fr)
    auto;
  align-items: end;
  gap: 10px;

  padding:
    10px
    12px;
}

.armado-etiquetas-lote-control,
.armado-etiquetas-order-search {
  min-width: 0;
}

.armado-etiquetas-lote-control label,
.armado-etiquetas-order-search label {
  display: grid;
  gap: 6px;

  min-width: 0;
}

.armado-etiquetas-lote-control label > span,
.armado-etiquetas-order-search label > span {
  color: var(--ae-muted);

  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;

  text-transform: uppercase;
}

.armado-etiquetas-lote-control select {
  width: 100%;
  min-width: 0;
  height: 38px;

  padding:
    0
    34px
    0
    11px;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-sm);

  background: var(--ae-surface-soft);

  color: var(--ae-text);

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

  outline: none;
  cursor: pointer;

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

.armado-etiquetas-lote-control select:hover,
.armado-etiquetas-lote-control select:focus {
  border-color: var(--ae-border-strong);

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

.armado-etiquetas-order-search {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  align-items: end;
  gap: 7px;
}

.armado-etiquetas-order-search label > div {
  position: relative;

  display: grid;
  grid-template-columns:
    22px
    minmax(0, 1fr)
    30px;
  align-items: center;
  gap: 5px;

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

  padding:
    0
    7px
    0
    10px;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-sm);

  background: var(--ae-surface-soft);

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

.armado-etiquetas-order-search label > div:hover,
.armado-etiquetas-order-search label > div:focus-within {
  border-color: var(--ae-border-strong);

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

.armado-etiquetas-order-search label > div > .icon {
  color: var(--ae-muted);
}

.armado-etiquetas-order-search input {
  width: 100%;
  min-width: 0;
  height: 34px;

  border: 0;

  background: transparent;

  color: var(--ae-text);

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

  outline: none;
}

.armado-etiquetas-order-search input::placeholder {
  color: var(--ae-muted);

  opacity: 0.78;
}

.armado-etiquetas-order-search label button {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  padding: 0;

  border: 0;
  border-radius: 7px;

  background: transparent;

  color: var(--ae-muted);

  cursor: pointer;

  transition:
    background var(--ae-transition),
    color var(--ae-transition);
}

.armado-etiquetas-order-search label button:hover {
  background: var(--ae-surface-muted);

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

.armado-etiquetas-order-search
> .armado-etiquetas-btn {
  min-height: 38px;
  height: 38px;
}

.armado-etiquetas-shortcuts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;

  min-height: 38px;

  white-space: nowrap;
}

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

  min-height: 26px;

  padding:
    0
    8px;

  border: 1px solid var(--ae-border);
  border-radius: 7px;

  background: var(--ae-surface-soft);

  color: var(--ae-muted-strong);

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

/* =========================================================
   MÉTRICAS / FILTROS DE ESTADO
   ========================================================= */

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

.armado-etiquetas-metric {
  display: grid;
  grid-template-columns:
    34px
    minmax(0, 1fr);
  align-items: center;
  gap: 10px;

  min-width: 0;
  min-height: 60px;

  padding:
    9px
    12px;

  border: 0;
  border-right: 1px solid var(--ae-border-soft);

  background: var(--ae-surface);

  color: var(--ae-text);

  text-align: left;

  cursor: pointer;
  outline: none;

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

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

.armado-etiquetas-metric:hover {
  background: var(--ae-surface-hover);
}

.armado-etiquetas-metric.is-active {
  background: var(--ae-surface-muted);
}

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

  width: 34px;
  height: 34px;

  border: 1px solid var(--ae-border);
  border-radius: 9px;

  background: var(--ae-surface-soft);

  color: var(--ae-muted-strong);
}

.armado-etiquetas-metric.is-active
.armado-etiquetas-metric__icon {
  border-color: var(--ae-border-strong);

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

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

  min-width: 0;
}

.armado-etiquetas-metric__content small {
  color: var(--ae-muted);

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

  text-transform: uppercase;

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

.armado-etiquetas-metric__content strong {
  color: var(--ae-text);

  font-size: 21px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.05em;

  font-variant-numeric: tabular-nums;
}

.armado-etiquetas-metric:nth-child(1)
.armado-etiquetas-metric__content strong {
  color: var(--ae-warning);
}

.armado-etiquetas-metric:nth-child(2)
.armado-etiquetas-metric__content strong {
  color: var(--ae-info);
}

.armado-etiquetas-metric:nth-child(3)
.armado-etiquetas-metric__content strong {
  color: var(--ae-success);
}

.armado-etiquetas-metric:nth-child(4)
.armado-etiquetas-metric__content strong {
  color: var(--ae-danger);
}

/* =========================================================
   WORKSPACE
   ========================================================= */

.armado-etiquetas-workspace {
  display: grid;
  grid-template-columns:
    minmax(250px, 0.82fr)
    minmax(420px, 1.55fr)
    minmax(290px, 0.95fr);
  align-items: stretch;

  min-width: 0;
  min-height: 0;

  height:
    calc(
      100vh -
      var(--topbar-height, 56px) -
      244px
    );
}

.armado-etiquetas-orders-panel,
.armado-etiquetas-active-panel,
.armado-etiquetas-scan-panel {
  display: grid;
  grid-template-rows:
    auto
    minmax(0, 1fr);

  min-width: 0;
  min-height: 0;

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

.armado-etiquetas-orders-panel,
.armado-etiquetas-active-panel {
  border-right: 1px solid var(--ae-border);
}

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

  min-height: 50px;

  padding:
    9px
    11px;

  border-bottom: 1px solid var(--ae-border);

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

.armado-etiquetas-panel-head > div {
  display: grid;
  gap: 4px;

  min-width: 0;
}

.armado-etiquetas-panel-head span {
  color: var(--ae-muted);

  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.085em;
  line-height: 1;

  text-transform: uppercase;
}

.armado-etiquetas-panel-head strong {
  color: var(--ae-text);

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

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

.armado-etiquetas-panel-head small {
  color: var(--ae-muted-strong);

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

  white-space: nowrap;
}

/* =========================================================
   LISTA DE PEDIDOS
   ========================================================= */

.armado-etiquetas-orders-list {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;

  min-width: 0;
  min-height: 0;

  background: var(--ae-surface);

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

  scrollbar-width: thin;

  scrollbar-color:
    rgba(100, 116, 139, 0.3)
    transparent;
}

.armado-etiquetas-orders-list::-webkit-scrollbar,
.armado-etiquetas-active-content::-webkit-scrollbar,
.armado-etiquetas-scanner-content::-webkit-scrollbar,
.armado-etiquetas-history__list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.armado-etiquetas-orders-list::-webkit-scrollbar-track,
.armado-etiquetas-active-content::-webkit-scrollbar-track,
.armado-etiquetas-scanner-content::-webkit-scrollbar-track,
.armado-etiquetas-history__list::-webkit-scrollbar-track {
  background: transparent;
}

.armado-etiquetas-orders-list::-webkit-scrollbar-thumb,
.armado-etiquetas-active-content::-webkit-scrollbar-thumb,
.armado-etiquetas-scanner-content::-webkit-scrollbar-thumb,
.armado-etiquetas-history__list::-webkit-scrollbar-thumb {
  border:
    2px
    solid
    transparent;

  border-radius: 999px;

  background:
    rgba(
      100,
      116,
      139,
      0.3
    );

  background-clip: content-box;
}

.armado-etiquetas-order {
  position: relative;

  display: grid;
  grid-template-columns:
    34px
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 9px;

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

  padding:
    9px
    10px
    13px;

  border: 0;
  border-bottom: 1px solid var(--ae-border-soft);

  background: var(--ae-surface);

  color: var(--ae-text);

  text-align: left;

  cursor: pointer;
  outline: none;

  overflow: hidden;

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

.armado-etiquetas-order:hover {
  background: var(--ae-surface-hover);
}

.armado-etiquetas-order.is-active {
  background: var(--ae-surface-muted);
}

.armado-etiquetas-order::before {
  content: "";

  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;

  width: 3px;

  background: transparent;
}

.armado-etiquetas-order.is-active::before {
  background: var(--ae-primary);
}

.armado-etiquetas-order--pendiente::before {
  background: var(--ae-warning);
}

.armado-etiquetas-order--parcial::before {
  background: var(--ae-info);
}

.armado-etiquetas-order--preparado::before,
.armado-etiquetas-order--retirado::before {
  background: var(--ae-success);
}

.armado-etiquetas-order--faltante::before {
  background: var(--ae-danger);
}

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

  width: 32px;
  height: 32px;

  border: 1px solid var(--ae-border);
  border-radius: 9px;

  background: var(--ae-surface-soft);

  color: var(--ae-muted-strong);
}

.armado-etiquetas-order--pendiente
.armado-etiquetas-order__icon {
  border-color: var(--ae-warning-border);

  background: var(--ae-warning-soft);

  color: var(--ae-warning);
}

.armado-etiquetas-order--parcial
.armado-etiquetas-order__icon {
  border-color: var(--ae-info-border);

  background: var(--ae-info-soft);

  color: var(--ae-info);
}

.armado-etiquetas-order--preparado
.armado-etiquetas-order__icon,
.armado-etiquetas-order--retirado
.armado-etiquetas-order__icon {
  border-color: var(--ae-success-border);

  background: var(--ae-success-soft);

  color: var(--ae-success);
}

.armado-etiquetas-order--faltante
.armado-etiquetas-order__icon {
  border-color: var(--ae-danger-border);

  background: var(--ae-danger-soft);

  color: var(--ae-danger);
}

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

  min-width: 0;
}

.armado-etiquetas-order__content strong {
  color: var(--ae-text);

  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;

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

.armado-etiquetas-order__content > span {
  color: var(--ae-text-soft);

  font-size: 10px;
  font-weight: 820;
  line-height: 1.15;

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

.armado-etiquetas-order__content small {
  color: var(--ae-muted);

  font-size: 8.8px;
  font-weight: 780;
  line-height: 1.1;

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

.armado-etiquetas-order__progress {
  display: grid;
  justify-items: end;
  gap: 4px;

  min-width: 54px;
}

.armado-etiquetas-order__progress strong {
  color: var(--ae-text);

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

  white-space: nowrap;

  font-variant-numeric: tabular-nums;
}

.armado-etiquetas-order__progress small {
  color: var(--ae-muted);

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

  white-space: nowrap;
}

.armado-etiquetas-order__bar {
  position: absolute;
  right: 10px;
  bottom: 7px;
  left: 10px;

  height: 3px;

  border-radius: 999px;

  background: var(--ae-border-soft);

  overflow: hidden;
}

.armado-etiquetas-order__bar > span {
  display: block;

  height: 100%;

  border-radius: inherit;

  background: var(--ae-primary);

  transition:
    width
    180ms
    ease;
}

.armado-etiquetas-order--pendiente
.armado-etiquetas-order__bar > span {
  background: var(--ae-warning);
}

.armado-etiquetas-order--parcial
.armado-etiquetas-order__bar > span {
  background: var(--ae-info);
}

.armado-etiquetas-order--preparado
.armado-etiquetas-order__bar > span,
.armado-etiquetas-order--retirado
.armado-etiquetas-order__bar > span {
  background: var(--ae-success);
}

.armado-etiquetas-order--faltante
.armado-etiquetas-order__bar > span {
  background: var(--ae-danger);
}

/* =========================================================
   CONTENIDO CENTRAL
   ========================================================= */

.armado-etiquetas-active-content {
  min-width: 0;
  min-height: 0;

  background: var(--ae-bg);

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

  scrollbar-width: thin;
}

.armado-etiquetas-active-order {
  display: grid;
  align-content: start;
  gap: 9px;

  min-width: 0;

  padding: 10px;
}

.armado-etiquetas-active-order__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  min-width: 0;

  padding:
    11px
    12px;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);

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

.armado-etiquetas-active-order__identity {
  min-width: 0;
}

.armado-etiquetas-active-order__identity > span {
  display: block;

  color: var(--ae-muted);

  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.085em;
  line-height: 1;

  text-transform: uppercase;
}

.armado-etiquetas-active-order__identity h3 {
  margin: 5px 0 0;

  color: var(--ae-text);

  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.035em;

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

.armado-etiquetas-active-order__identity p {
  margin: 5px 0 0;

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

  font-size: 11px;
  font-weight: 820;
  line-height: 1.2;

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

/* =========================================================
   RESUMEN DEL PEDIDO
   ========================================================= */

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

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);

  background: var(--ae-surface);

  overflow: hidden;
}

.armado-etiquetas-active-order__summary article {
  display: grid;
  align-content: center;
  gap: 5px;

  min-width: 0;
  min-height: 62px;

  padding:
    9px
    10px;

  border-right: 1px solid var(--ae-border-soft);
}

.armado-etiquetas-active-order__summary article:last-child {
  border-right: 0;
}

.armado-etiquetas-active-order__summary span {
  color: var(--ae-muted);

  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.075em;
  line-height: 1;

  text-transform: uppercase;
}

.armado-etiquetas-active-order__summary strong {
  color: var(--ae-text);

  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.2;

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

/* =========================================================
   PROGRESO DEL PEDIDO
   ========================================================= */

.armado-etiquetas-active-order__progress {
  display: grid;
  gap: 8px;

  padding:
    10px
    11px;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);

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

.armado-etiquetas-active-order__progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.armado-etiquetas-active-order__progress span {
  color: var(--ae-muted-strong);

  font-size: 10px;
  font-weight: 850;
}

.armado-etiquetas-active-order__progress strong {
  color: var(--ae-text);

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

  font-variant-numeric: tabular-nums;
}

.armado-etiquetas-progress-bar {
  width: 100%;
  height: 7px;

  border-radius: 999px;

  background: var(--ae-border-soft);

  overflow: hidden;
}

.armado-etiquetas-progress-bar span {
  display: block;

  height: 100%;

  border-radius: inherit;

  background: var(--ae-primary);

  transition:
    width
    180ms
    ease;
}

/* =========================================================
   PRODUCTOS DEL PEDIDO
   ========================================================= */

.armado-etiquetas-products {
  display: grid;

  min-width: 0;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);

  background: var(--ae-surface);

  overflow: hidden;
}

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

  min-height: 50px;

  padding:
    9px
    11px;

  border-bottom: 1px solid var(--ae-border);

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

.armado-etiquetas-products__head > div {
  display: grid;
  gap: 4px;

  min-width: 0;
}

.armado-etiquetas-products__head span {
  color: var(--ae-muted);

  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;

  text-transform: uppercase;
}

.armado-etiquetas-products__head strong {
  color: var(--ae-text);

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

.armado-etiquetas-products__head small {
  color: var(--ae-muted-strong);

  font-size: 9px;
  font-weight: 850;
}

.armado-etiquetas-products__list {
  display: grid;
  align-content: start;

  min-width: 0;
}

.armado-etiquetas-product {
  position: relative;

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

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

  padding:
    10px
    11px
    15px;

  border-bottom: 1px solid var(--ae-border-soft);

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

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

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

  width: 32px;
  height: 32px;

  border: 1px solid var(--ae-border);
  border-radius: 9px;

  background: var(--ae-surface-soft);

  color: var(--ae-muted-strong);
}

.armado-etiquetas-product--completo
.armado-etiquetas-product__state {
  border-color: var(--ae-success-border);

  background: var(--ae-success-soft);

  color: var(--ae-success);
}

.armado-etiquetas-product--parcial
.armado-etiquetas-product__state {
  border-color: var(--ae-info-border);

  background: var(--ae-info-soft);

  color: var(--ae-info);
}

.armado-etiquetas-product--faltante
.armado-etiquetas-product__state {
  border-color: var(--ae-danger-border);

  background: var(--ae-danger-soft);

  color: var(--ae-danger);
}

.armado-etiquetas-product--sobrante
.armado-etiquetas-product__state {
  border-color: var(--ae-warning-border);

  background: var(--ae-warning-soft);

  color: var(--ae-warning);
}

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

  min-width: 0;
}

.armado-etiquetas-product__main strong {
  color: var(--ae-text);

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

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

.armado-etiquetas-product__main > span {
  color: var(--ae-text-soft);

  font-size: 10px;
  font-weight: 820;
  line-height: 1.15;

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

.armado-etiquetas-product__main small {
  color: var(--ae-muted);

  font-size: 8.8px;
  font-weight: 760;
  line-height: 1.1;

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

.armado-etiquetas-product__qty {
  display: grid;
  gap: 5px;

  justify-items: start;
}

.armado-etiquetas-product__qty span {
  color: var(--ae-muted);

  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.075em;
  line-height: 1;

  text-transform: uppercase;
}

.armado-etiquetas-product__qty strong {
  color: var(--ae-text);

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

  font-variant-numeric: tabular-nums;
}

.armado-etiquetas-product__bar {
  position: absolute;
  right: 11px;
  bottom: 7px;
  left: 11px;

  height: 4px;

  border-radius: 999px;

  background: var(--ae-border-soft);

  overflow: hidden;
}

.armado-etiquetas-product__bar span {
  display: block;

  height: 100%;

  border-radius: inherit;

  background: var(--ae-primary);

  transition:
    width
    180ms
    ease;
}

.armado-etiquetas-product--completo
.armado-etiquetas-product__bar span {
  background: var(--ae-success);
}

.armado-etiquetas-product--parcial
.armado-etiquetas-product__bar span {
  background: var(--ae-info);
}

.armado-etiquetas-product--faltante
.armado-etiquetas-product__bar span {
  background: var(--ae-danger);
}

.armado-etiquetas-product--sobrante
.armado-etiquetas-product__bar span {
  background: var(--ae-warning);
}

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

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

  max-width: 100%;
  min-height: 24px;

  padding:
    4px
    8px;

  border: 1px solid var(--ae-border);
  border-radius: 999px;

  background: var(--ae-surface-soft);

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

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

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

.armado-etiquetas-status--pendiente,
.armado-etiquetas-status--cargado {
  border-color: var(--ae-warning-border);

  background: var(--ae-warning-soft);

  color: var(--ae-warning);
}

.armado-etiquetas-status--parcial,
.armado-etiquetas-status--en-armado,
.armado-etiquetas-status--armado-parcial {
  border-color: var(--ae-info-border);

  background: var(--ae-info-soft);

  color: var(--ae-info);
}

.armado-etiquetas-status--preparado,
.armado-etiquetas-status--completo,
.armado-etiquetas-status--retirado,
.armado-etiquetas-status--armado-completo {
  border-color: var(--ae-success-border);

  background: var(--ae-success-soft);

  color: var(--ae-success);
}

.armado-etiquetas-status--faltante,
.armado-etiquetas-status--cancelado,
.armado-etiquetas-status--no-retirado {
  border-color: var(--ae-danger-border);

  background: var(--ae-danger-soft);

  color: var(--ae-danger);
}

.armado-etiquetas-status--sobrante {
  border-color: var(--ae-warning-border);

  background: var(--ae-warning-soft);

  color: var(--ae-warning);
}

/* =========================================================
   ADVERTENCIA CENTRAL
   ========================================================= */

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

  padding:
    10px
    11px;

  border: 1px solid var(--ae-danger-border);
  border-radius: var(--ae-radius-md);

  background: var(--ae-danger-soft);

  color: var(--ae-danger);

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

/* =========================================================
   FOOTER DEL PEDIDO
   ========================================================= */

.armado-etiquetas-active-order__footer {
  display: grid;
  grid-template-columns:
    auto
    auto
    minmax(150px, 1fr);
  align-items: center;
  gap: 7px;

  padding:
    10px;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);

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

.armado-etiquetas-active-order__footer
.armado-etiquetas-btn:last-child {
  justify-self: stretch;
}

/* =========================================================
   PANEL DEL SCANNER
   ========================================================= */

.armado-etiquetas-scanner-content {
  min-width: 0;
  min-height: 0;

  background: var(--ae-bg);

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

  scrollbar-width: thin;
}

.armado-etiquetas-scanner-panel {
  display: grid;
  align-content: start;
  gap: 9px;

  min-width: 0;

  padding: 10px;
}

.armado-etiquetas-scanner-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;

  min-width: 0;

  padding:
    10px
    11px;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);

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

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

  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  border: 1px solid var(--ae-border);
  border-radius: 9px;

  background: var(--ae-surface-soft);

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

.armado-etiquetas-scanner-panel__head > div {
  display: grid;
  gap: 4px;

  min-width: 0;
}

.armado-etiquetas-scanner-panel__head > div span {
  color: var(--ae-muted);

  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;

  text-transform: uppercase;
}

.armado-etiquetas-scanner-panel__head > div strong {
  color: var(--ae-text);

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

/* =========================================================
   PEDIDO SELECCIONADO EN SCANNER
   ========================================================= */

.armado-etiquetas-scanner-order {
  display: grid;
  gap: 5px;

  padding:
    10px
    11px;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);

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

.armado-etiquetas-scanner-order span {
  color: var(--ae-muted);

  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;

  text-transform: uppercase;
}

.armado-etiquetas-scanner-order strong {
  color: var(--ae-text);

  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;

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

.armado-etiquetas-scanner-order small {
  color: var(--ae-text-soft);

  font-size: 10px;
  font-weight: 820;
  line-height: 1.15;

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

.armado-etiquetas-scanner-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;

  min-height: 120px;

  padding: 18px;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);

  background: var(--ae-surface);

  color: var(--ae-muted);

  text-align: center;
}

.armado-etiquetas-scanner-empty .icon {
  width: 22px;
  height: 22px;
}

.armado-etiquetas-scanner-empty strong {
  color: var(--ae-text);

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

.armado-etiquetas-scanner-empty span {
  color: var(--ae-muted);

  font-size: 9.5px;
  font-weight: 760;
  line-height: 1.3;
}

/* =========================================================
   FORMULARIO DEL SCANNER
   ========================================================= */

.armado-etiquetas-scanner-form {
  display: grid;
  gap: 9px;

  min-width: 0;

  padding:
    11px;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);

  background: var(--ae-surface);

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

.armado-etiquetas-scanner-form--success {
  border-color: var(--ae-success-border);
}

.armado-etiquetas-scanner-form--error {
  border-color: var(--ae-danger-border);
}

.armado-etiquetas-scanner-form > label {
  display: grid;
  gap: 6px;
}

.armado-etiquetas-scanner-form > label > span,
.armado-etiquetas-scanner-quantity > span {
  color: var(--ae-muted);

  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;

  text-transform: uppercase;
}

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

  min-width: 0;
  height: 50px;

  padding:
    0
    12px;

  border: 1px solid var(--ae-border-strong);
  border-radius: var(--ae-radius-md);

  background: var(--ae-surface-soft);

  color: var(--ae-text);

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

.armado-etiquetas-scanner-form > label > div:focus-within {
  border-color: var(--ae-primary);

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

.armado-etiquetas-scanner-form > label > div .icon {
  width: 17px;
  height: 17px;

  color: var(--ae-muted);
}

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

  border: 0;

  background: transparent;

  color: var(--ae-text);

  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.035em;

  outline: none;
}

.armado-etiquetas-scanner-form input::placeholder {
  color: var(--ae-muted);

  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.armado-etiquetas-scanner-quantity {
  display: grid;
  gap: 6px;
}

.armado-etiquetas-scanner-quantity > div {
  display: grid;
  grid-template-columns:
    40px
    minmax(0, 1fr)
    40px;
  align-items: center;

  height: 40px;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-sm);

  background: var(--ae-surface-soft);

  overflow: hidden;
}

.armado-etiquetas-scanner-quantity button {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  padding: 0;

  border: 0;

  background: transparent;

  color: var(--ae-text);

  cursor: pointer;

  transition:
    background var(--ae-transition),
    opacity var(--ae-transition);
}

.armado-etiquetas-scanner-quantity button:first-child {
  border-right: 1px solid var(--ae-border);
}

.armado-etiquetas-scanner-quantity button:last-child {
  border-left: 1px solid var(--ae-border);
}

.armado-etiquetas-scanner-quantity button:hover:not(:disabled) {
  background: var(--ae-surface-muted);
}

.armado-etiquetas-scanner-quantity button:disabled {
  opacity: 0.4;

  cursor: not-allowed;
}

.armado-etiquetas-scanner-quantity strong {
  color: var(--ae-text);

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

  text-align: center;

  font-variant-numeric: tabular-nums;
}

.armado-etiquetas-scanner-submit {
  width: 100%;
  min-height: 42px;
  height: 42px;

  font-size: 10.5px;
}

/* =========================================================
   ÚLTIMA LECTURA
   ========================================================= */

.armado-etiquetas-last-read {
  display: grid;
  grid-template-columns:
    36px
    minmax(0, 1fr);
  align-items: center;
  gap: 10px;

  min-width: 0;

  padding:
    10px
    11px;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);

  background: var(--ae-surface);

  color: var(--ae-text-soft);
}

.armado-etiquetas-last-read--success {
  border-color: var(--ae-success-border);

  background: var(--ae-success-soft);

  color: var(--ae-success);
}

.armado-etiquetas-last-read--error {
  border-color: var(--ae-danger-border);

  background: var(--ae-danger-soft);

  color: var(--ae-danger);
}

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

  width: 34px;
  height: 34px;

  border: 1px solid currentColor;
  border-radius: 9px;

  color: inherit;

  opacity: 0.85;
}

.armado-etiquetas-last-read > div {
  display: grid;
  gap: 4px;

  min-width: 0;
}

.armado-etiquetas-last-read > div > span {
  color: inherit;

  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;

  text-transform: uppercase;

  opacity: 0.75;
}

.armado-etiquetas-last-read strong {
  color: inherit;

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

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

.armado-etiquetas-last-read small {
  color: inherit;

  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.3;
}

/* =========================================================
   HISTORIAL
   ========================================================= */

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

  min-width: 0;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-lg);

  background: var(--ae-surface);

  overflow: hidden;
}

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

  min-height: 46px;

  padding:
    8px
    10px;

  border-bottom: 1px solid var(--ae-border);

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

.armado-etiquetas-history > header > div {
  display: grid;
  gap: 4px;

  min-width: 0;
}

.armado-etiquetas-history > header span {
  color: var(--ae-muted);

  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;

  text-transform: uppercase;
}

.armado-etiquetas-history > header strong {
  color: var(--ae-text);

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

.armado-etiquetas-history > header small {
  display: grid;
  place-items: center;

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

  padding:
    0
    6px;

  border: 1px solid var(--ae-border);
  border-radius: 999px;

  background: var(--ae-surface);

  color: var(--ae-text);

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

.armado-etiquetas-history__list {
  display: grid;
  align-content: start;

  max-height: 260px;

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

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

  min-width: 0;
  min-height: 48px;

  padding:
    8px
    9px;

  border-bottom: 1px solid var(--ae-border-soft);

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

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

.armado-etiquetas-history-row > span {
  display: grid;
  place-items: center;

  width: 22px;
  height: 22px;

  border: 1px solid var(--ae-border);
  border-radius: 7px;

  background: var(--ae-surface-soft);

  color: var(--ae-muted-strong);
}

.armado-etiquetas-history-row--ok > span {
  border-color: var(--ae-success-border);

  background: var(--ae-success-soft);

  color: var(--ae-success);
}

.armado-etiquetas-history-row--sobrante > span {
  border-color: var(--ae-warning-border);

  background: var(--ae-warning-soft);

  color: var(--ae-warning);
}

.armado-etiquetas-history-row--sku-no-esperado > span,
.armado-etiquetas-history-row--error > span {
  border-color: var(--ae-danger-border);

  background: var(--ae-danger-soft);

  color: var(--ae-danger);
}

.armado-etiquetas-history-row > div {
  display: grid;
  gap: 4px;

  min-width: 0;
}

.armado-etiquetas-history-row strong {
  color: var(--ae-text);

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

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

.armado-etiquetas-history-row small {
  color: var(--ae-muted);

  font-size: 8.5px;
  font-weight: 760;
  line-height: 1.2;

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

.armado-etiquetas-history-row time {
  color: var(--ae-muted);

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

  white-space: nowrap;
}

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

  min-height: 86px;

  padding: 16px;

  color: var(--ae-muted);

  font-size: 9.5px;
  font-weight: 760;

  text-align: center;
}

/* =========================================================
   ESTADOS VACÍOS
   ========================================================= */

.armado-etiquetas-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;

  min-height: 150px;

  padding: 22px;

  color: var(--ae-muted);

  text-align: center;
}

.armado-etiquetas-empty--large {
  min-height: 320px;
}

.armado-etiquetas-empty .icon {
  width: 23px;
  height: 23px;

  color: var(--ae-muted);
}

.armado-etiquetas-empty strong {
  color: var(--ae-text);

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

.armado-etiquetas-empty span {
  max-width: 380px;

  color: var(--ae-muted);

  font-size: 9.5px;
  font-weight: 760;
  line-height: 1.4;
}

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

.armado-etiquetas-toast {
  position: fixed;
  right: 16px;
  bottom: 36px;
  z-index: 100100;

  width:
    min(
      390px,
      calc(100vw - 32px)
    );

  padding:
    11px
    13px;

  border: 1px solid var(--ae-border);
  border-radius: var(--ae-radius-md);

  background: var(--ae-surface);

  color: var(--ae-text);

  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.35;

  box-shadow:
    0 12px 34px
    rgba(15, 23, 42, 0.14);

  opacity: 0;
  pointer-events: none;

  transform: translateY(8px);

  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

html[data-theme="dark"]
.armado-etiquetas-toast {
  box-shadow:
    0 16px 42px
    rgba(0, 0, 0, 0.48);
}

.armado-etiquetas-toast.is-visible {
  opacity: 1;

  transform: translateY(0);
}

.armado-etiquetas-toast--error {
  border-color: var(--ae-danger-border);

  color: var(--ae-danger);
}

.armado-etiquetas-toast--success {
  border-color: var(--ae-success-border);

  color: var(--ae-success);
}

.armado-etiquetas-toast--info {
  border-color: var(--ae-info-border);

  color: var(--ae-info);
}

/* =========================================================
   RESPONSIVE · 1500
   ========================================================= */

@media (max-width: 1500px) {
  .armado-etiquetas-workspace {
    grid-template-columns:
      minmax(230px, 0.78fr)
      minmax(390px, 1.42fr)
      minmax(270px, 0.9fr);
  }

  .armado-etiquetas-product {
    grid-template-columns:
      32px
      minmax(0, 1fr)
      84px
      84px;
  }
}

/* =========================================================
   RESPONSIVE · 1280
   ========================================================= */

@media (max-width: 1280px) {
  .armado-etiquetas-controlbar {
    grid-template-columns:
      minmax(220px, 0.7fr)
      minmax(360px, 1.4fr);
  }

  .armado-etiquetas-shortcuts {
    display: none;
  }

  .armado-etiquetas-workspace {
    grid-template-columns:
      minmax(230px, 0.75fr)
      minmax(380px, 1.35fr)
      minmax(250px, 0.85fr);
  }

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

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

  .armado-etiquetas-active-order__summary article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ae-border-soft);
  }

  .armado-etiquetas-product {
    grid-template-columns:
      32px
      minmax(0, 1fr)
      82px;
  }

  .armado-etiquetas-product
  > .armado-etiquetas-status {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

/* =========================================================
   RESPONSIVE · 1080
   ========================================================= */

@media (max-width: 1080px) {
  .armado-etiquetas-page {
    overflow: visible;
  }

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

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

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

  .armado-etiquetas-order-search {
    grid-template-columns:
      minmax(0, 1fr)
      auto;
  }

  .armado-etiquetas-workspace {
    grid-template-columns:
      minmax(240px, 0.82fr)
      minmax(0, 1.5fr);
    grid-template-rows:
      minmax(540px, auto)
      auto;

    height: auto;
  }

  .armado-etiquetas-orders-panel {
    border-right: 1px solid var(--ae-border);
  }

  .armado-etiquetas-active-panel {
    border-right: 0;
  }

  .armado-etiquetas-scan-panel {
    grid-column: 1 / -1;

    border-top: 1px solid var(--ae-border);
  }

  .armado-etiquetas-scanner-panel {
    grid-template-columns:
      minmax(270px, 0.9fr)
      minmax(320px, 1.1fr);
    align-items: start;
  }

  .armado-etiquetas-scanner-panel__head,
  .armado-etiquetas-scanner-order,
  .armado-etiquetas-scanner-empty {
    grid-column: 1;
  }

  .armado-etiquetas-scanner-form {
    grid-column: 1;
  }

  .armado-etiquetas-last-read,
  .armado-etiquetas-history {
    grid-column: 2;
  }

  .armado-etiquetas-history {
    grid-row:
      1 /
      span 4;
  }

  .armado-etiquetas-history__list {
    max-height: 390px;
  }
}

/* =========================================================
   RESPONSIVE · 820
   ========================================================= */

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

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

  .armado-etiquetas-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ae-border-soft);
  }

  .armado-etiquetas-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto;

    height: auto;
  }

  .armado-etiquetas-orders-panel,
  .armado-etiquetas-active-panel {
    border-right: 0;
    border-bottom: 1px solid var(--ae-border);
  }

  .armado-etiquetas-orders-list {
    max-height: 380px;
  }

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

  .armado-etiquetas-scanner-panel__head,
  .armado-etiquetas-scanner-order,
  .armado-etiquetas-scanner-empty,
  .armado-etiquetas-scanner-form,
  .armado-etiquetas-last-read,
  .armado-etiquetas-history {
    grid-column: auto;
    grid-row: auto;
  }

  .armado-etiquetas-history__list {
    max-height: 260px;
  }
}

/* =========================================================
   RESPONSIVE · 680
   ========================================================= */

@media (max-width: 680px) {
  .armado-etiquetas-page {
    gap: 7px;
  }

  .armado-etiquetas-head,
  .armado-etiquetas-controlbar,
  .armado-etiquetas-metrics,
  .armado-etiquetas-workspace {
    border-radius: 12px;
  }

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

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

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

  .armado-etiquetas-head__right {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;

    width: 100%;
  }

  .armado-etiquetas-header-state,
  .armado-etiquetas-head__right
  .armado-etiquetas-btn {
    width: 100%;
  }

  .armado-etiquetas-controlbar {
    padding:
      9px;
  }

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

  .armado-etiquetas-order-search
  > .armado-etiquetas-btn {
    width: 100%;
  }

  .armado-etiquetas-active-order__head {
    align-items: flex-start;

    flex-direction: column;
  }

  .armado-etiquetas-active-order__identity h3 {
    white-space: normal;
  }

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

  .armado-etiquetas-active-order__summary article {
    grid-template-columns:
      90px
      minmax(0, 1fr);
    align-items: center;

    min-height: 44px;

    border-right: 0;
    border-bottom: 1px solid var(--ae-border-soft);
  }

  .armado-etiquetas-active-order__summary article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ae-border-soft);
  }

  .armado-etiquetas-active-order__summary article:last-child {
    border-bottom: 0;
  }

  .armado-etiquetas-active-order__summary strong {
    text-align: right;
  }

  .armado-etiquetas-product {
    grid-template-columns:
      32px
      minmax(0, 1fr);
  }

  .armado-etiquetas-product__qty {
    grid-column: 2;

    grid-template-columns:
      auto
      auto;
    align-items: center;
    gap: 8px;
  }

  .armado-etiquetas-product
  > .armado-etiquetas-status {
    grid-column: 2;

    justify-self: start;
  }

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

  .armado-etiquetas-active-order__footer
  .armado-etiquetas-btn {
    width: 100%;
  }

  .armado-etiquetas-toast {
    right: 10px;
    bottom: 28px;
    left: 10px;

    width: auto;

    text-align: center;
  }
}

/* =========================================================
   RESPONSIVE · 460
   ========================================================= */

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

  .armado-etiquetas-metric {
    border-right: 0;
    border-bottom: 1px solid var(--ae-border-soft);
  }

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

  .armado-etiquetas-order {
    grid-template-columns:
      32px
      minmax(0, 1fr);
  }

  .armado-etiquetas-order__progress {
    grid-column: 2;

    justify-items: start;
  }

  .armado-etiquetas-scanner-quantity > div {
    grid-template-columns:
      46px
      minmax(0, 1fr)
      46px;
  }

  .armado-etiquetas-scanner-quantity button {
    width: 46px;
  }

  .armado-etiquetas-history-row {
    grid-template-columns:
      24px
      minmax(0, 1fr);
  }

  .armado-etiquetas-history-row time {
    grid-column: 2;
  }
}

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

.is-spinning {
  animation:
    armadoEtiquetasSpin
    800ms
    linear
    infinite;
}

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

@keyframes armadoEtiquetasPageIn {
  from {
    opacity: 0;

    transform:
      translateY(4px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .armado-etiquetas-page,
  .armado-etiquetas-page *,
  .armado-etiquetas-page *::before,
  .armado-etiquetas-page *::after,
  .armado-etiquetas-toast {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   IMPRESIÓN
   ========================================================= */

@media print {
  .armado-etiquetas-head__right,
  .armado-etiquetas-controlbar,
  .armado-etiquetas-scanner-form,
  .armado-etiquetas-active-order__footer,
  .armado-etiquetas-toast {
    display: none !important;
  }

  .armado-etiquetas-page {
    overflow: visible;
  }

  .armado-etiquetas-head,
  .armado-etiquetas-metrics,
  .armado-etiquetas-workspace {
    border-color: #cccccc;

    box-shadow: none;
  }

  .armado-etiquetas-workspace {
    display: block;

    height: auto;
  }

  .armado-etiquetas-orders-list,
  .armado-etiquetas-active-content,
  .armado-etiquetas-scanner-content,
  .armado-etiquetas-history__list {
    max-height: none;

    overflow: visible;
  }
}/* =========================================================
   ARMADO DE ETIQUETAS · MISMA ESCALA VISUAL DEL SISTEMA
   Agregar al FINAL de armado-etiquetas.css
   ========================================================= */

/* =========================================================
   ESCALA GENERAL
   ========================================================= */

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

/* =========================================================
   ENCABEZADO
   ========================================================= */

.armado-etiquetas-head {
  min-height: 92px !important;

  padding:
    15px
    17px !important;

  gap: 16px !important;
}

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

.armado-etiquetas-brand__icon {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;

  border-radius: 11px !important;
}

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

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

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

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

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

/* =========================================================
   BOTONES Y ESTADO
   ========================================================= */

.armado-etiquetas-btn,
.armado-etiquetas-header-state {
  min-height: 36px !important;

  padding:
    0
    12px !important;

  gap: 7px !important;

  border-radius: 9px !important;

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

.armado-etiquetas-btn .icon,
.armado-etiquetas-header-state .icon {
  width: 15px !important;
  height: 15px !important;

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

/* =========================================================
   BARRA DE CONTROL
   ========================================================= */

.armado-etiquetas-controlbar {
  grid-template-columns:
    minmax(250px, 0.8fr)
    minmax(460px, 1.7fr)
    auto !important;

  gap: 12px !important;

  padding:
    12px !important;
}

.armado-etiquetas-lote-control label,
.armado-etiquetas-order-search label {
  gap: 7px !important;
}

.armado-etiquetas-lote-control label > span,
.armado-etiquetas-order-search label > span {
  font-size: 9px !important;
  font-weight: 900 !important;
}

.armado-etiquetas-lote-control select,
.armado-etiquetas-order-search label > div {
  height: 40px !important;
  min-height: 40px !important;

  border-radius: 9px !important;
}

.armado-etiquetas-lote-control select {
  padding:
    0
    36px
    0
    11px !important;

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

.armado-etiquetas-order-search input {
  height: 36px !important;

  font-size: 11.5px !important;
}

.armado-etiquetas-order-search
> .armado-etiquetas-btn {
  height: 40px !important;
  min-height: 40px !important;
}

.armado-etiquetas-shortcuts {
  min-height: 40px !important;
}

.armado-etiquetas-shortcuts span {
  min-height: 28px !important;

  padding:
    0
    9px !important;

  font-size: 9px !important;
}

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

.armado-etiquetas-metric {
  grid-template-columns:
    38px
    minmax(0, 1fr) !important;

  min-height: 72px !important;

  padding:
    11px
    13px !important;

  gap: 11px !important;
}

.armado-etiquetas-metric__icon {
  width: 38px !important;
  height: 38px !important;

  border-radius: 10px !important;
}

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

.armado-etiquetas-metric__content small {
  font-size: 9px !important;
  font-weight: 900 !important;
}

.armado-etiquetas-metric__content strong {
  font-size: 22px !important;
}

/* =========================================================
   WORKSPACE
   ========================================================= */

.armado-etiquetas-workspace {
  grid-template-columns:
    minmax(280px, 0.9fr)
    minmax(500px, 1.6fr)
    minmax(330px, 1fr) !important;

  height:
    calc(
      100vh -
      var(--topbar-height, 56px) -
      286px
    ) !important;
}

/* =========================================================
   CABECERAS INTERNAS
   ========================================================= */

.armado-etiquetas-panel-head {
  min-height: 60px !important;

  padding:
    10px
    12px !important;
}

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

.armado-etiquetas-panel-head strong {
  font-size: 14px !important;
}

.armado-etiquetas-panel-head small {
  font-size: 9.5px !important;
}

/* =========================================================
   LISTA DE PEDIDOS
   ========================================================= */

.armado-etiquetas-order {
  grid-template-columns:
    38px
    minmax(0, 1fr)
    auto !important;

  min-height: 84px !important;

  padding:
    10px
    11px
    14px !important;

  gap: 10px !important;
}

.armado-etiquetas-order__icon {
  width: 36px !important;
  height: 36px !important;

  border-radius: 10px !important;
}

.armado-etiquetas-order__content {
  gap: 5px !important;
}

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

.armado-etiquetas-order__content > span {
  font-size: 10.5px !important;
}

.armado-etiquetas-order__content small {
  font-size: 9px !important;
}

.armado-etiquetas-order__progress {
  min-width: 60px !important;
}

.armado-etiquetas-order__progress strong {
  font-size: 11.5px !important;
}

.armado-etiquetas-order__progress small {
  font-size: 8.5px !important;
}

/* =========================================================
   PEDIDO ACTIVO
   ========================================================= */

.armado-etiquetas-active-order {
  gap: 11px !important;

  padding:
    12px !important;
}

.armado-etiquetas-active-order__head {
  min-height: 82px !important;

  padding:
    13px
    14px !important;
}

.armado-etiquetas-active-order__identity > span {
  font-size: 9px !important;
}

.armado-etiquetas-active-order__identity h3 {
  font-size: 20px !important;
}

.armado-etiquetas-active-order__identity p {
  font-size: 11.5px !important;
}

.armado-etiquetas-status {
  min-height: 25px !important;

  padding:
    4px
    9px !important;

  font-size: 9px !important;
}

/* =========================================================
   RESUMEN DEL PEDIDO
   ========================================================= */

.armado-etiquetas-active-order__summary article {
  min-height: 70px !important;

  padding:
    10px
    11px !important;
}

.armado-etiquetas-active-order__summary span {
  font-size: 8.8px !important;
}

.armado-etiquetas-active-order__summary strong {
  font-size: 11.2px !important;
}

/* =========================================================
   PROGRESO
   ========================================================= */

.armado-etiquetas-active-order__progress {
  gap: 10px !important;

  padding:
    12px
    13px !important;
}

.armado-etiquetas-active-order__progress span {
  font-size: 10.5px !important;
}

.armado-etiquetas-active-order__progress strong {
  font-size: 13px !important;
}

/* =========================================================
   PRODUCTOS
   ========================================================= */

.armado-etiquetas-products__head {
  min-height: 60px !important;

  padding:
    10px
    12px !important;
}

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

.armado-etiquetas-products__head strong {
  font-size: 14px !important;
}

.armado-etiquetas-products__head small {
  font-size: 9.5px !important;
}

.armado-etiquetas-product {
  grid-template-columns:
    38px
    minmax(0, 1fr)
    100px
    100px !important;

  min-height: 86px !important;

  padding:
    11px
    12px
    16px !important;

  gap: 11px !important;
}

.armado-etiquetas-product__state {
  width: 36px !important;
  height: 36px !important;

  border-radius: 10px !important;
}

.armado-etiquetas-product__main strong {
  font-size: 12.5px !important;
}

.armado-etiquetas-product__main > span {
  font-size: 10.5px !important;
}

.armado-etiquetas-product__main small {
  font-size: 9px !important;
}

.armado-etiquetas-product__qty span {
  font-size: 8.5px !important;
}

.armado-etiquetas-product__qty strong {
  font-size: 11.5px !important;
}

/* =========================================================
   FOOTER DEL PEDIDO
   ========================================================= */

.armado-etiquetas-active-order__footer {
  grid-template-columns:
    auto
    auto
    minmax(190px, 1fr) !important;

  gap: 8px !important;

  padding:
    12px !important;
}

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

.armado-etiquetas-scanner-panel {
  gap: 11px !important;

  padding:
    12px !important;
}

.armado-etiquetas-scanner-panel__head {
  min-height: 64px !important;

  padding:
    11px
    12px !important;
}

.armado-etiquetas-scanner-panel__icon {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
}

.armado-etiquetas-scanner-panel__head > div span {
  font-size: 9px !important;
}

.armado-etiquetas-scanner-panel__head > div strong {
  font-size: 14px !important;
}

.armado-etiquetas-scanner-order {
  padding:
    12px
    13px !important;
}

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

.armado-etiquetas-scanner-order strong {
  font-size: 14px !important;
}

.armado-etiquetas-scanner-order small {
  font-size: 10.5px !important;
}

/* =========================================================
   FORMULARIO DEL SCANNER
   ========================================================= */

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

  padding:
    13px !important;
}

.armado-etiquetas-scanner-form > label > span,
.armado-etiquetas-scanner-quantity > span {
  font-size: 9px !important;
}

.armado-etiquetas-scanner-form > label > div {
  grid-template-columns:
    26px
    minmax(0, 1fr) !important;

  height: 56px !important;

  padding:
    0
    13px !important;
}

.armado-etiquetas-scanner-form > label > div .icon {
  width: 18px !important;
  height: 18px !important;
}

.armado-etiquetas-scanner-form input {
  height: 52px !important;

  font-size: 17px !important;
}

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

.armado-etiquetas-scanner-quantity > div {
  height: 44px !important;

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

.armado-etiquetas-scanner-quantity button {
  width: 44px !important;
  height: 44px !important;
}

.armado-etiquetas-scanner-quantity strong {
  font-size: 15px !important;
}

.armado-etiquetas-scanner-submit {
  min-height: 44px !important;
  height: 44px !important;

  font-size: 11px !important;
}

/* =========================================================
   ÚLTIMA LECTURA
   ========================================================= */

.armado-etiquetas-last-read {
  grid-template-columns:
    40px
    minmax(0, 1fr) !important;

  padding:
    11px
    12px !important;
}

.armado-etiquetas-last-read__icon {
  width: 38px !important;
  height: 38px !important;
}

.armado-etiquetas-last-read > div > span {
  font-size: 9px !important;
}

.armado-etiquetas-last-read strong {
  font-size: 12px !important;
}

.armado-etiquetas-last-read small {
  font-size: 10px !important;
}

/* =========================================================
   HISTORIAL
   ========================================================= */

.armado-etiquetas-history > header {
  min-height: 54px !important;

  padding:
    9px
    11px !important;
}

.armado-etiquetas-history > header span {
  font-size: 9px !important;
}

.armado-etiquetas-history > header strong {
  font-size: 12px !important;
}

.armado-etiquetas-history-row {
  grid-template-columns:
    28px
    minmax(0, 1fr)
    auto !important;

  min-height: 54px !important;

  padding:
    9px
    10px !important;
}

.armado-etiquetas-history-row > span {
  width: 26px !important;
  height: 26px !important;
}

.armado-etiquetas-history-row strong {
  font-size: 10.8px !important;
}

.armado-etiquetas-history-row small,
.armado-etiquetas-history-row time {
  font-size: 9px !important;
}

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

@media (max-width: 1280px) {
  .armado-etiquetas-controlbar {
    grid-template-columns:
      minmax(240px, 0.8fr)
      minmax(380px, 1.4fr) !important;
  }

  .armado-etiquetas-workspace {
    grid-template-columns:
      minmax(250px, 0.8fr)
      minmax(420px, 1.4fr)
      minmax(280px, 0.9fr) !important;
  }
}

@media (max-width: 1080px) {
  .armado-etiquetas-workspace {
    height: auto !important;
  }
}

@media (max-width: 680px) {
  .armado-etiquetas-page {
    gap: 10px !important;
  }

  .armado-etiquetas-head {
    min-height: 0 !important;

    padding:
      12px !important;
  }

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

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

  .armado-etiquetas-controlbar {
    padding:
      10px !important;
  }

  .armado-etiquetas-active-order__summary {
    grid-template-columns: 1fr !important;
  }

  .armado-etiquetas-active-order__footer {
    grid-template-columns: 1fr !important;
  }

  .armado-etiquetas-product {
    grid-template-columns:
      36px
      minmax(0, 1fr) !important;
  }
}/* =========================================================
   ARMADO DE ETIQUETAS
   BORDES VISIBLES + CARDS CUADRICULADAS + SCROLL NORMAL
   Agregar al FINAL de armado-etiquetas.css
   ========================================================= */

/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

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

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

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

  padding: 10px !important;

  overflow: visible !important;
}

.armado-etiquetas-page {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

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

  gap: 12px !important;

  overflow: visible !important;
}

/* =========================================================
   BORDES PRINCIPALES
   ========================================================= */

.armado-etiquetas-head,
.armado-etiquetas-controlbar,
.armado-etiquetas-metrics,
.armado-etiquetas-workspace {
  border:
    1px solid
    rgba(15, 23, 42, 0.19) !important;

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86) inset,
    0 5px 16px rgba(15, 23, 42, 0.055) !important;
}

.armado-etiquetas-head:hover,
.armado-etiquetas-controlbar:hover,
.armado-etiquetas-workspace:hover {
  border-color:
    rgba(15, 23, 42, 0.29) !important;
}

/* =========================================================
   CONTROLES SUPERIORES
   ========================================================= */

.armado-etiquetas-header-state,
.armado-etiquetas-lote-control select,
.armado-etiquetas-order-search label > div,
.armado-etiquetas-shortcuts span,
.armado-etiquetas-btn {
  border-color:
    rgba(15, 23, 42, 0.18) !important;
}

.armado-etiquetas-lote-control select:hover,
.armado-etiquetas-lote-control select:focus,
.armado-etiquetas-order-search label > div:hover,
.armado-etiquetas-order-search label > div:focus-within,
.armado-etiquetas-btn:hover:not(:disabled) {
  border-color:
    rgba(15, 23, 42, 0.3) !important;
}

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

.armado-etiquetas-metrics {
  overflow: hidden !important;
}

.armado-etiquetas-metric {
  border-right:
    1px solid
    rgba(15, 23, 42, 0.16) !important;

  border-bottom: 0 !important;
}

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

.armado-etiquetas-metric:hover {
  background:
    rgba(15, 23, 42, 0.04) !important;
}

.armado-etiquetas-metric.is-active {
  background:
    rgba(15, 23, 42, 0.065) !important;
}

.armado-etiquetas-metric__icon {
  border-color:
    rgba(15, 23, 42, 0.18) !important;
}

/* =========================================================
   WORKSPACE Y COLUMNAS
   ========================================================= */

.armado-etiquetas-workspace {
  height: auto !important;
  min-height: 640px !important;
  max-height: none !important;

  align-items: stretch !important;

  overflow: hidden !important;
}

.armado-etiquetas-orders-panel,
.armado-etiquetas-active-panel,
.armado-etiquetas-scan-panel {
  min-height: 640px !important;

  border-color:
    rgba(15, 23, 42, 0.18) !important;
}

.armado-etiquetas-orders-panel,
.armado-etiquetas-active-panel {
  border-right:
    1px solid
    rgba(15, 23, 42, 0.18) !important;
}

.armado-etiquetas-panel-head {
  border-bottom:
    1px solid
    rgba(15, 23, 42, 0.18) !important;
}

/* =========================================================
   LISTA DE PEDIDOS CUADRICULADA
   ========================================================= */

.armado-etiquetas-orders-list {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.armado-etiquetas-order {
  border-bottom:
    1px solid
    rgba(15, 23, 42, 0.15) !important;
}

.armado-etiquetas-order:last-child {
  border-bottom: 0 !important;
}

.armado-etiquetas-order:hover {
  background:
    rgba(15, 23, 42, 0.04) !important;
}

.armado-etiquetas-order.is-active {
  background:
    rgba(15, 23, 42, 0.07) !important;
}

.armado-etiquetas-order__icon {
  border-color:
    rgba(15, 23, 42, 0.18) !important;
}

.armado-etiquetas-order__bar {
  background:
    rgba(15, 23, 42, 0.12) !important;
}

/* =========================================================
   PEDIDO ACTIVO · CARDS INTERNAS
   ========================================================= */

.armado-etiquetas-active-order__head,
.armado-etiquetas-active-order__summary,
.armado-etiquetas-active-order__progress,
.armado-etiquetas-products,
.armado-etiquetas-active-order__footer,
.armado-etiquetas-scanner-panel__head,
.armado-etiquetas-scanner-order,
.armado-etiquetas-scanner-empty,
.armado-etiquetas-scanner-form,
.armado-etiquetas-last-read,
.armado-etiquetas-history {
  border:
    1px solid
    rgba(15, 23, 42, 0.19) !important;

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 3px 10px rgba(15, 23, 42, 0.035) !important;
}

.armado-etiquetas-active-order__head:hover,
.armado-etiquetas-active-order__progress:hover,
.armado-etiquetas-products:hover,
.armado-etiquetas-scanner-panel__head:hover,
.armado-etiquetas-scanner-order:hover,
.armado-etiquetas-scanner-form:hover,
.armado-etiquetas-history:hover {
  border-color:
    rgba(15, 23, 42, 0.29) !important;
}

/* =========================================================
   RESUMEN CUADRICULADO
   ========================================================= */

.armado-etiquetas-active-order__summary {
  overflow: hidden !important;
}

.armado-etiquetas-active-order__summary article {
  border-right:
    1px solid
    rgba(15, 23, 42, 0.15) !important;

  border-bottom: 0 !important;
}

.armado-etiquetas-active-order__summary article:last-child {
  border-right: 0 !important;
}

.armado-etiquetas-active-order__summary article:hover {
  background:
    rgba(15, 23, 42, 0.035) !important;
}

/* =========================================================
   PRODUCTOS CUADRICULADOS
   ========================================================= */

.armado-etiquetas-products__head {
  border-bottom:
    1px solid
    rgba(15, 23, 42, 0.18) !important;
}

.armado-etiquetas-product {
  border-bottom:
    1px solid
    rgba(15, 23, 42, 0.15) !important;
}

.armado-etiquetas-product:last-child {
  border-bottom: 0 !important;
}

.armado-etiquetas-product:hover {
  background:
    rgba(15, 23, 42, 0.035) !important;
}

.armado-etiquetas-product__state,
.armado-etiquetas-status {
  border-color:
    rgba(15, 23, 42, 0.18) !important;
}

.armado-etiquetas-product__bar,
.armado-etiquetas-progress-bar {
  background:
    rgba(15, 23, 42, 0.12) !important;
}

/* =========================================================
   SCANNER CUADRICULADO
   ========================================================= */

.armado-etiquetas-scanner-form > label > div,
.armado-etiquetas-scanner-quantity > div {
  border-color:
    rgba(15, 23, 42, 0.19) !important;
}

.armado-etiquetas-scanner-form > label > div:focus-within {
  border-color:
    rgba(15, 23, 42, 0.4) !important;

  box-shadow:
    0 0 0 3px rgba(15, 23, 42, 0.055) !important;
}

.armado-etiquetas-scanner-quantity button:first-child {
  border-right:
    1px solid
    rgba(15, 23, 42, 0.16) !important;
}

.armado-etiquetas-scanner-quantity button:last-child {
  border-left:
    1px solid
    rgba(15, 23, 42, 0.16) !important;
}

/* =========================================================
   HISTORIAL CUADRICULADO
   ========================================================= */

.armado-etiquetas-history > header {
  border-bottom:
    1px solid
    rgba(15, 23, 42, 0.18) !important;
}

.armado-etiquetas-history-row {
  border-bottom:
    1px solid
    rgba(15, 23, 42, 0.15) !important;
}

.armado-etiquetas-history-row:last-child {
  border-bottom: 0 !important;
}

.armado-etiquetas-history-row:hover {
  background:
    rgba(15, 23, 42, 0.035) !important;
}

.armado-etiquetas-history-row > span,
.armado-etiquetas-history > header small {
  border-color:
    rgba(15, 23, 42, 0.18) !important;
}

/* =========================================================
   SCROLL DE PÁGINA Y FOOTER
   ========================================================= */

body:has(.armado-etiquetas-page) .app-main,
body:has(.armado-etiquetas-page) .app-shell {
  min-height: 100vh !important;
  height: auto !important;

  overflow: visible !important;
}

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

  inset: auto !important;

  width: 100% !important;

  margin-top: 12px !important;

  transform: none !important;
}

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

html[data-theme="dark"] .armado-etiquetas-head,
html[data-theme="dark"] .armado-etiquetas-controlbar,
html[data-theme="dark"] .armado-etiquetas-metrics,
html[data-theme="dark"] .armado-etiquetas-workspace,
html[data-theme="dark"] .armado-etiquetas-active-order__head,
html[data-theme="dark"] .armado-etiquetas-active-order__summary,
html[data-theme="dark"] .armado-etiquetas-active-order__progress,
html[data-theme="dark"] .armado-etiquetas-products,
html[data-theme="dark"] .armado-etiquetas-active-order__footer,
html[data-theme="dark"] .armado-etiquetas-scanner-panel__head,
html[data-theme="dark"] .armado-etiquetas-scanner-order,
html[data-theme="dark"] .armado-etiquetas-scanner-empty,
html[data-theme="dark"] .armado-etiquetas-scanner-form,
html[data-theme="dark"] .armado-etiquetas-last-read,
html[data-theme="dark"] .armado-etiquetas-history {
  border-color:
    rgba(255, 255, 255, 0.2) !important;

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .armado-etiquetas-orders-panel,
html[data-theme="dark"] .armado-etiquetas-active-panel,
html[data-theme="dark"] .armado-etiquetas-panel-head,
html[data-theme="dark"] .armado-etiquetas-metric,
html[data-theme="dark"] .armado-etiquetas-order,
html[data-theme="dark"] .armado-etiquetas-product,
html[data-theme="dark"] .armado-etiquetas-history-row,
html[data-theme="dark"] .armado-etiquetas-active-order__summary article {
  border-right-color:
    rgba(255, 255, 255, 0.13) !important;

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

html[data-theme="dark"] .armado-etiquetas-header-state,
html[data-theme="dark"] .armado-etiquetas-lote-control select,
html[data-theme="dark"] .armado-etiquetas-order-search label > div,
html[data-theme="dark"] .armado-etiquetas-shortcuts span,
html[data-theme="dark"] .armado-etiquetas-btn,
html[data-theme="dark"] .armado-etiquetas-metric__icon,
html[data-theme="dark"] .armado-etiquetas-order__icon,
html[data-theme="dark"] .armado-etiquetas-product__state,
html[data-theme="dark"] .armado-etiquetas-status,
html[data-theme="dark"] .armado-etiquetas-scanner-form > label > div,
html[data-theme="dark"] .armado-etiquetas-scanner-quantity > div,
html[data-theme="dark"] .armado-etiquetas-history-row > span,
html[data-theme="dark"] .armado-etiquetas-history > header small {
  border-color:
    rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] .armado-etiquetas-order:hover,
html[data-theme="dark"] .armado-etiquetas-product:hover,
html[data-theme="dark"] .armado-etiquetas-history-row:hover,
html[data-theme="dark"] .armado-etiquetas-active-order__summary article:hover {
  background:
    rgba(255, 255, 255, 0.045) !important;
}

html[data-theme="dark"] .armado-etiquetas-order.is-active,
html[data-theme="dark"] .armado-etiquetas-metric.is-active {
  background:
    rgba(255, 255, 255, 0.075) !important;
}

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

@media (max-width: 1080px) {
  .armado-etiquetas-workspace {
    min-height: 0 !important;
  }

  .armado-etiquetas-orders-panel,
  .armado-etiquetas-active-panel,
  .armado-etiquetas-scan-panel {
    min-height: 0 !important;
  }
}

@media (max-width: 820px) {
  .armado-etiquetas-orders-panel,
  .armado-etiquetas-active-panel {
    border-right: 0 !important;

    border-bottom:
      1px solid
      rgba(15, 23, 42, 0.18) !important;
  }

  .armado-etiquetas-metric {
    border-bottom:
      1px solid
      rgba(15, 23, 42, 0.15) !important;
  }

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

  .armado-etiquetas-metric:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
  }
}

@media (max-width: 680px) {
  .armado-etiquetas-active-order__summary article {
    border-right: 0 !important;

    border-bottom:
      1px solid
      rgba(15, 23, 42, 0.15) !important;
  }

  .armado-etiquetas-active-order__summary article:last-child {
    border-bottom: 0 !important;
  }
}

@media (max-width: 460px) {
  .armado-etiquetas-metric {
    border-right: 0 !important;

    border-bottom:
      1px solid
      rgba(15, 23, 42, 0.15) !important;
  }

  .armado-etiquetas-metric:last-child {
    border-bottom: 0 !important;
  }
}