body{background:#f3f6f8;color:#163d55;font:15px/1.65 Tahoma,Arial,sans-serif}main{max-width:1450px;padding:24px 32px}header h1{font-size:23px;margin:0}header{background:#fff;padding:18px;border-bottom:1px solid #d4e0e8}nav{gap:8px}nav a,nav button{display:inline-block;text-decoration:none;text-align:center;flex:1;min-width:140px;background:white;color:#285976;border:1px solid #c2d3df;border-radius:6px;padding:11px 18px}nav button.active,nav a.active{background:#193e52;color:white}.banner{font-size:12px;padding:4px;background:#f5efd8}button{background:#17485f;border-radius:6px}input,select,textarea{font:inherit;border:1px solid #bed0dc;border-radius:5px;padding:9px;max-width:100%}input:not(:disabled),textarea:not(:disabled){background:#fff9e3}textarea{width:100%;resize:vertical}input:disabled,textarea:disabled{background:#edf2f5;color:#526b7a}.toolbar{justify-content:flex-start;margin:14px 0}.gard-scroll{overflow:auto;border:1px solid #d2dfe8;border-radius:8px}.gard-table{border-collapse:collapse;width:100%;min-width:1050px;table-layout:fixed;background:#fff}.gard-table th{background:#e6eef4;font-size:13px;position:sticky;top:0;z-index:1}.gard-table td,.gard-table th{border:1px solid #dce6ed;padding:8px;text-align:center;vertical-align:middle}.gard-table th:nth-child(1){width:90px}.gard-table th:nth-child(2){width:200px}.gard-table th:nth-child(3){width:55px}.gard-table th:last-child{width:155px}.gard-table article{margin:0;padding:0;border:0;background:none;font-size:14px}.gard-table article h3{font-size:14px}.gard-table input[type=number]{width:100%;min-width:65px}.gard-table textarea{min-height:52px}.gard-table .proposal{background:#f0f7fb;font-weight:bold}.gard-table .muted{font-size:12px;color:#667f90}.gard-table tr.conflict td{background:#fff0d6}.notice{background:#e7f1f6;padding:12px 16px;border-radius:6px}.empty{background:#fff;padding:24px;border:1px solid #d2dfe8;border-radius:8px}#phase{font-size:17px}#deadline,#coverage{font-size:13px}#bookingEditor{background:#eff6fa;border:1px solid #c1d3df;padding:18px;border-radius:8px}#bookingForm{max-width:none}.booking-head,.product-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product-fields{grid-template-columns:3fr 1fr 1fr}.booking-component{background:white;padding:18px;margin:14px 0;border:1px solid #c3d4df;border-radius:8px}.booking-component header{padding:0;border:0}.booking-component .remove{background:#b52720;padding:7px 12px}.dropzone{border:1px dashed #82aac1;border-radius:6px;padding:12px;margin-top:12px;background:#fff;outline:none}.dropzone:focus,.dropzone.dragover{outline:2px solid #177e70;background:#eef8f5}.photo-list{display:flex;flex-wrap:wrap;gap:12px}.photo-list img{width:100px;height:90px;object-fit:contain}.photo-list figure{margin:8px 0}.photo-list button{padding:3px 8px;font-size:12px}.book-card{background:#fff;border:1px solid #cfdee8}.book-card h3{font-size:18px}.book-card .meta{color:#466a80;font-size:14px}.book-card .late{color:#9b461d}.book-card .line{padding:12px 0;border-bottom:1px solid #e1e9ef}.book-card .actions{display:flex;gap:8px;flex-wrap:wrap}.status{background:#e9f2f6;border-radius:4px;padding:3px 8px}.primary-action{background:#087e6c}#bookingMessage,#message{white-space:pre-wrap;overflow-wrap:anywhere}.customer-fields[hidden]{display:none}#branchNav{margin-top:18px}#bookingList[aria-busy=true]{opacity:.6}.receipt-table{width:100%;border-collapse:collapse;background:white}.receipt-table th,.receipt-table td{padding:10px;border-bottom:1px solid #d6e1e8;text-align:right}.receipt-table input{max-width:130px}.order-search{width:100%}#editorBar{position:sticky;bottom:0;z-index:2;background:#edf5f9;padding:12px;display:flex;gap:12px;flex-wrap:wrap}details.admin-tools{background:#fff;border:1px solid #d0dde4;border-radius:8px;padding:12px}details.admin-tools>summary{cursor:pointer;font-weight:bold}#setup{padding-top:16px}@media(max-width:650px){main{padding:12px}.booking-head,.product-fields{grid-template-columns:1fr}.booking-component{padding:12px}nav a,nav button{min-width:120px;padding:9px}.gard-scroll{max-width:100%}.receipt-table{font-size:13px}.receipt-table td,.receipt-table th{padding:5px}.receipt-table input{width:80px}.toolbar{gap:8px}h1{font-size:23px}#branchNav{display:flex;overflow:auto;flex-wrap:nowrap}#branchNav a{flex:0 0 auto}header{padding:12px}}
.car-scroll{max-height:60vh;overflow:auto;overscroll-behavior:contain}.car-scroll table{width:100%;border-collapse:separate;border-spacing:0}.car-scroll th{position:sticky;top:0;background:#e7eff4;padding:.4rem}.car-scroll td{padding:.25rem .45rem;border-bottom:1px solid #dae3e8}
#carTable tr:nth-child(odd){background:#f8f9fa}#carTable tr[data-tone=entered]{background:#e8f5e9}#carTable tr[data-tone=entered]:nth-child(odd){background:#d4edda}#carTable tr[data-tone=resend]{background:#fff0d5}#carTable tr[data-tone=resend]:nth-child(odd){background:#ffe4b5}#carTable tr[data-tone=covered]{background:#fff6e7}#carTable tr[data-tone=complete]{color:#737373}
#loads article[data-receipt=accepted]{border-inline-start:6px solid #5c9765}#loads article[data-receipt=modified]{border-inline-start:6px solid #e39841}#loads article[data-receipt=rejected]{border-inline-start:6px solid #c65454}.receipt-table tr[data-different=yes]{background:#ffe0b2}
#carTable td small{display:block;color:#516774;font-size:.78rem}

#carProducts {background:white;border:1px solid #cfdee6;border-radius:8px;padding:14px}
#carProducts h2 {margin:0 0 .5rem;font-size:1.2rem}
.car-toolbar {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.car-toolbar label {font-size:.87rem;font-weight:bold}
.car-toolbar select,.car-toolbar input {width:100%;height:2.6rem;font-weight:normal;background:white}
.car-view-options {display:flex;gap:1rem;align-items:center;margin:.6rem 0;font-size:.88rem}
.car-view-options p {margin:0;margin-inline-end:auto;color:#486273}
.car-view-options label,.car-values label {display:flex;align-items:center;gap:.35rem}
.car-view-options button,#carColumnFilter button {padding:.25rem .6rem}
#carColumnFilter {border-block:1px solid #cedce3;background:#f4f8fa;padding:.6rem;margin-bottom:.5rem}
#carColumnFilter>strong,#carColumnFilter>button {margin-inline-end:.5rem}
#carColumnFilter>input {width:min(18rem,100%);padding:.28rem .6rem}
.car-values {display:flex;flex-wrap:wrap;gap:.25rem .9rem;max-height:8rem;overflow:auto;margin:.4rem 0}
#carTable th {white-space:nowrap;z-index:1;text-align:start}
#carTable th button {background:transparent;color:#17394c;border:0;padding:.2rem .3rem;font:inherit;font-weight:bold}
#carTable th button:hover,#carTable th button:focus-visible {background:#d1e4ed}
#carTable td {text-align:start}
#carTable td:first-child {min-width:10rem;font-weight:bold}
#carTable td small {font-weight:normal}
#carTable td input {width:4.4rem;padding:.25rem .4rem;text-align:center}
#saveCar {margin-top:.6rem}
#openSection form {display:flex;flex-wrap:wrap;align-items:end;max-width:none;gap:.65rem}
#openSection form label {flex:1 1 9rem}
#openSection form input {width:100%;min-width:0}
#carTable td .car-mobile-status {display:none}
#openSection form button {align-self:end}
@media(max-width:650px) {
 #carProducts {padding:.65rem}
 .car-toolbar {grid-template-columns:1fr 1fr;gap:.4rem}
 .car-toolbar label:last-child {grid-column:1/-1}
 .car-view-options {gap:.45rem;flex-wrap:wrap}
 #carTable td:first-child {min-width:7rem}
 #carTable td input {width:3.5rem}
 .car-scroll th,.car-scroll td {padding:.25rem}
 #carTable th button {font-size:.85rem;padding:.15rem}
 #carTable td .car-mobile-status {display:block;color:inherit}
}
#trayDialog{border:1px solid #bed0dc;border-radius:8px;width:min(28rem,94vw);color:inherit}#trayDialog::backdrop{background:#122d4280}
#trayChoices{max-height:52vh;overflow:auto}#trayChoices label{display:flex;align-items:center;justify-content:space-between;padding:.3rem;border-bottom:1px solid #e2e9ed}#trayChoices input{width:4rem;text-align:center}
#carTable .line-trays{display:block;background:transparent;color:#366579;padding:1px;font-size:.75rem}
#carFeedback:not(:empty),#draftRecovery:not([hidden]){border-inline-start:4px solid #b77826;background:#fff5df;margin:.6rem 0;padding:.55rem .8rem}
#carFeedback p{margin:.2rem 0}#carFeedback button,#draftRecovery button{padding:.3rem .55rem;margin:.2rem;background:#fff;color:#513718;border:1px solid #ceb38b}
#draftRecovery>div{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem}
#trayNotice:not(:empty){padding:.45rem .65rem;background:#fff5df;color:#543c16}
