/* Final shared layout, after every appearance. Functional controls remain the same. */
.account-menu-content .interface-switch{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0 0 10px!important;padding:0!important;gap:6px!important;background:none!important;border:0!important;font-size:var(--fs-label,13px)!important}
.account-menu-content .interface-switch select{width:100%!important;min-width:0!important;min-height:38px!important;font-size:var(--fs-control,14px)!important}
body #order-panel .dossier-head,body #order-panel .dossier-top{max-width:none;margin-inline:0;width:100%;min-width:0}
body #order-panel .dossier-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:12px;padding:16px 22px}
body #order-panel .dossier-identification{margin-right:auto;min-width:100px}
body #order-panel .dossier-meta{margin-left:0;flex-wrap:wrap;max-width:100%;gap:6px}
body #order-panel .dossier-body{width:100%;min-width:0;padding-top:18px}
body #order-panel.clean-order .order-information{margin-top:0}
body #order-panel.clean-order .entry-booking{margin-block:14px}
.clean-section-heading{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.clean-section-heading h3{margin:0}.clean-section-heading small,.source-milestone-note{color:var(--muted);font-size:12px}
.clean-warehouse-notes{margin-top:14px}.clean-warehouse-notes>label{display:block;margin-top:12px}
.source-field-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px;min-height:24px;font-size:11px}
.source-field-tools .text-button{font-size:var(--fs-note,13px);padding:2px 0;white-space:normal;text-align:right}.source-field-tools small{font-size:var(--fs-note,13px)}
.clean-stop-location{display:grid;grid-template-columns:minmax(180px,1fr);gap:10px;margin-bottom:16px;min-width:0}
.clean-stop-location:has([data-clean-code]){grid-template-columns:minmax(140px,.7fr) minmax(0,2fr)}
.clean-stop-location>details{grid-column:1/-1}.clean-stop-location details[open]{padding:12px;border:1px solid var(--line);border-radius:8px}
.clean-stop-location summary{font-size:12px;cursor:pointer}.clean-location-field{min-width:0;display:grid;gap:7px;font-size:13px;font-weight:600}
.clean-address-selector{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;text-align:left;font-weight:400;white-space:normal!important;overflow-wrap:anywhere}
.clean-address-selector>span:first-child{min-width:0}
.clean-order .stop-planned{display:grid!important;grid-template-columns:130px minmax(150px,1fr) minmax(100px,1fr) minmax(100px,1fr)!important;gap:12px!important}
.clean-order .stop-planned>h4{grid-column:1/-1}.clean-order .stop-planned>[hidden]{display:none!important}
.clean-order .workflow-actual .actual-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.clean-order .workflow-actual .actual-grid>label{display:block!important;min-width:0}
.clean-order .unloading-card .actual-grid{grid-template-columns:minmax(0,1fr)!important;max-width:720px}
.clean-order .workflow-actual{margin-top:16px;padding-top:16px!important;border-top:1px solid var(--line)!important}
.clean-delivery-comments{display:grid;gap:6px;margin-top:12px}.clean-delivery-comments textarea{width:100%}
.clean-order .entry-goods-main{display:grid!important;grid-template-columns:80px minmax(110px,1fr) minmax(130px,1.4fr) 75px 100px minmax(110px,1fr)!important;gap:12px!important;align-items:start}
.clean-order.entry-simple .entry-goods-main{grid-template-columns:90px minmax(130px,1fr) minmax(100px,1fr) minmax(110px,1fr)!important}
.clean-order .entry-goods-main label{display:block;min-width:0;font-size:12px}.clean-order .entry-goods-main input,.clean-order .entry-goods-main select{width:100%;max-width:100%;min-width:0}
.clean-order .ldm-mode-note{display:block;margin-block:5px;font-size:11px;line-height:1.4}.clean-order [data-clean-ldm]{padding:2px 0;font-size:11px}
.clock24-canonical{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;clip-path:inset(50%)!important;pointer-events:none!important}
.clock24-pair{display:grid!important;grid-template-columns:minmax(130px,1.5fr) minmax(80px,1fr)!important;gap:8px!important;min-width:0;width:100%}
.clock24-pair>input{min-width:0!important;width:100%!important;max-width:100%!important;font-variant-numeric:tabular-nums}
.clock24-pair+select.fold-choice{width:100%}.clock24-canonical~.dt-echo{display:none}
.date-fixed{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:stretch;min-width:0;width:100%;gap:0}
.date-fixed .date-canonical{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;clip-path:inset(50%)!important;pointer-events:none!important;bottom:0;left:0}
.date-fixed input[data-date-display]{min-width:0;width:100%;grid-column:1;border-radius:var(--radius,6px) 0 0 var(--radius,6px)}
.date-fixed .date-calendar-button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;padding:0 8px;grid-column:2;border-radius:0 var(--radius,6px) var(--radius,6px) 0;border-left:0;box-shadow:none}
.date-fixed .date-calendar-button svg{flex:none}.date-format-error{grid-column:1/-1;color:var(--danger,#a12640);white-space:normal;font-size:12px;line-height:1.5;margin-top:4px}.date-format-error[hidden]{display:none}
.date-fixed~.dt-echo{display:none}
.period-editor{display:grid;gap:10px;width:auto;max-width:100%;min-width:0;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.period-editor-fields{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.period-editor-fields>label{display:grid;gap:6px;min-width:145px;flex:0 1 190px;font-size:12px}.period-editor-fields>span{padding-bottom:13px}.period-editor-fields button{min-height:42px}
.period-editor-tools{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.period-editor-tools>label{display:grid;gap:4px;flex:0 1 145px;font-size:11px}
.period-editor-tools input,.period-editor-fields input{width:100%;min-width:0;max-width:100%}
.period-editor-tools>.text-button{font-size:12px;padding:8px 2px}.period-editor-navigation{display:flex;flex-wrap:wrap;gap:7px;margin-left:auto}
.period-editor-navigation button{font-size:12px;white-space:normal}.period-applied{font-size:12px;color:var(--muted)}.period-editor [data-range-error]:empty{display:none}
.clean-order [hidden]{display:none!important}
@media(max-width:1100px){.clean-order .entry-goods-main{grid-template-columns:repeat(3,minmax(0,1fr))!important}.clean-order.entry-simple .entry-goods-main{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){body #order-panel .dossier-top{padding:12px;gap:10px}body #order-panel .dossier-top .back-button{order:0}body #order-panel .dossier-identification{order:1}body #order-panel .dossier-meta{order:2;width:100%}.clean-stop-location:has([data-clean-code]){grid-template-columns:1fr}.clean-order .stop-planned{grid-template-columns:repeat(2,minmax(0,1fr))!important}.clean-order .workflow-actual .actual-grid{grid-template-columns:minmax(0,1fr)!important}.clean-order .entry-goods-main{grid-template-columns:repeat(2,minmax(0,1fr))!important}.clock24-pair{grid-template-columns:minmax(0,1.6fr) minmax(70px,1fr)!important}.period-editor{padding:12px}.period-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.period-editor-fields>label{min-width:0}.period-editor-fields>span{display:none}.period-editor-fields>button{grid-column:1/-1}.period-editor-navigation{margin-left:0;width:100%}.period-editor-navigation>button{flex:1}.period-editor-tools>label{flex:1 1 110px}}
.sorting-code-options{max-height:240px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px;padding-block:10px}.sorting-code-options [hidden]{display:none!important}.entry-address-links details{padding:10px 0}.entry-address-links input[type=search]{width:100%}

/* Period selection stays compact until the user asks to edit it. */
.period-editor.period-compact{position:relative;display:flex;align-items:center;gap:8px;padding:0;border:0;background:transparent;min-width:0;margin:0}
.period-compact .period-chooser{flex:1;min-width:0;margin:0;border:0;padding:0;background:transparent}
.period-compact .period-chooser>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface,#fff);cursor:pointer;color:var(--text,#23334a)}
.period-chooser>summary::-webkit-details-marker{display:none}.period-control-label,.period-change-label{font-size:12px;color:var(--muted,#68758a);font-weight:400}.period-change-label{margin-left:auto}.period-chooser [data-period-summary]{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.period-compact .period-editor-navigation{flex:none;width:auto;margin:0;gap:6px}.period-compact .period-editor-navigation button{min-height:44px;padding:10px 12px;font-size:12px}
.period-compact .period-editor-panel{position:absolute;z-index:35;top:calc(100% + 8px);right:0;width:min(620px,100%);box-sizing:border-box;display:grid;gap:12px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);box-shadow:0 12px 32px #18263b26}
.period-compact .period-chooser:not([open])>.period-editor-panel{display:none}.period-editor-panel .period-editor-fields{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;gap:8px}.period-editor-panel .period-editor-fields>label{min-width:0}.period-editor-panel .period-editor-fields>button{grid-column:auto}.period-editor-panel .period-editor-tools{margin:0}.period-editor-panel .period-applied{margin:0}
#sales-workspace .compact-sales-primary{grid-template-columns:minmax(220px,1fr) minmax(460px,1.35fr);gap:16px;align-items:end;margin:12px 0 8px}
#sales-workspace .compact-sales-primary>label{gap:5px;font-size:12px}#sales-workspace .compact-sales-primary input[type=search]{min-height:44px}
.sales-secondary-toolbar{display:flex;align-items:start;justify-content:space-between;gap:12px;margin:4px 0 10px}.sales-secondary-toolbar>.compact-filter-more{flex:1;margin:0;border:0;padding:0}.sales-secondary-toolbar>.compact-filter-more>summary{min-height:32px;padding-top:6px}.sales-secondary-toolbar>[data-sales-clear]{border:0;background:transparent;min-height:32px;padding:6px 0;color:var(--muted,#68758a);font-size:12px}
#sales-workspace .sales-category-tabs{margin-bottom:8px}#sales-workspace .sales-tabs{margin-bottom:10px}#sales-workspace .sales-result-caption{margin:8px 0}#sales-workspace .sales-type-context{margin:0 0 12px}
body:has(#sales-workspace) .heading{margin-bottom:14px}
@media(max-width:1050px){#sales-workspace .compact-sales-primary{grid-template-columns:minmax(0,1fr)}.period-compact .period-editor-panel{width:min(620px,100%)}}
@media(max-width:650px){.period-editor.period-compact{flex-wrap:wrap}.period-compact .period-chooser{flex-basis:100%}.period-compact .period-editor-navigation{width:100%}.period-compact .period-editor-navigation button{flex:1;min-height:36px}.period-compact .period-editor-panel{position:static;width:100%;margin-top:8px;box-shadow:none;padding:12px}.period-editor-panel .period-editor-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.period-editor-panel .period-editor-fields>span{display:none}.period-editor-panel .period-editor-fields>button{grid-column:1/-1}.period-control-label{display:none}.sales-secondary-toolbar{flex-wrap:wrap}#sales-workspace .sales-tabs button{min-height:44px;padding-block:8px}}

/* Compact order fields stay visible, including optional reference and instructions. */
#order-panel.workflow-redesign .dossier-body{font-size:13px}
#order-panel.workflow-redesign .form-block,#order-panel.workflow-redesign .stops-block{padding:14px}
#order-panel.workflow-redesign .stop-card-content{padding:12px}
#order-panel.workflow-redesign .form-grid{gap:8px 12px}
#order-panel.workflow-redesign label{font-size:12px;line-height:1.35;margin-top:4px;margin-bottom:4px}
#order-panel.workflow-redesign input:not([type=checkbox]):not([type=radio]),#order-panel.workflow-redesign select{min-height:34px;height:34px;padding:6px 9px;font-size:13px}
#order-panel.workflow-redesign textarea{min-height:54px;height:54px;padding:7px 9px;font-size:13px}
#order-panel.workflow-redesign .compact-form-section{display:block;margin:10px 0;padding:10px 0;border:0;border-top:1px solid var(--border,#dce2eb);border-radius:0;background:transparent}
#order-panel.workflow-redesign .compact-section-title{font-size:13px;font-weight:600;margin:0 0 8px}
#order-panel.workflow-redesign .compact-form-section>.form-grid,#order-panel.workflow-redesign .compact-form-section>.address-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
#order-panel.workflow-redesign .stop-card{margin-bottom:12px}
#order-panel.workflow-redesign .workflow-stop-goods{margin-top:10px;padding-top:10px}
@media(max-width:640px){#order-panel.workflow-redesign .compact-form-section>.form-grid,#order-panel.workflow-redesign .compact-form-section>.address-grid{grid-template-columns:1fr}#order-panel.workflow-redesign input:not([type=checkbox]):not([type=radio]),#order-panel.workflow-redesign select{min-height:40px;height:40px}}

/* Compact list search with its filters. */
#workspace .compact-filter-block{padding:10px 12px!important;margin:10px 0!important}
#workspace .compact-filter-primary{display:flex!important;align-items:end;flex-wrap:wrap;gap:8px 12px!important}
#workspace .compact-filter-primary>.search-field{flex:0 1 320px!important;width:320px!important;max-width:100%;margin:0!important}
#workspace .compact-filter-primary input[type=search],#workspace #search{height:34px!important;min-height:34px!important;padding:6px 9px!important;font-size:var(--fs-control,14px)!important}
#workspace .compact-filter-primary .search-field>span{font-size:12px;margin-bottom:3px}
#workspace .compact-filter-block .filter-chips,#workspace .compact-filter-block [data-base-chips]{gap:6px;margin:6px 0!important}
#workspace .compact-filter-block .filter-chips button,#workspace .compact-filter-block [data-base-chips] button{min-height:28px;padding:4px 8px;font-size:12px}
#workspace .compact-filter-more{margin-top:8px!important;padding-top:6px!important}
@media(max-width:640px){#workspace .compact-filter-primary>.search-field{flex:1 1 100%!important;width:100%!important}#workspace #search{height:40px!important}}

@media(min-width:900px){#workspace .compact-filter-block{display:grid;grid-template-columns:320px minmax(0,1fr);align-items:end;gap:6px 12px}#workspace .compact-filter-block>.filter-chips{align-self:end;justify-content:flex-start}#workspace .compact-filter-block>.compact-filter-more{grid-column:1/-1}#workspace .compact-filter-block>.compact-filter-primary{min-width:0}}

#workspace .visible-list-filters>h4{font-size:12px;margin:0 0 6px}
#workspace .visible-list-filters .compact-filter-body{display:flex;flex-wrap:wrap;align-items:end;gap:6px 10px;padding:0}
#workspace .visible-list-filters label{font-size:12px;max-width:220px;margin:0}
#workspace .visible-list-filters input,#workspace .visible-list-filters select{min-height:32px;height:32px;padding:5px 8px;font-size:12px}
#workspace .visible-list-filters button{min-height:30px;padding:5px 8px;font-size:12px}
#workspace .visible-list-filters .filter-row{display:flex;flex-wrap:wrap;gap:6px 10px;margin:0;padding:0}
@media(max-width:640px){body.design-workspace .workspace-header .header-location{display:none}body.design-workspace .shell>header.workspace-header{grid-template-columns:auto 1fr;gap:8px}body.design-workspace .workspace-header .entity-switch{width:140px;min-width:140px}.global-search-button{font-size:11px;padding:6px 8px}body.design-workspace .workspace-header .header-right{gap:6px}}

#order-panel.workflow-redesign section.stop-specific.compact-form-section{display:grid;grid-template-columns:minmax(140px,1fr) minmax(200px,2fr);gap:8px 12px}
#order-panel.workflow-redesign section.stop-specific>.compact-section-title{grid-column:1/-1}
#order-panel.workflow-redesign section.stop-specific>label{display:flex;flex-direction:column;gap:4px;margin:0}
@media(max-width:640px){#order-panel.workflow-redesign section.stop-specific.compact-form-section{grid-template-columns:1fr}}

/* A single source/action row for the four loading milestones. */
#order-panel.workflow-redesign .sps-loading-times .actual-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px}
#order-panel.workflow-redesign .sps-loading-times .actual-grid>label{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0}
#order-panel.workflow-redesign .sps-loading-times .actual-grid>label>span{min-width:0}
#order-panel.workflow-redesign .sps-time-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}
#order-panel.workflow-redesign .sps-time-tools small{margin:0;font-size:11px;color:var(--muted,#637187)}
.sps-correction-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.sps-correction-choices>div{border:1px solid var(--border,#dce2eb);padding:10px;border-radius:6px}.sps-correction-choices small{display:block;margin-top:4px}
@media(max-width:1050px){#order-panel.workflow-redesign .sps-loading-times .actual-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){#order-panel.workflow-redesign .sps-loading-times .actual-grid{grid-template-columns:1fr!important}.sps-correction-choices{grid-template-columns:1fr}}
/* Laptop 27-11: the order panel opened next to Tasks is narrower than the screen, so the four milestones
   follow the panel width (not the screen width) and the date always shows in full (dd-mm-yyyy). */
#order-panel.workflow-redesign .sps-loading-times{container-type:inline-size}
@container (max-width:900px){#order-panel.workflow-redesign .sps-loading-times .actual-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@container (max-width:440px){#order-panel.workflow-redesign .sps-loading-times .actual-grid{grid-template-columns:1fr!important}}

#order-panel.workflow-redesign .sps-loading-times .clock24-pair{display:grid;grid-template-columns:minmax(0,1fr) 64px!important;gap:5px;min-width:0}
#order-panel.workflow-redesign .sps-loading-times .clock24-pair input{min-width:0;width:100%;font-size:12px}
#order-panel.workflow-redesign .sps-loading-times .date-fixed{min-width:0}

/* Older open sales orders remain at the top, independently of the period. */
#sales-workspace .sales-order-row.sales-older-open{background:#fff0f1;border-left:4px solid #d77a86;padding-left:12px}
#sales-workspace .sales-older-label{color:#9e3544;font-weight:600;font-size:11px;margin:4px 0}

#order-panel .dossier-meta .header-order-type{display:flex;align-items:center;gap:6px;margin:0;font-size:11px;white-space:nowrap}
#order-panel .dossier-meta .header-order-type select{width:auto;min-width:95px;max-width:180px;min-height:30px;height:30px;padding:4px 8px;font-size:12px;border:1px solid var(--border,#dce2eb);border-radius:6px;background:var(--surface,#f4f7fb)}
#order-panel #overview-form>.form-grid.four-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:640px){#order-panel #overview-form>.form-grid.four-columns{grid-template-columns:1fr}#order-panel .dossier-meta{flex-wrap:wrap}}

/* Customer-arranged transport has one calm identity across all optional interfaces. */
html{--customer-surface:#edf3f7;--customer-card:#f7fafc;--customer-text:#263f51;--customer-muted:#435d70;--customer-link:#244b76}
html body #workspace tr[data-transport-arrangement="customer"] > td,
html body #workspace .planning-card[data-transport-arrangement="customer"] {background:var(--customer-surface)!important;color:var(--customer-text)!important}
html body #workspace tr[data-transport-arrangement="customer"] :is(.order-link,.order-number){color:var(--customer-link)!important}
html body #workspace tr[data-transport-arrangement="customer"] td>small,
html body #workspace .planning-card[data-transport-arrangement="customer"] :is(p,small){color:var(--customer-muted)!important}
body .planning-card[data-transport-arrangement="customer"]{border-left:3px solid #91adbf!important}
body #order-panel[data-transport-arrangement="customer"] .dossier-head,
body #order-panel[data-transport-arrangement="customer"] .dossier-body {background:var(--customer-surface)!important}
body #order-panel[data-transport-arrangement="customer"] .dossier-head h2 {color:var(--customer-text)!important}
body #order-panel[data-transport-arrangement="customer"] .dossier-body > .form-block {background:var(--customer-card)!important}
body #order-panel .arrangement-indicator {display:inline-flex!important;align-items:center;max-width:100%;padding:4px 8px;margin-top:5px;border:1px solid #c9d9e3;border-radius:5px;background:#f5f8fa;color:#35546b;font:600 12px/1.4 var(--font-ui,Roboto,"Segoe UI",Arial,sans-serif);white-space:normal}
body #order-panel[data-transport-arrangement="customer"] .arrangement-indicator {background:#dce9f1;color:#263f51;border-color:#b5ccd9}
body #order-panel[data-transport-arrangement="unconfirmed"] .arrangement-indicator {background:#fff5df;color:#765218;border-color:#e3ce9f}
.period-legacy-field {display:none!important}
.native-period-controls,.native-calendar-field {min-width:0;max-width:100%}
.shared-order-controls > .period-editor,.task-workspace-tools > .period-editor {grid-column:1/-1}
@media print {html body #workspace tr[data-transport-arrangement="customer"]>td,body #order-panel[data-transport-arrangement="customer"] .dossier-body {background:white!important}}

body .master-list {min-width:0}
body .master-row {display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:8px 0;border-bottom:1px solid var(--border,#ddd)}
body .master-row label {flex:1 1 90px;min-width:0;margin:0;font-size:12px}
body .master-row label:first-child {flex:2 1 180px}
body .master-row input,body .master-list [data-master-add] {min-height:34px;height:34px;padding:5px 8px}
body .master-row output {display:block;min-height:34px;padding:7px 0}
body .master-actions {display:flex;gap:4px;align-items:center}
body .master-list>label {max-width:380px;margin-top:10px}
body .master-list>p {margin:6px 0}

/* Persistent transport workflow actions, shared by all dossier tabs. */
body #order-panel .dossier-foot{flex-wrap:wrap!important;flex-shrink:0;position:sticky;bottom:0;z-index:12}
body #order-panel .execution-action-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1 0 100%;min-width:0;padding:8px 0;border-bottom:1px solid var(--border,var(--line,#dce2eb))}
body #order-panel .execution-action-status,body #order-panel .execution-action-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
body #order-panel .execution-action-buttons{margin-left:auto}
body #order-panel .execution-more{position:relative}
body #order-panel .execution-more .action-menu-items{top:auto;bottom:calc(100% + 8px);right:0;left:auto;min-width:190px}
@media(max-width:650px){body.design-workspace #order-panel .dossier-foot{padding:8px 12px calc(8px + env(safe-area-inset-bottom))!important}body #order-panel .execution-action-bar{flex-wrap:wrap;gap:6px}body #order-panel .execution-action-status{font-size:12px}body #order-panel .execution-action-buttons button,body #order-panel .execution-action-buttons summary{min-height:40px}body #order-panel .dossier-foot .save-actions{flex-wrap:wrap!important}}

body #order-panel .execution-action-buttons .order-more {margin:0;flex:0 0 auto}
body #order-panel .execution-action-bar {padding:4px 0}
body #order-panel .dossier-foot>.inline-actions:empty {display:none}

@media(max-width:650px){
 body.design-workspace #order-panel .dossier-foot{max-height:none!important;overflow:visible!important}
 body #order-panel .execution-action-status{width:100%;justify-content:space-between;gap:4px;flex-wrap:nowrap}
 body #order-panel .execution-action-status strong{font-size:11px}
 body #order-panel .execution-action-status .text-button{font-size:var(--fs-note,13px);padding:4px;min-height:30px}
 body #order-panel .execution-action-buttons{width:100%;justify-content:flex-end;flex-wrap:nowrap;gap:5px}
 body #order-panel .execution-action-buttons button,body #order-panel .execution-action-buttons summary{font-size:var(--fs-note,13px)!important;padding:6px!important;min-width:0!important;white-space:normal}
}

/* Missing operational details must remain conspicuous in every order-list theme. */
body.design-workspace .planning-blocker,body .planning-blocker{color:#b42332!important;font-weight:600}

/* ISO weeks have a fixed Monday-first layout, independent of browser locale. */
.week-picker{display:grid;gap:4px;flex:0 1 170px;font-size:11px;position:relative}
.week-picker>details>summary{padding:9px 12px;border:1px solid var(--line);border-radius:7px;cursor:pointer;font-size:13px}
.week-calendar{position:absolute;z-index:40;left:0;top:100%;width:340px;max-width:calc(100vw - 48px);padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);box-shadow:0 8px 24px #18263b26}
.week-picker details:not([open])>.week-calendar{display:none}
.week-calendar-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.week-calendar-heading button{padding:5px 12px;font-size:18px}
.week-calendar-days,.week-calendar-row{display:grid;grid-template-columns:1.2fr repeat(7,1fr);text-align:center;align-items:center;gap:0}
.week-calendar-days{font-size:11px;padding:6px 0}
.week-calendar .week-calendar-row{width:100%;padding:8px 0;border:1px solid transparent;border-radius:4px;background:transparent;color:inherit;font-size:12px}
.week-calendar-row[aria-pressed="true"]{background:var(--accent,#242c48)!important;color:#fff!important}
.week-calendar .week-calendar-row:hover,.week-calendar .week-calendar-row:focus-visible{outline:2px solid var(--accent,#242c48);outline-offset:-2px}
.day-calendar.day-calendar-end{left:auto!important;right:0!important}
.day-calendar{position:absolute;z-index:45;left:0;top:calc(100% + 4px);width:280px;max-width:calc(100vw - 48px);padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);box-shadow:0 8px 24px #18263b26}
.day-calendar-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.day-calendar-heading button{padding:5px 12px;font-size:18px}
.day-calendar-days,.day-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;gap:2px}
.day-calendar-days{font-size:11px;padding:6px 0;color:#657185}
.day-calendar-grid button{min-height:32px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;color:inherit;font-size:12px}
.day-calendar-grid button.day-other{color:#8b95a3}
.day-calendar-grid button.day-in-range{background:#e8eaf1}
.day-calendar-grid button.day-selected,.day-calendar-grid button[aria-pressed="true"]{background:var(--accent,#242c48);color:#fff}
.day-calendar-grid button.day-today{border-radius:50%;box-shadow:inset 0 0 0 2px currentColor;font-weight:700}
.day-calendar-grid button:hover:not(:disabled),.day-calendar-grid button:focus-visible{outline:2px solid var(--accent,#242c48);outline-offset:-2px}
.day-calendar-grid button:disabled{opacity:.35}
.week-other-month{opacity:.5}

/* Task-focused dossier: one operational canvas, evidence beside it, one action row. */
body #order-panel.intuitive-dossier .order-information>.block-heading{display:none}
body #order-panel.intuitive-dossier .order-information>.block-body{padding:0!important}
body #order-panel.intuitive-dossier .dossier-top{margin-bottom:0!important}
body #order-panel.intuitive-dossier .dossier-identification h2{margin:0!important;font-size:var(--fs-dossier-heading,22px)!important}
body #order-panel.intuitive-dossier .dossier-meta .badge{padding:5px 8px!important}
body #order-panel.intuitive-dossier .order-information{padding:12px 16px!important;margin-bottom:14px!important}
body #order-panel.intuitive-dossier .identity-details{margin:6px 0 0;padding-top:4px}
body #order-panel.intuitive-dossier .order-information .party-selector{min-height:44px!important;padding:8px 10px!important}
body #order-panel.intuitive-dossier .order-information .party-selector small{display:none}
body #order-panel.intuitive-dossier .dossier-document-preview{width:100%;height:65vh;min-height:420px;border:0;background:var(--surface,#fff)}
body #order-panel.intuitive-dossier .dossier-body{max-width:none!important;width:100%!important;margin:0!important;padding:18px 24px!important;display:block}
body #order-panel.intuitive-dossier .dossier-body>.form-block,
body #order-panel.intuitive-dossier .order-workflow-layout,
body #order-panel.intuitive-dossier .order-operations{max-width:none!important;width:100%!important;margin-inline:0!important;display:block!important}
body #order-panel.intuitive-dossier .dossier-top{padding:12px 24px!important;min-height:0!important}
body #order-panel.intuitive-dossier .dossier-head{padding:0!important;min-height:0!important}
body #order-panel.intuitive-dossier .dossier-tabs{padding:0 24px!important;gap:16px}
body #order-panel.intuitive-dossier .entry-more-sections{margin-left:auto;position:relative}
body #order-panel.intuitive-dossier .entry-more-sections>div{position:absolute;right:0;z-index:25;min-width:220px;background:var(--surface,#fff);border:1px solid var(--line);box-shadow:0 8px 24px #18263b26;padding:8px;border-radius:6px}
body #order-panel.intuitive-dossier .entry-more-sections>div>button{display:block;width:100%;text-align:left}
body #order-panel.intuitive-dossier #stops-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px;align-items:start}
body #order-panel.intuitive-dossier .stop-card{min-width:0;width:100%;margin:0!important}
body #order-panel.intuitive-dossier .workflow-stop-times{display:block!important}
body #order-panel.intuitive-dossier .stop-planned{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body #order-panel.intuitive-dossier .workflow-actual .actual-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body #order-panel.intuitive-dossier .clock24-pair{grid-template-columns:minmax(0,1fr) minmax(66px,.65fr)!important}
body #order-panel.intuitive-dossier .dossier-disclosure{margin:12px 0;border-top:1px solid var(--line);padding-top:10px}
body #order-panel.intuitive-dossier .dossier-disclosure>summary{cursor:pointer;color:var(--muted);font-size:12px;padding:6px 0}
body #order-panel.intuitive-dossier .dossier-disclosure>.form-block{margin:8px 0!important}
body #order-panel.intuitive-dossier .dossier-stop-evidence{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
body #order-panel.intuitive-dossier .dossier-stop-evidence button{font-size:12px}
body #order-panel.intuitive-dossier .dossier-attention{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 16px;margin-bottom:16px;border:1px solid var(--line);border-radius:7px;background:var(--surface,#fff)}
body #order-panel.intuitive-dossier .dossier-attention span{color:var(--muted);font-size:12px;flex:1}
body #order-panel.intuitive-dossier .dossier-context{min-width:0;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);grid-column:2;grid-row:1 / span 30;align-self:start;position:sticky;top:0}
body #order-panel.intuitive-dossier .dossier-context>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
body #order-panel.intuitive-dossier .dossier-context h3{font-size:14px;margin:0}
body #order-panel.intuitive-dossier .dossier-context .form-block{padding:0!important;border:0!important;box-shadow:none!important}
body #order-panel.intuitive-dossier.has-dossier-context .dossier-body{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(320px,36%);gap:14px;align-content:start}
body #order-panel.intuitive-dossier.has-dossier-context .dossier-body>:not(.dossier-context){grid-column:1;min-width:0}
body #order-panel.intuitive-dossier.has-dossier-context #stops-form{grid-template-columns:minmax(0,1fr)!important}
body #order-panel.intuitive-dossier .dossier-foot{display:flex!important;align-items:center!important;gap:8px;padding:10px 24px!important}
body #order-panel.intuitive-dossier .execution-action-bar{flex:1 1 auto!important;border:0!important;margin:0!important;min-width:0}
body #order-panel.intuitive-dossier .save-actions{flex:0 1 auto!important;margin:0!important;width:auto!important}
body #order-panel.intuitive-dossier .save-actions:has(>.save-note:only-child){display:none!important}
@media(max-width:1000px){body #order-panel.intuitive-dossier #stops-form{grid-template-columns:1fr!important}body #order-panel.intuitive-dossier.has-dossier-context .dossier-body{display:block!important}body #order-panel.intuitive-dossier .dossier-context{position:static;margin-top:16px}}
@media(max-width:650px){body #order-panel.intuitive-dossier .dossier-body{padding:12px!important}body #order-panel.intuitive-dossier .dossier-tabs{padding:0 12px!important;gap:8px;flex-wrap:wrap}body #order-panel.intuitive-dossier .dossier-foot{padding:8px 12px!important}body #order-panel.intuitive-dossier .workflow-actual .actual-grid{grid-template-columns:1fr!important}body #order-panel.intuitive-dossier .execution-action-buttons{flex-wrap:wrap}}

/* Keep full primary-action labels readable on narrow dossiers. */
@media(max-width:650px){
 body #order-panel .execution-action-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:stretch}
 body #order-panel .execution-action-buttons>[data-action=save],body #order-panel .execution-action-buttons>[data-action=execution-action]{grid-column:span 2;width:100%;min-height:44px;white-space:normal!important;overflow-wrap:anywhere}
 body #order-panel .execution-action-buttons>details{min-width:0;width:100%}
 body #order-panel .execution-action-buttons>details>summary{display:flex;justify-content:center;align-items:center;white-space:normal;min-height:40px}
 body #order-panel .execution-action-buttons>details.execution-more{grid-column:2;grid-row:1}
 body #order-panel .execution-action-buttons>details.order-more{grid-column:1;grid-row:1}
 body #order-panel .execution-action-buttons button>span{white-space:normal;overflow:visible;text-overflow:clip}
}
/* 0017 (Gani 23:58): compact filters on list screens, same pattern as Tasks 0015. One row (search, period, 1–2 main
   filters, Refresh/Clear); everything else under one closed "Filters" disclosure with an "N active" hint. */
#workspace .compact-filter-block.list-filter-bar{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px 12px!important;padding:10px 12px!important;margin:0 0 10px!important}
#workspace .list-filter-bar>form{display:contents}
#workspace .list-filter-bar .compact-filter-primary{order:0;flex:1 1 100%;display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:8px 12px!important;margin:0;min-width:0}
#workspace .list-filter-bar .compact-filter-primary>label{display:grid;gap:3px;flex:1 1 170px;min-width:150px;max-width:260px;margin:0!important;font-size:12px}
#workspace .list-filter-bar .compact-filter-primary>label:first-child,#workspace .list-filter-bar .compact-filter-primary>.search-field{flex:2 1 260px!important;width:auto!important;max-width:380px!important;min-width:200px}
#workspace .list-filter-bar .compact-filter-primary select{min-height:34px;height:34px;padding:4px 8px;width:100%;min-width:0}
#workspace .list-filter-bar .compact-filter-primary>:is(.period-editor,.native-calendar-field,.shared-period-fields){flex:1 1 360px;min-width:0;margin:0}
#workspace .list-filter-bar .native-calendar-field{display:flex;align-items:flex-end;gap:8px}
#workspace .list-filter-bar .native-calendar-field>.native-period-controls{flex:1 1 auto;min-width:0;margin:0;padding:0;border:0;background:transparent}
#workspace .list-filter-bar .period-compact .period-chooser>summary{min-height:34px;padding:5px 10px;white-space:nowrap}
#workspace .list-filter-bar .period-compact .period-editor-navigation button{min-height:34px;padding:0 10px;white-space:nowrap}
#workspace .list-filter-bar .compact-filter-actions{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto;align-items:flex-end}
#workspace .list-filter-bar .compact-filter-actions>button{min-height:34px;padding:4px 10px;white-space:nowrap}
#workspace .list-filter-bar>details.compact-filter-more{order:1;flex:0 0 auto;margin:0!important;padding:0!important;border:0!important;background:transparent}
#workspace .list-filter-bar>details.compact-filter-more[open]{flex-basis:100%}
#workspace .list-filter-bar>details.compact-filter-more>summary{cursor:pointer;min-height:28px;display:list-item;font-size:12px;font-weight:600;color:#637187;padding:5px 0;width:fit-content}
#workspace .list-filter-bar .compact-filter-count:empty{display:none}
#workspace .list-filter-bar .compact-filter-count:not(:empty){background:transparent;padding:0;margin-left:2px;font-size:12px;color:var(--red,#242c48)}
#workspace .list-filter-bar>details>.compact-filter-body{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;padding:8px 0 0}
#workspace .list-filter-bar>details>.compact-filter-body>label{display:grid;gap:3px;flex:1 1 180px;max-width:280px;min-width:0}
#workspace .list-filter-bar>details>.compact-filter-body>:is(.shared-order-controls,.inline-actions,.filter-row,.toolbar-actions){display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;flex:1 1 100%;margin:0}
#workspace .list-filter-bar>details>.compact-filter-body>.shared-order-controls>label{flex:1 1 170px;max-width:300px;min-width:0}
#workspace .list-filter-bar .compact-filter-body>.list-workbench{flex:1 1 100%;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
#workspace .list-filter-bar>:is(.filter-chips,[data-wb-chips],[data-base-chips]){order:2;flex:1 1 auto;margin:0!important}
#workspace .list-filter-bar>:is(.filter-chips,[data-wb-chips],[data-base-chips],.form-error,[role=alert]):empty{display:none}
#workspace .list-filter-bar>:is(.form-error,[role=alert],[role=status],.design-filter-count){order:3}
#workspace .list-filter-bar>.period-caption{display:none}
/* One-control filter strips (CMR review, Messages, Credits): one row instead of a stacked block. */
body:is([data-workspace=cmrReview],[data-workspace=awaitingReplies],[data-workspace=financeCredits]) #workspace>.filter-block:not(.list-filter-bar){display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;padding:10px 12px}
body:is([data-workspace=cmrReview],[data-workspace=awaitingReplies],[data-workspace=financeCredits]) #workspace>.filter-block:not(.list-filter-bar)>label{flex:0 1 280px;margin:0;display:grid;gap:3px}
body:is([data-workspace=cmrReview],[data-workspace=awaitingReplies],[data-workspace=financeCredits]) #workspace>.filter-block:not(.list-filter-bar) select{min-height:36px;height:auto;padding-block:6px;line-height:1.3}
body[data-workspace=financeCredits] #workspace>.filter-block:not(.list-filter-bar)>small{flex:1 1 240px;align-self:center}
/* Carrier Quality Monitor: search, carrier, monitoring period and Refresh on one row. */
.cq-workspace .cq-filter-row{margin:0 0 10px}
.cq-workspace .cq-filter-row select,.cq-workspace .cq-filter-row input{min-height:34px}
@media(max-width:750px){
 #workspace .list-filter-bar .compact-filter-primary{flex-direction:column;align-items:stretch}
 #workspace .list-filter-bar .compact-filter-primary>*{flex:none!important;width:100%!important;max-width:none!important;min-width:0!important}
 /* The desktop sizes (flex-basis 260px) would become heights in this column layout. */
 #workspace .list-filter-bar .compact-filter-primary>label:first-child,#workspace .list-filter-bar .compact-filter-primary>.search-field{flex:none!important}
 #workspace .list-filter-bar .compact-filter-primary :is(input,select,button),#workspace .list-filter-bar .period-compact .period-chooser>summary{min-height:40px}
 #workspace .list-filter-bar .compact-filter-primary input[type=search]{height:40px!important;min-height:40px!important}
 #workspace .list-filter-bar .compact-filter-actions{margin-left:0}
 #workspace .list-filter-bar .compact-filter-actions>button{flex:1 1 0;min-height:40px}
 #workspace .list-filter-bar>details>.compact-filter-body>label,#workspace .list-filter-bar>details>.compact-filter-body>.shared-order-controls>label{flex:1 1 100%;max-width:none}
 #workspace .list-filter-bar>details>.compact-filter-body :is(select,input,button){min-height:40px}
 body:is([data-workspace=cmrReview],[data-workspace=awaitingReplies],[data-workspace=financeCredits]) #workspace>.filter-block:not(.list-filter-bar)>label{flex:1 1 100%}
}
.cq-workspace .cq-filters.cq-filter-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;padding:10px 24px;margin:0}
.cq-workspace .cq-filter-row>label{display:grid;gap:3px;flex:1 1 180px;max-width:300px;min-width:150px;margin:0}
.cq-workspace .cq-filter-row>label.task-search{flex:2 1 260px;max-width:380px}
.cq-workspace .cq-filter-row>.task-filter-actions{margin-left:auto}
@media(max-width:750px){.cq-workspace .cq-filters.cq-filter-row{flex-direction:column;align-items:stretch;padding:10px 16px}.cq-workspace .cq-filter-row>*{max-width:none!important;width:100%}.cq-workspace .cq-filter-row :is(input,select,button){min-height:40px}.cq-workspace .cq-filter-row>.task-filter-actions{margin-left:0}.cq-workspace .cq-filter-row>.task-filter-actions>button{flex:1}}

/* Gani 12-11: one UI font (Roboto, declared in style.css as --font-ui). Saira Expanded stays for the SHAOKE word only.
   Figures in tables, times, amounts and pallet counts are equal width so columns line up. */
html:root body :is(table,input[type=number],input[type=time],input[type=date],input[type=datetime-local],.total-pallets-loaded-actuals){font-variant-numeric:tabular-nums}

/* Gani 12-11: calm order header. Line 1: order number, customer and type. Line 2: status items as text with a dot.
   Colour only for attention (amber), a problem (red) or the next step to take (blue). */
html:root body #order-panel .dossier-meta{gap:6px 18px;align-items:center}
html:root body #order-panel .dossier-identification h2 .dossier-type{display:inline!important;margin:0!important;font-size:inherit!important;color:inherit;font-weight:inherit}
html:root body #order-panel .dossier-meta :is(.badge.header-state,.sps-header-status,.total-pallets-loaded-header){display:inline-flex;align-items:center;gap:7px;min-height:28px;margin:0;padding:0!important;border:0!important;border-radius:0;background:none!important;box-shadow:none;color:var(--text-ink,#202b39)!important;font-size:var(--fs-meta,14px)!important;font-weight:500!important;line-height:1.3;white-space:nowrap}
html:root body #order-panel .dossier-meta :is(.badge.header-state,.total-pallets-loaded-header)::before,
html:root body #order-panel .dossier-meta .sps-header-status:is([data-sps-tone=ok],[data-sps-tone=neutral])::before{content:"";width:8px;height:8px;border-radius:50%;background:#98a2b3;flex:none}
html:root body #order-panel .dossier-meta .badge.total-pallets-loaded-header::before,
html:root body #order-panel .dossier-meta .sps-header-status[data-sps-tone=ok]::before{background:#1f7a4a}
html:root body #order-panel .dossier-meta .badge.header-state[data-tone=next]{color:#2f5fd0!important;font-weight:600!important}
html:root body #order-panel .dossier-meta .badge.header-state[data-tone=next]::before{background:#2f5fd0}
html:root body #order-panel .dossier-meta .sps-header-status:is([data-sps-tone=ok],[data-sps-tone=neutral]) .sps-header-icon{display:none}
html:root body #order-panel .dossier-meta :is(.badge.header-state[data-tone=attention],.badge.header-state[data-tone=bad],.sps-header-status[data-sps-tone=warning],.sps-header-status[data-sps-tone=error],#progress-hint){padding:3px 9px!important;border-radius:6px;font-weight:600!important}
html:root body #order-panel .dossier-meta :is(.badge.header-state[data-tone=attention],.sps-header-status[data-sps-tone=warning],#progress-hint){background:#fdf3df!important;color:#8a5200!important}
html:root body #order-panel .dossier-meta :is(.badge.header-state[data-tone=bad],.sps-header-status[data-sps-tone=error]){background:#fdecea!important;color:#a3261b!important}
html:root body #order-panel .dossier-meta :is(.badge.header-state[data-tone=attention],.badge.header-state[data-tone=bad])::before{display:none}
html:root body #order-panel .dossier-meta .sps-header-status:hover{text-decoration:underline;text-underline-offset:3px}
html:root body #order-panel .dossier-meta .sps-sync-icon{min-height:28px;height:28px;width:28px;padding:0;margin-left:-12px;border-radius:6px;font-size:15px;line-height:1;color:var(--text-muted,#596577)}
html:root body #order-panel .dossier-identification .arrangement-indicator[hidden]{display:none!important}
/* Live clipping audit 12-11: keep controls, names and row actions readable at every width and text size. */
body.design-workspace :is(input,select){text-overflow:ellipsis}
body.design-workspace .records-block td>.order-link{white-space:normal;overflow-wrap:break-word;text-align:left;max-width:22em}
body.design-workspace .records-block .table-wrap td:last-child .inline-actions>:is(button,details>summary,summary){white-space:nowrap}
body.design-workspace .records-block .table-wrap :is(th,td):last-child{position:sticky;right:0;z-index:1;background:#fff;box-shadow:-8px 0 8px -8px rgba(15,23,42,.18)}
.cq-workspace .cq-filter-row>label:has(#cq-period){flex-basis:260px;max-width:380px}
@media(max-width:750px){
 body.design-workspace .records-block .table-wrap :is(th,td):last-child{position:static;box-shadow:none;background:transparent}
 body.design-workspace .records-block td>.order-link{max-width:100%}
 body.design-workspace .heading :is(#page-actions,*) .about-view,body.design-workspace .heading .about-view{display:inline-grid;place-items:center;padding:0!important;width:40px;min-width:40px;overflow:hidden}
}
/* Orders list fits 1280-1440 px at every text size: the floating feedback button now sits bottom-left, so the row-action gutter is gone; the main row action wraps above a compact Delete and long references may break. */
body.design-workspace #order-list-results tr>td:last-child>.row-open{display:flex;width:100%;max-width:10em;white-space:normal;text-align:left;margin:0 0 6px}
body.design-workspace #order-list-results tr>td:last-child>.row-delete{margin-left:0}
body.design-workspace #order-list-results .order-cell-id small{overflow-wrap:anywhere}
#workspace .list-filter-bar>details>.compact-filter-body label:is(:has(select[data-wb=direction]),:has(select[data-order-control=direction]),:has(#export-direction),:has(#export-cancelled)){flex-basis:240px;max-width:320px}
/* Order dossier address details: wide location name and street, short country, postcode and house number. */
@media(min-width:641px){
 #order-panel .address-fields>.address-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr)}
 #order-panel .address-fields>.address-grid>label:nth-child(4){grid-column:3;grid-row:2}
 #order-panel .address-fields>.address-grid>label:nth-child(5){grid-column:1/3;grid-row:2}
 #order-panel .address-fields>.address-grid>label:nth-child(6){grid-column:1/-1;grid-row:3}
}
/* Tables fit 1280-1440 px at every text size: headers may wrap, long e-mail addresses and tokens break, row actions wrap under each other. Order numbers in the orders list never break. */
body.design-workspace #workspace .table-wrap th{white-space:normal}
body.design-workspace #workspace .table-wrap th .column-sort{white-space:normal;text-align:left;line-height:1.25}
body.design-workspace #workspace .table-wrap td{overflow-wrap:anywhere}
body.design-workspace #order-list-results td{overflow-wrap:normal}
body.design-workspace .records-block .table-wrap td:last-child .inline-actions{flex-wrap:wrap}

/* Gani 12-11: Messages has one tab per kind of carrier message (same look as the order workspace views) and per tab
   Open / Replied / Handled. Counts are open work only; a zero count stays quiet. */
.message-tabs{display:flex;gap:4px;flex-wrap:wrap;padding:0 0 10px;margin:14px 0 12px;border-bottom:1px solid var(--line)}
.message-tabs button{width:auto;background:transparent;color:var(--muted);border:1px solid transparent;font-size:13px;padding:9px 12px;gap:8px}
.message-tabs button.active{background:white;border-color:#dbe1e9;color:var(--ink);box-shadow:inset 0 -2px var(--red)}
.message-states{display:inline-flex;margin:0 0 12px;border:1px solid #d5d9e5;border-radius:6px;overflow:hidden}
.message-states button{width:auto;border:0;border-radius:0;min-height:32px;padding:6px 14px;font-size:13px;background:white;gap:8px}
.message-states button+button{border-left:1px solid #d5d9e5}
.message-states button.active{background:#eef1f8;color:var(--ink)}
.message-count{display:inline-block;min-width:20px;padding:1px 6px;border-radius:10px;background:#eef1f8;color:#43495d;font-size:12px;font-weight:600;line-height:16px;text-align:center;font-variant-numeric:tabular-nums}
.message-count[data-count="0"]{background:transparent;color:#9aa1b2}
.message-actions button{margin:0 6px 6px 0}
.handled-channels{border:0;padding:0;margin:0 0 12px;display:flex;flex-wrap:wrap;gap:6px 18px}
.handled-channels legend{padding:0;margin:0 0 8px;font-weight:600}
#message-handled-form .handled-channel{display:inline-flex;flex-direction:row;align-items:center;gap:7px;margin:0;white-space:nowrap;font-weight:500;cursor:pointer}
#message-handled-form .handled-channel input[type=radio]{width:16px;height:16px;min-height:0;margin:0;padding:0;flex:none}
.message-handled-line{color:#2e6b3f}

/* Gani 12-11: the order list like the compact 11-11 screenshot. One action button plus a ⋮ menu (Open order, Delete order)
   per row instead of a big red Delete button, and counts on the order queue tabs. The menu opens to the left and upwards
   so it is never cut off by the table's scroll box. */
#order-list-results .row-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;justify-content:flex-start}
body.design-workspace #order-list-results .row-actions>.row-open{display:inline-flex!important;align-items:center;gap:6px;width:auto;max-width:11.5em;min-width:0;margin:0;white-space:nowrap;overflow:hidden}
#order-list-results .row-open-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
details.row-more{position:relative;flex:none}
details.row-more>summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid #d5d9e5;border-radius:4px;background:#fff;color:#43495d;font-size:18px;line-height:1;cursor:pointer;user-select:none}
details.row-more>summary::-webkit-details-marker{display:none}
details.row-more>summary:hover{background:#f7f7fb;border-color:#b3b7c9}
details.row-more[open]>summary{background:#eef1f8}
details.row-more>.row-more-menu{position:fixed;z-index:2000;display:grid;gap:2px;min-width:150px;padding:4px;background:#fff;border:1px solid #d5d9e5;border-radius:6px;box-shadow:0 8px 24px rgba(15,23,42,.14)}
details.row-more .row-more-item{display:flex;justify-content:flex-start;width:100%;min-height:32px;margin:0;padding:6px 10px;border:0;border-radius:4px;background:transparent;color:#242c48;font-weight:500;text-align:left;white-space:nowrap}
details.row-more .row-more-item:hover:not(:disabled){background:#f3f4f8}
html:root body details.row-more .row-more-item.row-delete{color:#a1263d!important;background:transparent!important;border:0!important;box-shadow:none!important}
html:root body details.row-more .row-more-item.row-delete:hover:not(:disabled){background:#fbeef0!important}
html:root body details.row-more .row-more-item.row-delete:disabled{color:#9aa1b2!important}
#order-list-results td:has(details.row-more[open]){z-index:30!important}
body.design-workspace.compact-list #order-list-results .row-actions>.row-open{min-height:28px!important;height:auto;padding:4px 10px!important;font-size:var(--fs-note);line-height:var(--lh-table)}
body.design-workspace.compact-list details.row-more>summary{width:28px;height:28px;font-size:16px}
.workspace-subnav .subnav-count{display:inline-block;min-width:20px;margin-left:8px;padding:1px 6px;border-radius:10px;background:#eef1f8;color:#43495d;font-size:12px;font-weight:600;line-height:16px;text-align:center;font-variant-numeric:tabular-nums}
.workspace-subnav button.primary .subnav-count{background:rgba(255,255,255,.22);color:inherit}

/* Gani/Iggy 12-11: a small copy icon inside code, reference and address fields instead of a big Copy button. */
.field-copy-wrap{position:relative;display:block;min-width:0}
.field-copy-wrap>input{width:100%;padding-right:32px!important}
.field-copy{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;min-height:0!important;padding:0!important;margin:0;border:0!important;border-radius:4px;background:transparent!important;box-shadow:none!important;color:#6b7280;cursor:pointer;vertical-align:middle}
.field-copy-wrap>.field-copy{position:absolute;right:5px;top:50%;transform:translateY(-50%)}
.field-copy:hover{background:#eef1f8!important;color:#242c48}
.field-copy:focus-visible{outline:2px solid #2f5fd0;outline-offset:1px}
.field-copy.copied{color:#2e6b3f}
.field-copy-inline{margin-left:6px;width:22px;height:22px}
/* Gani 15-11: the whole order row opens the order. */
#order-list-results tr.order-data-row{cursor:pointer}
/* Gani 15-11 (Iggy point 1): one red dot per order with a problem; the dot is 10px, its hover area 16px. */
/* Gani 15-11 (Iggy points 2 and 3): actions for ticked orders, the Review & send bar and quick edit. */
.bulk-actions-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bulk-reason{display:block;flex-basis:100%;color:var(--muted,#5b6475)}
.send-run-bar{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:60;display:flex;flex-wrap:wrap;gap:10px;align-items:center;max-width:calc(100vw - 32px);padding:10px 14px;background:#fff;border:1px solid #d5dae3;border-radius:10px;box-shadow:0 8px 24px rgba(20,28,48,.18)}
.quick-edit-form{display:grid;gap:12px}
.quick-edit-stop{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border:1px solid #e2e6ed;border-radius:8px;padding:8px 10px}
.quick-edit-stop legend{font-weight:600;padding:0 4px}
@media (max-width:600px){.quick-edit-stop{grid-template-columns:1fr}.send-run-bar{left:16px;right:16px;transform:none;max-width:none}}
body .problem-dot{display:inline-block;width:16px;height:16px;margin:0 4px 0 -3px;vertical-align:-3px;border-radius:50%;background:radial-gradient(circle,#b42332 0 5px,transparent 5.5px);cursor:help;flex:none}
#order-list-results tr.order-data-row:hover>td{background:#f7f8fc}
#order-list-results tr.order-data-row :is(input,button,summary,a){cursor:pointer}

/* Orders: keep the working list close to its search and period controls. */
body.design-workspace .heading .data-freshness{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;max-width:none;align-items:center}
body.design-workspace .data-freshness .freshness-time{grid-column:1;grid-row:1}
body.design-workspace .data-freshness>small{grid-column:1;grid-row:2}
body.design-workspace .data-freshness>button{grid-column:2;grid-row:1 / span 2}
body.design-workspace .data-freshness .freshness-error{grid-column:1 / -1}
body.design-workspace[data-workspace=orders] .shell>main{padding-top:14px}
body.design-workspace[data-workspace=orders] nav.transport-workspace-views{margin-bottom:8px;padding-bottom:6px}
body.design-workspace[data-workspace=orders] .workspace-subnav{margin-bottom:8px;padding-bottom:6px}
body.design-workspace[data-workspace=orders] .planning-categories{margin-bottom:8px;padding-bottom:6px}
body.design-workspace[data-workspace=orders] .transport-workspace-views>button{min-height:34px;padding-block:6px}
body.design-workspace[data-workspace=orders] #workspace .list-filter-bar .compact-filter-primary>.search-field{flex:2 1 240px!important}
body.design-workspace[data-workspace=orders] #workspace .list-filter-bar .compact-filter-primary>.period-editor{flex:1 1 260px}
@media(max-width:750px){
 body.design-workspace[data-workspace=orders] #workspace .list-filter-bar .compact-filter-primary>.search-field{flex:none!important}
 body.design-workspace[data-workspace=orders] .transport-workspace-views>button{min-height:40px}
}

/* Keep the action menu at the right edge even when data columns are reordered or hidden. */
#order-list-results .order-id-actions{display:flex;align-items:center;gap:6px}
#order-list-results .order-id-actions>.order-number{min-width:0;white-space:normal;text-align:left}
#order-list-results .order-arrangement-marker{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:1.4em;height:1.4em;padding:0 3px;box-sizing:border-box;border:1px solid #d7dde7;border-radius:3px;background:#f4f6fa;color:#506078;font-size:var(--fs-cell-meta,11px);font-weight:600;line-height:1}
body.design-workspace #order-list-results .table-wrap :is(.order-actions-column,.order-cell-actions){position:sticky;right:0;width:1%;min-width:48px;text-align:right;white-space:nowrap;background:#fff;z-index:2;box-shadow:-1px 0 #e4e9ee}
#order-list-results .order-cell-actions .row-more{display:inline-block;text-align:left}
@media(max-width:750px){
 body.design-workspace #order-list-results .table-wrap .order-cell-actions{position:static;grid-column:3;grid-row:1;align-self:start;justify-content:flex-end;min-width:0;box-shadow:none}
 #order-list-results .order-cell-actions:before{display:none}
 body.design-workspace #order-list-results .order-cell-actions .row-more>summary{width:40px;height:40px;font-size:18px}
 body.design-workspace #order-list-results .order-data-row .order-cell-status{grid-column:2/-1;grid-row:2;max-width:none}
}
#order-list-results .row-more .row-open{display:flex!important;white-space:normal;text-align:left;gap:6px}
#order-list-results .row-more .row-open svg{width:16px;height:16px;flex-shrink:0}
.carrier-alias-suggestion{align-self:center;display:grid;gap:4px}
.carrier-alias-suggestion button{justify-self:start}

#order-list-results .row-more-menu{width:max-content;max-width:min(280px,calc(100% - 16px))}
#order-list-results .row-more-menu .row-open-label{white-space:normal;overflow:visible;text-overflow:clip;max-width:230px}
.carrier-display-alias{display:grid;gap:6px;align-content:start}

/* Superadmin: open the existing number correction beside the number itself. */
html:root body #order-panel .dossier-identification h2 .order-number-edit{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-width:28px;width:28px;min-height:28px;height:28px;margin-left:4px;padding:4px;border:0;background:transparent;color:#64748b;border-radius:6px}
html:root body #order-panel .dossier-identification h2 .order-number-edit:hover{color:#245e9b;background:#edf2f9}
html:root body #order-panel .dossier-identification h2 .order-number-edit:focus-visible{outline:2px solid #245e9b;outline-offset:2px}
#order-panel .delivery-confirmation,#order-panel .delivery-order-summary{grid-column:1/-1;min-width:0;border-top:1px solid var(--line,#dce2ed);padding-top:14px;margin-top:14px}
#order-panel .delivery-confirmation .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#order-panel .delivery-confirmation input:not([type=checkbox]){width:100%;min-width:0;box-sizing:border-box}
#order-panel .delivery-status p{margin:4px 0;overflow-wrap:anywhere}
body #order-panel .delivery-confirmation .check-row{display:flex;justify-content:flex-start;text-align:left;gap:8px;margin:12px 0;align-items:flex-start}
body #order-panel .delivery-confirmation .check-row input[type=checkbox]{flex:0 0 auto;width:16px;min-width:16px;margin:2px 0 0}
@media(max-width:640px){#order-panel .delivery-confirmation .form-grid{grid-template-columns:1fr}}
#order-panel .actual-correction-tools{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:5px;min-width:0}
#order-panel .actual-correction-tools small{flex:1 1 150px;min-width:0;overflow-wrap:anywhere;font-weight:400}
#order-panel .actual-correction-pencil{display:inline-flex;align-items:center;gap:5px;min-height:30px;white-space:nowrap}
#order-panel .actual-correction-pencil span{font-size:19px;line-height:1}
#order-panel .cmr-quantity-warning{display:block;color:#92400e;background:#fffbeb;padding:8px;border-radius:6px;overflow-wrap:anywhere}
#order-panel .cmr-quantity-warning[hidden]{display:none}
/* Ljubica 24-11 (point 15): in the two-column stop layout, loading stops always on the left and unloading stops on the right. */
@media(min-width:1001px){body #order-panel.intuitive-dossier:not(.has-dossier-context) #stops-form:has(>.loading-card):has(>.unloading-card){grid-auto-flow:row dense}body #order-panel.intuitive-dossier:not(.has-dossier-context) #stops-form:has(>.loading-card):has(>.unloading-card)>.loading-card{grid-column:1}body #order-panel.intuitive-dossier:not(.has-dossier-context) #stops-form:has(>.loading-card):has(>.unloading-card)>.unloading-card{grid-column:2}}
/* Gani 29-11: the document preview next to an order is large in every order layout (it was a 300x150 frame). */
#order-panel .dossier-context.is-document>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
#order-panel .dossier-context.is-document h3{margin:0;font-size:15px}
#order-panel .dossier-document-preview{display:block;width:100%!important;height:calc(100vh - 230px)!important;min-height:520px!important;border:1px solid var(--line,#e1e3ed);border-radius:8px;background:#fff}
#order-panel .dossier-document-image{width:100%;height:calc(100vh - 230px);min-height:520px;overflow:auto;border:1px solid var(--line,#e1e3ed);border-radius:8px;background:#f4f5f8;display:flex;align-items:flex-start;justify-content:center}
#order-panel .dossier-document-image img{display:block;max-width:100%;height:auto;cursor:zoom-in}
#order-panel .dossier-document-image.is-zoomed{display:block}
#order-panel .dossier-document-image.is-zoomed img{max-width:none;width:180%;cursor:zoom-out}
@media(min-width:1001px){#order-panel.has-dossier-context .dossier-body{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(380px,44%)!important;gap:16px;align-content:start}#order-panel.has-dossier-context .dossier-body>:not(.dossier-context){grid-column:1;min-width:0}#order-panel .dossier-context.is-document{grid-column:2;grid-row:1 / span 30;align-self:start;position:sticky;top:0;padding:14px;border:1px solid var(--line,#e1e3ed);border-radius:10px;background:var(--surface,#fff)}}
/* Gani 29-11: long lists keep their column headings in view. The table area is at most one screen high
   (below the 64 px top bar) and scrolls inside, so the heading row stays frozen; short tables are unchanged. */
@media(min-width:751px){
  #workspace .table-wrap{max-height:calc(100vh - 84px);overflow:auto}
  #workspace .table-wrap>table>thead>tr>th{position:sticky;top:0;z-index:3;background:#f7f8fb;box-shadow:inset 0 -1px 0 var(--line,#e1e3ed)}
  #workspace .table-wrap>table>thead>tr>th:last-child{z-index:4}
}
/* Gani 29-11: export and download buttons show an Excel or CSV icon before the text. */
button:has(>.file-icon){display:inline-flex!important;align-items:center;gap:8px}
button>.file-icon{flex:0 0 auto;display:block;filter:drop-shadow(0 1px 0 rgba(0,0,0,.08))}
.primary>.file-icon{background:#fff;border-radius:4px;padding:1px}
/* Gani 29-11: Export missing CMRs menu: wider, calm sections, Excel/CSV as choice tiles. */
.cmr-export-menu{width:440px!important;gap:14px!important;padding:18px!important;border-radius:12px!important;border-color:#e3e6ee!important;box-shadow:0 18px 44px rgba(31,39,66,.18),0 2px 6px rgba(31,39,66,.06)!important}
.cmr-export-menu legend{font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:#6b7186!important;margin-bottom:8px!important}
.cmr-export-menu .period-editor{width:100%;max-width:none}
.cmr-export-menu .period-editor *{min-width:0}
.cmr-format-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cmr-format-tile{position:relative;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #d8dce6;border-radius:10px;background:#fff;cursor:pointer;transition:border-color .12s,box-shadow .12s,background .12s}
.cmr-format-tile:hover{border-color:#b7bfd3;background:#fafbfd}
.cmr-format-tile input{position:absolute;opacity:0;pointer-events:none}
.cmr-format-tile .file-icon{width:26px;height:26px;flex:0 0 auto}
.cmr-format-tile span{display:flex;flex-direction:column;line-height:1.25}
.cmr-format-tile strong{font-size:13.5px;color:#1f2742}
.cmr-format-tile small{font-size:11.5px;color:#6b7186}
.cmr-format-tile:has(input:checked){border-color:#21A366;box-shadow:0 0 0 3px rgba(33,163,102,.14);background:#f3fbf6}
.cmr-format-tile:has(input[value=csv]:checked){border-color:#5b6275;box-shadow:0 0 0 3px rgba(91,98,117,.14);background:#f5f6fa}
.cmr-format-tile:has(input:focus-visible){outline:2px solid #2f5bd3;outline-offset:2px}
.cmr-export-menu .cmr-export-count{margin:0;padding:10px 12px;border-radius:8px;background:#f5f6fa;font-weight:600;color:#1f2742}
.cmr-export-menu .cmr-export-error:empty{display:none}
.cmr-export-menu .inline-actions{justify-content:flex-end;border-top:1px solid #eceef3;padding-top:12px;margin-top:2px}
@media(max-width:520px){.cmr-export-menu{width:calc(100vw - 32px)!important}.cmr-format-tiles{grid-template-columns:1fr}}
.cmr-export-menu .cmr-format-tile{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;text-align:left}
.cmr-export-menu .period-chooser>summary{display:flex!important;align-items:center;gap:8px;white-space:nowrap;min-width:150px}
.cmr-export-menu .period-chooser>summary strong{white-space:nowrap}
/* Gani 29-11: Actions cards compact. Small buttons, values on one line, the label with its reason on one line. */
.action-card .action-choice{grid-template-columns:minmax(170px,1.4fr) minmax(110px,1fr) minmax(110px,1fr) auto!important;gap:2px 14px!important;padding:5px 0!important}
.action-card .action-choice-label{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:13px;line-height:1.3}
.action-card .action-choice-label .action-reason{display:inline;font-size:11.5px}
.action-card .action-choice>span:not([class]){white-space:nowrap;font-size:13px;color:var(--muted,#526176)}
.action-card .action-choice>span:not([class]) strong{color:#1f2742}
.action-card .action-choice-buttons button,.action-card .action-choice-buttons a,.action-card .action-card-buttons button{min-height:0!important;height:auto!important;padding:5px 11px!important;font-size:12.5px!important;line-height:1.25!important;border-radius:7px!important;white-space:nowrap;width:auto!important}
.action-card .action-choice-buttons{gap:5px;justify-content:flex-end}
.action-card .action-card-title{font-size:14px}
@media (max-width:760px){.action-card .action-choice{grid-template-columns:1fr 1fr!important}.action-card .action-choice-label,.action-card .action-choice-buttons{grid-column:1/-1}.action-card .action-choice-buttons{justify-content:flex-start}}
@media (min-width:761px){.action-card .action-choice:not(.action-choice-goods){grid-template-columns:minmax(190px,280px) minmax(120px,170px) minmax(120px,170px) auto!important;justify-content:start}}
/* Gani 29-11 (2): in the narrower Actions window the buttons stuck out of the card. Columns now shrink first; nothing overflows. */
.action-card{overflow:hidden}
.action-card .action-choice:not(.action-choice-goods){grid-template-columns:minmax(130px,280px) minmax(80px,170px) minmax(80px,170px) max-content!important;justify-content:stretch}
.action-card .action-choice>*{min-width:0}
.action-card .action-choice>span:not([class]){overflow:hidden;text-overflow:ellipsis}
@media (max-width:620px){.action-card .action-choice:not(.action-choice-goods){grid-template-columns:1fr 1fr!important}}
/* Gani 29-11 (3): "Apply choices" floated over the rows, dates were cut off ("17-11 …") and the rows left the right side empty.
   The card buttons now get their own line under the rows (right), the rows use the full width and values wrap instead of being cut. */
.action-card>.action-card-main{flex:1 1 100%}
.action-card>.action-card-buttons{margin-left:auto;justify-content:flex-end}
.action-card .action-choice:not(.action-choice-goods){grid-template-columns:minmax(130px,1.5fr) minmax(90px,1fr) minmax(90px,1fr) max-content!important}
.action-card .action-choice>span:not([class]){white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.action-card .action-choice>span:not([class]) strong{white-space:nowrap}
/* Gani 29-11 (4): TMS and SPS once, as a column heading that stays at the top of the Actions list while scrolling.
   All cards use the same columns so the heading lines up; on small screens the heading hides and each row says TMS/SPS again. */
@media (min-width:621px){.action-card .action-choice:not(.action-choice-goods),.action-colhead{grid-template-columns:minmax(130px,1.5fr) minmax(90px,1fr) minmax(90px,1fr) 210px!important}.action-card .action-choice-label{grid-column:auto}.action-card .action-choice-buttons{grid-column:auto;justify-content:flex-end}}
.action-card .action-choice-buttons{flex-wrap:wrap}
.action-colhead{display:grid;gap:2px 14px;position:sticky;top:-1px;z-index:2;margin:0 0 6px;padding:6px 13px;background:var(--surface,#fff);border-bottom:1px solid var(--line,#d9dee7);font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#526176)}
.action-colhead>span:last-child{text-align:right}
@media (min-width:621px){.action-card .action-side{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
.modal-body .action-colhead{top:-20px;padding-top:12px}
@media (max-width:620px){.action-colhead{display:none}}
/* Gani 29-11 (5): screen sweep over all pages (1280, 1000 and 800 px wide). Nothing is cut off with "…", nothing sticks out
   of its block, and nothing slides over another button. */
/* Orders (compact rows): loading and unloading place used to end in "…"; it now wraps to at most two lines. */
body.design-workspace.compact-list #order-list-results .order-cell-id small,body.design-workspace.compact-list #order-list-results .schedule-cell small{white-space:normal;text-overflow:clip;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:220px}
/* Tables: a date/place cell may be narrower, so the action column stays in view on laptops. */
.design-workspace .schedule-cell{min-width:140px}
.schedule-cell>small{white-space:normal;overflow-wrap:anywhere}
/* Carrier invoices: the review links wrap instead of pushing "Review invoice" out of the block. */
.invoice-progress .order-link,.invoice-progress>span{white-space:normal;text-align:left;max-width:16em}
.records-block td .badge{white-space:normal}
/* Period chooser in a filter row: "Next period" no longer slides over Columns or the Urgent tick box; the row wraps instead. */
body.design-workspace #workspace :is(.task-filter-row,.compact-filter-primary,.list-filter-bar)>.period-editor.period-compact{min-width:max-content!important;max-width:100%}
@media(max-width:650px){body.design-workspace #workspace :is(.task-filter-row,.compact-filter-primary,.list-filter-bar)>.period-editor.period-compact{min-width:0!important}}
/* Carrier Quality: the tabs wrap on a smaller screen instead of disappearing to the right. */
.cq-tabs{flex-wrap:wrap;row-gap:0;overflow:visible}
/* Wide lists on a laptop (Missing CMRs, Carrier invoices, ...): the last column with the action buttons stays at the right
   edge while the table scrolls sideways, so "Open order", "Upload" or "Review invoice" are always in view. */
body.design-workspace #workspace :is(.table-wrap,.records-block)>table:has(>tbody>tr>td:last-child :is(button,a))>tbody>tr>td:last-child{position:sticky;right:0;z-index:1;background:#fff;box-shadow:-8px 0 8px -8px rgba(15,23,42,.18)}
body.design-workspace #workspace :is(.table-wrap,.records-block)>table:has(>tbody>tr>td:last-child :is(button,a))>thead>tr>th:last-child{position:sticky;right:0;z-index:4;background:#f7f8fb;box-shadow:-8px 0 8px -8px rgba(15,23,42,.18),inset 0 -1px 0 var(--line,#e1e3ed)}
