:root{font-family:Arial,sans-serif;color:#26312e;background:#f6f8f7;font-size:14px;letter-spacing:0}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 12px;background:#fff;border:1px solid #bbc8c2;border-radius:5px;color:#26312e}button:hover{background:#edf3ef}button:disabled{opacity:.55;cursor:wait}.primary{background:#246349;color:white;border-color:#246349}.primary:hover{background:#194d38}.danger{color:#a32930}input,select,textarea{width:100%;padding:10px 11px;min-height:40px;border:1px solid #afbeb6;border-radius:4px;background:#fff;color:#222}input:focus,select:focus,button:focus-visible{outline:2px solid #27764f;outline-offset:2px}input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:#246349}input[type=number]{min-width:75px}label{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;font-weight:600}header{display:flex;align-items:center;gap:16px;padding:16px 24px;background:#fff;border-bottom:1px solid #d4ded8}header strong{font-size:22px}header strong span{font-size:14px;font-weight:400;margin-left:15px;color:#5b6d64}#identity{margin-left:auto}svg{width:18px;height:18px;flex-shrink:0}.icon{width:38px;height:38px;padding:8px}h1{font-size:24px;margin:0 0 5px}h2{font-size:18px;margin:0}p{line-height:1.45;margin:6px 0;color:#56675f}nav{display:flex;gap:6px;padding:12px 24px;border-bottom:1px solid #d4ded8;background:#fff;overflow:auto}nav button{border:0;white-space:nowrap}nav button.active{background:#e1eee7;color:#174f35}main{max-width:1460px;padding:24px;margin:auto}.heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.heading #tools,.toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.toolbar{margin-bottom:14px}.toolbar input{flex:1;min-width:160px;max-width:460px}.toolbar select{width:auto;max-width:100%}.banner{padding:9px 24px;background:#e5eff4;color:#2c5367;border-bottom:1px solid #bdccd4}.warning{background:#fff2d8;color:#765520;display:flex;gap:12px;align-items:center;flex-wrap:wrap}#message{padding:14px 24px;background:#ffe6e6;color:#8c202a;border-bottom:1px solid #e2b6b6}#message.success{background:#e0f0e5;color:#1e613e}.hidden{display:none!important}.login{max-width:390px;margin:85px auto;padding:0 16px}.login h1{margin-bottom:25px}.login button{width:100%;margin-top:10px}.tableWrap{overflow-x:auto;border-top:1px solid #ccd6d0;border-bottom:1px solid #ccd6d0;background:white}table{width:100%;border-collapse:collapse;text-align:left}th{padding:10px 12px;background:#edf2ef;color:#4b5a52;font-size:12px;white-space:nowrap}td{padding:12px;border-top:1px solid #e0e6e2;vertical-align:middle}tr.selected{background:#e1eee7}td.name{min-width:200px;max-width:480px;overflow-wrap:anywhere}.secondary{font-size:12px;color:#68766e;margin-top:4px}.badge{font-size:12px;background:#e5edf5;color:#385571;display:inline-block;padding:4px 7px;border-radius:3px;white-space:nowrap}.badge.own{background:#e3eee1;color:#376032}.badge.review{background:#fff0d4;color:#865c11}.empty{padding:55px 20px;text-align:center;color:#68776e}.split{display:grid;grid-template-columns:minmax(360px,1fr) minmax(310px,.72fr);gap:24px}.stationPanel{border-left:1px solid #ccd6d0;padding-left:24px;min-width:0}.stationPanel h2{margin:0 0 15px}.scanner{font-size:18px;padding:14px}.scannerForm{margin:15px 0}.qty{font-weight:700;font-variant-numeric:tabular-nums}.ready{color:#23683f}.muted{color:#727c75}.rowActions{display:flex;gap:5px}dialog{width:min(620px,calc(100% - 28px));max-height:90vh;padding:22px;border:1px solid #afbeb5;border-radius:7px;box-shadow:0 10px 50px #0003}dialog::backdrop{background:#0b201e66}.dialogHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px}.dialogHead h2{overflow-wrap:anywhere}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fields .full{grid-column:1/-1}.actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px;flex-wrap:wrap}.summary{padding:10px 0;margin:10px 0;border-top:1px solid #d3ded7;border-bottom:1px solid #d3ded7}.allocation{display:grid;grid-template-columns:minmax(180px,1fr) 90px 38px;gap:7px;align-items:center;margin:6px 0}.allocation input,.allocation select{min-width:0}iframe{width:100%;height:260px;border:1px solid #bbc8c2}.printSheet{background:#fff}.printSheet td{padding:8px}.printSheet select,.printSheet input{max-width:300px}.countTag{font-size:13px;font-weight:400;color:#67786e}.itemline{margin:3px 0}.nowrap{white-space:nowrap}.word{overflow-wrap:anywhere}@media(max-width:800px){main{padding:16px}.split{grid-template-columns:1fr}.stationPanel{border-left:0;border-top:1px solid #ccd6d0;padding:18px 0 0}header{padding:12px 16px;gap:8px}header strong{font-size:19px}header strong span{display:none}#identity{font-size:12px}nav{padding:9px 12px}.heading{align-items:flex-start;flex-wrap:wrap}h1{font-size:21px}.fields{grid-template-columns:1fr}.fields .full{grid-column:auto}td,th{padding:9px}.allocation{grid-template-columns:minmax(110px,1fr) 75px 38px}.tableWrap{max-width:100%}}@media print{header,nav,.banner,#message,#pending,.heading #tools,button,.toolbar,.actions,.allocation .icon{display:none!important}main{padding:0;max-width:none;background:#fff}body{background:#fff;font-size:11px}.tableWrap{overflow:visible}table{table-layout:fixed}td,th{overflow-wrap:anywhere;white-space:normal}input,select{border:0;padding:0;background:none}.heading{margin-bottom:10px}h1{font-size:18px}tr{break-inside:avoid}th{background:#eee!important}thead{display:table-header-group}}
.printOnly{display:none}#modalError{padding:10px;background:#fff0ee;border:1px solid #e0b6b0;margin-bottom:12px}@media print{.screenOnly{display:none!important}.printOnly{display:block}}
.split>div{min-width:0}
.pickError td{background:#fff0ee}.pickRowError{margin:6px 0;white-space:normal}.pickOrderItems{font-size:13px;white-space:normal;max-width:600px}

.manualAdd{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:10px;align-items:end;margin-bottom:18px}.manualAdd label{margin:0}.manualCheck{display:flex;flex-direction:row;align-items:center;gap:10px;margin-top:16px}.manualCheck input{flex:0 0 18px}.manualConflict{padding:12px 0;margin-bottom:16px;border-bottom:1px solid #dbb376}.manualConflict p{color:#805a1b}.manualAllocations{min-width:280px}.manualAllocations .allocation{grid-template-columns:minmax(130px,1fr) 85px 38px}.manualPrintAllocations{white-space:normal}#manualNewLines td input{width:100px}.manualAllocations p{white-space:normal}@media(max-width:520px){.manualAdd{grid-template-columns:minmax(0,1fr) 95px}.manualAdd button{grid-column:1/-1}.heading #tools button{max-width:100%;white-space:normal}.manualAllocations{min-width:260px}}@media print{.manualConflict{display:none}.manualAllocations{min-width:0}}
.manualTakenTitle{margin-top:20px;margin-bottom:10px}.manualView .heading>div:first-child{min-width:0}.manualView #title{overflow-wrap:anywhere}.manualSheet td:last-child{min-width:0}@media(max-width:650px){.manualSheet{overflow:visible}.manualSheet table,.manualSheet tbody{display:block}.manualSheet thead{display:none}.manualSheet tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #ccd6d0;padding:8px 0}.manualSheet td{border:0;min-width:0;max-width:none;overflow-wrap:anywhere}.manualSheet td.name,.manualSheet td:last-child{grid-column:1/-1}.manualSheet td[data-label]::before{content:attr(data-label);display:block;font-size:12px;font-weight:400;color:#56675f;margin-bottom:5px}.manualAllocations{min-width:0}.manualAllocations .allocation{grid-template-columns:minmax(0,1fr) 75px 38px}}
@media print{#manualPrintRoute th:nth-child(1){width:23%}#manualPrintRoute th:nth-child(2){width:45%}#manualPrintRoute .tableWrap{border:0}#manualPrintRoute h2{margin:20px 0 10px}}

.manualRoute table{table-layout:fixed}
.manualRoute th:first-child{width:32%}
.manualRoute th:last-child{width:180px}
.manualRoute td.name{min-width:0;max-width:none;overflow-wrap:anywhere}
.manualRouteAddress select{width:100%;min-width:0}
.manualRouteQuantity{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:7px}
.manualRouteQuantity input{width:100%;min-width:0}
.manualSummaryActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.manualTotals td:not(.name){white-space:normal}
@media(max-width:650px){
 .manualRoute tr{grid-template-columns:minmax(0,1fr)}
 .manualRoute td.name{grid-row:1}
 .manualRoute td{grid-column:1/-1}
 .manualRouteQuantity{grid-template-columns:minmax(0,110px) 38px}
 .manualTotals{overflow:visible}
 .manualTotals table,.manualTotals tbody{display:block}
 .manualTotals thead{display:none}
 .manualTotals tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #ccd6d0;padding:8px 0}
 .manualTotals td{border:0;min-width:0;max-width:none;overflow-wrap:anywhere;padding:8px}
 .manualTotals td.name,.manualTotals td:last-child{grid-column:1/-1}
 .manualTotals td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:#56675f;margin-bottom:4px}
}

.stationPanel .actions{flex-wrap:wrap}.stationPanel h2{font-size:20px;overflow-wrap:anywhere}.split>div,.stationPanel{min-width:0}.stationPanel input[type=number]{max-width:100%}
