.reference-page .instant-summary{display:flex;align-items:center;gap:10px;margin:14px 0}.instant-summary .info-banner{flex:1;margin:0}.instant-summary .totals{display:flex;gap:8px;align-items:center;white-space:nowrap;font-size:11px;color:#667085}.totals strong{padding:7px 9px;background:white;border:1px solid #e1e7ef;border-radius:5px;color:#1d2738;font-size:13px}.totals b{font-size:10px;color:#1677ff;margin-right:6px}.reference-page .instant-panel{padding:0;overflow:hidden}.reference-page .instant-table{width:2420px;min-width:2420px}.reference-page .instant-table td{height:55px;padding:7px 8px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reference-page .instant-table th{height:35px}.reference-page .instant-table .fixed-action{position:sticky;right:0;background:white;z-index:1;box-shadow:-3px 0 6px #00000005}.reference-page .instant-table th.fixed-action{background:#fafafa;z-index:3}.reference-page .instant-table .status-cancel{color:#ff4d4f;background:#fff1f0;border-radius:3px;padding:3px 8px;font-size:11px}.reference-page .instant-table .address{max-width:110px;overflow:hidden;text-overflow:ellipsis}.reference-page .instant-table button:disabled{color:#aaa}.reference-page .instant-panel .pager{padding:14px}.reference-page .instant-table input[type=checkbox]{width:14px;height:14px;margin:0;accent-color:#1677ff}.reference-page .instant-sort{border:0;background:none;font:inherit;color:inherit}.reference-page .instant-filters>*{flex:1;min-width:120px}.reference-page .instant-filters .date-range{min-width:250px}.reference-page .instant-table .subtext{overflow:hidden;text-overflow:ellipsis;max-width:150px}@media(max-width:1300px){.instant-summary{flex-wrap:wrap}.instant-summary .info-banner{flex-basis:100%}}
.reference-page .instant-table{width:2470px;min-width:2470px}.reference-page .instant-table td:first-child,.reference-page .instant-table th:first-child{padding-left:6px;padding-right:4px;text-overflow:clip}.instant-panel .grid-scroll::-webkit-scrollbar{height:12px;width:10px}.instant-panel .grid-scroll::-webkit-scrollbar-track{background:#f1f1f1}.instant-panel .grid-scroll::-webkit-scrollbar-thumb{background:#bbb;border:2px solid #f1f1f1;border-radius:8px}
.reference-page .instant-table{width:2840px;min-width:2840px}.reference-page .instant-table .service-cell{white-space:normal;line-height:1.6}.instant-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;text-align:left}.instant-actions button{text-align:left;white-space:nowrap}.reference-page .instant-table td.fixed-action{overflow:visible;padding:8px 10px;background:#fff}.instant-warning{padding:14px;background:#fff7e6;border:1px solid #ffe0a3;border-radius:6px;margin:14px 0;line-height:1.7}.driver-option{display:flex!important;gap:10px;padding:12px;background:#f5f7fa;border:1px solid #e3e8f0;border-radius:5px}.driver-option input{width:16px!important;flex:none}.driver-option span{line-height:1.8}.instant-timeline{list-style:none;padding-left:16px;border-left:2px solid #dce6f5;max-height:55vh;overflow:auto}.instant-timeline li{padding:0 0 22px 12px;line-height:1.7}.instant-timeline p{font-size:12px;color:#7b8494}.ref-dialog{max-height:88vh;overflow:auto}.ref-dialog [hidden]{display:none!important}

.reference-page .instant-table{width:2891px;min-width:2891px}.instant-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-height:30px}.instant-actions .link{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;font-size:12px;white-space:nowrap;line-height:24px}.instant-actions .link:focus-visible{outline:2px solid #8cb8ff;outline-offset:3px}

/* Compact row actions; scoped right-side forms preserve the shared admin shell. */
.reference-page .instant-table .fixed-action{width:144px;max-width:144px}
.instant-actions{justify-content:flex-start}
.instant-drawer-mask{justify-content:flex-end;align-items:stretch;background:#14213d33}
.reference-page .instant-drawer-mask .ref-dialog{width:460px;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;padding:0;display:flex;flex-direction:column;overflow:hidden;box-shadow:-8px 0 36px #23365020}
.instant-drawer-head{flex:none;padding:22px 24px;border-bottom:1px solid #edf0f4;display:flex;justify-content:space-between;align-items:center}
.instant-drawer-head h3{font-size:18px;margin:0;font-weight:600}.instant-drawer-head .close{float:none;margin:0;padding:2px 0 2px 12px}
.instant-drawer-content{flex:1;min-height:0;overflow:auto;padding:22px 24px}
.instant-context{border-bottom:1px solid #edf0f4;padding-bottom:18px;margin-bottom:22px}.instant-context>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.instant-context strong{font-size:13px;font-weight:550}.instant-context p{font-size:12px;color:#8490a3;margin:10px 0 0}.instant-state{font-size:11px;background:#edf4ff;color:#3575d7;padding:3px 7px;border-radius:3px}
.instant-drawer-content>label{margin:22px 0 12px;line-height:2.1;font-weight:500}.instant-drawer-content select{display:block;width:100%;height:38px;margin-top:6px}.instant-drawer-content .subtext{margin-top:12px;line-height:1.9;color:#8591a3}
.instant-drawer-footer{flex:none;padding:14px 24px 18px;border-top:1px solid #e9edf3;background:white}.instant-drawer-footer .actions{margin-top:6px}.instant-drawer-footer .error:empty{display:none}
.instant-drawer-content .driver-option{padding:18px 0;margin:0;border:0;border-bottom:1px solid #edf0f4;background:transparent;border-radius:0;align-items:flex-start;gap:12px}.instant-drawer-content .driver-option input{height:16px;margin-top:4px;accent-color:#2468f2}.instant-drawer-content .driver-details{flex:1;margin:0}.driver-details>b{font-size:14px;font-weight:550}.driver-details small{display:block;color:#8996a8;font-size:11px;font-weight:400}.instant-drawer-content .vehicle-details{display:grid;grid-template-columns:1.6fr 1fr;gap:12px;margin:16px 0 0;font-size:12px}.vehicle-details>span:last-child{grid-column:1/-1}.vehicle-details small{margin-bottom:4px}
.dispatch-choice{border:0;padding:0;margin:24px 0 0}.dispatch-choice legend{font-size:13px;font-weight:500;margin-bottom:12px}.reference-page .dispatch-choice label{display:inline-flex;align-items:center;gap:7px;margin:0 18px 0 0;font-weight:400}.reference-page .dispatch-choice input{width:15px;height:15px;accent-color:#2468f2;margin:0}.instant-drawer-content .instant-timeline{max-height:none}
.instant-readonly{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;margin-bottom:10px;background:#f7f9fc;border:1px solid #e8edf4;border-radius:6px;font-size:13px}.instant-readonly span{color:#7b8798}.instant-readonly b{color:#1d2738;font-weight:550}
.ref-dialog .dispatch-choice{display:block}.ref-dialog .dispatch-choice label{display:inline-flex;align-items:center;gap:7px;margin:0 18px 0 0;font-weight:400}.ref-dialog .dispatch-choice input{width:15px;height:15px;accent-color:#2468f2;margin:0}


.instant-table tbody [data-order] td:not(:first-child):not(.fixed-action){cursor:pointer}
.reference-page .instant-table tbody [data-order]:hover td:not(.fixed-action){background:#f5f8ff}
.instant-detail-mask{position:fixed;inset:0;z-index:90;display:flex;justify-content:flex-end;background:#14213d33}
.instant-detail{display:flex;flex-direction:column;width:min(560px,100vw);height:100dvh;background:#fff;box-shadow:-8px 0 36px #23365020;color:#1d2738}
.instant-detail .close{border:0;background:none;color:#667085;font-size:24px;line-height:22px;cursor:pointer}
.instant-detail-summary{padding:18px 24px 12px}
.instant-detail-order,.instant-detail-bill,.instant-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.instant-detail-order>span:first-child,.instant-order-number-label,.instant-detail-bill{color:#667085;font-size:12px}
.instant-detail-order strong,.instant-detail-bill strong{color:#1d2738}
.instant-detail-bill{margin-top:12px;gap:8px 20px}
.instant-detail-actions{margin-top:16px}
.reference-page .instant-detail-actions .btn{padding:0 10px;font-size:12px}
.reference-page .instant-detail .instant-detail-tabs{flex:none;margin:0;padding:0 24px;gap:28px}
.instant-detail-body{flex:1;min-height:0;overflow:auto;padding:22px 24px}
#instant-detail-body[aria-labelledby="instant-tab-address"]{background:#f5f7fa}
.instant-address-card{background:#fff;border:1px solid #e8edf4;border-radius:8px;padding:16px 18px}
.instant-address-card header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px}
.instant-address-card h4{position:relative;margin:0;padding-left:11px;font-size:15px}
.instant-address-card h4::before{content:'';position:absolute;inset:3px auto 3px 0;width:3px;border-radius:2px;background:#1677ff}
.reference-page .instant-address-card .btn{padding:0 10px;color:#1677ff;font-size:12px}
.instant-address-stops{list-style:none;margin:16px 0 0;padding:0}
.instant-address-stops li{position:relative;display:grid;grid-template-columns:24px 1fr;gap:12px;padding-bottom:20px}
.instant-address-stops li:not(:last-child)::before{content:'';position:absolute;left:11.5px;top:24px;bottom:0;width:1px;background:#e1e7ef}
.instant-address-stops li:last-child{padding-bottom:0}
.instant-stop-badge{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;color:#fff;background:#1677ff;font-size:12px;font-weight:600}
.instant-stop-badge.waypoint{background:#e48b00}
.instant-stop-badge.dropoff{background:#389e27}
.instant-stop-info strong{font-size:13px;line-height:24px}
.instant-stop-info p{margin:3px 0 0;line-height:1.6;overflow-wrap:anywhere}
.instant-stop-contact{display:grid;gap:2px;margin-top:7px;font-size:13px}
.instant-stop-contact small{color:#667085;font-size:12px}
.instant-detail .instant-timeline{max-height:none;overflow:visible;border:0;margin:0;padding:0}
.instant-detail .instant-timeline li{position:relative;padding:0 0 22px 24px}
.instant-detail .instant-timeline li::before{content:'';position:absolute;left:3px;top:8px;width:8px;height:8px;border-radius:50%;background:#1677ff}
.instant-detail .instant-timeline li:not(:last-child)::after{content:'';position:absolute;left:6.5px;top:21px;bottom:0;width:1px;background:#bdd8ff}
.instant-detail .instant-timeline li:first-child::before{background:#f97316}
.instant-detail .instant-timeline li:first-child>b{color:#c74e0a}
.instant-detail .instant-timeline p{margin:2px 0 0;color:#667085}
.instant-detail .instant-timeline .instant-log-detail{font-size:12px;color:#707b8d;overflow-wrap:anywhere}
.instant-pod{display:block;margin-top:8px;padding:0;border:1px solid #e1e7ef;border-radius:5px;overflow:hidden;background:#f5f7fa}
.instant-pod img{display:block;width:106px;height:78px;object-fit:cover}
.instant-proof-viewer{border:0;border-radius:8px;padding:0;max-width:min(850px,calc(100vw - 36px));background:#fff;color:#1d2738}
.instant-proof-viewer::backdrop{background:#0c142cbf}
.instant-proof-viewer header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px}
.instant-proof-viewer button{border:0;background:none;color:#667085;font-size:24px}
.instant-proof-viewer img{display:block;max-width:100%;max-height:76vh;object-fit:contain}

.reference-page .instant-table .instant-order-id{color:#1677ff;font-size:13px}
.instant-order-id:hover{text-decoration:underline}

/* Order actions use the detail drawer's footprint when opened from it. */
body[data-module="instant"]{--instant-detail-width:min(560px,100vw)}
.instant-detail{width:var(--instant-detail-width)}
.instant-detail:focus{outline:none}
.ref-mask.instant-detail-action-mask{justify-content:flex-end;align-items:stretch;background:transparent}
.reference-page .instant-detail-action-mask .ref-dialog{width:var(--instant-detail-width);max-width:100vw;height:100dvh;max-height:100dvh;padding:0;box-shadow:none}
.instant-detail-action-mask .instant-drawer-content{background:#fff}
.instant-drawer-content textarea{width:100%;min-height:95px}
.instant-field-label{display:block;margin-bottom:6px}
.instant-detail-actions:empty{display:none}

.instant-switch-mask{--instant-modal-width:480px}
.instant-assign-mask{--instant-modal-width:980px}
.reference-page :is(.instant-assign-mask,.instant-switch-mask) .ref-dialog{width:min(var(--instant-modal-width),calc(100vw - 32px));max-width:none;max-height:90dvh;padding:0;display:flex;flex-direction:column;overflow:hidden;border-radius:10px}
:is(.instant-assign-mask,.instant-switch-mask) .ref-dialog:focus{outline:none}
.instant-switch-mask .instant-drawer-head{padding:16px 22px}
.instant-switch-mask .instant-drawer-content{padding:16px 22px}
.instant-switch-mask .instant-drawer-footer{padding:10px 22px 14px}
.instant-switch-mask .instant-context{padding-bottom:12px;margin-bottom:14px}
.instant-switch-mask .instant-warning{margin:12px 0 0}
.instant-assign-mask .instant-drawer-head{padding:19px 24px 8px;border:0}
.instant-assign-mask .instant-drawer-content{padding:0 24px 6px}
.instant-assign-mask .instant-drawer-footer{padding:8px 24px 20px;border:0}
.instant-assign-mask .instant-context{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;margin:0;padding:6px 0;border:0}
.instant-assign-mask .instant-context p{margin:0}
.instant-assign-hint{line-height:1.45;font-size:12px;color:#667085;margin:4px 0 8px}
.instant-assign-current strong{margin-left:5px;color:#344054}
.instant-driver-filters{display:grid;grid-template-columns:minmax(184px,1.6fr) repeat(4,minmax(0,1fr)) auto;align-items:end;gap:10px;margin:10px 0 12px}
.instant-driver-filters>.search{min-width:0}
.instant-driver-filters #driver-selected{font-size:12px;color:#667085;white-space:nowrap;line-height:34px}
.instant-assign-mask .instant-driver-filters label{display:block;margin:0;color:#344054;font-size:12px}
.instant-driver-filters label span{display:block;margin:0 0 4px}
.instant-assign-mask .instant-driver-filters :is(select,input){width:100%;height:34px;margin:0}
#driver-table{overflow:auto;max-height:min(41dvh,355px);border:1px solid #edf0f4;border-radius:8px}
.driver-table{width:100%;min-width:790px;table-layout:fixed;border-collapse:collapse}
.driver-select-col{width:32px}.driver-name-col{width:16%}.driver-phone-col{width:14%}.driver-organization-col{width:12%}.driver-fleet-col{width:19%}.driver-state-col{width:10%}.driver-plate-col{width:9%}
.driver-table th{position:sticky;top:0;height:38px;padding:0 10px;background:#f7f8fa;color:#344054;font-size:12px;z-index:1}
.instant-assign-mask .driver-table td{height:49px;padding:7px 10px;vertical-align:middle;border-bottom:1px solid #edf0f4;color:#1d2738;font-size:13px;overflow-wrap:anywhere;line-height:1.45}
.driver-table tbody tr:last-child td{border-bottom:0}
.driver-table tbody tr:has(input):hover,.driver-table tbody tr:has(input:checked){background:#f2f7ff}
.driver-table th:first-child,.instant-assign-mask .driver-table td:first-child{padding:0 0 0 10px}
.driver-table td.empty{height:85px;text-align:center;color:#667085}
.driver-table td small{display:block;font-size:11px;color:#667085;margin-top:3px}
.driver-table input[type=radio]{width:15px;height:15px;accent-color:#2468f2;margin:0}
.instant-fleet-active{display:inline-block;padding:2px 6px;color:#389e0d;background:#f6ffed;border-radius:4px;font-size:11px}
.instant-driver-pager{padding:8px 0 0;justify-content:flex-end}
@media(max-width:700px){.instant-driver-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.instant-driver-filters>.search{grid-column:1/-1}}

.instant-driver-filters>.search :is(input,button){height:34px}

.instant-node-time{margin:20px 0 14px}
.instant-node-time .instant-field-label{font-size:13px;font-weight:500}
.instant-node-time small{color:#8490a3;font-weight:400}
.instant-time-trigger{display:flex;justify-content:space-between;align-items:center;width:100%;height:38px;background:#fff;border:1px solid #d9d9d9;border-radius:5px;padding:0 10px;text-align:left;font:inherit;color:#344054}
.instant-time-trigger[aria-expanded=true]{border-color:#1677ff;box-shadow:0 0 0 2px #1677ff12}
.instant-time-trigger>span:last-child{color:#98a2b3}
.instant-time-panel{width:min(100%,380px);border:1px solid #e4e7ec;border-radius:6px;box-shadow:0 5px 18px #1d29391a;background:#fff;margin-top:4px;font-size:12px;overflow:hidden}
.instant-time-picker{display:grid;grid-template-columns:minmax(0,1fr) 86px}
.instant-calendar{min-width:0}
.instant-calendar header{display:flex;align-items:center;padding:8px;gap:3px;border-bottom:1px solid #f0f1f3}
.instant-calendar header strong{flex:1;text-align:center}
.instant-time-panel button:not(.btn){border:0;background:transparent;color:#344054;font:inherit;border-radius:3px;padding:0;cursor:pointer}
.instant-calendar header button{width:20px;height:24px}
.instant-calendar-week,.instant-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;padding:4px 10px}
.instant-calendar-week span{text-align:center;line-height:26px}
.instant-calendar-days button{height:28px;min-width:0}
.instant-time-panel button:disabled{color:#bfc3ca;background:#f8f8f8;cursor:not-allowed;opacity:1}
.instant-time-panel button.adjacent{color:#a3a9b5}
.instant-time-panel button.selected{color:#1677ff;background:#edf4ff;outline:1px solid #1677ff;outline-offset:-1px}
.instant-time-panel button:hover:not(:disabled){background:#edf4ff}
.instant-clock{display:grid;grid-template-columns:1fr 1fr;border-left:1px solid #f0f1f3;min-width:0;padding-top:42px}
.instant-time-unit{height:220px;position:relative;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}
.instant-time-unit button{display:block;width:100%;height:28px}
.instant-time-current{border-top:1px solid #f0f1f3;padding:8px 10px}
.instant-time-current button{width:100%;height:28px;border:1px solid #d9d9d9!important}
.instant-time-panel footer{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #f0f1f3;padding:8px 10px}
.instant-time-panel footer .btn{height:28px!important;padding:0 12px}
.instant-time-error{color:#c62828;line-height:1.5;font-size:11px}
[data-proof-preview] img{display:block;width:106px;height:78px;object-fit:cover;border-radius:5px;margin-top:8px}

.instant-stop-context{font-size:12px;line-height:1.7;color:#667085}
.instant-pod-gallery,.instant-pod-upload{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.instant-pod-gallery .instant-pod{margin:0}
.instant-pod-upload>div{position:relative}
.instant-pod-upload img,.instant-pod-gallery>img{display:block;width:94px;height:72px;object-fit:cover;border-radius:5px}
.instant-pod-upload button{position:absolute;right:2px;top:2px;width:21px;height:21px;border:0;border-radius:50%;background:#fff;color:#344054;font-size:18px;line-height:18px;box-shadow:0 1px 5px #0003}

.instant-proof-error{font-size:12px;color:#c62828;margin:6px 0}

/* Keep the expanded order filters aligned at every desktop width. */
.reference-page .toolbar.instant-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.reference-page .instant-filters>*{min-width:0;width:100%}
.reference-page .instant-filters .date-range{grid-column:span 2;min-width:0}
.reference-page .instant-filters .date-range input{width:0;flex:1;min-width:0}
@media(max-width:1200px){.reference-page .toolbar.instant-filters{grid-template-columns:repeat(4,minmax(0,1fr))}}
