/* =========================================================
   WIRTZ HUB · OPERACIONES · ETIQUETAS
   CSS completo limpio
   Carga PDF/TXT · Colecta/Flex · Items por pedido
   ========================================================= */

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

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

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

  color: #111827;
  overflow-x: hidden;

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

  animation: etiquetasPageIn 0.18s ease both;
}

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

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

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

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

.etiquetas-head,
.etiquetas-metrics,
.etiquetas-upload-panel,
.etiquetas-panel,
.etiquetas-history-panel,
.etiquetas-cargas-panel {
  width: 100%;
  max-width: 100%;

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

  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.74) inset,
    0 12px 28px rgba(17, 24, 39, 0.04);

  overflow: hidden;
}

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

  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(8, 8, 8, 0.96)),
    rgba(10, 10, 10, 0.95);

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 16px 36px rgba(0, 0, 0, 0.34);
}

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

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

  min-height: 58px;
  padding: 9px;
}

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

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

  width: 32px;
  height: 32px;
  min-width: 32px;

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

  color: #111827;

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

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

.etiquetas-brand h2 {
  margin: 0;

  color: #111827;

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

.etiquetas-brand p {
  margin: 3px 0 0;
  max-width: 780px;

  color: #4b5563;

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

html[data-theme="dark"] .etiquetas-brand__icon {
  border-color: rgba(255, 255, 255, 0.14);
  background: #111111;
  color: #f9fafb;
}

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

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

/* =========================================================
   BUTTONS / ACTIONS
   ========================================================= */

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

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

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

  min-height: 30px;
  padding: 0 9px;

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

  color: #111827;

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

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

  cursor: pointer;
  outline: none;

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

.etiquetas-btn span,
.etiquetas-type-btn span,
.etiquetas-modal-close span {
  color: currentColor;
}

.etiquetas-btn .icon,
.etiquetas-type-btn .icon,
.etiquetas-modal-close .icon,
.etiquetas-btn svg,
.etiquetas-type-btn svg,
.etiquetas-modal-close svg {
  display: block;
  flex: 0 0 auto;

  width: 11px;
  height: 11px;
  min-width: 11px;

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

.etiquetas-btn:hover,
.etiquetas-type-btn:hover,
.etiquetas-modal-close:hover {
  border-color: rgba(17, 24, 39, 0.36);
  background: #f3f4f6;
  color: #111827;
  transform: translateY(-1px);
}

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

.etiquetas-btn:disabled {
  cursor: not-allowed;
  color: #6b7280;
  background: #e5e7eb;
  border-color: #d1d5db;
  box-shadow: none;
  transform: none;
}

.etiquetas-btn--dark,
.etiquetas-type-btn.is-active {
  border-color: #050505;
  background: #050505;
  color: #ffffff;

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

.etiquetas-btn--dark:hover,
.etiquetas-type-btn.is-active:hover {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

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

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

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

  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
}

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

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

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

html[data-theme="dark"] .etiquetas-page .etiquetas-type-btn.is-active,
html[data-theme="dark"] .etiquetas-modal .etiquetas-type-btn.is-active {
  border-color: #f4f4f5;
  background: #f4f4f5;
  color: #050505;
}

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

html[data-theme="dark"] .etiquetas-page .etiquetas-btn--dark:hover,
html[data-theme="dark"] .etiquetas-modal .etiquetas-btn--dark:hover {
  background: #151515;
  color: #ffffff;
}

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

/* =========================================================
   METRICS
   ========================================================= */

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

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

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

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

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

.etiquetas-metric:hover {
  background: rgba(17, 24, 39, 0.025);
}

.etiquetas-metric span {
  min-width: 0;

  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;
}

.etiquetas-metric strong {
  color: #111827;

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

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

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

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

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

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

html[data-theme="dark"] .etiquetas-metric:hover {
  background: rgba(255, 255, 255, 0.045);
}

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

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

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

/* =========================================================
   UPLOAD / FORMS
   ========================================================= */

.etiquetas-upload-form {
  display: grid;
  grid-template-columns: 210px 126px minmax(150px, 1fr) minmax(150px, 1fr) minmax(180px, 1.2fr) auto;
  gap: 6px;
  align-items: end;

  padding: 8px;
}

.etiquetas-upload-form label,
.etiquetas-upload-type {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.etiquetas-upload-form label span,
.etiquetas-upload-type > span {
  color: #4b5563;

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

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

.etiquetas-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.etiquetas-actions > .etiquetas-type-selector {
  width: 230px;
}

.etiquetas-upload-form input,
.etiquetas-upload-form select,
.etiquetas-page input,
.etiquetas-page select,
.etiquetas-modal input,
.etiquetas-modal select {
  width: 100%;
  min-width: 0;
  height: 30px;

  padding: 0 8px;

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

  color: #111827;
  outline: none;

  font-size: 8.2px;
  font-weight: 820;

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

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

.etiquetas-upload-form input:hover,
.etiquetas-upload-form input:focus,
.etiquetas-upload-form select:hover,
.etiquetas-upload-form select:focus,
.etiquetas-page input:hover,
.etiquetas-page input:focus,
.etiquetas-page select:hover,
.etiquetas-page select:focus,
.etiquetas-modal input:hover,
.etiquetas-modal input:focus,
.etiquetas-modal select:hover,
.etiquetas-modal select:focus {
  border-color: rgba(17, 24, 39, 0.3);
  background: #f9fafb;

  box-shadow:
    0 0 0 2px rgba(17, 24, 39, 0.045),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.etiquetas-page input::placeholder,
.etiquetas-modal input::placeholder {
  color: #6b7280;
}

html[data-theme="dark"] .etiquetas-upload-form label span,
html[data-theme="dark"] .etiquetas-upload-type > span {
  color: rgba(255, 255, 255, 0.52);
}

html[data-theme="dark"] .etiquetas-upload-form input,
html[data-theme="dark"] .etiquetas-upload-form select,
html[data-theme="dark"] .etiquetas-page input,
html[data-theme="dark"] .etiquetas-page select,
html[data-theme="dark"] .etiquetas-modal input,
html[data-theme="dark"] .etiquetas-modal select {
  border-color: rgba(255, 255, 255, 0.2);
  background: #090909;
  color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .etiquetas-upload-form input:hover,
html[data-theme="dark"] .etiquetas-upload-form input:focus,
html[data-theme="dark"] .etiquetas-upload-form select:hover,
html[data-theme="dark"] .etiquetas-upload-form select:focus,
html[data-theme="dark"] .etiquetas-page input:hover,
html[data-theme="dark"] .etiquetas-page input:focus,
html[data-theme="dark"] .etiquetas-page select:hover,
html[data-theme="dark"] .etiquetas-page select:focus,
html[data-theme="dark"] .etiquetas-modal input:hover,
html[data-theme="dark"] .etiquetas-modal input:focus,
html[data-theme="dark"] .etiquetas-modal select:hover,
html[data-theme="dark"] .etiquetas-modal select:focus {
  border-color: rgba(255, 255, 255, 0.32);
  background: #050505;
}

html[data-theme="dark"] .etiquetas-page input::placeholder,
html[data-theme="dark"] .etiquetas-modal input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

/* =========================================================
   FILE INPUT CUSTOM
   ========================================================= */

.etiquetas-file-field {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.etiquetas-file-input {
  position: absolute !important;
  inset: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

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

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

  padding: 0 7px 0 0;

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

  color: #111827;

  overflow: hidden;

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

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

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

  border-right: 1px solid rgba(17, 24, 39, 0.12);
  background: #e5e7eb;

  color: #111827;

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

.etiquetas-file-btn .icon,
.etiquetas-file-btn svg {
  display: block;
  width: 11px;
  height: 11px;
  color: currentColor;
  stroke: currentColor;
  stroke-width: 2.2;
}

.etiquetas-file-ui strong {
  min-width: 0;

  color: #374151;

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

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

.etiquetas-file-field:hover .etiquetas-file-ui {
  border-color: rgba(17, 24, 39, 0.3);
  background: #f9fafb;
}

.etiquetas-file-field:hover .etiquetas-file-btn {
  background: #dbe1e8;
}

html[data-theme="dark"] .etiquetas-file-ui {
  border-color: rgba(255, 255, 255, 0.22);
  background: #090909;
  color: rgba(255, 255, 255, 0.86);
}

html[data-theme="dark"] .etiquetas-file-btn {
  border-right-color: rgba(255, 255, 255, 0.16);
  background: #151515;
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .etiquetas-file-ui strong {
  color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .etiquetas-file-field:hover .etiquetas-file-ui {
  border-color: rgba(255, 255, 255, 0.34);
  background: #0f0f0f;
}

html[data-theme="dark"] .etiquetas-file-field:hover .etiquetas-file-btn {
  background: #202020;
}

/* =========================================================
   MAIN LOAD LIST
   ========================================================= */

.etiquetas-detail-panel {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.etiquetas-cargas-panel {
  display: grid;
  min-width: 0;
}

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

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

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

.etiquetas-cargas-head span,
.etiquetas-title span,
.etiquetas-pedidos-title span {
  color: #4b5563;

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

.etiquetas-cargas-head strong,
.etiquetas-title strong,
.etiquetas-pedidos-title strong {
  display: block;
  margin-top: 3px;

  color: #111827;

  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.035em;
}

html[data-theme="dark"] .etiquetas-cargas-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

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

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

.etiquetas-cargas-list {
  display: grid;
  gap: 0;
}

.etiquetas-carga-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 100px 74px;
  gap: 8px;
  align-items: center;

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

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

  transition: background 0.14s ease;
}

.etiquetas-carga-card:last-child {
  border-bottom: 0;
}

.etiquetas-carga-card:hover {
  background: rgba(17, 24, 39, 0.025);
}

.etiquetas-carga-card__icon {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

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

  color: #111827;
}

.etiquetas-carga-card__icon .icon,
.etiquetas-carga-card__icon svg {
  display: block;
  width: 13px;
  height: 13px;
  stroke-width: 2.15;
}

.etiquetas-carga-card__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.etiquetas-carga-card__body strong {
  color: #111827;

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

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

.etiquetas-carga-card__body small {
  color: #6b7280;

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

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

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

html[data-theme="dark"] .etiquetas-carga-card:hover {
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="dark"] .etiquetas-carga-card__icon {
  border-color: rgba(255, 255, 255, 0.12);
  background: #111111;
  color: rgba(255, 255, 255, 0.9);
}

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

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

/* =========================================================
   EMPTY STATES
   ========================================================= */

.etiquetas-detail-empty,
.etiquetas-cargas-empty,
.etiquetas-mobile-empty,
.etiquetas-pedido-item-empty {
  display: grid;
  place-items: center;
  gap: 7px;

  min-height: 130px;
  padding: 22px;

  text-align: center;
}

.etiquetas-detail-empty .icon,
.etiquetas-cargas-empty .icon,
.etiquetas-mobile-empty .icon,
.etiquetas-pedido-item-empty .icon {
  width: 24px;
  height: 24px;
  color: #111827;
  stroke-width: 2.15;
}

.etiquetas-detail-empty strong,
.etiquetas-mobile-empty strong,
.etiquetas-pedido-item-empty strong {
  color: #111827;

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

.etiquetas-detail-empty span,
.etiquetas-cargas-empty span,
.etiquetas-mobile-empty span,
.etiquetas-pedido-item-empty span {
  max-width: 360px;

  color: #6b7280;

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

html[data-theme="dark"] .etiquetas-detail-empty .icon,
html[data-theme="dark"] .etiquetas-cargas-empty .icon,
html[data-theme="dark"] .etiquetas-mobile-empty .icon,
html[data-theme="dark"] .etiquetas-pedido-item-empty .icon {
  color: rgba(255, 255, 255, 0.88);
}

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

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

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

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

  padding: 8px;

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

.etiquetas-title {
  display: grid;
  min-width: 0;
}

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

.etiquetas-search {
  position: relative;

  display: flex;
  align-items: center;

  min-width: 220px;
  width: min(360px, 100%);
}

.etiquetas-search .icon,
.etiquetas-search svg {
  position: absolute;
  left: 8px;

  width: 12px;
  height: 12px;

  color: #6b7280;
  pointer-events: none;
}

.etiquetas-search input {
  padding-left: 26px;
}

.etiquetas-filters input,
.etiquetas-filters select {
  width: auto;
  min-width: 104px;
}

.etiquetas-filters input[type="date"] {
  min-width: 118px;
}

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

/* =========================================================
   HISTORY TABLE
   ========================================================= */

.etiquetas-history-panel {
  display: grid;
  min-width: 0;
}

.etiquetas-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.etiquetas-table {
  width: 100%;
  min-width: 760px;

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

.etiquetas-table th,
.etiquetas-table td {
  height: 42px;
  padding: 0 8px;

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

  color: #374151;

  font-size: 8.2px;
  font-weight: 740;
  line-height: 1.15;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;

  overflow: hidden;
  text-overflow: ellipsis;
}

.etiquetas-table th:last-child,
.etiquetas-table td:last-child {
  border-right: 0;
}

.etiquetas-table th {
  height: 32px;

  background: rgba(249, 250, 251, 0.9);

  color: #6b7280;

  font-size: 6.8px;
  font-weight: 950;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.etiquetas-table tbody tr:hover {
  background: rgba(17, 24, 39, 0.025);
}

.etiquetas-table th:nth-child(1),
.etiquetas-table td:nth-child(1) {
  width: 34%;
}

.etiquetas-table th:nth-child(2),
.etiquetas-table td:nth-child(2) {
  width: 12%;
}

.etiquetas-table th:nth-child(3),
.etiquetas-table td:nth-child(3) {
  width: 10%;
}

.etiquetas-table th:nth-child(4),
.etiquetas-table td:nth-child(4) {
  width: 14%;
}

.etiquetas-table th:nth-child(5),
.etiquetas-table td:nth-child(5) {
  width: 14%;
}

.etiquetas-table th:nth-child(6),
.etiquetas-table td:nth-child(6) {
  width: 16%;
  text-align: center;
}

.etiquetas-table strong {
  display: block;
  max-width: 100%;

  color: #111827;

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

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

.etiquetas-table small {
  display: block;
  max-width: 100%;
  margin-top: 2px;

  color: #6b7280;

  font-size: 7px;
  font-weight: 820;
  line-height: 1.1;

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

.etiquetas-row-actions {
  justify-content: center;
}

html[data-theme="dark"] .etiquetas-table th,
html[data-theme="dark"] .etiquetas-table td {
  border-bottom-color: rgba(255, 255, 255, 0.075);
  border-right-color: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .etiquetas-table th {
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.46);
}

html[data-theme="dark"] .etiquetas-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.045);
}

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

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

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

.etiquetas-pill,
.etiquetas-status {
  display: inline-block;

  width: auto;
  max-width: 100%;

  padding: 0;
  margin: 0;

  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  color: #374151;

  font-size: 8.2px;
  font-weight: 820;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;

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

.etiquetas-pill--colecta {
  color: #374151;
}

.etiquetas-pill--flex {
  color: #15803d;
}

.etiquetas-status--cargado,
.etiquetas-status--pendiente {
  color: #64748b;
}

.etiquetas-status--en-armado,
.etiquetas-status--armado-parcial,
.etiquetas-status--parcial {
  color: #c2410c;
}

.etiquetas-status--armado-completo,
.etiquetas-status--preparado,
.etiquetas-status--completo {
  color: #15803d;
}

.etiquetas-status--faltante,
.etiquetas-status--cancelado,
.etiquetas-status--no-retirado {
  color: #b91c1c;
}

.etiquetas-status--retirado {
  color: #0f766e;
}

.etiquetas-status--sobrante {
  color: #7c2d12;
}

html[data-theme="dark"] .etiquetas-pill,
html[data-theme="dark"] .etiquetas-status {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .etiquetas-status--pendiente {
  color: #cbd5e1;
}

html[data-theme="dark"] .etiquetas-status--en-armado,
html[data-theme="dark"] .etiquetas-status--armado-parcial,
html[data-theme="dark"] .etiquetas-status--parcial {
  color: #fdba74;
}

html[data-theme="dark"] .etiquetas-status--preparado,
html[data-theme="dark"] .etiquetas-status--armado-completo,
html[data-theme="dark"] .etiquetas-status--completo {
  color: #86efac;
}

html[data-theme="dark"] .etiquetas-status--faltante,
html[data-theme="dark"] .etiquetas-status--cancelado,
html[data-theme="dark"] .etiquetas-status--no-retirado {
  color: #fca5a5;
}

html[data-theme="dark"] .etiquetas-status--retirado {
  color: #5eead4;
}

html[data-theme="dark"] .etiquetas-status--sobrante {
  color: #fbbf24;
}

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

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

  display: none;
  place-items: center;

  padding: 14px;

  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(10px) saturate(0.92);
  -webkit-backdrop-filter: blur(10px) saturate(0.92);
}

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

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

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

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

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

  overflow: hidden;

  animation: etiquetasModalIn 0.2s ease both;
}

.etiquetas-history-card {
  width: min(980px, calc(100vw - 26px));
}

.etiquetas-lote-detail-card {
  width: min(1180px, calc(100vw - 26px));
}

.etiquetas-pedido-modal-card {
  width: min(820px, calc(100vw - 26px));
}

html[data-theme="dark"] .etiquetas-modal-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 9, 0.98);

  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.66),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* =========================================================
   MODAL HEADER / BODY / FOOTER
   ========================================================= */

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

  min-height: 58px;
  padding: 10px 12px;

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

.etiquetas-modal-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

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

  width: 34px;
  height: 34px;
  min-width: 34px;

  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.04);

  color: #111827;
}

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

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

.etiquetas-modal-title span {
  display: block;

  color: #6b7280;

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

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

  color: #111827;

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

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

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

  color: #6b7280;

  font-size: 9.5px;
  font-weight: 760;
  line-height: 1.25;

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

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

  min-height: 0;
  padding: 12px;

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

.etiquetas-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;

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

  border-top: 1px solid rgba(17, 24, 39, 0.095);
  background: rgba(255, 255, 255, 0.72);
}

.etiquetas-modal-footer .etiquetas-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 8.8px;
}

.etiquetas-modal-footer .etiquetas-btn .icon,
.etiquetas-modal-footer .etiquetas-btn svg {
  width: 12px;
  height: 12px;
  min-width: 12px;
}

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

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

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

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

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

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

/* =========================================================
   LOTE PROGRESS
   ========================================================= */

.etiquetas-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

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

  overflow: hidden;
}

.etiquetas-progress article {
  display: grid;
  align-content: center;
  gap: 3px;

  min-height: 60px;
  padding: 11px 12px;

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

.etiquetas-progress article:last-child {
  border-right: 0;
}

.etiquetas-progress span {
  color: #6b7280;

  font-size: 7.8px;
  font-weight: 950;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.etiquetas-progress strong {
  color: #111827;

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

html[data-theme="dark"] .etiquetas-progress {
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .etiquetas-progress article {
  border-right-color: rgba(255, 255, 255, 0.08);
}

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

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

/* =========================================================
   DETAIL PATH
   ========================================================= */

.etiquetas-detail-path {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: center;

  min-height: 40px;
  padding: 10px 11px;

  border: 1px solid rgba(17, 24, 39, 0.095);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.025);
}

.etiquetas-detail-path .icon,
.etiquetas-detail-path svg {
  width: 13px;
  height: 13px;
  color: #374151;
}

.etiquetas-detail-path span {
  color: #4b5563;

  font-size: 9px;
  font-weight: 820;
  line-height: 1.3;

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

html[data-theme="dark"] .etiquetas-detail-path {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .etiquetas-detail-path .icon,
html[data-theme="dark"] .etiquetas-detail-path svg {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .etiquetas-detail-path span {
  color: rgba(255, 255, 255, 0.62);
}

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

.etiquetas-pedidos-panel {
  display: grid;
  align-self: start;
  min-width: 0;
  height: auto;
  max-height: none;

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

  overflow: hidden;
}

.etiquetas-pedidos-title {
  display: grid;
  gap: 3px;

  padding: 9px 10px;

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

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

  min-height: 0;
  max-height: min(380px, calc(100vh - 430px));
  height: auto;

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

html[data-theme="dark"] .etiquetas-pedidos-panel {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.015);
}

html[data-theme="dark"] .etiquetas-pedidos-title {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.065);
}

/* =========================================================
   PEDIDO CARD
   ========================================================= */

.etiquetas-pedido-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(360px, 1.4fr) minmax(180px, 0.8fr) 110px;
  align-items: stretch;
  gap: 0;

  min-height: 62px;

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

  overflow: hidden;

  transition: background 0.14s ease;
}

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

.etiquetas-pedido-card:hover {
  background: rgba(17, 24, 39, 0.025);
}

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

  min-width: 0;
  min-height: 62px;
  padding: 10px 11px;

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

.etiquetas-pedido-card__head > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.etiquetas-pedido-card__head strong {
  color: #111827;

  font-size: 10.2px;
  font-weight: 950;
  line-height: 1.18;

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

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

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

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

.etiquetas-pedido-card__badges {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  min-width: 0;
}

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

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

.etiquetas-pedido-card__grid > div {
  display: grid;
  align-content: center;
  gap: 4px;

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

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

.etiquetas-pedido-card__grid span {
  color: #6b7280;

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

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

.etiquetas-pedido-card__grid strong {
  color: #111827;

  font-size: 9.4px;
  font-weight: 900;
  line-height: 1.18;

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

.etiquetas-pedido-card__items {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 62px;

  padding: 8px 10px;

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

.etiquetas-pedido-card__actions {
  justify-content: flex-end;
  flex-wrap: nowrap;

  min-width: 0;
  min-height: 62px;
  padding: 9px 10px;
}

.etiquetas-pedido-card__actions .etiquetas-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 8.8px;
}

.etiquetas-pedido-card__actions .etiquetas-btn .icon,
.etiquetas-pedido-card__actions .etiquetas-btn svg {
  width: 12px;
  height: 12px;
  min-width: 12px;
}

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

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

html[data-theme="dark"] .etiquetas-pedido-card__head,
html[data-theme="dark"] .etiquetas-pedido-card__grid > div,
html[data-theme="dark"] .etiquetas-pedido-card__items {
  border-right-color: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .etiquetas-pedido-card__head strong,
html[data-theme="dark"] .etiquetas-pedido-card__grid strong {
  color: rgba(255, 255, 255, 0.93);
}

html[data-theme="dark"] .etiquetas-pedido-card__head small,
html[data-theme="dark"] .etiquetas-pedido-card__grid span {
  color: rgba(255, 255, 255, 0.56);
}

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

.etiquetas-pedido-items-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;

  min-width: 0;

  color: #6b7280;

  font-size: 7.4px;
  font-weight: 800;
  line-height: 1.2;
}

.etiquetas-pedido-items-mini > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  max-width: 100%;

  padding: 3px 5px;

  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.025);

  color: #374151;

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

.etiquetas-pedido-items-mini small {
  color: #6b7280;
  font-size: 6.8px;
  font-weight: 900;
}

html[data-theme="dark"] .etiquetas-pedido-items-mini {
  color: rgba(255, 255, 255, 0.56);
}

html[data-theme="dark"] .etiquetas-pedido-items-mini > span {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.84);
}

html[data-theme="dark"] .etiquetas-pedido-items-mini small {
  color: rgba(255, 255, 255, 0.54);
}

/* =========================================================
   PEDIDO DETAIL MODAL
   ========================================================= */

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

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

  overflow: hidden;
}

.etiquetas-pedido-detail-grid article {
  display: grid;
  align-content: center;
  gap: 4px;

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

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

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

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

.etiquetas-pedido-detail-grid span,
.etiquetas-pedido-detail-text span {
  color: #6b7280;

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

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

  color: #111827;

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

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

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

  padding: 10px;

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

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

  color: #4b5563;

  font-size: 8px;
  font-weight: 740;
  line-height: 1.4;

  word-break: break-word;
}

.etiquetas-pedido-detail-warning {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;

  padding: 10px;

  border: 1px solid rgba(185, 28, 28, 0.18);
  border-radius: 14px;
  background: rgba(185, 28, 28, 0.05);
}

.etiquetas-pedido-detail-warning .icon,
.etiquetas-pedido-detail-warning svg {
  width: 15px;
  height: 15px;
  color: #b91c1c;
}

.etiquetas-pedido-detail-warning strong {
  display: block;

  color: #991b1b;

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

.etiquetas-pedido-detail-warning p {
  margin: 4px 0 0;

  color: #991b1b;

  font-size: 8px;
  font-weight: 740;
  line-height: 1.35;
}

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

html[data-theme="dark"] .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"] .etiquetas-pedido-detail-grid span,
html[data-theme="dark"] .etiquetas-pedido-detail-text span {
  color: rgba(255, 255, 255, 0.52);
}

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

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

html[data-theme="dark"] .etiquetas-pedido-detail-warning {
  border-color: rgba(248, 113, 113, 0.2);
  background: rgba(127, 29, 29, 0.16);
}

html[data-theme="dark"] .etiquetas-pedido-detail-warning strong,
html[data-theme="dark"] .etiquetas-pedido-detail-warning p {
  color: #fecaca;
}

/* =========================================================
   SCAN PROGRESS
   ========================================================= */

.etiquetas-scan-progress {
  display: grid;
  gap: 8px;

  padding: 10px;

  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.025);
}

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

.etiquetas-scan-progress span {
  color: #6b7280;

  font-size: 6.8px;
  font-weight: 950;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.etiquetas-scan-progress strong {
  color: #111827;

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

.etiquetas-scan-progress p {
  margin: 0;

  color: #4b5563;

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

.etiquetas-scan-progress p strong {
  font-size: inherit;
  letter-spacing: 0;
}

.etiquetas-scan-progress__bar {
  width: 100%;
  height: 7px;

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

  overflow: hidden;
}

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

  border-radius: inherit;
  background: #111827;

  transition: width 0.18s ease;
}

html[data-theme="dark"] .etiquetas-scan-progress {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
}

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

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

html[data-theme="dark"] .etiquetas-scan-progress p {
  color: rgba(255, 255, 255, 0.6);
}

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

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

/* =========================================================
   PEDIDO ITEMS DETAIL
   ========================================================= */

.etiquetas-pedido-items-detail {
  display: grid;
  min-width: 0;

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

  overflow: hidden;
}

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

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

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

.etiquetas-pedido-items-detail > header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.etiquetas-pedido-items-detail > header span {
  color: #6b7280;

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

.etiquetas-pedido-items-detail > header strong {
  color: #111827;

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

.etiquetas-pedido-items-detail > header small {
  color: #6b7280;

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

.etiquetas-pedido-items-list {
  display: grid;
  gap: 0;
}

.etiquetas-pedido-item {
  position: relative;

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

  min-height: 58px;
  padding: 8px 10px 13px;

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

  overflow: hidden;
}

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

.etiquetas-pedido-item__main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.etiquetas-pedido-item__main strong {
  color: #111827;

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

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

.etiquetas-pedido-item__main span {
  color: #374151;

  font-size: 8.2px;
  font-weight: 780;
  line-height: 1.18;

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

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

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

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

.etiquetas-pedido-item__qty {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.etiquetas-pedido-item__qty span {
  color: #6b7280;

  font-size: 6.8px;
  font-weight: 950;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.etiquetas-pedido-item__qty strong {
  color: #111827;

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

.etiquetas-pedido-item__state {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.etiquetas-pedido-item__bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;

  height: 4px;

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

  overflow: hidden;
}

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

  border-radius: inherit;
  background: #111827;

  transition: width 0.18s ease;
}

.etiquetas-pedido-item--completo .etiquetas-pedido-item__bar span {
  background: #15803d;
}

.etiquetas-pedido-item--parcial .etiquetas-pedido-item__bar span {
  background: #c2410c;
}

.etiquetas-pedido-item--faltante .etiquetas-pedido-item__bar span {
  background: #b91c1c;
}

.etiquetas-pedido-item--sobrante .etiquetas-pedido-item__bar span {
  background: #7c2d12;
}

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

html[data-theme="dark"] .etiquetas-pedido-items-detail > header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .etiquetas-pedido-items-detail > header span,
html[data-theme="dark"] .etiquetas-pedido-items-detail > header small {
  color: rgba(255, 255, 255, 0.52);
}

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

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

html[data-theme="dark"] .etiquetas-pedido-item__main strong,
html[data-theme="dark"] .etiquetas-pedido-item__qty strong {
  color: rgba(255, 255, 255, 0.93);
}

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

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

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

html[data-theme="dark"] .etiquetas-pedido-item__bar span {
  background: #f9fafb;
}

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

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

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

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

/* =========================================================
   MOBILE CARDS
   ========================================================= */

.etiquetas-mobile-list {
  display: none;
}

.etiquetas-mobile-card {
  display: grid;
  gap: 8px;

  padding: 10px;

  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);

  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.035);
}

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

.etiquetas-mobile-card__icon {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;

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

  color: #111827;
}

.etiquetas-mobile-card__icon .icon,
.etiquetas-mobile-card__icon svg {
  width: 13px;
  height: 13px;
}

.etiquetas-mobile-card__identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.etiquetas-mobile-card__identity strong {
  color: #111827;

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

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

.etiquetas-mobile-card__identity small {
  color: #6b7280;

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

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

.etiquetas-mobile-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;

  overflow: hidden;
}

.etiquetas-mobile-card__grid > div {
  display: grid;
  gap: 3px;

  min-width: 0;
  padding: 8px;

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

.etiquetas-mobile-card__grid > div:last-child {
  border-right: 0;
}

.etiquetas-mobile-card__grid span {
  color: #6b7280;

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

.etiquetas-mobile-card__grid strong {
  color: #111827;

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

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

.etiquetas-mobile-card__actions {
  justify-content: stretch;
}

.etiquetas-mobile-card__actions .etiquetas-btn {
  width: 100%;
}

html[data-theme="dark"] .etiquetas-mobile-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .etiquetas-mobile-card__icon {
  border-color: rgba(255, 255, 255, 0.12);
  background: #111111;
  color: rgba(255, 255, 255, 0.9);
}

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

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

html[data-theme="dark"] .etiquetas-mobile-card__grid {
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .etiquetas-mobile-card__grid > div {
  border-right-color: rgba(255, 255, 255, 0.065);
}

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

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

  max-width: min(390px, calc(100vw - 28px));
  padding: 10px 12px;

  border: 1px solid rgba(17, 24, 39, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);

  color: #111827;

  box-shadow:
    0 16px 36px rgba(17, 24, 39, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.62) inset;

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

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

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

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

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

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

html[data-theme="dark"] .etiquetas-toast {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.98);
  color: rgba(255, 255, 255, 0.9);

  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.48),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

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

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

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

@media (max-width: 1180px) {
  .etiquetas-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .etiquetas-upload-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .etiquetas-upload-type {
    grid-column: span 1;
  }

  .etiquetas-upload-form__obs {
    grid-column: span 2;
  }

  .etiquetas-upload-form button[type="submit"] {
    width: 100%;
  }

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

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

  .etiquetas-pedido-card {
    grid-template-columns: minmax(240px, 1fr);
  }

  .etiquetas-pedido-card__head,
  .etiquetas-pedido-card__grid > div,
  .etiquetas-pedido-card__items {
    border-right: 0;
  }

  .etiquetas-pedido-card__grid,
  .etiquetas-pedido-card__items,
  .etiquetas-pedido-card__actions {
    border-top: 1px solid rgba(17, 24, 39, 0.065);
  }

  .etiquetas-pedido-card__actions {
    justify-content: flex-start;
  }

  html[data-theme="dark"] .etiquetas-pedido-card__grid,
  html[data-theme="dark"] .etiquetas-pedido-card__items,
  html[data-theme="dark"] .etiquetas-pedido-card__actions {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .etiquetas-pedido-item {
    grid-template-columns: minmax(220px, 1fr) 110px 100px;
  }
}

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

  .etiquetas-head,
  .etiquetas-metrics,
  .etiquetas-upload-panel,
  .etiquetas-panel,
  .etiquetas-history-panel,
  .etiquetas-cargas-panel {
    border-radius: 14px;
  }

  .etiquetas-head {
    min-height: auto;
    padding: 9px;
  }

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

  .etiquetas-brand p {
    display: none;
  }

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

  .etiquetas-actions > .etiquetas-type-selector {
    width: 100%;
  }

  .etiquetas-actions .etiquetas-btn {
    width: 100%;
  }

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

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

  .etiquetas-upload-form__obs,
  .etiquetas-upload-type {
    grid-column: auto;
  }

  .etiquetas-upload-form .etiquetas-btn {
    width: 100%;
  }

  .etiquetas-cargas-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .etiquetas-cargas-head .etiquetas-btn {
    width: 100%;
  }

  .etiquetas-carga-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
  }

  .etiquetas-carga-card > .etiquetas-status {
    grid-column: 2;
    justify-self: start;
  }

  .etiquetas-carga-card > .etiquetas-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .etiquetas-table-wrap {
    display: none;
  }

  .etiquetas-mobile-list {
    display: grid;
    gap: 8px;
    padding: 9px;
  }

  .etiquetas-modal {
    padding: 8px;
    place-items: end center;
  }

  .etiquetas-modal-card,
  .etiquetas-history-card,
  .etiquetas-lote-detail-card,
  .etiquetas-pedido-modal-card {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 16px;
    animation: etiquetasMobileModalIn 0.2s ease both;
  }

  .etiquetas-modal-head {
    min-height: 56px;
    padding: 9px;
  }

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

  .etiquetas-modal-body {
    padding: 9px;
  }

  .etiquetas-modal-footer {
    display: grid;
    grid-template-columns: 1fr;
    padding: 9px;
  }

  .etiquetas-modal-footer .etiquetas-btn {
    width: 100%;
  }

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

  .etiquetas-progress article {
    min-height: 44px;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.075);
  }

  .etiquetas-progress article:last-child {
    border-bottom: 0;
  }

  .etiquetas-pedidos-list {
    max-height: none;
  }

  .etiquetas-pedido-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .etiquetas-pedido-card__head {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .etiquetas-pedido-card__badges {
    justify-content: flex-start;
  }

  .etiquetas-pedido-card__grid {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }

  .etiquetas-pedido-card__items,
  .etiquetas-pedido-card__actions {
    min-height: auto;
  }

  .etiquetas-pedido-card__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .etiquetas-pedido-card__actions .etiquetas-btn {
    width: 100%;
  }

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

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

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

  .etiquetas-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .etiquetas-search,
  .etiquetas-filters input,
  .etiquetas-filters select,
  .etiquetas-filters .etiquetas-btn {
    width: 100%;
    min-width: 0;
  }

  .etiquetas-pedido-items-detail > header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .etiquetas-pedido-items-detail > header small {
    white-space: normal;
  }

  .etiquetas-pedido-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-bottom: 14px;
  }

  .etiquetas-pedido-item__state {
    justify-content: flex-start;
  }
}

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

  .etiquetas-type-selector {
    grid-template-columns: 1fr;
  }

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

  .etiquetas-mobile-card__head {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .etiquetas-mobile-card__head > .etiquetas-status {
    grid-column: 2;
    justify-self: start;
  }

  .etiquetas-mobile-card__grid {
    grid-template-columns: 1fr;
  }

  .etiquetas-mobile-card__grid > div {
    border-right: 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.065);
  }

  .etiquetas-mobile-card__grid > div:last-child {
    border-bottom: 0;
  }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

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

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

@keyframes etiquetasPageIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

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

@keyframes etiquetasModalBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

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

@keyframes etiquetasMobileModalIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}/* =========================================================
   ETIQUETAS · MISMO TAMAÑO VISUAL QUE LAS DEMÁS PÁGINAS
   Agrandar un poco sin cambiar estructura
   ========================================================= */

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Carga de archivos */
.etiquetas-upload-form {
  grid-template-columns: 210px 126px minmax(150px, 1fr) minmax(150px, 1fr) minmax(180px, 1.2fr) auto !important;
  gap: 7px !important;
  padding: 9px !important;
}

.etiquetas-upload-form label span,
.etiquetas-upload-type > span {
  font-size: 7.8px !important;
}

.etiquetas-upload-form input,
.etiquetas-upload-form select,
.etiquetas-page input,
.etiquetas-page select,
.etiquetas-modal input,
.etiquetas-modal select {
  height: 30px !important;
  padding: 0 9px !important;
  border-radius: 10px !important;
  font-size: 9.6px !important;
}

/* File input */
.etiquetas-file-ui {
  height: 30px !important;
  border-radius: 10px !important;
}

.etiquetas-file-btn {
  height: 28px !important;
  min-width: 92px !important;
  padding: 0 9px !important;
  font-size: 8.8px !important;
}

.etiquetas-file-btn .icon,
.etiquetas-file-btn svg {
  width: 12px !important;
  height: 12px !important;
}

.etiquetas-file-ui strong {
  font-size: 8.8px !important;
}

/* Panel principal */
.etiquetas-detail-panel {
  gap: 9px !important;
  padding: 9px !important;
}

.etiquetas-cargas-head {
  min-height: 48px !important;
  padding: 9px 10px !important;
}

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

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

/* Cards de cargas */
.etiquetas-carga-card {
  grid-template-columns: 34px minmax(0, 1fr) 110px 82px !important;
  min-height: 52px !important;
  padding: 8px 9px !important;
  gap: 9px !important;
}

.etiquetas-carga-card__icon {
  width: 30px !important;
  height: 30px !important;
}

.etiquetas-carga-card__icon .icon,
.etiquetas-carga-card__icon svg {
  width: 14px !important;
  height: 14px !important;
}

.etiquetas-carga-card__body strong {
  font-size: 10px !important;
}

.etiquetas-carga-card__body small {
  font-size: 8px !important;
}

/* Empty */
.etiquetas-detail-empty,
.etiquetas-cargas-empty,
.etiquetas-mobile-empty,
.etiquetas-pedido-item-empty {
  min-height: 180px !important;
  padding: 22px !important;
}

.etiquetas-detail-empty .icon,
.etiquetas-cargas-empty .icon,
.etiquetas-mobile-empty .icon,
.etiquetas-pedido-item-empty .icon {
  width: 30px !important;
  height: 30px !important;
}

.etiquetas-detail-empty strong,
.etiquetas-mobile-empty strong,
.etiquetas-pedido-item-empty strong {
  font-size: 13.5px !important;
}

.etiquetas-detail-empty span,
.etiquetas-cargas-empty span,
.etiquetas-mobile-empty span,
.etiquetas-pedido-item-empty span {
  font-size: 9.4px !important;
}

/* Toolbar historial */
.etiquetas-toolbar {
  grid-template-columns: 190px minmax(0, 1fr) !important;
  gap: 9px !important;
  padding: 9px !important;
}

.etiquetas-search {
  min-width: 240px !important;
  width: min(400px, 100%) !important;
}

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

.etiquetas-filters input,
.etiquetas-filters select {
  min-width: 108px !important;
}

/* Tabla historial */
.etiquetas-table th {
  height: 32px !important;
  padding: 0 8px !important;
  font-size: 7.8px !important;
}

.etiquetas-table td {
  height: 48px !important;
  padding: 0 8px !important;
  font-size: 9.6px !important;
}

.etiquetas-table strong {
  font-size: 10px !important;
}

.etiquetas-table small {
  font-size: 8px !important;
}

.etiquetas-pill,
.etiquetas-status {
  font-size: 9px !important;
}

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

.etiquetas-history-card {
  width: min(980px, calc(100vw - 32px)) !important;
}

.etiquetas-lote-detail-card {
  width: min(1180px, calc(100vw - 32px)) !important;
}

.etiquetas-pedido-modal-card {
  width: min(860px, calc(100vw - 32px)) !important;
}

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

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

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

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

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

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

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

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

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

.etiquetas-modal-footer .etiquetas-btn {
  min-height: 31px !important;
  padding: 0 11px !important;
  font-size: 9.2px !important;
}

/* Progreso lote */
.etiquetas-progress article {
  min-height: 56px !important;
  padding: 10px 12px !important;
}

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

.etiquetas-progress strong {
  font-size: 18px !important;
}

/* Detalle ruta */
.etiquetas-detail-path {
  min-height: 42px !important;
  padding: 10px 11px !important;
}

.etiquetas-detail-path span {
  font-size: 9.2px !important;
}

/* Pedidos */
.etiquetas-pedidos-title {
  padding: 10px 11px !important;
}

.etiquetas-pedido-card {
  min-height: 68px !important;
}

.etiquetas-pedido-card__head {
  min-height: 68px !important;
  padding: 10px 11px !important;
}

.etiquetas-pedido-card__head strong {
  font-size: 10.8px !important;
}

.etiquetas-pedido-card__head small {
  font-size: 9px !important;
}

.etiquetas-pedido-card__grid {
  min-height: 68px !important;
}

.etiquetas-pedido-card__grid > div {
  padding: 10px 11px !important;
}

.etiquetas-pedido-card__grid span {
  font-size: 7.8px !important;
}

.etiquetas-pedido-card__grid strong {
  font-size: 10px !important;
}

.etiquetas-pedido-card__items {
  min-height: 68px !important;
  padding: 9px 10px !important;
}

.etiquetas-pedido-card__actions {
  min-height: 68px !important;
  padding: 9px 10px !important;
}

.etiquetas-pedido-card__actions .etiquetas-btn {
  min-height: 31px !important;
  font-size: 9.2px !important;
}

/* Items mini */
.etiquetas-pedido-items-mini {
  gap: 5px !important;
  font-size: 8px !important;
}

.etiquetas-pedido-items-mini > span {
  padding: 4px 6px !important;
  font-size: 8px !important;
}

.etiquetas-pedido-items-mini small {
  font-size: 7.4px !important;
}

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

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

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

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

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

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

.etiquetas-pedido-detail-warning strong {
  font-size: 10px !important;
}

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

/* Escaneo */
.etiquetas-scan-progress {
  gap: 9px !important;
  padding: 10px !important;
}

.etiquetas-scan-progress span {
  font-size: 7.8px !important;
}

.etiquetas-scan-progress strong {
  font-size: 14px !important;
}

.etiquetas-scan-progress p {
  font-size: 9.2px !important;
}

/* Items detalle */
.etiquetas-pedido-items-detail > header {
  min-height: 48px !important;
  padding: 10px 11px !important;
}

.etiquetas-pedido-items-detail > header span {
  font-size: 7.8px !important;
}

.etiquetas-pedido-items-detail > header strong {
  font-size: 11px !important;
}

.etiquetas-pedido-items-detail > header small {
  font-size: 8.8px !important;
}

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

.etiquetas-pedido-item__main strong {
  font-size: 10.2px !important;
}

.etiquetas-pedido-item__main span {
  font-size: 9px !important;
}

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

.etiquetas-pedido-item__qty span {
  font-size: 7.8px !important;
}

.etiquetas-pedido-item__qty strong {
  font-size: 10px !important;
}

/* Mobile cards */
.etiquetas-mobile-card {
  padding: 10px !important;
  gap: 9px !important;
}

.etiquetas-mobile-card__head {
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
}

.etiquetas-mobile-card__icon {
  width: 32px !important;
  height: 32px !important;
}

.etiquetas-mobile-card__icon .icon,
.etiquetas-mobile-card__icon svg {
  width: 14px !important;
  height: 14px !important;
}

.etiquetas-mobile-card__identity strong {
  font-size: 10px !important;
}

.etiquetas-mobile-card__identity small {
  font-size: 8.2px !important;
}

.etiquetas-mobile-card__grid > div {
  padding: 8px !important;
}

.etiquetas-mobile-card__grid span {
  font-size: 7.8px !important;
}

.etiquetas-mobile-card__grid strong {
  font-size: 9.8px !important;
}

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