/* Compact production history, issued box detail and 70 x 30 mm label output. */
.post-production-table td:nth-child(3),.post-production-table td:nth-child(5),.post-production-table td:nth-child(6){max-width:300px;white-space:normal;overflow-wrap:anywhere}
.press-box-source-note{color:#755000;background:#fff4d5;padding:8px;border-radius:4px}
#pressProductionRecent:has(.press-box-detail),#postprocessRecent:has(.press-box-detail){max-height:none;overflow:visible}
.press-box-detail-head{grid-column:1/-1}
.press-production-table{min-width:1120px}.press-production-table td{white-space:nowrap}.press-production-table small{display:block;font-size:10px;color:#66809b;margin-top:3px}.press-box-scroll{max-width:100%;overflow:auto}.press-box-toolbar,.press-box-pager{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.press-box-toolbar>b,.press-box-toolbar>h3{margin:0 auto 0 0}.press-box-pager{justify-content:center;margin-top:10px;font-size:12px}.press-box-pending,.press-box-error{color:#a65a00}.press-box-error{color:#b42318}.press-box-note{font-size:11px;color:#617b96;margin:8px 0;white-space:normal}.press-box-detail-row>td{padding:10px!important;background:#f4f9ff}.press-box-detail{display:grid;grid-template-columns:minmax(580px,1fr) 330px;gap:14px;align-items:start}.press-box-detail>div{min-width:0}.press-box-detail table{min-width:0}.press-box-detail td,.press-box-detail th{white-space:nowrap}.press-box-preview{position:static!important;inset:auto!important;width:auto!important;background:#fff!important;color:#173653!important;border:1px solid #cddfec;border-radius:5px;padding:10px;overflow:visible!important}.press-box-preview h3{font-size:14px}.press-box-preview>.btn{margin-top:10px}.press-box-badge{display:inline-block;padding:3px 9px;border-radius:12px;font-size:11px}.press-box-badge.full{background:#e6f5e8;color:#24723c}.press-box-badge.partial{background:#fff0cb;color:#975500}.press-box-selected{background:#e3efff}.press-box-notice{white-space:normal;font-size:12px;color:#155ba7}.press-box-notice.error{color:#b42318}.press-box-confirm{display:flex!important;align-items:center;gap:6px;white-space:normal!important;margin:10px 0!important}.press-box-capacity{grid-column:1/-1!important;max-width:660px;border-top:1px solid #dbe7f0;padding-top:9px}.press-box-capacity input[type=number]{max-width:180px}.press-box-issue-dialog{width:min(520px,94vw);max-height:85vh;overflow:auto;border:1px solid #c7d8e9;border-radius:7px;padding:18px;color:#173653}.press-box-issue-dialog::backdrop{background:#102a4970}.press-box-issue-dialog>label{display:block;margin:10px 0}.press-box-issue-dialog [role=status]{white-space:normal;font-size:12px;line-height:1.6;color:#155ba7}
.press-box-label{border:1px solid #173653;border-radius:3px;background:white;color:#111;padding:9px;margin:8px 0;white-space:normal;font-family:Arial,'Malgun Gothic',sans-serif}.press-box-label-title{display:block;font-size:14px;border-bottom:1px solid #888;padding-bottom:4px}.press-box-label-body{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:5px;align-items:center}.press-box-label-body p{margin:3px 0;font-size:10px;overflow-wrap:anywhere;line-height:1.35}.press-box-qr img{width:80px;height:80px;display:block}.press-box-label-lot{display:block;border-top:1px solid #888;padding-top:5px;font-size:11px;overflow-wrap:anywhere}.press-box-label>small{display:block;font-size:8px;margin-top:3px;color:#444}#pressBoxPrintArea{display:none}
@media(max-width:1200px){.press-box-detail{grid-template-columns:1fr}.press-box-detail-list{grid-row:3}.press-box-preview{grid-row:2;max-width:400px}}
@page pressBoxLabel{size:70mm 30mm;margin:0}
@media print{body.press-box-printing> *:not(#pressBoxPrintArea){display:none!important}body.press-box-printing #pressBoxPrintArea{display:block!important;position:absolute;left:0;top:0;margin:0;padding:0;background:white}body.press-box-printing .press-box-label{page:pressBoxLabel;width:70mm;height:30mm;box-sizing:border-box;padding:1.5mm;margin:0;border:0;border-radius:0;overflow:hidden;break-after:page;page-break-after:always}body.press-box-printing .press-box-label:last-child{break-after:auto;page-break-after:auto}body.press-box-printing .press-box-label-title{font-size:8pt;padding-bottom:.5mm;line-height:1.2}body.press-box-printing .press-box-label-body{grid-template-columns:minmax(0,1fr) 17mm;gap:1mm}body.press-box-printing .press-box-label-body p{font-size:5.5pt;line-height:1.15;margin:.3mm 0}body.press-box-printing .press-box-qr img{width:17mm;height:17mm}body.press-box-printing .press-box-label-lot{font-size:6.5pt;line-height:1.1;padding-top:.4mm;white-space:nowrap}body.press-box-printing .press-box-label>small{font-size:4.5pt;line-height:1;margin-top:.3mm}}

.press-box-detail-dialog{width:min(1540px,96vw);max-width:96vw;max-height:92dvh;padding:22px;border:0;border-radius:14px;overflow:auto;box-shadow:0 18px 65px #0005}
.press-box-detail-dialog::backdrop{background:#15223899}
.press-box-detail-dialog .press-box-detail{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;font-size:16px}
.press-box-detail-dialog .press-box-detail-head{grid-column:1/-1;position:sticky;top:-22px;background:white;z-index:2;padding:14px 0;flex-wrap:wrap}
.press-box-detail-dialog .press-box-detail-list{overflow:auto}.press-box-detail-dialog td,.press-box-detail-dialog th{padding:12px}
.press-box-detail-dialog input[type=checkbox]{width:20px;height:20px}.press-box-detail-dialog button{min-height:42px}
.wk-pallet-list{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
@media(max-width:800px){.press-box-detail-dialog{padding:12px}.press-box-detail-dialog .press-box-detail{grid-template-columns:1fr}.press-box-detail-dialog .press-box-preview{width:100%}}

.wk-pallet-quantity{padding:14px;background:#f1f6ff;border:1px solid #c9dbfa;border-radius:8px;margin:0 0 12px}
.wk-pallet-quantity>div{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:10px 0}
.wk-pallet-quantity label{display:flex;flex-direction:column;gap:5px;min-width:130px}.wk-pallet-quantity input,.wk-pallet-quantity select{min-height:42px;font-size:16px;width:170px;max-width:100%}
.wk-pallet-quantity p{font-weight:700;margin:8px 0}.wk-pallet-quantity small{display:block;color:#52657c}
.wk-pallet-issued{margin-top:22px;padding-top:16px;border-top:2px solid #d8e4f4}.wk-pallet-issued h3{margin:0 0 10px}
.wk-pallet-issued .wk-pallet-list{max-height:160px;overflow:auto;display:grid;grid-template-columns:1fr}
.wk-pallet-list button{white-space:normal;overflow-wrap:anywhere;text-align:left}.wk-pallet-list button small{display:block;font-size:11px}
.wk-pallet-label{padding:12px;border:1px solid #8298b6;border-radius:6px;margin:10px 0;overflow-wrap:anywhere}.wk-pallet-label p{font-size:13px;margin:8px 0}
.wk-pallet-label strong{font-size:17px}.wk-pallet-label small{display:block;font-size:11px;margin-top:6px}.wk-pallet-qr{margin:12px auto;width:180px}.wk-pallet-qr img{max-width:100%}
