.dispatch-main{max-width:1540px}.dispatch-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.dispatch-layout{display:grid;grid-template-columns:295px minmax(0,1fr);gap:20px;align-items:start}.dispatch-orders .panel-heading{padding:21px 20px}.dispatch-search{padding:16px 18px;display:grid;gap:10px;border-bottom:1px solid #e9eef5}.dispatch-search .result-count{margin:0}.dispatch-order-card{display:block;width:100%;border:0;border-bottom:1px solid #edf0f5;background:#fff;text-align:left;padding:18px;color:#415674}.dispatch-order-card:hover{background:#f7faff}.dispatch-order-card[aria-current]{background:#edf3ff;box-shadow:inset 3px 0 #0a48db}.dispatch-order-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.dispatch-order-top strong{font:600 12px Arial,sans-serif}.dispatch-order-card p{font-size:11px;margin:9px 0 5px}.dispatch-order-card small{font-size:10px;color:#8393aa}.dispatch-detail>.panel-heading{padding:24px}.dispatch-detail-header{padding:25px;border-bottom:1px solid #e8edf4}.dispatch-detail-header h2{font:600 23px Arial,sans-serif;color:#173c76;margin:0}.dispatch-detail-header p{font-size:12px;color:#6c7f9a;line-height:1.8;margin:9px 0}.dispatch-heading-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.dispatch-order-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:10px;color:#8594a9}.dispatch-legend{padding:16px 24px;margin:0;color:#8190a6;font-size:10px;line-height:1.9}.dispatch-quantities{width:100%;border-collapse:collapse;text-align:left;font-size:11px}.dispatch-quantities th{background:#f8fafc;border-block:1px solid #e8edf4;color:#71819a;font-size:10px;font-weight:500;padding:12px 13px;white-space:nowrap}.dispatch-quantities td{padding:19px 13px;border-bottom:1px solid #edf0f5;color:#425a7c}.dispatch-quantities th:first-child,.dispatch-quantities td:first-child{padding-left:24px}.dispatch-quantities td:first-child{font-size:12px;font-weight:600;min-width:125px}.dispatch-quantities td:not(:first-child){font:600 14px Arial,sans-serif;text-align:center}.dispatch-quantities th:not(:first-child){text-align:center}.dispatch-quantities td.outstanding{color:#0a48db}.dispatch-quantities td small{display:block;font-size:9px;font-weight:400;color:#8a98ad;margin-top:4px}.dispatch-actions{padding:19px 24px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}.dispatch-actions .text-button{margin-left:auto}.dispatch-actions button:disabled{opacity:.45;cursor:not-allowed}.dispatch-history{padding:22px 24px;border-top:1px solid #e8edf4;background:#fafbfd}.dispatch-history-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.dispatch-history h3{font-size:14px;margin:0}.dispatch-history-heading>small{font-size:9px;color:#8c98ab}.dispatch-history-list{list-style:none;padding:0;margin:18px 0 0}.dispatch-history-list>li{border-left:2px solid #dce6f7;padding:0 0 20px 15px;position:relative}.dispatch-history-list>li:before{content:'';position:absolute;left:-5px;top:5px;width:8px;height:8px;border-radius:50%;background:#789ee5}.dispatch-history-list strong{font-size:11px;font-weight:600;color:#375881}.dispatch-history-list time{font-size:9px;color:#8797af;display:block;margin:3px 0 7px}.dispatch-history-list p{font-size:10px;color:#7286a2;line-height:1.9;margin:4px 0;overflow-wrap:anywhere}.dispatch-empty{font-size:11px;color:#8997ab;padding:20px 0;margin:0;line-height:1.9}.dispatch-form-row{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:14px;align-items:center;border:1px solid #e2e9f4;border-radius:8px;padding:15px;margin-bottom:12px}.dispatch-form-row strong{font-size:12px;color:#2e4b71;display:block;overflow-wrap:anywhere}.dispatch-form-row small{font-size:10px;color:#8a98aa;display:block;line-height:1.8;margin-top:5px}.dispatch-form-row .field{margin:0}.dispatch-form-row .field>span{font-size:10px}.dispatch-form-row input:disabled{background:#f3f5f8;color:#9aa7ba}.dispatch-form-row.correction{grid-template-columns:minmax(0,1fr) 90px 90px}.dispatch-link{display:inline-block;text-decoration:none}.state-badge.waiting{color:#78859a;background:#eff2f6}.state-badge.partial,.state-badge.returning{background:#fff4df;color:#92702c}
@media(max-width:1250px){.dispatch-layout{grid-template-columns:250px minmax(0,1fr);gap:14px}.dispatch-detail-header{padding:20px}.dispatch-quantities th,.dispatch-quantities td{padding:12px 8px}.dispatch-quantities th:first-child,.dispatch-quantities td:first-child{padding-left:18px}.dispatch-actions{padding:18px}.dispatch-history{padding:20px 18px}}
@media(max-width:1050px){.dispatch-layout{grid-template-columns:1fr}.dispatch-orders #dispatch-order-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.dispatch-search{grid-template-columns:minmax(0,1fr) 180px;align-items:center}.dispatch-search .result-count{grid-column:1/-1}.dispatch-orders .panel-heading{padding:18px}.dispatch-order-card:nth-child(odd){border-right:1px solid #edf0f5}}
@media(max-width:650px){.workspace-nav nav{flex-wrap:wrap}.workspace-nav nav a{flex-basis:40%}.dispatch-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.dispatch-stats>div{padding:13px 10px}.dispatch-stats>div>span{font-size:9px}.dispatch-stats strong{font-size:24px}.dispatch-stats strong small{font-size:10px;margin-left:3px}.dispatch-stats p{font-size:8px;line-height:1.8}.dispatch-search{grid-template-columns:1fr;padding:14px}.dispatch-order-card{padding:13px}.dispatch-order-top{flex-wrap:wrap}.dispatch-order-top strong{font-size:11px}.dispatch-order-card p{font-size:10px}.dispatch-order-card small{font-size:9px}.dispatch-detail-header{padding:18px 16px}.dispatch-detail-header h2{font-size:20px}.dispatch-detail-header p{font-size:11px}.dispatch-legend{padding:13px 16px}.dispatch-quantities th,.dispatch-quantities td{padding:13px 8px}.dispatch-quantities th:first-child,.dispatch-quantities td:first-child{padding-left:16px}.dispatch-quantities td:first-child{min-width:130px}.dispatch-table-scroll{overflow-x:auto}.dispatch-quantities{min-width:530px}.dispatch-actions{padding:16px}.dispatch-actions .text-button{width:100%;margin-left:0;text-align:left}.dispatch-history{padding:20px 16px}.dispatch-history-heading{align-items:start;flex-direction:column}.dispatch-form-row{grid-template-columns:minmax(0,1fr) 90px;padding:12px;gap:10px}.dispatch-form-row.correction{grid-template-columns:1fr 1fr}.dispatch-form-row.correction>div:first-child{grid-column:1/-1}}
.state-badge.not_started{color:#78859a;background:#eff2f6}.state-badge.partial_dispatch,.state-badge.partial_return{background:#fff4df;color:#92702c}.state-badge.dispatched{color:#127f75;background:#e4f6f1}.dispatch-history button:disabled{opacity:.45;cursor:not-allowed}
/* Small operational labels keep readable contrast on both white and blue-tinted rows. */
.dispatch-order-card small,.dispatch-order-meta,.dispatch-legend,.dispatch-quantities th,.dispatch-quantities td small,.dispatch-history-heading>small,.dispatch-history-list time,.dispatch-history-list p,.dispatch-empty,.dispatch-form-row small{color:#5c6e86}.state-badge.not_started{color:#5c6e86}.state-badge.partial_dispatch,.state-badge.partial_return{color:#795815}.state-badge.dispatched{color:#116f65}.state-badge.cancelled{color:#805149}
