/* Shared hierarchy and feedback. Does not touch physical print layouts. */
:root{--line:#e3e8ef;--ink:#23364a;--muted:#67778a;--blue:#245fa5}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9bc5ee;outline-offset:3px}
header{height:auto;min-height:76px;padding:12px 26px}.brand{gap:16px}.brand img{width:120px;height:44px}.brand strong{font-size:18px}.brand span small{letter-spacing:.3px}
main{max-width:1600px;padding:24px}.heading h1{font-size:25px;margin-bottom:8px}.heading .eyebrow{display:none}.heading p{margin:0 0 20px;color:var(--muted)}
.header-right{gap:10px;font-size:13px}.toolbar{margin:0 0 16px}.stats{gap:12px;margin-bottom:20px}.stat{padding:14px 18px}.stat b{font-size:28px}.stat:before{display:none}
.workspace-nav{gap:6px;align-items:center;flex-wrap:wrap;overflow:visible;margin-bottom:20px;padding-bottom:0}.workspace-nav>button{padding:12px 14px;font-size:14px}.workspace-nav .management-menu{margin-left:auto}
.management-menu,.export-menu{position:relative}.management-menu>summary,.export-menu>summary{list-style:none;padding:10px 14px;border:1px solid var(--line);border-radius:7px;background:white;font-size:13px}.management-menu>summary::after,.export-menu>summary::after{content:' ▾'}
.menu-items{position:absolute;right:0;top:calc(100% + 6px);width:208px;z-index:30;display:grid;padding:6px;background:white;border:1px solid var(--line);border-radius:9px;box-shadow:0 8px 24px #2233471c}.menu-items button,.menu-items a{display:block;width:100%;margin:0;text-align:left;padding:11px 12px;border:0;border-radius:5px;text-decoration:none;font-size:13px;background:white;color:var(--ink)}.menu-items button:hover,.menu-items a:hover{background:#eef4fb}
.filterbar{gap:10px;padding:8px 0}.board{min-width:1000px;table-layout:auto;border-spacing:0!important;padding:0!important}.board th{background:#f7f9fc;font-size:12px;padding:13px}.board th:nth-child(1){width:70px}.board th:nth-child(2){width:210px}.board th:nth-child(7){width:140px}
.board .order-overview td{background:white!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;padding:16px 13px!important}.board .order-overview:first-child td{border-top:0!important}.board .order-overview td:nth-child(2)>b{font-size:15px}.board .order-number{font-size:13px;font-weight:500}.board .order-overview td small{font-size:12px}.board .order-overview td .milestone small{display:none}.board .order-overview td:last-child button{width:100%;margin:0 0 7px}
.board .order-progress-row{filter:none}.board .order-progress-row>td{border:0!important;border-radius:0!important;padding:0 13px 16px!important}.compact-progress{border:1px solid #e8edf3;border-radius:7px;background:#fafbfd;padding:10px 12px}.compact-progress>summary{list-style:none;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-weight:400;font-size:12px}.compact-progress>summary>strong{font-size:12px;font-weight:500}.compact-progress>summary:after{content:'展开详情 ▾';color:var(--blue);margin-left:auto}.compact-progress[open]>summary:after{content:'收起详情 ▴'}.compact-progress .progress-chip{padding:2px 7px;border-radius:4px;background:#edf0f4;color:#687888}.compact-progress .progress-chip.done{background:#e6f4ed;color:#177252}.compact-progress .progress-chip.partial{background:#fff0d9;color:#8d5d10}.compact-progress .external-compact{flex-basis:100%;color:#876224;line-height:1.7}.compact-progress .order-progress{margin-top:12px}
.dialog-top{justify-content:flex-end}#dialogBody{line-height:1.6}#dialog:has(.close-confirm){width:min(720px,96vw)}.detail-actions .primary{font-weight:500}.close-order-button{color:#4f657b}.close-confirm{max-width:640px;margin:auto}.close-confirm .card{background:#f6f8fb}.close-confirm label textarea{margin-top:8px}.close-confirm .detail-actions{justify-content:flex-end}
.unit-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.unit-list .card{margin:0;padding:14px}.unit-list .card>summary{padding:5px 0}.unit-list .unit-form{margin:0;border:0;padding:8px 0}.settings-search{width:100%;margin:0 0 15px}.help-note{margin:12px 0;border:1px solid var(--line);border-radius:8px;padding:12px;background:#f8fafc}.help-note p{font-size:13px;margin-bottom:0}.factory-settings{margin-top:24px}
#message:not(:empty),#msg:not(:empty){background:#eff5fb;border-bottom:1px solid #dce8f4;color:#315575;padding:11px 24px;white-space:pre-line;font-size:13px}
#operationError{padding:0;width:min(520px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:85dvh;border:0;border-radius:12px;overflow:hidden;color:#23364a;box-shadow:0 20px 70px #192d4a55}
#operationError[open]{display:flex;flex-direction:column}#operationError::backdrop{background:#12243d88}.error-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;border-bottom:1px solid #e6ebf1;flex-shrink:0}.error-top h2{font-size:18px;margin:0;color:#a5323d}.error-close{border:0;background:#f2f5f8;color:#4d6075;width:36px;height:36px;padding:0;font-size:24px;border-radius:6px;cursor:pointer}.error-body{padding:4px 20px;overflow:auto;min-height:0}.error-body p{line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.error-bottom{padding:14px 20px 18px;display:flex;justify-content:flex-end;flex-shrink:0}.error-bottom button{min-height:40px;padding:8px 20px}
.warehouse-nav{border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:20px}.warehouse-nav button.active{background:#245fa5;color:white;border-color:#245fa5}.warehouse-help{margin-bottom:18px}.order-fold{border:1px solid var(--line)!important;box-shadow:none}.order-fold>summary{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:5px 0}.order-fold>summary span{font-size:12px;font-weight:400}.order-fold:not([open]){margin:10px 0;padding:14px 18px}.order-fold .linecards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.linecards .card{margin:0!important;background:#f9fbfd}
.warehouse-page{background:#f4f6f9;color:var(--ink)}.warehouse-page header{background:white;color:var(--ink);border-bottom:1px solid var(--line)}.warehouse-page header a,.warehouse-page a{color:var(--blue)}.warehouse-page p{color:var(--muted)}.warehouse-page button{color:var(--ink);border-color:#d4dce6}.warehouse-page button:hover{background:#edf3fb}.warehouse-page .warehouse-nav button{background:white;color:var(--muted)}.warehouse-page .warehouse-nav button.active,.warehouse-page form button,.warehouse-page #draft,.warehouse-page .primary{background:var(--blue);color:white}.warehouse-page input,.warehouse-page select,.warehouse-page textarea{border-color:#d4dce6}.warehouse-page input[type=checkbox]{width:18px;height:18px;vertical-align:middle}.warehouse-page .row>label:has(#unfinished){display:flex;gap:8px;align-items:center}.warehouse-page .row>label:has(#unfinished) input{order:-1}
@media(max-width:760px){
 header{padding:12px;gap:10px}.brand img{width:88px}.brand{gap:10px}.brand strong{font-size:16px}.header-right{gap:6px}main{padding:16px 10px}.heading h1{font-size:23px}.heading p{font-size:13px;margin-bottom:14px}.toolbar{gap:7px}.toolbar>.button,.toolbar>button{padding:9px 10px;font-size:13px}.stat{padding:12px}.stat b{font-size:25px}
 .workspace-nav{gap:2px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.workspace-nav>button{font-size:13px;padding:11px 5px;white-space:normal}.workspace-nav .management-menu{margin:0;text-align:center}.management-menu>summary{font-size:13px;padding:10px 6px}.menu-items{right:0;width:min(210px,88vw);text-align:left}.export-menu>summary{padding:10px;font-size:13px}
 .board{min-width:0}.board .order-overview{padding:11px;margin-top:12px;gap:5px;border:1px solid var(--line);border-bottom:0}.board .order-overview td{padding:3px!important;border:0!important;background:transparent!important}.board .order-overview td:last-child{display:flex;gap:8px}.board .order-overview td:last-child button{width:auto;margin:4px 0}.board .order-progress-row>td{border:1px solid var(--line)!important;border-top:0!important;border-radius:0 0 9px 9px!important;padding:6px 11px 12px!important}.compact-progress{padding:9px}.compact-progress>summary{gap:6px;font-size:11px}.compact-progress .progress-chip{padding:2px 5px}.compact-progress>summary>strong{flex-basis:100%}.compact-progress>summary:after{font-size:12px}.filterbar input,.filterbar select{font-size:16px}.table-wrap{border:0;background:transparent}.unit-list{grid-template-columns:1fr}.timeline>div{padding:10px}.detail-actions{gap:6px}.detail-actions button{font-size:13px;white-space:normal}.warehouse-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}.warehouse-nav button{margin:0}.order-fold .linecards{grid-template-columns:1fr}.order-fold>summary{display:block}.order-fold>summary span{display:block;margin-top:6px}.legend{display:none}.error-top{padding:14px 16px}.error-body{padding:2px 16px}
}
