/* Workbench / order pilot. All rules are visual and scoped to these two pages. */
#page-home,#page-order{--vw-text:#172c45;--vw-muted:#64758b;--vw-line:#e2e9f1;--vw-surface:#f6f9fc;font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif}
#page-home .dashboard-hero{position:relative;overflow:hidden;background:linear-gradient(115deg,var(--nav-start),var(--nav-active));border:1px solid var(--nav-border);border-radius:20px;padding:28px 34px;min-height:192px;box-shadow:0 10px 30px #19365312;gap:32px;margin-bottom:24px}
.vw-hero-copy{position:relative;z-index:1;flex:1;min-width:0}.vw-eyebrow{display:flex;gap:14px;align-items:center;color:#b8d6e4;font-size:12px;letter-spacing:1px;margin-bottom:14px}.vw-eyebrow span{color:#a3c1d1;font-size:11px;letter-spacing:0;padding-left:14px;border-left:1px solid #61879a}
#page-home .dashboard-hero h2{font-size:clamp(22px,2vw,30px);font-weight:650;letter-spacing:-.5px;line-height:1.4;margin-bottom:10px}
#page-home .dashboard-hero p{max-width:660px;line-height:1.8;font-size:13px;color:#c7d7e4}
#page-home .dashboard-role{display:inline-block;margin-top:16px;border:1px solid #658398;font-size:11px;color:#e2eef6;background:#ffffff0c;padding:4px 12px}
.vw-process-art{display:flex;gap:18px;align-items:center;position:relative;flex:none;padding:12px 0}.vw-process-line{position:absolute;left:32px;right:32px;top:50%;border-top:1px dashed #92bac5;opacity:.6}
.vw-process-step{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;width:96px;padding:14px 12px;border:1px solid #7396a64d;border-radius:16px;background:var(--nav-active);color:#c5e8e7;box-shadow:0 9px 20px #08182c22;transform:rotate(-5deg)}
.vw-process-step:nth-child(3){transform:translateY(-10px);background:var(--primary-2)}.vw-process-step:last-child{transform:rotate(5deg)}.vw-process-step>span{align-self:flex-start;font-size:10px;letter-spacing:2px;color:#9cc2cc}.vw-process-step svg{width:40px;height:40px}.vw-process-step b{font-size:12px;font-weight:500;letter-spacing:3px}
#page-home .dashboard-metrics{gap:16px;margin-bottom:24px}#page-home .dashboard-metric{position:relative;overflow:hidden;border:1px solid var(--vw-line);border-radius:16px;padding:20px 22px;box-shadow:0 2px 5px #18345103;min-height:135px}
#page-home .dashboard-metric>span{font-size:13px;margin-bottom:14px;color:#596b81}#page-home .dashboard-metric>strong{font-size:29px;font-weight:650;color:var(--vw-text);letter-spacing:-.8px;padding-right:38px}#page-home .dashboard-metric small{margin-top:12px;color:var(--vw-muted);font-size:11px}
.vw-metric-icon{position:absolute;right:18px;top:18px;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--accent-soft);color:var(--accent)}.vw-metric-icon svg{width:20px;height:20px}
#page-home .dashboard-metric.danger .vw-metric-icon{background:#fff1ed;color:#c45c3f}#page-home .dashboard-metric.warning .vw-metric-icon{background:#fff6e5;color:#9c6a14}#page-home .dashboard-metric.success .vw-metric-icon{background:#ebf6f2;color:#21846b}
#page-home .dashboard-metric.danger strong{color:#b14c38}#page-home .dashboard-metric.warning strong{color:#916221}
#page-home .dashboard-grid{grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:24px}#page-home .dashboard-grid>.card{border:1px solid var(--vw-line);border-radius:16px;padding:22px;box-shadow:0 3px 12px #18345104}
#page-home .card-title{font-size:16px;letter-spacing:0;color:var(--vw-text);border-bottom:0;padding:0;margin:0 0 16px}#page-home .card-title:before{display:none}
#page-home .dashboard-task{gap:16px;padding:14px 0;border-radius:0;min-height:100px}#page-home .dashboard-task-main strong{font-size:14px;font-weight:600;color:var(--vw-text);white-space:normal;line-height:1.55}#page-home .dashboard-task-main>span{font-size:12px;line-height:1.6;white-space:normal;color:var(--vw-muted);margin-top:5px}.vw-task-no{display:block;color:#8291a4;font-size:11px;margin-bottom:5px}
#page-home .dashboard-task-status{font-size:11px;border-radius:6px;padding:5px 8px;background:#fff3ed;color:#ad5434;white-space:nowrap}
#page-home .dashboard-actions{gap:12px}#page-home .dashboard-action{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:12px;padding:22px 12px;min-height:110px;border-radius:12px;border-color:var(--vw-line);font-size:13px;color:var(--vw-text);background:var(--vw-surface)}#page-home .dashboard-action svg{width:26px;height:26px;color:var(--accent)}
#page-order>.bw-heading{margin:6px 0 22px}#page-order>.bw-heading h2{font-size:27px;font-weight:650;letter-spacing:-.5px}#page-order>.bw-heading p{font-size:13px;line-height:1.8}
#page-order #orderWorkspaceTabs{gap:28px}#page-order #orderWorkspaceTabs button{font-family:inherit;font-size:14px;font-weight:500;padding:13px 2px}
#page-order #customerOrderCenter{box-shadow:none;border:0;background:transparent;padding:0;margin:0}#page-order #customerOrderCenter>.card-title,#page-order #customerOrderCenter>.card-title+div{display:none}
#page-order #coEntry{background:#fff;border:1px solid var(--vw-line);padding:24px;border-radius:16px}
#page-order #coListTools{padding:0 0 18px;gap:10px}#page-order #coListTools input,#page-order #coListTools select{background:#fff;font-family:inherit;min-height:42px;border-color:#d6e0eb;border-radius:10px}#page-order #coListTools input{width:360px}#page-order #coListTools .btn{min-height:42px;border-radius:10px}
#page-order #customerOrderList{display:flex;flex-direction:column;gap:16px}#page-order .customer-order-row{border:1px solid var(--vw-line);border-radius:16px;padding:22px;background:#fff;box-shadow:0 3px 10px #17354f03}
.vw-order-overview{display:grid;grid-template-columns:128px minmax(0,1fr);gap:24px;align-items:center}.vw-order-copy{min-width:0}
#page-order .customer-order-head{display:flex;gap:12px;align-items:flex-start}#page-order .customer-order-head strong{font-size:12px;font-weight:500;color:#6b7e95;letter-spacing:.2px}#page-order .customer-order-head>div{flex-direction:row;flex-wrap:wrap;gap:10px 18px;align-items:center}#page-order .customer-order-head span{font-size:12px;color:#52647b}
#page-order .customer-order-status{font-size:11px;padding:5px 11px;border-radius:7px;white-space:nowrap;margin-top:0}#page-order .customer-order-status.warning{background:#fff5e6;color:#986218}#page-order .customer-order-status.info{background:#edf3ff;color:#3a66a4}#page-order .customer-order-status.success{background:#eaf7f0;color:#247559}
#page-order .co-brief{margin-top:12px;align-items:baseline;gap:16px}#page-order .co-brief>span:first-child{font-size:18px;font-weight:620;color:var(--vw-text);line-height:1.5}#page-order .co-brief small{font-size:14px;color:#6b7e95;font-weight:400;white-space:nowrap}#page-order .co-brief>span:last-child{font-size:12px;white-space:nowrap}
.vw-delivery-progress{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#76869b;font-size:11px;margin-top:17px}.vw-delivery-progress b{color:#3f655f;font-weight:600;margin-left:5px}.vw-progress-track{height:5px;border-radius:5px;background:#edf2f6;margin-top:8px;overflow:hidden}.vw-progress-track i{display:block;height:100%;background:#59a694;border-radius:inherit}
#page-order .co-details{margin-top:18px;border-top:1px solid #eef2f6}#page-order .co-details>summary{font-size:12px;font-weight:500;padding:14px 0 0;color:#5a708e}#page-order .co-details[open]>summary{padding-bottom:2px}#page-order .co-details[open]{padding-top:0}#page-order .co-details .customer-order-actions{gap:8px}
#page-order .customer-order-actions .customer-order-btn{padding:9px 13px;font-size:12px;line-height:1.5;border-radius:8px;white-space:normal;overflow-wrap:anywhere;height:auto;min-height:38px}
.vw-product-photo{position:relative;display:block;width:128px;height:128px;overflow:hidden;border:1px solid #e7edf3;border-radius:13px;background:#f2f5f9;padding:0;color:#8294a9;isolation:isolate;flex:none;font-family:inherit;cursor:zoom-in}
.vw-product-photo:disabled{opacity:1;cursor:default}.vw-product-photo img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}.vw-product-photo img[hidden]{display:none}.vw-photo-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px}.vw-photo-placeholder svg{width:32px;height:32px;opacity:.6}.vw-photo-placeholder small{font-size:10px}.has-photo .vw-photo-placeholder{display:none}
.vw-photo-caption{position:absolute;bottom:0;left:0;right:0;padding:5px 2px;background:#f4f7faeb;color:#5d7087;font-size:9px;font-weight:400;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vw-product-photo:not(.has-photo) .vw-photo-caption{display:none}
.vw-product-photo:not(.has-photo) img{opacity:0}
.vw-production-progress .vw-progress-track i{background:#668bc5}.vw-production-progress .vw-delivery-progress b{color:#476d9f}.vw-production-note{font-size:11px;color:var(--vw-muted);margin-top:6px;line-height:1.5}
#page-home .vw-product-photo{width:72px;height:72px;border-radius:10px}#page-home .vw-photo-caption{font-size:8px;padding:3px 0}#page-home .vw-photo-placeholder svg{width:25px;height:25px}#page-home .vw-photo-placeholder small{font-size:9px}
.vw-photo-full{display:grid;place-items:center;overflow:auto;flex:1;min-height:0;padding:20px;background:#edf2f7}.vw-photo-full img{max-width:100%;max-height:100%;object-fit:contain}.vw-photo-overlay section{max-width:1000px}.vw-photo-overlay header{gap:16px}.vw-photo-overlay header strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere;flex:1}.vw-photo-overlay header button{flex:none}
@media(prefers-reduced-motion:no-preference){
 #page-home .dashboard-metric,#page-home .dashboard-action,#page-order .customer-order-row,#page-order .btn,.vw-product-photo{transition:box-shadow .18s ease,border-color .18s ease,transform .18s ease,background-color .18s ease}
 #page-home .dashboard-metric:hover,#page-home .dashboard-action:hover{transform:translateY(-2px);box-shadow:0 8px 18px #1834510a}
 #page-order .customer-order-row:hover{border-color:#c7d5e6;box-shadow:0 6px 20px #18345107}
 #page-order .co-details[open]>:not(summary){animation:vw-reveal .18s ease-out}.vw-photo-overlay section{animation:vw-reveal .18s ease-out}.vw-product-photo.has-photo img{animation:vw-reveal .22s ease-out}
 .vw-progress-track i{transition:width .25s ease}
}
@keyframes vw-reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
#page-home button:focus-visible,#page-order button:focus-visible,#page-order summary:focus-visible{outline:3px solid #91b9eb;outline-offset:3px}
@media(max-width:1150px){.vw-process-art{gap:12px}.vw-process-step{width:74px;padding:12px 8px}.vw-process-step svg{width:32px;height:32px}#page-home .dashboard-hero{padding:24px}.vw-order-overview{grid-template-columns:110px minmax(0,1fr);gap:18px}#page-order .vw-product-photo{width:110px;height:110px}}
@media screen and (min-width:1600px){#page-order #customerOrderList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}#page-order .customer-order-row{min-width:0}#page-order .customer-order-item-summary{grid-template-columns:repeat(3,minmax(0,1fr));overflow-wrap:anywhere}#page-order .customer-order-item-summary>b{grid-column:1/-1}#page-order .co-brief{flex-direction:column;gap:5px}.vw-order-overview{grid-template-columns:110px minmax(0,1fr);gap:18px}#page-order .vw-product-photo{width:110px;height:120px}}
@media(max-width:850px){#page-home .dashboard-grid{grid-template-columns:minmax(0,1fr)}.vw-process-art{display:none}#page-home .dashboard-metric{padding:18px;min-height:128px}.vw-metric-icon{right:14px;top:14px;width:30px;height:30px}#page-home .dashboard-metric>strong{font-size:25px}#page-order .co-brief{flex-direction:column;gap:5px}}
@media(max-width:600px){
 #page-home .dashboard-hero{padding:22px;border-radius:16px;margin-bottom:16px;min-height:0}#page-home .dashboard-hero h2{font-size:23px}#page-home .dashboard-hero p{font-size:12px}.vw-eyebrow{font-size:11px}
 #page-home .dashboard-metrics{gap:10px;margin-bottom:16px}#page-home .dashboard-metric{padding:16px 14px;min-height:126px;border-radius:12px}#page-home .dashboard-metric>strong{font-size:23px;padding-right:0;letter-spacing:-.4px}#page-home .dashboard-metric>span{font-size:12px;padding-right:22px;margin-bottom:12px}.vw-metric-icon{width:24px;height:24px;right:10px;top:12px;border-radius:7px}.vw-metric-icon svg{width:16px;height:16px}#page-home .dashboard-metric small{font-size:10px;line-height:1.5}
 #page-home .dashboard-grid{gap:16px}#page-home .dashboard-grid>.card{padding:18px 14px}#page-home .dashboard-task{gap:10px;align-items:flex-start;flex-wrap:wrap}#page-home .dashboard-task-main{flex:1;min-width:130px}#page-home .dashboard-task-main strong{font-size:13px}#page-home .dashboard-task-status{margin-left:64px;margin-top:-2px;padding:3px 7px}#page-home .vw-product-photo{width:54px;height:60px}#page-home .dashboard-action{min-height:96px;padding:18px 12px}
 #page-order>.bw-heading h2{font-size:24px}#page-order>.bw-heading p{font-size:12px}#page-order #orderWorkspaceTabs{gap:22px}#page-order #orderWorkspaceTabs button{font-size:13px}#page-order #coListTools input{width:100%}#page-order #coEntry{padding:18px 14px}
 #page-order .customer-order-row{padding:16px;border-radius:13px}.vw-order-overview{grid-template-columns:70px minmax(0,1fr);gap:12px;align-items:start}#page-order .vw-product-photo{width:70px;height:86px;border-radius:10px}.vw-photo-caption{font-size:8px}#page-order .customer-order-head{display:flex;flex-direction:column;gap:6px}#page-order .customer-order-head>div{gap:5px;flex-direction:column;align-items:flex-start}#page-order .customer-order-head strong{font-size:10px}#page-order .customer-order-head span{font-size:11px}#page-order .customer-order-status{font-size:10px;padding:3px 7px}
 #page-order .co-brief{margin-top:8px;gap:5px}#page-order .co-brief>span:first-child{font-size:15px}#page-order .co-brief small{font-size:12px}#page-order .co-brief>span:last-child{font-size:11px}.vw-delivery-progress{margin-top:12px;gap:4px;font-size:10px}.vw-progress-track{height:4px}#page-order .co-details{margin-top:14px}#page-order .customer-order-actions .customer-order-btn{padding:8px;font-size:11px}
}
@media print{.vw-process-art,.vw-product-photo,.vw-metric-icon,.vw-photo-overlay{display:none!important}.vw-order-overview{display:block}.vw-progress-track{display:none}#page-home .dashboard-hero{background:#fff;color:#111;box-shadow:none}#page-home .dashboard-hero p{color:#333}#page-order .customer-order-row{box-shadow:none;break-inside:avoid}}
