header a{color:white}main{max-width:1800px}.catalog-search{display:grid;grid-template-columns:1fr 1fr 2fr;gap:16px;border:1px solid #b8cbd5;border-radius:12px;background:white}.catalog-search label{min-width:0;justify-content:flex-start}.wide-table{overflow:auto}.wide-table table{min-width:1250px}.wide-table th,.wide-table td{white-space:nowrap;overflow-wrap:normal}.wide-table input[type=checkbox]{width:20px;height:20px}.wide-table input[type=number]{width:100px}.wide-table input[type=date]{width:140px}.picked{margin:32px 0;padding:20px;border:1px solid #a9c2ce;border-top:4px solid #076d83;border-radius:10px;background:#fff}.warning{color:#8b3d00;white-space:pre-line;background:#fff3d9;padding:12px}.warning:empty{display:none}#preview canvas{display:block;width:100%;height:auto;margin:12px auto;border:1px solid #ccdbe4}#saved{width:min(1000px,94vw)}#images img{max-width:100%;max-height:65vh;object-fit:contain}#documentRows input{box-sizing:border-box}#editor{width:min(1450px,94vw)}button:disabled{cursor:default}button{white-space:nowrap}#history button{margin:6px}.catalog-search input,.catalog-search select{min-width:0}@media(max-width:700px){.catalog-search{grid-template-columns:1fr}.picked{padding:12px}.toolbar{gap:8px}}
/* Keep product search and picked rows inside the available screen width. */
#results,#picked{min-width:0;width:100%;overflow-x:hidden}
.wide-table .product-list{min-width:0;width:100%;table-layout:fixed;font-size:12px}
.product-list col:nth-child(1){width:7%}
.product-list col:nth-child(2){width:8%}
.product-list col:nth-child(3){width:11%}
.product-list col:nth-child(4){width:8%}
.product-list col:nth-child(5),.product-list col:nth-child(6){width:12%}
.product-list col:nth-child(7){width:18%}
.product-list col:nth-child(8){width:3%}
.product-list col:nth-child(9){width:8%}
.product-list col:nth-child(10){width:7%}
.product-list col:nth-child(11){width:6%}
.wide-table .product-list th,.wide-table .product-list td{padding:9px 4px;box-sizing:border-box;overflow:hidden;white-space:nowrap}
.wide-table .product-list th{text-align:center;font-size:clamp(9px,0.95vw,13px)}
.product-cell{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-list .product-actions{text-align:center}
.product-list td button{max-width:100%;box-sizing:border-box;margin:0;padding:6px 4px;font-size:clamp(9px,0.8vw,11px);min-width:0}
.product-list input[type=checkbox]{width:16px;height:16px;padding:0;margin:0 3px 0 0;vertical-align:middle}
@media(max-width:1000px){.wide-table .product-list{font-size:10px}.wide-table .product-list th,.wide-table .product-list td{padding:8px 2px}}
#documentForm>.fields{align-items:start}
#documentForm>.fields label{justify-content:flex-start;font-size:12px;margin:6px 0;gap:6px}
#documentForm>.fields input{height:42px;box-sizing:border-box}
#documentRows th{text-align:center;font-size:12px}
#documentRows td{vertical-align:bottom}
#documentRows label{font-size:11px;line-height:16px;margin:0;gap:4px}
#documentRows small{display:block;font-size:11px;line-height:16px;margin-bottom:4px}
#documentRows .package-client{display:block;font-size:12px;line-height:18px;margin-bottom:4px}
#documentRows input{height:40px;box-sizing:border-box;margin:0;font-size:12px;max-width:100%}
#documentRows select{display:block;height:30px;width:100%;box-sizing:border-box;font-size:12px;padding:3px 6px;margin:0 0 4px}
#documentRows input[data-field=due]{display:block;min-width:150px;width:150px}
#documentRows input[data-field=packageLabel]{width:170px}

.wide-table .product-list td{text-align:center}
.wide-table .product-list td:nth-child(10){text-align:right}
.product-list .product-cell-full{text-overflow:clip}
