/* One header baseline; account/version details are secondary to search and entity. */
body.design-workspace .shell>header.workspace-header{height:64px;min-height:64px;display:grid;grid-template-columns:auto minmax(100px,1fr) minmax(200px,360px) auto;align-items:center;gap:16px;padding:10px 20px;background:#fff;backdrop-filter:none;z-index:50}
.workspace-header .header-navigation{display:flex;align-items:center;gap:4px}
body.design-workspace .workspace-header .header-navigation button{height:36px;min-height:36px;width:32px;min-width:32px;padding:0;border:0;background:transparent;color:#536174;font-size:20px}
body.design-workspace .workspace-header .header-location{display:block;min-width:0;flex:initial;line-height:1.4}
body.design-workspace .workspace-header #breadcrumb{display:block;color:#47566a;font-size:13px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.design-workspace .workspace-header .global-order-search{width:100%;min-width:0;max-width:none;position:relative;flex:initial;margin:0}
body.design-workspace .workspace-header .global-order-search>input{height:40px;min-height:40px;font-size:13px;border:1px solid #dce3eb;background:#f7f9fb;padding:9px 12px;width:100%}
body.design-workspace .workspace-header .header-search-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
body.design-workspace .workspace-header .header-right{display:flex;grid-template-columns:none;grid-template-rows:none;align-items:center;flex-wrap:nowrap!important;gap:12px;margin:0;min-width:0}
body.design-workspace .workspace-header .entity-switch{display:flex;flex-direction:row;align-items:center;gap:9px;width:190px;min-width:190px;margin:0;padding:5px 9px;border:1px solid #cad8e8;border-radius:7px;background:#f3f7fc;height:44px;box-sizing:border-box}
body.design-workspace .workspace-header .entity-code{width:32px;height:32px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:5px;background:#dce9fa;color:#1e4f82;font-size:16px;font-weight:750;letter-spacing:.5px}
body.design-workspace .workspace-header .entity-control{display:flex;flex-direction:column;gap:0;min-width:0;flex:1}
body.design-workspace .workspace-header .entity-caption{font-size:10px;line-height:12px;letter-spacing:.3px;color:#4d627d;font-weight:500}
body.design-workspace .workspace-header #entity-switch{height:23px;min-height:23px;min-width:0!important;max-width:none!important;width:100%;font-size:14px;font-weight:650;border:0;border-radius:0;padding:0 18px 0 0;background:transparent;color:#25476b;line-height:22px;cursor:pointer}
body.design-workspace[data-active-entity=BE] .workspace-header .entity-switch{background:#fff9ee;border-color:#e5d2ad}
body.design-workspace[data-active-entity=BE] .workspace-header .entity-code{background:#f8e7c4;color:#755117}
body.design-workspace[data-active-entity=BE] .workspace-header #entity-switch{color:#6d501f}
body.design-workspace .workspace-header .prototype-badge{display:inline-flex!important;align-items:center;justify-content:center;height:25px;box-sizing:border-box;border:1px solid #e9dec0;background:#fff8e7;color:#70551b;font-size:10px;line-height:1;letter-spacing:.5px;padding:5px 7px;white-space:nowrap;border-radius:4px}
.workspace-header .account-menu{position:relative;flex-shrink:0}
.workspace-header .account-menu>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#edf1f6;border:1px solid #dce3eb;color:#47566a;font-size:11px;font-weight:700}
.workspace-header .account-menu>summary::-webkit-details-marker{display:none}
.workspace-header .account-menu[open]>summary{box-shadow:0 0 0 3px #e8eef6}
.workspace-header .account-menu-content{position:absolute;right:0;top:44px;min-width:235px;max-width:calc(100vw - 28px);padding:16px;background:white;border:1px solid #dce3eb;border-radius:9px;box-shadow:0 12px 32px #23324720;display:flex;flex-direction:column;gap:12px;z-index:80}
body.design-workspace .workspace-header .account-menu .account-label{display:block;grid-column:auto;grid-row:auto;font-size:13px;line-height:1.5;max-width:none;text-align:left;white-space:normal;overflow:visible}
body.design-workspace .workspace-header .account-menu .release-badge{display:block;max-width:none;white-space:normal;font-size:11px;margin:0;align-self:start}
@media(max-width:1200px){body.design-workspace .shell>header.workspace-header{grid-template-columns:auto minmax(160px,1fr) auto;gap:12px;padding-inline:16px}body.design-workspace .workspace-header .header-location{display:none}}
@media(max-width:820px){body.design-workspace .shell>header.workspace-header{grid-template-columns:auto 1fr;grid-template-rows:44px 40px;height:110px;min-height:110px;padding:8px 12px;gap:8px}body.design-workspace .workspace-header .header-right{justify-self:end;gap:8px}body.design-workspace .workspace-header .global-order-search{grid-column:1/-1;grid-row:2}body.design-workspace .workspace-header .entity-switch{width:175px;min-width:175px}body.design-workspace .workspace-header .global-order-search>input{font-size:16px}}
@media(max-width:440px){body.design-workspace .workspace-header .header-right{gap:6px}body.design-workspace .workspace-header .entity-switch{min-width:0;width:150px;padding:5px 7px;gap:6px}body.design-workspace .workspace-header .entity-code{width:29px;height:30px;font-size:15px}body.design-workspace .workspace-header #entity-switch{font-size:12px}body.design-workspace .workspace-header .account-menu>summary{width:30px;height:30px}body.design-workspace .workspace-header .header-navigation{gap:0}body.design-workspace .workspace-header .header-navigation button{width:27px;min-width:27px}body.design-workspace .workspace-header .prototype-badge{padding-inline:5px;font-size:9px;letter-spacing:.2px}}
@media(max-width:360px){body.design-workspace .workspace-header .global-back{display:none!important}body.design-workspace .workspace-header .entity-switch{width:144px}}
/* Planning: one useful toolbar, optional metrics and secondary controls. */
body.design-workspace .planning-summary{margin:0 0 10px;border:1px solid #e0e6ed;border-radius:7px;background:white}
body.design-workspace .planning-summary>summary{display:flex;align-items:center;gap:18px;min-height:38px;padding:6px 14px;cursor:pointer;list-style:none;font-size:12px;color:#536174}
body.design-workspace .planning-summary>summary strong{color:#293648;font-size:13px}.planning-summary .overview-label{margin-left:auto;font-size:11px}
body.design-workspace .planning-summary .planning-overview{margin:0;padding:8px 12px 12px;gap:8px}.planning-summary .planning-stat{box-shadow:none}
body.design-workspace .planning-workbar{padding:14px 16px;margin-bottom:12px}.planning-workbar .planning-workbar-head{gap:12px;margin-bottom:12px}.planning-workbar .planning-workbar-head h2{font-size:18px}.planning-workbar .planning-workbar-head p{margin:4px 0 0;font-size:12px}.planning-workbar .planning-workbar-head .block-kicker{display:none}
body.design-workspace .planning-primary-filters{display:grid;grid-template-columns:minmax(230px,1fr) minmax(170px,220px) auto;align-items:end;gap:12px}.planning-primary-filters label{font-size:12px;gap:5px}.planning-period-caption{font-size:12px;color:#536174;align-self:center;white-space:nowrap;padding-top:20px}
body.design-workspace .planning-custom-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:460px;margin-top:12px}.planning-custom-dates input{width:100%}
body.design-workspace .planning-extra-filters{margin-top:10px;border-top:1px solid #e4e9ef;padding-top:8px}.planning-extra-filters>summary{font-size:12px;color:#536174;cursor:pointer}.planning-secondary-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:12px}.planning-secondary-filters .check-row{grid-column:1/-1;padding:0}.planning-queue-options{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.planning-filter-state:empty{display:none}.planning-filter-state{display:flex;gap:6px;margin-top:8px}
@media(max-width:900px){body.design-workspace .planning-primary-filters{grid-template-columns:1fr 190px}.planning-period-caption{grid-column:1/-1;padding:0}.planning-secondary-filters{grid-template-columns:1fr 1fr}}
@media(max-width:600px){body.design-workspace .planning-primary-filters{grid-template-columns:1fr}.planning-workbar .planning-workbar-head{align-items:center;flex-wrap:wrap}.planning-primary-filters input,.planning-primary-filters select,.planning-secondary-filters select{font-size:16px}.planning-secondary-filters{grid-template-columns:1fr}.planning-summary>summary{gap:10px!important;font-size:11px!important}.planning-summary .planning-overview{grid-template-columns:1fr 1fr}.planning-summary .planning-stat{min-height:55px}.planning-workbar .planning-view-tools{margin-left:0}}

@media(max-width:360px){body.design-workspace .workspace-header #entity-switch{font-size:11px;letter-spacing:0}body.design-workspace .workspace-header .entity-switch{width:154px}body.design-workspace .workspace-header .prototype-badge{font-size:8px;padding-inline:3px}body.design-workspace .workspace-header .header-right{gap:4px}}
@media(max-width:820px){body.design-workspace .workspace-header #entity-switch{font-size:12px;letter-spacing:0;padding-right:12px}}
/* Compact daily planning: meaningful counts, short cards, visible exceptions. */
body.design-workspace .planning-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;border:0;padding:0;margin-bottom:4px;overflow:visible}
body.design-workspace .planning-categories:has(button:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr))}
body.design-workspace .planning-categories button,body.design-workspace .planning-categories button:last-child{width:100%;min-width:0;margin:0;padding:9px 12px;min-height:40px;gap:8px;justify-content:center;border:1px solid #dde3eb;border-radius:6px;background:#f8fafc}
body.design-workspace .planning-categories button.active{background:#fff;border-color:#b54a5d;box-shadow:inset 0 -2px #96354a}
body.design-workspace .planning-categories button span,body.design-workspace .planning-categories button:last-child span{font-size:13px;color:inherit}
body.design-workspace .planning-categories button small{font-size:11px;background:#e9eef4;padding:2px 5px;border-radius:4px;white-space:nowrap}
.planning-category-context{font-size:11px;color:#6b7788;margin:4px 0 12px}
body.design-workspace .planning-earlier-stops{margin-top:7px;min-height:30px;padding:5px 10px;font-size:12px;color:#8c3344;border-color:#e5c0c8;background:#fff5f7}
body.design-workspace .planning-earlier-stops[aria-pressed=true]{background:#96354a;color:#fff;border-color:#96354a}
body.design-workspace .planning-filter-state{flex-wrap:wrap}
body.design-workspace .planning-filter-state button{min-height:28px;padding:4px 8px;font-size:11px;cursor:pointer;white-space:normal;overflow-wrap:anywhere;text-align:left}
body.design-workspace .planning-lane:only-child{max-width:none}
body.design-workspace .planning-lane:only-child .planning-card{display:block}
body.design-workspace .planning-card{padding:10px 12px;margin-bottom:8px;box-shadow:none}
body.design-workspace .planning-card h3{font-size:14px;line-height:1.35;margin:3px 0 5px}
body.design-workspace .planning-stop-window{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-size:11px;color:#5b697b;margin:5px 0}
body.design-workspace .planning-stop-window strong{font-size:13px;color:#34465d}
body.design-workspace .planning-card .planning-stop-parties{display:flex;flex-wrap:wrap;gap:3px 10px;margin:5px 0;font-size:11px;line-height:1.4;color:#5b697b}
body.design-workspace .planning-card .planning-stop-parties span+span:before{content:'· ';color:#9aa6b5}
body.design-workspace .planning-card .badge{display:inline-block;width:auto;margin:4px 4px 0 0}
body.design-workspace .planning-card-actions{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:8px;padding-top:7px;margin-top:7px;border-top:1px solid #edf0f4;flex-wrap:wrap}
body.design-workspace .planning-card-actions .planning-open-order{width:auto;min-height:30px;padding:4px 0;background:transparent;border:0;box-shadow:none;font-size:11px;color:#62748b;flex:0 0 auto}
body.design-workspace .planning-card-actions .primary{width:auto;flex:0 1 auto;font-size:11px;min-height:32px;padding:5px 10px}
body.design-workspace .nav-attention{margin-top:4px}
body.design-workspace .nav-attention>summary{display:flex;align-items:center;justify-content:space-between;gap:5px;cursor:pointer;padding:10px 12px;font-size:12px;font-weight:600;color:#64748b;list-style:none}
body.design-workspace .nav-attention>summary:before{content:'▸';font-size:10px}
body.design-workspace .nav-attention[open]>summary:before{content:'▾'}
body.design-workspace .nav-attention .nav-item{padding-left:20px;font-size:12px}
@media(max-width:600px){body.design-workspace .planning-categories button,body.design-workspace .planning-categories button:last-child{padding:8px 4px;gap:4px}body.design-workspace .planning-categories button span,body.design-workspace .planning-categories button:last-child span{font-size:12px}body.design-workspace .planning-categories:has(button:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}.planning-category-context{font-size:10px}body.design-workspace .planning-card-actions .primary{min-height:40px}body.design-workspace .planning-card-actions .planning-open-order{min-height:40px}}
body.design-workspace .nav-attention>summary{justify-content:flex-start}
body.design-workspace .nav-attention>summary>.queue-count{margin-left:auto;white-space:nowrap;font-size:9px}
body.design-workspace .nav-attention .nav-item{white-space:normal;gap:6px;padding:9px 8px 9px 16px;line-height:1.45;min-width:0}
body.design-workspace .nav-attention .nav-item>span:first-child{min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:left;flex:1}
body.design-workspace .nav-attention .nav-item>.queue-count{flex:0 0 auto}
@media(min-width:1100px){body.design-workspace .planning-lane:only-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}body.design-workspace .planning-lane:only-child>.planning-lane-head{grid-column:1/-1}body.design-workspace .planning-lane:only-child>.planning-card{margin:0}}
@media(max-width:600px){body.design-workspace .planning-workbar-head{flex-direction:row;align-items:flex-start;justify-content:space-between}body.design-workspace .planning-workbar-head>div:first-child{flex:1 1 165px;min-width:0;text-align:left}body.design-workspace .planning-workbar-head .planning-view-tools{width:auto;flex:0 0 auto;margin:0}body.design-workspace .heading{flex-direction:column;align-items:stretch;gap:12px}body.design-workspace .heading #page-actions{display:flex;flex-wrap:wrap;gap:8px}body.design-workspace .heading #page-actions button{margin:0}}
.nav-order-hint{font-size:12px;color:#627086;line-height:1.5;margin:10px 0}
.nav-order-list{list-style:none;padding:0;margin:12px 0;display:flex;flex-direction:column;gap:7px}
.nav-order-row{display:flex;align-items:center;gap:8px;border:1px solid #dce3eb;background:#fff;border-radius:7px;padding:8px;cursor:grab;min-width:0}
.nav-order-row:focus{outline:2px solid #698bb7;outline-offset:2px}.nav-order-row.dragging{opacity:.5}
.nav-drag-handle{font-size:22px;color:#8191a5}.nav-order-name{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere}.nav-order-position{font-size:11px;color:#7a8798;min-width:12px;text-align:center}
body.design-workspace .nav-order-row button{flex:0 0 auto;min-width:36px;width:36px;min-height:36px;padding:5px;font-size:18px}
@media(max-width:600px){body.design-workspace .nav-order-row button{min-width:40px;width:40px;min-height:40px}.nav-order-row{gap:5px}.nav-order-name{font-size:12px}}
body.design-workspace .planning-card.return-location{outline:2px solid #7394be;outline-offset:1px;background:#f8fbff}
body.design-workspace tr.return-location>td{background:#edf5ff}
.planning-period-caption:empty{display:none}
.customer-loading-attention{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:11px;line-height:1.45;background:#fff5f5;border:1px solid #edcbd2;border-radius:6px;padding:8px;margin-top:6px;color:#8c3344}
body.design-workspace .customer-loading-attention button{font-size:11px;min-height:32px;padding:5px 8px}
#customer-loading-followup{display:grid;gap:12px;margin-top:12px}
.loading-followup-summary{display:flex;flex-direction:column;align-items:flex-start;gap:3px;font-size:11px;margin-top:6px;line-height:1.45}
.loading-followup-summary small{white-space:normal;overflow-wrap:anywhere}
.loading-followup-reminders{padding:12px 14px;border:1px solid #e5bd91;background:#fff7ed;border-radius:7px;margin-bottom:12px;font-size:12px;color:#875321}
.loading-followup-reminders>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}
body.design-workspace .loading-followup-reminders button{font-size:12px;min-height:34px;flex-shrink:0}
@media(max-width:600px){.loading-followup-reminders>div{flex-wrap:wrap}}
.customer-message-details{font-size:12px;border:1px solid #dce3eb;border-radius:6px;padding:10px}
.customer-message-details>summary{cursor:pointer;font-weight:600;color:#536780}
.customer-message-details label{margin-top:10px}
.work-action-intro{padding:16px;margin-bottom:12px}.work-action-intro>p{font-size:12px;line-height:1.6;color:#627086;margin:8px 0}.work-action-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.work-action-tabs button{font-size:12px;min-height:34px}.work-action-tools{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.work-action-tools label{flex:1 1 220px}.work-action-tools button{min-height:38px;font-size:12px}.work-action-context{display:flex;flex-direction:column;gap:4px;font-size:11px;line-height:1.5;margin-top:7px}.work-action-context p{white-space:pre-wrap;overflow-wrap:anywhere}.work-actions-table td{vertical-align:top;white-space:normal;font-size:12px}.work-actions-table td:first-child strong{display:block;margin-top:6px}.work-row-actions{display:flex;flex-direction:column;gap:6px;min-width:125px}.work-row-actions button{font-size:11px;min-height:32px;padding:6px}.work-bulk-actions{display:flex;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap}#work-handover-form,#work-reason-form,#work-watch-form{display:grid;gap:12px;margin-top:14px}#work-watch-results{display:flex;flex-direction:column;gap:8px;margin-top:12px}.contact-guard{padding:10px;border:1px solid #d9e4ed;border-radius:6px;background:#f5f9fd;font-size:12px;line-height:1.5}.contact-guard button{margin-top:8px;font-size:12px}
@media(max-width:750px){.work-actions-table,.work-actions-table tbody,.work-actions-table tr,.work-actions-table td{display:block;width:100%}.work-actions-table thead{display:none}.work-actions-table tr{border:1px solid #dce3eb;border-radius:7px;padding:10px;margin:10px 0}.work-actions-table td{padding:7px;border:0}.work-row-actions{flex-direction:row;flex-wrap:wrap}.work-row-actions button{min-height:40px}.work-action-tabs button{min-height:40px}}
.work-action-tools label:not(:first-child){flex:0 1 200px}.work-action-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:450px;margin-top:10px}
@media(max-width:750px){.work-actions-table td[data-label]:before{content:attr(data-label);display:block;font-size:11px;font-weight:650;color:#64748b;margin-bottom:5px}.work-action-tools input,.work-action-tools select{font-size:16px}}

.global-work-actions{position:static;flex-shrink:0;padding:12px 20px;z-index:auto}.global-actions-button{width:100%;justify-content:center;gap:8px}.global-action-icon{font-size:20px;line-height:1}.sidebar-collapsed .global-work-actions{padding:10px 9px}.sidebar-collapsed .global-actions-button{padding:10px 6px;position:relative}.sidebar-collapsed .global-action-label{display:none}.sidebar-collapsed .global-action-count{position:absolute;right:-4px;top:-5px}.sidebar-collapsed.mobile-menu-open .global-action-label{display:inline}.global-actions-button{min-height:44px;border-radius:24px;padding:10px 18px;box-shadow:0 3px 14px #26334d26}.global-action-count{background:#fff;color:#963447;border-radius:12px;min-width:20px;padding:2px 5px;font-size:11px}.design-workspace main{padding-bottom:78px}.order-watch-information{position:relative;padding:12px 16px;background:#fff;border:1px solid #e3e7ed;border-radius:7px;margin:0 0 14px;font-size:12px}.order-watch-information h3{font-size:13px;margin:0 80px 8px 0}.order-watch-information ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}.order-watch-information li{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.order-watch-information li span{color:#64748b}.order-watch-information>.text-button{position:absolute;right:12px;top:8px}.decision-card{border:1px solid #dce3eb;padding:14px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0}.decision-card>div{display:grid;gap:5px}.decision-card strong{color:#963447}.decision-empty{padding:22px 0;text-align:center}.decision-card button{flex-shrink:0}.global-work-actions:has(button:focus-visible){outline:2px solid #963447;outline-offset:3px;border-radius:25px}@media(max-width:750px){.global-work-actions{padding:10px 16px}.global-actions-button{min-height:44px;padding:9px 15px}.decision-card{align-items:stretch;flex-direction:column;gap:10px}.order-watch-information{padding:12px}.order-watch-information li{display:grid;gap:2px}}
.order-watch-information h3{min-height:24px;margin-bottom:8px}.order-watch-information li{align-items:center}.order-watch-information li strong{font-size:12px}
.decision-scopes{display:flex;gap:7px;margin:0 0 12px}.decision-scopes button{min-height:38px;font-size:12px}

.entity-country-flag{display:block;width:24px;height:16px;min-width:24px;object-fit:cover;box-shadow:0 0 0 1px #0002;border-radius:2px}

/* One search field per workspace; header contains navigation and entity only. */
body.design-workspace .workspace-header .global-order-search{display:none!important}
body.design-workspace .shell>header.workspace-header{grid-template-columns:auto minmax(0,1fr) auto}
@media(max-width:820px){body.design-workspace .shell>header.workspace-header{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:44px;height:64px;min-height:64px}}

.global-search-button{white-space:nowrap;min-height:34px;padding:6px 12px;font-size:13px}.global-result-group{margin:14px 0}.global-result-group h3{font-size:14px;margin:0 0 8px}.global-result-group .directory-choice{width:100%;margin:4px 0;text-align:left}
