@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
:root{--ink:#18222a;--muted:#7e8b94;--line:#e7ecec;--bg:#f5f7f7;--panel:#fff;--green:#27b980;--green-dark:#159c68;--coral:#ef7a63;--purple:#8875d8;--orange:#f4aa4f;--blue:#5b9de7}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans','Noto Sans SC',sans-serif;font-size:14px}button{font:inherit;border:0;cursor:pointer;color:inherit} .app-shell{display:flex;min-height:100vh}.sidebar{width:244px;flex:0 0 244px;background:#172126;color:#dce4e5;padding:26px 15px 18px;display:flex;flex-direction:column;position:relative}.brand{display:flex;align-items:center;gap:11px;padding:0 12px 24px}.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--green);color:#fff;font-weight:700;font-size:18px}.brand strong{display:block;font-size:18px;letter-spacing:.5px;color:#fff}.brand small{display:block;font-size:8px;letter-spacing:1.5px;color:#839194;margin-top:1px}.store-switch{height:42px;background:#233137;border:1px solid #304046;border-radius:8px;margin:0 4px 28px;padding:0 12px;display:flex;align-items:center;gap:8px;font-size:12px;color:#fff}.status-dot{width:7px;height:7px;background:#50d39a;border-radius:50%;box-shadow:0 0 0 3px #315249}.chevron{margin-left:auto;color:#8d9b9e;font-size:16px}.nav-label{font-size:10px;color:#718084;letter-spacing:1.1px;text-transform:uppercase;margin:0 12px 8px}.nav-label:not(:first-child){margin-top:23px}.nav-item{width:100%;height:41px;background:none;color:#aebabb;display:flex;align-items:center;gap:12px;padding:0 12px;border-radius:7px;margin-bottom:3px;text-align:left;font-size:13px;transition:.2s}.nav-item:hover{background:#243239;color:#e6eeed}.nav-item.active{background:#29463f;color:#78e0ad;font-weight:600}.nav-icon{width:17px;text-align:center;font-size:17px;line-height:1}.nav-item em{font-style:normal;font-size:10px;line-height:18px;min-width:18px;text-align:center;border-radius:9px;background:#35574d;color:#80dfb0;margin-left:auto}.nav-item em.warning{background:#594632;color:#f3bb68}.sidebar-bottom{margin-top:auto}.help-entry{border-top:1px solid #2c393e;border-bottom:1px solid #2c393e;padding:17px 7px;display:flex;align-items:center;gap:9px;color:#a4b4b5}.help-icon{display:grid;place-items:center;width:26px;height:26px;border:1px solid #516367;border-radius:50%;font-weight:700}.help-entry b,.user-mini b{display:block;color:#e3ebea;font-size:11px}.help-entry small,.user-mini small{display:block;color:#778589;font-size:10px;margin-top:3px}.arrow{margin-left:auto;color:#6b8281;font-size:18px}.user-mini{display:flex;align-items:center;gap:9px;padding:18px 8px 0}.avatar,.top-avatar{display:grid;place-items:center;border-radius:50%;background:#db8c63;color:#fff;font-weight:700}.avatar{width:30px;height:30px;font-size:12px}.dots{margin-left:auto;color:#789093;letter-spacing:2px}.main-area{flex:1;min-width:0}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 39px;justify-content:space-between}.breadcrumbs{display:flex;align-items:center;gap:11px;color:#9aa5a8;font-size:12px}.breadcrumbs b{color:#42525a;font-weight:600}.slash{color:#ced5d5}.top-actions{display:flex;align-items:center;gap:21px;color:#758489}.icon-btn{background:none;color:#78888d;font-size:20px;width:27px;height:30px;position:relative;display:grid;place-items:center}.icon-btn i{position:absolute;right:1px;top:4px;width:5px;height:5px;background:var(--coral);border-radius:50%}.top-avatar{width:31px;height:31px;font-size:12px}.mobile-brand{display:none}.content{padding:34px 40px 45px;max-width:1600px;margin:0 auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:30px}.eyebrow{margin:0 0 8px;color:#97a3a6;font-size:11px}.page-head h1{margin:0;font-size:27px;letter-spacing:-.5px;font-weight:700;color:#1e2b32}.page-head h1 span{font-size:22px;margin-left:3px}.subhead{margin:8px 0 0;color:#849196;font-size:12px}.head-actions{display:flex;gap:10px}.btn{height:37px;border-radius:6px;padding:0 16px;font-size:12px;font-weight:600;display:flex;align-items:center;gap:7px}.btn.ghost{border:1px solid #dfe6e5;background:#fff;color:#55666c}.btn.primary{background:var(--green);color:#fff;box-shadow:0 4px 10px #27b9802b}.btn.primary:hover{background:var(--green-dark)}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.stat-card{background:var(--panel);border:1px solid #e9eeee;border-radius:8px;padding:18px 19px 15px;min-width:0}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#7f8d91;font-size:11px}.stat-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;font-weight:700;font-size:15px}.revenue .stat-icon{background:#dcf8ec;color:var(--green)}.orders .stat-icon{background:#e5effc;color:var(--blue)}.customers .stat-icon{background:#eee9fc;color:var(--purple)}.stock .stat-icon{background:#fff0df;color:var(--orange)}.stat-value{font-size:25px;font-weight:700;margin:12px 0 14px;letter-spacing:-.5px}.stat-value small{font-size:12px;font-weight:500;color:#98a4a6}.stat-foot{display:flex;align-items:center;gap:7px;color:#a0abad;font-size:10px}.up{color:var(--green);font-weight:600}.down{color:var(--coral);font-weight:600}.neutral{color:var(--orange);font-weight:600}.spark{display:flex;align-items:flex-end;gap:3px;height:20px;margin-left:auto}.spark i{width:4px;border-radius:4px;background:#bcefd9}.spark i:nth-child(1){height:8px}.spark i:nth-child(2){height:11px}.spark i:nth-child(3){height:6px}.spark i:nth-child(4){height:14px}.spark i:nth-child(5){height:10px}.spark i:nth-child(6){height:17px}.spark i:nth-child(7){height:19px}.spark.blue i{background:#c8dff9}.spark.purple i{background:#d9d1f7}.spark.orange i{background:#fbe0ba}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);gap:18px;margin-bottom:18px}.panel{background:#fff;border:1px solid #e7ecec;border-radius:8px;overflow:hidden}.panel-head{padding:19px 21px 11px;display:flex;align-items:flex-start;justify-content:space-between}.panel-head h2{font-size:14px;margin:0;font-weight:700;color:#2b3b42}.panel-head p{font-size:11px;color:#98a4a7;margin:6px 0 0}.panel-tools{display:flex;align-items:center;gap:9px}.segmented{background:#f4f6f6;border-radius:5px;padding:3px;display:flex}.segmented button{background:none;color:#91a0a2;font-size:10px;padding:5px 9px;border-radius:4px}.segmented button.selected{background:#fff;color:#43535a;box-shadow:0 1px 4px #1e2b3214;font-weight:600}.icon-btn.refresh{font-size:18px;color:#95a1a4}.chart-wrap{display:flex;padding:5px 20px 0 12px;height:215px}.chart-y{width:39px;display:flex;flex-direction:column;justify-content:space-between;padding:5px 0 25px;text-align:right;color:#a7b2b3;font-size:9px}.chart{position:relative;flex:1;margin-left:10px}.chart svg{position:absolute;inset:0 0 25px;width:100%;height:calc(100% - 25px);overflow:visible}.area-path{fill:url(#area)}.line-path{fill:none;stroke:var(--green);stroke-width:2.5;vector-effect:non-scaling-stroke}.gridline{position:absolute;left:0;right:0;border-top:1px dashed #edf0ef}.g1{top:0}.g2{top:25%}.g3{top:50%}.g4{top:75%}.chart-x{position:absolute;bottom:2px;left:0;right:0;display:flex;justify-content:space-between;color:#a7b2b3;font-size:9px}.chart-legend{display:flex;align-items:center;gap:23px;padding:5px 21px 19px;color:#829094;font-size:10px;border-top:1px solid #f4f6f5}.chart-legend span{display:flex;align-items:center;gap:6px}.legend-dot{width:7px;height:7px;border-radius:50%;display:inline-block}.legend-dot.green{background:var(--green)}.legend-dot.coral{background:var(--coral)}.chart-legend b{font-size:11px;color:#44545a}.chart-up{color:var(--green);margin-left:auto}.quick-panel .panel-head{padding-bottom:17px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;padding:0 17px 15px;gap:8px}.quick-item{background:#fafcfc;border:1px solid #edf1f0;border-radius:7px;padding:12px;text-align:left;display:grid;grid-template-columns:31px 1fr;grid-template-rows:auto auto;column-gap:9px;transition:.2s}.quick-item:hover{border-color:#b9dfd0;background:#f5fbf8;transform:translateY(-1px)}.quick-icon{grid-row:1/3;width:31px;height:31px;border-radius:7px;display:grid;place-items:center;font-size:17px}.green-bg{background:#dff7ec;color:var(--green)}.purple-bg{background:#eeeafd;color:var(--purple)}.orange-bg{background:#fff0df;color:var(--orange)}.blue-bg{background:#e6f0fc;color:var(--blue)}.quick-item b{font-size:11px;align-self:end}.quick-item small{font-size:9px;color:#a0abad;margin-top:4px}.store-link{margin:0 17px 17px;padding:11px 12px;border:1px dashed #d3e2dd;background:#f7fbf9;border-radius:6px;display:flex;align-items:center;justify-content:space-between}.link-label{display:block;color:#879896;font-size:9px;margin-bottom:4px}.link-url{display:block;color:#298b6a;font-size:11px;font-weight:600}.store-link button{background:#dff4ea;color:var(--green);width:27px;height:27px;border-radius:5px}.lower-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(280px,1fr);gap:18px}.table-panel .panel-head,.notice-panel .panel-head{padding-bottom:14px}.text-btn,.notice-more{background:none;color:var(--green-dark);font-size:11px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:650px}th,td{padding:11px 20px;text-align:left;border-top:1px solid #f0f3f2;font-size:11px;white-space:nowrap}th{padding-top:7px;padding-bottom:9px;background:#fbfcfc;color:#9ca8aa;font-size:10px;font-weight:500}td{color:#728084}.order-id{color:#4c6067;font-size:10px}.product-cell{display:flex;align-items:center;gap:8px;color:#52636a}.game-thumb{width:26px;height:26px;border-radius:5px;display:grid;place-items:center;color:#fff;font-size:7px;font-weight:700}.thumb-pubg{background:#db995e}.thumb-honor{background:#6c8dcc}.thumb-steam{background:#404e58}.thumb-genshin{background:#9a82c7}.tag{font-size:9px;padding:4px 7px;border-radius:4px;font-weight:600}.tag.success{background:#e0f7ed;color:#24a371}.tag.pending{background:#fff1df;color:#da9238}.tag.refund{background:#fde8e4;color:#db7561}.notice-list{padding:0 20px}.notice-item{width:100%;display:grid;grid-template-columns:40px 1fr 15px;gap:10px;text-align:left;align-items:start;background:none;border-bottom:1px solid #f0f3f2;padding:14px 0}.notice-item:last-child{border-bottom:0}.notice-date{color:#9aa8a8;font-size:10px;padding-top:2px}.notice-item b{display:block;font-size:11px;color:#4b5b61;font-weight:600}.notice-item small{display:block;font-size:10px;color:#98a4a5;line-height:1.5;margin-top:5px}.notice-item>span:last-child{color:#a4b3b3;font-size:16px}.notice-more{display:block;border-top:1px solid #f0f3f2;padding:13px 20px;width:100%;text-align:left}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#1d2c31;color:#fff;border-radius:6px;padding:11px 16px;display:flex;gap:8px;align-items:center;font-size:12px;box-shadow:0 8px 30px #17212633;transition:.25s;z-index:20}.toast.show{opacity:1;transform:translate(-50%,0)}.toast>span:first-child{color:#67d5a1;font-size:15px}.modal-backdrop{position:fixed;inset:0;background:#14232966;display:none;place-items:center;z-index:10;padding:20px}.modal-backdrop.show{display:grid}.modal{width:min(460px,100%);background:#fff;border-radius:10px;padding:25px;box-shadow:0 20px 60px #17212640;position:relative}.modal-close{position:absolute;right:14px;top:10px;color:#91a0a2;background:none;font-size:23px}.modal h3{margin:0 0 7px;font-size:17px}.modal p{color:#7f8c90;font-size:12px;line-height:1.7;margin:0 0 17px}.modal-form label{display:block;color:#6f7f83;font-size:11px;margin-bottom:7px}.modal-form input,.modal-form select{width:100%;height:37px;border:1px solid #dfe8e5;border-radius:5px;padding:0 10px;font:inherit;font-size:12px;margin-bottom:13px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:4px}.modal-actions .btn{height:34px}.modal-actions .btn.cancel{background:#f1f4f3;color:#728185}.modal-actions .btn.save{background:var(--green);color:#fff}
@media(max-width:1100px){.content{padding:28px 24px}.topbar{padding:0 24px}.stat-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.lower-grid{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(4,1fr)}.quick-item{grid-template-columns:1fr;text-align:center;justify-items:center;row-gap:8px}.quick-icon{grid-row:auto}.quick-item b,.quick-item small{display:block}}
@media(max-width:700px){.sidebar{position:fixed;left:-250px;top:0;bottom:0;z-index:8;transition:.25s}.sidebar.open{left:0}.topbar{height:62px;padding:0 16px}.mobile-brand{display:flex;align-items:center;gap:8px;font-size:16px}.mobile-brand .brand-mark{width:27px;height:27px;font-size:15px}.breadcrumbs{display:none}.content{padding:24px 15px 35px}.page-head{align-items:flex-start;flex-direction:column;gap:17px;margin-bottom:23px}.page-head h1{font-size:22px}.head-actions{width:100%}.head-actions .btn{flex:1;justify-content:center}.stat-grid{gap:10px}.stat-card{padding:14px 13px}.stat-value{font-size:21px;margin:10px 0 12px}.stat-foot{font-size:9px;gap:4px}.panel-head{padding:16px 15px 10px}.chart-wrap{padding-right:12px}.chart-legend{gap:10px;padding:5px 15px 15px;flex-wrap:wrap}.chart-up{margin-left:0;width:100%}.quick-grid{grid-template-columns:1fr 1fr;padding:0 12px 12px}.quick-item{grid-template-columns:31px 1fr;text-align:left;justify-items:initial;row-gap:0}.quick-icon{grid-row:1/3}.store-link{margin:0 12px 13px}.notice-list{padding:0 15px}th,td{padding-left:12px;padding-right:12px}}

/* Order workbench styling follows the compact admin layout used by the reference UI. */
.order-list-panel{border-radius:4px}.order-panel-head{padding-bottom:10px}.order-tabs{display:flex;gap:0;padding:0 20px;border-bottom:1px solid #f0f1f2;background:#fff}.order-tabs button,.status-tabs button{background:transparent;color:#7d8990;border-bottom:2px solid transparent;padding:12px 18px;font-size:12px}.order-tabs button.active{color:#20a979;border-bottom-color:#20a979;font-weight:600}.order-filters{display:flex;align-items:flex-end;gap:10px;padding:15px 20px 10px;flex-wrap:wrap}.order-filters label{display:flex;align-items:center;height:34px;border:1px solid #e1e6e8;border-radius:3px;background:#fff}.order-filters label span{padding:0 10px;color:#8b969b;font-size:11px;border-right:1px solid #edf0f1;line-height:32px}.order-filters input{height:32px;width:150px;border:0;padding:0 9px;font:inherit;font-size:12px;outline:0}.order-filters .btn{height:34px;border-radius:3px}.status-tabs{display:flex;gap:4px;padding:0 20px;border-bottom:1px solid #edf0f1}.status-tabs button{padding:9px 14px;font-size:11px}.status-tabs button.active{color:#20a979;border-bottom-color:#20a979}.order-table{min-width:920px}.order-table th{background:#fafbfb;font-size:11px;padding:12px 14px;color:#7f8b90}.order-table td{padding:13px 14px;border-top:1px solid #f0f2f3;font-size:12px}.order-table .cost-cell{color:#ef6f56;font-weight:600}.table-action{display:inline-grid;width:28px;height:28px;margin-right:4px;border-radius:3px;background:#20b999;color:#fff;font-size:15px}.table-action + .table-action{background:#ffb300}.order-entry-panel{margin-top:18px;border-radius:4px}.order-entry-panel .modal-form{max-width:680px;padding:4px 20px 20px}.order-entry-panel .modal-form label{font-size:12px;color:#6b7a81}.order-entry-panel .modal-form input,.order-entry-panel .modal-form select{height:40px;border-radius:3px}.order-entry-panel .modal-actions{justify-content:flex-start}.order-entry-panel .btn.save{min-width:150px;justify-content:center}.form-hint{min-height:18px;margin:-5px 0 12px;color:#20a979;font-size:11px}
.backend-notice{margin:0 0 14px;padding:11px 15px;border:1px solid #ffe0b2;border-radius:4px;background:#fff8e9;color:#b46d18;font-size:12px}
.api-result{margin:18px 0 0;padding:16px;min-height:120px;max-height:360px;overflow:auto;background:#101a20;color:#d9f4e8;border-radius:8px;font:12px/1.6 Consolas,Monaco,monospace;white-space:pre-wrap;word-break:break-word}
@media(max-width:700px){.order-filters{align-items:stretch;padding:12px}.order-filters label{width:100%}.order-filters input{flex:1;width:auto}.order-tabs,.status-tabs{padding-left:8px;overflow-x:auto}.order-tabs button,.status-tabs button{white-space:nowrap;padding-left:12px;padding-right:12px}.order-entry-panel .modal-form{padding-left:15px;padding-right:15px}}

/* Keep the extended navigation reachable when the viewport is shorter than the menu. */
.nav-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:2px}.nav-list::-webkit-scrollbar{width:5px}.nav-list::-webkit-scrollbar-thumb{background:#dce3eb;border-radius:5px}.sidebar-bottom{flex:0 0 auto;background:#fff}

/* Supplier admin visual language: light workspace, pink active navigation, compact data panels. */
:root{--pink:#ff4f98;--pink-soft:#ffe0ec;--teal:#11c5ad;--page:#f5f7fb;--line:#e8edf2}
body{background:var(--page);color:#344054}
.sidebar{width:230px;flex-basis:230px;background:#fff;color:#687386;border-right:1px solid var(--line);padding:20px 8px 16px}
.brand{padding:0 12px 20px}.brand-mark{background:#17252b;color:#ffd33d}.brand strong{color:#27313c}.brand small{color:#98a2af}.store-switch{background:#fff;border-color:#edf0f4;color:#687386;margin:0 4px 20px}.nav-label{color:#a4acb8}.nav-item{color:#687386;border-radius:4px}.nav-item:hover{background:#fff5f9;color:var(--pink)}.nav-item.active{background:var(--pink-soft);color:var(--pink)}.nav-item em{background:var(--pink-soft);color:var(--pink)}
.sidebar-bottom{color:#687386}.help-entry{border-color:#edf0f4}.help-entry b,.user-mini b{color:#465160}.help-entry small,.user-mini small{color:#98a2af}
.topbar{height:64px;padding:0 24px;border-bottom-color:var(--line)}.content{padding:20px 18px 35px;max-width:none}.page-head{margin-bottom:18px}.page-head h1{font-size:22px}.eyebrow{color:#9aa4b2}.subhead{color:#8d98a7}
.panel,.stat-card{border-color:#edf0f4;box-shadow:0 2px 8px rgba(35,48,61,.05)}.panel-head h2{color:#344054}.panel-head p{color:#98a2af}.btn.primary{background:var(--pink);box-shadow:none}.btn.primary:hover{background:#ef3b87}.btn.ghost{border-color:#e5e9ee;color:#647083}.stat-card{border-radius:8px}.table-panel table th{background:#fbfcfe}.table-panel th,.table-panel td{border-color:#f0f2f5}
.order-tabs button.active,.status-tabs button.active{color:var(--pink);border-bottom-color:var(--pink)}.order-tabs,.status-tabs{border-color:#edf0f4}.order-filters label{border-color:#e5e9ee}.table-action{background:var(--teal)}.table-action + .table-action{background:#ffb300}
.reference-stat{min-height:118px;padding:20px 24px}.reference-stat span{display:block;color:#8994a3;font-size:14px}.reference-stat strong{display:block;font-size:29px;margin:12px 0 7px}.reference-stat small{color:#a1aab6;font-size:11px}.reference-stat.pink strong{color:var(--pink)}.reference-stat.orange strong{color:#ff9f17}.reference-stat.teal strong{color:var(--teal)}.reference-stat.red strong{color:#ff5a5f}.reference-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px}.reference-chart{min-height:430px}.reference-empty{height:345px;display:grid;place-items:center;color:#a4adba;font-size:13px}.reference-side{display:grid;gap:18px;align-content:start}.reference-card{min-height:112px}.reference-card .panel-head{padding-bottom:13px}.reference-link{padding:0 20px 20px;color:#8994a3;font-size:12px}.reference-link b{display:block;color:var(--pink);font-weight:500;margin-top:9px;word-break:break-all}.reference-notice,.support-placeholder{padding:0 20px 22px;color:#9aa4b2;font-size:12px;line-height:1.7}.support-card{min-height:180px}
@media(max-width:900px){.reference-grid{grid-template-columns:1fr}.reference-side{grid-template-columns:repeat(2,1fr)}.support-card{grid-column:span 2}}
@media(max-width:700px){.sidebar{width:230px;flex-basis:230px}.reference-side{grid-template-columns:1fr}.support-card{grid-column:auto}.reference-stat{padding:15px}.reference-stat strong{font-size:22px}}
/* Order action buttons appended by the API order list. */
.table-action.danger{color:#d94a4a;border-color:#f0b4b4;background:#fff5f5}
.table-action.danger:hover{background:#ffe8e8;color:#b82f39}
.supplier-order-modal #createProductSearch{margin-bottom:8px;border:1px solid #dfe5ec;border-radius:6px;padding:10px 12px;width:100%;box-sizing:border-box}
.supplier-order-modal #createProduct{max-height:260px}
.status-tabs button{cursor:pointer}
.product-category-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}.product-category-tabs button{padding:6px 10px;border:1px solid #e2e7ed;border-radius:5px;background:#fff;color:#667085;font-size:11px}.product-category-tabs button.active{border-color:var(--pink);background:var(--pink-soft);color:var(--pink);font-weight:700}
.supplier-order-modal{width:min(560px,100%)}.supplier-order-modal #createProduct{height:210px;padding:6px}.supplier-order-modal #createProduct option{padding:7px 8px;border-radius:4px}
.completion-preview-modal{width:min(680px,100%);padding:22px}.completion-preview-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;color:#98a2af;font-size:11px}.completion-preview-badge{padding:5px 10px;border-radius:999px;background:#e0f7ed;color:#24a371;font-weight:700}.completion-preview-image{display:block;width:100%;max-height:360px;object-fit:cover;border-radius:8px;background:#f1f4f8}.completion-preview-modal h3{margin:15px 0 12px;color:#344054}.completion-preview-meta{display:grid;grid-template-columns:100px 1fr;gap:9px 14px;padding-top:12px;border-top:1px solid #edf0f4;font-size:12px}.completion-preview-meta span{color:#98a2af}.completion-preview-meta b{color:#344054;overflow-wrap:anywhere}@media(max-width:700px){.completion-preview-modal{padding:16px}.completion-preview-image{max-height:260px}}
.completion-preview-placeholder{display:grid;place-items:center;gap:8px;min-height:270px;border-radius:8px;background:radial-gradient(circle at 70% 18%,#194b73 0,#10213b 44%,#0b1428 100%);border:1px solid #2d75a4;color:#bcecff;text-align:center;box-shadow:inset 0 0 45px #45b9ff18}.completion-preview-placeholder span{font:700 11px Consolas,monospace;letter-spacing:.2em;color:#62d8ff}.completion-preview-placeholder b{font-size:23px;color:#f1fbff}.completion-preview-placeholder small{font-size:12px;color:#92b7d5}
.admin-delivery-template{position:relative;width:min(520px,100%);aspect-ratio:1;margin:0 auto;background:#eef7ff url('assets/delivery-success-template.png?v=20260912') center/100% 100% no-repeat;border-radius:8px;overflow:hidden;box-shadow:0 12px 34px #0f315d33}.admin-template-skin{position:absolute;left:29%;top:18%;width:42%;height:28%;object-fit:contain;filter:drop-shadow(0 0 10px #4fc9ff99);mix-blend-mode:multiply}.admin-template-field{position:absolute;display:flex;flex-direction:column;gap:2px;width:36%;color:#103b73;text-shadow:0 1px 0 rgba(255,255,255,.9)}.admin-template-field span{display:none}.admin-template-field b{font-size:14px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-gift{left:13%;bottom:21%}.admin-uid{right:8%;bottom:21%}.admin-role{left:13%;bottom:7%}.admin-order{right:8%;bottom:7%}.completion-mail-note{text-align:center;margin:14px 0 0!important;color:#426487!important;font-weight:600}
.admin-delivery-template .admin-template-skin{left:35%!important;top:20%!important;width:30%!important;height:22%!important;max-width:none!important}.admin-template-field{width:34%;height:7%;justify-content:center}.admin-template-field b{font-size:13px}.admin-gift{left:13%;bottom:22%}.admin-uid{right:8%;bottom:22%}.admin-role{left:13%;bottom:8%}.admin-order{right:8%;bottom:8%}

/* Match the user-facing success card in the admin preview. */
.completion-preview-modal{width:min(720px,calc(100vw - 32px));padding:22px;background:linear-gradient(145deg,#0b1729,#10243d 55%,#0b182b);border:1px solid rgba(85,201,255,.48);border-radius:16px;color:#eaf5ff}
.completion-preview-modal .modal-close{color:#9bb6d4}
.completion-preview-head{align-items:flex-end;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid rgba(121,183,236,.18)}
.completion-preview-head>div{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.completion-preview-kicker{display:block;color:#63d5ff;font:700 10px/1.2 Consolas,monospace;letter-spacing:.2em}
.completion-preview-badge{background:rgba(44,221,168,.12);border:1px solid rgba(84,239,190,.55);color:#65efc0}
.admin-completion-card{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;align-items:center;padding:16px;border:1px solid rgba(117,194,255,.22);border-radius:14px;background:rgba(255,255,255,.045)}
.admin-completion-image{width:230px;height:230px;display:grid;place-items:center;overflow:hidden;border-radius:12px;background:linear-gradient(145deg,#e9f3ff,#cbdced)}
.admin-completion-image img{display:block;width:100%;height:100%;object-fit:contain}
.admin-completion-image>div{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(145deg,#173757,#12243c);color:#73d5ff;font-size:16px;font-weight:700}
.admin-completion-title span{display:block;color:#76cfff;font:700 10px/1.2 Consolas,monospace;letter-spacing:.16em;margin-bottom:9px}
.admin-completion-title h3{margin:0;color:#f4fbff;font-size:25px;line-height:1.35;overflow-wrap:anywhere}
.admin-completion-title p{margin:9px 0 20px;color:#aac4df;font-size:13px}
.admin-completion-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.admin-completion-grid>div{min-width:0;padding:11px 12px;background:rgba(255,255,255,.055);border:1px solid rgba(128,185,238,.19);border-radius:9px}
.admin-completion-grid span{display:block;color:#7fa2c6;font-size:10px;margin-bottom:5px}
.admin-completion-grid b{display:block;color:#f0f8ff;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.completion-preview-modal .completion-mail-note{color:#aac4df!important;font-size:12px;margin:15px 0 0!important}
@media(max-width:620px){.completion-preview-modal{padding:15px}.admin-completion-card{grid-template-columns:1fr}.admin-completion-image{width:100%;height:220px}.admin-completion-title h3{font-size:21px}}

/* Profit workbench: daily completed-order aggregation with editable per-skin cost. */
.profit-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 18px;margin-bottom:16px;background:#fff}.profit-toolbar>div:first-child{display:flex;align-items:center;gap:12px}.profit-toolbar-label{color:#667085;font-size:12px;font-weight:700}.profit-toolbar input{height:34px;border:1px solid #dfe6ed;border-radius:6px;padding:0 10px;color:#344054;font:inherit;font-size:12px}.profit-toolbar-note{display:flex;align-items:center;gap:8px;color:#82909c;font-size:11px}.profit-live-dot{width:7px;height:7px;border-radius:50%;background:#29b985;box-shadow:0 0 0 4px #29b9851c}.profit-kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:17px}.profit-kpi{min-width:0;padding:18px 19px 16px;background:#fff;border:1px solid #e5ebf0;border-radius:9px;box-shadow:0 5px 16px #22364d08}.profit-kpi>span,.profit-kpi>small{display:block;color:#8794a1;font-size:11px}.profit-kpi>strong{display:block;margin:12px 0 8px;color:#25384e;font-size:25px;letter-spacing:-.03em}.profit-kpi>small{font-size:10px}.profit-kpi.revenue{border-top:3px solid #4c9bff}.profit-kpi.cost{border-top:3px solid #f3a94c}.profit-kpi.profit-positive{border-top:3px solid #29b985}.profit-kpi.profit-negative{border-top:3px solid #e47768}.profit-kpi.products{border-top:3px solid #8d7ee7}.profit-kpi.profit-positive>strong{color:#168f68}.profit-kpi.profit-negative>strong{color:#c85d52}.profit-layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(260px,.8fr);gap:17px}.profit-table-panel{min-width:0}.profit-table-panel .panel-head{align-items:center;padding-bottom:15px}.profit-table{min-width:870px}.profit-table th{padding:11px 15px;background:#fafbfd;color:#8b98a6;font-size:10px}.profit-table td{padding:13px 15px;border-top:1px solid #edf1f5;color:#596b7a;font-size:12px;vertical-align:middle}.profit-product-name{display:block;color:#334a62;font-size:12px;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profit-warning,.profit-source{display:inline-block;margin-top:5px;padding:3px 6px;border-radius:4px;font-size:9px;font-weight:700}.profit-warning{color:#bc741e;background:#fff3dc}.profit-source.daily{color:#198b68;background:#e0f7ed}.profit-source.template{color:#6678b9;background:#edf0ff}.profit-cost-editor{display:flex;align-items:center;width:105px;height:32px;border:1px solid #dfe6ed;border-radius:6px;background:#fff}.profit-cost-editor>span{padding-left:8px;color:#98a2b3;font-size:11px}.profit-cost-editor input{width:100%;height:100%;padding:0 6px;border:0;outline:0;color:#344054;font:inherit;font-size:12px;background:transparent}.profit-save-btn{height:29px;padding:0 10px;border-radius:5px;background:#e6f7f0;color:#198b68;font-size:11px;font-weight:700}.profit-save-btn:hover{background:#d1f0e3}.profit-save-btn:disabled{opacity:.55;cursor:wait}.profit-table td.profit-positive strong{color:#168f68}.profit-table td.profit-negative strong{color:#c85d52}.profit-table td small{display:block;margin-top:4px;color:#98a4b0;font-size:9px}.profit-empty{text-align:center!important;padding:45px 20px!important;color:#68798a!important}.profit-empty span,.profit-empty small{display:block}.profit-empty small{margin-top:7px;color:#9aa7b3;font-size:11px}.profit-guide{height:max-content}.profit-guide .panel-head{padding-bottom:15px}.profit-formula{padding:14px 19px;border-top:1px solid #edf1f5}.profit-formula span{display:block;color:#8b98a6;font-size:10px}.profit-formula b{display:block;margin-top:6px;color:#385169;font-size:13px}.profit-tip{display:flex;gap:9px;margin:15px;padding:12px;border:1px solid #d9e9fb;border-radius:7px;background:#f3f8ff}.profit-tip>span{display:grid;place-items:center;flex:0 0 17px;width:17px;height:17px;border-radius:50%;background:#d8ebff;color:#4d91d3;font-size:11px;font-weight:700}.profit-tip p{margin:0;color:#73879c;font-size:10px;line-height:1.7}@media(max-width:900px){.profit-kpi-grid{grid-template-columns:1fr 1fr}.profit-layout{grid-template-columns:1fr}}@media(max-width:560px){.profit-toolbar{display:block}.profit-toolbar-note{margin-top:12px}.profit-kpi-grid{gap:9px}.profit-kpi{padding:14px}.profit-kpi>strong{font-size:20px}.profit-kpi>small{line-height:1.4}}
.profit-order-ledger{margin-bottom:20px}.profit-order-ledger .profit-table td,.profit-order-ledger .profit-table th{font-size:15px}.profit-order-ledger .profit-table td{padding-top:16px;padding-bottom:16px}.profit-order-ledger .profit-cost-editor input{font-size:15px;min-width:130px}.profit-order-ledger small{display:block;color:#8b9ab1;margin-top:5px}.profit-source{display:inline-block;margin-left:8px;font-size:12px;color:#7890aa}.profit-source.product{color:#148f73}.profit-source.manual{color:#7357d8}.profit-source.missing{color:#dc8b1d}.order-table td,.order-table th{font-size:15px}.status-tabs button{font-size:15px}
