/* production.css — the workshop's production board (/account/production/, /es/cuenta/produccion/; r3858, 02-12-2026).
   Five columns side by side on a wide screen, scrolled sideways on a tablet, one under the other on a phone. Every
   button is at least 44 px high (a thumb in the workshop, gloves sometimes). The colours are the site's tokens, so the
   dark theme comes with them (base.css, prefers-color-scheme). The job label prints alone (body.pb-printing). */
.pb-status{ margin:0 0 12px; padding:10px 12px; border:2px solid var(--ink); border-radius:8px; background:var(--surface); color:var(--ink-2); }
.pb-status[data-mode="example"]{ border-color:var(--warn); }
.pb-status:empty{ display:none; }
.pb-offer{ margin:0 0 16px; padding:16px; border:2px solid var(--glass); border-radius:12px; background:var(--surface); display:grid; gap:8px; }
.pb-offer h2{ margin:0; font-size:1.15rem; }
.pb-offer p{ margin:0; }
.pb-tools{ display:grid; gap:12px; grid-template-columns:repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin:0 0 16px; }
.pb-card-form{ padding:14px; border:1px solid var(--rule); border-radius:12px; background:var(--surface); display:grid; gap:8px; }
.pb-h2{ margin:0; font-size:1.05rem; }
.pb-h3{ margin:12px 0 4px; font-size:.98rem; }
.pb-row{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0; }
.pb-fields{ display:grid; gap:8px; }
.pb-card-form input, .pb-card-form select, .pb-dlg input, .pb-dlg textarea{ min-height:44px; padding:8px 10px; font:inherit; color:var(--ink); background:var(--paper); border:2px solid var(--ink); border-radius:8px; width:100%; box-sizing:border-box; }
.pb-dlg textarea{ min-height:88px; resize:vertical; }
.pb-scanf .pb-row input{ flex:1 1 180px; width:auto; font-size:1.1rem; letter-spacing:.04em; }
.pb-msg{ margin:0; min-height:1.2em; color:var(--ink-2); }
.pb-msg:empty{ min-height:0; }
.pb-drag{ grid-column:1 / -1; margin:0; }
#sf-production .btn, .pb-dlg .btn{ min-height:44px; }
#sf-production .btn.small, .pb-dlg .btn.small{ min-height:44px; padding:8px 12px; }
.pb-board{ display:grid; grid-template-columns:repeat(5, minmax(220px, 1fr)); gap:10px; overflow-x:auto; padding-bottom:6px; align-items:start; }
.pb-col{ border:2px solid var(--ink); border-radius:8px; background:var(--paper-2, var(--surface)); padding:8px; min-height:120px; }
.pb-col.pb-over{ outline:3px dashed var(--glass); outline-offset:-3px; }
.pb-col-h{ display:flex; align-items:center; gap:8px; margin:2px 2px 8px; font-size:.98rem; }
.pb-col-n{ display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--ink); color:var(--paper); font-size:.8rem; flex:none; }
.pb-count{ margin-left:auto; font-variant-numeric:tabular-nums; color:var(--ink-2); font-weight:500; }
.pb-col[data-status="material"] .pb-col-n{ background:var(--warn); color:var(--paper); }   /* r3891: dark on the dark amber of the light theme was 3.2:1 */
.pb-col[data-status="done"] .pb-col-n{ background:var(--pass); color:var(--paper); }   /* r3891: 3.0:1 in light */
.pb-list{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.pb-empty{ color:var(--ink-3); font-size:.92rem; padding:6px 4px; }
.pb-card{ background:var(--surface); border:2px solid var(--ink); border-radius:8px; padding:10px; display:grid; gap:4px; cursor:grab; }
.pb-card.pb-focus{ border:2px solid var(--glass); box-shadow:0 0 0 3px var(--glass-tint); }
.pb-card p{ margin:0; overflow-wrap:anywhere; }
.pb-client{ color:var(--ink-2); font-size:.92rem; }
.pb-meta{ color:var(--ink-3); font-size:.82rem; }
.pb-meta code{ font-size:.85rem; color:var(--ink); }
.pb-acts{ display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.pb-acts .btn{ padding:8px 12px; font-size:.9rem; }
.pb-acts .pb-next{ flex:1 1 auto; }
.pb-acts .pb-back{ min-width:44px; }
.pb-dlg{ width:min(560px, calc(100vw - 24px)); max-height:calc(100vh - 24px); overflow:auto; border:1px solid var(--rule-2); border-radius:14px; padding:18px; background:var(--surface); color:var(--ink); }
.pb-dlg::backdrop{ background:rgba(0,0,0,.45); }
.pb-dlg h2{ margin:0 0 6px; font-size:1.2rem; overflow-wrap:anywhere; }
.pb-dlg p{ margin:6px 0; }
.pb-big{ width:100%; min-height:56px !important; font-size:1.1rem; }
.pb-piece{ font-weight:700; color:var(--glass-deep); }
.pb-picks{ display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:6px; }
.pb-pick.pb-cur{ border-width:2px; border-color:var(--glass); font-weight:700; }
.pb-end{ justify-content:space-between; margin-top:14px !important; }
.pb-ask{ margin-top:12px; padding:12px; border:2px solid var(--fail); border-radius:10px; }
.pb-hist ol{ margin:6px 0 0; padding-left:20px; color:var(--ink-2); font-size:.9rem; }
/* r3909: the board is the result of the workshop: an ink table (/envelope/'s mould) with the columns lying on it in paper,
   a 2.5 px edge and the hard shadow in the trade's colour (mesa.css's --mc-mat). The columns keep the site's tokens (paper
   in the light theme, the dark sheet in the dark one), so nothing inside them changes. */
@media screen{
  .pb-board{ padding:12px; border:2.5px solid #0b0f0e; background:#0b0f0e; box-shadow:6px 6px 0 var(--mc-mat, #79e0cc); }
  .pb-col{ border:2px solid #0b0f0e; border-radius:6px; }
  /* the counters of two columns were dark type on the light theme's pass green (2.96:1) and amber (3.16:1): the mould's mint
     and amber with ink, 12.3:1 and 11.0:1 */
  .pb-col[data-status="done"] .pb-col-n{ background:var(--mc-mint, #79e0cc); color:#0b0f0e; }
  .pb-col[data-status="material"] .pb-col-n{ background:var(--mc-amber, #f6b93b); color:#0b0f0e; }   /* the tokens of mesa.css: the same in both themes, ink on them */
}
@media screen and (prefers-color-scheme: dark){
  .pb-board{ border-color:#f4f1ea; }
  .pb-col{ border-color:rgba(244,241,234,.35); }
}
#pb-print{ display:none; }
@media (max-width:760px){
  .pb-board{ grid-template-columns:1fr; overflow-x:visible; }
}
@media print{
  body.pb-printing > *:not(#pb-print){ display:none !important; }
  body.pb-printing #pb-print{ display:block !important; }
  .pb-label{ width:90mm; height:50mm; box-sizing:border-box; padding:3mm; border:.3mm dashed #000; display:flex; gap:3mm; align-items:center; color:#000; font:10pt Archivo, Arial, sans-serif; }
  .pb-label-qr{ width:40mm; height:40mm; flex:none; }
  .pb-label-qr svg{ width:100%; height:100%; }
  .pb-label-tx{ display:grid; gap:1.5mm; min-width:0; }
  .pb-label-code{ font-size:16pt; letter-spacing:.04em; }
  .pb-label-tx span{ font-size:11pt; font-weight:600; overflow-wrap:anywhere; }
  .pb-label-tx small{ font-size:8pt; }
}
