.nav-item small{min-width:20px;padding:3px 6px;text-align:center;border-radius:999px;background:rgba(255,255,255,.1)}
/* Supplier ledger: no store column, with shipping information available on demand. */
body.is-supplier [data-store-column],body.is-supplier #store-filter,body.is-supplier [data-filter-id="store-filter"]{display:none!important}
body.is-supplier .table-wrap table{min-width:1480px}
.table-wrap .customer-cell{vertical-align:middle!important}
.recipient-disclosure{width:100%;min-width:0;border:1px solid #e1e8f2;border-radius:12px;background:#fff;overflow:hidden}
.recipient-summary{min-height:48px;padding:13px 14px;display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;color:#213a5a;cursor:pointer;transition:background .16s ease}
.recipient-summary::-webkit-details-marker{display:none}
.recipient-summary:hover{background:#f7faff}
.recipient-summary:focus-visible{outline:3px solid rgba(37,99,235,.25);outline-offset:-3px;border-radius:11px}
.recipient-summary .recipient-name{min-width:0;overflow-wrap:anywhere;font-size:12px;line-height:1.45;font-weight:750}
.recipient-chevron{width:16px;height:16px;flex:0 0 auto;color:#6b85a9;transition:transform .18s ease}
.recipient-disclosure[open] .recipient-summary{background:#f5f8fe;border-bottom:1px solid #e5ecf5}
.recipient-disclosure[open] .recipient-chevron{transform:rotate(180deg)}
.recipient-disclosure>.customer-fields{padding:5px 13px 9px}
@media(prefers-reduced-motion:reduce){.recipient-summary,.recipient-chevron{transition:none}}
.orders-panel button[hidden]{display:none!important}
.nav-item[data-view="held"] small{color:#fff0c2;background:rgba(245,158,11,.2)}
.orders-panel[data-queue="held"] .orders-heading{background:#fffcf5}
.row-button.is-release{border-color:#b9dfcd;color:#087357;background:#f2fbf7}
.row-button.is-release:hover{border-color:#65b996;background:#e7f7ee}
.selection-bar{position:sticky;top:76px;z-index:18;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #d7e2f1;background:#f7faff;box-shadow:0 8px 20px rgba(25,65,112,.07)}
.selection-bar[hidden]{display:none}.selection-bar>div:first-child{display:flex;align-items:center;gap:10px}.selection-bar strong{font-size:11px}.selection-bar>div:first-child button{border:0;color:var(--primary);background:transparent;font-size:9px;font-weight:800;cursor:pointer}.selection-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.action-button{min-height:34px;padding:0 11px;border:1px solid #cfdced;border-radius:9px;color:#344967;background:#fff;font-size:9px;font-weight:800;cursor:pointer}.action-button:hover{border-color:var(--primary);color:var(--primary)}.action-button.is-primary{border-color:var(--primary);color:#fff;background:var(--primary)}.action-button.is-success{border-color:#15966b;color:#fff;background:#15966b}.action-button.is-danger{border-color:#f1cbd0;color:#b43240;background:#fff5f6}.action-button[hidden]{display:none}
.select-column{width:44px;padding-right:8px!important;text-align:center}.select-column input{width:16px;height:16px;accent-color:var(--primary);cursor:pointer}tr.is-selected td{background:#f6f9ff}.progress-cell{min-width:175px}.progress-cell small{display:block;max-width:210px;margin-top:7px;color:var(--muted);line-height:1.4}.sync-error{display:block;max-width:230px;margin-top:7px;color:#b43240;font-size:8px;line-height:1.4}.detail-cell{width:80px;text-align:right}.row-button{padding:8px 10px;border:1px solid var(--line);border-radius:9px;color:var(--primary);background:#fff;font-size:9px;font-weight:800;cursor:pointer}.row-button:hover{border-color:var(--primary);background:#f5f8ff}
.status-pill.is-assigned{color:#5f45c5;background:var(--purple-soft)}.status-pill.is-tracking-received{color:#9a6300;background:var(--amber-soft)}.status-pill.is-approved{color:#165bb8;background:#e7f0ff}.status-pill.is-synced{color:#087357;background:var(--green-soft)}
.modal-layer{position:fixed;inset:0;z-index:105;display:grid;place-items:center;padding:24px;background:rgba(7,22,48,.6);backdrop-filter:blur(5px)}.modal-layer[hidden]{display:none}.form-dialog,.detail-dialog{position:relative;width:min(620px,100%);max-height:calc(100vh - 48px);overflow:auto;padding:30px;border:1px solid rgba(213,223,237,.92);border-radius:22px;background:#fff;box-shadow:0 28px 80px rgba(5,21,48,.32);animation:dialog-in .22s cubic-bezier(.2,.75,.25,1)}.detail-dialog{width:min(860px,100%)}.modal-close{position:absolute;top:18px;right:18px;width:36px;height:36px;border:1px solid var(--line);border-radius:10px;color:#65758b;background:#fff;font-size:21px;cursor:pointer}.dialog-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;color:var(--primary);background:#eaf1ff;font-size:21px;font-weight:850}.dialog-kicker{margin:18px 0 6px;color:var(--primary);font-size:9px;font-weight:850;letter-spacing:.1em}.form-dialog h2,.detail-dialog h2{margin:0;font-size:23px;letter-spacing:-.02em}.dialog-description,.detail-heading p:last-child{margin:8px 0 0;color:var(--muted);font-size:10px;line-height:1.6}.form-fields{margin-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-field{display:grid;gap:7px}.form-field.is-wide,.check-field{grid-column:1/-1}.form-field>span{color:#3b4d67;font-size:9px;font-weight:800}.form-field input,.form-field select,.form-field textarea{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:10px;outline:0;color:var(--ink);background:#fbfcff;font-size:10px}.form-field textarea{resize:vertical}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.1)}.check-field{padding:13px;display:flex;align-items:center;gap:10px;border:1px solid #cfe9df;border-radius:11px;color:#176c54;background:#f4fbf8;font-size:10px;font-weight:700}.check-field input{width:16px;height:16px;accent-color:var(--green)}.dialog-actions{margin-top:24px;display:flex;align-items:center;justify-content:flex-end;gap:9px}.primary-button,.secondary-button{min-height:42px;padding:0 18px;border-radius:10px;font-size:10px;font-weight:800;cursor:pointer}.primary-button{border:0;color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary-dark))}.primary-button:disabled{opacity:.6;cursor:wait}.secondary-button{border:1px solid var(--line);color:#3f516b;background:#fff}.detail-heading{padding-right:48px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.detail-heading .dialog-kicker{margin-top:0}.detail-content{margin-top:22px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.detail-grid article{padding:17px;border:1px solid var(--line);border-radius:14px;background:#fbfcff}.detail-grid article.is-wide{grid-column:1/-1}.detail-grid h3{margin:0 0 11px;color:#344967;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.detail-grid article>strong{font-size:12px}.detail-grid p{margin:6px 0;color:var(--muted);font-size:9.5px;line-height:1.55}.detail-warning{margin-top:10px;padding:9px 10px;border-radius:9px;color:#a63845;background:var(--red-soft);font-size:8.5px;line-height:1.45}.item-list{margin:0;padding:0;display:grid;gap:8px;list-style:none}.item-list li{padding:9px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #e8eef6;color:#435671;font-size:9px}.item-list li:last-child{border-bottom:0}.item-list strong,.item-list small{display:block}.item-list strong{color:var(--ink);font-size:10px}.item-list small{margin-top:3px;color:var(--muted)}.localized-fields{display:grid;gap:5px;color:#576983;font-size:8.5px}
@media(max-width:1180px){.selection-bar{align-items:flex-start;flex-direction:column}.selection-actions{justify-content:flex-start}.table-wrap table{min-width:1160px}}@media(max-width:620px){.selection-bar{top:76px}.form-dialog,.detail-dialog{padding:24px 18px}.form-fields,.detail-grid{grid-template-columns:1fr}.form-field.is-wide,.check-field,.detail-grid article.is-wide{grid-column:1}.detail-heading{flex-direction:column}.dialog-actions{flex-wrap:wrap}.dialog-actions>*{flex:1}}

/* Orders workspace v3 */
.order-file-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.compact-button{min-height:40px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.cost-shortcut-button{color:#9a6300;border-color:#f0ddb4;background:#fffaf0}.cost-shortcut-button:hover{border-color:#e3c986;background:#fff5dc}.cost-shortcut-button.has-missing-cost{color:#8b5a00;border-color:#e9cf98;background:#fff7e5}.cost-action-button{min-width:132px}
.correction-tools-button{color:#6d4cc7;border-color:#ddd4fa;background:#faf8ff}.correction-tools-button:hover{border-color:#c8baf5;background:#f5f1ff}.correction-center-button{color:#8b5a00;border-color:#f0ddb4;background:#fffaf0}.correction-center-button:hover{border-color:#e2c986;background:#fff5dc}
.correction-tools-panel{display:grid;grid-template-columns:1fr 1fr;gap:12px}.correction-tool-card{padding:16px;border:1px solid #dfe7f2;border-radius:13px;background:#fbfcff}.correction-tool-card strong{display:block;color:#203653;font-size:11px}.correction-tool-card p{margin:6px 0 12px;color:#76879e;font-size:9px;line-height:1.5}.correction-tool-card button{min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:9px;color:var(--primary-dark);background:#fff;font-size:9px;font-weight:850;cursor:pointer}.correction-tool-card button:hover{border-color:var(--primary);background:#f3f7ff}
.correction-center-list{max-height:min(520px,56vh);display:grid;gap:10px;overflow:auto;padding-right:3px}.correction-card{padding:14px;border:1px solid #dfe6f0;border-radius:13px;background:#fff}.correction-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.correction-card-head strong{color:#203653;font-size:11px}.correction-card-head span{display:block;margin-top:4px;color:#7c8ca2;font-size:8px}.correction-status{padding:4px 7px;border-radius:999px;font-size:7.5px;font-weight:850;white-space:nowrap}.correction-status.is-pending{color:#8b5a00;background:#fff1cf}.correction-status.is-partial{color:#9f4b00;background:#ffe8d6}.correction-status.is-completed{color:#087357;background:#e7f7f1}.correction-status.is-rejected{color:#a33a46;background:#fde8eb}.correction-card-summary{margin-top:10px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.correction-card-summary div{padding:9px;border-radius:9px;background:#f7f9fc}.correction-card-summary small{display:block;color:#8796aa;font-size:7px}.correction-card-summary b{display:block;margin-top:4px;color:#2a405f;font-size:9px}.correction-card-orders{margin-top:10px;color:#53677f;font-size:8.5px;line-height:1.55}.correction-card-error{margin-top:8px;padding:8px 9px;border-radius:8px;color:#a33a46;background:#fff0f2;font-size:8px;line-height:1.45}.correction-card-actions{margin-top:12px;display:flex;justify-content:flex-end;gap:8px}.correction-card-actions button{min-height:34px;padding:0 11px;border-radius:9px;font-size:8.5px;font-weight:850;cursor:pointer}.correction-apply{border:0;color:#fff;background:var(--primary)}.correction-reject{border:1px solid #e6b9c0;color:#a33a46;background:#fff}
@media(max-width:720px){.correction-tools-panel{grid-template-columns:1fr}.correction-card-summary{grid-template-columns:1fr}}
.merge-inbox-button{border-color:#cbd9ee;color:var(--primary);background:#f8faff}.merge-inbox-button:hover:not(:disabled){border-color:#abc1e6;background:#f1f6ff}.merge-inbox-button:disabled{opacity:.52;cursor:default}.merge-inbox-button.has-suggestions{border-color:#b9ccef;color:#244fae;background:#f3f7ff}.merge-inbox-count{min-width:18px;height:18px;padding:0 5px;display:inline-grid;place-items:center;border-radius:999px;color:#fff;background:var(--primary);font-size:7.5px;font-weight:900;line-height:1}
.form-dialog.is-wide{width:min(900px,100%)}.form-dialog.is-wide .form-fields{grid-template-columns:1fr}
.merge-inbox-toolbar{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #dce5f2;border-radius:11px;background:#f8faff}.merge-inbox-toolbar label{display:flex;align-items:center;gap:8px;color:#344a68;font-size:9px;font-weight:800;cursor:pointer}.merge-inbox-toolbar input{width:15px;height:15px;accent-color:var(--primary)}.merge-inbox-toolbar strong{color:#3159b6;font-size:9px}
.merge-inbox-list{max-height:min(480px,52vh);display:grid;gap:8px;overflow:auto;padding-right:3px}.merge-inbox-card{padding:11px 12px;display:grid;grid-template-columns:20px minmax(180px,1.1fr) minmax(210px,1.25fr) minmax(115px,.65fr);gap:12px;align-items:center;border:1px solid #dfe7f2;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.merge-inbox-card:hover{border-color:#c7d7ee;background:#fbfdff;box-shadow:0 4px 12px rgba(35,72,118,.05)}.merge-inbox-card.is-disabled{opacity:.62;cursor:not-allowed;background:#fafbfc}.merge-inbox-check{width:16px;height:16px;accent-color:var(--primary)}.merge-inbox-selector{display:none}.merge-inbox-customer,.merge-inbox-orders,.merge-inbox-meta{min-width:0}.merge-inbox-customer strong,.merge-inbox-meta strong{display:block;color:#203552;font-size:10px}.merge-inbox-customer span{display:block;margin-top:4px;overflow:hidden;color:#74859d;font-size:8px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.merge-inbox-orders>div{display:flex;flex-wrap:wrap;gap:5px}.merge-inbox-orders>div span{padding:4px 6px;border-radius:7px;color:#405b82;background:#eef3fa;font-size:8px;font-weight:850}.merge-inbox-orders small{display:block;margin-top:6px;overflow:hidden;color:#71839d;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.merge-inbox-meta{text-align:right}.merge-inbox-meta>span{display:inline-block;margin-top:5px;padding:4px 6px;border-radius:999px;font-size:7.5px;font-weight:850}.merge-inbox-meta .is-ready{color:#087357;background:#e7f7f1}.merge-inbox-meta .is-warning{color:#9a6300;background:#fff3d8}
.filter-bar{padding:14px 18px;display:grid;grid-template-columns:minmax(190px,1.45fr) repeat(3,minmax(130px,.75fr)) minmax(190px,1.05fr) auto;gap:9px;align-items:end;border-bottom:1px solid #e8eef6;background:#f9fbfe}.filter-bar .search-field{min-width:0;width:100%;height:42px;background:#fff}.filter-bar select{height:42px;border:1px solid var(--line);border-radius:11px;background:#fff}.filter-bar select{width:100%;padding:0 30px 0 11px;color:#435772;font-size:9.5px;font-weight:700}.date-range-filter{position:relative;min-width:0}.date-range-trigger{width:100%;height:42px;padding:5px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:11px;color:#354965;background:#fff;cursor:pointer;text-align:left}.date-range-trigger:hover,.date-range-trigger[aria-expanded="true"]{border-color:#b8c9df;box-shadow:0 0 0 2px rgba(37,99,235,.06)}.date-range-trigger>svg{width:16px;height:16px;flex:0 0 auto;fill:none;stroke:#7487a0;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.date-range-copy{min-width:0;display:grid;gap:1px}.date-range-copy small{color:#8795aa;font-size:7px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.date-range-copy strong{overflow:hidden;color:#354965;font-size:9px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.date-range-popover{position:absolute;z-index:80;top:calc(100% + 8px);right:0;width:min(760px,calc(100vw - 40px));display:grid;grid-template-columns:150px minmax(0,1fr);overflow:hidden;border:1px solid #d8dee8;border-radius:14px;background:#fff;box-shadow:0 18px 48px rgba(31,62,104,.18)}.date-range-popover[hidden]{display:none}.date-range-popover.opens-up{top:auto;bottom:calc(100% + 8px)}.date-range-presets{padding:10px;display:grid;align-content:start;gap:3px;border-right:1px solid #e4e8ee;background:#fff}.date-range-presets button{padding:11px 12px;border:0;border-radius:10px;color:#44556d;background:transparent;text-align:left;font-size:10px;font-weight:750;cursor:pointer}.date-range-presets button:hover,.date-range-presets button.is-active{color:#182335;background:#edf0f4}.date-range-custom{min-width:0;display:grid;grid-template-rows:auto 1fr auto;background:#fff}.date-range-inputs{padding:14px 14px 10px;display:grid;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr) 34px;align-items:center;gap:8px;border-bottom:1px solid #edf0f4}.date-range-inputs input{width:100%;height:40px;padding:0 13px;border:1px solid #d6dbe3;border-radius:11px;color:#202b3a;background:#fff;font-size:10px;font-weight:600;box-shadow:0 1px 2px rgba(16,24,40,.03)}.date-range-inputs>b{color:#707e91;text-align:center;font-size:15px;font-weight:500}.date-range-clock{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#f1f2f4}.date-range-clock svg{width:17px;height:17px;fill:none;stroke:#1f2937;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.date-calendar-wrap{position:relative;padding:6px 16px 18px;display:grid;grid-template-columns:1fr 1fr;gap:22px;min-height:300px}.date-calendar-month{min-width:0}.date-calendar-title{height:38px;display:flex;align-items:center;justify-content:center;color:#161c26;font-size:12px;font-weight:800;text-transform:capitalize}.date-calendar-weekdays,.date-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.date-calendar-weekdays{margin-bottom:4px}.date-calendar-weekdays span{height:28px;display:grid;place-items:center;color:#667085;font-size:9px;font-weight:600}.date-calendar-grid{row-gap:2px}.date-calendar-blank{height:34px}.date-calendar-day{position:relative;height:34px;padding:0;border:0;color:#172033;background:transparent;font-size:10px;font-weight:650;cursor:pointer}.date-calendar-day>span{position:relative;z-index:2;width:31px;height:31px;margin:auto;display:grid;place-items:center;border-radius:9px}.date-calendar-day:hover:not(:disabled)>span{background:#eef1f5}.date-calendar-day.is-in-range{background:#f1f1f1}.date-calendar-day.is-start,.date-calendar-day.is-end{background:#f1f1f1}.date-calendar-day.is-start>span,.date-calendar-day.is-end>span{color:#fff;background:#161616;font-weight:850}.date-calendar-day.is-start{border-radius:9px 0 0 9px}.date-calendar-day.is-end{border-radius:0 9px 9px 0}.date-calendar-day.is-start.is-end{border-radius:9px}.date-calendar-day.is-disabled{color:#b7bcc4;background:transparent;cursor:default}.date-calendar-day.is-disabled>span{background:transparent}.date-calendar-nav{position:absolute;z-index:3;top:10px;width:30px;height:30px;border:0;border-radius:8px;color:#4f5d70;background:#fff;font-size:23px;line-height:1;cursor:pointer}.date-calendar-nav:hover{background:#f2f4f7}.date-calendar-nav.is-prev{left:12px}.date-calendar-nav.is-next{right:12px}.date-range-actions{padding:12px 14px;display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #e8ebf0}.date-range-cancel,.date-range-apply{min-width:76px;height:36px;padding:0 14px;border-radius:18px;font-size:9px;font-weight:800;cursor:pointer}.date-range-cancel{border:0;color:#333b48;background:#ededed}.date-range-apply{border:0;color:#fff;background:#4664e9}.date-range-apply:disabled{color:#a8adb5;background:#e5e7eb;cursor:not-allowed}.reset-filter{height:42px;padding:0 12px;border:1px solid var(--line);border-radius:11px;color:#4a5e79;background:#fff;font-size:9px;font-weight:800;cursor:pointer}.reset-filter:hover{border-color:var(--primary);color:var(--primary)}
.shipping-copy{max-width:270px;line-height:1.5}.quantity-cell{min-width:88px;text-align:center}.quantity-cell strong{display:block;color:var(--ink);font-size:13px}.quantity-cell small{display:block;margin-top:6px;color:var(--muted);font-size:8px}.table-product{min-width:260px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;padding:6px 0}.table-product+.table-product{border-top:1px dashed #e2e9f3}.product-thumb,.detail-product-thumb{display:grid;place-items:center;flex:0 0 auto;border:1px solid #dce7f5;border-radius:9px;color:var(--primary);background:linear-gradient(135deg,#edf3ff,#f9fbff);font-weight:850}.product-thumb{width:36px;height:36px}.table-product strong,.table-product small{display:block}.table-product strong{overflow:hidden;color:#213451;font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}.table-product small{margin-top:3px;color:#7b8ba2;font-size:8px}.table-product b{color:#51657f;font-size:8px}.more-items{display:block;margin-top:5px;color:var(--primary)!important;font-weight:800}.progress-cell{min-width:170px}.detail-cell{min-width:110px}.row-button{white-space:nowrap}
.detail-dialog{width:min(980px,100%);padding:0;overflow:hidden}.detail-heading{padding:24px 28px 20px;border-bottom:1px solid #e8eef6}.detail-content{max-height:calc(100vh - 230px);margin:0;padding:22px 28px;overflow:auto}.detail-dialog>.dialog-actions{margin:0;padding:16px 28px;border-top:1px solid #e8eef6;background:#fbfcfe}.order-detail-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr);gap:18px}.order-detail-layout section>h3{margin:0 0 12px;color:#31445f;font-size:10px;text-transform:uppercase;letter-spacing:.055em}.detail-products,.order-detail-layout>section:last-child{min-width:0}.item-list{padding:0 16px;border:1px solid var(--line);border-radius:14px;background:#fff}.item-list li{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center}.detail-product-thumb{width:42px;height:42px}.order-totals{margin-top:12px;padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:#fbfcff}.order-totals p{margin:0;padding:8px 0;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #e8eef6;color:#74849a;font-size:9px}.order-totals p:last-child{border-bottom:0}.order-totals strong{max-width:64%;overflow-wrap:anywhere;color:#263a57;text-align:right}.address-card{padding:10px 16px;border:1px solid var(--line);border-radius:14px;background:#f7f9fd}.address-row{padding:8px 0;display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px;border-bottom:1px solid #e4eaf3;font-size:9px}.address-row:last-child{border-bottom:0}.address-row span{color:#8897ab;font-weight:700}.address-row strong{color:#2d405d;overflow-wrap:anywhere}.detail-checks{margin-top:12px;padding:12px 14px;border:1px solid #dce8f5;border-radius:12px;background:#fff}.detail-checks p{margin:5px 0;color:#60718a;font-size:9px}.import-summary{grid-column:1/-1;padding:18px;display:grid;gap:7px;border:1px solid #cfe9df;border-radius:13px;background:#f5fbf8}.import-summary strong{color:#126c52;font-size:14px}.import-summary span{color:#285f50;font-size:10px;font-weight:750}.import-summary small{color:#69837b;font-size:9px;line-height:1.5}
@media(max-width:1380px){.filter-bar{grid-template-columns:minmax(200px,1.4fr) repeat(3,minmax(125px,.7fr));}.date-range-filter{grid-row:2;grid-column:1/3}.reset-filter{grid-row:2}.table-wrap table{min-width:1250px}}
@media(max-width:900px){.order-file-actions{width:100%;justify-content:flex-start}.filter-bar{grid-template-columns:1fr 1fr}.filter-bar .search-field{grid-column:1/-1}.date-range-filter,.reset-filter{grid-row:auto;grid-column:auto}.order-detail-layout{grid-template-columns:1fr}.detail-content{padding:18px}.detail-heading,.detail-dialog>.dialog-actions{padding-right:20px;padding-left:20px}}
@media(max-width:620px){.filter-bar{grid-template-columns:1fr}.filter-bar .search-field{grid-column:1}.order-file-actions>*{flex:1}.compact-button{font-size:8px}.date-range-filter,.reset-filter{width:100%}.date-range-popover{left:0;right:auto;width:min(640px,calc(100vw - 36px));grid-template-columns:1fr}.date-range-presets{grid-template-columns:1fr 1fr;border-right:0;border-bottom:1px solid #e6edf6}.date-calendar-wrap{grid-template-columns:1fr;gap:8px}.date-calendar-month:last-of-type{display:none}.date-range-inputs{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr)}.date-range-clock{display:none}}

/* Orders workspace v4 — operational order ledger */
main{width:min(1700px,100%)}
.table-wrap table{min-width:1690px;table-layout:fixed}
.table-wrap th,.table-wrap td{padding-right:14px;padding-left:14px}
.table-wrap th:nth-child(2){width:135px}.table-wrap th:nth-child(3){width:150px}.table-wrap th:nth-child(4){width:340px}.table-wrap th:nth-child(5){width:365px}.table-wrap th:nth-child(6){width:76px}.table-wrap th:nth-child(7){width:110px}.table-wrap th:nth-child(8){width:185px}.table-wrap th:nth-child(9){width:250px}
.table-wrap tbody tr{transition:background .16s ease}.table-wrap tbody tr:hover td{background:#fbfdff}.table-wrap tbody td{padding-top:20px;padding-bottom:20px;vertical-align:middle}
.order-cell strong,.store-cell strong{display:block;color:var(--ink);font-size:11px}.order-cell>small,.store-cell small{display:block;margin-top:5px;color:#8290a4;font-size:8px;line-height:1.4}.order-cell .group-pill{margin:8px 0 0;padding:4px 7px;white-space:normal}.store-cell span{display:block;margin-top:7px;color:#718199;font-size:8.5px}.store-cell strong{color:#263b59}.store-cell small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-cell{vertical-align:top!important}.customer-fields{display:grid}.customer-field{position:relative;min-height:29px;padding:7px 32px 7px 0;display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;gap:9px;border-bottom:1px solid #e7edf5}.customer-field:last-child{border-bottom:0}.customer-field span{color:#8492a6;font-size:8.5px;font-weight:700}.customer-field strong{min-width:0;overflow-wrap:anywhere;color:#263a56;font-size:9.5px;line-height:1.35}.copy-address{position:absolute;right:0;top:50%;width:28px;height:28px;transform:translateY(-50%);border:1px solid var(--line);border-radius:8px;color:#6680a3;background:#fff;cursor:pointer}.copy-address:hover{border-color:var(--primary);color:var(--primary)}
.items-cell{vertical-align:top!important}.product-summary{margin-bottom:7px;color:#4d6485;font-size:8.5px;font-weight:800}.table-product{min-width:0;grid-template-columns:44px minmax(0,1fr) auto;padding:7px 0}.product-thumb{width:42px;height:42px;overflow:hidden;border-radius:10px}.product-thumb.has-image,.detail-product-thumb.has-image{background:#fff}.product-thumb img,.detail-product-thumb img{width:100%;height:100%;display:block;object-fit:cover}.table-product strong{font-size:9.5px;line-height:1.35;white-space:normal}.table-product b{padding:4px 7px;border-radius:8px;color:#4d63c8;background:#eef1ff;font-size:8.5px}.more-items{margin-top:7px;padding:6px 9px;border:0;border-radius:8px;color:var(--primary);background:#eef3ff;font-size:8.5px;font-weight:800;cursor:pointer}
.quantity-cell strong{font-size:12px}.cost-cell strong,.cost-cell small{display:block}.cost-cell strong{color:#263a56;font-size:11px}.cost-cell small{margin-top:6px;color:#8a99ad;font-size:8px}.cost-cell .cost-missing-label{width:max-content;padding:4px 6px;border-radius:999px;color:#9a6300;background:#fff1cf;font-weight:850}.cost-cell .cost-source-label{color:#087357;font-weight:800}.row-button.is-cost{border-color:#ecd49d;color:#8b5a00;background:#fff9ec}.row-button.is-cost:hover{border-color:#dcb969;color:#7a4f00;background:#fff3d6}.cost-help{grid-column:1/-1;padding:10px 12px;border:1px solid #e2e9f3;border-radius:10px;color:#65778f;background:#f8faff;font-size:9px;line-height:1.5}.progress-cell{vertical-align:middle!important}.progress-cell .status-pill{margin-top:0}.status-pill.is-on-hold{color:#a85d00;background:var(--amber-soft)}.progress-cell small{overflow-wrap:anywhere}.detail-cell{min-width:0;text-align:left}.row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.row-actions .row-button{margin:0;white-space:nowrap}.row-button.is-tracking{border-color:#c6d7f1;color:var(--primary-dark);background:#f4f8ff}.row-button.is-tracking:hover{border-color:var(--primary);color:var(--primary-dark);background:#eaf1ff}.row-button.is-primary{border-color:var(--primary);color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary-dark));box-shadow:0 6px 16px rgba(37,99,235,.2)}
.shipment-row td{background:#fbfcff;border-top:1px solid #dce6f5;border-bottom:1px solid #dce6f5}.shipment-row:hover td{background:#f7faff!important}.shipment-row .order-cell{border-left:3px solid var(--primary)}.shipment-badge{width:max-content;max-width:100%;margin-bottom:8px;padding:5px 8px;display:inline-flex;align-items:center;gap:6px;border-radius:999px;color:#3159c9;background:#eaf0ff;font-size:8px;font-weight:900;letter-spacing:.045em}.shipment-badge .ui-icon{width:13px;height:13px}.shipment-row .order-cell>strong{font-size:12px}.more-items.is-static{display:block;cursor:default}.selection-actions #group-shipment-button{box-shadow:0 6px 14px rgba(37,99,235,.16)}
.group-pill.group-suggestion{width:max-content;max-width:118px;min-height:26px;margin-top:8px;padding:5px 7px;display:inline-flex;align-items:center;gap:5px;border:1px solid var(--primary);border-radius:8px;color:#fff;background:var(--primary);font-size:8px;font-weight:800;letter-spacing:0;line-height:1;white-space:nowrap;cursor:pointer;text-align:left;box-shadow:none;transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease}.group-pill.group-suggestion .group-suggestion-icon{width:12px;height:12px;flex:0 0 auto;stroke-width:1.8}.group-pill.group-suggestion span{display:inline-block;margin:0;color:inherit;font-size:inherit;line-height:1;white-space:nowrap}.group-pill.group-suggestion .group-suggestion-arrow{margin-left:auto;color:#fff;font-size:9px;transition:transform .16s ease}.group-pill.group-suggestion:hover{border-color:var(--primary-dark);color:#fff;background:var(--primary-dark);transform:translateY(-1px)}.group-pill.group-suggestion:hover .group-suggestion-arrow{transform:translateX(2px)}.group-pill.group-suggestion:active{transform:translateY(0)}.group-pill.group-suggestion:focus-visible{outline:none;border-color:var(--primary-dark);box-shadow:0 0 0 3px rgba(37,99,235,.14)}
.group-suggestion-summary{margin-bottom:12px;padding:12px 14px;display:grid;gap:4px;border:1px solid #dce6f5;border-radius:12px;background:#f8faff}.group-suggestion-summary strong{color:#1e3150;font-size:12px}.group-suggestion-summary span{color:#4d627f;font-size:9px;line-height:1.45}.group-suggestion-summary small{color:#2f5bd3;font-size:8.5px;font-weight:800}
.group-suggestion-warning{margin-bottom:10px;padding:10px 12px;display:flex;align-items:flex-start;gap:8px;border:1px solid #f1d39a;border-radius:10px;color:#8b5b00;background:#fff8e8;font-size:9px;line-height:1.45}.group-suggestion-warning .ui-icon{width:15px;height:15px;flex:0 0 auto}
.group-suggestion-list{max-height:330px;display:grid;gap:8px;overflow:auto}.group-suggestion-card{padding:11px 12px;display:grid;grid-template-columns:minmax(120px,.75fr) minmax(190px,1.35fr) minmax(110px,.65fr);gap:12px;align-items:center;border:1px solid #e0e7f1;border-radius:11px;background:#fff}.group-suggestion-card>div{min-width:0}.group-suggestion-card strong,.group-suggestion-card span,.group-suggestion-card small,.group-suggestion-card b{display:block}.group-suggestion-card strong{color:#1f3555;font-size:10px}.group-suggestion-card span{margin-top:4px;color:#8190a5;font-size:8px}.group-suggestion-products{color:#344a69;font-size:8.5px;line-height:1.55}.group-suggestion-products small{margin-top:3px;color:#6f82a0}.group-suggestion-meta{text-align:right}.group-suggestion-meta b{color:#213855;font-size:10px}.group-suggestion-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media(max-width:1380px){.table-wrap table{min-width:1620px}}
@media(max-width:720px){.group-suggestion-card{grid-template-columns:1fr}.group-suggestion-meta{text-align:left}.merge-inbox-card{grid-template-columns:20px 1fr}.merge-inbox-orders,.merge-inbox-meta{grid-column:2}.merge-inbox-meta{text-align:left}.merge-inbox-toolbar{align-items:flex-start;flex-direction:column}}

/* Fulfillment controls v5 — consistent icons and stronger action hierarchy */
.ui-icon,.nav-icon svg,.sync-button svg,.order-file-actions svg,.search-field svg,.reset-filter svg,.empty-state svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-icon svg{width:15px;height:15px}.sync-button>span svg{width:22px;height:22px}.order-file-actions svg,.reset-filter svg{width:15px;height:15px}.search-field svg{width:16px;height:16px}.empty-state>span svg{width:25px;height:25px}
.compact-button,.reset-filter,.row-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}
.compact-button{min-height:42px;padding:0 16px;border-radius:11px}.compact-button:hover,.reset-filter:hover,.row-button:hover{transform:translateY(-1px)}
.primary-button.compact-button{box-shadow:0 8px 20px rgba(37,99,235,.2)}.secondary-button.compact-button:hover{border-color:#9db6d8;background:#f7faff}
.reset-filter{gap:7px}.reset-filter:hover{box-shadow:0 6px 14px rgba(32,71,118,.08)}
.task-code{width:max-content;padding:4px 7px;border:1px solid #dbe5f5;border-radius:7px;color:#46617f!important;background:#f7f9fd;font-weight:800;letter-spacing:.035em;cursor:help}
.product-summary{display:flex;align-items:center;gap:6px}.product-summary .ui-icon{width:14px;height:14px;color:var(--primary)}
.product-thumb.is-placeholder,.detail-product-thumb.is-placeholder{color:#7793bc;background:linear-gradient(145deg,#f2f6fc,#e9f0fb)}.product-thumb.is-placeholder .ui-icon{width:20px;height:20px}.detail-product-thumb.is-placeholder .ui-icon{width:22px;height:22px}
.more-items{display:inline-flex;align-items:center;gap:5px}.more-items .ui-icon{width:12px;height:12px;transform:rotate(90deg)}
.copy-address{display:grid;place-items:center}.copy-address .ui-icon{width:14px;height:14px}
.row-actions{gap:8px}.row-button{min-height:36px;padding:0 11px;border-radius:10px;color:#3d5778;background:#fff}.row-button .ui-icon{width:14px;height:14px}.row-button .trailing-icon{width:12px;height:12px;margin-left:-3px}.row-button.is-detail{border-color:#cbd9eb;color:#2456a8}.row-button.is-detail:hover{border-color:#8cace0;background:#f3f7ff}.row-button.is-warning{border-color:#efd8b3;color:#9a5d08;background:#fffaf0}.row-button.is-warning:hover{border-color:#d9b878;background:#fff6e3}.row-button.is-primary:hover{box-shadow:0 9px 22px rgba(37,99,235,.28)}

/* Icon system v6 — remove decorative empty squares and use semantic SVGs */
.kpi-card::after{display:none}.kpi-icon{position:absolute;top:20px;right:18px;width:55px;height:55px;display:grid!important;place-items:center;border-radius:16px;color:#356ed2!important;background:#eaf1ff}.kpi-card.is-green .kpi-icon{color:#0d8965!important;background:var(--green-soft)}.kpi-card.is-amber .kpi-icon{color:#a86609!important;background:var(--amber-soft)}.kpi-card.is-purple .kpi-icon{color:#7655dc!important;background:var(--purple-soft)}.kpi-icon svg{width:25px;height:25px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.menu-button svg,.dialog-icon svg,.notice-icon svg{display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.menu-button svg{width:20px;height:20px}.dialog-icon svg,.notice-icon svg{width:24px;height:24px}.dialog-icon .ui-icon,.notice-icon .ui-icon{width:24px;height:24px}

/* Order row composition v7 — real flags and vertically centered product groups */
.items-cell{vertical-align:middle!important}.product-block{min-height:100%;display:flex;flex-direction:column;justify-content:center}.product-summary{margin-bottom:9px}.table-product{min-height:56px;padding:7px 0;border-bottom:1px dashed #e4ebf5}.table-product:last-of-type{border-bottom:0}.product-thumb{width:46px;height:46px;border:1px solid #dce7f4;box-shadow:0 3px 10px rgba(27,58,104,.06)}.product-thumb.has-image img{object-fit:cover}.country-value{display:inline-flex;align-items:center;gap:7px;line-height:1.2}.country-value>span{display:inline-flex;align-items:baseline;gap:3px}.country-value small{color:#7e8da2;font-size:8px;font-weight:500}.country-flag{width:24px;height:18px;display:block;flex:0 0 auto;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(18,33,59,.14)}
.detail-item-quantity{min-width:38px;padding:6px 8px;border-radius:8px;color:#3854b8;background:#eef2ff;text-align:center;font-weight:850}
@media(max-width:620px){.compact-button{padding:0 12px}.compact-button span{white-space:normal}.row-button{min-height:38px}}


/* Viewport-following horizontal table scrollbar */
.floating-h-scroll{position:fixed;z-index:27;height:18px;overflow-x:auto;overflow-y:hidden;border:1px solid rgba(205,216,230,.96);border-radius:999px;background:rgba(255,255,255,.97);box-shadow:0 7px 22px rgba(29,55,89,.16);backdrop-filter:blur(8px);overscroll-behavior-x:contain;scrollbar-width:auto;scrollbar-color:#8793a3 #e8edf3}
.floating-h-scroll[hidden]{display:none}
.floating-h-scroll-inner{height:1px;pointer-events:none}
.floating-h-scroll::-webkit-scrollbar{height:12px}
.floating-h-scroll::-webkit-scrollbar-track{margin:2px 5px;border-radius:999px;background:#e8edf3}
.floating-h-scroll::-webkit-scrollbar-thumb{min-width:48px;border:2px solid #e8edf3;border-radius:999px;background:#8793a3}
.floating-h-scroll::-webkit-scrollbar-thumb:hover{background:#687687}
body.has-modal .floating-h-scroll{display:none!important}
@media(max-width:620px){.floating-h-scroll{height:17px}}


