body.auth-pending>.app,body.auth-pending>.toast{display:none}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(at top left,#dce8ff,transparent 65%),#f3f6fb}.auth-card{width:min(460px,100%);background:#fff;padding:32px;border:1px solid #e1e8f3;border-radius:18px;box-shadow:0 16px 48px #14213d12}.auth-brand{color:#2368f5;font-size:14px;font-weight:700}.auth-card h1{font-size:25px;margin:10px 0}.auth-card p{font-size:14px;color:#69788e;line-height:1.7}.auth-form{display:grid;gap:16px;margin-top:24px}.auth-form label{display:grid;gap:7px;font-size:14px}.auth-form input,.auth-form select{border:1px solid #cbd5e6;padding:12px;border-radius:9px;font:inherit;width:100%;min-width:0}.auth-error{color:#b32c36!important;min-height:22px;margin:0}.auth-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 20px;padding:14px 16px;border:1px solid #dbe4f2;background:#fff;border-radius:12px;font-size:14px}.auth-toolbar strong{margin-right:auto}.access-table .btn{padding:7px 10px;margin:3px}.audit-json{font:13px/1.7 monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7fc;padding:16px;border-radius:10px;max-height:400px;overflow:auto}.role-permissions{font-size:14px;line-height:1.9;background:#f1f5fc;border-radius:10px;padding:15px}.auth-hidden{display:none!important}.customer-app{max-width:720px;margin:24px auto;padding:0 18px 100px}.customer-app input,.customer-app textarea{font:inherit;padding:11px;border:1px solid #ccd5e4;border-radius:8px;width:100%}.customer-app label{display:grid;gap:6px;font-size:14px;margin:12px 0}.customer-app .shop-count input{width:80px}.customer-orders{font-size:14px;line-height:1.8}.account-footer{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}@media(max-width:560px){.auth-card{padding:24px}.auth-toolbar{font-size:13px}.auth-toolbar strong{width:100%}}

/* Desktop workspace, 2026-10-30: shared with the mobile blue/white identity. */
:root{--ink:#21334f;--muted:#7b8ba3;--line:#e6edf6;--bg:#f3f6fb;--blue:#3269ed;--blue2:#edf3ff;--shadow:0 5px 22px rgba(35,58,96,.035)}
body{font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,select,textarea{font-family:inherit}button{transition:background .16s,border-color .16s,box-shadow .16s}button:focus-visible,a:focus-visible{outline:3px solid #a3c1ff;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:0;border-color:#729bf6!important;box-shadow:0 0 0 3px #3269ed14}button:disabled{transform:none!important;box-shadow:none!important}
.app>.sidebar{width:224px;flex-shrink:0;position:sticky;top:0;height:100vh;overflow-y:auto;padding:28px 14px 16px;background:linear-gradient(180deg,#172b4d,#14233f);scrollbar-width:thin;scrollbar-color:#3a4b68 transparent}.sidebar .brand{padding:0 14px 27px;gap:12px;font-size:20px;letter-spacing:1px}.sidebar .brand-mark{width:37px;height:37px;background:#3d77f4;border-radius:12px;box-shadow:0 5px 18px #07172b40;font-size:19px}.sidebar .store{background:#ffffff06;border:1px solid #ffffff12;padding:15px 14px;margin:0 8px 23px;border-radius:12px;color:#8197ba;font-size:11px}.sidebar .store b{font-size:12px;color:#d1dbee;margin-bottom:6px}.sidebar .nav{gap:5px}.sidebar .nav button{min-height:43px;padding:11px 15px;border-radius:9px;font-size:13px;color:#9cadc8;font-weight:500}.sidebar .nav button.active{background:#3269ed;color:#fff;box-shadow:0 5px 15px #081b4530}.sidebar .nav button:hover:not(.active){background:#ffffff09;color:#edf3ff}.sidebar .nav i{width:24px;font-size:16px;opacity:.9}.sidebar-foot{padding:30px 16px 5px;color:#697f9f;font-size:11px;letter-spacing:.3px}
.app>.main{max-width:1640px;padding:32px 36px 64px;margin:0 auto;min-width:0}.main .top{margin-bottom:27px;gap:24px}.main .eyebrow{font-size:10px;letter-spacing:2px;color:#91a2bb;font-weight:600;margin-bottom:9px}.main .title{font-size:28px;letter-spacing:.5px;font-weight:750;color:#1b2e4b}.main .date{font-size:12px;color:#8e9db2;margin-top:7px}.main .actions{align-items:center;flex-wrap:wrap}.btn{min-height:36px;border-radius:8px;font-size:12px;padding:9px 14px;font-weight:550;line-height:1.4;box-shadow:0 1px 2px #1b2e4b03}.btn:hover:not(:disabled){transform:none;border-color:#c2d3f4;background:#f6f9ff;color:#3269ed}.btn.primary{background:#3269ed;border-color:#3269ed;box-shadow:0 4px 10px #3269ed18;color:white}.btn.primary:hover:not(:disabled){background:#245add;color:#fff;border-color:#245add}
.main .auth-toolbar{border:1px solid #e4ebf5;padding:12px 16px;border-radius:12px;margin-bottom:22px;background:#ffffffb8;color:#7c8da6;font-size:12px;gap:9px}.auth-toolbar strong{font-size:12px;font-weight:500;color:#627793}.main .grid{gap:18px}.main .stat{position:relative;padding:22px 24px;border:1px solid #e6edf6;border-radius:15px;box-shadow:var(--shadow)}.stat .stat-head{font-size:12px;color:#8593a8}.stat .stat-icon{width:36px;height:36px;border-radius:11px;font-size:18px}.stat .stat-num{font-size:33px;letter-spacing:-.7px;font-weight:700;margin:13px 0 9px;color:#233b60;font-variant-numeric:tabular-nums}.stat .stat-note{font-size:11px;color:#99a5b7}.main .columns{gap:20px;margin-top:22px;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr)}.main .panel{border:1px solid #e4ebf5;border-radius:15px;box-shadow:var(--shadow);min-width:0}.panel .panel-head{padding:20px 22px;border-bottom:1px solid #edf1f7;gap:15px;flex-wrap:wrap}.panel .panel-title{font-size:15px;font-weight:650;color:#283d5c}.panel .panel-sub{color:#96a3b6;font-size:11px;margin-top:5px}.panel .link{font-size:11px}.table{font-variant-numeric:tabular-nums}.panel .table th,dialog .table th{color:#8a99ad;background:#f8fafd;font-weight:500;font-size:11px;padding:13px 20px;border-bottom:1px solid #eaf0f7}.panel .table td,dialog .table td{padding:16px 20px;border-bottom:1px solid #eff3f8;color:#52637c;font-size:12px}.table tbody tr:hover td{background:#f7faff}.table .sku b{font-weight:600;font-size:12px;color:#334967}.table .sku small{font-size:10px;color:#9ba7b8}.thumb{width:37px;height:37px;border-radius:11px;background:#edf3ff;color:#7091cb}.tag{font-size:10px;border-radius:6px;padding:5px 8px;display:inline-block;font-weight:500}.tag.ok{background:#eaf7f1;color:#389778}.tag.low{background:#fff0ef;color:#d86e6c}.tag.mid{background:#fff5e6;color:#b98b40}.panel .alert-list{padding:5px 22px 14px}.alert h4{font-weight:600;font-size:12px;color:#405573}.alert p{color:#96a2b4;font-size:11px;line-height:1.8}.alert .tiny{font-size:10px}.panel .quick{padding:20px 22px;gap:12px}.quick button{background:#f8faff;border:1px solid #e9eff8;padding:19px 15px;border-radius:12px}.quick button:hover{border-color:#b8cffc;background:#f0f5ff}.quick b{font-weight:600;color:#3d5578}.quick span{color:#94a3b9;line-height:1.8}.quick .qicon{font-size:22px;margin-bottom:14px}.stock-list{padding:4px 22px 18px}.bar{height:5px;background:#eff3f9}.fill{background:#608cf0}.stock-row strong{font-weight:500;color:#62748f}.stock-meta{color:#9daabd;line-height:1.8}
.main .sales-section{margin-top:24px;scroll-margin-top:24px}.sales-tools{gap:8px}.sales-tools input,.sales-tools select,.panel-head>input{min-height:36px;border:1px solid #e1e9f4;border-radius:8px;background:#fafcff;font-size:12px;padding:9px 12px;color:#4f6382}.sales-tools input::placeholder{color:#a1afc2}.sales-summary{padding:14px 22px;background:#f8faff;border-bottom:1px solid #edf2f8;font-size:12px;color:#8a9ab1}.sales-summary b{font-weight:600;color:#456187}.sales-ops{gap:5px;flex-wrap:wrap}.sales-ops .btn{font-size:11px;min-height:29px;padding:6px 9px}.sales-small{font-size:11px;color:#98a5b8}.role-permissions{font-size:12px;background:#f5f8fd;color:#7b8ea9;line-height:1.9;border:1px solid #edf2f8;margin:16px 20px;padding:13px 16px}
dialog{border:1px solid #e4ebf5;border-radius:18px;padding:28px;box-shadow:0 30px 110px #10244930;color:#2a405e}dialog::backdrop{background:#14284373;backdrop-filter:blur(3px)}.purchase-head{gap:16px;margin-bottom:17px}.purchase-head h2{font-size:21px;letter-spacing:.3px;color:#283e60}.purchase-head>.btn{background:#f5f8fc;border-color:#e8eef7;color:#8395b1}.purchase-hint,.sales-note{font-size:12px;color:#8798b0;line-height:1.9}.purchase-fields{gap:20px;margin:22px 0}.purchase-fields label,.sales-label,.auth-form label{font-size:12px;color:#7285a1;gap:9px}dialog input,dialog select,dialog textarea{border:1px solid #dfe7f3;border-radius:9px;padding:11px 12px;background:#fbfcff;color:#314b70;font-size:13px}dialog .purchase-footer{padding-top:20px;border-top:1px solid #edf2f8;margin-top:24px}.purchase-notice{background:#fff8eb;border:1px solid #f8edcf;color:#a28654;font-size:12px;line-height:1.9;border-radius:10px}.purchase-check{color:#8292a8;font-size:12px}.audit-json{background:#f7f9fd;border:1px solid #e7edf6;font-size:12px}.toast{background:#233f69;border-radius:12px;box-shadow:0 8px 30px #172e5529}
body .auth-page{background:radial-gradient(ellipse at 20% 15%,#e2ecff,transparent 55%),#f4f7fc}.auth-card{border-radius:22px;padding:40px;border:1px solid #e2eaf6;box-shadow:0 20px 70px #254b8b0c}.auth-card .auth-brand{letter-spacing:1px;color:#3269ed}.auth-card h1{font-size:28px;margin:17px 0;color:#263e60}.auth-card p{font-size:13px;color:#8a9bb3}.auth-form input{border-color:#e0e8f4;border-radius:10px;background:#f9fbff}.auth-card .auth-form{gap:20px}
@media(min-width:1600px){.app>.main{padding-left:48px;padding-right:48px}.main .stat{padding:25px 28px}}
@media(max-width:1100px){.app>.sidebar{width:190px;padding-left:10px;padding-right:10px}.app>.main{padding:26px 22px}.main .columns{grid-template-columns:1fr}.panel-head .sales-tools{width:100%}.main .top{align-items:flex-start}.main .actions{justify-content:flex-end}}
@media(max-width:900px){.app>.sidebar{width:70px;padding:24px 9px}.sidebar .brand{padding:0 7px 24px}.sidebar .brand-mark{width:37px;height:37px;flex-shrink:0}.sidebar .nav button{padding:12px 8px}.sidebar .nav i{width:auto}.app>.main{padding:24px 18px}.main .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.app>.main{padding:20px 12px}.main .top{display:block}.main .title{font-size:24px}.main .actions{justify-content:flex-start}.main .stat{padding:17px 14px}.stat .stat-num{font-size:25px}.main .grid{gap:10px}.panel .panel-head{padding:16px}.panel .table td,.panel .table th{padding:13px 15px}dialog{padding:20px}.purchase-fields{grid-template-columns:1fr}.auth-card{padding:27px}.main .columns{gap:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.app>.sidebar,.auth-toolbar{display:none!important}.app>.main{padding:0;max-width:none}.panel{box-shadow:none!important}dialog::backdrop{background:white}}
/* Keep secondary information legible during long warehouse sessions. */
.main .date,.panel .panel-sub,.stat .stat-note,.table .sku small{color:#7b8ca5}.panel .table td,dialog .table td{font-size:13px;color:#4c607e}.panel .table th,dialog .table th{font-size:12px;color:#788ba5}.purchase-hint,.sales-note{font-size:13px;color:#7588a3}.purchase-fields label,.sales-label,.auth-form label{font-size:13px;color:#647b9a}.sidebar .nav button:not(:has(i))::before{content:'◇';width:24px;display:inline-block;text-align:left;flex-shrink:0;font-size:16px;color:#9ab3da}.sidebar .nav button.active::before{color:white}.main .actions{max-width:74%}.main .top{align-items:center}.main .auth-toolbar{box-shadow:none}.sales-banner{font-size:12px;color:#7187a8;background:#edf3fd;border-color:#dce7f8}.panel .table-wrap{scrollbar-width:thin;scrollbar-color:#cbd8eb #f8faff}input[type=file]::file-selector-button{border:1px solid #dce6f5;border-radius:6px;padding:6px 12px;background:#eef4ff;color:#597cb6;margin-right:12px;cursor:pointer}
@media(max-width:1100px){.main .actions{max-width:65%}}
@media(max-width:560px){.main .actions{max-width:none}}
.main .panel>input:not([type=checkbox]):not([type=radio]){display:block;width:min(380px,calc(100% - 40px));min-height:38px;margin:16px 20px 12px;border:1px solid #e1e9f4;border-radius:8px;background:#fafcff;padding:9px 12px;color:#506887;font-size:12px}.main .panel>input::placeholder{color:#9aaac0}
/* Brand and daily workflow polish. */
.brand-lockup{position:relative;width:225px;height:78px;overflow:hidden;margin:0 0 18px;background:#fff;border-radius:8px}.brand-lockup img{position:absolute;width:307px;height:154px;max-width:none;left:-41px;top:-39px}.sidebar .brand-icon-image{background:transparent;box-shadow:none;object-fit:contain;width:42px;height:42px;border-radius:0}.today-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}.today-metric{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;background:#eaf1ff;border:1px solid #dce7f9;color:#45658f;border-radius:13px;padding:17px 20px;cursor:pointer}.today-metric>span{font-size:12px}.today-metric>b{font-size:23px;color:#3269ed;font-variant-numeric:tabular-nums}.today-metric>small{font-size:10px;color:#879fc2}.delivery-progress{display:flex;gap:0;padding:12px 0;min-width:215px}.delivery-step{display:flex;flex-direction:column-reverse;align-items:center;flex:1;position:relative;font-size:9px;color:#9caac0;gap:4px}.delivery-step:before{content:'';height:2px;background:#e5ebf5;position:absolute;top:8px;left:-50%;width:100%;z-index:0}.delivery-step:first-child:before{display:none}.delivery-step i{position:relative;z-index:1;font-style:normal;width:18px;height:18px;line-height:18px;background:#eef2f8;color:#9aacc5;border-radius:50%;text-align:center}.delivery-step.done i{color:white;background:#70b29b}.delivery-step.current{color:#3269ed}.delivery-step.current i{color:white;background:#3269ed}.delivery-step.done:before{background:#9fc9b9}.delivery-step.cancelled i{background:#f3edef;color:#b48f98}.stock-level{display:inline-block;padding:4px 9px;border-radius:6px;font-size:11px}.stock-level.danger{color:#c45e66;background:#fff0f1}.stock-level.warning{color:#aa7a2b;background:#fff5df}.stock-level.ok{color:#368c70;background:#ebf8f1}.product-photo{position:relative;background:#edf3fd;border-radius:12px;overflow:hidden;max-width:100%;margin-bottom:12px}.product-photo img{width:100%;height:165px;object-fit:contain;display:block}.photo-note{position:absolute;bottom:8px;left:8px;background:#ffffffe0;border-radius:5px;font-size:10px;color:#6e85a5;padding:4px 6px}.photo-manager{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}.photo-manage-card{padding:16px;border:1px solid #e4ebf5;border-radius:12px;min-width:0}.photo-manage-card label{display:grid;gap:12px;font-size:13px;color:#5b7091}.photo-manage-card input{width:100%;font-size:11px}.customer-app .shop-card{border-radius:16px}.customer-app .product-photo img{height:210px}.customer-app .brand-lockup{margin-top:15px}.network-busy:after{content:'正在同步数据…';position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#274a7a;color:#fff;padding:9px 18px;border-radius:999px;box-shadow:0 5px 20px #17335720;z-index:9999;font-size:12px;pointer-events:none}.form-section-caption{font-size:13px;color:#4c6fa4;font-weight:600;border-left:3px solid #7b9fed;padding-left:10px;margin:22px 0 15px}.feature-nav{width:21px;height:21px;object-fit:contain;vertical-align:middle}.sidebar .nav button:has(.feature-nav):before{display:none}.empty-state{padding:30px;text-align:center;color:#879cb9}.empty-state:before{content:'◇';display:block;font-size:36px;color:#bbcee9;margin-bottom:9px}
@media(max-width:1050px){.today-board{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-manager{grid-template-columns:1fr}}
@media(max-width:560px){.today-metric{padding:14px}.brand-lockup{transform-origin:left center;transform:scale(.9);margin-bottom:5px}}
.sidebar .feature-nav{filter:brightness(1.6) saturate(.65)}.purchase-empty:before{content:'';display:block;width:54px;height:54px;background:url('/ui-icons/empty.png') center/contain no-repeat;opacity:.65;margin:10px auto 13px}.today-metric:hover{background:#e1ebff;border-color:#c5d8fb}.auth-card .brand-lockup{margin-bottom:18px}dialog .brand-lockup{margin:auto}.alert-list{max-height:380px;overflow:auto}.table-thumbnail{width:38px;height:38px;border-radius:8px;object-fit:contain;background:#f1f5fc;margin-right:10px;vertical-align:middle}
.boot-state{display:none}.auth-pending>.boot-state{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:#f4f7fc;color:#5a7499}.boot-state img{width:58px;height:58px;object-fit:contain;margin-bottom:8px}.boot-state span{font-size:12px;color:#94a6bf}.boot-state>div{width:220px;height:7px;border-radius:999px;background:linear-gradient(100deg,#e0e9f7,#fafcff,#e0e9f7);background-size:200% 100%;animation:brand-loading 1.4s infinite}.auth-pending:has(.auth-page)>.boot-state{display:none}@keyframes brand-loading{from{background-position:100% 0}to{background-position:-100% 0}}
.customer-order-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.customer-order-line{padding:7px 0;border-bottom:1px solid #eef2f8;font-size:13px;color:#627898}.customer-orders .tag.neutral{background:#eef1f6;color:#8594ab}.customer-orders .delivery-progress{max-width:440px;margin:12px 0}.customer-orders>.shop-card{margin-top:14px}.shop-search-empty:empty{display:none}.shop-search-empty{margin:0 0 15px;text-align:center}.shop-card[hidden]{display:none!important}
.customer-orders .delivery-step{font-size:11px}.customer-orders .delivery-step i{width:22px;height:22px;line-height:22px;font-size:11px}.customer-orders .delivery-step:before{top:10px}
.quick .entry-thumb{width:82px;height:82px;margin:0 auto 12px;border-radius:15px;background-color:#fff;background-image:url('/entry-illustrations.jpg');background-size:300% 200%;background-repeat:no-repeat}.entry-inventory{background-position:0 0}.entry-purchase{background-position:50% 0}.entry-assembly{background-position:100% 0}.entry-orders{background-position:0 100%}.entry-customers{background-position:50% 100%}.entry-printer{background-position:100% 100%}.panel .quick button{text-align:center;background:white;border:1px solid #e5edf9;padding:14px 9px 17px;border-radius:14px}.panel .quick button:hover{background:#f7faff;border-color:#bfd2f6;box-shadow:0 6px 16px #3269ed08}.quick b{font-size:13px}.quick span{font-size:11px;line-height:1.7;margin-top:6px}.panel .quick{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:560px){.panel .quick{grid-template-columns:repeat(2,minmax(0,1fr))}.quick .entry-thumb{width:74px;height:74px}}
.entry-sprite{display:block;flex-shrink:0;background-color:#fff;background-size:300% 200%;background-repeat:no-repeat;border-radius:7px}.entry-nav-art{width:31px;height:31px;box-shadow:0 1px 3px #0000000a}.sidebar .nav i{width:33px}.sidebar .nav button{gap:9px;padding-top:9px;padding-bottom:9px}.entry-stat-art{width:38px;height:38px;border-radius:9px}.stat .stat-icon{background:transparent;width:38px;height:38px}@media(max-width:900px){.sidebar .nav .entry-nav-art{display:block!important;width:30px;height:30px}.sidebar .nav i{width:30px}.sidebar .nav button{padding-left:8px;padding-right:8px}}
.quick .entry-assembly{background-image:url('/entry-operations.jpg');background-position:100% 0}.quick .entry-labels{background-image:url('/entry-operations.jpg');background-position:0 100%}
.edit-order-line{border:1px solid #e1e9f5;background:#fbfcff;border-radius:12px;padding:18px;margin:16px 0}.edit-order-line select{width:100%;max-width:100%;white-space:normal}.edit-order-line .purchase-fields{margin-bottom:0}.edit-order-line .purchase-head{margin-bottom:12px}.edit-order-line label{font-size:12px;color:#778ba6}
/* 腾之杰 · 业务界面精修：待办、订单、选品、库存、表单与订货。 */
:root{--focus-ring:#7aa6ff;--surface-line:#e2eaf5}button,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #b8d0ff;border-color:#7fa8f5;background:#fff}input[aria-invalid=true],textarea[aria-invalid=true],select[aria-invalid=true]{border-color:#d55d70;background:#fff7f8}.main .panel{border-color:var(--surface-line);box-shadow:0 5px 24px #1f407005}.main .panel-title{font-size:16px;color:#233d61}.main .top .title{font-size:29px;letter-spacing:-.7px}.sidebar .nav{gap:5px}.sidebar .nav button{position:relative;min-height:47px;transition:background .15s,color .15s}.sidebar .nav button.active,.sidebar .nav button[aria-current=page]{background:#2854a7;color:#fff;box-shadow:inset 3px 0 #9ac2ff}.sidebar .nav button:hover{background:#24487f}.workspace-heading{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:25px 0 13px}.workspace-heading h2{font-size:17px;margin:0;color:#294568}.workspace-heading p{margin:5px 0 0;color:#7185a1;font-size:12px}.workspace-updated{font-size:11px;color:#7a8da7;white-space:nowrap}.today-board{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.today-metric{position:relative;overflow:hidden;min-height:125px;background:#fff;border:1px solid #dfe8f5;border-radius:15px;padding:18px;box-shadow:0 4px 15px #1c416805;transition:transform .15s,box-shadow .15s}.today-metric:after{content:'↗';position:absolute;right:16px;top:16px;color:#b1c4e3;font-size:19px}.today-metric>span{font-size:13px;font-weight:600;color:#607a9b}.today-metric>b{font-size:28px;line-height:1.45;color:#3169dc}.today-metric>small{font-size:11px;color:#8294af}.today-metric[data-tone=confirm]{background:#f2f6ff;border-color:#d8e4fc}.today-metric[data-tone=warning]{background:#fff9ef;border-color:#f0e3ca}.today-metric[data-tone=warning]>b{color:#ae752c}.today-metric:hover{transform:translateY(-2px);box-shadow:0 9px 25px #284e8410}.sales-tools input[type=search],.sales-tools input{background:#f7f9fd;border-color:#dfe7f3;border-radius:10px}.sales-summary{gap:14px;padding:15px 22px;background:#f5f8fe}.sales-summary>span{background:#fff;border:1px solid #e5edf8;border-radius:8px;padding:8px 12px;font-size:12px}.sales-summary b{font-variant-numeric:tabular-nums;color:#295eb7}.order-client{display:block;font-size:15px;color:#29476f}.order-product-preview{display:grid;gap:4px;margin:12px 0 5px;max-width:290px;white-space:normal;font-size:12px;line-height:1.7;color:#657d9e}.order-product-preview small{color:#92a1b7}.main #sales-orders .table td{vertical-align:top;padding-top:22px;padding-bottom:22px}.main #sales-orders .table td:nth-child(3){font-size:17px;font-weight:700;color:#285ba7;font-variant-numeric:tabular-nums}.main #sales-orders .table td:last-child{min-width:185px;max-width:260px}.sales-ops{flex-wrap:wrap;gap:7px;align-items:flex-start}.sales-ops .btn{font-size:12px;min-height:36px;border-radius:8px;padding:8px 12px}.order-more summary{list-style:none;cursor:pointer;font-size:12px;color:#637da3;padding:9px 12px;border:1px solid #e3eaf4;border-radius:8px;min-height:36px;background:#f8faff}.order-more summary:after{content:' ⌄'}.order-more summary::-webkit-details-marker{display:none}.order-more[open]{flex-basis:100%}.order-more-actions{display:flex;gap:7px;flex-wrap:wrap;padding:10px 0 0}.order-more:not(:has(button:not(.auth-hidden))){display:none}.delivery-progress{padding:16px 0 12px;min-width:235px;max-width:340px}.delivery-step{font-size:11px;color:#8799b2;gap:7px}.delivery-step i{width:24px;height:24px;line-height:24px;font-size:11px}.delivery-step:before{top:11px;background:#e6edf7}.delivery-step.done{color:#508e7e}.delivery-step.current{font-weight:650;color:#3169dc}.delivery-step.current i{box-shadow:0 0 0 4px #ebf1ff}.stock-product-title{display:flex;gap:12px;align-items:center;white-space:normal;min-width:220px;max-width:360px}.stock-product-title img{width:42px;height:42px;object-fit:contain;background:#f0f5ff;border-radius:10px;flex-shrink:0}.stock-product-title small{display:block;font-size:11px;color:#8194ae;margin-top:5px;line-height:1.6}.available-cell>b{font-size:20px;color:#2c629d;font-variant-numeric:tabular-nums}.stock-health-track{height:4px;border-radius:6px;background:#eaf0f8;width:85px;margin-top:8px;overflow:hidden}.stock-health-track i{display:block;height:100%;background:#51a88b;border-radius:6px}.stock-health-track[data-level=warning] i{background:#d8a345}.stock-health-track[data-level=danger] i{background:#d96b7a}.bom-overview{min-width:235px;max-width:410px;white-space:normal}.bom-material{display:flex;justify-content:space-between;gap:20px;padding:6px 0;border-bottom:1px dashed #e6edf7;font-size:12px}.bom-material b{white-space:nowrap;font-weight:600;color:#5d7da8}.bom-capacity{display:block;color:#497b9f;background:#eef7fc;border-radius:6px;padding:8px 10px;font-size:11px;margin-top:10px}.bom-capacity-preview{padding:16px 18px;border:1px solid #d8e6fb;background:#eef5ff;border-radius:12px;color:#3c6baf;font-weight:600;font-size:14px;margin:18px 0}.designed-dialog{max-height:90dvh;overflow-y:auto;overscroll-behavior:contain;scroll-padding-bottom:100px}.designed-dialog>.purchase-head{position:sticky;top:-28px;z-index:4;background:#fff;padding-top:12px;padding-bottom:12px;border-bottom:1px solid #e8eef8}.designed-dialog .sales-label{margin-bottom:12px}.designed-dialog .order-checkout{position:sticky;bottom:-28px;z-index:3;margin:22px -28px -28px;padding:16px 28px max(16px,env(safe-area-inset-bottom));border-top:1px solid #dde7f6;box-shadow:0 -8px 24px #24447407;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.order-checkout>strong{font-size:20px;color:#2d65c5;font-variant-numeric:tabular-nums}.selection-preview{display:flex;gap:12px;align-items:center;margin:10px 0 14px;padding:10px 12px;background:#f1f6ff;border:1px solid #e2ebf9;border-radius:10px;white-space:normal}.selection-preview[hidden]{display:none}.selection-preview .product-photo{width:48px;height:48px;margin:0;flex-shrink:0;border-radius:8px}.selection-preview .product-photo img{width:48px;height:48px}.selection-preview .photo-note{display:none}.selection-preview b{font-size:12px;line-height:1.7}.selection-preview small{display:block;font-size:11px;color:#7f94b1}.picture-picker-button{margin-top:8px;color:#2d67bc;background:#eff5ff;border-color:#d7e5fc}.product-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.product-choice{position:relative;border:1px solid #e2eaf5;border-radius:12px;padding:12px;background:#fff;text-align:left;color:#3c587b;cursor:pointer;min-width:0}.product-choice:hover,.product-choice.selected{border-color:#80a7f2;background:#f4f8ff}.product-choice.selected:after{content:'已选';position:absolute;top:10px;right:10px;background:#3269ed;color:#fff;font-size:10px;border-radius:5px;padding:3px 7px}.product-choice .product-photo img{height:110px}.product-choice b,.product-choice small,.product-choice>span{display:block;white-space:normal;overflow-wrap:anywhere}.product-choice b{font-size:13px;line-height:1.7}.product-choice small{font-size:10px;color:#8296b1;line-height:1.7;margin:5px 0}.product-choice>span{font-size:12px;color:#497caf}.empty-state{line-height:1.9;border-radius:12px;background:#f8faff;white-space:normal}.empty-state:before{content:'';height:62px;width:62px;margin:0 auto 12px;background:url('/ui-icons/empty.png') center/contain no-repeat}.purchase-empty{white-space:normal!important;line-height:1.9;padding:36px 18px!important}.customer-app{max-width:1000px;padding-bottom:130px}.customer-hero{position:relative;overflow:hidden;border:1px solid #dce7fb;border-radius:20px;padding:22px 28px 26px;background:linear-gradient(110deg,#f7faff 25%,#e4eeff);margin:20px 0 24px}.customer-hero:after{content:'';position:absolute;right:-30px;top:-5px;width:260px;height:240px;background:url('/product-demo.jpg') center/contain no-repeat;mix-blend-mode:multiply;opacity:.27;pointer-events:none}.customer-hero>*{position:relative;z-index:1}.customer-hero h1{font-size:28px;line-height:1.5;max-width:75%;letter-spacing:-.7px;color:#284975;margin:12px 0}.customer-hero .sales-note{max-width:72%;color:#6481a6}.customer-hero .brand-lockup{background:transparent;mix-blend-mode:multiply}.shop-categories{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 20px}.shop-categories .btn{border-radius:999px;font-weight:500;font-size:13px;padding:9px 17px}.shop-categories .btn.active{color:#2862cf;background:#eaf2ff;border-color:#bed3fb}.customer-order-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.customer-order-form>.shop-card{margin:0;min-width:0;position:relative;transition:border-color .15s,box-shadow .15s}.customer-order-form>.shop-card:last-child{grid-column:1/-1}.customer-order-form .product-photo img{height:180px}.customer-order-form .shop-card h3{font-size:16px;line-height:1.7;color:#314f77}.customer-order-form .shop-count input{width:60px;min-height:44px}.customer-order-form .shop-count button{min-width:44px;min-height:44px;padding:8px}.customer-order-form .shop-price{font-size:19px}.customer-order-form>.product-selected{border-color:#84a9ef;box-shadow:0 0 0 2px #eaf1ff}.customer-order-form>.product-selected:before{content:'已加入清单';position:absolute;top:12px;right:12px;z-index:2;background:#3269ed;color:#fff;border-radius:6px;font-size:10px;padding:5px 8px}.customer-checkout{position:fixed;z-index:5;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px max(22px,calc((100vw - 956px)/2)) calc(16px + env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid #dce6f5;box-shadow:0 -6px 20px #274b7408;backdrop-filter:blur(12px)}.customer-checkout>b{font-size:17px;color:#2b60b4;font-variant-numeric:tabular-nums}.customer-checkout .btn{min-height:46px;padding:12px 25px}.customer-order-form .auth-error:not(:empty){padding:12px 15px;border-radius:9px;background:#fff2f4;margin-bottom:18px}.customer-order-form label{color:#617b9d}.customer-order-form input,.customer-order-form textarea{background:#f9fbff;border-color:#dce6f4}.customer-orders{margin-top:28px}.customer-orders>h2{color:#2b476c;font-size:21px}.customer-order-head b{font-size:13px;overflow-wrap:anywhere}.customer-orders .delivery-progress{max-width:500px}.auth-error:not(:empty){line-height:1.8}.network-busy:after{max-width:calc(100vw - 30px);white-space:nowrap}.toast{z-index:12;max-width:calc(100vw - 32px);line-height:1.7}.boot-state{color:#56749e}
@media(max-width:1100px){.today-board{grid-template-columns:repeat(3,minmax(0,1fr))}.main .top .title{font-size:25px}.product-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.workspace-heading{align-items:start}.workspace-updated{display:none}.today-board{grid-template-columns:repeat(2,minmax(0,1fr))}.today-metric{min-height:115px;padding:16px}.today-metric>b{font-size:26px}.main #sales-orders>.table-wrap{overflow:visible;padding:12px;background:#f5f8fd}.main #sales-orders>.table-wrap>.table,.main #sales-orders .table tbody{display:block;width:100%}.main #sales-orders .table thead{display:none}.main #sales-orders .table .order-record{display:flex;flex-wrap:wrap;border:1px solid #dfe8f5;border-radius:14px;padding:16px;margin:0 0 12px;background:#fff;gap:13px}.main #sales-orders .table .order-record>td{display:block;white-space:normal;border:0;padding:0;min-width:0;max-width:none;flex:1 1 calc(50% - 13px)}.main #sales-orders .table .order-record>td:first-child,.main #sales-orders .table .order-record>td:last-child{flex-basis:100%}.main #sales-orders .table .order-record>td:nth-child(n+2):nth-child(-n+5):before{content:attr(data-label);display:block;color:#8295b1;font-size:11px;margin:0 0 7px;font-weight:400}.main #sales-orders .table .order-record>td:last-child{border-top:1px solid #edf2fa;padding-top:14px}.order-product-preview{max-width:none}.delivery-progress{min-width:0;max-width:none}.sales-ops .btn,.order-more summary{min-height:44px;padding:11px 13px}.customer-hero{padding:18px}.customer-hero h1{font-size:23px;max-width:90%}.customer-hero .sales-note{max-width:95%}.customer-order-form{grid-template-columns:1fr}.customer-order-form .shop-product-bottom{gap:12px;flex-wrap:wrap}.customer-checkout{flex-wrap:wrap;padding-left:18px;padding-right:18px}.customer-checkout>b{font-size:15px;line-height:1.7}.customer-checkout .btn{flex-shrink:0}.customer-app{padding-left:14px;padding-right:14px}.designed-dialog>.purchase-head{top:-20px}.designed-dialog .order-checkout{bottom:-20px;margin-left:-20px;margin-right:-20px;margin-bottom:-20px;padding-left:20px;padding-right:20px}.designed-dialog .order-checkout .primary{width:100%;min-height:46px}.product-choice{padding:10px}.product-choice .product-photo img{height:90px}.customer-hero:after{opacity:.18}.selection-preview{padding:9px}.main .actions{max-width:none}}
@media(max-height:500px) and (orientation:landscape){.customer-checkout,.designed-dialog .order-checkout,.designed-dialog>.purchase-head{position:static}.customer-checkout{margin:16px 0 0;border-radius:10px}.customer-app{padding-bottom:35px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.actions [data-presentation-duplicate=true]{display:none!important}.top-tools{position:relative;z-index:6}.top-tools>summary{cursor:pointer;list-style:none;font-size:13px;color:#56749e;background:#fff;border:1px solid #e3eaf6;border-radius:10px;padding:11px 15px;min-height:40px}.top-tools>summary:after{content:' ⌄'}.top-tools>summary::-webkit-details-marker{display:none}.top-tools-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:180px;display:grid;gap:7px;padding:10px;background:#fff;border:1px solid #dce7f7;border-radius:12px;box-shadow:0 14px 35px #2545791c}.top-tools-menu .btn{text-align:left;white-space:nowrap;box-shadow:none}.main .actions{align-items:flex-start}.top-tools[open]>summary{border-color:#a8c5f7;color:#3269ed}
.designed-dialog>.purchase-head>.btn{flex-shrink:0;white-space:nowrap;min-width:60px}.designed-dialog>.purchase-head>h2{min-width:0;line-height:1.5;overflow-wrap:anywhere}@media(max-width:700px){.designed-dialog>.purchase-head>h2{font-size:18px}}
@media(max-width:900px){.sidebar .nav button{font-size:0;gap:0;justify-content:center;padding:8px 6px;min-height:48px}.sidebar .nav button i{width:auto}.sidebar .nav button .entry-nav-art{display:block}.sidebar .nav button>span{display:none}}
@media(max-width:560px){.app>.sidebar{width:60px;min-width:60px;padding-left:5px;padding-right:5px}.sidebar .brand{padding:0 0 20px;justify-content:center}.sidebar .brand .brand-icon-image{width:36px;height:36px}.sidebar .nav button{padding:7px 4px}.sidebar .nav .entry-nav-art{width:32px;height:32px}.app>.main{padding-left:11px;padding-right:11px}}
.customer-app h1,.customer-app h2,.customer-app h3,.customer-app .shop-sku,.order-client,.order-product-preview,.order-record .sales-small{overflow-wrap:anywhere}.customer-app.keyboard-open .customer-checkout{position:static;margin-top:18px;border:1px solid #dce6f5;border-radius:10px;box-shadow:none;padding:14px}.customer-app.keyboard-open{padding-bottom:35px}
/* 表格溢出修复：概览完整展示，复杂明细在容器内滚动。 */
.main .columns{align-items:start}.main .overview-stock-table{table-layout:fixed;width:100%;min-width:0}.main .overview-stock-table th,.main .overview-stock-table td{white-space:normal;overflow-wrap:anywhere;padding:16px 12px;vertical-align:middle;line-height:1.65}.main .overview-stock-table th{font-size:11px}.overview-stock-table th:nth-child(1){width:34%}.overview-stock-table th:nth-child(2){width:11%}.overview-stock-table th:nth-child(3){width:25%}.overview-stock-table th:nth-child(4){width:12%}.overview-stock-table th:nth-child(5){width:18%}.overview-product-name{display:block;font-size:13px;font-weight:600;line-height:1.7}.overview-product-sku{display:block;font-size:11px;color:#8197b4;line-height:1.7;margin-top:4px}.overview-submetric{display:block;font-size:11px;color:#7e92b0;line-height:1.8;margin-top:2px}.overview-stock-table .stock-level{font-size:11px;padding:4px 7px;line-height:1.5;max-width:100%;white-space:normal}.table-wrap{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.table-scroll-hint{color:#6c87ae;background:#f1f6ff;font-size:11px;padding:9px 16px;line-height:1.7;border-bottom:1px solid #e5edf9}.table-scroll-hint[hidden]{display:none!important}.table-wrap.has-overflow{box-shadow:inset -10px 0 12px -12px #4d6d9d}.table-wrap:focus-visible{outline:2px solid #7fa8f5;outline-offset:-2px}.purchase-fields>label,.auth-form>label{min-width:0;overflow-wrap:anywhere}.purchase-head h2,.panel-head h2,.panel-head .panel-title{min-width:0;overflow-wrap:anywhere}dialog svg{max-width:100%;height:auto}dialog input[type=checkbox],dialog input[type=radio]{width:18px;height:18px;min-height:18px;padding:0;margin:2px 0;flex-shrink:0;accent-color:#3269ed}dialog label:has(>input[type=checkbox]),dialog label:has(>input[type=radio]){display:flex;align-items:flex-start;gap:9px}.sales-tools{min-width:0}.sales-tools>input{min-width:0;max-width:100%}.panel .table td{overflow-wrap:anywhere}#production .table td:nth-child(1),#material-master .table td:nth-child(1),#sales-customers .table td:nth-child(1){white-space:normal;min-width:160px;max-width:300px}
@media(max-width:560px){.main .overview-stock-table,.main .overview-stock-table tbody{display:block;width:100%}.main .overview-stock-table thead{display:none}.main .overview-stock-table tbody{padding:0 16px}.main .overview-stock-table tr{display:flex;flex-wrap:wrap;gap:10px 14px;padding:17px 0;border-bottom:1px solid #e8eef8}.main .overview-stock-table tr:last-child{border:0}.main .overview-stock-table td{display:block;border:0;padding:0;flex:1 1 calc(50% - 14px);font-size:13px}.main .overview-stock-table td:first-child{flex-basis:100%}.main .overview-stock-table td:not(:first-child):before{content:attr(data-label);display:block;color:#8a9bb3;font-size:11px;margin-bottom:4px}.main .overview-stock-table .overview-product-name{font-size:14px}.main .overview-stock-table td:nth-child(2){order:1}.main .overview-stock-table td:nth-child(3){order:3}.main .overview-stock-table td:nth-child(4){order:4}.main .overview-stock-table td:nth-child(5){order:2}.main .overview-stock-table .stock-level{white-space:normal}.main .columns>.panel .panel-head{align-items:flex-start}.main .columns>.panel .panel-head .link{min-height:32px;display:flex;align-items:center;white-space:nowrap}}
#operations-desk{padding:22px}#operations-desk>.shop-card{margin:16px 0 0;padding:20px}#operations-desk .btn{margin:5px 8px 5px 0}.ocr-regions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.ocr-regions .btn{white-space:normal;line-height:1.6;max-width:100%}

.site-filing{text-align:center;padding:18px 16px calc(18px + env(safe-area-inset-bottom));font-size:12px;line-height:1.8;color:#71809a;overflow-wrap:anywhere}.site-filing a{color:inherit;text-decoration:none}.site-filing a:hover{text-decoration:underline}@media print{.site-filing{display:none}}
