/* Shared screen design. Printed documents use their independent templates. */
:root{--ink:#23384f;--muted:#60758a;--line:#dce5ee;--accent:#087f72;--surface:#fff;--stripe:#f0f5fa;background:#edf2f7;color:var(--ink);font-family:Inter,"Noto Sans JP","Microsoft YaHei",system-ui,sans-serif;font-size:15px}
main{padding:26px 28px 40px;line-height:1.55}header{height:64px;padding:0 28px}h1{font-size:28px;letter-spacing:-.5px}h2{font-size:19px}h3{font-size:16px}p{margin:10px 0;line-height:1.65}.muted,.member-email{color:var(--muted)}.page-head{margin-bottom:22px;align-items:flex-start}.page-head>div{min-width:0}.page-head .muted{max-width:900px}.eyebrow{margin-bottom:5px;font-size:11px}.panel,.metric,.store-card{border-color:var(--line);border-radius:12px;box-shadow:0 2px 6px #17334a05}.panel{padding:20px}.panel+.panel{margin-top:18px}.panel-heading{margin-bottom:16px}.metric-value{margin:10px 0 5px;font-variant-numeric:tabular-nums}.store-card .card-actions{flex-wrap:wrap;align-items:center}
button{font:inherit;font-size:13px;font-weight:600;line-height:1.4;border:1px solid #c6d5e1;border-radius:7px;background:#fff;color:#30506a;padding:8px 12px;min-height:36px;transition:background .12s,border-color .12s;vertical-align:middle}button:hover:not(:disabled){background:#edf5f6;border-color:#75ada8}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #5dada6;outline-offset:2px}button.primary,.primary{background:var(--accent);border-color:var(--accent);color:#fff;padding:9px 16px}button.primary:hover:not(:disabled){background:#08675e;border-color:#08675e}.text-button{padding:7px 10px;border:1px solid #d3e3e2;background:#f8fcfb;border-radius:7px;color:#086f64}.text-button:hover{text-decoration:none}.link-button{min-height:0;padding:3px 0;border:0;background:transparent;color:#076f91;text-align:left}.link-button:hover:not(:disabled){background:transparent;text-decoration:underline;border:0}.icon-button{border:0;background:transparent;min-height:32px;padding:0 6px;font-size:25px}button.danger{border-color:#efc6cb;background:#fff5f5;color:#aa2939}button:disabled{opacity:.5;cursor:not-allowed}
input,select,textarea{font:inherit;font-size:14px;border:1px solid #c7d6e3;border-radius:7px;padding:9px 11px;color:var(--ink);background:#fff;min-width:0}textarea{line-height:1.6;resize:vertical}input[readonly]{background:#f1f5f9;color:#536779}input[type=checkbox],input[type=radio]{min-height:0;padding:0;flex-shrink:0}input[type=file]{padding:6px;min-height:39px}input::file-selector-button{font:inherit;font-size:13px;border:0;border-radius:5px;padding:6px 10px;margin-right:10px;background:#e7f1f2;color:#145e61;cursor:pointer}label{gap:6px;font-size:13px;font-weight:500}label:has(>input[type=checkbox]),label:has(>input[type=radio]){display:flex;align-items:center;gap:9px;flex-wrap:wrap}.form-grid{gap:14px}.form-grid>*{min-width:0}.two-fields{gap:14px}fieldset{border:1px solid var(--line);border-radius:9px;padding:16px;min-width:0}legend{font-size:14px;font-weight:650;padding:0 6px}
.toolbar{gap:10px;align-items:flex-end;margin-bottom:16px}.toolbar>label{min-width:150px}.toolbar form{flex-wrap:wrap;min-width:0;gap:10px}.toolbar small{color:var(--muted);line-height:1.5}.product-tools{padding:16px;background:#fff;border:1px solid var(--line);border-radius:10px;gap:14px}.product-tools form{flex:1;flex-wrap:wrap}.product-tools input{min-width:170px}.product-tools form small{flex-basis:100%}.product-tools>span{font-size:12px;color:var(--muted);flex-basis:100%}.batch-toolbar{padding:12px 14px;border:1px solid #bed9d6;border-radius:10px;background:#f4faf9;align-items:center}.batch-toolbar small{flex-basis:100%}.batch-toolbar strong{font-size:13px;margin-right:8px}.batch-toolbar:has(+.workflow-tabs){margin-bottom:16px}
.table-wrap{border-radius:10px;scrollbar-width:thin;scrollbar-color:#b7c8d7 #f0f4f8}table{font-size:13px;line-height:1.55}th,td{padding:12px 14px;border-bottom:1px solid #dae4ed;vertical-align:middle}thead th{background:#e8eff6;color:#425b73;font-size:12px;font-weight:700;border-bottom:2px solid #cbd9e5}tbody>tr:nth-child(odd)>td{background:#fff}tbody>tr:nth-child(even)>td{background:var(--stripe)}tbody>tr:hover>td{background:#e6f2f3}tbody>tr:focus-within>td{background:#e6f2f3}tbody>tr:has(input[type=checkbox]:checked)>td{background:#daf0eb}tbody>tr:has(input[type=checkbox]:checked)>td:first-child{box-shadow:inset 3px 0 var(--accent)}td small{line-height:1.5}td button+button{margin-left:5px}table input,table select{font-size:13px}.panel.table-wrap{padding:0}.panel.table-wrap table{margin:0}.order-sku{margin:4px 0;gap:10px}.order-sku+.order-sku{border-top:1px dashed #ccd9e4;padding-top:8px;margin-top:8px}.order-sku strong{font-variant-numeric:tabular-nums}.member-email{font-size:12px;margin-top:4px}.order-state-cell{min-width:185px;max-width:270px;white-space:normal}.order-state-cell .workflow-reason{max-width:250px}.order-state-cell .workflow-action{display:block;margin-top:8px;font-size:12px;padding:5px 9px;min-height:29px}.order-state-cell .muted{display:block;font-size:11px;margin-top:4px}.important-flag{display:inline-flex;font-size:12px;color:#92390d;background:#fff0d6;border:1px solid #edc994;border-radius:5px;padding:2px 7px;margin-bottom:5px}
.workflow-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.workflow-tabs button{padding:10px 14px;background:#fff;border-color:#d4dfe9;color:#43596c;display:inline-flex;align-items:center;gap:9px}.workflow-tabs button strong{background:#edf2f7;border-radius:5px;padding:1px 6px;font-size:12px}.workflow-tabs button.active{background:#e1f3ee;color:#086a5e;border-color:#7ebcaf;box-shadow:inset 0 -2px #168677}.workflow-tabs button[data-workflow=review] strong{background:#ffead0;color:#97560c}.workflow-tabs button[data-workflow=payment] strong{background:#fff1cf;color:#886410}.workflow-tabs button[data-workflow=shipping_processing] strong{background:#e4eafa;color:#4656a2}.workflow-badge{display:inline-flex;align-items:center;gap:5px;border:1px solid #cedae5;background:#edf2f7;color:#425a70;border-radius:6px;padding:4px 9px;font-size:12px;font-weight:700;white-space:nowrap}.workflow-badge::before{content:'';width:6px;height:6px;background:currentColor;border-radius:50%}.workflow-review{background:#fff0dc;border-color:#edc68f;color:#8c5105}.workflow-payment{background:#fff6da;border-color:#ebd699;color:#785911}.workflow-ready{background:#e6f5ef;border-color:#a9d7c5;color:#17644d}.workflow-shipping_processing{background:#ecedfc;border-color:#c1c6ef;color:#4853a2}.workflow-shipped{background:#e9f2f8;border-color:#bfd2e1;color:#38627d}.workflow-cancelled{background:#f1f2f5;color:#637181}.workflow-reason.attention{color:#8c5105;font-weight:500}
.error:not(:empty){padding:10px 13px;background:#fff1f2;border:1px solid #edbec6;border-left:4px solid #bf4052;border-radius:7px;color:#9e2438;overflow-wrap:anywhere}.attention-note{padding:12px 15px;background:#fff7e7;border:1px solid #e7cc99;border-left:4px solid #c78927;border-radius:8px;color:#805315;font-size:13px;line-height:1.65}.attention-note:empty{display:none}.status-failed{background:#ffe8ec;color:#a3273d;border:1px solid #edbec6}.status-verified{background:#e3f4eb;color:#19634a;border:1px solid #b3d9c5}.badge{font-weight:650}.note{padding:12px 15px;line-height:1.65;border:1px solid #e1e8f0;background:#f4f7fb;color:#576c81}.notice{padding:14px 18px;margin-bottom:20px}.danger{font-weight:600}.notice-symbol{flex-shrink:0}
details:not(.nav-group){margin:12px 0;border:1px solid var(--line);border-radius:8px;background:#f8fafc;padding:11px 14px}details:not(.nav-group)>summary{cursor:pointer;font-size:13px;font-weight:650;color:#386078}details:not(.nav-group)[open]>summary{margin-bottom:10px}.tool-help{margin-top:16px}.tool-help p{font-size:13px}.tools-grid{gap:16px}.tools-grid .panel{display:flex;flex-direction:column;align-items:flex-start}.tools-grid .panel p{flex:1}.tools-grid .panel h2,.tools-grid .panel h3{line-height:1.55}#tool-form .form-grid,#tool-upload .form-grid{align-items:start}#tool-form .primary,#tool-upload .primary{margin-top:14px}#billpay-company{max-width:560px}.carrier-tools h3{margin-bottom:6px}
aside{background:#142d43;padding:24px 16px}.brand{font-size:22px}.brand-tag{font-size:10px}.workspace{line-height:1.5}aside .nav-group-links a{border:1px solid transparent;padding:9px 10px;border-radius:7px}aside nav a.active{background:#1d4a58;border-color:#347567;color:#a0f2dc;box-shadow:inset 3px 0 #65dbb8}aside .nav-group summary{letter-spacing:.3px}header{background:#ffffffed}.order-detail-dialog{box-shadow:0 24px 80px #132c4333}.dialog-head{gap:16px}dialog{padding:22px;border-color:#ccdbe7;box-shadow:0 24px 80px #132c4333}dialog .dialog-head h2{line-height:1.5}dialog label{margin-top:16px}dialog .form-grid label{margin-top:0}.dialog-actions{gap:10px}#toast{z-index:100;padding:12px 18px;box-shadow:0 6px 24px #17334a30}
@media(min-width:1600px){main{padding:30px 32px 44px}}@media(max-width:1100px){main{padding:24px 20px}.page-head{flex-wrap:wrap}.product-tools form{flex-basis:100%}.stores{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){main{padding:20px 14px}header{padding:0 16px}.toolbar>label{flex:1;min-width:140px}.product-tools{padding:12px}.product-tools form>label{flex:1;min-width:140px}.product-tools input{min-width:0;width:100%}.page-head{gap:12px}h1{font-size:24px}.panel{padding:15px}.panel.table-wrap{padding:0}.workflow-tabs{gap:6px}.workflow-tabs button{padding:8px 10px;font-size:12px}.batch-toolbar{padding:10px}.batch-toolbar button{font-size:12px}.stores{grid-template-columns:1fr}.toolbar form{width:100%}dialog{padding:18px}.tools-grid{grid-template-columns:1fr}.table-wrap{max-width:100%}}@media(prefers-reduced-motion:reduce){button{transition:none}}
/* Align search controls and keep page actions together on wide screens. */
.page-head{justify-content:flex-start}.page-head>div:first-child{flex:1}.page-head>button{flex-shrink:0}.product-tools{align-items:flex-start}#order-search{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,1fr) minmax(180px,1fr) auto auto;align-items:end;flex:1}#order-search small{grid-column:1/-1}#order-search input{width:100%}table .platform-logo{padding:3px 6px}table .platform-logo img{width:76px;height:24px;object-fit:contain}.important-flag{line-height:1.5}@media(max-width:1250px){#order-search{flex-basis:100%;grid-template-columns:repeat(3,minmax(150px,1fr)) auto auto}}@media(max-width:850px){#order-search{grid-template-columns:repeat(2,minmax(0,1fr))}#order-search label:first-child{grid-column:1/-1}#order-search small{grid-column:1/-1}.page-head>div:first-child{flex-basis:100%}.product-tools>label{flex:1}}@media(max-width:450px){#order-search{grid-template-columns:1fr}#order-search>*{grid-column:1}}
main .panel>form.form-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));align-items:end}main .panel>form.form-grid>p,main .panel>form.form-grid>.note,main .panel>form.form-grid>.error,main .panel>form.form-grid>fieldset{grid-column:1/-1}main .panel>form.form-grid>button{justify-self:start}#settlement-import{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));align-items:end}#settlement-import .error{grid-column:1/-1}#settlement-import>button{justify-self:start}main .panel>label:has(>select:only-child){max-width:600px}@media(max-width:600px){main .panel>form.form-grid,#settlement-import{grid-template-columns:1fr}}
.tools-grid>.panel,.tools-grid>.panel+.panel,.columns>.panel,.columns>.panel+.panel,.plan>.panel,.plan>.panel+.panel{margin-top:0}.tools-grid{grid-template-columns:repeat(auto-fit,minmax(285px,1fr))}#billpay-settings,#billpay-read{margin-top:12px}@media(max-width:700px){.tools-grid{grid-template-columns:1fr}}

.hr-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hr-amount-row{display:grid;grid-template-columns:minmax(110px,1fr) 120px 85px 40px;gap:8px;align-items:center;margin-bottom:8px}.hr-amount-row input{min-width:0}.hr-amount-row label{font-size:12px}.hr-amount-row label input{width:auto}.hr-amount-row button{padding:8px}@media(max-width:600px){.hr-three{grid-template-columns:1fr 1fr}.hr-amount-row{grid-template-columns:minmax(80px,1fr) 90px 65px 32px}}

/* Today’s Amazon dispatch takes precedence over zebra, hover and selection fills. */
.table-wrap table tbody tr.order-ship-today,.table-wrap table tbody tr.order-ship-today:nth-child(odd),.table-wrap table tbody tr.order-ship-today:nth-child(even),.table-wrap table tbody tr.order-ship-today:hover,.table-wrap table tbody tr.order-ship-today:has(input:checked){background:#ffe0e3;color:#7e1727}.table-wrap table tbody tr.order-ship-today>td{background:transparent}.order-ship-today>td:first-child{box-shadow:inset 4px 0 #c93349}
table.product-table tbody tr.amazon-sale-stopped > td {background:#fff0f0;color:#842332;}
table.product-table tbody tr.amazon-sale-stopped:hover > td {background:#ffe1e5;}
.listing-stop-reason {min-width:220px;max-width:420px;white-space:normal;overflow-wrap:anywhere;}

button.metric-filter{display:block;text-align:left;color:inherit;font:inherit;cursor:pointer;width:100%;transition:border-color .15s,background .15s}button.metric-filter:hover{border-color:#0b8178;background:#f2faf8}button.metric-filter[aria-pressed="true"]{border-color:#0b8178;box-shadow:inset 0 0 0 1px #0b8178;background:#eff9f7}button.metric-filter:focus-visible{outline:3px solid #0b8178;outline-offset:3px}.catalog-search{flex-wrap:wrap;align-items:flex-end}.catalog-search label{flex:1;min-width:220px;max-width:540px}

.receipt-mail-settings{max-width:100%;}.receipt-mail-settings textarea{width:100%;font-family:inherit;line-height:1.6}.receipt-mail-fields{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0}.receipt-mail-fields button{font-size:13px}.receipt-mail-fields small{display:block;color:var(--muted)}.receipt-mail-preview-text{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f7fa;padding:16px;border-radius:8px}.receipt-mail-preview-frame{width:100%;height:460px;border:1px solid var(--line)}.receipt-mail-detail label{display:flex;align-items:center;gap:10px}

dialog:has(.receipt-mail-settings){width:min(920px,94vw);max-width:94vw}.receipt-mail-settings label{display:block;margin:10px 0}.receipt-mail-settings .toolbar label{flex:1;min-width:160px}.receipt-mail-settings .toolbar{flex-wrap:wrap}.receipt-mail-settings input[type=checkbox]{width:auto}.receipt-mail-settings form{margin-bottom:24px}
/* Quotation editor: readable SKU/name columns and compact grouped fields. */
dialog:has(#quote-form){width:min(1100px,94vw);max-width:94vw;}
#quote-form fieldset{border:0;padding:0;margin:0;display:grid;gap:14px;}
#quote-form .toolbar{margin:0;align-items:end;}
#quote-form .toolbar>label{flex:1;min-width:160px;}
#quote-form label{margin:0;}
#quote-form .table-wrap{margin:0;}
#quote-form table{min-width:760px;width:100%;table-layout:fixed;}
#quote-form th:nth-child(1){width:26%;}#quote-form th:nth-child(2){width:38%;}
#quote-form th:nth-child(3){width:11%;}#quote-form th:nth-child(4){width:18%;}#quote-form th:nth-child(5){width:7%;}
#quote-form td{padding:10px 8px;}#quote-form td input{width:100%;min-width:0;box-sizing:border-box;}
#quote-form td button{padding:6px 10px;}#quote-form p{margin:4px 0;}

.vendor-po-table{table-layout:fixed;min-width:860px;width:100%}.vendor-po-table th,.vendor-po-table td{white-space:normal;overflow-wrap:anywhere;padding:12px}.vendor-po-table th:nth-child(1){width:14%}.vendor-po-table th:nth-child(2){width:14%}.vendor-po-table th:nth-child(3){width:12%}.vendor-po-table th:nth-child(4){width:23%}.vendor-po-table th:nth-child(5){width:23%}.vendor-po-table th:nth-child(6){width:14%}.vendor-po-table td:last-child button{margin:3px 0;display:block}
.vf-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.vf-fields label{display:grid;gap:6px}.vf-json{font-family:monospace;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;width:100%;box-sizing:border-box}.vf-fields input{width:100%;box-sizing:border-box}@media(max-width:700px){.vf-fields{grid-template-columns:1fr}}
.vf-box{border:1px solid #cbd9e6;border-radius:12px;padding:14px;margin:12px 0;background:#f7fafc}.vf-box h4{margin:0 0 8px}.vf-box input[type=number]{min-width:100px;max-width:180px}
.sales-grid>.panel,.sales-grid>.panel+.panel{margin:0}.sales-grid table{min-width:0;width:100%;table-layout:fixed}.sales-grid th,.sales-grid td{white-space:normal;overflow-wrap:anywhere;padding:12px 9px}.sales-period th:first-child{width:34%}.sales-period th:nth-child(2){width:22%}.sales-period th:nth-child(3){width:15%}.sales-period th:nth-child(4){width:29%}.sales-period .platform-logo{display:block;width:65px;height:24px;margin-bottom:5px}.sales-period .platform-logo img{width:65px;height:24px;object-fit:contain}.sales-ranking th:first-child{width:12%}.sales-ranking th:nth-child(2){width:24%}.sales-ranking th:nth-child(3){width:44%}.sales-ranking th:nth-child(4){width:20%}.sales-ranking-search{display:block!important}.sales-ranking-search input{display:block;width:100%;margin-top:6px}
.sales-share{min-width:85px;margin:4px 0 8px}.sales-share-label{display:flex;justify-content:space-between;gap:6px;font-size:11px;color:#536d7e;margin-bottom:4px}.sales-share progress{display:block;width:100%;height:9px;border:0;border-radius:8px;overflow:hidden;background:#dfe9ed;accent-color:#138779}.sales-share progress::-webkit-progress-bar{background:#dfe9ed;border-radius:8px}.sales-share progress::-webkit-progress-value{background:linear-gradient(90deg,#67c6b4,#138779);border-radius:8px}.sales-share progress::-moz-progress-bar{background:#138779;border-radius:8px}.sales-period th:first-child{width:25%}.sales-period th:nth-child(2){width:18%}.sales-period th:nth-child(3){width:12%}.sales-period th:nth-child(4){width:23%}.sales-period th:nth-child(5){width:22%}.sales-ranking th:first-child{width:10%}.sales-ranking th:nth-child(2){width:20%}.sales-ranking th:nth-child(3){width:33%}.sales-ranking th:nth-child(4){width:13%}.sales-ranking th:nth-child(5){width:24%}@media(max-width:1450px){.sales-grid{grid-template-columns:1fr}}
/* Financial tables need room for full invoice references and both amounts. */
dialog:has(#vendor-profit-create),dialog:has(#vendor-finance-export),dialog:has(#settlement-confirm){width:min(1480px,96vw);max-width:96vw;box-sizing:border-box;}
dialog:has(#vendor-profit-create) #dialog-content,dialog:has(#settlement-confirm) #dialog-content{min-width:0;}
dialog:has(#vendor-finance-export) .table-wrap,dialog:has(#settlement-confirm) .table-wrap{width:100%;max-width:100%;overflow-x:auto;}
dialog:has(#vendor-finance-export) table,dialog:has(#settlement-confirm) table{width:100%;min-width:0;table-layout:fixed;}
dialog:has(#vendor-finance-export) th,dialog:has(#vendor-finance-export) td,dialog:has(#settlement-confirm) th,dialog:has(#settlement-confirm) td{white-space:normal;overflow-wrap:anywhere;min-width:0;}
dialog .vendor-finance-invoices th:nth-child(1){width:28%;}
dialog .vendor-finance-invoices th:nth-child(2){width:40%;}
dialog .vendor-finance-invoices th:nth-child(3),dialog .vendor-finance-invoices th:nth-child(4){width:16%;}
dialog:has(#settlement-confirm) table input{width:100%;min-width:0;box-sizing:border-box;}
/* AI output is escaped plain text; long identifiers never force modal overflow. */
.ai-chat{max-height:60vh;overflow:auto;margin-bottom:1.5rem}
.ai-message{padding:1.2rem;border-bottom:1px solid #d5e2eb;background:#f6f9fc;overflow-wrap:anywhere}
.ai-message:nth-child(even){background:#edf5f7}
.ai-answer{white-space:pre-wrap;line-height:1.8}
.ai-references{font-size:.85rem;color:#55718a;display:flex;flex-wrap:wrap;gap:.4rem}
.ai-comparison textarea{width:100%;white-space:pre-wrap;min-height:7rem;resize:vertical}
.ai-comparison section{padding:.8rem 0;border-bottom:1px solid #d5e2eb}
.copy-choices{display:flex;flex-wrap:wrap;gap:18px;margin:16px 0}.copy-choices label,.copy-entry{display:flex;align-items:center;gap:10px}.copy-list{max-height:330px;overflow:auto;margin:12px 0;border:1px solid #d8e4ef;border-radius:10px}.copy-entry{padding:12px 16px;margin:0;cursor:pointer}.copy-entry:nth-child(even){background:#eef4fa}.copy-entry[hidden]{display:none}.copy-entry small,.copy-results small{display:block;color:#617a91;font-size:.85em}.copy-results{max-height:560px;overflow:auto}.copy-results td{overflow-wrap:anywhere}.copy-error td{background:#fff0f1;color:#a82234}#copy-range details{margin-bottom:18px}#copy-preview{scroll-margin-top:20px}
[data-copy-seller][hidden]{display:none!important}

.order-check-summary{border:2px solid #d97706;border-left:7px solid #d97706;border-radius:12px;background:#fff7e6;padding:18px;margin:0 0 20px;color:#753b05}
.order-check-summary h3{margin:0 0 8px;color:#8c3e00;font-size:1.15rem}
.order-check-summary p{margin:0 0 12px}
.order-check-summary ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.order-check-link{display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;white-space:normal;background:white!important;border:1px solid #efb66d!important;padding:12px 14px!important;color:#713800!important;gap:5px}
.order-check-link span{white-space:pre-wrap;overflow-wrap:anywhere;max-height:110px;overflow:auto;font-weight:400}
.order-check-link:hover,.order-check-link:focus-visible{outline:2px solid #b45309;outline-offset:2px}
.order-check-target{border-left:5px solid #d97706!important;background:#fff8eb!important;padding:12px!important;scroll-margin:20px}
.order-check-target:focus{outline:3px solid #d97706;outline-offset:3px}
.order-check-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;margin-left:8px;border-radius:12px;background:#b45309;color:white;font-size:.8rem}

.workflow-method-row{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:10px;align-items:end;margin-bottom:14px}.workflow-method-row [data-method-status]{grid-column:1/-1;margin:0;white-space:pre-wrap}.method-save-success{color:#087665;font-weight:600}

.promo-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:20px}.promo-preview-card{border:1px solid #d4dfe9;border-radius:12px;padding:16px;min-width:0}.promo-preview-card img{display:block;width:100%;max-height:720px;object-fit:contain;background:#f5f7f9}.promo-preview-card pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem}.promo-preview-card small{display:block}.promo-preview-card label{display:block;margin:12px 0}

#promo-items .copy-entry[hidden],#promo-selection[hidden]{display:none!important}
.business-chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(360px,100%),1fr));gap:20px;margin:20px 0}.business-chart{min-width:0;background:#fff;border:1px solid #d8e4eb;border-radius:14px;padding:22px}.business-chart h3{margin:0 0 10px;font-size:1.08rem}.business-chart>.muted{font-size:.82rem;line-height:1.6;margin:0 0 20px}.business-bar-row{margin:15px 0}.business-bar-caption{display:flex;justify-content:space-between;gap:14px;align-items:baseline;margin-bottom:7px;font-size:.9rem}.business-bar-caption>span{overflow-wrap:anywhere;min-width:0}.business-bar-caption strong{white-space:nowrap;font-variant-numeric:tabular-nums}.business-bar-caption small{color:#94621e}.business-bar-track{height:16px;background:#edf3f7;border-radius:4px;position:relative;overflow:hidden}.business-bar-fill{position:absolute;top:0;bottom:0;background:#16877f;border-radius:3px}.business-bar-fill.partial{background:repeating-linear-gradient(135deg,#a16d24 0px,#a16d24 5px,#e2c38e 5px,#e2c38e 9px)}.business-bar-fill.negative{background:#b84e55}.business-bar-zero{position:absolute;height:100%;width:1px;background:#6c8190;z-index:1}@media(max-width:560px){.business-chart{padding:16px}.business-bar-caption{font-size:.82rem}}
/* Unified analytics palette: parchment, burgundy and muted gold. */
body.analytics-page{background:#f5f1e9;color:#332d38}.analytics-page main{background:radial-gradient(ellipse at top right,#f8eedb80,transparent 55%),#f5f1e9}.analytics-page h1,.analytics-page h2,.analytics-page h3{color:#302333;letter-spacing:.01em}.analytics-page .panel,.business-chart{background:#fffcf6;border:1px solid #e8dfd2;box-shadow:0 4px 18px #59413208;border-radius:16px}.analytics-page .panel{margin-top:20px}.analytics-page .metrics{gap:16px}.analytics-page .metric{position:relative;background:linear-gradient(130deg,#fffdf8,#faf2e4);border:1px solid #e9dfcf;border-radius:14px;padding:22px 20px;box-shadow:0 4px 12px #69503306;overflow:hidden}.analytics-page .metric:before{content:'';display:block;width:31px;height:31px;border-radius:10px;background:#a34542 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff8eb' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M6 17v-5m6 5V7m6 10V4M4 20h16'/%3E%3C/svg%3E") center/21px no-repeat;margin-bottom:12px;box-shadow:0 3px 8px #a3454220}.analytics-page .metric:nth-child(2):before{background-color:#bd8950}.analytics-page .metric:nth-child(3):before{background-color:#887384}.analytics-page .metric:nth-child(4):before{background-color:#88967b}.analytics-page .metric-label{font-size:13px;color:#74695f;font-weight:600}.analytics-page .metric-value{font-size:clamp(25px,2.2vw,36px);line-height:1.25;margin:9px 0;color:#332538;font-weight:750;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.analytics-page .metric small{color:#877b70;font-size:12px}.analytics-page a.metric:hover{border-color:#cba87c;box-shadow:0 8px 22px #63492812}.analytics-page .toolbar{background:#faf6ee;border-color:#e6ddcf;border-radius:12px}.analytics-page .primary{background:#94413f;border-color:#94413f;color:#fff9ef}.analytics-page table th{background:#f4ede1;color:#71624f;border-color:#e7ddcf}.analytics-page table td{border-color:#eee7dc}.analytics-page table tbody tr:nth-child(even){background:#fcf8f0}.analytics-page .badge{background:#f0e7d8;color:#7a5943}.analytics-page .notice,.analytics-page .note{background:#fbf6eb;border-color:#eadcc5;color:#796b57}.analytics-page .error{color:#a3353f}.analytics-page .sales-share progress{accent-color:#ae7c4c;background:#eee5d7}.analytics-page .sales-share progress::-webkit-progress-bar{background:#eee5d7}.analytics-page .sales-share progress::-webkit-progress-value{background:linear-gradient(90deg,#ebca8c,#b27a4b)}.analytics-page .sales-share progress::-moz-progress-bar{background:#b27a4b}
.business-chart-grid{align-items:start;gap:22px}.business-chart{padding:26px;overflow:hidden}.business-chart h3{font-size:17px;display:flex;align-items:center;gap:10px;color:#342738;margin:0 0 20px}.business-chart h3:before{content:'';width:8px;height:22px;background:linear-gradient(#a34542,#d6a15f);border-radius:5px;flex-shrink:0}.business-chart>.muted{color:#897b6b;font-size:12px;line-height:1.65}.business-bar-row{margin:18px 0}.business-bar-caption{font-size:13px;color:#66594c}.business-bar-caption strong{font-size:14px;color:#382c38}.business-bar-track{height:12px;background:repeating-linear-gradient(90deg,#f0e9dd 0,#f0e9dd calc(25% - 1px),#dfd3c1 calc(25% - 1px),#dfd3c1 25%);border-radius:4px}.business-bar-fill{background:linear-gradient(90deg,#e8c487,#b8754c);border-radius:4px}.business-bar-row:nth-of-type(2n) .business-bar-fill{background:linear-gradient(90deg,#dcb18b,#a34542)}.business-bar-fill.partial,.business-bar-row:nth-of-type(2n) .business-bar-fill.partial{background:repeating-linear-gradient(135deg,#bc9662 0px,#bc9662 5px,#efdcba 5px,#efdcba 9px)}.business-bar-fill.negative{background:#a34542}.business-bar-zero{background:#a1907c}.analytics-ring-layout{display:grid;grid-template-columns:minmax(150px,210px) minmax(160px,1fr);align-items:center;gap:22px;min-height:230px}.analytics-ring-figure{position:relative}.analytics-ring-figure svg{display:block;width:100%;overflow:visible}.analytics-ring-center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none}.analytics-ring-center strong{font-size:30px;color:#342638;letter-spacing:-.04em}.analytics-ring-center span{font-size:12px;color:#8c7c69;margin-top:5px}.analytics-legend>div{display:grid;grid-template-columns:9px minmax(0,1fr) auto auto;align-items:center;gap:9px;margin:15px 0;font-size:12px;color:#6d5d50}.analytics-legend i{width:8px;height:8px;border-radius:50%}.analytics-legend strong{color:#3d2e3d;font-variant-numeric:tabular-nums}.analytics-legend small{min-width:38px;text-align:right;color:#968676;font-variant-numeric:tabular-nums}.analytics-columns{height:248px;display:flex;gap:32px;align-items:stretch;justify-content:center;padding:12px 20px 0;background:repeating-linear-gradient(to top,transparent 0,transparent 49px,#e8dfd266 49px,#e8dfd266 50px)}.analytics-column{display:flex;flex:1;max-width:120px;min-width:0;flex-direction:column;align-items:center;gap:10px;font-size:12px;color:#7b6b5a}.analytics-column>strong{font-size:16px;color:#392a3a;font-variant-numeric:tabular-nums}.analytics-column-well{flex:1;display:flex;align-items:flex-end;width:65%;min-height:0}.analytics-column-well span{display:block;width:100%;border-radius:7px 7px 0 0;box-shadow:inset 1px 0 #ffffff70}.analytics-column>span{white-space:nowrap;font-size:11px}.business-chart:has(.analytics-columns)>.muted{margin-top:24px}.analytics-page .sales-grid .panel{margin-top:0}@media(max-width:700px){.business-chart{padding:18px}.analytics-ring-layout{grid-template-columns:1fr;gap:4px}.analytics-ring-figure{width:190px;margin:auto}.analytics-legend>div{margin:10px 0}.analytics-page .metric{padding:17px}.analytics-columns{gap:20px}}
.business-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.business-chart-grid>.business-chart{height:100%;box-sizing:border-box}.analytics-page .metric:nth-child(2):before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff8eb' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='6' y='3' width='12' height='18' rx='2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h4'/%3E%3C/svg%3E")}.analytics-page .metric:nth-child(3):before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff8eb' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}.analytics-page .metric:nth-child(4):before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff8eb' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5 9-5Zm-9 5v9l9 5 9-5V8M12 13v9'/%3E%3C/svg%3E")}@media(max-width:1000px){.business-chart-grid{grid-template-columns:1fr}}

.sales-trend {margin:20px 0}.sales-trend .panel-heading{gap:16px;flex-wrap:wrap}.sales-trend .panel-heading label{font-size:13px;color:#766b65}.sales-trend-key{display:flex;gap:24px;flex-wrap:wrap;font-size:13px;margin:14px 0}.sales-trend-key span:first-child{color:#ae733b}.sales-trend-key span:last-child{color:#743d48}.sales-trend-scroll{overflow-x:auto}.sales-trend svg{display:block;width:100%;min-width:620px}.sales-trend svg text{font-size:12px;fill:#786d65}.sales-trend details{margin-top:14px}.sales-trend summary{cursor:pointer;color:#743d48;font-size:13px}

.supplier-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.supplier-products{min-width:750px}.supplier-products input{min-width:85px;width:100%}.supplier-products select{max-width:270px}#supplier-edit textarea{width:100%;min-height:70px}@media(max-width:600px){.supplier-fields{grid-template-columns:1fr}}

dialog:has(#supplier-edit),dialog:has(#special-form){width:min(1280px,96vw);max-width:96vw;box-sizing:border-box}#supplier-edit .supplier-products select{max-width:none;width:100%}#supplier-edit .supplier-products th:first-child{width:36%}[data-search-picker]{display:grid;gap:6px;min-width:0}[data-search-picker] input,[data-search-picker] select{width:100%;min-width:0;box-sizing:border-box}

/* Consistent decorative action icons; labels remain readable. */
button[data-action-icon]::before,a[data-action-icon]::before{content:"";display:inline-block;width:17px;height:17px;flex:0 0 17px;margin-right:7px;vertical-align:-3px;background:currentColor;mask:var(--action-icon) center/contain no-repeat;-webkit-mask:var(--action-icon) center/contain no-repeat;pointer-events:none;}
[data-action-icon="add"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205v14M5%2012h14%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="edit"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m16%203%205%205-12%2012-6%201%201-6Z%20M14%205l5%205%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="delete"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18M9%206V3h6v3M5%206l1%2015h12l1-15M10%2010v7M14%2010v7%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="save"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%203h12l4%204v14H3V3ZM7%203v6h10V3M7%2021v-8h10v8%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="search"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2021l-6-6M17%2010a7%207%200%201%201-14%200%207%207%200%200%201%2014%200%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="import"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2016V3m-5%205%205-5%205%205M4%2016v5h16v-5%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="export"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v12m-5-5%205%205%205-5M4%2016v5h16v-5%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="settings"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%207h16M4%2017h16M8%204v6M16%2014v6%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="copy"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%208h13v13H8ZM16%208V3H3v13h5%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="refresh"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%207a9%209%200%200%200-15-2L3%208m0-5v5h5M4%2017a9%209%200%200%200%2015%202l2-3m0%205v-5h-5%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="truck"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%205h12v13H2ZM14%2010h5l3%204v4h-8M8%2018a2%202%200%201%201-4%200%202%202%200%200%201%204%200M20%2018a2%202%200%201%201-4%200%202%202%200%200%201%204%200%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="calendar"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205h18v16H3ZM7%202v6M17%202v6M3%2010h18M7%2014h3M14%2014h3%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="clock"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2012a9%209%200%201%201-18%200%209%209%200%200%201%2018%200M12%206v6l4%202%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="check"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m4%2012%205%205L20%206%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="back"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10%205-7%207%207%207M3%2012h18%22%2F%3E%3C%2Fsvg%3E")}

/* Extended action vocabulary across all management pages. */
[data-action-icon="print"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%209V3h12v6M6%2018H3V9h18v9h-3M6%2014h12v7H6ZM17%2012h1%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="filter"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%204h18l-7%208v8l-4-2v-6Z%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="preview"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2012s4-7%2010-7%2010%207%2010%207-4%207-10%207-10-7-10-7ZM15%2012a3%203%200%201%201-6%200%203%203%200%200%201%206%200%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="mail"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205h18v14H3ZM3%205l9%207%209-7%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="lock"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2010h14v11H5ZM8%2010V6a4%204%200%200%201%208%200v4M12%2014v3%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="users"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15%207a3%203%200%201%201-6%200%203%203%200%200%201%206%200M5%2021v-3a7%207%200%200%201%2014%200v3M18%204a3%203%200%200%201%200%206M21%2014v5%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="document"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%202h11l5%205v15H4ZM14%202v6h6M8%2012h8M8%2016h8%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="box"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%207%209-5%209%205v10l-9%205-9-5ZM3%207l9%205%209-5M12%2012v10M7%204l9%205%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="link"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10%2014%204-4M8%2016l-1%201a4%204%200%200%201-6-6l4-4a4%204%200%200%201%206%200M16%208l1-1a4%204%200%200%201%206%206l-4%204a4%204%200%200%201-6%200%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="unlink"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203l18%2018M8%2016l-1%201a4%204%200%200%201-6-6l3-3M16%208l1-1a4%204%200%200%201%206%206l-3%203%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="retry"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%209a8%208%200%201%201%200%206M4%203v6h6%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="clear"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2015%209-12%209%207-9%2012H9ZM7%2010l9%207M13%2022h9%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="next"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m14%205%207%207-7%207M21%2012H3%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="close"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%206%2012%2012M6%2018%2018%206%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="stop"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%205h14v14H5Z%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="play"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m7%203%2014%209-14%209Z%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="wallet"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205h17v16H3ZM3%205V3h14M15%2010h6v6h-6ZM17%2013h1%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="grid"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203h7v7H3ZM14%203h7v7h-7ZM3%2014h7v7H3ZM14%2014h7v7h-7Z%22%2F%3E%3C%2Fsvg%3E")}
[data-action-icon="action"]{--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203%2021%2012%2012%2021%203%2012ZM9%2012h6%22%2F%3E%3C%2Fsvg%3E")}

button[data-action-icon],a[data-action-icon]{border-radius:9px;font-weight:600;line-height:1.45;transition:background .15s,border-color .15s,box-shadow .15s;}
button[data-action-icon]:not(.link-button),a[data-action-icon]:not(.link-button){min-height:36px;padding:8px 12px;}
button[data-action-icon]:focus-visible,a[data-action-icon]:focus-visible{outline:3px solid #62aaa3;outline-offset:3px;}
button[data-action-tone="danger"],a[data-action-tone="danger"]{background:#fff5f5;color:#a52b3b;border:1px solid #e9bbc3;}
button[data-action-tone="danger"]:hover:not(:disabled),a[data-action-tone="danger"]:hover{background:#ffe9ed;border-color:#cd7483;}
button[data-action-icon]:disabled{opacity:.48;cursor:not-allowed;box-shadow:none;}
.card-actions,.page-head,.toolbar{gap:8px;}
.workflow-tabs button[data-action-icon]{text-align:left;}
@media(max-width:700px){button[data-action-icon]:not(.link-button){min-height:40px;}button[data-action-icon]::before,a[data-action-icon]::before{width:16px;height:16px;margin-right:5px;}}
@media(prefers-reduced-motion:reduce){button[data-action-icon],a[data-action-icon]{transition:none;}}

/* Keep each workflow action directly beneath its matching status tab. */
.workflow-tabs{align-items:flex-start}
.workflow-tab-group{display:flex;flex-direction:column;gap:8px;max-width:100%;align-items:stretch}
.workflow-tab-group>button{justify-content:center}
.workflow-tabs .workflow-tab-action{background:#087f76;border-color:#087f76;color:#fff;font-size:13px;padding:10px 12px}
.workflow-tabs .workflow-tab-action:hover{background:#066b64;border-color:#066b64}
@media(max-width:700px){.workflow-tabs .workflow-tab-action{font-size:12px;white-space:normal}}

dialog:has(#defect-edit){width:min(1050px,96vw);max-width:96vw}#defect-edit textarea{width:100%;min-height:90px}.defect-thumb{width:64px;height:64px;object-fit:cover;border-radius:8px}.defect-gallery{display:flex;flex-wrap:wrap;gap:16px;margin:16px 0}.defect-gallery>div{width:140px;display:grid;gap:6px}.defect-gallery img{width:140px;height:120px;object-fit:cover;border-radius:8px;cursor:zoom-in}.defect-lightbox{max-width:95vw;max-height:95vh}.defect-lightbox img{display:block;max-width:85vw;max-height:80vh;object-fit:contain}

dialog:has(#product-defect-history){width:min(1100px,96vw);max-width:96vw}

.order-selection-header{display:inline-flex;flex-direction:row;align-items:center;gap:4px;white-space:nowrap}.order-selection-header button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;min-height:28px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#59728a;box-shadow:none}.order-selection-header button:first-child{color:#087f75}.order-selection-header button:hover{background:#fff;border-color:#bed0dd}.order-selection-header button:focus-visible{outline:2px solid #087f75;outline-offset:2px}.order-selection-header button svg{width:18px;height:18px}.order-selection-cell{width:76px}

/* Keep long platform titles from stretching the SKU mapping list. */
.sku-mapping-table th:first-child,.sku-mapping-table td:first-child{width:260px;max-width:260px;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.sku-mapping-table td:first-child .member-email{max-width:260px;white-space:normal;overflow-wrap:anywhere;line-height:1.6}
.sku-mapping-table td{vertical-align:top}

/* Always-visible order work note, sharing the existing operations form. */
.order-important-note{margin:16px 0;padding:16px;border:1px solid #d6e2eb;border-radius:12px;background:#fff;}
.order-important-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;}
.order-important-heading .schedule-toggle{margin:0;display:flex;align-items:center;gap:8px;}
.order-important-heading input[type=checkbox]{width:18px;height:18px;}
.order-important-description{display:block;}
.order-important-description>span{display:block;font-size:.85rem;color:#607b91;margin-bottom:6px;}
.order-important-description textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:90px;}
.order-important-note.is-important{border-color:#d89a39;background:#fffaf0;}
.order-important-note>button{margin-top:10px;}
.important-save-status:empty{display:none;}

/* Important orders take precedence over alternating / planned-shipping colors. */
.table-wrap table tbody tr.order-important-row>td{background:#fff0cd!important;}
.table-wrap table tbody tr.order-important-row:hover>td{background:#ffe4a3!important;}
.table-wrap table tbody tr.order-important-row>td:first-child{box-shadow:inset 5px 0 #ba5700;}
.order-important-row .important-flag{color:#873b00;font-weight:800;}
.order-important-banner{border:2px solid #d18a25;border-left:7px solid #b95a00;background:#fff0cd;color:#663500;border-radius:12px;padding:16px 20px;margin:0 0 18px;}
.order-important-banner>strong{font-size:1.1rem;}
.order-important-banner>p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0;line-height:1.6;}

/* Dense daily Amazon series: fixed plot height and readable, scrollable columns. */
.aa-sales-chart .aa-chart-scroll{overflow-x:auto;padding-bottom:12px;max-width:100%}
.aa-sales-chart .aa-chart-columns{display:flex;gap:12px;min-width:max-content;align-items:flex-end;padding:8px 8px 0;background:repeating-linear-gradient(to top,transparent 0,transparent 49px,#e8dfd266 49px,#e8dfd266 50px)}
.aa-sales-chart .aa-chart-column{flex:0 0 68px;display:flex;flex-direction:column;align-items:center;gap:8px;font-variant-numeric:tabular-nums}
.aa-sales-chart .aa-chart-column strong{font-size:12px;white-space:nowrap;color:#392a3a}
.aa-sales-chart .aa-chart-well{height:180px;width:34px;display:block;overflow:visible}
.aa-sales-chart .aa-chart-well rect{fill:#b66548}
.aa-sales-chart .aa-chart-column small{font-size:11px;white-space:nowrap;color:#6d5d50}

.pe-value{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;padding:12px;background:#f3f6f9;font:inherit}

/* Platform product editor: wide desktop workspace with a contained mobile layout. */
dialog:has(#pe-form){width:min(1440px,96vw);max-width:96vw;max-height:94vh;padding:24px 28px;box-sizing:border-box}
dialog:has(#pe-form) #dialog-content,#pe-form,#pe-form .form-grid>*{min-width:0}
#pe-form textarea{width:100%;max-width:100%;box-sizing:border-box;resize:vertical}
#pe-form .form-grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}
#pe-form .pe-value{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
#pe-form summary{overflow-wrap:anywhere}
@media(max-width:640px){dialog:has(#pe-form){padding:16px;width:96vw}#pe-form .form-grid{grid-template-columns:1fr}}

dialog:has(#platform-price-form),dialog:has(#platform-price-preview){width:min(1560px,96vw);max-width:96vw}#platform-price-form table{min-width:1100px}#platform-price-form td{min-width:100px;max-width:280px;white-space:normal;overflow-wrap:anywhere}#platform-price-form input[type=number]{min-width:100px}#platform-price-form .member-email{max-width:260px}

/* Mercari CSV workbench */
dialog:has(#mc-work){width:min(1440px,96vw);max-width:96vw}dialog:has(#mc-edit){width:min(1000px,96vw);max-width:96vw}#mc-work table{width:100%;min-width:720px}#mc-work td{white-space:normal;overflow-wrap:anywhere;max-width:480px}#mc-edit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#mc-edit .notice,#mc-edit .error,#mc-edit .toolbar,#mc-edit label:has(textarea){grid-column:1/-1}#mc-edit label{min-width:0}#mc-edit input,#mc-edit textarea{width:100%;box-sizing:border-box}@media(max-width:640px){#mc-edit{grid-template-columns:1fr}}
/* Shared list navigation: wrap on narrow screens without clipping. */
.legacy-pager[hidden]{display:none!important}
.list-pagination{display:flex;flex-direction:column;gap:14px;margin:18px 0;padding:18px;background:#fff;border:1px solid #d8e1ea;border-radius:10px;color:#24435a}
.pager-pages,.pager-settings{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.pager-pages button{min-width:38px;min-height:38px;padding:7px 12px;border:1px solid #cdd8e2;background:white;color:#126b9a;border-radius:5px}
.pager-pages button[aria-current=page]{background:#087f82;color:white;border-color:#087f82;font-weight:700}
.pager-pages button:disabled{opacity:.45;cursor:default}.pager-gap{padding:0 7px;color:#718096}
.pager-settings label{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0}.pager-settings input{width:90px;min-width:70px}.pager-settings select{width:auto;min-width:100px}.pager-settings small{color:#61788b}.pager-settings>span{margin-right:12px}.list-pagination button:focus-visible{outline:3px solid #59b8cf;outline-offset:2px}
@media(max-width:650px){.list-pagination{padding:12px}.pager-settings{align-items:flex-start}.pager-settings>span{width:100%}}
.recipient-edit-button{margin:0 0 16px;border-color:#b97822;color:#855216;background:#fff}.address-edit-target{border:2px solid #d48817;border-radius:10px;padding:20px;scroll-margin-top:20px}.address-edit-target .toolbar{margin-top:16px}
.lookup-candidate{border:1px solid #ccdce8;border-radius:10px;padding:18px;margin:14px 0;background:#fff}.lookup-comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.lookup-comparison>section{padding:14px;background:#f4f7fa;border-radius:8px;min-width:0}.lookup-comparison>section+section{background:#f1faf8;border:1px solid #bbdbd3}.lookup-comparison h3{margin:0 0 12px;font-size:16px}.lookup-comparison dl{margin:0}.lookup-comparison dt{font-size:13px;color:#607b8f;margin-top:10px}.lookup-comparison dd{margin:4px 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;color:#1e3748}.lookup-comparison dd.lookup-changed{background:#fff0c9;border-radius:5px;padding:7px;font-weight:700}.postal-lookup-results .lookup-candidate>button{width:auto;margin-top:10px}@media(max-width:650px){.lookup-comparison{grid-template-columns:1fr}}
