:root{--ink:#182c38;--muted:#74828d;--line:#e7ecee;--canvas:#f5f7f8;--teal:#067d72;--soft:#e9f5f1;--orange:#ec9b45;--radius:14px}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font:14px/1.6 'Segoe UI','Microsoft YaHei',system-ui,sans-serif}a{color:var(--teal);text-decoration:none}button,input,select{font:inherit}button{cursor:pointer;transition:background .15s,box-shadow .15s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #63bcb2;outline-offset:3px}button:disabled{cursor:wait;opacity:.5}
.app-sidebar{position:fixed;inset:0 auto 0 0;width:236px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:28px 18px;z-index:20}.brand{display:flex;gap:12px;align-items:center;padding:0 12px 30px;color:var(--ink)}.brand-mark{background:var(--teal);color:white;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-size:23px;font-weight:750}.brand strong{font-size:18px;letter-spacing:1.5px}.brand small{display:block;font-size:11px;color:var(--muted);letter-spacing:1px}.nav-caption{color:#9ba6ad;font-size:11px;letter-spacing:1.3px;padding:17px 14px 9px}.app-sidebar nav{display:grid;gap:5px}.nav-link{display:flex;align-items:center;gap:12px;color:#697a86;padding:12px 14px;border-radius:9px;font-weight:550}.nav-link svg{width:19px;height:19px;flex:none}.nav-link:hover{background:#f5f8f8;color:var(--teal)}.nav-link.active{color:var(--teal);background:var(--soft)}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:20px 12px 0;font-size:12px;color:var(--muted)}.sidebar-bottom strong{display:block;color:var(--ink);font-size:13px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#079b80;margin-right:7px}
.app-shell{margin-left:236px}.app-topbar{min-height:80px;background:#ffffffd9;border-bottom:1px solid var(--line);padding:18px 36px;display:flex;align-items:center;justify-content:space-between;gap:16px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb strong{color:var(--ink);font-weight:600}.top-actions{display:flex;align-items:center;gap:16px}.profile-chip{display:flex;gap:10px;align-items:center}.avatar{background:#edf2f4;border:1px solid var(--line);border-radius:50%;width:34px;height:34px;display:grid;place-items:center;color:var(--teal);font-weight:700}.profile-chip small{display:block;color:var(--muted);font-size:10px}.scope-selector{margin:0;display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted)}.scope-selector select{max-width:210px;margin:0;background:white}.menu-toggle{display:none}.app-shell main{max-width:1600px;padding:32px 36px 56px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.page-heading h1{font-size:26px;letter-spacing:-.5px;margin:0;font-weight:680}.page-heading p{color:var(--muted);margin:5px 0 0;font-size:13px}.page-date{font-size:12px;color:var(--muted);white-space:nowrap}.card,.panel,.app-shell main>section,.view-group>section{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:none;margin:0 0 20px;overflow:auto}h3{font-size:15px;margin:0 0 18px;font-weight:650}h3:after{content:'';display:block;width:26px;height:2px;background:#b7d9d3;margin-top:10px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.grid .card{margin:0}.grid label{display:block;margin:14px 0}input,select{background:#fff;border:1px solid #dce3e7;border-radius:7px;padding:9px 12px;min-height:40px;color:var(--ink);max-width:100%}input::placeholder{color:#9aa6ad}button{background:var(--teal);color:white;border:1px solid transparent;border-radius:7px;padding:9px 15px;min-height:38px;font-size:13px;font-weight:600}button:hover{background:#05675f}td button{font-size:12px;padding:6px 10px;min-height:30px;margin:3px}.quiet-button{color:#657684;background:transparent;border:1px solid var(--line);min-height:34px;padding:6px 10px;font-size:12px}.quiet-button:hover{background:#f1f5f6}.notice{background:#f0f6f5;border:1px solid #dcece8;border-radius:9px;color:#667e78;padding:12px 16px;font-size:12px;margin:0 0 24px}.metric{font-size:28px;font-weight:700;color:var(--teal)}table{width:100%;border-collapse:collapse;font-size:12px;margin-top:16px}th{font-size:11px;font-weight:600;color:#7b8c96;background:#f7f9fa;white-space:nowrap;padding:12px 14px;border-bottom:1px solid var(--line)}td{padding:14px;border-bottom:1px solid #eef2f3;text-align:left;vertical-align:middle;color:#475d6a}tbody tr:hover{background:#fafcfc}tbody tr:last-child td{border-bottom:0}td:first-child{color:var(--ink);font-weight:550}.empty-cell{text-align:center!important;color:#94a2aa!important;height:110px;font-weight:400!important}.overdue,.bad{color:#b24b43}.overdue td{background:#fff7f4;color:#b24b43}#message:empty{display:none}#message:not(:empty){background:#fff5df;color:#8a6329;border:1px solid #f1e2c2;border-radius:8px;padding:10px 14px;margin:12px 0 20px;font-size:13px}
.dashboard-hero{background:#173b3b;color:white;border-radius:16px;padding:28px 32px;display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:24px;position:relative;overflow:hidden}.dashboard-hero:after{content:'';position:absolute;width:200px;height:200px;right:20px;top:-95px;border:35px solid #ffffff05;border-radius:50%;pointer-events:none}.hero-eyebrow{color:#92bcb4;font-size:10px;letter-spacing:2px}.dashboard-hero h2{font-size:24px;font-weight:600;margin:8px 0}.dashboard-hero p{color:#abc8c2;font-size:12px;margin:0}.hero-rule{text-align:right;min-width:140px;z-index:1}.hero-rule strong{font-size:37px;font-weight:550}.hero-rule span{display:block;color:#9bbfb6;font-size:11px}.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.dash-metric{background:white;border:1px solid var(--line);border-radius:12px;padding:22px}.metric-label{display:flex;justify-content:space-between;align-items:center;color:#738590;font-size:12px}.metric-icon{background:#eef6f3;border-radius:9px;padding:8px;color:var(--teal);display:flex}.metric-icon svg{width:17px;height:17px}.metric-value{font-size:29px;letter-spacing:-.7px;font-weight:650;margin:12px 0 4px;color:var(--ink)}.metric-note{font-size:11px;color:#95a2a9}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:24px}.section-heading{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:20px}.section-heading h3{margin:0}.section-heading a{font-size:11px}.task-row{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:16px 0}.task-row:last-child{border:0}.task-row strong{display:block;font-size:13px;font-weight:600}.task-row small{color:var(--muted);font-size:11px}.task-count{background:var(--soft);color:var(--teal);font-size:14px;font-weight:650;min-width:34px;height:30px;border-radius:8px;display:grid;place-items:center}.attention{background:#fff1de;color:#b47625}.quick-links{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-link{border:1px solid var(--line);border-radius:10px;padding:17px;color:var(--ink);font-size:12px}.quick-link svg{width:21px;height:21px;color:var(--teal);display:block;margin-bottom:12px}.quick-link:hover{border-color:#8ec7bc;background:#f6fbf9}.dashboard-empty{padding:38px 16px;text-align:center;color:#8c9ca4;font-size:12px}.dashboard-empty strong{display:block;font-size:14px;color:#506773;margin-bottom:8px}.table-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}.table-toolbar input{min-width:230px}.table-toolbar label{color:var(--muted);font-size:12px;margin:0}.view-group[hidden]{display:none!important}.route-hidden{display:none!important}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.metrics>div{border:1px solid var(--line);background:white;padding:22px;border-radius:12px;color:var(--muted);font-size:12px}.metrics strong{display:block;color:var(--ink);font-size:27px;margin-top:10px}.layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr);gap:24px}#products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#products button{min-height:90px;white-space:pre-line;background:#f4f9f6;border:1px solid #d4e6df;color:#215b4c;font-weight:600;text-align:left;padding:18px}#products button:hover{border-color:#158d76;background:#e8f4ee}#checkout{width:100%;height:50px;font-size:16px;margin-top:20px}#total{font-size:27px;font-weight:650;border-top:1px solid var(--line);padding-top:16px}#cashier label{display:block;color:var(--muted);font-size:12px;margin:12px 0}#cashier input,#cashier select{width:100%;margin:6px 0}#network{font-size:12px;color:var(--teal)}.app-shell main>div>section input{margin:5px}.pill{display:inline-block;background:var(--soft);color:var(--teal);border-radius:5px;font-size:11px;padding:3px 8px}.mobile-overlay{display:none}
@media(min-width:1500px){.app-shell main{padding:40px 48px}.app-topbar{padding:18px 48px}}@media(max-width:1100px){.app-sidebar{width:210px}.app-shell{margin-left:210px}.app-shell main{padding:24px}.app-topbar{padding:18px 24px}.dashboard-columns{grid-template-columns:1fr}.dashboard-metrics{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}.layout{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.app-sidebar{transform:translateX(-100%);transition:transform .2s;width:236px}.sidebar-open .app-sidebar{transform:translateX(0)}.sidebar-open .mobile-overlay{display:block;position:fixed;inset:0;background:#13282b55;z-index:19}.app-shell{margin:0}.app-topbar{padding:14px 16px;min-height:66px}.menu-toggle{display:block;background:transparent;border:1px solid var(--line);color:var(--ink);padding:5px 10px;min-height:32px}.breadcrumb{display:none}.top-actions{gap:8px}.profile-chip small{display:none}.profile-chip{font-size:12px}.scope-selector{font-size:0}.scope-selector select{max-width:150px;font-size:12px;padding:5px}.app-shell main{padding:22px 16px}.page-heading h1{font-size:22px}.page-date{display:none}.dashboard-hero{padding:24px;align-items:flex-start}.dashboard-hero h2{font-size:19px}.hero-rule{min-width:80px}.hero-rule strong{font-size:28px}.hero-rule span{font-size:9px}.dashboard-metrics{gap:10px}.dash-metric{padding:16px}.metric-value{font-size:23px}.card,.panel,.app-shell main>section,.view-group>section{padding:18px}.table-toolbar input{min-width:0;width:100%}.metric-note{font-size:10px}table{min-width:550px}.profile-chip .avatar{display:none}.quick-links{grid-template-columns:1fr 1fr}#products{grid-template-columns:repeat(2,1fr)}.metrics strong{font-size:22px}}
.form-dialog section{max-width:540px!important;width:calc(100% - 32px)!important}.form-dialog h2{font-size:21px;margin:0}.form-description{font-size:12px;color:var(--muted);margin:8px 0 24px}.form-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-fields label{font-size:12px;color:#607680;display:block}.form-fields input,.form-fields select{width:100%;margin:7px 0 0!important;font-size:14px!important}.form-dialog footer{margin-top:28px;border-top:1px solid var(--line);padding-top:20px}.form-dialog input[type=date]{min-width:0}@media(max-width:520px){.form-fields{grid-template-columns:1fr}}
@media print{.app-sidebar,.app-topbar,.mobile-overlay{display:none!important}.app-shell{margin:0}body>*{display:none!important}#receipt{display:block!important;width:72mm;font:12px monospace;white-space:pre-wrap}}
.editor-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:20px}.editor-fields label{color:#70838e;font-size:12px}.editor-fields input,.editor-fields select{display:block;width:100%;margin:7px 0 0!important}#catalogManage>div{padding:18px 0;border-bottom:1px solid var(--line)}#catalogManage button{margin-left:8px;font-size:12px}.app-sidebar nav{overflow-y:auto;min-height:0}.form-dialog h2{line-height:1.5}@media(max-width:700px){.editor-fields{grid-template-columns:1fr}.app-sidebar{padding-top:22px}.app-sidebar .brand{padding-bottom:20px}.nav-link{padding:9px 14px}}
.export-link{padding:9px 15px;border:1px solid #caddd7;border-radius:7px;background:#f1f8f5;font-size:12px;font-weight:600}.report-status:not(:empty){background:transparent!important;border:0!important;color:#8b9ba4!important;padding:0!important;margin:12px 0!important}.app-shell main>p:not(#message):not(#network){font-size:12px;color:#8798a1}
[hidden]{display:none!important}.pos-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow:auto}.pos-tab{padding:8px 2px 14px;color:#82939c;font-size:13px;white-space:nowrap;border-bottom:2px solid transparent}.pos-tab.active{color:var(--teal);border-bottom-color:var(--teal);font-weight:650}
#shift{display:flex;align-items:center;gap:20px;padding:14px 22px;margin-bottom:18px}#shift h3{margin:0;font-size:13px}#shift h3:after{display:none}#shift p{margin:0;color:#69818b;font-size:12px}#shift button{margin-left:auto}.layout .panel{margin:0 0 20px}#cashier .panel{min-height:380px}#cashier:has(#products:empty) #products:after{content:"暂无在售商品，请联系总部配置";font-size:13px;color:#8d9ba3;grid-column:1/-1;padding:24px 0}@media(max-width:700px){#shift{gap:10px;padding:12px}#shift p{font-size:11px}#shift button{font-size:12px}}

.supply-product-photo{width:100%;max-height:180px;object-fit:cover;border-radius:10px;margin-bottom:14px}.upload-preview{width:100%;max-height:160px;object-fit:contain;display:block;margin:10px 0;border-radius:8px}.form-fields label:has(input[type=file]){grid-column:1/-1}
.language-switch{flex:0 0 auto!important;min-width:70px;background:white!important;color:#087e80!important;border:1px solid #cbdeda!important;border-radius:8px!important;padding:9px 12px!important;margin:0!important;font-size:13px!important;line-height:20px;white-space:nowrap}.language-switch:hover{background:#eaf6f2!important}.language-switch:focus-visible{outline:3px solid #69b8aa;outline-offset:2px}.login-language{position:absolute;top:20px;right:24px;z-index:5;width:auto!important;height:auto!important}.top-actions{flex-wrap:wrap}.nav-link{line-height:1.3}html[lang=en] .nav-link{font-size:12px}html[lang=en] #cashier:has(#products:empty) #products:after{content:"No available products. Contact HQ to configure products."}html[lang=en] .page-heading h1{line-height:1.25}html[lang=en] .cash-checkout .cash-shortcuts button{font-size:12px}@media(max-width:800px){.login-language{top:18px;right:18px}.login-story .brand{padding-right:72px}}

.brand-logo{display:block;width:58px;height:64px;object-fit:contain;flex:none}.top-brand{flex:none;display:block}.top-brand .brand-logo{width:42px;height:46px}.app-topbar .breadcrumb{margin-right:auto}.app-sidebar .brand{padding-left:0;gap:8px}.app-sidebar .brand strong{font-size:16px;letter-spacing:1px}@media(max-width:700px){.top-brand{margin-right:auto}.top-brand .brand-logo{width:36px;height:40px}}
