/* ---------------------------------------------------------------- pallets con SSCC (pages/pallets.js) */

.plt-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.seg button.on .plt-n { background: var(--brand); color: var(--brand-ink, #fff); }
.plt-buscar { width: 200px; max-width: 100%; }

/* la lista */
.plt-t { padding: 4px 0 6px; }
.plt-f { display: grid; grid-template-columns: minmax(124px, .8fr) minmax(180px, 1.3fr) minmax(140px, 1.2fr) 60px 90px minmax(90px, .8fr) 110px; gap: 12px; align-items: center;
  width: 100%; padding: 11px 18px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.plt-f:hover { background: var(--surface-2); }
.plt-f.h { border-top: 0; cursor: default; font-size: 12px; color: var(--ink-3); padding-top: 8px; padding-bottom: 6px; }
.plt-f.h:hover { background: none; }
.plt-f b { display: block; font-weight: 650; font-variant-numeric: tabular-nums; }
.plt-f small { display: block; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.plt-f > :first-child small { white-space: nowrap; overflow-wrap: normal; }   /* el código del pallet, entero */
.plt-f .num { text-align: right; font-variant-numeric: tabular-nums; }
.plt-f > span:last-child { text-align: right; }
.plt-sscc { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.plt-sscc em { font-family: var(--font); font-style: normal; color: var(--warn); }

/* el pallet */
.plt-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.plt h3, .plt-cols h3 { margin: 14px 0 8px; font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.plt-cols h3 span { color: var(--ink); letter-spacing: 0; text-transform: none; font-weight: 550; margin-left: 4px; }
.plt-scan { display: flex; gap: 8px; }
.plt-scan input { flex: 1; min-width: 0; font-size: 17px; letter-spacing: .02em; padding-top: 11px; padding-bottom: 11px; }
.plt-msg { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; background: var(--surface-2); animation: plt-entra .18s ease-out; }
.plt-msg.ok { background: var(--ok-soft); color: var(--ok); font-weight: 560; }
.plt-msg.mal { background: var(--bad-soft); color: var(--bad); font-weight: 560; }
.plt-msg.aviso { background: var(--warn-soft); color: var(--warn); }
@keyframes plt-entra { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .plt-msg { animation: none; } }
.plt-barra { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 8px; }
.plt-barra i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .2s; }
.plt-barra i.mas { background: var(--warn); }
.plt-cajas, .plt-prod { list-style: none; margin: 0; padding: 0; }
.plt-cajas { max-height: 340px; overflow: auto; }
.plt-cajas li, .plt-prod li { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.plt-cajas li:first-child, .plt-prod li:first-child { border-top: 0; }
.plt-cajas li.muted, .plt-prod li.muted { display: block; color: var(--ink-3); }
.plt-cajas b { font-weight: 560; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plt-cajas span { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plt-cajas em, .plt-prod em { font-style: normal; font-variant-numeric: tabular-nums; }
.plt-prod li { grid-template-columns: minmax(0, 1fr) auto 90px; }
.plt-prod b { font-variant-numeric: tabular-nums; }
.plt-prod em { text-align: right; color: var(--ink-2); }
.plt-x { width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); border-radius: 50%; cursor: pointer; }
.plt-x:hover { background: var(--bad-soft); color: var(--bad); }
.plt-x svg { width: 14px; height: 14px; }
.plt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plt-tiles > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 1px; min-width: 0; }
.plt-tiles small { font-size: 12px; color: var(--ink-3); }
.plt-tiles b { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plt-tiles b.chico { font-size: 17px; padding-top: 4px; }
.plt-tiles b span { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.plt-dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 12px; margin: 14px 0 0; font-size: 14px; align-items: center; }
.plt-dl dt { color: var(--ink-3); font-size: 13px; }
.plt-dl dd { margin: 0; min-width: 0; }
.plt-dl select { width: 100%; }
.plt-pie { display: flex; gap: 8px; align-items: center; width: 100%; flex-wrap: wrap; }

/* la etiqueta */
.plt-etq { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 22px; align-items: start; }
.plt-etq .eq-etiqueta { max-width: 330px; }
.plt-etq-t { display: grid; gap: 8px; align-content: start; }
.plt-etq-t p { margin: 0; }

/* hasta 1240 px: con el menú a la vista, el iPad acostado tiene el ancho útil de una pantalla de 930 */
@media (max-width: 1240px) {
  .plt-f { grid-template-columns: minmax(118px, .7fr) minmax(150px, 1.3fr) minmax(110px, 1fr) 50px 86px 100px; }
  .plt-f > :nth-child(6) { display: none; }
}
@media (max-width: 767px) {
  .plt-buscar { width: 100%; order: 5; }
  .plt-f { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; }
  .plt-f.h { display: none; }
  .plt-f > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 12px; }
  .plt-f > :nth-child(3), .plt-f > :nth-child(4), .plt-f > :nth-child(6) { display: none; }
  .plt-f > :nth-child(5) { grid-row: 1; grid-column: 2; }
  .plt-f > :nth-child(7) { grid-column: 2; grid-row: 2; }
  .plt-cols, .plt-etq { grid-template-columns: 1fr; }
  .plt-etq .eq-etiqueta { margin: 0 auto; }
}
