#rail-batches[hidden], #batch-setup [hidden] {display:none!important}
.batch-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,290px);gap:20px;align-items:start}
#workspace .batch-layout .panel {margin:0}
.batch-options,.batch-range {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.batch-options label {display:flex;align-items:center;gap:9px;min-height:48px;padding:9px 13px;border:1px solid #bbcad7;border-radius:4px;cursor:pointer;color:#173955}
.batch-options label:has(:checked) {background:#edf4fa;border-color:#376b99}
.batch-options input {accent-color:#164b86;width:17px;height:17px;flex-shrink:0}
#workspace .batch-proof {border-top:4px solid #164b86;position:sticky;top:22px}
#batch-art {margin:15px auto 12px;max-width:205px}
#batch-art svg {width:100%;height:auto;display:block}
.batch-proof p,.batch-help,.batch-history article p,.batch-download p {color:#52677c;font-size:14px}
.batch-proof p {text-align:center}
.batch-help,.batch-download h2+p {margin:6px 0 18px}
.batch-row {display:grid;grid-template-columns:2.3em minmax(0,.8fr) minmax(0,1.2fr);align-items:center;gap:10px;border-top:1px solid #dbe4ec;padding:12px 0}
.batch-row:focus-within {border-color:#6694ba}
.batch-position {align-self:end;margin-bottom:11px;color:#335772;text-align:center;font-variant-numeric:tabular-nums}
.batch-row .field {min-width:0}
.batch-history article {display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;padding:15px 0;border-bottom:1px solid #dbe4ec}
.batch-history article:last-child {border-bottom:0}
.batch-history article>div {flex:1;min-width:min(100%,175px);overflow-wrap:anywhere}
#workspace .batch-history article :is(h2,h3) {font-size:16px;margin:0 0 4px}
#batch-progress:not(:empty) {margin-top:12px}
@media(max-width:1000px){.batch-layout {grid-template-columns:minmax(0,1fr) 200px}.batch-row {grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}.batch-position {grid-column:1/-1;margin:0;text-align:left;color:#52677c;font-size:13px}.batch-position::before {content:'Row '}}
@media(max-width:760px){.batch-layout {grid-template-columns:1fr}#workspace .batch-proof {position:static}.batch-row {grid-template-columns:1fr}.batch-options,.batch-range {gap:8px}.batch-options label {padding:8px;font-size:14px}}

#workspace .batch-mobile-proof {display:none}
.batch-preview-art {max-width:250px;margin:0 auto}
.batch-preview-art svg {width:100%;height:auto}
@media(max-width:760px){#workspace .batch-mobile-proof {display:inline-flex;justify-self:start}.batch-layout:has(#batch-rows) .batch-proof {display:none}}
#workspace .import-panel {max-width:880px}
#workspace .import-panel input[type=file] {width:100%;padding:8px;cursor:pointer}
.import-panel input::file-selector-button {background:#ecf3f9;color:#103457;border:1px solid #a9bdce;border-radius:3px;padding:8px 12px;margin-right:12px}
#import-columns:empty,.import-row-note:empty,#print-progress:empty,#label-start[hidden] {display:none}
.import-summary {background:#edf4fa;color:#193c60;padding:10px 14px;border-left:3px solid #37739e;margin:12px 0}
.import-row-note {grid-column:2/-1;color:#6b4618}
#workspace .batch-row input[aria-invalid=true] {border-color:#a04438}
.sheet-proof p {font-size:14px;color:#52677c;text-align:center}
#sheet-map {position:relative;width:min(100%,190px);margin:16px auto;background:white;border:1px solid #9aafc3;box-shadow:0 2px 6px #16365318}
#sheet-map span {position:absolute;display:grid;place-content:center;border:1px solid #c8d4df;background:#f9fbfc;color:#718293;font-size:11px;font-variant-numeric:tabular-nums}
#sheet-map .in-use {color:#0b2f5b;border-color:#91b2d1;background:#d8e9f7}
#label-total {font-weight:600;color:#0b2f5b}
@media(max-width:1000px){.import-row-note {grid-column:1/-1}}
#workspace .batch-output-actions,#workspace .batch-shortcuts {display:flex;flex-wrap:wrap;align-items:center;gap:10px}
#workspace .batch-history article>.batch-shortcuts {flex:0 1 auto;min-width:0}
#workspace .stock-field {min-width:0;padding:0;margin:0;border:0}
#workspace .stock-field legend {margin:0 0 10px;font-size:16px;font-weight:600}
.stock-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#workspace .stock-card {display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:9px 9px 12px;margin:0;border:1px solid #b1c3d3;border-radius:4px;background:#fff;color:#143556;cursor:pointer}
#workspace .stock-card:has(:checked) {border-color:#164b86;box-shadow:inset 0 0 0 1px #164b86;background:#f4f8fc}
#workspace .stock-card:focus-within {outline:2px solid #376d9e;outline-offset:2px}
#workspace .stock-illustration {display:grid;place-items:center;background:#eaf0f5;border-radius:2px;padding:10px;margin-bottom:4px}
#workspace .stock-illustration img {display:block;width:auto;height:111px;max-width:100%;object-fit:contain;filter:drop-shadow(0 1px 2px #17345225)}
#workspace .stock-choice {display:flex;gap:6px;align-items:center;line-height:1.3}
#workspace .stock-choice strong {font-size:14px;font-weight:600}
#workspace .stock-choice input {appearance:auto;position:static;margin:0;padding:0;width:15px;height:15px;min-height:0;flex:0 0 15px;accent-color:#164b86}
.stock-size,.stock-card small {font-size:13px;line-height:1.35}
.stock-card small {color:#53677b}
#workspace .sheet-proof {margin:0;align-self:start}
@media (min-width:761px) and (max-width:1200px){#workspace .print-layout {grid-template-columns:1fr}#workspace .print-layout .sheet-proof {width:min(100%,360px)}}
@media (max-width:600px){.stock-grid {grid-template-columns:1fr}#workspace .stock-card {display:grid;grid-template-columns:65px minmax(0,1fr);gap:3px 13px;align-items:center;padding:8px}.stock-illustration {grid-column:1;grid-row:1/4}#workspace .stock-illustration {padding:6px;margin:0}#workspace .stock-illustration img {height:62px}.stock-choice,.stock-size,.stock-card small {grid-column:2}.stock-size,.stock-card small {padding-left:21px}}
