/* Shared operational finish. Brand artwork and semantic state accents stay intact. */
:root{
  --ui-action-bg:#ead9ba;--ui-action-hover:#dfc99f;--ui-action-line:#c9af83;
  --ui-action-ink:#302a21;--ui-navigation:#fbf8f2;--ui-selected:#f3e8d3;
  --order-reference:#49358b;--order-reference-hover:#30215f;
  --wadi-ink:#202223;--wadi-muted:#686a68;--wadi-muted-2:#737572;
  --wadi-border:#e3e1dc;--wadi-soft:#f3f3f0;--wadi-cream:#faf7f0;
  --focus-ring:0 0 0 3px #a8895240;
}
/* Respect the available viewport including desktop scrollbars at narrow phone widths. */
html{min-width:0}
.topbar-title{min-width:0}

/* Work details are a normal page in the same shell, not a floating modal/backdrop. */
.workspace.detail-open>.content{display:none}
.workspace-detail:not([open]){display:none}
.workspace .workspace-detail[open]{display:block;position:relative;inset:auto;float:none;width:100%;max-width:1600px;max-height:none;height:auto;overflow:visible;margin:0 auto;padding:0 clamp(var(--space-3),3vw,var(--space-10)) var(--space-8);border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--wadi-ink)}
.workspace-detail .workspace-detail-toolbar{position:sticky;top:var(--workspace-topbar-height,76px);z-index:20;display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);padding-block:var(--space-3);border-bottom:1px solid var(--wadi-border);background:var(--wadi-soft)}
.workspace-detail #modal-close{position:static;float:none;inset:auto;margin:0;flex-shrink:0;width:44px;height:44px;min-height:44px;border-radius:var(--radius-control);font-size:24px;box-shadow:none}
.workspace-detail .modal-body{margin-top:var(--space-3);padding:var(--space-4);gap:var(--space-4);background:var(--wadi-white);border:1px solid var(--wadi-border);border-radius:var(--radius-card)}
.workspace-detail .modal-head{position:static;top:auto;min-width:0;background:transparent;padding-block-end:var(--space-3)}
.workspace-detail .modal-head h2,.workspace-detail .modal-head h3{overflow-wrap:anywhere}
.workspace-detail .order-essentials,.workspace-detail .customer-summary-facts{gap:var(--space-2)}
.workspace-detail .section,.workspace-detail .order-secondary-details{border-radius:var(--radius-card)}
[dir=rtl] .detail-back .ui-icon{transform:scaleX(-1)}
.workspace-detail:focus{outline:none}

/* A small anchored, non-blocking inbox. No scrim, body scroll lock or permission side effect. */
.topbar .push-inbox-panel{position:absolute;inset-block-start:calc(100% + 6px);inset-inline-end:12px;z-index:32;width:min(292px,calc(100% - 24px));max-height:min(348px,calc(100dvh - 100px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #d9d2c6;border-radius:12px;background:var(--wadi-white);box-shadow:0 8px 24px #302a2120;color:var(--wadi-ink);animation:inbox-reveal .14s ease-out}
.push-inbox-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);padding:2px 10px;border-bottom:1px solid var(--wadi-border);background:var(--wadi-cream);flex-shrink:0}
.push-inbox-head h2{font-size:14px;margin:0}
.push-inbox-close{width:44px;min-height:44px;padding:var(--space-2);flex-shrink:0}
.push-inbox-list{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:var(--space-1)}
.push-inbox-list[aria-busy=true]{padding:var(--space-4);color:var(--wadi-muted)}
.push-inbox-message{display:flex;align-items:flex-start;gap:8px;width:100%;min-height:56px;padding:8px;text-align:start;border:0;border-bottom:1px solid var(--wadi-border);border-radius:8px;background:var(--wadi-white);color:var(--wadi-ink);cursor:pointer}
.push-inbox-message.is-unread{background:#f6efdf;box-shadow:inset -3px 0 #a88952}
[dir=ltr] .push-inbox-message.is-unread{box-shadow:inset 3px 0 #a88952}
.push-inbox-message:hover{background:#eee9de}
.push-inbox-message:focus-visible{outline:2px solid #a88952;outline-offset:-2px}
.push-inbox-message:disabled{opacity:.6;cursor:wait}
.push-inbox-event{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border-radius:8px;background:var(--ui-selected);color:var(--ui-action-ink)}
.push-inbox-copy{display:grid;gap:2px;min-width:0}
.push-inbox-copy strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.push-inbox-reference{direction:ltr;unicode-bidi:isolate;text-align:start;color:var(--order-reference);font-size:12px;font-weight:var(--fw-semibold)}
.push-inbox-time{font-size:11px;color:var(--wadi-muted);line-height:1.5}
.push-inbox-settings{width:100%;min-height:44px;flex-shrink:0;padding:8px;border-radius:0;border-top:1px solid var(--wadi-border);font-size:12px;background:var(--wadi-cream)}
.push-inbox-empty{padding:var(--space-5);text-align:center;color:var(--wadi-muted)}
.push-inbox-empty>.ui-icon{margin-inline:auto}
.push-inbox-empty p{margin-block-end:0}
@keyframes inbox-reveal{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px){.workspace-detail .modal-head{padding-inline-end:0;gap:var(--space-2)}.workspace-detail .modal-actions>.customer-actions{width:100%}.workspace-detail .workspace-detail-toolbar{padding-block:var(--space-2)}.workspace-detail .modal-head h2{font-size:var(--fs-card-title)}}
@media(prefers-reduced-motion:reduce){.topbar .push-inbox-panel{animation:none}}

/* Representative work is a parcel-first surface at every width, never a wide admin table. */
.rep-work-panel{padding:var(--space-3);min-width:0}
.order-cards.rep-work-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3)}
.rep-work-card{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-3);min-width:0}
.rep-work-card .order-card-head{margin:0;flex-wrap:wrap;gap:var(--space-2)}
.rep-order-customer{margin:0;font-size:var(--fs-body);color:var(--wadi-ink)}
.rep-order-address{margin:0;font-size:var(--fs-label);color:var(--wadi-muted);line-height:1.7;overflow-wrap:anywhere}
.rep-order-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2)}
.rep-order-facts .fact{padding:var(--space-2);margin:0;min-width:0;background:var(--wadi-cream)}
.rep-custody-marker{margin:0;color:var(--wadi-muted);font-size:var(--fs-label)}
.rep-work-card .callout{margin:0;padding:var(--space-2);font-size:var(--fs-label)}
.rep-receipt-control{min-width:0;border:1px solid var(--ui-action-line);border-radius:var(--radius-control);background:var(--wadi-cream)}
.rep-receipt-control>summary{display:flex;align-items:center;justify-content:center;gap:var(--space-2);list-style:none;cursor:pointer;min-height:48px;padding:var(--space-2) var(--space-3);background:var(--ui-action-bg);color:var(--ui-action-ink);font-weight:var(--fw-semibold);border-radius:inherit}
.rep-receipt-control>summary::-webkit-details-marker{display:none}
.rep-receipt-control>summary:focus-visible{outline:2px solid var(--ui-action-line);outline-offset:3px}
.rep-receipt-body{padding:var(--space-2);min-width:0}
.rep-receipt-body>.button{display:flex;margin-inline-start:auto;min-width:44px;min-height:44px}
.rep-receipt-body .order-scanner{padding:var(--space-2);min-width:0;border:0;box-shadow:none}
.rep-receipt-body .order-scanner__title{font-size:var(--fs-label);overflow-wrap:anywhere}
.rep-receipt-body .order-scanner__input-row{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.rep-receipt-body .order-scanner__input{flex:1 1 150px;width:0;min-width:0;max-width:100%}
.rep-receipt-body .order-scanner__submit{flex:1 1 110px}
.rep-receipt-body .order-scanner__video-frame{max-width:100%;max-height:230px}
.rep-direct-actions .quick-status-current{display:none}
.rep-direct-actions .quick-status-fieldset{margin:0;padding:0;border:0;min-width:0}
.rep-direct-actions .quick-status-options{display:flex;flex-wrap:wrap;max-width:100%;overflow:visible;gap:var(--space-2)}
.rep-direct-actions .quick-status-option{flex:1 1 110px;min-width:0}
.rep-direct-actions .quick-status-option>span{justify-content:center;min-height:44px;white-space:normal}
.rep-direct-actions .quick-status-required{margin-top:var(--space-2);padding:var(--space-2);min-width:0}
.rep-direct-actions .quick-status-required-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.rep-work-card .customer-actions{margin-top:auto;display:flex;flex-wrap:wrap;gap:var(--space-2)}
.rep-work-card .customer-actions>.button{flex:1 1 44px;min-height:44px}
.rep-work-card .customer-actions .button-label{display:inline;font-size:var(--fs-label)}
.rep-work-card .order-card-details{margin:0}
.rep-status-filters .status-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-1);margin:0}
.rep-status-filters .status-chip{display:flex;justify-content:center;gap:4px;padding:6px;min-height:44px;font-size:12px;line-height:1.4}
.rep-status-filters .status-chip .ui-icon{width:15px;height:15px;flex-shrink:0}
@media(max-width:760px){.order-cards.rep-work-cards{grid-template-columns:1fr}.rep-work-panel{padding:var(--space-2)}.rep-work-card{padding:var(--space-3)}}

/* Operations custody lookup: two compact, clearly separated contact lanes. */
.custody-work-panel{padding:var(--space-3);display:grid;gap:var(--space-3);min-width:0}
.custody-order-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:var(--space-3)}
.custody-order-card{padding:var(--space-3);gap:var(--space-2);min-width:0}
.custody-order-card .order-card-head{gap:var(--space-2);flex-wrap:wrap;margin:0}
.custody-order-card .order-card-head>.table-primary{font-size:14px;min-height:36px}
.custody-order-card .order-card-head>.badge{font-size:11px;max-width:100%;white-space:normal}
.custody-order-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--space-2);padding-block:var(--space-2);border-block:1px solid var(--wadi-border)}
.custody-order-summary>div{display:grid;gap:2px;min-width:0}
.custody-order-summary span{font-size:11px;color:var(--wadi-muted)}
.custody-order-summary strong{font-size:14px;color:var(--wadi-ink);overflow-wrap:anywhere}
.custody-order-day{text-align:end}
.custody-order-contacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2)}
.custody-contact{display:flex;flex-direction:column;gap:6px;min-width:0;padding:var(--space-2);border:1px solid var(--wadi-border);border-radius:var(--radius-control);background:var(--wadi-white)}
.custody-contact--representative{background:var(--wadi-cream);border-color:#e3d7be}
.custody-contact-role{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--wadi-muted)}
.custody-contact-role .ui-icon{flex-shrink:0}
.custody-contact-name{font-size:13px;line-height:1.5;overflow-wrap:anywhere;font-weight:var(--fw-semibold);color:var(--wadi-ink)}
.custody-contact-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-block-start:auto}
.custody-contact-actions>.custody-contact-action{display:flex;flex-direction:column;gap:3px;min-width:0;min-height:48px;padding:5px 2px;font-size:11px;line-height:1.3;border-radius:8px}
.custody-contact-action .button-label{display:block;white-space:normal;overflow-wrap:anywhere}
.custody-contact-action .ui-icon{width:18px;height:18px;flex-shrink:0}
.custody-contact-action:disabled{opacity:.48;cursor:not-allowed}
.custody-contact-unavailable{font-size:10px;color:var(--wadi-muted);overflow-wrap:anywhere;line-height:1.5}
.custody-order-note{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--wadi-muted);line-height:1.5}
@media(max-width:360px){.custody-contact{padding:6px 4px}.custody-contact-actions{grid-template-columns:minmax(44px,1fr) minmax(53px,1fr)}.custody-contact-action .button-label{font-size:10px;white-space:nowrap}}

/* The access notice is no longer part of the employee workspace. */
.environment{display:none}
.shell,.finance-shell,.startup,.login{min-height:100vh;min-height:100dvh}
.sidebar{height:100vh;height:100dvh;background:var(--ui-navigation);color:var(--wadi-ink);border-inline-end-color:var(--wadi-border)}
.sidebar-brand,.sidebar-footer{border-color:var(--wadi-border)}
.sidebar-brand .brand-copy span,.sidebar-footer{color:var(--wadi-muted)}
.nav-label{color:var(--wadi-muted);font-size:11px;letter-spacing:.06em}
.nav-item{color:#454743;min-height:44px}
.nav-item:hover{background:#f0ece4;color:var(--wadi-ink)}
.nav-item[aria-current=page]{background:var(--ui-selected);color:var(--wadi-ink);box-shadow:none}
.nav-item[aria-current=page]::after{background:var(--ui-action-line)}
.topbar,.finance-header,.rep-header{background:#f6ecd9f5;border-bottom:1px solid #e5d8be;color:var(--wadi-ink);box-shadow:none}
.topbar-actions{flex-wrap:nowrap;flex-shrink:0}
.topbar-actions .user-chip{display:none}
.topbar-actions>.button{width:44px;height:44px;min-height:44px;padding:var(--space-2);flex-shrink:0}
.topbar-actions>.button .button-label{display:none}
.topbar-title h1,.finance-context h1,.rep-name strong{color:var(--wadi-ink)}
.rep-header .brand-copy span,.rep-name span{color:var(--wadi-muted)}
.rep-header .brand-lockup{border-color:var(--wadi-border)}
.rep-header .button{color:var(--wadi-ink);background:#ffffffbf;border-color:var(--wadi-border)}
.rep-header .button:hover{background:var(--wadi-white)}
.user-avatar{background:var(--ui-selected);color:var(--wadi-ink)}

/* Beige is reserved for the next operational action, with dark, legible labels. */
.button{background:#f0efeb;color:var(--wadi-ink)}
.button:hover{background:#e7e5df}
.button.primary,.dispatch-assign>summary,.supervisor-order-card .dispatch-assign>summary,
.rep-scanner-area .order-scanner__submit,.contact-action[href^="https://www.google.com/maps"]{
  background:var(--ui-action-bg);border:1px solid var(--ui-action-line);color:var(--ui-action-ink);box-shadow:var(--depth-1)
}
.button.primary:hover,.button.primary:focus-visible,
.dispatch-assign>summary:hover,.dispatch-assign>summary:focus-visible,
.supervisor-order-card .dispatch-assign>summary:hover,.supervisor-order-card .dispatch-assign>summary:focus-visible,
.rep-scanner-area .order-scanner__submit:hover,.contact-action[href^="https://www.google.com/maps"]:hover{
  background:var(--ui-action-hover);color:var(--ui-action-ink)
}
.button.secondary,.contact-action{background:var(--wadi-white);border-color:var(--wadi-border);color:var(--wadi-ink)}
.button.secondary:hover,.contact-action:hover{background:var(--wadi-cream);border-color:#cbc4b8}
.button.danger{background:#a53127;border-color:#a53127;color:#fff}
.button.danger:hover{background:#84261f;color:#fff}
.button.quiet{background:transparent}
.button:disabled{opacity:.48}
a,.skip,.startup,.startup h1,.link,.link:hover,.eyebrow,.page-intro-heading,.order-secondary-details>summary,
.order-card-head strong,.quick-status-required-title,
.status-filter-disclosure>summary,.quick-status-disclosure>summary,.delivery-choice-group legend,
.push-status,.cod,.rep-item-quantity,.rep-intro h1,.rep-scanner-intro strong,.completed-orders>summary,
.scan-result-heading,.warehouse-brand span,.warehouse-icon-button,.warehouse-hero h1,
.warehouse-queue-customer,.warehouse-rep-chip,.warehouse-section h3,.warehouse-action,
.warehouse-representative-title,.management-brand span,.management-logout,.management-tab:hover,
.management-page-head h1,.management-panel-head h2,.management-period-button.is-active,
.tone-green,.management-ranking strong,.management-rep-load dd,.management-empty>span,.management-denied-icon{color:var(--wadi-ink)}
.link:hover{text-decoration-thickness:2px}
.order-card-details>summary{color:var(--wadi-ink)}
.table-primary,.link.table-primary,.order-reference,.order-top>strong{color:var(--order-reference);font-weight:var(--fw-bold);font-variant-numeric:tabular-nums}
.link.table-primary:hover{color:var(--order-reference-hover)}
.link.table-primary{text-decoration-thickness:1px;text-underline-offset:4px}
.metric strong,.supervisor-kpis .metric-tone strong{color:var(--wadi-ink)}
.metric-icon{color:var(--wadi-muted)}
.badge:not(.solid){color:var(--wadi-ink)}
.badge::before{background:var(--status-accent,currentColor)}
.delivery-choice input:checked+span,.supervisor-progress-step.is-passed,.rep-tab.is-active,
.outcome[aria-pressed=true]{background:var(--ui-selected);border-color:var(--ui-action-line);color:var(--wadi-ink)}
.supervisor-progress-step.is-current{outline-color:var(--ui-action-line);color:var(--wadi-ink)}
.rep-scanner-icon{background:var(--ui-selected);color:var(--wadi-ink)}
.rep-scanner-area{background:var(--wadi-cream);border-color:var(--wadi-border)}
.delivery-action-button.is-delivered,.delivery-action-button.is-delivered:hover,.management-tab.is-active,
.management-avatar{background:var(--ui-action-bg);border-color:var(--ui-action-line);color:var(--ui-action-ink)}
.management-header{background:#f6ecd9f5;border-color:#e5d8be;box-shadow:none}
.login-premium::before{inset:0}
.cash-period.is-active,.period-rail .status-choice.is-active{background:var(--ui-selected);border-color:var(--ui-action-line);color:var(--wadi-ink)}
input:focus,select:focus,textarea:focus{border-color:#a88952}
input[type=checkbox],input[type=radio],.review-confirm input{accent-color:#75603c}
.empty-state .empty-icon{color:var(--wadi-muted);background:var(--wadi-cream)}
dialog::backdrop{background:#20222391}
#toast{background:var(--wadi-ink);color:#fff}

/* One visible choice per representative; no duplicated select control. */
.dispatch-assign>summary{display:flex;align-items:center;gap:var(--space-2);min-height:44px;padding:var(--space-2) var(--space-3);border-radius:var(--radius-control)}
.dispatch-assign-form{padding-block-start:var(--space-3);gap:var(--space-3)}
.rep-option-list{min-width:0;margin:0;padding:0;border:0;grid-template-columns:repeat(3,minmax(0,1fr))}
.rep-option-list legend{margin-bottom:var(--space-2);padding:0;color:var(--wadi-muted);font-size:var(--fs-label);font-weight:var(--fw-semibold)}
.rep-option-list .rep-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-1);min-width:0;min-height:64px;padding:var(--space-2);border:1px solid var(--wadi-border);border-inline-start:3px solid var(--rep-accent);border-radius:var(--radius-control);background:var(--wadi-white);color:var(--wadi-ink);cursor:pointer;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}
.rep-option-list .rep-option:hover{background:var(--wadi-cream);border-color:#c4b79f;border-inline-start-color:var(--rep-accent)}
.rep-option-list .rep-option.is-selected{outline:0;background:var(--ui-selected);border-color:var(--ui-action-line);border-inline-start-color:var(--rep-accent);box-shadow:0 0 0 1px var(--ui-action-line)}
.rep-option-list .rep-option:focus-within{box-shadow:var(--focus-ring)}
.rep-option-list .rep-option input{flex:0 0 16px;width:16px;height:16px;min-height:16px;margin:0;padding:0;cursor:pointer}
.rep-option-copy{display:grid;gap:2px;min-width:0;text-align:center}
.rep-option-copy strong{font-size:var(--fs-label);overflow-wrap:anywhere}
.rep-option-copy small{color:var(--wadi-muted);font-size:var(--fs-label)}

/* Visible assignment filters, using the existing controls and reading direction. */
.dispatch-filter-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:var(--space-3);min-width:0}
.dispatch-filter-top .delivery-day-chips{margin:0;min-width:0;gap:var(--space-1)}
.governorate-chips{display:flex;flex-wrap:wrap;gap:var(--space-1);min-width:0;padding-inline-start:var(--space-3);border-inline-start:1px solid #d5dff0}
.governorate-chips .governorate-chip{--status-accent:#315d9a;background:#f0f5fd;border-color:#cfddf1;color:#294e81;justify-content:center}
.governorate-chips .governorate-chip:hover{background:#e2ecfb;border-color:#89a8d3}
.governorate-chips .governorate-chip.is-active{background:#315d9a;border-color:#315d9a;color:#fff;box-shadow:none}
@media(max-width:640px){.governorate-chips{display:grid;grid-template-columns:minmax(0,1fr);padding-inline-start:var(--space-2)}.governorate-chips .governorate-chip{min-width:0;white-space:normal}}
.dispatch-search{grid-template-columns:minmax(0,1fr);margin:0 0 var(--space-3)}
.dispatch-search input{max-width:100%}

/* Search-first work surfaces: no accordion, no layout jump, one quiet visual language. */
.search-field{min-width:0;margin:0}
.search-field>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.search-control{position:relative;min-width:0}
.search-control>.ui-icon{position:absolute;inset-inline-start:var(--space-3);top:50%;transform:translateY(-50%);color:var(--wadi-muted);pointer-events:none}
.search-control input{display:block;width:100%;min-width:0;min-height:44px;padding-inline-start:var(--space-10);background:var(--wadi-white);border-color:#d7d3cb;box-shadow:var(--depth-1)}
.search-control input:focus{border-color:#a88952;box-shadow:var(--focus-ring)}
.inline-search-panel,.direct-search-panel{min-width:0;margin-block-end:var(--space-3)}
.inline-search-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:var(--space-3);align-items:end}
.inline-search-panel .search-field,.direct-search-panel .search-field,.account-search-toolbar .search-field{grid-column:1/-1}
.inline-search-panel>.field:not(.search-field){max-width:220px;margin:0}
.direct-search-panel.filter-panel{padding:var(--space-3);border-color:var(--wadi-border);box-shadow:var(--depth-1)}
.direct-search-panel .filter-form,.direct-search-panel .supervisor-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));align-items:end;gap:var(--space-3);margin:0}
.direct-search-panel .filter-actions{grid-column:1/-1;margin:0;justify-content:flex-end}
.direct-search-panel .field,.account-search-toolbar .field{min-width:0;margin:0}
.direct-search-panel .field>input[type=checkbox]{width:18px;height:18px;min-height:18px;padding:0;margin:0}
.direct-search-panel .field:has(>input[type=checkbox]){display:flex;align-items:center;gap:var(--space-2);min-height:var(--control-h)}
.inline-status-filters .status-rail{flex-wrap:wrap;overflow:visible;gap:var(--space-1);padding-block:var(--space-2)}
.inline-status-filters .status-chip{min-width:0;white-space:normal}
.orders-commandbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--space-2);margin-block-end:var(--space-3);padding:var(--space-3);background:var(--wadi-white);border:1px solid var(--wadi-border);border-radius:var(--radius-card);box-shadow:var(--depth-1)}
.orders-commandbar .orders-search{min-width:0;min-height:44px;border-color:#d7d3cb}
.orders-commandbar .orders-search input{width:100%;min-width:0}
.orders-commandbar .orders-command-actions{margin:0}
.orders-commandbar .orders-command-actions .button{min-height:44px}
.account-search-toolbar{gap:var(--space-3)}
.orders-page-intro{flex-direction:row;gap:var(--space-3)}
.orders-page-intro .page-intro-actions{width:auto;flex:0 0 auto}
.orders-page-intro .page-intro-actions .button{width:44px;min-height:44px;padding:var(--space-2)}
.orders-page-intro .page-intro-actions .button-label{display:none}
.panel,.order-card,.supervisor-order-card{border-color:var(--wadi-border)}
.catalog-card:hover{border-color:#cfc4af;box-shadow:var(--depth-2)}
@media(max-width:640px){.direct-search-panel .filter-form,.direct-search-panel .supervisor-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.orders-commandbar{padding:var(--space-2)}.orders-commandbar .orders-command-actions .button-label{display:none}.orders-commandbar .orders-command-actions .button{width:44px;padding:var(--space-2)}}

@media(max-width:820px){.sidebar{inset-block:0;height:100dvh}.mobile-scrim{inset:0}.topbar{min-height:72px}}
@media(max-width:640px){.topbar-title h1{font-size:16px}.topbar-title p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.rep-option-list .rep-option{transition:none}}

/* Assigned work: visible filters and factual delivery outcomes, never status commands. */
.assigned-filters{display:grid;gap:12px;margin-block-end:16px;min-width:0}
.assigned-filters>.field{margin:0;min-width:0}
.assigned-filters input{width:100%;min-width:0}
.assigned-filter-group{margin:0;padding:0;border:0;min-width:0}
.assigned-filter-group>legend{margin:0 0 6px;padding:0;font-size:12px;font-weight:600;color:var(--wadi-muted)}
.assigned-filter-chips{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.assigned-filter-chip{--delivery-ink:#465260;--delivery-bg:#f1f3f5;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:7px 10px;border:1px solid color-mix(in srgb,var(--delivery-ink) 22%,white);border-radius:10px;background:var(--delivery-bg);color:var(--delivery-ink);font-size:12px;font-weight:600;line-height:1.4;text-align:center;white-space:normal;cursor:pointer}
.assigned-filter-chip:hover{border-color:var(--delivery-ink);background:var(--delivery-bg)}
.assigned-filter-chip.is-active{border-color:var(--delivery-ink);box-shadow:inset 0 0 0 1px var(--delivery-ink);font-weight:700}
.assigned-filter-chip:focus-visible{outline:2px solid var(--delivery-ink);outline-offset:2px}
.assigned-rep-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.assigned-rep-chips .assigned-filter-chip{padding:6px 3px;border-inline-start:3px solid var(--rep-accent,#687484);color:var(--wadi-ink);background:var(--wadi-white)}
.assigned-rep-chips .assigned-filter-chip.is-active{background:var(--ui-selected);box-shadow:inset 0 0 0 1px var(--rep-accent,#687484)}
.assigned-day-chips .assigned-filter-chip{--delivery-ink:#355b91;--delivery-bg:#edf3fb}
.delivery-tone-out_for_delivery{--delivery-ink:#99600b;--delivery-bg:#fff3d9}
.delivery-tone-delivered{--delivery-ink:#216342;--delivery-bg:#e7f4ec}
.delivery-tone-rescheduled{--delivery-ink:#74509e;--delivery-bg:#f0e9f9}
.delivery-tone-cancelled{--delivery-ink:#a8344b;--delivery-bg:#fceaf0}
.delivery-tone-returned{--delivery-ink:#426282;--delivery-bg:#eaf1f8}
.delivery-tone-needs_attention{--delivery-ink:#a64e1c;--delivery-bg:#fff0e4}
.assigned-order-card{padding:12px;gap:8px}
.assigned-order-card .order-card-head{flex-wrap:wrap}
.assigned-delivery-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:4px 0}
.assigned-delivery-progress .supervisor-progress-step{display:flex;justify-content:center;align-items:center;min-width:0;min-height:44px;padding:5px 3px;border:1px solid color-mix(in srgb,var(--delivery-ink) 20%,white);border-radius:9px;background:var(--delivery-bg);color:var(--delivery-ink);font-size:11px;font-weight:500;line-height:1.4;text-align:center;white-space:normal;overflow-wrap:anywhere}
.assigned-delivery-progress .supervisor-progress-step.is-current{border-color:var(--delivery-ink);outline:0;box-shadow:inset 0 0 0 1px var(--delivery-ink);font-size:12px;font-weight:700;transform:scale(1.035)}
.assigned-rep-contact{display:grid;grid-template-columns:minmax(0,1fr) 114px;gap:5px 8px;align-items:center;border-inline-start:3px solid var(--rep-accent);margin:0}
.assigned-rep-contact>.custody-contact-role,.assigned-rep-contact>.custody-contact-name{grid-column:1}
.assigned-rep-contact>.custody-contact-actions{grid-column:2;grid-row:1/3;margin:0;grid-template-columns:minmax(44px,1fr) minmax(53px,1fr)}
.assigned-rep-contact>.custody-contact-unavailable{grid-column:1/-1}
.assigned-rep-contact .custody-contact-action .button-label{font-size:10px;white-space:nowrap}
