/* Approved luminous Orders list. Existing layout, density and behaviours stay in orders-list.css. */
@media screen {
  .shell.is-orders-view,
  .orders-list,
  .ol-preview-pane {
    --ol-purple: var(--crm-indigo);
    --ol-purple-dark: #4732ce;
    --ol-ink: var(--crm-ink);
    --ol-muted: var(--crm-muted);
    --ol-line: var(--crm-border);
    --ol-canvas: var(--crm-bg);
    --ol-head: #e5ebf8;
    --ol-green: var(--crm-success);
    --ol-mint: #def6eb;
    font-family: var(--crm-font);
    color: var(--crm-ink);
  }
  .shell.is-orders-view { background: var(--crm-bg); }
  .shell.is-orders-view > .main > .content {
    padding: 18px 22px 16px;
    background: radial-gradient(ellipse at 12% 0%,#eae6ff,transparent 55%),
      radial-gradient(ellipse at 98% 0%,#e1f5fc,transparent 47%),#f2f5fc;
  }
  .shell.is-orders-view .topbar {
    height: 44px; min-height: 44px; flex-basis: 44px;
    background: linear-gradient(105deg,#f0f3ff,#effbff 70%,#f7f4ff);
    border-bottom-color: rgba(170,184,218,.42);
    box-shadow: 0 1px 10px rgba(44,57,103,.03);
  }
  .shell.is-orders-view .topbar .breadcrumb { color: var(--crm-ink); font-size: 16px; font-weight: 650; }
  .shell.is-orders-view .sidebar { background: linear-gradient(175deg,#fff 5%,#f7f9ff 76%,#f4f0ff); border-color: #dce2f1; }
  .shell.is-orders-view .nav-item { transition: color var(--crm-motion),background-color var(--crm-motion),box-shadow var(--crm-motion); }
  .shell.is-orders-view .nav-item:hover { background: #eef2ff; color: var(--crm-indigo); }
  .shell.is-orders-view .nav-item.is-active { background: linear-gradient(120deg,#eee2ff,#e6eaff); color: var(--crm-indigo); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
  .shell.is-orders-view :is(.co-shell-avatar,.co-rail-user) { background: var(--crm-gradient); color: #fff; box-shadow: inset 0 1px 1px rgba(255,255,255,.35),0 3px 9px rgba(99,60,222,.18); }
  .shell.is-orders-view .co-profile > summary { color: var(--crm-ink); font-size: 16px; }

  .orders-list {
    --ol-font: 15px;
    --ol-small: 13px;
    --ol-wave-dark: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20560%20100'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M150%20100C250%20100%20325-20%20420%2010C495%2034%20515%2042%20560%2028V100Z'%20fill%3D'%237c3aed'%20fill-opacity%3D'.28'%2F%3E%3Cpath%20d%3D'M175%20100C275%2082%20315-5%20425%2018C485%2033%20525%2048%20560%2037'%20fill%3D'none'%20stroke%3D'%23b7a1ff'%20stroke-opacity%3D'.21'%2F%3E%3C%2Fsvg%3E");
  }
  .orders-list .ol-heading h1 { color: #10182d; font-size: 34px; font-weight: 750; }
  .orders-list .ol-heading p { color: #4c6083; font-size: 14px; }
  .orders-list .ol-btn,
  .ol-preview-pane .ol-btn {
    border-color: #c7d2e8; border-radius: 9px;
    background: linear-gradient(120deg,#fff,#f9fbff); color: var(--crm-ink);
    font-family: inherit;
    transition: color var(--crm-motion),border-color var(--crm-motion),background-color var(--crm-motion),box-shadow var(--crm-motion),transform var(--crm-motion);
  }
  .orders-list .ol-btn:hover:not(:disabled),
  .ol-preview-pane .ol-btn:hover:not(:disabled) { border-color: #a990e5; background: #f3efff; box-shadow: 0 3px 9px rgba(84,59,181,.09); }
  .orders-list .ol-btn.primary,
  .ol-preview-pane .ol-btn.primary { border-color: transparent; background: var(--crm-gradient); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 5px 13px rgba(99,53,225,.20); }
  .orders-list .ol-btn.primary:hover:not(:disabled),
  .ol-preview-pane .ol-btn.primary:hover:not(:disabled) { background: var(--crm-gradient); box-shadow: inset 0 1px 0 rgba(255,255,255,.3),0 7px 17px rgba(99,53,225,.26); transform: translateY(-1px); }
  .orders-list .ol-heading .ol-btn.primary { min-height: 42px; padding-inline: 19px; font-size: 16px; }
  .orders-list .ol-btn.subtle,
  .ol-preview-pane .ol-btn.subtle { border-color: transparent; background: transparent; color: var(--crm-indigo); box-shadow: none; }
  .orders-list .ol-btn.subtle:hover:not(:disabled),
  .ol-preview-pane .ol-btn.subtle:hover:not(:disabled) { background: #eee9ff; box-shadow: none; }
  .orders-list .ol-btn.danger,
  .ol-preview-pane .ol-btn.danger { color: #b52d49; border-color: #ebc4ce; background: #fff6f8; }
  .orders-list .ol-btn.danger:hover:not(:disabled),
  .ol-preview-pane .ol-btn.danger:hover:not(:disabled) { color: #a82240; border-color: #dc98ac; background: #ffeef3; box-shadow: 0 3px 9px rgba(181,45,73,.09); }
  .orders-list .ol-btn:active:not(:disabled),
  .ol-preview-pane .ol-btn:active:not(:disabled) { transform: translateY(0); }
  .orders-list :is(button,a,input,select):focus-visible,
  .ol-preview-pane :is(button,a,input,select):focus-visible { outline: 2px solid var(--crm-indigo); outline-offset: 3px; }
  .orders-list .ol-btn:disabled,
  .ol-preview-pane .ol-btn:disabled { opacity: .55; transform: none; box-shadow: none; }

  .orders-list .ol-metrics { grid-template-columns: minmax(0,1fr) minmax(208px,28%); gap: 12px; }
  .orders-list .ol-metric-strip {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch;
    padding:6px; border:1px solid #dce5f3; border-radius:14px; background:linear-gradient(115deg,#fff 20%,#f2f8ff);
  }
  .orders-list .ol-metric {
    border-color:transparent; border-radius:var(--crm-radius); background:#fff; box-shadow:none;
    transition: background-color var(--crm-motion),border-color var(--crm-motion);
  }
  .orders-list .ol-metric-strip .ol-metric { border-radius:8px; margin:0 3px; background:transparent; }
  .orders-list .ol-metric-strip .ol-metric + .ol-metric { border-inline-start-color:#e5eaf4; }
  .orders-list .ol-metric-strip .ol-metric:hover { background:#f5f3ff; }
  .orders-list .ol-metric.is-active { border-color: var(--crm-violet); box-shadow: 0 0 0 2px rgba(124,58,237,.12),var(--crm-shadow); }
  .orders-list .ol-metric-icon { background: linear-gradient(125deg,#eee3ff,#e6efff); color: var(--crm-indigo); box-shadow: inset 0 1px 0 rgba(255,255,255,.75); }
  .orders-list .ol-metric-label { color: #4e6080; font-size: 13px; }
  .orders-list .ol-metric-value { color: var(--crm-ink); white-space: normal; overflow-wrap: anywhere; }
  .orders-list .ol-metric.danger .ol-metric-icon { background: linear-gradient(125deg,#ffe8ee,#fff2e9); color: var(--crm-danger); }
  .orders-list .ol-metric.danger .ol-metric-value { color: #c22f4d; }
  .orders-list .ol-metric[data-value="due"] {
    border-color: rgba(158,135,224,.65);
    background: var(--ol-wave-dark) center/100% 100% no-repeat,radial-gradient(ellipse at 100% 0%,rgba(136,61,224,.6),transparent 65%),var(--crm-gradient-dark);
    color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.15),0 6px 18px rgba(43,35,100,.2);
  }
  .orders-list .ol-metric[data-value="due"] :is(.ol-metric-label,.ol-metric-value) { color: #fff; }
  .orders-list .ol-metric[data-value="due"] .ol-metric-icon { border: 1px solid rgba(209,196,255,.2); background: linear-gradient(125deg,rgba(192,173,255,.20),rgba(140,104,231,.12)); color: #e4d9ff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
  .orders-list .ol-metric[data-value="due"].is-active { border-color: #c3a3ff; box-shadow: 0 0 0 2px rgba(124,58,237,.18),0 6px 18px rgba(43,35,100,.2); }

  .orders-list .ol-workspace {
    border-color: rgba(178,189,224,.78); border-radius: var(--crm-radius);
    background: #fff;
    box-shadow: var(--crm-shadow),0 1px 3px rgba(58,64,110,.05);
  }
  .orders-list .ol-views-bar { min-height:48px; padding-block:6px; border-bottom:0; background:#fff; }
  .orders-list .ol-views { align-items: center; gap: 8px; }
  .orders-list .ol-view { min-height: 36px; padding: 8px 12px; border: 1px solid transparent; border-radius: 10px; color: #405374; font-size: 14px; font-weight: 600; transition: color var(--crm-motion),background-color var(--crm-motion),box-shadow var(--crm-motion); }
  .orders-list .ol-view:hover { background: #eae9ff; color: var(--crm-indigo); }
  .orders-list .ol-view.active { border-color:transparent; background:var(--crm-gradient); color:#fff; box-shadow:0 3px 8px #5145e526; }
  .orders-list .ol-count { background: #e5e9f5; color: #3f5275; font-size: 12px; }
  .orders-list .ol-view.active .ol-count { background:#3124965c; color:#fff; }
  .orders-list .ol-view[data-value="attention"]:not(.active) .ol-count { color: #9a6312; background: #fff0d4; }
  .orders-list .ol-view-tools { padding-block: 0; }
  .orders-list .ol-view-tools .ol-btn:is([aria-pressed="true"],[aria-expanded="true"]) { border-color: #ab8ee7; background: linear-gradient(110deg,#eee6ff,#e9f3ff); color: var(--crm-indigo); }
  .orders-list .ol-filterbar { border-color: #dce3f0; background: rgba(255,255,255,.76); }

  .orders-list .ol-search { max-width:none; border-color:#e6ebf5; background:#f6f8fc; color:#52627b; }
  .orders-list .ol-filterbar > .ol-status-select { flex:0 1 176px; }
  .orders-list .ol-search:focus-within { border-color: var(--crm-violet); box-shadow: var(--crm-focus); }
  .orders-list .ol-search > input { color: var(--crm-ink); }
  .orders-list .ol-search input::placeholder { color: #62718c; }
  .orders-list :is(.ol-filterbar select,.ol-extra-filters select,.ol-extra-filters input,.ol-footer select) { border-color: #c5d1e7; background-color: #fff; color: var(--crm-ink); border-radius: 9px; transition: border-color var(--crm-motion),box-shadow var(--crm-motion); }
  .orders-list :is(.ol-filterbar select,.ol-extra-filters select,.ol-extra-filters input,.ol-footer select):focus { outline: none; border-color: var(--crm-violet); box-shadow: var(--crm-focus); }
  .orders-list :is(.ol-extra-filters,.ol-chip-filters) { background: linear-gradient(110deg,#f6f3ff,#f2faff); border-color: #dce3f0; }
  .orders-list .ol-chip-filters > span { border-color: #d6c9f2; background: #eee8fc; color: #634597; }

  .orders-list .ol-table th { border-bottom-color:#d4def0; background:#edf1fa; color:#3a4b69; font-size:13px; font-weight:650; }
  .orders-list .ol-table tbody td { background: rgba(255,255,255,.96); border-color: #e0e7f2; transition: background-color var(--crm-motion); }
  .orders-list .ol-table tbody tr:hover td { background: #f8f9ff; }
  .orders-list .ol-table tbody tr.is-selected td,
  .orders-list .ol-table tbody tr.is-selected:hover td { background: #eee9ff; }
  .orders-list .ol-table tbody tr:focus-visible { outline: 2px solid var(--crm-indigo); outline-offset: -2px; }
  .orders-list .ol-order-number { display:inline-block; padding:1px 6px; border-radius:5px; background:#eef1f7; color:#435372; font-size:12px; font-weight:650; font-variant-numeric:tabular-nums; }
  .orders-list .ol-order-number:hover { background: #eee9ff; color: var(--crm-indigo); }
  .orders-list .ol-order-title { color: var(--crm-ink); font-size: var(--ol-font); font-weight: 650; }
  .orders-list .ol-order-title,
  .orders-list .ol-order-title:hover:not(:disabled) { padding: 0; border: 0; background: transparent; box-shadow: none; transform: none; }
  .orders-list .ol-order-title:hover:not(:disabled) { color: var(--crm-indigo); }
  .orders-list :is(.ol-customer,.ol-crew-count,.ol-payment-note) { color: var(--crm-muted); font-size: var(--ol-small); }
  .orders-list .ol-datetime { flex-wrap:wrap; gap:3px 6px; color:#2f4568; font-size:14px; font-variant-numeric:tabular-nums; }
  .orders-list .ol-datetime + .ol-datetime { color: #596b88; font-size: 13px; }
  .orders-list .ol-datetime > time { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .orders-list .ol-clock { font-weight:750; white-space:nowrap; }
  .orders-list :is(.ol-format-badge,.ol-timing-badge,.ol-overdue-badge,.ol-shortage-trigger) {
    display:inline-flex; align-items:center; gap:4px; max-width:100%; min-height:22px; padding:2px 6px;
    border:1px solid var(--ol-tag-line); border-radius:6px; background:var(--ol-tag-bg); color:var(--ol-tag-ink);
    font-size:12px; font-weight:650; line-height:1.15;
  }
  .orders-list .ol-format-badge {
    --ol-tag-bg:#eef1f7; --ol-tag-ink:#41536f; --ol-tag-line:#dde3ef;
    min-height:26px; border-radius:7px; white-space:nowrap;
  }
  .orders-list .ol-format-badge[data-format=delivery] { --ol-tag-bg:#e5f2ff; --ol-tag-ink:#215b92; --ol-tag-line:#cce3fb; }
  .orders-list .ol-format-badge[data-format=onsite] { --ol-tag-bg:#eee8ff; --ol-tag-ink:#5036a2; --ol-tag-line:#ded4fa; }
  .orders-list .ol-format-badge .ol-icon { width:14px; height:14px; }
  .orders-list .ol-timing-badge { --ol-tag-bg:#eeebff; --ol-tag-ink:#4b35aa; --ol-tag-line:#e0d8fc; }
  .orders-list .ol-overdue-badge { --ol-tag-bg:#fcecf1; --ol-tag-ink:#a22743; --ol-tag-line:#f1ccd7; margin-top:4px; }
  .orders-list .ol-badge.success { --ol-status-bg:#ddf6e9; --ol-status-ink:#146b43; }
  .orders-list .ol-badge.warn { --ol-status-bg:#fff0d4; --ol-status-ink:#80510c; }
  .orders-list .ol-badge.danger { --ol-status-bg:#ffe9ee; --ol-status-ink:#ac2946; }
  .orders-list .ol-badge.complete { --ol-status-bg:#e6edfa; --ol-status-ink:#344975; }
  .orders-list .ol-badge {
    padding:4px 8px; font-size:13px; font-weight:700;
    background:var(--ol-status-bg,#eeebf5); color:var(--ol-status-ink,#574f70);
  }
  .orders-list .ol-status-picker { position:relative; padding:0; border-radius:9px; vertical-align:middle; }
  .orders-list .ol-status-picker select {
    appearance:none; field-sizing:content; min-height:32px; min-width:0; max-width:100%; padding:4px 30px 4px 10px;
    border:1px solid color-mix(in srgb,currentColor 38%,transparent); border-radius:inherit; background:transparent;
    color:inherit; font:inherit; cursor:pointer;
  }
  .orders-list .ol-status-picker .ol-icon { width:14px; height:14px; position:absolute; right:9px; pointer-events:none; }
  .orders-list .ol-status-picker select:hover { border-color:currentColor; }
  .orders-list .ol-status-picker select option { color:var(--crm-ink); background:#fff; }
  .orders-list .ol-status-picker select:disabled { opacity:.7; cursor:wait; }
  .orders-list .ol-ready { font-size: var(--ol-small); }
  .orders-list .ol-ready.success { color: #536581; }
  .orders-list .ol-ready.success > .ol-icon { color: var(--crm-success); }
  .orders-list .ol-ready.warn { color: #956110; }
  .orders-list .ol-ready.danger { color: #bc3150; }
  .orders-list .ol-avatar { background: linear-gradient(130deg,#eee3ff,#e5eaff); color: #6442ba; }
  .orders-list .ol-avatar.vacant { border-color: #d2c4ed; background: #f7f2ff; color: #745a9a; }
  .orders-list .ol-avatar.more { background: #edf0f8; color: #62718d; }
  .orders-list .ol-total { color:var(--crm-ink); font-size:16px; font-weight:750; white-space:normal; overflow-wrap:anywhere; }
  .orders-list .ol-payment-note { font-variant-numeric:tabular-nums; }
  .orders-list .ol-payment-note.success { color: var(--crm-success); }
  .orders-list .ol-payment-note.warn { color: #956110; }
  .orders-list .ol-payment-note.danger { color: #bc3150; }
  .orders-list .ol-crew-count.warn { color: #956110; }

  .orders-list .ol-footer { background: linear-gradient(110deg,#f9f7ff,#f4fbff); border-color: #dbe3f1; color: #405374; }
  .orders-list .ol-page-controls > .ol-btn { border-color: #c6d1e7; color: #566487; }
  .orders-list .ol-selection { color: #6441a8; }
  .orders-list .ol-columns-panel { border-color: #c9b9eb; border-radius: 11px; background: linear-gradient(125deg,#fff,#f7fbff); box-shadow: 0 12px 28px rgba(45,36,101,.17); }
  .orders-list .ol-empty { color: var(--crm-muted); }
  .orders-list .ol-empty > strong { color: var(--crm-ink); }
  .orders-list .ol-filter-error { background: #fff3f6; border-color: #edc2ce; color: #b52d49; }

  .ol-preview-pane { background: linear-gradient(130deg,#f5f1ff,#effaff); border-color: #c6d2e7; box-shadow: var(--crm-shadow); }
  .ol-preview-pane > :is(header,footer) { border-color: #d5dfee; background: linear-gradient(115deg,rgba(255,255,255,.96),rgba(236,247,255,.95)); }
  .ol-preview-pane .ol-preview-section { border-color: #d4dced; border-radius: 12px; background: radial-gradient(ellipse at 100% 0%,rgba(61,205,230,.10),transparent 66%),#fff; box-shadow: 0 4px 14px rgba(46,51,111,.05); }
  .ol-preview-pane :is(.ol-preview-meta,.ol-preview-note,.ol-preview-team small) { color: var(--crm-muted); }
  .ol-preview-pane :is(h2,.ol-preview-finance strong) { color: var(--crm-ink); }
  .ol-preview-pane :is(h2,h3,.ol-preview-note) { overflow-wrap: anywhere; }
  .ol-preview-pane :is(.ol-preview-finance strong.success,.ol-preview-issue.success) { color: var(--crm-success); }
  .ol-preview-pane .ol-preview-meta a { color: var(--crm-indigo); }





  .orders-list.compact,
  .orders-list.is-compact { --ol-font: 14px; --ol-small: 12px; }
  .orders-list:is(.compact,.is-compact) .ol-total { font-size: 15px; }
  .orders-list:is(.compact,.is-compact) .ol-datetime { font-size: 13px; }
  .orders-list:is(.compact,.is-compact) .ol-datetime + .ol-datetime { font-size: 12px; }
  @media (min-width: 1850px) { .orders-list:not(.compact):not(.is-compact) { --ol-font: 15.5px; } }
  @media (max-width: 1450px) and (min-width: 761px) {
    .shell.is-orders-view > .main > .content { padding: 16px; }
    .orders-list .ol-heading h1 { font-size: 28px; }
    .orders-list .ol-view { min-height: 34px; padding-inline: 10px; font-size: 13px; }
    .orders-list .ol-views-bar { min-height: 50px; padding-block: 7px; }
  }
  @media (max-width: 1180px) and (min-width: 761px) {
    .orders-list .ol-views { gap: 4px; }
    .orders-list .ol-view { padding-inline: 8px; }
  }
  @media (max-width: 760px) {
    .shell.is-orders-view > .main > .content { padding: 12px; }
    .shell.is-orders-view .topbar { height: 40px; min-height: 40px; flex-basis: 40px; }
    .shell.is-orders-view .topbar .breadcrumb { font-size: 14px; }
    .shell.is-orders-view .co-profile > summary { font-size: 13px; }
    .orders-list .ol-heading h1 { font-size: 26px; }
    .orders-list .ol-heading p { font-size: 12px; }
    .orders-list .ol-heading .ol-btn.primary { min-height: 36px; padding: 8px 10px; font-size: 12px; }
    .orders-list .ol-metric-label { font-size: 11px; }
    .orders-list .ol-views-bar { min-height: 48px; padding-block: 6px; }
    .orders-list .ol-view { min-height: 34px; padding: 7px 9px; font-size: 13px; }
    .orders-list .ol-table { font-size: 14px; }
  }
  @media (max-width: 420px) {
    .orders-list .ol-metric-label { font-size: 10.5px; }
    .orders-list .ol-view { padding-inline: 8px; }
  }
  .orders-list { gap: 13px; }
  .orders-list .ol-heading { min-height: 42px; align-items: center; }
  .orders-list .ol-metric { min-height: 62px; padding: 8px 12px; gap: 10px; }
  .orders-list .ol-metric-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .orders-list .ol-metric-icon .ol-icon { width: 18px; height: 18px; }
  .orders-list .ol-metric-value { font-size: clamp(18px,2vw,24px); }
  .orders-list .ol-workarea { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); gap: 12px; flex: 1; min-width: 0; min-height: 0; }
  .orders-list .ol-workarea:has(.ol-preview-pane:not([hidden])) { grid-template-columns: minmax(0,1fr) minmax(252px,25%); }
  .orders-list .ol-workspace { container-type: inline-size; }
  .orders-list .ol-filterbar { min-height: 48px; padding-block: 6px; }
  .orders-list .ol-table { min-width: 620px; }
  .orders-list .ol-table .ol-order-cell { width: auto; }
  .orders-list .ol-table .ol-dates-cell { width: 17%; white-space: normal; }
  .orders-list .ol-table .ol-state-cell { width: 205px; padding-inline-start: 8px; }
  .orders-list .ol-table .ol-format-cell { width: 116px; }
  .orders-list .ol-table .ol-team-cell { width: 26%; }
  .orders-list .ol-table .ol-money-cell { width: 11%; }

  .orders-list .ol-table .ol-check-cell { width: 34px; padding-left: 9px; }
  .orders-list .ol-table :is(th,td) { padding-inline: 8px; }
  .orders-list .ol-table th { height: 35px; white-space: normal; }
  .orders-list .ol-table tbody tr.is-previewed td { background: #f3efff; }
  .orders-list .ol-table tbody tr.is-previewed td:first-child { box-shadow: inset 3px 0 var(--crm-violet); }
  .orders-list .ol-mobile-label { display: none; }
  .orders-list .ol-order-line { gap: 6px; }
  .orders-list .ol-table :is(.ol-order-title,.ol-customer) {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    white-space: normal; overflow-wrap: anywhere;
  }
  .orders-list .ol-table .ol-order-title { text-decoration:none; font-weight:700; }
  .orders-list .ol-order-title .ol-icon { width:13px; height:13px; margin-inline-start:3px; color:var(--crm-indigo); }
  .orders-list .ol-datetime > span { white-space: normal; }
  .orders-list .ol-datetime.ol-next-transfer { color: #2f3860; font-weight: 720; }
  .orders-list .ol-next-transfer.is-today { color: #4d30ad; }
  .orders-list .ol-ready { white-space: normal; overflow-wrap: anywhere; }
  .orders-list .ol-shortage-trigger.warn {
    --ol-tag-bg:#fff7e9; --ol-tag-ink:#81500f; --ol-tag-line:#f1dbb5;
    min-height:23px; margin-top:4px; color:var(--ol-tag-ink); font-size:12px; text-align:left;
  }
  .orders-list .ol-shortage-trigger .ol-icon { width:13px; height:13px; flex-basis:13px; }
  .orders-list .ol-shortage-trigger:hover { --ol-tag-bg:#fff0d4; --ol-tag-line:#c79855; }
  .orders-list .ol-state-cell .ol-shortage-trigger { display:flex; width:fit-content; }
  .orders-list .ol-preview-pane { align-self: start; }
  .orders-list .ol-preview-shortage-heading h3 { color: inherit; }

  @container (max-width: 1150px) {
    .orders-list .ol-table .ol-dates-cell { width: 135px; }
    .orders-list .ol-table .ol-team-cell { width: 19%; }
    .orders-list .ol-table .ol-money-cell { width: 114px; }
  }
  @container (max-width: 890px) {
    .orders-list .ol-filterbar { flex-wrap: wrap; gap: 6px; }
    .orders-list .ol-filterbar .ol-search { order: 0; min-width: 0; flex: 1 1 54%; max-width: none; }
    .orders-list .ol-filterbar > .ol-btn { order: 1; min-width: 0; margin-left: auto; }
    .orders-list .ol-filterbar > .ol-select { order: 2; flex: 1 1 29%; min-width: 0; max-width: none; }
  }
  .orders-list .ol-team-names { display:flex; align-items:center; gap:5px; min-width:0; }
  .orders-list .ol-team-name { flex:none; white-space:nowrap; font-size:13px; font-weight:550; }
  .orders-list .ol-team-name + .ol-team-name::before { content:"·"; margin-inline-end:5px; color:#717e96; }
  .orders-list .ol-team-names:has(> .ol-team-name:only-child) .ol-team-name { flex:0 1 auto; white-space:normal; }
  .orders-list .ol-team-more { flex:none; min-height:26px; padding:2px 5px; white-space:nowrap;
    border:1px solid #d3c9f3; border-radius:7px; background:#f3f0fe; color:#4c36ae; font-size:12px; font-weight:700; }
  .orders-list .ol-team-more:is(:hover,[aria-expanded=true]) { border-color:#9c89e5; background:#ece6ff; }
  .orders-list .ol-team-popover { position:fixed; inset:auto; margin:0; width:max-content; min-width:155px;
    max-width:min(85vw,290px); max-height:60dvh; overflow-y:auto; padding:8px 12px; list-style:none;
    border:1px solid #dedff1; border-radius:10px; background:#fff; color:var(--crm-ink);
    box-shadow:0 8px 22px #273a7426; font:13px/1.4 var(--crm-font); }
  .orders-list .ol-team-popover li { padding-block:4px; overflow-wrap:anywhere; }
  .orders-list .ol-crew-count,.orders-list .ol-payment-note { white-space:normal; overflow-wrap:anywhere; }
  @container (max-width: 920px) {
    .orders-list .ol-table,.orders-list .ol-table tbody { display:block; min-width:0; width:100%; }
    .orders-list .ol-table thead { display:none; }
    .orders-list .ol-table tbody tr { display:grid; grid-template-columns:24px minmax(0,1fr) minmax(90px,38%); gap:7px 8px; padding:10px 12px; border-bottom:1px solid #edf0f7; }
    .orders-list .ol-table tbody td:is(.ol-check-cell,.ol-order-cell,.ol-dates-cell,.ol-format-cell,.ol-team-cell,.ol-money-cell,.ol-state-cell) {
      width:auto; min-width:0; height:auto; padding:0; border:0; background:transparent;
    }
    .orders-list .ol-table tbody tr:hover td,.orders-list .ol-table tbody tr.is-previewed td,.orders-list .ol-table tbody tr.is-selected td { background:transparent; box-shadow:none; }
    .orders-list .ol-table tbody tr.is-previewed,.orders-list .ol-table tbody tr.is-selected { background:#f3efff; }
    .orders-list .ol-table td.ol-order-cell { grid-column:2/-1; }
    .orders-list .ol-table td.ol-dates-cell { grid-column:2; }
    .orders-list .ol-table td.ol-money-cell { grid-column:3; grid-row:2; }
    .orders-list .ol-table td:is(.ol-format-cell,.ol-team-cell,.ol-state-cell) { grid-column:2/-1; }
    .orders-list .ol-mobile-label { display:inline; margin-inline-end:6px; color:var(--crm-muted); font-size:12px; }
  }
  @media (max-width: 1000px) {
    .orders-list .ol-workarea:has(.ol-preview-pane:not([hidden])) { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); }
    .orders-list .ol-preview-pane { grid-row: 1; max-height: min(42dvh,420px); }
  }
  @media (max-width: 760px) {
    .orders-list .ol-metrics { grid-template-columns:minmax(0,1fr); gap:8px; }
    .orders-list .ol-metric-strip .ol-metric { padding-inline:5px; }
    .orders-list .ol-metric-strip .ol-metric-icon { display:none; }
    .orders-list .ol-workarea { grid-template-rows: auto; }
    .orders-list .ol-workarea:has(.ol-preview-pane:not([hidden])) { grid-template-rows: auto auto; }
    .orders-list .ol-preview-pane { max-height: min(64dvh,490px); }
    .orders-list .ol-preview-pane [data-ol=close-preview] { scroll-margin-top: 65px; }
    .orders-list .ol-table-wrap { max-height: 57dvh; }
    .orders-list .ol-table th { position: sticky; }
  }

}

@media screen and (prefers-reduced-motion: reduce) {
  .orders-list *,
  .shell.is-orders-view .nav-item,
  .ol-preview-pane * { transition: none!important; animation: none!important; scroll-behavior: auto!important; }
  .orders-list .ol-metric:hover,
  .orders-list .ol-btn:hover,
  .orders-list .ol-btn:active,
  .ol-preview-pane .ol-btn:hover,
  .ol-preview-pane .ol-btn:active { transform: none!important; }
}
