﻿:root{font-family:Segoe UI,Tahoma,sans-serif;color:#153548;background:#f2f6f8}*{box-sizing:border-box}body{margin:0}header{background:#102f42;color:white;display:flex;justify-content:space-between;align-items:center;padding:22px 5%;gap:24px}header a{color:white;text-decoration:none}.brand{font-size:25px;letter-spacing:.13em;font-weight:700}.brand span{font-size:10px;display:block;letter-spacing:.15em;margin-top:4px}nav{display:flex;gap:24px}main{max-width:1300px;margin:auto;padding:40px 28px;min-height:80vh}.hero{padding:45px 0;max-width:800px}.hero h1{font-size:clamp(32px,5vw,54px);line-height:1.15}.eyebrow{font-size:12px;letter-spacing:.12em;color:#5b7684}.lead{font-size:24px}p{line-height:1.8}.panel{background:white;border:1px solid #d6e2e8;padding:28px;border-radius:12px;margin-block:22px}button,.button{display:inline-block;background:#126170;color:white;border:1px solid #126170;border-radius:6px;padding:10px 17px;font:inherit;text-decoration:none;cursor:pointer;margin:5px}button:disabled{opacity:.45;cursor:not-allowed}button.secondary{background:white;color:#126170}input,select,textarea{font:inherit;border:1px solid #8aa0ac;border-radius:5px;padding:9px;max-width:100%;background:white;color:#153548}label{display:block;font-weight:600;margin-block:12px 5px}table{width:100%;border-collapse:collapse}th,td{text-align:start;padding:10px;border-bottom:1px solid #d6e2e8;vertical-align:top}th{background:#edf4f5;font-size:13px}td input[type=text]{width:100%}.table-wrap{overflow-x:auto}.actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.notice{padding:14px;border-inline-start:4px solid #bb8b2e;background:#fff6de;white-space:pre-line}.step{border:1px solid #d6e2e8;border-radius:8px;margin:15px 0;padding:18px}.step h3{margin-top:0}.small{font-size:12px;color:#536d7c}footer{padding:20px;text-align:center;color:#536d7c;font-size:12px}a{color:#126170}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d2a129;outline-offset:3px}#blazor-error-ui{display:none;position:fixed;bottom:0;padding:20px;background:#fff0d0;width:100%}@media(max-width:700px){header{align-items:flex-start;flex-direction:column}main{padding:20px}.grid{grid-template-columns:1fr}.panel{padding:18px}}

nav{flex-wrap:wrap}details{padding:12px 0;border-bottom:1px solid #d6e2e8}summary{cursor:pointer;line-height:1.7}
.workspace-launcher{margin:28px 0 36px}.workspace-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.workspace-heading h2{font-size:30px;letter-spacing:-.025em;margin:6px 0}.workspace-heading p{margin:8px 0 20px}.release-label{font-size:11px;letter-spacing:.06em;padding:8px 12px;border:1px solid #b8d8d5;border-radius:20px;white-space:nowrap;background:#e7f4ef;color:#245c4a}.module-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.module-card{display:flex;flex-direction:column;padding:24px;border:1px solid #cfdee6;border-radius:14px;background:#fff;text-decoration:none;color:#153548;box-shadow:0 3px 12px #102f4206}.module-card:hover{border-color:#126170;box-shadow:0 5px 20px #102f4210}.module-card h3{font-size:22px;margin:14px 0 3px}.module-card p{font-size:14px;line-height:1.7;flex:1;color:#496573}.module-card strong{font-size:13px;margin-top:12px;color:#126170}.module-label{font-size:10px;letter-spacing:.09em;font-weight:700;color:#587380}.module-card.featured{background:#153f50;border-color:#153f50;color:white}.module-card.featured p{color:#d4e6ec}.module-card.featured strong,.module-card.featured .module-label{color:#9ce0c9}.readiness-note{font-size:13px;padding:14px 0;color:#587380}.hero{padding:24px 0;max-width:850px}.hero h1{margin:14px 0}#appHeader{align-items:flex-start;padding:20px 3%;gap:30px}#appHeader nav{gap:4px 8px;justify-content:flex-end}#appHeader nav a{padding:7px 9px;border-radius:5px;font-size:13px}#appHeader nav a.active{background:#296073;box-shadow:inset 0 -2px #9ce0c9}#appHeader nav a:hover{background:#224b60}.brand{flex-shrink:0}@media(max-width:1050px){.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-heading{flex-wrap:wrap}#appHeader{flex-direction:column;gap:14px}#appHeader nav{justify-content:flex-start}}@media(max-width:600px){.module-grid{grid-template-columns:1fr}.module-card{padding:20px}.workspace-heading h2{font-size:25px}.release-label{margin-bottom:15px}}
.source-capture-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; } .source-capture-grid > div { min-width:0; max-height:36rem; overflow:auto; } @media(max-width:800px){ .source-capture-grid { grid-template-columns:1fr; } }

.money{direction:ltr;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.accounting-scroll{overflow-x:auto}.accounting-scroll table{min-width:780px}

.journal-line-grid{display:grid;grid-template-columns:2fr 2fr 1fr 1fr 1fr;gap:12px;align-items:end}.journal-line-grid h3{grid-column:1/-1;margin:0}.journal-line-grid input,.journal-line-grid select{width:100%;min-width:0}.journal-line-grid label{min-width:0}.journal-line-grid input[type=number]{text-align:right;direction:ltr}@media(max-width:1050px){.journal-line-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.journal-line-grid{grid-template-columns:1fr}}

/* Event Center: task-first workspace and readable configuration controls. */
.event-workspace h1{font-size:34px;letter-spacing:-.03em;margin-bottom:8px}.event-workspace .panel{box-shadow:0 4px 18px #15354808;border-radius:16px}.event-workspace h2{font-size:24px;margin-top:0}.event-workspace nav{gap:8px}.event-workspace label>input:not([type=checkbox]),.event-workspace label>select,.event-workspace label>textarea{display:block;width:100%;margin-top:8px}.event-workspace label{font-size:14px;line-height:1.5}.event-workspace small{display:block;color:#526b79;font-size:13px;font-weight:400;line-height:1.6;margin-top:8px}.event-workspace fieldset{border:1px solid #d6e2e8;border-radius:12px;padding:20px;margin-block:16px}.event-workspace legend{font-weight:700;padding:0 8px}.event-settings-grid,.event-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}.event-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin:20px 0}.event-status-filters{display:flex;gap:8px;flex-wrap:wrap}.event-status-filters button{border-radius:24px;font-size:13px;margin:0}.event-status-filters .selected{background:#153f50;border-color:#153f50}.event-workspace td{padding:16px 12px}.event-workspace tbody tr:hover{background:#f5f9fa}.event-workspace input:focus-visible,.event-workspace textarea:focus-visible{outline:3px solid #9ad5d0;outline-offset:2px}@media(max-width:850px){.event-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.event-settings-grid,.event-filter-grid{grid-template-columns:1fr}.event-workspace h1{font-size:28px}.event-workspace fieldset{padding:14px}}

/* Finance workspace */
.finance-workspace h1{font-size:32px;letter-spacing:-.025em;margin:8px 0 18px}.finance-navigation{gap:6px;padding:10px;background:#e7eff2;border:1px solid #d3e0e6;border-radius:12px;margin:20px 0 26px}.finance-navigation a{text-decoration:none;font-size:14px;font-weight:600;padding:10px 12px;border-radius:8px}.finance-navigation a.active,.finance-navigation a:hover{background:#fff;color:#123f50}.finance-hub{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.finance-hub h2{font-size:23px;margin:12px 0 0}.finance-workspace fieldset{border:1px solid #d6e2e8;border-radius:12px;background:#fff;padding:24px;margin:18px 0}.finance-workspace label{font-size:14px;line-height:1.6}.finance-workspace label>input:not([type=checkbox]),.finance-workspace label>select,.finance-workspace label>textarea{display:block;width:100%;margin-top:6px;min-height:42px}.finance-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 22px}.finance-form-grid>p{grid-column:1/-1;font-size:13px;color:#526b79}.finance-workspace .panel{box-shadow:0 3px 14px #15354806;margin-block:18px}.finance-workspace .panel h3{margin:0 0 12px}.finance-workspace table{background:white;border:1px solid #d6e2e8;margin-block:20px}.finance-workspace th,.finance-workspace td{padding:14px 12px}.finance-workspace tbody tr:hover{background:#f6f9fa}.attachment-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.attachment-controls label{flex:1 1 210px;min-width:0}.attachment-controls button{flex:0 0 auto;margin-bottom:5px}.inline-attachment{background:#f4f8fa;border:1px dashed #a5bcc7;border-radius:10px;padding:16px;margin:12px 0}.inline-attachment small{display:block;color:#526b79;font-size:13px;margin-top:10px}.inline-attachment p:empty{display:none}.finance-workspace .journal-line-grid{box-shadow:none;border-inline-start:3px solid #126170}.finance-workspace .journal-line-grid h3{font-size:15px}@media(max-width:900px){.finance-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.finance-form-grid,.finance-hub{grid-template-columns:1fr}.finance-workspace fieldset{padding:16px}.attachment-controls{align-items:stretch;flex-direction:column}.attachment-controls label{flex:auto}}

/* Journal book: compact ruled columns, with document controls beside entry details. */
.journal-book table{min-width:980px;width:100%;border-collapse:collapse}.journal-book td,.journal-book th{border:1px solid #d5dfe5;padding:.55rem}.journal-book caption{text-align:start;padding:.6rem;font-weight:600}.journal-book input,.journal-book select{width:100%;min-width:90px;box-sizing:border-box}.journal-book td:nth-child(2){min-width:230px}.journal-book td:nth-child(3){min-width:200px}.journal-book input[type=number]{text-align:right}.finance-form-grid small{display:block;font-weight:400;color:#526674;margin:.3rem 0}.journal-attachment-cell{min-width:0;grid-column:span 2}.currency-books{display:flex;gap:.5rem;margin:1rem 0}.currency-books a{padding:.5rem 1rem;border:1px solid #b7cbd3;border-radius:6px}.currency-books .selected{background:#315f6d;color:white}@media(max-width:700px){.journal-attachment-cell{grid-column:1/-1}}

.record-delete{background:#8b3434}.removal-confirm{padding:1rem;border:1px solid #ba8383;background:#fff8f6;min-width:240px;max-width:520px}.removal-confirm label{display:block}.removal-confirm input{width:100%}

/* Journal entry uses the same ruled columns as the accounting book. */
main.finance-workspace{max-width:none;width:100%;padding:24px 28px}.finance-workspace .book-entry{padding:0;border:0;border-radius:0;background:transparent;margin:24px 0}.book-title{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid #294956;padding:8px 0}.book-title h2{margin:0;font-size:22px}.book-title span{font-size:14px}.finance-workspace .entry-book{table-layout:fixed;min-width:1280px;margin:0;background:#fff}.entry-book .book-date{width:10%}.entry-book .book-number{width:8%}.entry-book .book-particulars{width:16%}.entry-book .book-code{width:10%}.entry-book .book-name{width:11%}.entry-book .book-folio{width:8%}.entry-book .book-amount{width:9%}.entry-book .book-document{width:16%}.entry-book .book-action{width:3%}.finance-workspace .entry-book th,.finance-workspace .entry-book td,.finance-workspace .entry-context th,.finance-workspace .entry-context td{border:1px solid #bac9cf;padding:8px;vertical-align:top;font-size:14px}.entry-book th{white-space:normal;color:#1d3440}.entry-book input,.entry-book select,.entry-book textarea,.entry-context input,.entry-context select{width:100%;min-width:0;border:1px solid #d6e0e4;border-radius:2px;padding:7px;font-size:14px;background:#fffef8}.entry-book input[type=number]{text-align:right}.entry-book textarea{resize:vertical}.entry-book tfoot td{font-weight:700;text-align:right}.entry-book tfoot{border-top:2px solid #294956}.book-remove{padding:2px 7px;margin:0;background:transparent;color:#853b3b;border:0;font-size:22px}.book-row-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0;font-size:13px}.entry-context{min-width:900px}.entry-context caption{text-align:start;font-size:13px;padding:10px 0 6px}.book-attachments{font-size:13px}.book-attachments summary{color:#126170}.book-attachments .inline-attachment{padding:8px}.book-rate{font-size:12px!important;margin:0 0 5px!important}.book-attachments input[type=checkbox]{width:auto}.finance-workspace .entry-book input,.finance-workspace .entry-book select{margin:0 0 5px;min-height:34px}
.finance-workspace .book-entry{min-width:0;max-width:100%}.finance-workspace .entry-book{min-width:1180px}.book-entry .table-wrap{max-width:100%}

/* Visible journal guidance, with keyboard/touch-accessible details. */
.journal-guide{border-inline-start:4px solid #356476;background:#edf5f7;padding:12px 18px;margin:16px 0}.journal-guide h3{margin:0 0 6px}.journal-guide p{margin:6px 0}.journal-guide summary{cursor:pointer;color:#165e72;font-weight:600}.journal-guide li{margin:8px 0}.journal-guide dt{font-weight:700;margin-top:10px}.journal-guide dd{margin-inline-start:0}.journal-view-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:16px 0}.journal-view-options p,.control-help{font-size:.9rem;color:#415866;margin:6px 0 12px}.journal-view-options button[aria-pressed="true"]{box-shadow:inset 0 -4px 0 #d6ad45}.journal-view-options button[aria-pressed="false"]{background:#fff;color:#20576a;border:1px solid #8faeb9}@media(max-width:640px){.journal-view-options{grid-template-columns:1fr;gap:4px}}

/* Direct number entry throughout the web application; retain numeric validation. */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.stock-navigation{display:flex;gap:1.2rem;flex-wrap:wrap;align-items:center;padding:1rem;background:#eef4f5;margin-bottom:1rem}.stock-navigation .active{font-weight:bold;text-decoration:underline}.reservation-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:1.5rem;align-items:start}.order-summary{background:#eef4f5;padding:1.2rem;position:sticky;top:1rem}.reservation-layout fieldset{min-width:0}@media(max-width:850px){.reservation-layout{grid-template-columns:1fr}.order-summary{position:static}}

.shipment-progress{display:flex;flex-wrap:wrap;gap:1rem;list-style:none;padding:0}.shipment-progress li{padding:1rem;background:#edf1f3;border-left:4px solid #7b8790}.shipment-progress .complete{background:#e8f3ee;border-color:#28784e}.shipment-progress .current{background:#e8f0fa;border-color:#286fa8}
/* Dispatch: one contextual summary, consistent forms and compact operational sections. */
.dispatch-workspace {--dispatch-muted:#536b78;}
.dispatch-workspace h1{font-size:2rem;letter-spacing:-.025em;margin:16px 0}.dispatch-workspace h2{font-size:1.4rem;margin:0 0 16px}.dispatch-workspace h3{font-size:1.15rem}.dispatch-workspace h4{font-size:1rem;margin:24px 0 12px}.dispatch-workspace p{line-height:1.6}.dispatch-workspace .panel{padding:24px;margin-block:18px;box-shadow:0 3px 14px #15354805}.dispatch-workspace .panel .panel{padding:20px 0;border:0;border-top:1px solid #d6e2e8;border-radius:0;box-shadow:none}.dispatch-workspace fieldset{min-width:0;border:1px solid #d6e2e8;border-radius:10px;padding:20px;margin:16px 0}.dispatch-workspace legend{font-weight:650;padding:0 8px}.dispatch-workspace label{font-size:.9rem;line-height:1.5;margin:0 0 14px}.dispatch-workspace label>input,.dispatch-workspace label>select,.dispatch-workspace label>textarea{display:block;width:100%;margin-top:6px;min-height:42px}.dispatch-workspace small,.dispatch-workspace .control-help{display:block;font-size:.83rem;font-weight:400;line-height:1.55;color:var(--dispatch-muted)}.dispatch-workspace textarea{min-height:110px;resize:vertical}.dispatch-workspace [role=status]:empty{display:none}.dispatch-workspace .order-summary{position:static;border-radius:10px}.dispatch-workspace .order-selection>fieldset{margin-bottom:12px}.dispatch-workspace .order-selection>fieldset>label{max-width:600px}.dispatch-workspace .dispatch-summary{background:#eff6f7;border:1px solid #d2e2e6;border-radius:10px;padding:20px;margin:16px 0 24px;position:static}.dispatch-workspace .dispatch-summary h4{margin:0 0 16px}.dispatch-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0}.dispatch-facts dt{font-size:.8rem;color:#536b78;margin-bottom:6px}.dispatch-facts dd{font-weight:650;margin:0;overflow-wrap:anywhere}.dispatch-summary .control-help{margin-bottom:0}.dispatch-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px}.dispatch-form-grid>small{grid-column:1/-1;order:5;margin:0 0 12px}.dispatch-form-grid>button{justify-self:start;align-self:end}.route-stop{background:#fafcfd;border-inline-start:3px solid #39727e!important}.route-stop h5{margin:0 0 16px;font-size:1rem}.dispatch-workspace .access-guide{font-size:.85rem;margin-bottom:16px}.dispatch-workspace .actions{margin-top:16px}.dispatch-workspace details{margin-block:8px}.dispatch-workspace details>summary{font-weight:600}.dispatch-workspace .table-wrap{max-width:100%;margin-block:12px}.dispatch-workspace .table-wrap table{min-width:620px}.dispatch-workspace td,.dispatch-workspace th{padding:12px}.dispatch-workspace td input{width:100%;min-width:130px}.dispatch-workspace tbody tr:hover{background:#f6fafb}.dispatch-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dispatch-workspace .dispatch-card{margin:0;display:flex;flex-direction:column;gap:8px;padding:20px}.dispatch-card>strong{font-size:1.05rem}.dispatch-card p{margin:0;font-size:.9rem}.dispatch-card progress{width:100%;height:8px;accent-color:#267985}.dispatch-card button{align-self:start;margin-top:auto}.dispatch-jumps{gap:8px;padding:12px 0;margin-bottom:12px;border-bottom:1px solid #d6e2e8}.dispatch-jumps a{padding:8px 12px;background:#edf5f6;border-radius:6px;text-decoration:none;font-size:.88rem}.dispatch-workspace .shipment-workflow{border:0;padding:0;margin:0}.dispatch-workspace .shipment-progress{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.dispatch-workspace .shipment-progress li{border-radius:8px;padding:14px;font-size:.85rem;border-inline-start:4px solid #7b8790}.dispatch-workspace .milestone-action{background:#f7fafb}.dispatch-workspace .dispatch-message{background:#f8fbfc;border-inline-start:3px solid #39727e;max-width:900px}.dispatch-message p{margin-block:10px}.dispatch-message button{font-size:.85rem}.dispatch-workspace .dispatch-reply{background:#f3f8fa;max-width:900px}.dispatch-reply textarea{min-height:160px}.dispatch-workspace [id]{scroll-margin-top:24px}.dispatch-workspace .order-totals{margin-top:18px}.dispatch-workspace .order-totals table{background:#fff}.dispatch-workspace .actions button[aria-pressed=true]{background:#153f50;box-shadow:inset 0 -3px #91d5c5}.dispatch-workspace .actions button[aria-pressed=false]{background:white;color:#126170}
@media(max-width:850px){.dispatch-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.dispatch-card-grid{grid-template-columns:1fr}}
@media(max-width:600px){.dispatch-workspace .panel{padding:16px}.dispatch-workspace fieldset{padding:14px}.dispatch-form-grid,.dispatch-facts{grid-template-columns:1fr}.dispatch-workspace .dispatch-summary{padding:16px}.dispatch-workspace h1{font-size:1.65rem}.dispatch-workspace .shipment-progress{grid-template-columns:1fr}.dispatch-jumps{gap:4px}.dispatch-workspace button{max-width:100%;white-space:normal}.dispatch-workspace .actions{align-items:stretch}.dispatch-workspace .actions button{flex:1 1 180px}}

.dispatch-workspace #truck-arrivals td input[type=checkbox]{width:20px;min-width:20px;height:20px;accent-color:#267985}.dispatch-workspace #truck-arrivals>h3{margin-top:0}.dispatch-workspace #truck-arrivals [role=status]:not(:empty){padding:12px;border-inline-start:4px solid #39727e;background:#edf5f6}
.dispatch-workspace #truck-arrivals label:has(>input[type=checkbox]){display:flex;align-items:center;gap:10px}.dispatch-workspace #truck-arrivals label>input[type=checkbox]{display:inline-block;width:20px;min-width:20px;height:20px;min-height:20px;margin:0;flex:0 0 20px;accent-color:#267985}

/* Compact dispatch truck columns, with horizontal scrolling rather than clipped values. */
.dispatch-workspace .dispatch-truck-table table{font-size:.82rem;width:100%;min-width:1050px;table-layout:auto}
.dispatch-workspace .dispatch-truck-table th,.dispatch-workspace .dispatch-truck-table td{padding:7px 8px;line-height:1.35;min-width:76px;max-width:130px;overflow-wrap:normal;word-break:normal}
.dispatch-workspace .dispatch-truck-table td:nth-child(2),.dispatch-workspace .dispatch-truck-table td:nth-child(3){white-space:nowrap;min-width:85px}
.dispatch-workspace .dispatch-truck-table th{vertical-align:bottom}
.dispatch-workspace .dispatch-truck-table td.amount{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.dispatch-workspace .dispatch-truck-table td input,.dispatch-workspace .dispatch-truck-table td select{min-width:75px;width:85px;padding:6px;font-size:.85rem}
.dispatch-workspace .dispatch-truck-table th:first-child,.dispatch-workspace .dispatch-truck-table td:first-child{position:sticky;left:0;background:#edf4f6;min-width:65px;z-index:1}

.dispatch-workspace .dispatch-truck-table .truck-total{font-weight:700;background:#edf4f6;border-top:2px solid #537c89}
.dispatch-workspace .dispatch-truck-table td:nth-child(3),.dispatch-workspace .dispatch-truck-table td:nth-child(4){white-space:nowrap;min-width:85px}
.dispatch-workspace .dispatch-truck-table th:first-child,.dispatch-workspace .dispatch-truck-table td:first-child{min-width:30px}
.dispatch-workspace .truck-table-notes{margin-top:16px;padding:12px 16px;background:#f6f9fa;border-left:3px solid #537c89}

.dispatch-workspace .dispatch-truck-table th:nth-child(2),.dispatch-workspace .dispatch-truck-table td:nth-child(2){position:sticky;left:46px;background:#edf4f6;z-index:1}

.journal-entry-action{padding:1rem 0;border-bottom:1px solid #d9e3e8}.journal-entry-action>strong,.journal-entry-action>span{display:block;margin-bottom:.5rem}.journal-entry-action .removal-confirm{min-width:0;max-width:36rem;box-sizing:border-box;width:100%;margin-top:.75rem}

.journal-book .entry-description { margin-top: .25rem; font-size: .9em; white-space: normal; overflow-wrap: anywhere; }

.dispatch-workspace .dispatch-truck-table td:nth-child(3),.dispatch-workspace .dispatch-truck-table td:nth-child(4){white-space:normal;overflow-wrap:anywhere;min-width:100px}

.dispatch-workspace .compact-rents table{min-width:600px}.dispatch-workspace .compact-rents td:nth-child(3){min-width:150px;max-width:280px}

/* Shipment-wide charges: compact entry alongside the accounting total. */
.dispatch-charge-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:24px;margin:18px 0;padding:18px;border:1px solid #d5e2e7;border-radius:8px;background:#f7fafb}
.dispatch-charge-summary h4{margin:0 0 6px}
.dispatch-charge-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dispatch-charge-fields label{font-size:.9rem}
.dispatch-charge-fields input,.dispatch-charge-fields select{display:block;width:100%;min-width:0;box-sizing:border-box;margin-top:6px;text-align:right;font-variant-numeric:tabular-nums}
.dispatch-charge-totals dl{margin:0}
.dispatch-charge-totals dl>div{display:flex;justify-content:space-between;gap:16px;padding:6px 0}
.dispatch-charge-totals dd{margin:0;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.dispatch-charge-grand-total{border-top:2px solid #65838d;margin-top:6px;font-weight:700}
.dispatch-charge-summary .control-help{margin:6px 0 12px}
@media(max-width:850px){.dispatch-charge-summary{grid-template-columns:1fr}}
@media(max-width:500px){.dispatch-charge-fields{grid-template-columns:1fr}}

/* Accumulated route columns size to their contents and scroll together. */
.dispatch-workspace .cumulative-truck-table table{width:max-content;min-width:100%;table-layout:auto}
.dispatch-workspace .cumulative-truck-table th,.dispatch-workspace .cumulative-truck-table td{max-width:none;min-width:100px;white-space:nowrap;overflow-wrap:normal;padding:9px 12px}
.dispatch-workspace .cumulative-truck-table th{white-space:normal;min-width:130px}
.dispatch-workspace .cumulative-truck-table th:first-child,.dispatch-workspace .cumulative-truck-table td:first-child,.dispatch-workspace .cumulative-truck-table th:nth-child(2),.dispatch-workspace .cumulative-truck-table td:nth-child(2){position:static;left:auto}
.dispatch-workspace .cumulative-truck-table th:first-child,.dispatch-workspace .cumulative-truck-table td:first-child{min-width:38px}
.dispatch-workspace .cumulative-truck-table td:nth-child(2),.dispatch-workspace .cumulative-truck-table td:nth-child(3),.dispatch-workspace .cumulative-truck-table td:nth-child(4){white-space:nowrap;min-width:160px;overflow-wrap:normal}

/* Compact, read-only context above each active dispatch step. */
.dispatch-workspace .prior-step-dates{background:#f5f9fa;border:1px solid #bfd2d9;border-inline-start:4px solid #39727e;border-radius:8px;margin:16px 0;padding:14px 16px}
.dispatch-workspace .prior-step-dates h4{margin:0 0 10px}
.dispatch-workspace .prior-step-dates .table-wrap{max-height:230px;overflow:auto;margin:0}
.dispatch-workspace .prior-step-dates table{min-width:480px;background:#fff}
.dispatch-workspace .prior-step-dates th{position:sticky;top:0;z-index:1}
.dispatch-workspace .prior-step-dates td,.dispatch-workspace .prior-step-dates th{padding:8px 10px;font-size:.82rem}
.dispatch-workspace .prior-step-dates td:last-child{min-width:240px;white-space:normal}

.dispatch-workspace .cumulative-truck-table td input,.dispatch-workspace .cumulative-truck-table td select{width:140px;min-width:140px}
.dispatch-workspace .cumulative-truck-table td:nth-child(2) input,.dispatch-workspace .cumulative-truck-table td:nth-child(3) input{width:180px;min-width:180px}

.dispatch-currency-section { margin: 1rem 0; border: 1px solid #d6e2e7; border-radius: .5rem; }
.dispatch-currency-section > summary { padding: .8rem 1rem; background: #edf3f5; font-weight: 700; cursor: pointer; }
.dispatch-currency-section .freight-entry { display: grid; grid-template-columns: minmax(10rem,1fr) minmax(10rem,1fr); gap: .6rem; text-align: left; }
.dispatch-currency-section .freight-entry label { display: flex; flex-direction: column; gap: .25rem; margin: 0; font-size: .85rem; }
.dispatch-currency-section .freight-entry input, .dispatch-currency-section .freight-entry select { width: 100%; margin: 0; box-sizing: border-box; }

.dispatch-charge-currency { border: 1px solid #c4d5dc; border-radius: .5rem; margin: 1rem 0; padding: 1rem; }
.dispatch-charge-currency > h4 { margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 2px solid #345f6e; }

.dispatch-bulk-column{display:flex;flex-direction:column;gap:.35rem;min-width:10rem;margin-top:.5rem;font-size:.85rem;font-weight:normal}.dispatch-bulk-column label{display:flex!important;align-items:center;gap:.4rem;margin:0}.dispatch-bulk-column input[type=checkbox]{width:1rem!important;height:1rem!important;min-width:1rem!important;margin:0}.dispatch-bulk-column select,.dispatch-bulk-column input[type=datetime-local],.dispatch-bulk-column input[type=date]{width:100%;min-width:10rem;box-sizing:border-box}

.dispatch-extra-entry{display:flex;flex-direction:column;gap:.35rem;min-width:10rem}.dispatch-stop-charge-breakdown{white-space:normal;max-width:18rem}.dispatch-stop-charge-breakdown summary{font-size:.85rem;cursor:pointer}.dispatch-stop-charge-breakdown label{display:flex;flex-direction:column;gap:.25rem;margin:.5rem 0}

.dispatch-workspace .dispatch-truck-table .charge-heading{min-width:7.5rem;width:7.5rem;text-align:center}
.vertical-charge-title{display:inline-block;writing-mode:vertical-rl;transform:rotate(180deg);inline-size:8.5rem;white-space:normal;word-break:normal;overflow-wrap:normal;font-size:.875rem;line-height:1.35;padding:.35rem 0;text-align:start}
.dispatch-workspace .dispatch-truck-table .charge-cell{min-width:7.5rem;width:7.5rem;white-space:normal}
.dispatch-workspace .dispatch-truck-table .charge-cell .dispatch-extra-entry{min-width:0;width:7.5rem}
.dispatch-workspace .dispatch-truck-table .charge-cell input{min-width:0;width:100%;box-sizing:border-box;font-variant-numeric:tabular-nums}

.dispatch-extra-entry>.control-help{margin:0;line-height:1.3}.dispatch-extra-entry .dispatch-stop-charge-breakdown{margin:0;padding:.2rem 0;border:0}.dispatch-extra-entry .dispatch-stop-charge-breakdown summary{margin:0;padding:0}

.dispatch-stop-toggle{display:block;font-size:.8rem;padding:.3rem .5rem;margin:.25rem 0;white-space:nowrap}
.dispatch-stop-editor .dispatch-stop-panel{max-width:85rem;padding:.75rem;border:1px solid #c4d5dc;background:#f5f9fa}
.dispatch-stop-panel>table{width:100%!important;min-width:0!important;table-layout:fixed}
.dispatch-stop-panel>table th,.dispatch-stop-panel>table td{position:static!important;min-width:0!important;width:auto!important;white-space:normal!important;padding:.5rem!important}
.dispatch-stop-panel input{width:100%!important;min-width:0!important;box-sizing:border-box}

.dispatch-truck-table tr.dispatch-stop-editor>td{position:static!important;text-align:left;white-space:normal}

.cumulative-truck-table tfoot td,.offline-saved-table-scroll tfoot td{font-weight:700;background:#edf3f5;border-top:2px solid #688793;font-variant-numeric:tabular-nums}.step-variance-note{line-height:1.6;margin-top:.8rem}

/* Truck lists: keep headings and row numbers visible in both scroll directions. */
[data-durable-editor] .table-wrap{max-height:550px;overflow:auto}
[data-durable-editor] table{border-collapse:separate;border-spacing:0}
[data-durable-editor] thead{position:sticky;top:0;z-index:3}
[data-durable-editor] th{background:#eaf1f4}
[data-durable-editor] tbody tr:nth-child(odd){--truck-row-color:#fff}
[data-durable-editor] tbody tr:nth-child(even){--truck-row-color:#edf4f7}
[data-durable-editor] tbody td{background:var(--truck-row-color)}
[data-durable-editor] tr>:first-child{position:sticky;inset-inline-start:0;z-index:2;background:var(--truck-row-color,#eaf1f4);border-inline-end:1px solid #cdd9df}
[data-durable-editor] thead tr>:first-child{z-index:4;background:#eaf1f4}

/* More working room only for the document data-table page. */
main:has(.document-data-workspace){max-width:1800px;width:100%;padding:14px 24px}
main:has(.document-data-workspace) .document-workspace-nav{margin-bottom:6px;gap:5px}
main:has(.document-data-workspace) .document-workspace-nav a{padding:5px 8px;font-size:12px}
main:has(.document-data-workspace) .document-help{margin-block:6px;padding-block:6px}
@media(max-width:780px){main:has(.document-data-workspace){padding:10px 12px}}

main:has(.document-data-workspace) .document-help{padding:0;margin-block:5px}
main:has(.document-data-workspace) .document-help>summary{padding:4px 9px;font-size:12px}
main:has(.document-data-workspace) .module-language-selector{margin-bottom:4px}
main:has(.document-data-workspace) #form-recovery{padding-block:5px;font-size:12px}

/* Editor-only working room and compact navigation; other modules retain their layout. */
main:has(.document-editor){max-width:1800px;width:100%;padding:12px 24px}
main:has(.document-editor) .document-workspace-nav{margin-bottom:5px;gap:5px}
main:has(.document-editor) .document-workspace-nav a{padding:5px 8px;font-size:12px}
main:has(.document-editor) .document-help{padding:0;margin-block:5px}
main:has(.document-editor) .document-help>summary{padding:5px 9px;font-size:12px}
main:has(.document-editor) .module-language-selector{margin-bottom:4px}
main:has(.document-editor) #form-recovery{padding-block:5px;font-size:12px}
@media(max-width:780px){main:has(.document-editor){padding:10px 12px}}

/* Reports and order intake only: keep working data near the top. */
main:has(.reports-workspace),main:has(.orders-intake-workspace){max-width:1800px;width:100%;padding:12px 24px}
main:has(.reports-workspace) .module-language-selector,main:has(.orders-intake-workspace) .module-language-selector{margin-bottom:4px}
main:has(.reports-workspace) #form-recovery,main:has(.orders-intake-workspace) #form-recovery{padding-block:5px;font-size:12px}
main:has(.orders-intake-workspace)>.stock-navigation{display:flex;gap:5px;align-items:center;padding:6px 8px;margin:0 0 7px;background:#eaf2f8;border:1px solid #ccdee9;border-radius:8px}
main:has(.orders-intake-workspace)>.stock-navigation a{padding:5px 9px;font-size:13px;text-decoration:none;border-radius:5px;color:#365f79}
main:has(.orders-intake-workspace)>.stock-navigation a.active{background:#315f7b;color:#fff}
main:has(.orders-intake-workspace)>.stock-navigation strong{font-size:12px;color:#3c657e;margin-inline-end:5px}
@media(max-width:780px){main:has(.reports-workspace),main:has(.orders-intake-workspace){padding:10px 12px}}

/* Finance landing scope; accounting transaction screens retain their controls. */
main:has(.finance-overview){max-width:1800px;padding:12px 24px}main:has(.finance-overview)>.language-bar{margin:0 0 4px;font-size:12px}main:has(.finance-overview) #form-recovery{font-size:12px;margin:0 0 6px;padding:4px 0}@media(max-width:780px){main:has(.finance-overview){padding:10px 12px}}

/* Compact journal and petty-cash workspaces. */
main:has(.journal-workspace){max-width:1800px;padding:12px 24px}main:has(.journal-workspace)>.language-bar{margin:0 0 4px;font-size:12px}main:has(.journal-workspace) #form-recovery{font-size:12px;margin:0 0 6px;padding:4px 0}@media(max-width:780px){main:has(.journal-workspace){padding:10px 12px}}
