.commerce-workspace{max-width:1480px;--merchant-ink:#172a38;--merchant-accent:#11685e;--merchant-border:#dde6e7;color:var(--merchant-ink)}
.commerce-workspace .ops-tabs{position:sticky;top:0;z-index:6;background:#f5f8f9ed;backdrop-filter:blur(16px);padding:12px;border:1px solid var(--merchant-border);border-radius:16px;gap:6px;margin-bottom:24px;overflow-x:auto;flex-wrap:nowrap}
.commerce-workspace .ops-tabs button{white-space:nowrap;min-height:44px;border-radius:10px;padding:10px 17px;font-weight:650;flex-shrink:0}
.commerce-workspace .ops-tabs button.active{background:#173d3a;color:white;box-shadow:0 3px 8px #143e3820}
.commerce-workspace .ops-card{border:1px solid var(--merchant-border);border-radius:20px;box-shadow:0 5px 25px #173d3a04;padding:26px}
.commerce-workspace .btn:not(.ghost),.merchant-dialog .btn:not(.ghost){background:#156b5e;color:#fff;border-color:#156b5e}
.commerce-workspace input,.commerce-workspace select,.merchant-dialog input,.merchant-dialog select{min-height:44px;max-width:100%;border-radius:10px}
.merchant-hero{display:flex;align-items:center;justify-content:space-between;gap:32px;background:linear-gradient(120deg,#123f3a,#1c5d52);color:#fff;border-radius:24px;padding:36px 40px;margin-bottom:18px;overflow:hidden}
.merchant-hero h2{font-size:clamp(24px,3vw,36px);letter-spacing:-.05em;margin:10px 0}.merchant-hero p{color:#c3dbd5;margin:12px 0 24px}.merchant-hero .eyebrow{color:#a6e4ce;letter-spacing:.12em}.merchant-hero .btn{background:#e5f6a7!important;border-color:#e5f6a7!important;color:#143c33!important}
.merchant-progress{width:145px;flex-shrink:0;display:grid;gap:5px}.merchant-progress strong{font-size:55px;line-height:1.2;font-weight:750}.merchant-progress small{font-size:24px;color:#a5c5bd}.merchant-progress span{font-size:14px;color:#c3dbd5}.merchant-progress progress{width:100%;height:7px;border:0;border-radius:8px;margin-top:8px;accent-color:#d7ee9c}
.merchant-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0 24px}.merchant-steps button{display:grid;grid-template-columns:36px 1fr;text-align:left;gap:5px 12px;border:1px solid var(--merchant-border);background:white;padding:19px;border-radius:15px;color:var(--merchant-ink)}.merchant-steps button>span{grid-row:1/3;display:grid;place-content:center;width:34px;height:34px;border-radius:50%;background:#f0f3f5;color:#72838b}.merchant-steps .done>span{background:#e0f3e8;color:#167451}.merchant-steps small{color:#637c79;font-size:12px}
.merchant-tasks{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.merchant-tasks button{background:#fff;border:1px solid var(--merchant-border);border-radius:18px;text-align:left;padding:23px;display:grid;gap:12px;color:var(--merchant-ink)}.merchant-tasks strong{font-size:34px;font-variant-numeric:tabular-nums}.merchant-tasks small{font-size:12px;color:#557870}.merchant-tasks button:nth-child(3){background:#fff8ee;border-color:#f0dfc5}.merchant-live-note{font-size:13px;color:#687d82;margin:18px 0 28px}
.merchant-order-search{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;align-items:end;gap:12px}.merchant-order-search label{min-width:0}.merchant-order-search button{height:44px;margin-bottom:14px}.merchant-order-stages{display:flex;gap:8px;margin:10px 0 22px;overflow:auto;padding:4px 0}.merchant-order-stages button{border:1px solid var(--merchant-border);background:#f7f9f9;border-radius:10px;padding:12px;white-space:nowrap}.merchant-order-stages b{padding-left:15px;color:#136759}.merchant-order-stages .active{background:#e2f2eb;border-color:#99c6b9}.merchant-order-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:15px 0;border-top:1px solid var(--merchant-border)}.merchant-order-actions label{display:flex;align-items:center;gap:6px;margin:0 auto 0 0}.merchant-order input[type=checkbox],.merchant-order-actions input[type=checkbox],.merchant-save-live input{width:20px;min-height:20px;margin:0;accent-color:#126558}
.merchant-order{border:1px solid var(--merchant-border);border-radius:16px;margin:14px 0;background:white;overflow:hidden}.merchant-order header{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:14px 20px;background:#f5f8f8}.merchant-order header label{display:flex;align-items:center;gap:8px;font-size:13px;margin:0;overflow-wrap:anywhere}.merchant-order time{margin-left:auto;color:#6c7e87;font-size:12px}.merchant-order-body{display:flex;justify-content:space-between;gap:18px;padding:20px}.merchant-order-body h3{font-size:17px;margin:0 0 12px}.merchant-order-body h3 small{font-weight:400;color:#647982;margin-left:10px}.merchant-order-body p{font-size:14px;margin:6px 0}.merchant-order details{margin-top:14px;font-size:13px}.merchant-order-total{display:flex;flex-direction:column;text-align:right;gap:8px;flex-shrink:0}.merchant-order-total strong{font-size:23px}.merchant-order-total span,.merchant-order-total small{font-size:13px;color:#497568}.merchant-order footer{display:flex;gap:8px;flex-wrap:wrap;align-items:center;border-top:1px solid #eaf0f0;padding:15px 20px}.merchant-order footer form{display:flex;gap:8px;align-items:center;margin-left:auto;flex-wrap:wrap}.merchant-order footer input{width:170px}.merchant-order footer select{width:auto;min-width:100px}.merchant-pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:15px 0}.merchant-pagination>span{margin-right:auto;color:#657981;font-size:13px}.merchant-empty{padding:65px 15px;text-align:center;color:#647c82}.merchant-empty strong{font-size:20px;color:#304c53}
.merchant-dialog,#commerce-product-dialog{width:min(900px,94vw);max-width:94vw;max-height:92dvh;border:0;border-radius:22px;padding:28px;box-shadow:0 24px 100px #102d3b55}.merchant-dialog::backdrop,#commerce-product-dialog::backdrop{background:#112c3a80;backdrop-filter:blur(4px)}.merchant-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:16px}.merchant-dialog h2{font-size:23px}.merchant-dialog p{line-height:1.65}.merchant-error{color:#ae3038;font-size:14px;overflow-wrap:anywhere}.merchant-success{color:#147653}.merchant-dialog label:has([type=checkbox]){display:flex;gap:10px;align-items:center}.merchant-dialog [type=checkbox]{width:20px;min-height:20px}
.merchant-product-builder>section{border-top:1px solid #e0e9e7;padding:22px 0}.merchant-product-builder p{font-size:13px;color:#637b7e}.merchant-image-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.merchant-image-grid figure{margin:0;border:1px solid #dce6e4;padding:8px;border-radius:12px;min-width:0}.merchant-image-grid img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:8px;background:#f4f7f6}.merchant-image-grid figcaption{font-size:12px;padding:5px 0;color:#386357}.merchant-image-grid figure>div{display:flex;gap:4px}.merchant-image-grid button{border:0;border-radius:6px;min-height:34px;flex:1;background:#eaf2ef}.merchant-upload{padding:16px;border:1px dashed #8fbbae;border-radius:12px;margin:16px 0;color:#236759;background:#f4faf6}.merchant-upload input{margin-top:8px}.merchant-option-generator{display:grid;grid-template-columns:1fr 2fr;gap:8px 16px;padding:18px;background:#f4f8f7;border-radius:12px;margin-bottom:15px}.merchant-product-builder table input{min-width:85px;width:100%;margin:0}.merchant-product-builder table td:first-child{width:50%}.merchant-save-live{display:flex;align-items:center;gap:10px;padding:16px;background:#edf7f0;border-radius:12px;font-weight:600}
.merchant-display-options{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:25px 0}.merchant-display-card{border:2px solid #dce6e4;border-radius:18px;padding:24px;display:grid;gap:12px;cursor:pointer}.merchant-display-card:has(input:checked){border-color:#17725b;background:#f3fbf6}.merchant-display-card input{width:20px;min-height:20px;margin:0;accent-color:#17725b}.merchant-display-card strong{font-size:20px}.merchant-display-card small{color:#677f82;line-height:1.6}.display-preview{position:relative;display:flex;gap:7px;background:#e1e9e7;border:1px solid #d3dfdc;border-radius:8px;padding:18px 12px;height:145px}.display-preview i{background:#b6cec5;border-radius:5px;flex:1;height:90px}.display-preview b{position:absolute;background:#fff;box-shadow:0 4px 20px #34554c30;border-radius:6px;inset:23px 20%;border-top:12px solid #2b6b57}.display-preview.page b{inset:8px}.display-preview b:after{content:'';display:block;margin:14px;background:linear-gradient(90deg,#cee0d5 40%,transparent 40%,transparent 48%,#e7edea 48%);height:55px}
@media(min-width:1100px){.commerce-workspace .section-heading h1{font-size:32px}.commerce-workspace .merchant-sales .sales-two{gap:20px}}
@media(max-width:850px){.merchant-order-search{grid-template-columns:1fr 1fr}.merchant-order-search label:first-child{grid-column:1/-1}.merchant-order-search button{margin:0 0 14px}.merchant-steps{grid-template-columns:1fr 1fr}.merchant-tasks{grid-template-columns:1fr 1fr}.merchant-hero{padding:26px}.merchant-image-grid{grid-template-columns:repeat(3,1fr)}.merchant-order footer form{margin-left:0;width:100%}.merchant-order footer form>*{flex:1;min-width:100px}.merchant-order-body{flex-wrap:wrap}.merchant-order-total{text-align:left}.merchant-dialog,#commerce-product-dialog{padding:20px}}
@media(max-width:480px){.commerce-workspace{padding-inline:12px}.commerce-workspace .ops-card{padding:16px;border-radius:15px}.commerce-workspace>.section-heading{display:block}.commerce-workspace>.section-heading .ops-actions{margin-top:16px}.commerce-workspace .ops-tabs{border-radius:12px;margin-inline:-4px;padding:8px}.merchant-hero{padding:23px;gap:16px}.merchant-hero h2{font-size:25px}.merchant-progress{width:65px}.merchant-progress strong{font-size:35px}.merchant-progress small{font-size:16px}.merchant-progress span{font-size:11px}.merchant-steps{gap:8px}.merchant-steps button{padding:12px;grid-template-columns:26px 1fr;gap:5px 7px}.merchant-steps button>span{width:26px;height:26px}.merchant-steps b{font-size:13px}.merchant-tasks{gap:8px}.merchant-tasks button{padding:17px}.merchant-tasks span{font-size:13px}.merchant-order header{padding:13px}.merchant-order header time{margin-left:0}.merchant-order-body,.merchant-order footer{padding:14px}.merchant-display-options{grid-template-columns:1fr}.merchant-image-grid{grid-template-columns:repeat(3,1fr)}.merchant-dialog,#commerce-product-dialog{width:100vw;max-width:100vw;max-height:100dvh;margin:0;border-radius:0;min-height:100dvh}.merchant-option-generator{padding:12px;gap:8px}.merchant-pagination{flex-wrap:wrap}.merchant-dialog button,.merchant-product-builder button{min-height:44px}}

.commerce-workspace [data-view=overview] .settlement-ledger,.commerce-workspace [data-view=overview] .sales-head{display:none}
.commerce-workspace [data-view=settlements] .sales-chart,.commerce-workspace [data-view=settlements] .sales-two{display:none}
.commerce-workspace .sales-kpis{border-radius:18px;overflow:hidden}.commerce-workspace .sales-kpis article{padding:22px}.merchant-order-search .field-help{height:auto;margin-bottom:0}
.shop-history-pages{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0}
@media(max-width:600px){.commerce-workspace .sales-kpis{grid-template-columns:1fr 1fr}.commerce-workspace .sales-kpis article{padding:16px}.commerce-workspace .sales-kpis strong{font-size:23px}.commerce-workspace .sales-chart form{flex-wrap:wrap}.commerce-workspace .sales-chart form>*{flex:1;min-width:80px}}

.merchant-product-advanced{padding:16px;border:1px solid #dce7e3;border-radius:12px;margin:10px 0 20px}.merchant-product-advanced summary{cursor:pointer;font-weight:600}.merchant-product-advanced[open] summary{margin-bottom:15px}.merchant-product-save{position:sticky;bottom:-28px;background:#fff;border-top:1px solid #dce7e3;padding:14px 0 4px;margin-top:20px;z-index:3}.merchant-product-save .merchant-save-live{margin:0 0 10px}.merchant-product-save .btn{min-height:48px}.merchant-activity-alert{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 20px;border:1px solid #9bc9bb;background:#e8f6ed;border-radius:14px;margin-bottom:20px;font-size:14px}
@media(max-width:480px){.merchant-product-save{bottom:-20px}.merchant-activity-alert{flex-wrap:wrap}}

#commerce-product-dialog .dialog-heading{position:sticky;top:-28px;background:white;z-index:5;padding:14px 0;border-bottom:1px solid #e4ebe8}#commerce-product-dialog .btn:not(.ghost){background:#156b5e;border-color:#156b5e;color:white}
@media(max-width:480px){#commerce-product-dialog .dialog-heading{top:-20px}}
