.wf-shell{display:flex;height:100vh;background:#f1f5f8;color:#253e4d}.wf-sidebar{width:246px;min-width:246px;display:flex;flex-direction:column;background:#fff;border-right:1px solid #d0dfe6;padding:16px 12px}.wf-sidebar h1{font-size:23px;margin:5px 8px 16px}.wf-sidebar small{display:block;font-size:12px;color:#638092;margin-top:6px}.wf-sidebar input{width:100%;margin-bottom:12px}.wf-sidebar nav{overflow-y:scroll;scrollbar-gutter:stable;flex:1}.wf-sidebar section{margin-bottom:16px}.wf-sidebar h2{font-size:21px;padding:10px;border-left:5px solid #2b657e;background:#eef5f8;margin:0 0 5px}.wf-group-purchase h2{color:#9c632a;border-color:#c58b42;background:#fcf5e9}.wf-group-sales h2{color:#257158;border-color:#48a585;background:#eaf7f0}.wf-group-keywork h2{color:#66501e;border-color:#c6a044;background:#fbf6e6}.wf-group-production h2{color:#595386;border-color:#8d83ba;background:#f2effa}.wf-nav-item{display:flex;align-items:center}.wf-nav-item button{border:0;background:transparent;padding:10px;text-align:left}.wf-nav-item button:first-child{flex:1;font-size:14px}.wf-nav-item .active{background:#2b6077;color:white;border-radius:7px}.wf-main{flex:1;min-width:0;display:flex;flex-direction:column}.wf-header{height:55px;background:white;border-bottom:1px solid #dde5e9;display:flex;align-items:center;gap:18px;padding:10px 22px}.wf-header span{margin-left:auto}.wf-tabs{display:flex;min-height:43px;overflow-x:auto;background:#e9eff3;gap:4px;padding:5px 8px}.wf-tabs span{display:flex;white-space:nowrap}.wf-tabs button{background:transparent;border:0;padding:7px;font-size:13px}.wf-tabs .active{background:white;border-top:3px solid #2b6077}.wf-main #wf-frames{flex:1;min-height:0;position:relative}.wf-main iframe{border:0;width:100%;height:100%;background:#f1f5f8}.wf-main iframe[hidden]{display:none}.wf-login-choice{display:block;width:100%;margin:10px 0}.wf-embedded .shell>aside{display:none!important}.wf-embedded .shell{grid-template-columns:1fr!important;display:block!important}.wf-embedded .shell>.main{margin-left:0;width:100%}.wf-embedded .topbar{display:none!important}.wf-embedded .workspace{padding:18px}.wf-embedded .cw-heading h1,.wf-embedded .s-heading h1{font-size:25px}.wf-embedded .cw-heading,.wf-embedded .s-heading{margin-bottom:18px}.wf-embedded .cw-eyebrow{display:none}.wf-vip{display:inline-block;color:#efd391;background:#25262b;border:1px solid #bc9650;border-radius:5px;padding:4px 9px;font-weight:700}.wf-normal{color:#1c7257;background:#e0f3eb;border-radius:5px;padding:4px 9px;font-weight:700}.wf-check{min-width:20px;min-height:20px;accent-color:#2b6077}.wf-selected{background:#e1f0f7!important;outline:1px solid #81aec4}.wf-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px;background:#f0f5f8;border:1px solid #d3e0e7;margin:12px 0}.wf-tools input,.wf-tools select{max-width:240px}.wf-tools button{white-space:nowrap}.wf-child{width:min(780px,95vw);max-height:90vh;overflow:auto;padding:24px;border:1px solid #cedce5;border-radius:14px}.wf-child::backdrop{background:#243e5066}.wf-child .s-formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.wf-charts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.wf-chart{background:white;border:1px solid #d5e2e9;border-radius:9px;padding:20px;overflow:hidden}.wf-chart h3{margin-top:0}.wf-chart button{display:block;width:100%;margin:8px 0;text-align:left;position:relative;background:linear-gradient(90deg,#dceef7 var(--bar),transparent var(--bar));border:1px solid #dfe7ec}.wf-chart svg{width:100%;height:180px}.s-table{border-collapse:collapse}.s-table th,.s-table td{border:1px solid #cbdce6}.s-table tbody tr:nth-child(even){background:#f5f9fb}.wf-price-reference{color:#35667f;font-size:13px;margin:8px 0}.wf-price-reference summary{cursor:pointer}.wf-embedded .table-wrap{max-width:100%;overflow:auto}@media(max-width:900px){.wf-sidebar{width:190px;min-width:190px}.wf-charts{grid-template-columns:1fr}}@media print{.wf-tools{display:none}}
.wf-chart .s-photo{width:42px;height:46px;vertical-align:middle;margin-right:10px;object-fit:contain}.wf-chart .s-empty-photo{display:none}.s-card-grid .s-good>.s-photo{width:100%;height:230px;object-fit:contain;background:#f0f5f8}

/* The legacy global aside rule is fixed-position. The portal sidebar must stay in flex flow. */
.wf-sidebar{position:relative;inset:auto;flex:0 0 246px;height:100vh;min-height:0;color:#253e4d;z-index:1}
.wf-main{margin:0;width:0;flex:1 1 0;height:100vh;overflow:hidden}
.wf-header,.wf-tabs{flex-shrink:0}.wf-header [hidden]{display:none}
.wf-main #wf-frames{overflow:hidden}.wf-main iframe{position:absolute;inset:0;display:block}.wf-main iframe[hidden]{display:none}
#wf-home{height:100%;overflow:auto;padding:30px}#wf-home[hidden]{display:none}
#wf-home-button{margin-bottom:12px;text-align:left}#wf-home-button.active{background:#2b6077;color:white}
.wf-welcome{background:#fff;border:1px solid #d3e0e7;border-radius:12px;padding:24px;margin-bottom:22px}.wf-welcome h2{font-size:29px;margin:8px 0 14px}.wf-welcome p{color:#5d7585;line-height:1.7;margin:6px 0}
.wf-home-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.wf-home-card{background:white;border:1px solid #d3e0e7;border-radius:10px;padding:24px}.wf-home-card h2{font-size:25px;margin:0 0 12px;padding:10px;border-left:5px solid}.wf-home-card p{color:#566f80;margin:12px 0 22px}.wf-home-card button{min-width:145px}.wf-home-help{margin:24px 0;color:#5d7585}.wf-home-help>div{display:flex;flex-wrap:wrap;gap:20px}.wf-home-help a{color:#285f78}
@media(max-width:900px){.wf-sidebar{flex-basis:190px;width:190px;min-width:190px}#wf-home{padding:18px}.wf-home-cards{grid-template-columns:1fr}}

/* Homepage: scoped to portal, retaining original business forms. */
.wf-welcome{display:flex;justify-content:space-between;gap:24px;align-items:center;border:1px solid #d8e4eb;border-left:5px solid #2b637b}
.wf-welcome .wf-eyebrow{font-size:13px;font-weight:700;letter-spacing:.5px;color:#557587}
.wf-home-date{font-size:13px;color:#738895;line-height:1.9;text-align:right;white-space:nowrap}
.wf-home-cards{align-items:stretch}.wf-home-card{border-top:4px solid var(--home-accent,#2b637b);box-shadow:0 3px 12px #244c6510}
.wf-home-card.wf-group-purchase{--home-accent:#b27620}.wf-home-card.wf-group-sales{--home-accent:#258064}.wf-home-card.wf-group-keywork{--home-accent:#927231}.wf-home-card.wf-group-production{--home-accent:#795c9f}
.wf-home-card h2{color:var(--home-accent);font-size:28px}.wf-home-card .primary{background:var(--home-accent);border-color:var(--home-accent)}
.wf-home-card .primary:disabled{opacity:.5;cursor:default}.wf-card-top{display:flex;justify-content:space-between;align-items:center}.wf-step{font-size:14px;font-weight:800;color:var(--home-accent)}.wf-home-state{font-size:12px;color:#71838f}
.wf-vip{display:inline-block;vertical-align:middle;background:#252626;color:#e7c779;border:1px solid #b99850;border-radius:5px;padding:3px 8px;font-size:12px;letter-spacing:1px}
.wf-home-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.wf-home-shortcuts button{font-size:13px;padding:9px 12px;border:1px solid #d7e4eb;background:#f7fafc;color:#2c5368;text-align:left}.wf-home-shortcuts button:hover{background:#e9f2f7}.wf-home-shortcuts button span{margin-left:8px}
.wf-home-panels{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.wf-home-panel{background:white;border:1px solid #d8e4eb;border-radius:12px;padding:22px}.wf-home-panel h3{margin:0;font-size:18px}.wf-home-panel h3 small{font-size:13px;background:#eaf2f7;padding:3px 8px;border-radius:8px}.wf-empty{color:#708593;font-size:14px}.wf-home-favorite{display:flex}.wf-home-favorite button:last-child{color:#a67d2a;padding:8px}
.wf-home-help{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}.wf-home-help summary{cursor:pointer;color:#617c8c;font-size:14px;padding:12px 0}
@media(min-width:1500px){.wf-home-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.wf-home-panels{grid-template-columns:1fr}.wf-welcome{align-items:flex-start}.wf-home-date{display:none}#wf-home{padding:18px}}

#wf-more-tabs{max-width:180px;font-size:13px;padding:5px;border:1px solid #cad9e2;background:white}.wf-tabs>span{flex-shrink:0}.wf-tab-home{flex-shrink:0}

/* Compact grouped navigation inspired by the supplied reference. */
.wf-sidebar{padding:12px 0;width:220px;min-width:220px;flex-basis:220px}.wf-sidebar h1{margin:8px 18px 18px}.wf-sidebar>#wf-home-button,.wf-sidebar>#wf-search{margin-left:12px;margin-right:12px;width:calc(100% - 24px)}.wf-sidebar nav{scrollbar-width:thin}.wf-sidebar section{margin-bottom:14px}.wf-sidebar section h2{margin:0;padding:0;border:0;background:transparent;font-size:17px}.wf-sidebar h2>button{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;border-radius:0;background:transparent;color:inherit;text-align:left;padding:12px 20px;font-size:17px;font-weight:700}.wf-sidebar section>div[hidden]{display:none}.wf-sidebar .wf-nav-item{padding:0}.wf-sidebar .wf-nav-item button:first-child{font-size:13px;padding:9px 12px 9px 22px;border-radius:0;min-height:34px}.wf-sidebar .wf-nav-item button:last-child{padding:7px 10px;font-size:13px}.wf-sidebar .wf-nav-item:has(.active){background:#ff590f}.wf-sidebar .wf-nav-item .active{background:#ff590f;color:white}.wf-sidebar .wf-nav-item:has(.active)>button{color:white}.wf-sidebar .wf-nav-item:hover{background:#fff3eb}.wf-sidebar .wf-nav-item:has(.active):hover{background:#ff590f}.wf-sidebar section>h2:not(:has(button)){padding:10px 20px;color:#81909b;font-size:14px}
.wf-tabs{background:#fafbfc;align-items:center;border-bottom:1px solid #e7eaed;gap:0;min-height:46px;padding:0 12px}.wf-tabs>span{border-right:1px solid #e6e8ed;border-radius:0}.wf-tabs .active{border-top:0;background:white;border-bottom:2px solid #ff590f}.wf-tabs>span>button:first-child{padding:10px 12px;color:#738094}.wf-tabs .active>button:first-child{color:#263645}.wf-tabs>span>button:last-child{font-size:12px;color:#a0a8b0;padding:5px}#wf-more-tabs{margin-left:10px;border:0;background:transparent}.wf-tab-home{font-size:13px!important}

/* Main actions: consistent orange across purchase, sales, key accounts and dialogs. */
:root body button.primary,:root body a.primary{background:#ed580b;border-color:#ed580b;color:#fff}
:root body button.primary:hover:not(:disabled),:root body a.primary:hover{background:#d84a04;border-color:#d84a04;color:#fff}
:root body button.primary:active:not(:disabled),:root body a.primary:active{background:#c64103;border-color:#c64103}
:root body button.primary:focus-visible,:root body a.primary:focus-visible{outline:3px solid #ffc49f;outline-offset:2px}
:root body button.primary:disabled{background:#f0b393;border-color:#f0b393;color:#fff;cursor:not-allowed}
.wf-customer-options{display:flex;flex-direction:column;gap:3px;max-height:220px;overflow:auto}.wf-customer-options:empty{display:none}.wf-customer-options button{text-align:left;font-size:13px;padding:8px 10px;background:#fff;border:1px solid #dbe4ea}.wf-customer-options button:hover{background:#fff1e7;border-color:#ed580b}[data-wf-customer-search]{width:100%}

/* Independent workspaces use the same compact navigation as the portal. */
.shell>aside .nav .menu-group{border:0;margin:0 0 12px;background:transparent;box-shadow:none}
.shell>aside .nav .menu-group summary{padding:12px 16px;font-size:17px;line-height:1.4;font-weight:700;background:transparent;color:#71818c}
.shell>aside .nav .menu-group button,.shell>aside .nav .menu-group a{display:block;width:100%;padding:9px 18px;margin:0;border:0;border-radius:0;font-size:13px;line-height:1.4;text-align:left;background:white;color:#283b49;box-shadow:none}
.shell>aside .nav .menu-group button.active,.shell>aside .nav a.active{background:#ff590f;color:white;border-left:0;box-shadow:none}
.shell>aside .nav .menu-group button:hover:not(.active),.shell>aside .nav .menu-group a:hover:not(.active){background:#fff2e8;color:#283b49}
.shell>aside .nav{overflow-y:auto;scrollbar-width:thin}
/* 0.6.4: preview dashboard layout, backed by live business data. */
.dash-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.dash-heading h2{font-size:20px;margin:0 0 6px}.dash-heading p,.dash-panel>small{color:var(--muted,#6f6b66);font-size:12px}.dash-period{display:flex;gap:8px;margin-bottom:16px}.dash-period button.selected{background:#2c6076;color:white}.dash-metrics{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.dash-metrics button{text-align:left!important;background:white!important;border:1px solid #d4e1e9!important;border-radius:12px!important;padding:12px!important;min-width:0}.dash-metrics strong{font-size:24px!important;color:#2d6a94}.dash-metrics .ca-paid strong{color:#198269}.dash-metrics .ca-unpaid strong{color:#b86a14}.dash-extra{display:flex;gap:12px;margin:12px 0}.dash-extra button{display:flex;gap:12px;align-items:center;font-size:13px;padding:8px 14px}.dash-extra button small{display:none}.dash-main{display:grid;grid-template-columns:1.65fr 1fr;gap:18px;margin:18px 0}.dash-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:18px 0}.dash-panel{background:#fff;border:1px solid #d4e1e9;border-radius:12px;padding:12px;min-width:0}.dash-panel h3{margin:0 0 12px;font-size:14px}.dash-panel svg{width:100%;display:block}.dash-legend{font-size:13px}.dash-progress{display:flex;align-items:center;justify-content:center;gap:24px;margin:22px 0}.dash-ring{width:150px;height:150px;flex-shrink:0;background:conic-gradient(#269d7b var(--progress),#f0b24e 0);border-radius:50%;display:grid;place-items:center}.dash-ring>div{width:115px;height:115px;border-radius:50%;background:white;display:grid;align-content:center;text-align:center}.dash-ring strong{font-size:28px}.dash-ring small{font-size:12px}.dash-rank{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:0!important;border-bottom:1px solid #e1e9ee!important;border-radius:0!important;background:transparent!important;color:inherit!important;padding:15px 0!important}.dash-rank img{width:42px;height:48px;object-fit:contain}.dash-rank-name{flex:1;min-width:0;overflow-wrap:anywhere}.dash-num{background:#edf3f7;border-radius:6px;padding:5px 8px;color:#477189}.dash-bar{height:6px;background:#eef3f7;display:block;border-radius:4px;margin-top:8px}.dash-bar i{display:block;height:6px;background:#3989ae;border-radius:4px}.dash-rank strong{white-space:nowrap;font-size:14px}.dash-todo{display:flex;width:100%;justify-content:space-between;gap:10px;padding:15px 0!important;background:transparent!important;color:inherit!important;border:0!important;border-bottom:1px solid #e1e9ee!important}.dash-todo strong{color:#c27617}.dash-alert small{display:block}.dash-details{margin:20px 0}.dash-details summary{cursor:pointer;padding:12px}.dash-empty{padding:36px 0;color:#718798;text-align:center}@media(max-width:1200px){.dash-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:780px){.dash-main,.dash-bottom{grid-template-columns:1fr}.dash-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-heading{display:block}.dash-progress{gap:14px}.dash-period{flex-wrap:wrap}}

/* Low-price comparisons remain red, including supplier/specification details. */
#price-hint.price-low-warning,#price-hint.price-low-warning strong,.wf-lower-price summary{color:#c32f26!important;font-weight:600}

/* Card view retains the catalogue actions and internal reference information. */
.s-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px;margin:18px 0}.s-card-grid .s-good{background:white;border:1px solid #d8e2e9;border-radius:14px;overflow:hidden}.s-card-grid .s-good-body{padding:18px}.s-card-grid h3{margin:0 0 8px}.s-card-grid .s-good-body>strong{display:block;font-size:24px;color:#ce5a26;margin:12px 0}.s-card-grid .s-good-body>small{color:#667d8c;margin-bottom:12px}.s-card-grid .peer-summary{margin-top:15px;border-top:1px solid #e3e9ee;padding-top:10px}.s-card-grid .s-good>.s-empty-photo{display:flex;width:100%;height:230px;align-items:center;justify-content:center;background:#f0f5f8}

/* Full-sized product photographs, including the shared table thumbnail class. */
.s-card-grid .s-good>img.s-photo{display:block;width:100%;height:230px;object-fit:contain;margin:0;border-radius:0;background:#f4f6f8}
.s-card-grid .s-good:hover{box-shadow:0 8px 22px #263d5014;border-color:#b9cbd7}
.s-card-grid .wf-tools{flex-wrap:wrap}.s-card-grid .wf-tools button{min-height:36px}

/* Shared visual structure used by real business pages, not a separate demo. */
.wf-embedded .workspace{max-width:1650px;margin:auto;padding:26px 28px 48px}
.wf-embedded .cw-heading h1,.wf-embedded .s-heading h1{font-size:28px;color:#253e4d}
.card-maintenance{display:flex;flex-direction:column;background:white;border:1px solid #d5e2eb;border-radius:15px;padding:24px;margin-bottom:22px;gap:14px}
.card-maintenance h2{margin:0;font-size:21px}.card-maintenance .catalog-tools{display:flex;flex-wrap:wrap;gap:10px}.card-maintenance .catalog-search{display:flex;align-items:end;flex-wrap:wrap;gap:12px;border-top:1px solid #e1e8ed;padding-top:18px}.card-maintenance select{max-width:300px}
.card-pick-head{display:block;width:calc(100% - 24px);margin:12px;text-align:left;background:#eaf3f8;border:0;color:#2c6077;font-weight:700}
.s-card-grid .card-chosen{border:2px solid #ef6a21;box-shadow:0 0 0 2px #ffeadc}
.card-variants{display:flex;flex-direction:column;gap:8px}.card-variants button{text-align:left;background:#f5f8fa;color:#2c5369;border:1px solid #cbdce6}
.card-variants button[aria-pressed=true]{background:#b83f08;border-color:#b83f08;color:white;font-weight:700}.card-variants button:focus-visible{outline:3px solid #f4a66e;outline-offset:2px}
.card-history{border:0;background:transparent;color:#25668c;padding:12px 0;text-align:left}.s-good-body>strong small{font-size:14px;color:#637e8e}.s-good-body .wf-tools{background:transparent;border:0;padding:0}
.card-selection-bar{position:sticky;bottom:12px;display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:#274f64;color:white;padding:18px 22px;border-radius:14px;z-index:3;box-shadow:0 4px 18px #24435722}
.card-selection-bar span{flex:1;color:#dce9ef}.card-selection-bar button{background:white;color:#253e4d;border-color:#cedce5}
@media(max-width:700px){.wf-embedded .workspace{padding:18px 14px}.card-maintenance{padding:16px}.card-selection-bar{position:static}.card-maintenance select{max-width:100%}}

/* Unselected action controls remain visibly bounded; selected controls contrast. */
.card-variants button[aria-pressed=false],.card-maintenance button:not(.primary),.s-good-body .wf-tools button,.card-selection-bar button{background:#edf5fb;border:1px solid #a9c3d6;color:#294e65}
.card-variants button[aria-pressed=false]:hover,.card-maintenance button:not(.primary):hover,.s-good-body .wf-tools button:hover,.card-selection-bar button:hover{background:#deedf7;border-color:#769eb9}
.wf-shell{display:grid;grid-template-columns:246px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
.wf-shell>.wf-header{grid-column:1/-1;min-height:78px;height:auto;flex-wrap:wrap;padding:16px 24px}
.wf-shell>.wf-sidebar{grid-column:1;grid-row:2;min-height:0;width:246px}.wf-sidebar>h1{display:none}
.wf-shell>.wf-main{grid-column:2;grid-row:2;min-height:0}.wf-header>strong{font-size:22px;white-space:nowrap}
.wf-header #wf-search{width:280px;max-width:100%;background:#f3f7fa;border-color:#c4d6e2}
#wf-module-tabs{display:flex;gap:8px;order:1}#wf-module-tabs button{border:0;background:transparent;padding:10px 15px;color:#294e65}#wf-module-tabs button.active{background:#e6f1f8;color:#2c6077}
@media(max-width:900px){.wf-shell{grid-template-columns:190px minmax(0,1fr)}.wf-shell>.wf-sidebar{width:190px;min-width:190px}.wf-header #wf-search{width:210px}#wf-module-tabs{width:100%;overflow-x:auto}}
/* Sidebar controls share the requested visible unselected state. */
.wf-shell>.wf-sidebar{height:auto;align-self:stretch;overflow:hidden}
.wf-sidebar .wf-nav-item{margin:4px 9px;border:1px solid #bed0dd;border-radius:5px;background:#f0f6fa}
.wf-sidebar .wf-nav-item button:first-child{font-size:14px;color:#294e65;min-height:40px;padding:10px 12px}
.wf-sidebar .wf-nav-item:has(.active){background:#ff590f;border-color:#ff590f}
.wf-sidebar .wf-nav-item:has(.active) button{background:transparent;color:white}
.wf-sidebar .wf-nav-item:hover:not(:has(.active)){background:#deedf7;border-color:#8facbf}
.wf-sidebar nav::-webkit-scrollbar{width:9px}.wf-sidebar nav::-webkit-scrollbar-thumb{background:#9eb4c2;border-radius:9px}.wf-sidebar nav::-webkit-scrollbar-track{background:#f0f5f8}
/* Consistent Chinese typography on Windows and macOS. */
body,button,input,select,textarea{font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif}
.wf-sidebar .wf-nav-item button:first-child{font-size:15px;font-weight:500;line-height:1.65;letter-spacing:.1px}
.wf-sidebar h2>button{font-size:20px;font-weight:700;line-height:1.5}
.wf-sidebar section>h2:not(:has(button)){font-size:15px;font-weight:600}
.wf-tabs button,#wf-module-tabs button{font-size:14px;font-weight:500}

/* Grid main must override the old flex-only zero width and full-viewport height. */
.wf-shell>.wf-main{width:auto;height:auto;min-width:0;align-self:stretch}
/* Compact text navigation and consistent Chinese UI typography. */
body,button,input,select,textarea{font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",Arial,sans-serif;font-size:14px;line-height:1.5}
button,input,select,textarea{font-weight:400}
.wf-sidebar .wf-nav-item{margin:0;border:0;border-radius:0;background:transparent}
.wf-sidebar .wf-nav-item button:first-child{font-size:14px;font-weight:400;line-height:1.5;min-height:32px;padding:6px 12px 6px 30px;color:#213547}
.wf-sidebar .wf-nav-item button:last-child{font-weight:400;padding:4px 10px;color:#a0a8b0}
.wf-sidebar .wf-nav-item:has(.active),.wf-sidebar .wf-nav-item:has(.active):hover{background:#ff5900;border:0}
.wf-sidebar .wf-nav-item:has(.active) button{color:white}
.wf-sidebar .wf-nav-item:hover:not(:has(.active)){background:#f3f5f7}
.wf-sidebar section{margin-bottom:18px}
.wf-sidebar section h2,.wf-sidebar h2>button,.wf-sidebar section>h2:not(:has(button)){font-size:13px;font-weight:400;color:#929aa3;background:transparent;border:0}
.wf-sidebar h2>button{padding:12px 22px 7px 20px}
.wf-sidebar nav{scrollbar-width:thin;scrollbar-color:#e4e6e8 transparent}
.wf-sidebar nav::-webkit-scrollbar-thumb{background:#e4e6e8}
.card-color-group{margin:12px 0}.card-color-group>strong{font-size:14px!important;color:#314c60!important;display:block;margin-bottom:6px}.card-color-group>div{display:flex;gap:6px;flex-wrap:wrap}.card-color-group button{width:auto!important;min-width:48px;text-align:center!important;padding:7px 12px!important}.card-variants>[data-card-custom]{font-size:13px}

/* Delivery layout: shared by all real workspaces. */
:root{--erp-ink:#253e4d;--erp-muted:#698392;--erp-surface:#f3f6f8;--erp-line:#d5e2eb;--erp-orange:#f65a00;--erp-font:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",Arial,sans-serif}
body,button,input,select,textarea{font-family:var(--erp-font)}
body{color:var(--erp-ink);background:var(--erp-surface);font-size:16px;line-height:1.6}
button,input,select,textarea{font-size:16px;line-height:1.5}
button{border-radius:9px;padding:11px 17px;min-height:44px;font-weight:400}
button:not(.primary):not(.active):not([aria-pressed=true]){background:#edf5fb;border-color:#acc8db;color:#294e65}
button.primary{background:var(--erp-orange);border-color:var(--erp-orange);color:white}
button.primary:hover{background:#df5000;border-color:#df5000}
input,select,textarea{background:white;border:1px solid #c3d5e2;border-radius:8px;padding:10px 13px;color:var(--erp-ink)}
.wf-shell{grid-template-columns:246px minmax(0,1fr);height:100dvh}
.wf-shell>.wf-header{padding:16px 26px;gap:20px;min-height:92px}
.wf-header>strong{font-size:25px;display:flex;align-items:center;gap:14px}.wf-header>strong:before{content:'蝶';display:grid;place-items:center;background:#2c6077;color:white;width:48px;height:52px;border-radius:9px;font-size:29px}
.wf-header #wf-search{width:360px;margin:0;max-width:38vw}
.wf-header #wf-module-tabs{order:0;margin-left:auto}.wf-header #wf-user{margin-left:0;font-size:14px}
.wf-shell>.wf-main{width:auto;height:auto;min-width:0;min-height:0}
.wf-shell>.wf-sidebar{width:246px;min-width:246px;padding-top:16px}
.wf-sidebar .wf-nav-item{background:transparent;margin:0;border:0;border-radius:0}
.wf-sidebar .wf-nav-item button{background:transparent;border:0;min-height:38px}
.wf-sidebar .wf-nav-item button:first-child{font-size:16px;padding:8px 14px 8px 30px;line-height:1.6;font-weight:400;color:var(--erp-ink)}
.wf-sidebar .wf-nav-item button:last-child{font-size:13px;color:#94a4ae;min-width:30px;padding:7px}
.wf-sidebar .wf-nav-item:has(.active){background:var(--erp-orange)}.wf-sidebar .wf-nav-item:has(.active) button{color:white;background:transparent}
.wf-sidebar h2>button,.wf-sidebar section>h2:not(:has(button)){font-size:14px;color:#939fa8;font-weight:500;background:transparent;border:0;padding:17px 20px 10px}
.wf-sidebar section{margin-bottom:18px}.wf-sidebar #wf-home-button{background:white;font-size:15px}
.wf-tabs{background:#f8fafc;border-bottom:1px solid var(--erp-line);padding:0;gap:0;min-height:52px;flex-shrink:0}
.wf-tabs>span{border-right:1px solid var(--erp-line);align-items:stretch}.wf-tabs button{padding:12px;font-size:15px;color:#7b8b98;background:transparent!important;border-radius:0}
.wf-tabs>span.active{border-top:0;border-bottom:3px solid var(--erp-orange);background:white}.wf-tabs>span.active button{color:var(--erp-ink);font-weight:600}.wf-tabs .wf-tab-home{flex-shrink:0}
.wf-embedded .workspace{max-width:1650px;padding:32px 30px 48px;margin:auto}
.wf-embedded :is(.heading,.s-heading,.cw-heading){display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 28px;flex-wrap:wrap}
.wf-embedded :is(.heading,.s-heading,.cw-heading) h1{font-size:30px;line-height:1.4;margin:0 0 8px;color:var(--erp-ink)}
.wf-embedded :is(.heading,.s-heading,.cw-heading) p{color:var(--erp-muted);font-size:16px;margin:0}
:is(.panel,.wf-chart,.cw-panel,.dash-panel,.prod-function-card,.p-panel){border-radius:15px;border:1px solid var(--erp-line);background:white}
:is(.filters,.filterbar,.s-filters,.wf-tools,.cw-filters){border-radius:12px;gap:12px;padding:16px;background:white;border:1px solid var(--erp-line)}
:is(.table-wrap,.tablewrap){border-radius:11px;overflow:auto;background:white;border:1px solid var(--erp-line)}
table{border-collapse:collapse}th,td{border:1px solid #c8d6e0;padding:12px;vertical-align:top}th{background:#edf3f7;color:#335a70;font-weight:600}td{font-size:15px}tbody tr:nth-child(even){background:#f6f9fb}
.card-maintenance{padding:24px;border-radius:16px;background:white;gap:18px;margin-bottom:20px}.card-maintenance h2{font-size:21px}.card-maintenance .catalog-tools{gap:10px}.card-maintenance p{color:var(--erp-muted);font-size:14px;margin:0}
.catalog-search.card-search{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:18px;background:white;border:1px solid var(--erp-line);border-radius:13px;margin-bottom:22px}.card-search label{display:flex;align-items:center;gap:10px;font-weight:600;color:#365e74}.card-search input{width:200px}.card-search select{max-width:260px}
.card-search details{flex-basis:100%;color:#356980}.card-search summary{cursor:pointer}.card-search details>div{display:flex;align-items:center;gap:12px;padding-top:12px;flex-wrap:wrap}
.s-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-bottom:22px}.s-card-grid .s-good{border-radius:15px;overflow:hidden}.s-good-body{padding:20px}.s-good-body>strong{font-size:27px;color:#df5b18}.s-good-body>strong small{font-size:13px;white-space:nowrap}
.card-selection-bar{padding:18px 22px;border-radius:15px;bottom:12px;position:sticky;z-index:3}.card-selection-bar button{background:white!important;min-height:44px}.card-color-group{margin:8px 0}.card-color-group>strong{font-size:15px!important}.card-color-group button{min-height:38px}
.s-good-body .wf-tools{border:0;padding:0;background:transparent}.s-good-body .card-history{background:transparent!important;border:0;padding:10px 0}
dialog{font-family:var(--erp-font);padding:26px;border-radius:15px;border:1px solid var(--erp-line)}dialog h2{font-size:24px}.s-formgrid,.formgrid{gap:18px}dialog label{font-size:15px}
@media(min-width:1600px){.s-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){.s-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wf-header #wf-module-tabs{order:2;flex-basis:100%;margin:0}.wf-header #wf-search{width:300px}}
@media(max-width:850px){.wf-shell{grid-template-columns:190px minmax(0,1fr)}.wf-shell>.wf-sidebar{width:190px;min-width:190px}.wf-sidebar .wf-nav-item button:first-child{font-size:14px;padding-left:20px}.wf-embedded .workspace{padding:22px 18px}.wf-header>strong{font-size:21px}.wf-header #wf-search{max-width:100%}.s-card-grid{grid-template-columns:1fr}.card-search label{flex-wrap:wrap}.wf-embedded :is(.heading,.s-heading,.cw-heading) h1{font-size:26px}}
@media print{body{background:white;color:#172b3b}button,input,select{font-size:12pt}.card-search,.card-selection-bar{display:none!important}th,td{border:1px solid #7d919e;font-size:11pt}table{break-inside:auto}tr{break-inside:avoid}.table-wrap{overflow:visible;border:0}}

.wf-embedded .s-heading{display:grid;grid-template-columns:1fr auto;gap:8px 18px}.wf-embedded .s-heading h1{grid-column:1}.wf-embedded .s-heading p{grid-column:1}.wf-embedded .s-heading>.actions{grid-column:2;grid-row:1/3}.card-maintenance .s-toolbar{justify-content:flex-start;border:0;padding:0;margin:0}.card-maintenance>p{display:block}.card-search{display:flex!important;align-items:center;flex-wrap:wrap;gap:12px;padding:18px!important;background:white;border:1px solid #d5e2eb;border-radius:13px;margin-bottom:22px}.card-search>label{flex:0 1 auto}.card-search select{width:260px}.card-search>button{width:auto}.wf-header{height:auto!important}
.wf-sidebar section,.wf-sidebar h2,.wf-sidebar h2>button,.wf-sidebar .wf-nav-item button{background:transparent!important;border:0!important;border-radius:0!important}.wf-sidebar h2>button{color:#939fa8!important;font-size:14px!important;font-weight:400!important}.wf-sidebar .wf-nav-item:has(.active){background:#ff5900!important}.wf-sidebar .wf-nav-item:has(.active) button{color:white!important}.catalog-toolbar.card-maintenance{display:block}.card-maintenance .catalog-tools{display:flex;justify-content:flex-start!important;border:0!important;padding:0!important;margin:16px 0 10px!important;gap:10px}.card-maintenance>p.s-hint{display:block!important}.card-search label{display:flex!important;align-items:center;gap:10px;text-align:left}.card-search select{max-width:260px}button.primary{background:#f65a00!important;border-color:#f65a00!important}

/* Sidebar favorites stay available from page actions and home, without row stars. */
#wf-nav .wf-nav-item > button[data-wf-fav]{display:none!important}

/* Visible image drop/paste instructions in order and product editors. */
.s-upload .s-upload-instruction{display:block!important;font-size:15px;color:#295e78;margin:8px 0}.s-upload .s-hint{display:block!important}.s-upload:focus-visible,.s-upload.s-upload-drag{outline:2px solid #f65a00;outline-offset:2px;background:#fff5e9}.s-upload-preview img{max-width:180px;max-height:150px;object-fit:contain}.s-upload-status{display:block;white-space:normal;margin-top:8px}

#wf-page-actions{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 24px;background:#f3f6f8;border-bottom:1px solid #d5e2eb}#wf-page-actions[hidden]{display:none}#wf-page-actions>span{font-size:14px;color:#657d8c}#wf-page-actions>div{display:flex;gap:8px;flex-wrap:wrap}#wf-page-actions button{min-height:36px;padding:7px 12px;font-size:14px}#wf-page-actions [aria-pressed=true]{background:#fff1e6;border-color:#db8a49;color:#8d431b}@media(max-width:850px){#wf-page-actions{padding:8px 12px;flex-wrap:wrap}}@media print{#wf-page-actions{display:none!important}}
/* 0.6.13: typography and palette from the approved card preview. */
:root{--erp-ink:#23394b;--erp-muted:#647b8a;--erp-surface:#f3f5f8;--erp-line:#d6e1e8;--erp-orange:#ff5900}
body,button,input,select,textarea{font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",Arial,sans-serif;font-size:14px;line-height:1.5}button,input,select,textarea{font-weight:400}
.wf-sidebar .wf-nav-item button:first-child{font-size:14px;line-height:1.5;font-weight:400;color:#213547;padding:6px 12px 6px 30px;min-height:32px}
.wf-sidebar h2>button,.wf-sidebar section>h2:not(:has(button)){font-size:13px!important;font-weight:400!important;color:#929aa3!important}.wf-sidebar nav{scrollbar-color:#e4e6e8 transparent}
.wf-embedded :is(.heading,.s-heading,.cw-heading) h1{font-size:26px}.wf-embedded :is(.heading,.s-heading,.cw-heading) p{font-size:14px}.wf-header>strong{font-size:20px}
.wf-embedded button:not(.primary):not(.active):not([aria-pressed=true]),#wf-page-actions button:not([aria-pressed=true]){background:#edf5fb;border:1px solid #a9c3d6;color:#294e65;font-weight:400}
.wf-embedded button:not(.primary):not(.active):not([aria-pressed=true]):hover{background:#deedf7;border-color:#769eb9}
.wf-embedded button.primary{background:#ff5900!important;border-color:#ff5900!important;color:white}
.wf-embedded .s-good-body>strong{font-size:25px;font-weight:750;color:#d85a20}.s-good-body h3{font-size:17px}.s-good-body>strong small{font-size:14px;color:#647b8a}
.card-variants button[aria-pressed=true]{background:#b83f08!important;border-color:#b83f08!important;color:white!important}
.card-selection-bar{background:#244f62!important;color:white}.card-selection-bar button{background:#edf5fb!important;border-color:#a9c3d6!important;color:#294e65!important;font-size:14px}.card-selection-bar>span{color:#bdd0dc}
.wf-embedded td,.wf-embedded th{font-size:14px;font-weight:400}.wf-embedded th{font-weight:600;color:#647b8a}.wf-embedded .s-good-body .card-history{color:#216792;font-weight:600}

/* Compact functional zones. Screen-only rules leave printed documents unchanged. */
@media screen{
 :root{--erp-ink:#243d50;--erp-muted:#6d7d8b;--erp-line:#d9e3eb}
 body,.workspace,.wf-home{background:#f4f6f9}
 button{min-height:36px;padding:7px 12px;border-radius:6px;line-height:1.45}
 button:not(.primary):not(.active):not([aria-pressed=true]){background:#edf5fc;border-color:#bed3e3;color:#285c7c}
 button:disabled{opacity:.5;cursor:not-allowed}
 button:focus-visible,summary:focus-visible{outline:2px solid #246ca3;outline-offset:2px}
 input,select,textarea{padding:8px 10px;border-radius:6px}
 .wf-embedded .workspace{padding:20px 22px 32px}
 .wf-embedded :is(.heading,.cw-heading,.s-heading){margin-bottom:16px;gap:8px 14px}
 .wf-embedded :is(.heading,.cw-heading,.s-heading) h1{font-size:25px;margin-bottom:5px}
 :is(.filters,.filterbar,.s-filters,.cw-filters,.catalog-search.card-search,#cw-filter,#wf-client-filter,#ship-search){background:#edf4fb!important;border:1px solid #d7e4ef;border-radius:8px;padding:12px!important;gap:10px}
 .wf-tools{padding:10px;gap:8px;border-radius:8px}
 :is(.panel,.s-panel,.cw-panel,.wf-service,.card-maintenance){background:#fff;border:1px solid #dce5ec;border-radius:9px;padding:16px}
 .wf-service{margin:14px 0}
 th{background:#edf1f5!important;color:#536778!important}th,td{padding:9px 10px}
 .card-maintenance{margin-bottom:12px}.card-maintenance h2{font-size:18px;margin:0}
 .card-maintenance .catalog-tools{margin:12px 0 8px!important;gap:8px}
 .catalog-search.card-search{margin-bottom:14px}.card-search details{flex-basis:auto}
 .s-card-grid{gap:14px;align-items:stretch;margin-bottom:16px}
 .s-card-grid .s-good{display:flex;flex-direction:column;border-radius:9px;background:white}
 .s-good img,.s-good .s-imgblank{height:170px;object-fit:contain;background:#f6f8fa}
 .s-good-body.card-compact-body{display:flex;flex-direction:column;flex:1;padding:12px;gap:9px}
 .card-compact-body h3{font-size:16px;line-height:1.4;margin:0;min-height:45px;overflow-wrap:anywhere}
 .card-compact-body>strong{font-size:24px!important;line-height:1.2;margin:0}
 .card-compact-body .card-variants{display:flex;align-content:flex-start;align-items:flex-start;flex-wrap:wrap;gap:6px;margin:0;min-height:78px}
 .card-compact-body .card-color-group{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;margin:0;padding:4px 6px;background:#f2f6fa;border:1px solid #dce6ee;border-radius:6px;max-width:100%}
 .card-compact-body .card-color-group>strong{display:inline;margin:0;font-size:13px!important;line-height:1.4}
 .card-compact-body .card-color-group>div{display:inline-flex;gap:4px;flex-wrap:wrap}
 .card-compact-body .card-color-group button{min-height:28px;min-width:36px;padding:3px 7px!important;font-size:13px}
 .card-compact-body [data-card-custom]{width:auto!important;min-height:29px;font-size:12px;padding:4px 8px!important}
 .card-more-specs{flex-basis:100%;font-size:13px;color:#285c7c}.card-more-specs summary{cursor:pointer;padding:4px 0}.card-more-specs>div{display:flex;flex-wrap:wrap;gap:6px;padding-top:5px}
 .card-compact-body .card-main-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:5px;align-items:center}
 .card-main-actions button{font-size:13px;padding:6px 9px;min-height:32px}
 .card-main-actions .card-history{width:100%;text-align:left;min-height:26px;padding:3px 0!important;font-size:13px}
 .card-compact-body .peer-summary{margin:0;padding:8px 0 0;border-top:1px solid #e0e7ee}
 .card-compact-body .peer-summary-row{padding:5px 0;gap:3px 8px;margin:0;font-size:13px}
 .card-compact-body .peer-summary-row small{font-size:12px;line-height:1.45;color:#6d7d8b}
 .card-compact-body .peer-summary-row strong{font-size:14px;color:#b63e32}
 .card-compact-body .peer-summary-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.peer-summary-actions button{min-height:30px;padding:5px 8px;font-size:12px}
 .card-selection-bar{padding:11px 15px;border-radius:9px;gap:9px;bottom:8px}.card-selection-bar button{min-height:36px}
 .wf-shell>.wf-header{padding:12px 20px;min-height:74px}.wf-header>strong{font-size:23px}
 .wf-sidebar section{margin-bottom:10px}.wf-sidebar h2>button{padding-top:12px}
 .wf-sidebar .wf-nav-item button:first-child{padding-top:7px;padding-bottom:7px}
 .wf-tabs{min-height:44px}.wf-tabs button{padding:9px 12px}
 button[data-wf-cancel],button[data-s-action="close-output"]{background:#f2f4f6!important;border-color:#cdd5dc!important;color:#566573!important}
 button[data-cw="delete-order"],button.danger{color:#b8332d!important;background:#fff0ef!important;border-color:#e9bab7!important}
}
@media screen{
 .card-compact-body .card-variants{flex-direction:row!important;justify-content:flex-start;grid-template-columns:none;height:auto}
 .card-compact-body .card-color-group{width:auto!important;flex:0 1 auto}
 .card-compact-body .card-more-specs{display:block;flex:1 0 100%;width:100%;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
 .card-compact-body .card-history{border:0!important;background:transparent!important;border-radius:0}
 .shell aside .nav button.active{background:#f65a00!important;border-color:#f65a00!important;color:white!important}
}
@media screen{
 .card-compact-body .card-variants{min-height:116px}
 .card-compact-body .card-main-actions{margin-top:0}
 .card-compact-body .peer-summary{flex:1}
 @media(max-width:850px){.card-compact-body .card-variants{min-height:0}}
}
/* Reference palette: blue chrome, white sections, green create, blue action, amber export. */
@media screen{
 :root{--erp-orange:#3998ed;--erp-ink:#263d54;--erp-muted:#7c8795}
 .wf-shell>.wf-header{background:#185cbb!important;color:white;border-bottom:5px solid #104995;box-shadow:none;min-height:84px}
 .wf-header>strong,.wf-header #wf-user{color:white!important}.wf-header>strong:before{background:white;color:#185cbb}
 .wf-header #wf-search{background:#fff;border-color:#d5e1f1;color:#304b65}
 .wf-header #wf-module-tabs button{color:#fff;background:transparent;border-color:transparent}
 .wf-header #wf-module-tabs button.active{background:#fff!important;color:#185cbb!important}
 .shell .topbar{background:#185cbb;color:#fff}.shell .topbar>span{color:#fff}
 .wf-sidebar .wf-nav-item:has(.active){background:#e9f3ff!important;border-left:3px solid #3197ef!important}
 .wf-sidebar .wf-nav-item:has(.active) button{color:#185cbb!important}
 .shell aside .nav button.active{background:#e9f3ff!important;border-color:#3197ef!important;color:#185cbb!important}
 .wf-tabs>span.active{border-bottom-color:#3998ed!important}
 body button[data-erp-tone="create"]{background:#60b832!important;border-color:#60b832!important;color:#fff!important}
 body button[data-erp-tone="action"],body button.primary{background:#3998ed!important;border-color:#3998ed!important;color:#fff!important}
 body button[data-erp-tone="export"]{background:#e9a638!important;border-color:#e9a638!important;color:#fff!important}
 body button[data-erp-tone="danger"]{background:#ef6a70!important;border-color:#ef6a70!important;color:#fff!important}
 body button[data-erp-tone="neutral"]{background:#fff!important;border-color:#dbe1e8!important;color:#697786!important}
 body button.primary[data-erp-tone="create"]{background:#60b832!important;border-color:#60b832!important}
 button[data-erp-tone]:hover{filter:brightness(.95)}
 .erp-small-icon{display:inline-block;width:16px;height:16px;vertical-align:-3px;margin-right:6px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
 .wf-home-card{border:1px solid #dae5f0;border-radius:10px;box-shadow:0 4px 15px #2446690a;padding:20px;background:linear-gradient(135deg,#eff6ff,#fff)!important}
 .wf-home-card.wf-group-purchase{background:linear-gradient(135deg,#fff4e8,#fff)!important}
 .wf-home-card.wf-group-keywork{background:linear-gradient(135deg,#eef9f7,#fff)!important}
 .wf-home-card.wf-group-production{background:linear-gradient(135deg,#f0f0fc,#fff)!important}
 .wf-home-card h2{display:flex;align-items:center;gap:10px}.erp-entry-icon{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#dbeaff;color:#216ccd;flex-shrink:0}
 .erp-entry-icon .erp-small-icon{width:30px;height:30px;margin:0}.erp-entry-purchase{background:#ffe7c7;color:#d28a23}.erp-entry-keywork{background:#d7f0e8;color:#21977a}.erp-entry-production{background:#e4e2fa;color:#7164bd}
 .production-function-grid>button>.erp-small-icon{width:26px;height:26px;color:#368de1;background:#eaf4ff;padding:5px;box-sizing:content-box;border-radius:8px}
 .wf-home-card .wf-step{color:#7e91a6;background:transparent}.wf-home-card .wf-home-state{color:#559d35}
 .card-maintenance{box-shadow:none;border:0;border-radius:8px;padding:16px 18px}
 .catalog-search.card-search{background:#edf3fc!important;border-color:#e0e8f5!important}
 .s-card-grid .s-good{box-shadow:0 3px 12px #24466908;border-color:#e0e6ed}
 .s-good.card-chosen{border-color:#3998ed!important;box-shadow:0 0 0 1px #3998ed,0 4px 12px #3998ed20!important}
 .card-variants button[aria-pressed=true]{background:#3998ed!important;border-color:#3998ed!important;color:#fff!important}
 .card-pick-head{color:#216ccd!important;background:#edf5ff!important}
 .card-selection-bar{background:#185cbb!important;color:white;box-shadow:0 4px 14px #15478118}
 .card-selection-bar button[data-erp-tone="action"]{background:#3998ed!important;color:white!important;border-color:#70b5f2!important}
 th{background:#f1f3f5!important;color:#727c88!important}
}
@media print{.erp-small-icon,.erp-entry-icon{display:none!important}}
@media screen{
 .wf-sidebar #wf-home-button{background:#fff!important;color:#285c7c!important;border:1px solid #d6e1ec}
 .wf-sidebar #wf-home-button.active{background:#e9f3ff!important;color:#185cbb!important;border-color:#bed7f2}
 .wf-home-card .wf-home-shortcuts{gap:6px}
 .wf-home-card .wf-home-shortcuts button{background:#ffffffb8!important;border-color:#dce6f1!important}
 .wf-home-card h2{margin:12px 0;font-size:22px}
 .wf-home-card p{font-size:14px;line-height:1.65}
}

/* Reference typography: compact regular-weight UI, restrained heading hierarchy. */
@media screen{
 :root{--erp-font:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",Arial,sans-serif}
 body,button,input,select,textarea{font-family:var(--erp-font);font-size:14px;line-height:1.5;letter-spacing:0}
 body{font-weight:400;color:#333}
 button,input,select,textarea{font-weight:400}
 button{font-size:14px;min-height:36px;padding:7px 15px;border-radius:4px}
 input:not([type=checkbox]):not([type=radio]),select{font-size:14px;min-height:36px;padding:7px 10px}
 label,.s-formgrid label,.formgrid label{font-size:14px;font-weight:400}
 .wf-sidebar .wf-nav-item button:first-child,.shell>aside .nav button{font-size:14px;font-weight:400;line-height:1.5;letter-spacing:0;min-height:38px;padding:8px 14px 8px 22px;color:#24486a}
 .wf-sidebar h2>button,.wf-sidebar section>h2:not(:has(button)),.shell>aside .nav .menu-group summary{font-size:14px;font-weight:400;line-height:1.5;padding:12px 16px;color:#6b7785}
 .wf-tabs button,#wf-module-tabs button{font-size:14px;font-weight:400;line-height:1.5}
 .wf-tabs>span.active button{font-weight:500}
 :is(.workspace,.wf-embedded) :is(.heading,.s-heading,.cw-heading) h1{font-size:20px;line-height:1.5;font-weight:600;margin:0}
 :is(.workspace,.wf-embedded) :is(.heading,.s-heading,.cw-heading){gap:8px 16px;margin-bottom:16px}
 :is(.workspace,.wf-embedded) :is(.heading,.s-heading,.cw-heading) p{font-size:14px;font-weight:400;line-height:1.5;color:#737d89;margin:0}
 :is(.card-maintenance,.wf-service,.panel,.s-panel,.cw-panel) h2,dialog h2{font-size:18px;font-weight:600;line-height:1.5}
 :is(.panel,.s-panel,.cw-panel,.wf-service) h3,dialog h3{font-size:16px;font-weight:500;line-height:1.5}
 .wf-home-card h2{font-size:20px;font-weight:600}.wf-home-card p{font-size:14px;line-height:1.5}
 .wf-header>strong{font-size:22px;font-weight:600;letter-spacing:0}
 .s-table,table,th,td{font-size:14px;line-height:1.5}th{font-weight:500}td{font-weight:400}
 .s-hint,.cw-hint,.wf-price-reference{font-size:13px;line-height:1.5}
 .card-compact-body h3{font-size:16px;font-weight:500;line-height:1.5}
 .card-compact-body>strong{font-size:24px!important;font-weight:600}
 .card-compact-body .card-color-group>strong{font-weight:400}
 .card-pick-head,.card-selection-bar strong{font-size:14px;font-weight:500}
 .card-search label{font-size:14px;font-weight:400;text-align:left}
}
@media screen{
 .shell>aside .nav button,.shell>aside .nav button.active,.wf-sidebar .wf-nav-item button:first-child{font-size:14px!important;font-weight:400!important;line-height:1.5!important}
 .shell>aside .nav{padding-left:12px;padding-right:12px}
 .shell>aside .nav .menu-group>div{padding-left:0;padding-right:0}
 .catalog-search.card-search>label,.catalog-search.card-search label{font-weight:400!important;text-align:left!important}
}
/* Shared shipment view in both customer profiles and standalone navigation. */
.shipment-workspace.cw-info{display:block;grid-template-columns:none;min-height:0}
.shipment-workspace>.wf-service{display:block;width:100%;min-height:0;margin:12px 0;padding:12px;box-sizing:border-box;background:#fff}
.shipment-action-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 14px;background:#185cbb;color:#fff;border-radius:6px;margin-bottom:12px}
.shipment-action-bar>strong{font-size:14px;font-weight:500;color:#fff}
.shipment-actions{display:flex;flex-wrap:wrap;gap:8px}
.shipment-workspace .table-wrap{width:100%;overflow:auto}
.shipment-workspace #ship-search{display:flex;align-items:center;flex-wrap:wrap}
.shipment-workspace #ship-search input{flex:1;min-width:180px;max-width:480px}
@media screen{
 .order-selection-bar{position:sticky;bottom:8px;z-index:8;display:flex;align-items:center;flex-wrap:wrap;background:#185cbb;color:#fff;padding:10px 14px;box-shadow:0 2px 8px #163c6420}
 .order-selection-bar>strong{color:#fff;font-weight:500}.order-selection-bar details{margin:0;padding:0;border:0;background:transparent;color:#fff;min-width:0;flex:1}
 .order-selection-bar details[open] [data-order-selection-details]{max-height:140px;overflow:auto;white-space:pre-line;padding:8px;background:white;color:#263d54}
 .batch-dialog-footer{position:sticky;bottom:0;z-index:3;background:#185cbb;color:white;padding:12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
 .batch-dialog-footer [data-batch-count]{margin-right:auto}
}

@media screen{
 .shipment-workspace>.shipment-action-bar,.purchase-selection-bar{position:sticky;bottom:8px;z-index:8;background:#185cbb;color:white;padding:12px 14px;border-radius:6px;box-shadow:0 2px 8px #163c6420;margin-bottom:0}
 .purchase-selection-bar #selection-summary strong,.purchase-selection-bar #selection-summary span{color:white}
 .shipment-action-bar button[data-erp-tone=action],.order-selection-bar button[data-erp-tone=action],.batch-dialog-footer button[data-erp-tone=action]{background:#3998ed!important;color:white!important;border-color:#70b5f2!important}
}
@media print{.shipment-action-bar,.order-selection-bar,.purchase-selection-bar,.batch-dialog-footer{display:none!important}}

@media screen{
 .account-selection-bar{position:sticky;bottom:8px;z-index:8;padding:12px 14px;background:#185cbb;color:white;border-radius:6px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
 .account-selection-bar .ca-select-all{background:transparent;color:white;margin:0;flex:1}
 .account-selection-bar #ca-selection{color:white}
 .account-selection-bar .cw-actions{display:flex;gap:8px;flex-wrap:wrap}
}
@media print{.account-selection-bar{display:none!important}}

.sample-tracking-link{color:#1677c8!important;background:transparent!important;border:0!important;padding:4px 0!important;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;text-align:left}

.sample-summary{display:flex;gap:10px;align-items:center;min-width:180px}.sample-summary img{width:56px!important;height:72px!important;object-fit:contain;flex:none;margin:0!important}.sample-summary p{margin:4px 0;white-space:pre-wrap}.sample-summary>div{min-width:0}
.wf-tv-entry{display:flex;gap:20px;align-items:center;padding:22px 26px;margin:0 0 22px;border:1px solid #ead5df;border-radius:13px;background:linear-gradient(115deg,#fff7fb,#fff);box-shadow:0 4px 16px #79436207}.wf-tv-icon{display:grid;place-items:center;width:60px;height:60px;flex:none;background:#f7e2ed;color:#a84e78;border-radius:14px}.wf-tv-icon svg{width:42px;height:42px}.wf-tv-copy{flex:1;min-width:0}.wf-tv-copy h2{margin:0 0 6px!important;padding:0!important;border:0!important;font-size:22px;color:#814361}.wf-tv-copy p{margin:0 0 7px;color:#796474;font-size:14px}.wf-tv-copy small{font-size:12px;color:#917b87}.wf-tv-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.wf-tv-actions a,.wf-tv-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 15px;border-radius:8px;border:1px solid #dfbfd0;background:#fff;color:#984c70;text-decoration:none;font-size:13px;white-space:nowrap}.wf-tv-actions .wf-tv-play{background:#a84e78;color:#fff;border-color:#a84e78}.wf-tv-actions button:disabled{opacity:.55;cursor:default}.wf-tv-actions a:hover{filter:brightness(.97)}.wf-tv-actions a:focus-visible{outline:3px solid #bc668f;outline-offset:3px}@media(max-width:1100px){.wf-tv-entry{flex-wrap:wrap}.wf-tv-actions{margin-left:80px}}@media(max-width:650px){.wf-tv-entry{padding:18px;gap:14px}.wf-tv-icon{width:44px;height:44px}.wf-tv-icon svg{width:32px;height:32px}.wf-tv-copy h2{font-size:19px}.wf-tv-copy p{font-size:12px;line-height:1.6}.wf-tv-copy small{font-size:11px;line-height:1.7}.wf-tv-actions{margin:0;width:100%}.wf-tv-actions a,.wf-tv-actions button{flex:1;padding:10px;font-size:12px}}@media print{.wf-tv-entry{display:none}}

/* No activity has no completed or pending share to illustrate. */
.dash-ring.is-empty{background:var(--border,#e7dfd7)}
