@charset "UTF-8";
:root{--green:#1b5544;--dark:#173f35;--ink:#213c34;--muted:#7a8780;--paper:#f5f6f2;--border:#e5e9e3;--mint:#e9f2e9;--white:#fff;--amber:#b47723;--red:#b85548;--sidebar:228px;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{color:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}a{text-decoration:none}button{border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #91bba6;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-.8px;font-weight:650}h2{font-size:16px;font-weight:650}h3{font-size:14px}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--border);padding:30px 16px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:0 12px;font-size:23px;font-weight:700;letter-spacing:3px}.brand img{width:39px;height:36px}.brand-sub{display:block;font-size:9px;letter-spacing:1.2px;font-weight:500;color:var(--muted);margin-top:4px}.workspace{display:flex;align-items:center;gap:10px;padding:14px 12px;margin:30px 0 25px;border:1px solid var(--border);border-radius:8px;background:#fbfcfa}.workspace-mark{display:grid;place-items:center;border-radius:7px;width:31px;height:32px;background:var(--mint);color:var(--green);font-size:15px}.workspace b{font-size:12px;font-weight:600}.workspace small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.workspace-dot{width:6px;height:6px;border-radius:50%;background:#6d9e7b;margin-left:auto}.nav-label{font-size:10px;color:#9aa49e;padding:0 16px;margin-bottom:12px;letter-spacing:1.5px}nav{display:flex;flex-direction:column;gap:5px}.nav-link{height:43px;padding:0 16px;display:flex;gap:12px;align-items:center;border-radius:6px;font-size:13px;color:#66766c;transition:background .15s}.nav-link:hover{background:#f6f8f4}.nav-link.active{background:var(--mint);color:var(--green);font-weight:650}.nav-link svg{width:17px;height:17px;stroke-width:1.6}.nav-divider{height:1px;background:var(--border);margin:15px 12px}.sidebar-bottom{margin-top:auto;padding:24px 12px 0;font-size:10px;color:#7a8b80}.connection-dot{display:inline-block;width:6px;height:6px;background:#75a47f;border-radius:50%;margin-right:5px}.version{float:right;color:#a2aca5}.sidebar-bottom small{display:block;margin-top:12px;font-size:10px;color:#a0aaa3}.shell{margin-left:var(--sidebar);min-height:100vh}.topbar{height:75px;padding:0 38px;background:#ffffffcf;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:15px}.breadcrumb{font-size:11px;color:#8a968e}.breadcrumb span{padding:0 12px;color:#b5bdb6}.breadcrumb b{color:#52665a;font-weight:500}.header-controls{display:flex;gap:22px;align-items:center}.factory-select{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted)}.factory-select select{background:white;border:1px solid var(--border);padding:8px 28px 8px 12px;border-radius:5px;color:#4d6657;font-size:11px}.icon-button{width:31px;height:31px;border:1px solid var(--border);border-radius:5px;color:#63806d;font-size:20px}.mode-banner{background:#faf6e9;border-bottom:1px solid #eee8d6;padding:9px 38px;color:#988350;font-size:10px;display:flex;justify-content:space-between;gap:12px;line-height:1.6}.mode-banner b{font-weight:600;margin-right:9px}.mode-banner.business{background:#edf3ed;color:#62816c}main{max-width:1640px;margin:auto;padding:32px 38px 12px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.eyebrow{color:#8a9c8c;font-size:9px;letter-spacing:2px;margin-bottom:9px}.subheading{font-size:11px;color:var(--muted);margin-top:11px;line-height:1.9}.page-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}.btn{border:1px solid var(--border);background:white;padding:10px 15px;border-radius:6px;font-size:11px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#52665a;white-space:nowrap}.btn.primary{background:var(--green);border-color:var(--green);color:white}.btn:hover{filter:brightness(.96)}.btn svg{width:14px;height:14px}.btn.text{border:0;background:none;color:var(--green);padding:4px 0}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:23px}.kpi{background:white;border:1px solid var(--border);border-radius:9px;padding:21px 22px;position:relative;min-height:139px}.kpi-label{font-size:11px;color:#718275;display:flex;align-items:center;justify-content:space-between}.kpi-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:7px;background:#f4f7f1;color:#7d987c}.kpi-icon svg{width:15px;height:15px}.kpi-value{font-size:32px;letter-spacing:-1px;line-height:1;margin-top:9px;font-weight:600;font-variant-numeric:tabular-nums}.kpi-value small{font-size:11px;letter-spacing:0;font-weight:400;color:#86948a;margin-left:6px}.kpi-note{font-size:10px;color:#9aa49c;margin-top:13px}.kpi-note b{color:var(--green);font-weight:500}.kpi-note .warning-text{color:var(--amber)}.columns{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;margin-bottom:22px}.panel{border:1px solid var(--border);border-radius:9px;background:white;overflow:hidden;min-width:0}.panel-head{padding:21px 23px;display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-head h2{font-size:13px}.panel-head p{font-size:10px;color:#9aa49c;margin-top:6px}.quiet{font-size:10px;color:#93a098}.legend{display:flex;gap:13px;font-size:9px;color:#8e9c90}.legend span:before{content:"";display:inline-block;width:7px;height:7px;border-radius:2px;background:#668e6a;margin-right:6px}.legend span:last-child:before{background:#dfbe81}.chart{padding:0 20px 13px}.chart svg{width:100%;height:170px;overflow:visible}.chart text{fill:#9da79e;font-size:10px;font-family:inherit}.chart .grid{stroke:#edf0e9;stroke-dasharray:3 4}.chart .good-bar{fill:#63866b}.chart .scrap-bar{fill:#dfbe81}.chart-note{font-size:9px;color:#9ca79e;padding:0 25px 18px}.attention{padding:0 22px 9px}.attention-item{display:flex;align-items:flex-start;gap:11px;padding:15px 0;border-top:1px solid #f0f2ed;width:100%;text-align:left}.attention-symbol{width:27px;height:27px;display:grid;place-items:center;background:#faf2e3;color:#b99453;border-radius:7px;font-size:13px;flex-shrink:0}.attention-item:nth-child(2) .attention-symbol{background:#f7ebe7;color:#ba7b6b}.attention-copy{flex:1}.attention-copy b{display:block;font-size:11px;font-weight:500}.attention-copy small{display:block;font-size:9px;color:#97a095;margin-top:7px;line-height:1.6}.attention-item>span:last-child{font-size:12px;color:#adb8ae}.workflow{display:grid;grid-template-columns:repeat(5,1fr);padding:4px 24px 22px;gap:12px}.workflow-item{padding:13px 15px;background:#f5f8f2;border:1px solid #e9eee5;border-radius:6px;position:relative}.workflow-item small{font-size:10px;color:#91a08d;display:block}.workflow-item b{font-size:20px;font-weight:600;display:block;margin-top:9px}.workflow-item span{font-size:9px;color:#94a28f}.table-wrap{overflow-x:auto;width:100%}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:11px}thead{background:#f8faf6;color:#8b998d;font-size:10px;text-align:left}th{font-weight:500;padding:13px 22px;border-top:1px solid #eff2eb;border-bottom:1px solid #eff2eb}td{padding:17px 22px;border-bottom:1px solid #eff2eb;color:#596f5e}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfb}td strong{font-weight:600;color:#355442;font-size:11px}td small{display:block;font-size:9px;color:#96a191;margin-top:6px}.mono{font-family:"Cascadia Code",Consolas,monospace;font-size:10px;letter-spacing:-.2px}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:4px;padding:4px 7px;background:#f0f2ee;color:#82907e;font-size:9px}.pill:before{content:"";height:4px;width:4px;border-radius:50%;background:currentColor}.pill.green{background:#eaf3e9;color:#64835d}.pill.amber{background:#fbf3e4;color:#b28e4c}.pill.red{background:#f8ece7;color:#b87661}.pill.blue{background:#eaf0f5;color:#66829b}.table-actions{display:flex;gap:12px}.link-button{font-size:10px;color:var(--green);padding:0}.link-button:hover{text-decoration:underline}.progress-cell{display:flex;align-items:center;gap:10px}progress{width:75px;height:5px;border:0;border-radius:9px;overflow:hidden;background:#edf0e8;color:#749272}progress::-webkit-progress-bar{background:#edf0e8;border-radius:9px}progress::-webkit-progress-value{background:#749272;border-radius:9px}progress::-moz-progress-bar{background:#749272}.page-toolbar{display:flex;justify-content:space-between;align-items:center;padding:16px 22px;gap:12px;border-bottom:1px solid var(--border)}.search{border:1px solid var(--border);border-radius:5px;background:#fbfcf9;padding:9px 12px;min-width:240px;font-size:11px;color:var(--ink)}.toolbar-info{font-size:10px;color:#96a292}.empty{padding:48px 24px;text-align:center;color:#879783;font-size:12px;line-height:2}.empty b{display:block;color:#4e6b55;font-size:15px;margin-bottom:8px}.page-note{border-left:3px solid #b3c7ac;background:#edf2e9;padding:13px 16px;margin-bottom:20px;font-size:11px;color:#6d8066;line-height:1.9}.footer{display:flex;justify-content:space-between;padding:25px 38px;font-size:9px;color:#a7b0a7;max-width:1640px;margin:auto}.loading{padding:80px 20px;text-align:center;color:#8c9d8b}dialog{border:1px solid var(--border);border-radius:12px;padding:0;width:min(650px,calc(100vw - 32px));max-height:90vh;color:var(--ink);box-shadow:0 30px 100px #132c2630}dialog::backdrop{background:#142d254c;backdrop-filter:blur(3px)}.modal-head{padding:23px 26px 18px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.modal-head p{font-size:10px;color:#8c9b89;margin-top:7px}.form-body{padding:22px 26px;display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#6f836c;min-width:0}.field.wide{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;border:1px solid #dfe6d9;border-radius:5px;background:#fdfefb;padding:10px 11px;color:#365637;font-size:12px}.field textarea{min-height:72px;resize:vertical}.field small{font-size:10px;color:#98a48f;line-height:1.7}.form-note{grid-column:1/-1;background:#f5f7ef;border-radius:5px;color:#88977c;font-size:10px;line-height:1.9;padding:11px 13px}.form-error{grid-column:1/-1;color:#ac5f4d;font-size:11px;line-height:1.8}.modal-actions{padding:17px 26px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px;background:#fbfcf9}.detail-body{padding:23px 26px;font-size:12px;line-height:1.9}.detail-grid{display:grid;grid-template-columns:100px 1fr;gap:11px;margin-bottom:24px}.detail-grid dt{color:#8d9d87}.detail-grid dd{margin:0;overflow-wrap:anywhere}.detail-section{font-size:12px;margin:24px 0 12px;border-top:1px solid var(--border);padding-top:18px}.detail-row{padding:10px 0;border-bottom:1px solid #edf1e8;color:#68815f;font-size:11px}.detail-row small{display:block;color:#9ba88f;font-size:10px}.detail-row pre{font:10px/1.8 Consolas,monospace;white-space:pre-wrap;word-break:break-word;color:#839176}.trace-card{padding:24px}.trace-card h2{margin-bottom:13px}.trace-card p{font-size:11px;color:#8a9d7e;line-height:1.9;margin-bottom:17px}.trace-search{display:flex;gap:10px}.trace-search input{flex:1;min-width:0}#toast{position:fixed;bottom:25px;left:calc(50% + 90px);transform:translateX(-50%);background:#254b39;color:#fff;padding:13px 22px;border-radius:8px;box-shadow:0 6px 25px #193c2c26;font-size:12px;z-index:100;pointer-events:none;opacity:0;transition:opacity .2s;max-width:80vw}#toast.visible{opacity:1}.mobile-menu{display:none}
@media(min-width:1500px){main{padding-top:40px}.kpi{padding:24px 27px}.chart svg{height:200px}.columns{grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:1150px){:root{--sidebar:205px}.sidebar{padding-left:10px;padding-right:10px}main{padding:26px 24px 10px}.topbar{padding:0 24px}.mode-banner{padding-left:24px;padding-right:24px}.columns{grid-template-columns:minmax(0,1fr) 260px;gap:15px}.kpis{gap:11px}.kpi{padding:17px}.workflow{gap:7px;padding-left:17px;padding-right:17px}.workflow-item{padding:11px}th,td{padding-left:17px;padding-right:17px}}
@media(max-width:900px){.columns{grid-template-columns:1fr}.attention{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.kpis{grid-template-columns:repeat(2,1fr)}.page-head{align-items:flex-start}.mode-banner>span:last-child{display:none}.header-controls{gap:12px}.workflow{grid-template-columns:repeat(5,1fr)}}
@media(max-width:680px){:root{--sidebar:228px}.sidebar{transform:translateX(-100%);box-shadow:8px 0 40px #163b3220}.sidebar.open{transform:translateX(0)}.shell{margin-left:0}.mobile-menu{display:block;flex-shrink:0}.topbar{height:62px;padding:0 16px}.breadcrumb{margin-right:auto}.breadcrumb>span{padding:0 7px}.header-controls{gap:8px}.factory-select>span{display:none}.factory-select select{max-width:122px;font-size:10px}main{padding:25px 16px 5px}.mode-banner{padding:9px 16px;font-size:9px}.page-head{flex-direction:column;gap:16px;margin-bottom:20px}h1{font-size:25px}.kpis{gap:10px}.kpi{padding:17px 15px;min-height:130px}.kpi-value{font-size:29px}.kpi-label{font-size:10px}.kpi-note{font-size:9px}.kpi-icon{width:24px;height:24px}.workflow{grid-template-columns:repeat(3,1fr);gap:8px}.attention{display:block}.form-body{grid-template-columns:1fr}.field.wide{grid-column:auto}.page-toolbar{padding:14px;flex-wrap:wrap}.search{min-width:0;width:100%}.toolbar-info{margin-left:auto}.footer{padding:20px 16px;font-size:8px}.footer span:last-child{max-width:58%;text-align:right}#toast{left:50%}.panel-head{padding:18px}.detail-grid{grid-template-columns:80px 1fr}.trace-search{flex-direction:column}.subheading{font-size:10px}.legend{gap:8px}}
.dashboard-orders,.trace-result-panel{margin-top:22px}
.notes-cell{white-space:pre-wrap;min-width:235px;max-width:330px;line-height:1.8;color:#526b59}.notes-cell .link-button{display:block;margin-top:8px;font-size:11px}.spec-cell{white-space:normal;min-width:195px;max-width:285px;line-height:1.8}.spec-cell small{line-height:1.7}.sync-status{font-size:10px;color:#5f8268;white-space:nowrap}.sync-status.offline{color:#b66b47}#report-unit{border:1px solid var(--border);padding:7px 10px;border-radius:4px;color:var(--green);background:white;font-size:11px}.login-page{min-height:100vh;display:grid;place-items:center;padding:28px;background:#eef2e9}.login-card{padding:46px;width:min(490px,100%);background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 25px 75px #1b43210c}.login-card .eyebrow{margin:26px 0 14px;line-height:1.9}.login-card h1{line-height:1.55;font-size:28px}.login-intro{color:#809377;font-size:12px;line-height:1.9;margin:18px 0 28px}.login-card form{display:grid;gap:18px}.login-foot{font-size:10px;color:#98a28f;margin-top:26px;line-height:1.8}[hidden]{display:none!important}@media(max-width:680px){.sync-status{font-size:9px;max-width:84px;white-space:normal}.header-controls{gap:5px}.header-controls .btn{font-size:9px;padding:6px}.breadcrumb{display:none}.login-card{padding:30px 25px}.login-card h1{font-size:25px}.notes-cell{min-width:210px}}
:focus-visible{outline:3px solid #8dbaa0;outline-offset:3px}.page-guide{border:1px solid var(--border);background:#f8faf5;border-radius:8px;margin:0 0 20px;font-size:12px}.page-guide summary{cursor:pointer;padding:14px 18px;color:var(--green);font-weight:600}.page-guide>div{padding:0 18px 16px;max-width:900px;line-height:1.9}.page-guide p{margin:5px 0 9px}.page-guide a,.help-section a,.help-step a{color:var(--green);text-decoration:underline;text-underline-offset:3px}.filter-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:12px 0;color:var(--muted);font-size:12px}.filter-row select{max-width:100%;border:1px solid var(--border);border-radius:5px;background:white;padding:8px;color:var(--ink);font:inherit}.yield-cell{min-width:160px;white-space:normal;display:grid;gap:5px}.yield-cell strong{font-size:19px;font-variant-numeric:tabular-nums}.yield-cell span{font-size:11px}.yield-cell.warning strong,.yield-cell.warning span{color:#946319}.yield-cell.critical strong,.yield-cell.critical span{color:#ad4239}.yield-cell.normal strong{color:var(--green)}.yield-cell small{margin:0;line-height:1.6}.quality-attention{border-top:3px solid #ca9d4c}.empty.compact{padding:24px;text-align:left}.help-intro{padding:26px;line-height:1.9}.guide-links{display:flex;gap:16px;flex-wrap:wrap}.guide-links a{padding:8px 12px;border:1px solid var(--border);border-radius:6px;font-size:12px}.help-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:18px 0}.help-step{padding:24px;line-height:1.9}.help-step h2{font-size:17px}.help-step p,.help-section p{font-size:13px;line-height:1.9}.step-number{font:600 26px Georgia,serif;color:#91ab8e}.help-section{padding:26px;margin:18px 0}.help-section h2{font-size:20px}.help-section details{padding:14px 0;border-bottom:1px solid var(--border)}.help-section summary{cursor:pointer;font-size:14px;font-weight:600}.table-actions{flex-wrap:wrap;min-width:120px;max-width:180px;gap:9px 12px}.table-actions .link-button{white-space:nowrap}.help-shortcut{white-space:nowrap}.notes-cell{white-space:normal}.header-controls{flex-wrap:wrap}.form-note a{color:var(--green)}
@media(min-width:1100px){.table-wrap td:last-child:has(.table-actions),.table-wrap th:last-child{position:sticky;right:0;background:#fff;box-shadow:-5px 0 10px #173f3505}.table-wrap th:last-child{background:#f8faf6}}@media(max-width:900px){.help-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-row>span{width:100%}}@media(max-width:600px){.help-steps{grid-template-columns:1fr}.help-section,.help-step,.help-intro{padding:20px}.help-shortcut{font-size:11px;padding:6px 9px}.header-controls{gap:6px}.filter-row label{width:100%}.filter-row select{width:100%;margin-top:6px}.page-guide summary{line-height:1.7}.yield-cell{min-width:145px}}
table{font-size:12px}td small{font-size:11px;line-height:1.65}td strong{font-size:12px}.link-button{font-size:12px}.modal-actions button:disabled{cursor:not-allowed}
.order-summary{min-width:165px;white-space:normal;max-width:205px}.order-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.quantity-summary{min-width:140px}.spec-details{font-size:11px;line-height:1.65;margin-top:7px}.spec-details summary{cursor:pointer;color:var(--green)}.spec-details[open]{padding-bottom:4px}
#navigation{flex:1;min-height:0;overflow-y:auto;padding-bottom:8px}.sidebar{overflow:hidden}.sidebar-bottom,.workspace{flex-shrink:0}
.link-button,.btn.text{display:inline-flex;align-items:center;justify-content:center;min-height:32px;border:1px solid #a8bfb0;border-radius:5px;background:#f0f6f1;padding:6px 10px;color:#245840;font-weight:600;text-decoration:none;line-height:1.4;box-shadow:0 1px 1px #173f3508}
.link-button:hover,.btn.text:hover{background:#dfeee2;border-color:#648e74;text-decoration:none}.link-button:active{background:#d1e4d5}.link-button[data-action="cancel-order"]{border-color:#d4b4a9;color:#934b3d;background:#fff7f3}button:disabled{cursor:not-allowed}.table-actions{gap:7px;min-width:140px;max-width:155px}.table-actions .link-button{padding:6px 8px;font-size:11px}.notes-cell .link-button{display:inline-flex}.notes-cell .requirement{display:block;white-space:pre-wrap;font-weight:600;color:#526044;font-size:12px;line-height:1.8}.spec-cell .notes-cell{min-width:0;margin-top:10px;max-width:none}
td .customer-name{display:block;color:#164f3b;font-size:17px;font-weight:750;line-height:1.5}.spec-emphasis{display:block;background:#f0f4e8;border-left:3px solid #b7c999;padding:5px 8px;margin-top:6px;color:#4e6035;font-size:12px}.production-order{display:block;font-size:14px;font-weight:750;color:#184c3b}.customer-secondary{display:block;margin-top:5px}.work-summary{min-width:210px;max-width:250px;white-space:normal}.archive-summary{min-width:180px;max-width:250px;white-space:normal;line-height:1.8}.archive-summary>strong{display:block;margin-top:8px}.order-summary{min-width:160px}.spec-cell{min-width:190px}.quantity-summary{min-width:115px}
.progress-block{min-width:135px;max-width:200px;margin:5px 0 12px}.progress-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;margin-bottom:7px}.progress-label strong{font-size:14px;font-variant-numeric:tabular-nums}.progress-block progress{display:block;width:100%;height:8px}.progress-block small{font-variant-numeric:tabular-nums;margin-top:5px}.order-progress .progress-block:last-child{margin-bottom:0}.order-progress .progress-block:last-child progress::-webkit-progress-value{background:#6593b1}.order-progress .progress-block:last-child progress::-moz-progress-bar{background:#6593b1}.workflow{grid-template-columns:repeat(4,1fr)}
.date-field{border:0;padding:0;margin:0;min-width:0}.date-field legend{margin:0 0 8px;padding:0;font-size:11px;color:#6f836c}.date-parts{display:flex;gap:5px;align-items:center}.date-parts input{width:0;min-width:0;flex:1;text-align:center;padding:10px 5px;font-variant-numeric:tabular-nums}.date-parts input:first-child{flex:1.6}.date-field:disabled{opacity:.45}.date-error{font-size:11px;color:#a14739;line-height:1.6}.owner-settings{padding:18px 24px;margin:18px 0}.owner-settings summary{cursor:pointer;font-weight:650;font-size:13px}.owner-settings p{font-size:12px;line-height:1.9;margin:12px 0;color:#7a8780}.owner-settings button{margin-right:10px}.owner-settings .btn{margin-top:8px}
@media(min-width:901px){td,th{padding-left:14px;padding-right:14px}}
@media(max-width:680px){.date-parts{max-width:300px}.workflow{grid-template-columns:repeat(2,1fr)}.page-actions{flex-wrap:wrap}.progress-block{min-width:130px}.owner-settings{padding:18px}}

.btn.primary.danger{background:#9c5141;border-color:#9c5141;color:white}
/* 多角色工作台：沿用现有色板与按钮，不把权限仅交给页面隐藏。 */
.boss-nav{background:#eee7f7;color:#5c327e!important;border:1px solid #bba3d1;margin-bottom:12px}.boss-nav.active{background:#693e89!important;color:white!important}
.boss-intro{background:#efe9f6;border:1px solid #cbb6df;padding:24px;border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.boss-intro p{max-width:720px;line-height:1.8}
.employee-guide{background:#e9f2ed;border-left:4px solid #27705a;padding:20px;line-height:1.8;margin-bottom:20px;border-radius:8px}.employee-toolbar{margin-bottom:18px}.employee-cards,.people-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:18px}.employee-card,.person-card{padding:24px;background:white;border:1px solid var(--line,#dce4dd);border-radius:14px;min-width:0}.employee-card h2{font-size:21px;margin:20px 0 12px}.card-top{display:flex;gap:12px;justify-content:space-between;align-items:start}.card-top strong{font-size:24px}.card-top small{display:block;margin-top:8px;color:#65736e}.card-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.order-requirements{background:#fff6da;padding:16px;white-space:pre-wrap;line-height:1.8;border-radius:8px;color:#674c18}.needed-quantity{margin-top:20px}.needed-quantity b{font-size:32px}.spec-emphasis{white-space:pre-wrap;font-weight:650}.reset-requests,.admin-controls,.evidence-panel{padding:24px;margin-top:24px}.reset-code{font-size:24px;font-family:monospace;overflow-wrap:anywhere;background:#fff1d4;padding:20px;user-select:all}.report-card{padding:18px;border:1px solid #dce4dd;border-radius:10px;margin:18px 0;background:#fafcfb}.report-heading{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.report-description{white-space:pre-wrap;line-height:1.8}.report-time{display:block;color:#65736e;margin:8px 0}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin-top:14px}.photo-grid img{width:100%;height:140px;object-fit:cover;border-radius:8px;border:1px solid #dce4dd}.photo-inputs{display:flex;flex-wrap:wrap;gap:10px}.photo-inputs input{display:block;width:100%;max-width:200px;font-size:12px;margin-top:8px}.login-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.login-card .field{margin:16px 0}.remember-options{display:grid;gap:12px;margin:20px 0}.remember-options input{width:auto;margin-right:6px}.identity-button{max-width:240px;white-space:normal}.login-card{max-width:560px}.photo-picker{min-width:0}.wide{grid-column:1/-1}
@media(max-width:760px){.boss-intro{display:block}.boss-intro>.btn{margin-top:12px}.header-controls{flex-wrap:wrap;justify-content:flex-end}.identity-button{font-size:12px;max-width:190px}.topbar{height:auto;min-height:72px;padding:12px}.breadcrumb{display:none}.employee-card,.person-card{padding:18px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.login-page{padding:18px}.login-card{padding:24px}.factory-select{max-width:150px}.employee-cards{grid-template-columns:1fr}}
/* 生产记录延续现有表单，窄屏按行排列，长参数不撑宽页面。 */
.production-editor{border-top:1px solid var(--line,#ddd);padding-top:18px}
.production-editor fieldset{border:0;padding:0;margin:14px 0;min-width:0}
.production-editor h3{margin:20px 0 8px;line-height:1.6}.production-editor .quiet{line-height:1.7}
.record-toggle{display:flex;gap:10px;align-items:center;font-weight:700}
.record-toggle input,.record-participants input{width:auto;min-height:0}
.record-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.record-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px;padding:14px;margin:12px 0;border:1px solid #d3ded7;border-radius:10px;background:#f6f8f5}
.record-row label{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0}
.record-row input,.record-row select{width:100%;min-width:0;padding:10px;border:1px solid #aabbb1;border-radius:6px;background:white}
.record-participants{display:flex;gap:16px;flex-wrap:wrap;margin:12px 0}
.production-record{margin:16px 0;padding:16px;border:1px solid #cedbd2;border-radius:10px;overflow-wrap:anywhere}
.production-record summary{cursor:pointer;padding:6px 0;min-height:36px}
.production-record dl div{display:grid;grid-template-columns:minmax(90px,160px) minmax(0,1fr);gap:12px;margin:8px 0}
.production-record dt{font-weight:600}.production-record dd{margin:0;white-space:pre-wrap}
.record-reading{padding:10px;background:#f3f6f1;border-radius:6px;white-space:pre-wrap}
@media(max-width:600px){.record-fields{grid-template-columns:1fr}.record-row{grid-template-columns:repeat(2,minmax(0,1fr))}.production-record dl div{grid-template-columns:1fr;gap:3px}}

/* 2026-10-31 · shared operational UI: readable data, touch controls, contained dialogs. */
:root{--muted:#586d62;--control-border:#9eb2a5;--focus:#337d60;font-size:15px}
body{line-height:1.55}button,input,select,textarea{font:inherit}
.quiet,.subheading,.toolbar-info,.field small{color:var(--muted)}
.subheading{font-size:14px;line-height:1.75;max-width:64em}
.eyebrow{font-size:11px;letter-spacing:.12em;color:var(--muted)}
h1{font-size:28px;line-height:1.3}.page-head{gap:20px;align-items:center}
.btn,.link-button,.btn.text,.icon-button{min-height:44px;border-radius:8px;font-size:13px;line-height:1.4}
.btn,.link-button{padding:10px 14px}.icon-button{min-width:44px}
.btn.primary{font-weight:650}.table-actions .link-button{font-size:13px;padding:9px 12px}
.table-actions{gap:8px}.header-controls .btn{font-size:12px;padding:9px 12px}
.header-controls{gap:8px}.identity-button{max-width:240px;overflow:hidden;text-overflow:ellipsis}
.sync-status{font-size:12px}.factory-select select{min-height:44px;font-size:13px}
.nav-link{height:auto;min-height:46px;font-size:14px}.boss-nav{font-weight:650}
th{font-size:12px;color:var(--muted);font-weight:650}td{font-size:14px;line-height:1.65}
td small,.table-wrap small{font-size:12px;color:var(--muted);line-height:1.65}
.cell-content{min-width:0;overflow-wrap:anywhere}.customer-primary{font-size:17px;line-height:1.5}
.spec-emphasis{font-size:14px;line-height:1.65}.notes-cell{white-space:normal;line-height:1.7}
.progress-label{font-size:12px}.progress-label strong{font-size:15px;font-variant-numeric:tabular-nums}
.search{min-height:44px;font-size:14px;border-color:var(--control-border)}
.table-wrap:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.skip-link{position:fixed;left:16px;top:-80px;z-index:200;background:var(--dark);color:white;padding:12px 18px;border-radius:8px}
.skip-link:focus{top:12px}.nav-scrim,.nav-close{display:none}
[hidden]{display:none!important}
.empty{font-size:14px;line-height:1.8;min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:32px 24px}
.empty b{font-size:18px;color:var(--ink)}.empty p{max-width:38em}
dialog[open]{display:flex;flex-direction:column;width:min(800px,calc(100vw - 40px));max-height:calc(100dvh - 56px);overflow:hidden}
body:has(dialog[open]){overflow:hidden}
.modal-head{flex-shrink:0;gap:16px;padding:20px 24px;background:white}
.modal-head h2{font-size:20px;line-height:1.4}.modal-head h2:focus{outline:none}
.modal-head p{font-size:12px;color:var(--muted);margin-top:4px}
dialog>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.form-body,.detail-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:22px 24px;scroll-padding:24px}
.form-body{gap:20px}.modal-actions{flex-shrink:0;padding:14px 24px;gap:12px;background:#f5f8f3}
.modal-actions .primary{min-width:128px}.modal-actions>.btn{min-width:96px}
.field label,.date-field legend{font-size:13px;font-weight:600;color:var(--ink);line-height:1.6}
.field input,.field select,.field textarea{font-size:15px;min-height:46px;border-color:var(--control-border);border-radius:8px;background:white;color:var(--ink);padding:11px 12px}
.field textarea{min-height:96px;line-height:1.7}.date-parts input{min-height:46px;font-size:15px;border-color:var(--control-border)}
.field small,.date-field small{font-size:12px;color:var(--muted)}
.form-note{font-size:13px;line-height:1.75;padding:14px 16px;border-radius:8px}
input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"]{border-color:#a23b32!important;box-shadow:0 0 0 1px #a23b32}
dialog>form>.form-error{flex-shrink:0;margin:0;padding:10px 24px;background:#fff2ed;color:#8b2e27;font-size:13px;line-height:1.6;border-top:1px solid #ecd0c6;max-height:100px;overflow-y:auto}
.form-error:empty{display:none}.discard-warning{flex-shrink:0;padding:14px 24px;background:#fff7e6;border-top:1px solid #dac49b;font-size:14px}
.discard-warning>div{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.production-editor .quiet{font-size:13px;line-height:1.7;margin:10px 0}
.record-toggle{padding:14px 0;font-size:14px;gap:12px}.record-toggle input{width:22px;height:22px}
.record-section{border:1px solid #cfdbd2;border-radius:10px;margin:12px 0;background:white;min-width:0}
.record-section>summary{cursor:pointer;padding:16px;font-size:15px;font-weight:650;line-height:1.5;min-height:52px;color:var(--dark)}
.record-section[open]>summary{border-bottom:1px solid #e2e9e3;background:#f3f7f2;border-radius:10px 10px 0 0}
.record-section-body{padding:18px;min-width:0}.record-section-body>.btn{margin-top:10px}
.record-fields{gap:20px}.record-row{padding:16px;gap:14px}.record-row label{font-size:13px;color:var(--ink)}
.record-row input,.record-row select{font-size:15px;min-height:44px}.record-collaborators>summary{padding:14px 0;cursor:pointer}
.record-participants label{display:flex;align-items:center;gap:10px;min-height:44px}
.record-participants input{width:20px;height:20px}.production-record>summary{line-height:1.7;min-height:44px}
.login-page{background:#eef3ed;padding:40px 20px}.login-card{width:min(100%,520px);padding:36px 40px;border:1px solid #d5e0d6;border-radius:18px;box-shadow:0 14px 40px #173f350a}
.login-card h1{font-size:28px;margin:10px 0}.login-intro{font-size:14px;line-height:1.8;color:var(--muted)}
.login-card form{gap:16px}.login-card .field{margin:0}.login-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px;background:#edf2eb;border-radius:10px;margin:24px 0}
.login-tabs .btn{border:0;box-shadow:none;font-size:14px;min-width:0;padding:10px 8px;background:transparent;color:var(--muted)}
.login-tabs .btn.primary{background:white;color:var(--dark);box-shadow:0 1px 4px #173f3514}
.password-control{position:relative}.password-control input{padding-right:64px}.password-toggle{position:absolute;right:4px;top:2px;bottom:2px;min-width:54px;padding:8px;font-size:13px;color:var(--green);font-weight:650;border-radius:6px}
.password-toggle:hover{background:#eef4ee}.login-card .remember-options{gap:10px;display:grid}
.remember-options label{display:flex;align-items:center;gap:10px;font-size:14px;min-height:40px}
.remember-options input{width:20px;height:20px;accent-color:var(--green)}
.login-card .quiet,.login-foot{font-size:13px;line-height:1.7;color:var(--muted)}
.login-card [type="submit"]{width:100%;font-size:16px;min-height:48px}.login-card .form-error{margin-top:16px;line-height:1.7;font-size:14px}
@media(max-width:900px){
 .sidebar{transform:translateX(-100%)}.sidebar.open{transform:translateX(0)}.shell{margin-left:0}.mobile-menu{display:block;flex-shrink:0}
 .topbar{height:auto;min-height:72px}.header-controls{flex-wrap:wrap;justify-content:flex-end}.breadcrumb{display:none}
 .nav-scrim:not([hidden]){display:block;position:fixed;inset:0;z-index:19;background:#132c2670;backdrop-filter:blur(2px)}
 .sidebar.open{z-index:20;box-shadow:12px 0 36px #173f3520;max-width:calc(100vw - 52px);overflow-y:auto}
 .sidebar.open .nav-close{display:flex;position:absolute;right:8px;top:8px;align-items:center;justify-content:center}
 .sidebar.open .brand{margin-top:26px}.navigation-open{overflow:hidden}
}
@media(max-width:760px){
 .topbar{padding:12px;gap:10px;align-items:flex-start}.header-controls{gap:8px;min-width:0;flex:1}
 .topbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px 76px;gap:8px}.topbar .header-controls{display:contents}
 .topbar #menu-toggle{grid-column:1;grid-row:1}.topbar .factory-select{grid-column:2;grid-row:1;max-width:none;margin:0}
 .topbar .factory-select select{width:100%;max-width:none}.topbar #refresh{grid-column:3;grid-row:1}.topbar #logout{grid-column:4;grid-row:1;padding:8px}
 .topbar .help-shortcut{display:none}.topbar .sync-status{grid-column:1;grid-row:2;max-width:none;font-size:11px;line-height:1.45;align-self:center}
 .topbar .identity-button{grid-column:2/5;grid-row:2;max-width:none;width:100%;white-space:normal;overflow-wrap:anywhere}
 .header-controls .btn{font-size:12px}.identity-button{max-width:210px}.header-controls .sync-status{margin-right:auto;align-self:center}
 .page-head{align-items:flex-start;flex-direction:column}.page-actions{width:100%;gap:8px;flex-wrap:wrap}.page-actions .btn{flex:1;justify-content:center}
 h1{font-size:25px}.subheading{font-size:14px}.page-guide>summary{font-size:13px;padding:14px}
 .table-wrap{position:relative;overflow:visible;padding:10px;background:#f3f6f1;border-radius:0 0 12px 12px}
 .table-wrap table{display:block;min-width:0;width:100%}.table-wrap thead{position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.table-wrap thead th:last-child{position:static}
 .table-wrap tbody{display:grid;gap:14px}.table-wrap tr{display:block;background:white;border:1px solid #d5e0d6;border-radius:10px;overflow:hidden}
 .table-wrap td,.table-wrap td:last-child:has(.table-actions){display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;position:static;box-shadow:none;padding:14px 16px;border-bottom:1px solid #edf1eb;background:white;width:auto!important;min-width:0!important}
 .table-wrap td::before{content:attr(data-label);font-size:12px;font-weight:600;color:var(--muted);line-height:1.6}
 .table-wrap td:first-child{display:block;background:#f8faf5;border-bottom-color:#dce5db}
 .table-wrap td:first-child::before{display:block;margin-bottom:8px}.table-wrap td:last-child{border-bottom:0}
 .table-wrap .customer-primary{font-size:18px}.table-wrap .cell-content{width:100%;min-width:0}
 .table-wrap .order-progress{min-width:0;width:100%;display:grid;gap:14px}.table-wrap .table-actions{display:flex;flex-wrap:wrap;gap:8px}
 .table-wrap .table-actions .link-button{flex:1 0 42%;min-height:44px}.table-wrap .notes-cell{min-width:0}
 .page-toolbar{padding:16px;gap:10px}.toolbar-info{font-size:12px}.search{font-size:16px}
 dialog[open]{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px;margin:auto 8px}
 .modal-head{padding:16px;gap:8px}.modal-head h2{font-size:18px}.form-body,.detail-body{padding:18px 16px;gap:20px}
 .modal-actions{padding:12px 16px max(12px,env(safe-area-inset-bottom));gap:10px}.modal-actions>.btn{flex:1;min-width:0}
 dialog>form>.form-error,.discard-warning{padding:12px 16px}.field input,.field select,.field textarea,.date-parts input,.record-row input,.record-row select{font-size:16px}
 .record-fields{grid-template-columns:1fr}.record-fields>.wide{grid-column:1/-1}.record-section-body{padding:16px}
 .record-row{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.record-row>.btn{grid-column:1/-1}
 .employee-card,.person-card{padding:20px}.employee-card .card-actions .btn,.employee-card .card-actions .link-button{min-height:46px;flex:1}
 .login-page{padding:20px 16px;align-items:start}.login-card{padding:28px 22px;margin:12px auto;border-radius:14px}.login-card h1{font-size:25px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.inventory-switch{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.order-works{margin-top:14px;min-width:0}
.order-works>summary,.order-more>summary{cursor:pointer;border:1px solid #b8cbbf;border-radius:7px;padding:11px 12px;background:#f4f8f5;color:#224d39;font-weight:600;min-height:44px;box-sizing:border-box}
.order-more{width:100%;margin-top:4px}.order-more>summary{background:transparent;border-color:transparent;color:#52645a;font-weight:400}.order-more[open]>summary{border-color:#dce4dd}.order-more button{margin-top:8px}
.linked-work{padding:14px 0;border-bottom:1px solid #dce4dd;overflow-wrap:anywhere}.linked-work:last-child{border-bottom:0}.linked-work p{margin:8px 0;line-height:1.6}.linked-work small{display:block}
.work-context{background:#eef5ef;border-left:3px solid #527b60;border-radius:6px;padding:14px;overflow-wrap:anywhere}.work-context p{white-space:pre-wrap;line-height:1.65;margin:8px 0}
.number-control{display:flex;align-items:stretch;min-width:0;gap:0}.number-control input{min-width:0;width:100%;border-radius:0;text-align:center;appearance:textfield;-moz-appearance:textfield}.number-control input::-webkit-inner-spin-button,.number-control input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.number-control button{flex:0 0 44px;min-height:44px;border:1px solid #b8cbbf;background:#f0f5f1;color:#234d38;font-size:20px;cursor:pointer;border-radius:7px 0 0 7px}.number-control button:last-child{border-radius:0 7px 7px 0}.number-control button:hover{background:#dceade}.number-control button:disabled{opacity:.5;cursor:not-allowed}
.record-cell{min-width:0}.record-cell>span{display:block;margin-bottom:7px;font-size:13px;font-weight:600}
@media(max-width:760px){.table-wrap td:has(.order-works){grid-template-columns:minmax(0,1fr)}.table-wrap td:has(.order-works) .order-progress{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}

/* Work groups and delegated permissions share the existing controls and breakpoints. */
.work-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.work-groups button{display:flex;min-width:0;align-items:center;gap:12px;min-height:46px}.work-groups .selected{background:#214d3a;border-color:#214d3a;color:#fff}.work-groups span{font-size:12px;padding:2px 7px;border-radius:20px;background:#e7eee8;color:#294c38}.work-location{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px;border:1px solid #c9a45e;border-radius:8px;background:#fffaec;margin:18px 0}.work-location p{font-size:13px;line-height:1.7;margin-top:6px}.located-work{outline:3px solid #b18b39;outline-offset:-3px;scroll-margin:100px}.table-wrap tr.located-work td{background:#fffbef}.employee-card.located-work{background:#fffbef}.permission-check{display:flex;align-items:center;gap:12px;min-height:52px;padding:12px;border:1px solid var(--border);border-radius:7px;font-size:14px;line-height:1.6}.permission-check input{width:22px;height:22px;accent-color:#24573d;flex-shrink:0}.permission-check:has(input:disabled){color:#68786b;background:#f1f4ef}.person-capabilities{font-size:13px;line-height:1.8;margin:12px 0;color:#536957}
@media(max-width:760px){.work-groups{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.work-groups button{flex:1 1 calc(50% - 8px);justify-content:space-between}.work-location{align-items:flex-start;flex-direction:column}.permission-check{grid-column:1/-1}}

/* Dashboard: independent cards prevent progress and notes from sharing narrow table columns. */
.dashboard-layout{display:grid;gap:28px}.dashboard-layout>.panel,.dashboard-layout .kpis{margin:0}.dashboard-layout .panel-head{gap:18px;flex-wrap:wrap}.dashboard-layout .panel-head p{max-width:65ch}.dashboard-secondary{display:grid;grid-template-columns:minmax(0,3fr) minmax(290px,2fr);gap:28px}.dashboard-secondary>.panel{min-width:0}
.delivery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:0 24px 24px}.delivery-card{min-width:0;padding:24px;border:1px solid var(--border);border-radius:10px;background:#fcfdfb;overflow-wrap:anywhere}.delivery-card header{display:flex;gap:16px;justify-content:space-between;align-items:flex-start}.delivery-card h3{font-size:20px;line-height:1.5}.delivery-card header small{display:block;margin-top:6px;color:var(--muted);font-size:12px}.delivery-card header .pill{flex-shrink:0}.delivery-product{margin-top:18px;line-height:1.7;font-size:14px}.delivery-product strong{display:block}.delivery-due{font-size:13px;margin:10px 0 20px}.delivery-card .order-progress{grid-template-columns:minmax(0,1fr);gap:16px}.delivery-card .progress-block{max-width:none;margin:0}.delivery-card .progress-label{gap:16px}.delivery-card .progress-block small{white-space:normal;overflow-wrap:anywhere}.delivery-notes{margin-top:20px;border-top:1px solid var(--border)}.delivery-notes>summary{cursor:pointer;padding:14px 0;min-height:44px;font-size:13px;color:#466552}.delivery-card .notes-cell{max-width:none;margin-top:0!important}.delivery-card .card-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.stage-visual{padding:0 24px 24px}.stage-visual>svg{display:block;width:100%;height:32px;overflow:hidden;border-radius:7px;background:#edf0e8}.stage-planned{fill:#c4cec4;background:#c4cec4}.stage-running{fill:#3d755b;background:#3d755b}.stage-pending_qc{fill:#c89a42;background:#c89a42}.stage-released{fill:#6b98ab;background:#6b98ab}.stage-labels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}.stage-labels a{display:grid;grid-template-columns:12px 1fr;gap:8px;align-items:center;min-height:58px;padding:10px;border-radius:6px;border:1px solid var(--border);font-size:13px}.stage-labels a:hover{background:#edf4ee}.stage-labels i{width:9px;height:9px;border-radius:50%}.stage-labels strong{grid-column:2;font-size:23px}.stage-labels strong small{font-size:12px;font-weight:400}.stage-percentage{grid-column:2;color:#607365;font-size:13px}
.quality-alert-list{padding:0 24px 20px}.quality-alert-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,220px) auto;gap:24px;align-items:center;padding:18px 0;border-top:1px solid var(--border);overflow-wrap:anywhere}.quality-alert-row strong{font-size:16px}.quality-alert-row small{display:block;margin-top:5px;font-size:12px;line-height:1.6;color:var(--muted)}.quality-alert-row .yield-cell strong{font-size:20px}.quality-alert-row .link-button{min-height:44px}
.daily-output{display:grid;gap:15px;padding:8px 24px 16px}.daily-row{display:grid;grid-template-columns:45px minmax(0,1fr) minmax(85px,auto);gap:16px;align-items:center;font-size:13px}.daily-row svg{display:block;width:100%;height:22px}.daily-track{fill:#edf0e8}.daily-good{fill:#4b7f60}.daily-scrap{fill:#bb8057}.daily-row>span{text-align:right;overflow-wrap:anywhere}.daily-row b{display:block;font-weight:600}.daily-row small{display:block;margin-top:5px;color:#805735;font-size:12px}
@media(max-width:1100px){.dashboard-secondary{grid-template-columns:minmax(0,1fr)}.delivery-grid{gap:16px;padding:0 18px 18px}.delivery-card{padding:20px}.stage-labels{gap:10px}}
@media(max-width:760px){.dashboard-layout{gap:22px}.delivery-grid{grid-template-columns:minmax(0,1fr);padding:0 14px 16px}.delivery-card{padding:18px}.delivery-card h3{font-size:19px}.stage-visual{padding:0 18px 18px}.stage-labels{grid-template-columns:repeat(2,minmax(0,1fr))}.quality-alert-list{padding:0 18px 18px}.quality-alert-row{grid-template-columns:minmax(0,1fr);gap:14px}.quality-alert-row>.link-button{justify-self:start}.daily-output{padding:0 18px 18px}.daily-row{grid-template-columns:42px minmax(0,1fr);gap:10px}.daily-row>span{grid-column:2;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;text-align:left}.daily-row small{margin-top:0}.dashboard-layout .panel-head{padding:20px 18px}}

/* Focus each screen on its task; secondary context stays available in details. */
main{max-width:1720px;margin:0 auto;padding:32px}.page-head{margin-bottom:20px;gap:20px}.page-head .subheading{max-width:70ch;margin-top:10px;line-height:1.7}
.page-note{padding:0;border:1px solid var(--border);border-left:0;background:#f8faf7;border-radius:8px;margin:12px 0 20px}.page-note>summary{padding:12px 16px;cursor:pointer;font-size:13px;font-weight:500;color:var(--muted)}.page-note>p{padding:0 16px 16px;font-size:13px;line-height:1.8;max-width:95ch}
.table-wrap td{vertical-align:top;padding:24px 18px}.table-wrap th{padding:14px 18px}.table-actions{min-width:118px;max-width:160px;gap:10px;align-content:flex-start}.table-actions .link-button{font-size:13px;font-weight:500}
.spec-emphasis{background:transparent!important;border:0!important;padding:0!important;font-weight:600;color:#294c3c}.spec-cell strong{line-height:1.6}.notes-cell{margin-top:14px!important;min-width:0;max-width:34ch}.notes-cell .requirement{font-weight:400;font-size:13px;line-height:1.8;white-space:pre-wrap;color:#495d50}.notes-cell .link-button{margin-top:10px}.note-full>p{white-space:pre-wrap;line-height:1.8;margin-top:12px}
.note-full>summary,.row-secondary>summary,.evidence-history>summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:13px;color:#466552}.row-secondary{margin-top:4px}.row-secondary+.spec-emphasis{margin-top:10px}
.quantity-summary{margin-bottom:16px}.order-progress{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.order-progress .progress-block{min-width:0;max-width:none}.progress-block{margin:6px 0 10px;max-width:240px}.output-summary{font-size:13px;line-height:1.7;margin-top:10px;white-space:normal}.output-summary b{color:var(--green)}.output-summary small{display:block}.batch-shortfall{display:block;line-height:1.7;max-width:28ch;color:#896222}
.employee-guide{padding:0;background:#f6f9f5;border:1px solid var(--border);border-radius:8px}.employee-guide>summary{cursor:pointer;padding:14px 18px;font-size:14px}.employee-guide>p{padding:0 18px 16px;line-height:1.8}
.employee-card,.person-card{padding:26px}.employee-card h2{margin:18px 0 10px}.employee-card .order-requirements{font-weight:400;background:#faf6e9;border-radius:8px}.employee-card .card-actions{padding-top:8px;gap:12px}.evidence-history{margin-top:16px;border-top:1px solid var(--border)}.evidence-panel>p{margin:12px 0;line-height:1.7}.evidence-panel>.btn{margin:8px 8px 0 0}
.form-body{gap:24px}.field>label{margin-bottom:9px}.work-context{padding:16px}.work-context+.form-note{font-size:13px;line-height:1.7}.production-order{font-size:14px!important}.customer-secondary{font-size:16px!important}.work-summary>.customer-secondary{margin:8px 0}
.report-preview{display:block;padding:14px 16px;background:#eef5ef;border-radius:8px;line-height:1.7;font-size:14px;color:#294c3c}
@media(max-width:1100px){.order-progress{grid-template-columns:minmax(0,1fr);gap:10px}main{padding:26px 22px}}
@media(max-width:760px){
 main{padding:24px 14px}.page-head{gap:16px}.page-head h1{font-size:24px}.page-head .subheading{font-size:13px}.page-actions{gap:10px}
 .table-wrap{padding:0;background:transparent}.table-wrap tbody{gap:20px}.table-wrap td,.table-wrap td:last-child:has(.table-actions){grid-template-columns:minmax(0,1fr);gap:10px;padding:18px}.table-wrap td::before{font-size:12px;color:#68796d;font-weight:500}.table-wrap td:first-child{padding:20px 18px}.table-wrap .table-actions{max-width:none;gap:10px}.table-wrap .notes-cell,.table-wrap .spec-cell{max-width:none}.table-wrap .order-progress{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 .table-wrap .progress-block{max-width:none}.table-wrap .order-more{width:auto}.table-wrap .order-more>summary{padding:11px 14px}.table-wrap .order-more[open]{width:100%}.table-wrap .order-more[open]>button{display:block}
 .employee-card,.person-card{padding:22px 18px}.card-top strong{font-size:21px}.card-top{gap:16px}.employee-cards{gap:20px}.photo-grid{gap:14px}.form-body{gap:22px;padding:20px 18px}.record-section-body{padding:16px 12px}.kpis{gap:14px}.kpi{padding:18px}.columns{gap:20px}
}
