:root{font-family:Inter,"Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;color:#223347;background:#f4f6f9;font-size:14px;--ink:#172e47;--muted:#718094;--blue:#205eaa;--red:#bc343e;--line:#e3e8ef}*{box-sizing:border-box}body{margin:0}header{height:91px;padding:12px 32px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:22px}.brand img{width:150px;height:54px;object-fit:contain}.brand span{border-left:1px solid var(--line);padding-left:22px}.brand strong{font-size:20px;letter-spacing:1px}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:6px}.header-right{display:flex;gap:18px;align-items:center;color:var(--muted)}main{padding:28px 30px;max-width:2100px;margin:auto}h1{font-size:28px;letter-spacing:-.7px;margin:5px 0 22px;color:var(--ink)}h2{font-size:20px;margin:8px 0 16px}h3{font-size:16px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--blue);font-weight:700;margin-bottom:9px}.heading{display:flex;align-items:center;justify-content:space-between}.toolbar,.filterbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.toolbar{margin-bottom:18px}.button,button{display:inline-block;font:inherit;font-weight:600;text-decoration:none;color:#344860;background:white;border:1px solid #d4dce6;border-radius:7px;padding:9px 14px;cursor:pointer;white-space:nowrap}button:hover,.button:hover{background:#eef4fc;border-color:#93b1d5}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--blue);color:white;border-color:var(--blue)}.primary:hover{background:#184c8a;color:white}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);padding:19px 22px;border-radius:10px;position:relative}.stat:before{content:'';position:absolute;width:3px;background:#8ea9c5;left:0;top:23px;bottom:23px}.stat.alert:before{background:var(--red)}.stat small{color:var(--muted)}.stat b{display:block;font-size:32px;line-height:1.4;margin-top:5px;font-weight:700}.stat.alert b{color:var(--red)}nav{display:flex;align-items:center;gap:22px;border-bottom:1px solid #d9e0ea;margin-bottom:18px}nav button{background:none;border:0;border-radius:0;padding:14px 2px;color:var(--muted);border-bottom:3px solid transparent}nav .active{color:var(--blue);border-bottom-color:var(--blue)}nav .settings-link{margin-left:auto;font-size:13px}input,select,textarea{font:inherit;border:1px solid #d6dfe9;border-radius:6px;padding:10px;background:white;color:#233a54;max-width:100%}input[type=number]{width:120px}textarea{width:100%;min-height:80px}.filterbar{margin:15px 0}#search{width:300px}.legend{margin-left:auto;color:var(--muted);font-size:12px}.muted,small{color:var(--muted)}.red,.error{color:var(--red)}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:white}.board{min-width:1420px;table-layout:fixed}.board th:nth-child(1){width:70px}.board th:nth-child(2){width:185px}.board th:nth-child(3){width:144px}.board th:nth-child(4){width:90px}.board th:nth-child(5){width:140px}.board th:nth-child(6){width:160px}.board th:nth-child(7){width:176px}.board th:nth-child(8){width:132px}.board th:nth-child(9){width:155px}.board th:nth-child(10){width:76px}table{width:100%;border-collapse:collapse}th{font-weight:600;background:#f8fafc;color:#6c7f94;text-align:left;font-size:12px}th,td{padding:13px 12px;border-bottom:1px solid var(--line);vertical-align:top}td{font-size:13px;line-height:1.65}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f8fbff}.board td b{font-size:14px}.board td small{display:block;font-size:11px;line-height:1.7}.order-number{display:block;font-size:11px;color:#6b7a8c;overflow-wrap:anywhere}.milestone{margin-bottom:7px}.milestone:last-child{margin:0}.done{color:#17765b;font-weight:600}.pending{color:#8d98a7}.badge{display:inline-block;font-size:11px;padding:2px 7px;background:#edf2f8;color:#536d8b;border-radius:4px;font-weight:600;margin:3px 0}.badge.danger{background:#fff0f1;color:var(--red)}.badge.good{background:#edf8f3;color:#147755}.badge.warn{background:#fff4dc;color:#9a6715}.thin{padding:5px 9px;font-size:12px}.thumb{padding:0;width:45px;height:60px;overflow:hidden;border:1px solid #d6dee7;border-radius:4px}.thumb img{display:block;object-fit:cover;object-position:top;width:100%;height:100%}.source{font-size:11px;color:var(--muted);margin-top:15px}.card{background:white;border:1px solid var(--line);padding:20px;border-radius:10px;margin:15px 0}.card p{line-height:1.7}.login{max-width:420px;margin:70px auto;padding:30px;background:white;border:1px solid var(--line);border-radius:12px}.login h1{font-size:25px}.login p{color:var(--muted);line-height:1.7}label{display:block;margin:15px 0}label input,label select{display:block;width:100%;margin-top:6px}.login button{width:100%;margin:8px 0 20px}dialog{border:0;border-radius:12px;width:min(1150px,96vw);max-height:92vh;padding:28px;color:var(--ink);box-shadow:0 20px 80px #19314733}dialog::backdrop{background:#112b4688}.close{float:right;font-size:22px;line-height:20px}.timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.timeline>div{border:1px solid var(--line);padding:14px;border-radius:8px;background:#f8fafc}.timeline b,.timeline small{display:block;margin-top:6px}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.history{padding:12px 16px;border-left:2px solid #bad0e8;background:#f7faff;margin:10px 0}.history p{margin:6px 0;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:25px}.settings-grid form{border:1px solid var(--line);padding:16px;border-radius:8px}#message{background:#fff4db;white-space:pre-line;position:sticky;top:0;z-index:20;font-size:13px}#message:not(:empty){padding:12px 30px;border-bottom:1px solid #efd9a9}#hoverPreview{position:fixed;z-index:25;width:440px;padding:12px;background:white;box-shadow:0 8px 36px #15294344;border:1px solid var(--line);border-radius:8px;pointer-events:none}#hoverPreview img{width:100%;max-height:520px;object-fit:contain;object-position:top}#hoverPreview small{display:block;margin-top:8px}#previewDialog{width:96vw;max-width:1600px;background:#eef2f6}#previewPages{overflow:auto;max-height:70vh}#previewPages img{display:block;width:100%;margin:0 auto 20px;background:white;max-width:none}.preview-tools{display:flex;gap:10px;align-items:center}.preview-tools strong{margin-right:auto}.capacity-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.capacity-grid .card{margin-top:4px}.cap-table td{padding:14px 10px}.meter{height:5px;background:#e5edf6;border-radius:3px;margin-top:8px;width:110px;overflow:hidden}.meter span{display:block;height:100%;background:var(--blue)}.cap-over .meter span{background:var(--red)}.cap-over{color:var(--red);font-weight:700}.cap-link{padding:0;border:0;border-bottom:1px dotted #8098b2;border-radius:0;background:none;color:inherit}.capacity-note{font-size:12px;line-height:1.8}.route-fields{display:flex;gap:8px;flex-wrap:wrap}.route-fields label{font-size:12px}.route-fields input{width:135px}.plans-table input{font-size:12px;padding:7px}footer{text-align:center;font-size:11px;color:#8a98a8;padding:20px 15px 35px}[hidden]{display:none!important}details summary{cursor:pointer;color:#496681;font-weight:600}a{color:var(--blue)}@media(max-width:900px){main{padding:20px 12px}header{padding:12px}.brand img{width:105px}.brand span{padding-left:12px}.brand strong{font-size:16px}.heading{display:block}.stats{gap:9px;grid-template-columns:repeat(2,1fr)}.stat{padding:12px 16px}.stat b{font-size:26px}nav{gap:14px;overflow:auto}nav button{font-size:12px}.legend{display:none}.capacity-grid{grid-template-columns:1fr}.timeline{grid-template-columns:1fr 1fr}.settings-grid{grid-template-columns:1fr}.login{margin:35px 12px}dialog{padding:18px}.table-wrap{border-radius:7px}}
.sku-actions{display:flex;gap:8px;flex-wrap:wrap;padding:15px 0;position:sticky;top:0;background:white;z-index:2}.sku-table{min-width:1100px}.sku-table td{vertical-align:top;max-width:320px}.sku-table input[type=checkbox]{width:18px;height:18px;margin-right:8px}.source-note{white-space:pre-wrap;overflow-wrap:anywhere}.sku-table small{display:block}.sku-table details{margin:12px 0}.sku-table label{display:flex;align-items:center;white-space:nowrap}.sku-table p{margin:7px 0}#dialog:has(.sku-table){width:96vw;max-width:1500px}.sku-actions select{max-width:160px}

.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin:12px 0 20px}.permission-grid label{display:flex;align-items:center;gap:8px}.permission-grid input[type=checkbox],.production-panel input[type=checkbox]{width:auto;min-width:16px}.production-panel{margin:24px 0}.production-panel td p{margin:4px 0}.settings-grid{margin-top:14px}
/* One order is a single visual group: summary above, actual progress underneath. */
.board{min-width:1080px}.board th:nth-child(1){width:70px}.board th:nth-child(2){width:215px}.board th:nth-child(3){width:165px}.board th:nth-child(4){width:100px}.board th:nth-child(5){width:225px}.board th:nth-child(6){width:185px}.board th:nth-child(7){width:90px}
.board .order-overview td{border-bottom:0;padding-bottom:6px}.board .order-progress-row>td{padding:8px 16px 22px;border-bottom:6px solid #edf1f6}.board .order-progress-row:hover{background:white}.order-progress{padding:15px 18px 17px;background:#f8fafc;border:1px solid #dbe5ed;border-left:5px solid #276ca5;border-radius:9px}.progress-heading{display:flex;align-items:center;gap:16px;margin-bottom:15px}.progress-heading strong{font-size:15px;color:#173a58}.progress-empty{color:#798797;font-size:12px}.progress-deadline{margin-left:auto;font-size:12px}.progress-lane+.progress-lane{margin-top:19px;padding-top:15px;border-top:1px dashed #ccd8e3}.progress-route-title{font-size:12px;font-weight:700;color:#48637b;margin:0 0 10px}.progress-track{list-style:none;display:flex;padding:0;margin:0;gap:10px}.progress-step{flex:1;min-width:0}.step-meter{appearance:none;-webkit-appearance:none;display:block;width:100%;height:12px;border:0;border-radius:6px;background:#e1e7ee;overflow:hidden;margin:0 0 12px;color:#168260}.step-meter::-webkit-progress-bar{background:#e1e7ee;border-radius:6px}.step-meter::-webkit-progress-value{background:#168260;border-radius:6px}.step-meter::-moz-progress-bar{background:#168260;border-radius:6px}.is-partial .step-meter{color:#ce8619}.is-partial .step-meter::-webkit-progress-value{background:#ce8619}.is-partial .step-meter::-moz-progress-bar{background:#ce8619}.step-title{display:flex;align-items:flex-start;gap:6px;min-height:42px}.board .step-title b{font-size:13px;line-height:1.5;color:#173a58}.step-dot{flex:0 0 21px;width:21px;height:21px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;background:#e1e7ee;color:#8996a5}.is-done .step-dot{color:white;background:#168260}.is-partial .step-dot{color:white;background:#ce8619}.board .is-pending .step-title b{color:#8996a5;font-weight:500}.step-status,.step-time,.step-actor,.step-auto{display:block;line-height:1.6;overflow-wrap:anywhere}.step-status{font-size:12px;font-weight:700;color:#167453}.is-partial .step-status{color:#a56807}.step-time{font-size:12px;color:#425970;margin:4px 0}.step-actor{font-size:12px;color:#425970}.step-auto{font-size:11px;color:#718094;margin-top:4px}.progress-unknown{font-size:12px;color:#a56807;margin:12px 0 0}.order-progress .red{color:#bc343e}@media(max-width:900px){.order-progress{padding:12px}.progress-track{gap:8px}.progress-heading{gap:12px}}
/* 3.1.6: summary and progress share one frame; the customer/order is the visual anchor. */
.board{border-collapse:separate;border-spacing:0;background:#f4f6f9;padding:0 12px}.board thead th{border:0}.board .order-overview td{background:white;border-top:2px solid #a9bed3;padding-top:18px;padding-bottom:12px}.board .order-overview td:first-child{border-left:2px solid #a9bed3;border-top-left-radius:10px}.board .order-overview td:last-child{border-right:2px solid #a9bed3;border-top-right-radius:10px}.board .order-overview td:nth-child(2)>b{font-size:20px;color:#172e47}.board .order-number{font-size:15px;font-weight:700;color:#294a6e;margin-top:5px}.board .order-progress-row>td{background:white;border:2px solid #a9bed3;border-top:0;border-radius:0 0 10px 10px;padding:0 14px 16px}.board .order-progress-row{filter:drop-shadow(0 2px 1px #203d5510)}.board .order-overview:not(:first-child) td{border-top-width:2px}.board .order-progress-row+tr.order-overview td{border-top:14px solid #f4f6f9;box-shadow:inset 0 2px #a9bed3}.order-progress{background:#f9fafb;border:0;border-top:1px solid #e1e7ed;border-radius:0;padding:12px 8px 4px}.progress-heading{margin-bottom:10px}.progress-heading strong{font-size:12px;color:#667c90}.step-meter{height:6px;margin-bottom:8px}.step-dot{flex-basis:15px;width:15px;height:15px;font-size:10px}.board .step-title b{font-size:12px}.step-title{min-height:34px}.step-time,.step-actor{font-size:11px}.sku-group td{background:#eaf0f7;border-top:1px solid #bdcddd;padding:12px 16px}.sku-group label{display:flex;align-items:center;gap:10px;margin:0}.sku-group b{font-size:16px}.sku-group span{font-size:12px;color:#65758a}.sku-child td:first-child{padding-left:32px}.sku-child p{margin:4px 0}.sku-child small{display:block}.sku-child label,.select-all{display:flex;align-items:center;gap:8px;margin:6px 0}.production-panel input[type=checkbox],.sku-group input[type=checkbox],.select-all input[type=checkbox]{display:inline-block;width:18px;height:18px;margin:0}.external-panel{border-top:1px solid #d8e2ee;margin-top:22px;padding-top:8px}.external-job{border:1px solid #d5dfea;border-radius:8px;padding:14px;margin:14px 0}.external-job>button{margin:12px 8px 0 0}.external-job small{display:block}.order-progress>.badge{margin:0 8px 12px 0}
.close-order-button{display:block;margin-top:8px;color:#256648}#completedOrders small{display:block;margin-top:4px}#completedOrders td{padding:16px}#completedSearch{width:300px}.closed-notice{border-color:#a8c9b9;background:#f5fbf7}.closed-notice p{margin:8px 0}
