/* Orders: one grid, neutral surfaces, clear status accents. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body[data-view=orders] .page-heading{margin-bottom:26px;align-items:center}
.orders-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;gap:12px;margin-bottom:20px}
.orders-summary-item{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:16px;min-height:114px;padding:19px 20px;background:#080808;border:1px solid #252525;border-radius:12px;color:#eee;text-align:left;overflow:hidden;transition:border-color .2s,background .2s,transform .2s}
.orders-summary-item:hover{background:#101010;border-color:#51415f;transform:translateY(-2px)}
.orders-summary-item:focus-visible{outline:2px solid #c079f7;outline-offset:3px}
.orders-summary-item.is-selected{background:linear-gradient(120deg,#a749ee10,transparent 80%),#0b090d;border-color:#8146a7}
.orders-summary-label{display:flex;align-items:center;gap:9px;font-size:14px;color:#aaa5b1;line-height:20px}
.orders-summary-label svg{width:18px;height:18px;color:#aaa2b4}
.orders-summary-item strong{font-size:28px;line-height:1;letter-spacing:-.7px;font-variant-numeric:tabular-nums}
.orders-summary-item.is-selected .orders-summary-label{color:#dec5f3}
.orders-summary-indicator{position:absolute;right:18px;bottom:20px;width:6px;height:6px;background:#46414b;border-radius:50%}
.orders-summary-item[data-status=completed] .orders-summary-indicator{background:#41d69b}
.orders-summary-item[data-status=attention] .orders-summary-indicator{background:#ffab55}
.orders-summary-item.is-selected .orders-summary-indicator{background:#c47cf8;box-shadow:0 0 10px #ad53ef55}
body[data-view=orders] .orders-attention{min-height:0;padding:16px 20px;gap:14px;margin-bottom:20px;border:1px solid #663d1b;background:#191108;border-radius:11px}
body[data-view=orders] .orders-attention>svg{width:22px;height:22px}
body[data-view=orders] .orders-attention strong{font-size:15px;line-height:22px;color:#ffc082}
body[data-view=orders] .orders-attention span{margin-top:3px;font-size:14px;line-height:21px;color:#bca58f}
body[data-view=orders] .orders-attention>.text-button{font-size:14px;min-height:40px;color:#ffbe7f}
body[data-view=orders] .orders-panel{padding:0;background:#080808;border:1px solid #252525;border-radius:13px;overflow:hidden}
.orders-toolbar{display:flex;align-items:center;gap:12px;padding:20px;border-bottom:1px solid #232323;background:#0b0b0b}
.orders-toolbar .search-field{flex:1;max-width:none;height:46px;min-height:46px;padding-left:14px;background:#070707;border-color:#303030;border-radius:8px}
.orders-toolbar .search-field input{font-size:15px!important;width:100%;height:44px;padding-right:12px;color:#eee}
.orders-toolbar .search-field input::placeholder{color:#8f8a98}
.orders-toolbar .search-field svg{width:18px;height:18px;color:#9b90a6;flex-shrink:0}
.orders-select-wrap{position:relative;flex:0 1 230px;min-width:180px}
.orders-select-wrap select{width:100%;height:46px;appearance:none;padding:0 38px 0 14px;border:1px solid #303030;border-radius:8px;background:#101010;color:#d5d2d9;font-size:14px;cursor:pointer}
.orders-select-wrap>svg{position:absolute;right:14px;top:16px;width:14px;height:14px;pointer-events:none;color:#a39aa9;transform:rotate(90deg)}
.orders-toolbar .orders-export{height:46px;min-height:46px;padding:0 15px;font-size:14px;white-space:nowrap;background:#101010;border:1px solid #303030;border-radius:8px;color:#d5d2d9}
.orders-toolbar .orders-export svg{width:17px;height:17px}
.orders-toolbar .orders-export:hover{background:#19151e;border-color:#674379;color:#e4c3fc}
.orders-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 24px 17px}
.orders-list-heading h2{font-size:16px;margin:0;line-height:24px;color:#f0edf4;letter-spacing:0}
.orders-list-heading .result-count{margin:0;padding:4px 9px;border-radius:6px;background:#171519;color:#aca4b5;font-size:14px;line-height:20px}
.orders-panel .orders-table{table-layout:fixed;min-width:850px}
.orders-panel .orders-table th{padding:12px 16px;font-size:14px!important;color:#9d97a5!important;background:#101010;border-bottom:1px solid #292929;line-height:20px}
.orders-panel .orders-table th:first-child{width:26%;padding-left:24px}
.orders-panel .orders-table th:nth-child(2){width:17%}
.orders-panel .orders-table th:nth-child(3){width:15%}
.orders-panel .orders-table th:nth-child(4){width:18%}
.orders-panel .orders-table th:nth-child(5){width:19%}
.orders-panel .orders-table th:last-child{width:5%;padding:0;position:relative}
.orders-panel .orders-table td{padding:18px 16px;height:83px;box-sizing:border-box;border-bottom:1px solid #202020;font-size:15px!important;vertical-align:middle;line-height:22px;transition:background .18s}
.orders-panel .orders-table td:first-child{padding-left:24px}
.orders-panel .orders-table td:last-child{padding:0 16px 0 0;text-align:right}
.orders-panel .orders-table tr:last-child td{border-bottom:0}
.orders-panel .orders-table tbody tr:hover td{background:#100d13}
.orders-panel .orders-table .order-number{font-size:15px!important;color:#ede8f3!important;letter-spacing:.01em;line-height:23px}
.orders-panel .orders-table .order-number:hover{color:#ce91fb!important}
.orders-panel .orders-table small{display:block;margin-top:4px;font-size:14px!important;line-height:20px;color:#8f8999!important;overflow:hidden;text-overflow:ellipsis}
.orders-panel .orders-table .order-recipient{color:#aba3b5!important}
.orders-panel .orders-table .order-created{color:#aaa3b3!important;font-size:14px!important;white-space:normal}
.orders-panel .orders-table td>strong{color:#e6e2eb;font-size:15px!important;font-variant-numeric:tabular-nums;white-space:nowrap}
.orders-panel .orders-table .is-delivered{color:#79b59c!important}
.orders-panel .orders-table .status-pill{font-size:13px!important;min-height:30px;border-radius:6px;padding:5px 9px;white-space:nowrap;line-height:18px}
.orders-panel .orders-table .status-pill.muted{background:#161518;border-color:#302d34;color:#b9b3c0}
.orders-panel .orders-table .status-pill.success{background:#10231a;border-color:#244c37;color:#68dfaa}
.orders-panel .orders-table .status-pill.warning{background:#271c10;border-color:#634325;color:#ffbd75}
.orders-panel .orders-table .order-open{height:34px;width:34px;min-height:34px;border:1px solid transparent;border-radius:8px;color:#8b8296;transition:background .18s,color .18s,border-color .18s}
.orders-panel .orders-table tr:hover .order-open,.orders-panel .orders-table .order-open:focus-visible{background:#211528;border-color:#553268;color:#d09af7}
.orders-panel .orders-table .order-open svg{width:17px;height:17px}
.orders-panel .empty-state{padding:68px 24px!important}
.orders-panel .empty-state h3{font-size:20px!important;color:#e7e2ed}
.orders-panel .empty-state p{max-width:410px;margin-left:auto;margin-right:auto;font-size:15px!important;color:#a49aaf;line-height:1.7}
@media(max-width:1050px){.orders-toolbar{flex-wrap:wrap}.orders-toolbar .search-field{flex-basis:100%}.orders-select-wrap{flex:1}.orders-summary-item{padding:17px 15px}.orders-summary-label{font-size:14px;gap:7px}.orders-summary-label svg{display:none}}
@media(max-width:600px){.orders-summary{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.orders-summary-item{min-height:100px;gap:14px}.orders-summary-item strong{font-size:26px}.orders-summary-label svg{display:block;width:16px;height:16px}.orders-toolbar{padding:14px;gap:10px}.orders-select-wrap{min-width:0;flex-basis:50%}.orders-select-wrap select{font-size:14px;padding-left:10px}.orders-toolbar .orders-export{padding:0 11px;font-size:14px}.orders-list-heading{padding:17px 16px 14px}.orders-list-heading h2{font-size:15px}body[data-view=orders] .orders-attention{padding:14px;gap:10px}body[data-view=orders] .orders-attention>.text-button{margin-left:24px;padding:0 8px}body[data-view=orders] .page-heading>.primary-button{font-size:14px;padding:0 13px;gap:7px;margin-top:0;min-height:44px}body[data-view=orders] .page-heading h1{font-size:30px}}
@media(prefers-reduced-motion:reduce){.orders-summary-item,.orders-table td,.order-open{transition:none!important}}
.reduce-motion .orders-summary-item,.reduce-motion .orders-table td,.reduce-motion .order-open{transition:none!important}

/* Status selector, custom menu in the top layer. */
.orders-select-wrap .order-status-trigger{width:100%;height:46px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px;border:1px solid #303030;border-radius:8px;background:#101010;color:#d5d2d9;font-family:inherit;font-size:14px;text-align:left;cursor:pointer;transition:background .18s,border-color .18s}
.order-status-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-status-trigger>svg{width:17px;height:17px;flex-shrink:0;fill:none;stroke:#a99bb2;stroke-width:1.8;transition:transform .2s}
.orders-select-wrap .order-status-trigger:hover{background:#17121b;border-color:#665073}
.orders-select-wrap .order-status-trigger[aria-expanded=true]{background:#19121f;border-color:#9361b0}
.order-status-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}
.order-status-trigger:focus-visible{outline:2px solid #b878e0;outline-offset:3px}
.order-status-menu{position:fixed;inset:auto;margin:0;padding:6px;box-sizing:border-box;border:1px solid #3a2c44;border-radius:12px;background:#120f16;color:#d9d2e0;box-shadow:0 18px 48px #0009,0 4px 12px #0006;overflow:auto;scrollbar-width:thin;scrollbar-color:#4c395b transparent;opacity:0;transform:translateY(-5px) scale(.98);transition:opacity .16s ease,transform .2s cubic-bezier(.16,1,.3,1),display .2s allow-discrete,overlay .2s allow-discrete}
.order-status-menu:popover-open{opacity:1;transform:none}
@starting-style{.order-status-menu:popover-open{opacity:0;transform:translateY(-5px) scale(.98)}}
.status-menu-option{display:grid;grid-template-columns:7px minmax(0,1fr) 18px;column-gap:12px;align-items:center;width:100%;min-height:44px;padding:9px 11px;border:0;border-radius:7px;background:transparent;color:inherit;text-align:left;font-family:inherit;font-size:14px;line-height:22px;cursor:pointer;transition:background .15s,color .15s}
.status-menu-option:hover{background:#ffffff08;color:#f3ecfa}
.status-menu-option:focus-visible{outline:none;box-shadow:inset 0 0 0 1px #8f61a9;background:#261b2e}
.status-menu-option[aria-checked=true]{background:#9c55cd20;color:#e3c3fa}
.status-menu-option>svg{width:18px;height:18px;fill:none;stroke:#c58af0;stroke-width:2!important;opacity:0}
.status-menu-option[aria-checked=true]>svg{opacity:1}
.status-menu-dot{width:6px;height:6px;border-radius:50%;background:#9b8da7}
.status-tone-active,.status-tone-partial{background:#b992da}
.status-tone-attention,.status-tone-unknown{background:#e8a55f}
.status-tone-completed{background:#69d6a5}
.status-tone-failed{background:#e8849b}
.status-tone-cancelled{background:#726b7c}
.status-menu-divider{height:1px;background:#302734;margin:6px 8px}
@media(prefers-reduced-motion:reduce){.order-status-menu,.order-status-trigger,.order-status-trigger>svg,.status-menu-option{transition:none!important}}
.reduce-motion .order-status-menu,.reduce-motion .order-status-trigger,.reduce-motion .status-menu-option{transition:none!important}

/* Match the notification panel: neutral black, quiet rows and fine separators. */
.orders-select-wrap .order-status-trigger:hover{background:#101010;border-color:#524859}
.orders-select-wrap .order-status-trigger[aria-expanded=true]{background:#0b0b0b;border-color:#756380}
.order-status-menu{padding:18px 20px 12px;border-color:#39313f;border-radius:14px;background:#080808;color:#ece7f1;box-shadow:0 12px 45px #000b;scrollbar-color:#3b3342 transparent}
.status-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.status-menu-heading h3{margin:0;font-family:'Segoe UI',sans-serif;font-size:20px;line-height:28px;letter-spacing:-.3px;color:#ececec}
.status-menu-heading h3>span{color:#b78ad3}
.status-menu-close{display:grid;place-items:center;width:28px;height:28px;min-height:28px;margin-right:-8px;border:0;border-radius:6px;background:transparent;color:#9b979e;cursor:pointer}
.status-menu-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7!important}
.status-menu-close:hover{background:#ffffff08;color:#f0eaf5}
.status-menu-close:focus-visible{outline:1px solid #aa85bd;outline-offset:1px}
.status-menu-options{max-height:320px;overflow:auto;scrollbar-width:thin;scrollbar-color:#3b3342 transparent;padding-right:4px}
.status-menu-option{grid-template-columns:6px minmax(0,1fr) 14px;column-gap:10px;min-height:47px;padding:12px 2px;border-bottom:1px solid #252127;border-radius:0;font-family:'Segoe UI',sans-serif;color:#ddd7e3;font-size:14px;line-height:22px}
.status-menu-option:last-child{border-bottom:0}
.status-menu-option:hover{background:#ffffff04;border-radius:5px;color:#ece7f1}
.status-menu-option[aria-checked=true]{background:#ffffff03;color:#ece7f1;border-radius:5px}
.status-menu-option:focus-visible{background:#ffffff04;box-shadow:inset 2px 0 #a783bf;border-radius:4px}
.status-menu-option>svg{width:14px;height:14px;stroke:#a783bf;stroke-width:1.7!important}
.status-menu-dot{background:#a783bf}
.status-tone-active,.status-tone-partial{background:#a783bf}
.status-tone-attention,.status-tone-unknown{background:#c8a278}
.status-tone-completed{background:#9dbba7}
.status-tone-failed{background:#c1919d}
.status-tone-cancelled{background:#817788}
