/* Green/white operational workspace: one search row, one bounded table, one document. */
body.loading-workbench:has(.v232-workbench:not([hidden])){overflow:hidden}
.loading-workbench:has(.v232-workbench:not([hidden])) .workspace-content{padding:20px 24px 12px;min-width:0}
.v232-workbench:not([hidden]){display:flex;flex-direction:column;height:calc(100dvh - 135px);min-height:320px;max-width:none;margin:0;padding:0;overflow:visible}
.v232-workbench .page-heading{flex:none;gap:20px;padding:0 0 14px;align-items:center}.v232-workbench .page-heading h1{font-size:24px}.v232-workbench .page-heading>.row-actions{margin-left:auto;flex-wrap:nowrap}
.v232-workbench .wb-query{display:grid;grid-template-columns:minmax(240px,1fr) minmax(135px,180px) auto auto;gap:12px;align-items:end;margin:0;padding:12px 0 16px;border:0;background:transparent}
.v232-workbench .wb-query label{font-size:13px;display:grid;gap:6px}.v232-workbench input,.v232-workbench select{font-size:14px;min-height:40px;padding:8px 12px}.v232-workbench .wb-query>button{min-height:40px;margin:0}
.shipment-advanced{position:relative;align-self:end}.shipment-advanced>summary{cursor:pointer;min-height:40px;display:flex;align-items:center;padding:8px 14px;border:1px solid var(--line);border-radius:6px;font-size:14px;white-space:nowrap}.shipment-advanced[open]>.shipment-advanced-fields{display:grid}
.shipment-advanced-fields{position:absolute;z-index:20;right:0;top:46px;width:min(650px,calc(100vw - 80px));display:none;grid-template-columns:1fr 1fr;gap:14px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px;box-shadow:0 12px 32px #142d281a}
.shipment-table{flex:1;min-height:0;max-height:none!important;height:auto!important;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:8px 8px 0 0}
.v232-workbench .shipment-table table{width:100%;min-width:0;table-layout:fixed}.v232-workbench .shipment-table th{position:sticky;top:0;z-index:2;background:#f1f5f2}.v232-workbench .shipment-table td,.v232-workbench .shipment-table th{padding:12px 10px;font-size:14px;white-space:normal;overflow-wrap:anywhere}
.v232-workbench .shipment-table th:first-child{width:36px}.v232-workbench .shipment-table th:nth-child(2){width:18%}.v232-workbench .shipment-table th:nth-child(3){width:17%}.v232-workbench .shipment-table th:nth-child(4){width:12%}.v232-workbench .shipment-table th:nth-child(5),.v232-workbench .shipment-table th:nth-child(6){width:9%}.v232-workbench .shipment-table th:last-child{width:70px}
.v232-workbench .list-footer{flex:none;margin:0;padding:10px 12px;border:1px solid var(--line);border-top:0;min-height:54px;display:flex;align-items:center;justify-content:space-between}.shipment-page-size{display:flex;gap:6px;align-items:center;font-size:13px}.shipment-page-size select{min-height:32px;padding:4px}
.shipment-batch:not([hidden]){display:flex;align-items:center;gap:12px;background:var(--green-soft);padding:8px 12px;margin-bottom:10px}.shipment-batch span{margin-right:auto}.shipment-more{font-size:13px;position:relative}.shipment-more summary{cursor:pointer;min-height:36px;display:flex;align-items:center}.shipment-more[open] button{position:absolute;z-index:5;right:0;min-width:150px;background:#fff;color:var(--ink);box-shadow:0 8px 24px #17362b22}.shipment-flags span{display:block;color:var(--amber);font-size:12px;line-height:1.7}
.shipment-state-READY{color:var(--green);background:var(--green-soft)}.shipment-state-LOADING{color:#715719;background:#fbf1db}.shipment-state-SHIPPED{color:#466158;background:#edf2ef}
body.loading-workbench:has(.v232-workbench:not([hidden])) .workspace-footer{display:none}
#v231Document.shipment-document{width:min(94vw,1440px);height:min(90dvh,1050px);max-height:90dvh}
.shipment-document .v231-shell{display:flex;flex-direction:column}.shipment-document .v231-header{flex:none;padding:16px 22px}.shipment-document .v231-body{flex:1;min-height:0;padding:16px 22px}.shipment-document .v231-shell>footer{flex:none}.shipment-document .v231-header h2{font-size:21px}.shipment-document .v231-quantities{gap:48px;margin-top:12px}.shipment-document .v231-quantities strong{font-size:26px}.shipment-document .v231-tabs{display:none!important}
.shipment-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.shipment-section-title h3{margin:0;font-size:16px}.shipment-section-title span{font-size:13px;color:var(--muted)}.shipment-document .v231-body table{margin:0;width:100%;font-variant-numeric:tabular-nums}.shipment-document .v231-body th,.shipment-document .v231-body td{font-size:14px;padding:11px 10px}.shipment-asns>thead th:first-child{width:32%}.shipment-asns>thead th:nth-child(5){width:13%}.shipment-asns>thead th:last-child{width:68px}.shipment-parts{background:#f7f9f7}.shipment-parts th{font-size:12px!important}.shipment-parts td:first-child{width:22%}.shipment-parts input{max-width:140px;font-size:15px;text-align:right;padding:8px;min-height:40px}.shipment-parts input[aria-invalid=true]{border-color:var(--red);background:#fff3f3}.shipment-quantity-label{margin:0!important}
.shipment-auxiliary{margin-top:16px;display:grid;gap:8px}.shipment-document .shipment-auxiliary>details{margin:0;padding:12px 14px}.shipment-auxiliary summary{font-size:14px;min-height:30px}.shipment-auxiliary details[open]>div{margin-top:10px}.shipment-auxiliary #sitePanel{margin:0}.shipment-alert{padding:12px 14px;color:var(--red);background:#fff1f1;border-left:3px solid var(--red);margin:0 0 14px}
#shipmentAdjustment,#shipmentFinal{margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fafcf9}#shipmentFinal h3{margin:0 0 10px}#shipmentFinal label{display:grid;gap:6px;margin:12px 0}#shipmentFinal label.consent{display:flex;align-items:flex-start;gap:10px}#shipmentFinal input[type=checkbox]{margin:2px 0;flex-shrink:0}#shipmentPaperStatus{font-size:13px;color:var(--muted);margin:10px 0}#shipmentConservation{font-size:13px;line-height:1.8}#shipmentPdf{display:inline-block;margin:8px 0;text-decoration:underline}
.shipment-document .v231-footer{padding:12px 22px}.shipment-document .v231-footer button{font-size:14px;white-space:nowrap;min-height:42px}.shipment-document .v231-footer p{font-size:12px}.shipment-document [hidden],.v232-workbench [hidden]{display:none!important}
@media(max-width:1100px){.loading-workbench:has(.v232-workbench:not([hidden])) .workspace-content{padding:14px}.v232-workbench .shipment-table td,.v232-workbench .shipment-table th{font-size:13px;padding:10px 7px}.v232-workbench .wb-query{grid-template-columns:minmax(180px,1fr) 130px auto auto}.shipment-document .v231-footer{gap:8px;padding:10px 16px}.shipment-document .v231-footer p{flex-basis:100%}.shipment-document .v231-quantities{gap:32px}}
@media(max-width:800px){.v232-workbench .page-heading{flex-wrap:wrap;gap:10px}.v232-workbench .page-heading>.row-actions{margin-left:0}.v232-workbench .wb-query{grid-template-columns:minmax(160px,1fr) 120px auto}.shipment-advanced{grid-column:1/-1;justify-self:end}.v232-workbench:not([hidden]){height:calc(100dvh - 120px)}.shipment-document .v231-header,.shipment-document .v231-body{padding:12px}.shipment-document .v231-quantities{gap:24px}.shipment-document .v231-quantities strong{font-size:23px}.shipment-document .v231-body th,.shipment-document .v231-body td{font-size:12px;padding:8px 5px}.shipment-asns>thead th:first-child{width:30%}.shipment-document .v231-footer .row-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.shipment-document *,.v232-workbench *{scroll-behavior:auto!important;transition:none!important}}

/* Override the older, more specific compact toolbar without affecting other pages. */
#shipmentManagement.v232-workbench .final-toolstrip{display:block;flex:none;padding:0}
#shipmentManagement.v232-workbench .final-toolstrip .wb-query{width:100%;display:grid;grid-template-columns:minmax(220px,1fr) 170px auto auto;gap:12px;padding:8px 0 12px}
#shipmentManagement.v232-workbench .final-toolstrip .wb-query input,#shipmentManagement.v232-workbench .final-toolstrip .wb-query select{min-height:40px;margin:0;padding:8px 12px;font-size:14px}
#shipmentManagement.v232-workbench .final-toolstrip .wb-query button{min-height:40px;font-size:14px;padding:8px 16px}
#shipmentManagement.v232-workbench .list-footer{padding:8px 12px;min-height:52px;gap:14px}
#shipmentManagement.v232-workbench .shipment-page-size{white-space:nowrap;display:flex;gap:6px;align-items:center}
#shipmentManagement.v232-workbench .shipment-page-size select{min-width:60px;width:60px;margin:0;min-height:32px;font-size:13px;padding:4px}
body.loading-workbench:has(.v232-workbench:not([hidden])) .app-footnote{display:none!important}
@media(max-width:1100px){#shipmentManagement.v232-workbench .final-toolstrip .wb-query{grid-template-columns:minmax(160px,1fr) 130px auto auto;gap:8px}}
body.loading-workbench:has(.v232-workbench:not([hidden])) main{min-height:0}
body.loading-workbench:has(.v232-workbench:not([hidden])) .workspace-content>footer{display:none}
/* Final operational document: direct quantities and dates share the same source rows. */
.v232-workbench [data-wb-row]{cursor:pointer}.v232-workbench [data-wb-row]:hover{background:#f1f7f2}.v232-workbench [data-wb-row]:focus-visible{outline:3px solid var(--green);outline-offset:-3px}.v232-workbench .shipment-table th:last-child{width:16%}
.shipment-document .v231-quantities{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.shipment-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 22px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}.shipment-meta-grid>div{display:grid;gap:5px}.shipment-meta-grid span{font-size:12px;color:var(--muted)}.shipment-meta-grid strong{font-size:14px;overflow-wrap:anywhere;font-weight:500}.shipment-asn-card{margin:8px 0;border:1px solid var(--line);border-radius:6px;background:#fff}.shipment-asn-card>summary{display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:12px;align-items:center;min-height:54px;padding:12px;cursor:pointer;font-size:13px;background:#f2f7f2}.shipment-asn-card>summary::before{display:none}.shipment-asn-card summary strong::before{content:'▸ ';color:var(--green)}.shipment-asn-card[open] summary strong::before{content:'▾ '}.shipment-part-scroll{overflow-x:auto;overscroll-behavior:contain}.shipment-part-scroll table{min-width:880px}.shipment-dates{min-width:260px}.shipment-date{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;padding:5px 0;font-size:12px}.shipment-date>span:nth-child(2){grid-column:1;font-variant-numeric:tabular-nums;color:var(--muted)}.shipment-date>button{grid-column:2;grid-row:1/3;min-height:32px;font-size:12px;padding:4px 8px}.shipment-section-title [role=group]{display:flex;gap:6px}.shipment-section-title button{font-size:13px;min-height:36px;padding:6px 12px}.shipment-section-title [aria-pressed=true]{background:var(--green-soft);color:var(--green);border-color:var(--green)}#shipmentBoxBody code{word-break:break-all;white-space:normal;font-size:12px}#shipmentAdjustment textarea{width:100%}
@media(max-width:1000px){.shipment-meta-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shipment-asn-card>summary{grid-template-columns:1.4fr 1fr 1fr}.shipment-asn-card>summary>span:nth-last-child(-n+2){font-size:12px}.shipment-document .v231-quantities{gap:10px}.shipment-document .v231-quantities strong{font-size:23px}}
@media(max-width:600px){.shipment-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shipment-document .v231-quantities{grid-template-columns:repeat(2,minmax(0,1fr))}.shipment-section-title{flex-wrap:wrap;gap:10px}.shipment-asn-card>summary{grid-template-columns:1fr 1fr}}
