:root{--bg: #f3f5f5;--card: #ffffff;--primary: #087968;--primary-dark: #075e52;--text: #1b2928;--muted: #667572;--border: #dbe3e1;--error-bg: #fdecea;--error-text: #b3261e;--row-hover: #f1f8f6;--chart-grid: #e2e6ea;--chart-line: #087968;--chart-warm: #e5533d;--chart-bar: #087968}.employee-name-link{border:0;background:transparent;padding:.2rem 0;color:var(--primary-dark);font-weight:650;text-decoration:underline;text-underline-offset:4px}.employee-profile{width:min(1120px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--card);font-size:17px;overflow:auto}.employee-profile::backdrop{background:#141d1c85}.profile-heading{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding:18px 24px;background:var(--card);border-bottom:1px solid var(--border)}.profile-heading h2{flex:1;margin:0;font-size:23px;overflow-wrap:anywhere}.profile-year{display:flex;align-items:center;gap:8px}.profile-year input{width:98px;text-align:center}.profile-year button,.profile-close{width:42px;height:42px;padding:0;font-size:26px;flex-shrink:0}.profile-content{padding:24px}.profile-identity{display:flex;align-items:center;gap:16px;margin-bottom:24px}.profile-avatar{width:64px;height:64px;border-radius:50%;background:#e5eff9;color:#24568a;display:grid;place-items:center;font-size:30px;flex-shrink:0}.profile-identity strong{font-size:25px;overflow-wrap:anywhere}.profile-identity p{margin:4px 0 0;color:var(--muted);overflow-wrap:anywhere}.profile-stats{margin-bottom:24px}.profile-activity{padding:20px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.employee-profile h3{margin:0 0 16px;font-size:19px}.profile-calendar{overflow:auto;padding:2px 2px 8px}.profile-calendar-months{display:grid;gap:4px;margin-left:28px;font-size:13px;height:26px}.profile-calendar-months span{white-space:nowrap}.profile-calendar-body{display:flex;gap:10px;width:max-content}.profile-weekdays{display:grid;grid-template-rows:repeat(7,16px);gap:4px;width:18px;font-size:12px;line-height:16px}.profile-calendar-grid{display:grid;grid-template-rows:repeat(7,16px);grid-auto-flow:column;gap:4px}.profile-cell{display:inline-block;width:16px;height:16px;border:1px solid rgba(0,0,0,.06);border-radius:3px;padding:0}.profile-cell.level-0{background:#edf0f2}.profile-cell.level-1{background:#b7dfbe}.profile-cell.level-2{background:#70bb83}.profile-cell.level-3{background:#318b52}.profile-cell.level-4{background:#145c34}.profile-cell.selected{outline:2px solid #2467a0;outline-offset:1px}.profile-cell:hover{outline:2px solid var(--text);outline-offset:1px}.profile-legend{display:flex;align-items:center;justify-content:flex-end;gap:5px;font-size:13px;color:var(--muted);margin-top:8px}.profile-tabs{display:flex;gap:20px;border-bottom:1px solid var(--border);margin:20px 0}.profile-tabs button{border:0;border-radius:0;background:transparent;padding:12px 4px;font-size:17px}.profile-tabs button[aria-selected=true]{border-bottom:3px solid #cf6846;font-weight:700}.profile-day-toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.profile-day-toolbar select,.profile-day-toolbar input{width:220px;max-width:100%;font-size:17px}.profile-dates{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.profile-chart{margin:24px 0}.profile-bars{display:grid;grid-template-columns:repeat(12,minmax(72px,1fr));gap:12px;overflow-x:auto;padding:6px 2px}.profile-bar{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;height:195px;padding:0 2px;border:0;border-radius:0;font-size:15px;background:transparent}.profile-bar:hover{background:var(--row-hover)}.profile-bar-value{font-size:12px;white-space:nowrap}.profile-bar-fill{width:32px;max-height:130px;min-height:2px;background:#23866f;flex-shrink:0}.profile-bar-fill.money{background:#4478ad}.employee-profile table{font-size:17px}@media(max-width:640px){.employee-profile{width:calc(100% - 16px);max-height:calc(100dvh - 16px)}.profile-heading{padding:14px;gap:10px}.profile-heading h2{flex-basis:calc(100% - 56px);font-size:21px}.profile-close{position:absolute;right:14px;top:12px}.profile-content{padding:16px}.profile-tabs{gap:16px}.profile-tabs button{font-size:16px}}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-size:16px;line-height:1.5;background:var(--bg);color:var(--text)}h1{font-size:1.65rem;margin:0 0 .25rem}h2{font-size:1.4rem;margin:0 0 .75rem}.hint{color:var(--muted);font-size:.94rem}.layout{max-width:1320px;margin:0 auto;padding:0 1rem 2rem}.layout header{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;padding:1.15rem 0;border-bottom:1px solid var(--border);margin-bottom:1.5rem}.brand{font-weight:700;font-size:1.3rem;margin-right:2rem}.layout nav{display:flex;flex-wrap:wrap;gap:.25rem;flex:1}.layout nav a{padding:.35rem .7rem;border-radius:6px;color:var(--text);text-decoration:none;font-size:1rem}.layout nav a.active{background:var(--primary);color:#fff}.layout nav a{transition:background .15s ease,color .15s ease}.layout nav a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.layout nav a:hover:not(.active){background:#e3efeb}.layout .user{color:var(--muted);font-size:.95rem}.layout footer{margin-top:2rem;text-align:center}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1rem}.login-card{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:1.75rem;width:100%;max-width:380px;box-shadow:0 2px 12px #0000000f}.login-card form{display:flex;flex-direction:column;gap:.9rem;margin-top:1rem}.login-card label{display:flex;flex-direction:column;gap:.3rem;font-size:.9rem}.qr-box{text-align:center}.otpauth-text{display:block;word-break:break-all;font-size:.75rem;background:#f1f3f5;padding:.5rem;border-radius:6px;margin-top:.4rem;text-align:left}input,select{padding:.55rem .65rem;border:1px solid var(--border);border-radius:6px;font-size:1rem;width:100%}button{padding:.55rem 1rem;border:1px solid var(--border);border-radius:6px;background:#fff;font-size:1rem;cursor:pointer}button.primary{background:var(--primary);border-color:var(--primary);color:#fff}button.primary:hover{background:var(--primary-dark)}button:disabled{opacity:.6;cursor:not-allowed}button.logout{font-size:.85rem;padding:.35rem .8rem}.filter-bar{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end;margin-bottom:1rem}.filter-bar label{display:flex;flex-direction:column;gap:.3rem;font-size:.96rem}.filter-bar input,.filter-bar select,.filter-bar button{height:38px;padding-top:0;padding-bottom:0}.filter-bar button{padding:0 1.1rem}.search-input{width:300px;max-width:100%}.segmented{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--card);margin-bottom:.9rem}.segmented button{border:none;border-radius:0;background:transparent;padding:.45rem 1rem;font-size:.98rem}.segmented button+button{border-left:1px solid var(--border)}.segmented button:hover:not(.active){background:#f0f4fa}.segmented button.active{background:var(--primary);color:#fff}.page-title{margin-bottom:1rem}.page-title h2{margin:0 0 .2rem}.page-title p{margin:0}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.9rem}.stat-card{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:1rem}.stat-value{font-size:1.8rem;font-weight:700}.stat-label{color:var(--muted);font-size:.95rem;margin-top:.3rem}.table-wrap{overflow-x:auto;background:var(--card);border:1px solid var(--border);border-radius:10px}table{width:100%;border-collapse:collapse;font-size:1rem;white-space:nowrap}th,td{padding:.6rem .75rem;text-align:left;border-bottom:1px solid var(--border)}th{background:#f8fafc;font-weight:600}tbody tr:last-child td{border-bottom:none}tbody tr:hover{background:var(--row-hover)}tr.clickable{cursor:pointer}tr.clickable:hover{background:#f0f6ff}td.num{text-align:right;font-variant-numeric:tabular-nums}.progress-bar{display:inline-block;width:90px;height:8px;background:#e9edf2;border-radius:4px;vertical-align:middle;margin-right:.4rem;overflow:hidden}.progress-inner{height:100%;background:var(--primary);border-radius:4px}.detail-list{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:1rem 1.25rem;margin-top:.9rem;display:grid;grid-template-columns:max-content 1fr;gap:.6rem 1.5rem}.detail-list dt{color:var(--muted);font-size:.88rem}.detail-list dd{margin:0}.chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:.9rem;margin-top:.9rem}.chart-card{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:1rem}.chart-card h3{font-size:1.12rem;margin:0 0 .75rem}.chart-svg{width:100%;height:auto;display:block}.chart-tick,.chart-legend-text,.chart-bar-label,.chart-bar-value{font-size:13px}.chart-empty{color:var(--muted);text-align:center;padding:3rem 0;font-size:.88rem}.empty-hint{margin-top:.6rem}.error-box{background:var(--error-bg);color:var(--error-text);border-radius:6px;padding:.6rem .8rem;font-size:.88rem;margin:.5rem 0}.loading{color:var(--muted);padding:2rem 0;text-align:center}.order-heading,.results-heading,.detail-header,.batch-heading,.detail-section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.order-heading{margin-bottom:1.4rem}.order-heading h2,.detail-header h2{font-size:1.9rem;line-height:1.25;margin:.25rem 0 0;overflow-wrap:anywhere}.eyebrow{color:var(--primary);font-size:.82rem;font-weight:700;letter-spacing:0}.heading-note{color:var(--muted);font-size:.96rem}.order-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(140px,185px) minmax(150px,185px);gap:.75rem;padding:1rem 0 1.25rem;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.order-toolbar label{display:flex;flex-direction:column;gap:.35rem;min-width:0;color:var(--muted);font-size:.92rem;font-weight:600}.order-toolbar input,.order-toolbar select{height:42px;background:#fff;color:var(--text)}.order-toolbar input:focus,.order-toolbar select:focus{border-color:var(--primary)}.results-heading{padding:1.35rem 0 .65rem}.results-heading h3,.detail-section-heading h3{margin:0;font-size:1.2rem}.result-count,.field-label{font-size:.92rem;color:var(--muted)}.order-list{border-top:1px solid var(--border)}.order-row{display:grid;grid-template-columns:minmax(200px,2fr) minmax(130px,1.15fr) minmax(155px,1.35fr) minmax(95px,.8fr) auto;align-items:center;gap:1.25rem;min-height:106px;padding:1rem .8rem;border-bottom:1px solid var(--border);background:#fff}.order-row:hover{background:var(--row-hover)}.order-identity,.order-quantity,.order-progress,.order-delivery{min-width:0}.order-no-line{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem}.order-no-line strong{font-size:1.12rem;overflow-wrap:anywhere}.order-subtitle{margin-top:.4rem;font-size:1rem;overflow-wrap:anywhere}.order-batches{margin-top:.25rem;font-size:.88rem;color:var(--muted);overflow-wrap:anywhere}.order-quantity,.order-progress,.order-delivery{display:flex;flex-direction:column;gap:.55rem}.order-quantity strong,.order-delivery strong{font-size:1rem;font-variant-numeric:tabular-nums}.status-tag{display:inline-flex;align-items:center;min-height:27px;padding:.1rem .5rem;border-radius:4px;background:#e9efed;color:#46615a;font-size:.86rem;font-weight:600;white-space:nowrap}.status-in_production,.status-issued{background:#ddf3ec;color:#08705b}.status-completed,.status-shipped{background:#e2effb;color:#25639a}.status-paused,.status-cancelled{background:#fceadd;color:#a05a1a}.progress-value{display:flex;align-items:center;gap:.55rem;min-width:0}.progress-value strong{font-size:.95rem;font-variant-numeric:tabular-nums;white-space:nowrap}.progress-track{flex:1;min-width:46px;height:7px;overflow:hidden;background:#dfe8e5;border-radius:4px}.progress-fill{display:block;height:100%;background:var(--primary);border-radius:4px}.order-open{color:var(--primary);border:0;background:transparent;padding:.55rem;white-space:nowrap;font-weight:600}.order-open:hover,.back-link:hover{color:var(--primary-dark);text-decoration:underline}.empty-state{padding:3rem 1rem;text-align:center;color:var(--muted);border:1px solid var(--border);background:#fff}.back-link{color:var(--primary);border:0;background:transparent;padding:0 0 1.25rem;font-weight:600}.detail-header{padding:0 0 1.3rem;border-bottom:1px solid var(--border);align-items:flex-start}.detail-header p{margin:.5rem 0 0;color:var(--muted)}.detail-header>.status-tag{margin-top:.3rem}.order-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--border);margin-bottom:1.7rem}.order-metric{display:flex;flex-direction:column;gap:.4rem;padding:1.3rem 1rem 1.3rem 0;min-width:0}.order-metric+.order-metric{border-left:1px solid var(--border);padding-left:1rem}.order-metric span{font-size:.92rem;color:var(--muted)}.order-metric strong{font-size:1.25rem;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.detail-section-heading{margin-bottom:1rem}.detail-section-heading .hint{display:block;margin-top:.3rem}.detail-toolbar{grid-template-columns:minmax(200px,1fr) minmax(160px,220px);padding-top:.75rem}.batch-section{margin:1.4rem 0 2rem}.batch-heading{padding:0 0 .75rem;border-bottom:2px solid var(--text);align-items:end}.batch-heading h3{margin:.2rem 0 0;font-size:1.26rem;overflow-wrap:anywhere}.batch-heading-side{display:flex;align-items:center;gap:.65rem;color:var(--muted);font-size:.92rem;flex-wrap:wrap;justify-content:flex-end}.step-detail{border-bottom:1px solid var(--border);background:#fff}.step-detail summary{display:grid;grid-template-columns:38px minmax(170px,2fr) minmax(100px,.8fr) minmax(125px,1fr) 86px;gap:1rem;align-items:center;min-height:75px;padding:.75rem .9rem;cursor:pointer;list-style:none}.step-detail summary::-webkit-details-marker{display:none}.step-detail summary:hover{background:var(--row-hover)}.step-detail[open] summary{background:#eff7f4}.step-sequence{color:var(--muted);font-size:.94rem;font-variant-numeric:tabular-nums}.step-title{display:flex;flex-direction:column;gap:.25rem;min-width:0}.step-title strong{font-size:1.02rem;overflow-wrap:anywhere}.step-title small{font-size:.86rem;color:var(--muted);overflow-wrap:anywhere}.step-count{font-size:1rem;font-weight:600;font-variant-numeric:tabular-nums}.step-toggle{color:var(--primary);font-size:.9rem;font-weight:600;text-align:right}.step-toggle:after{content:"  ▾"}.step-detail[open] .step-toggle:after{content:"  ▴"}.step-expanded{padding:0 1rem 1.15rem 4.4rem}.step-meta{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;padding:.7rem 0 .9rem;color:var(--muted);font-size:.92rem}.employee-table{border-radius:4px}.employee-table th{background:#f5f8f7}.empty-inline{color:var(--muted);font-size:.96rem;padding:.8rem 0}.order-summary{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:#fff}.summary-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.summary-stat{display:flex;flex-direction:column;gap:.5rem;padding:1.25rem .9rem;min-width:0}.summary-stat+.summary-stat{border-left:1px solid var(--border)}.summary-stat span,.summary-total span{color:var(--muted);font-size:.9rem}.summary-stat strong{font-size:1.65rem;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.summary-stat.accent strong{color:var(--primary)}.summary-stat.warning strong{color:#b75b28}.summary-visual{border-left:1px solid var(--border);padding:.9rem 1.2rem}.summary-total{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.25rem .75rem}.summary-total strong{font-size:1rem;font-variant-numeric:tabular-nums}.distribution{padding-top:.5rem}.distribution-head{display:flex;justify-content:space-between;color:var(--muted);font-size:.82rem}.distribution-head strong{color:var(--text)}.distribution-bar{display:flex;overflow:hidden;width:100%;height:10px;margin:.38rem 0 .45rem;background:#e6edeb;border-radius:3px}.distribution-segment{height:100%}.distribution-none{background:#aebfbd}.distribution-working{background:#0d907a}.distribution-reached{background:#e3a357}.distribution-legend{display:flex;flex-wrap:wrap;gap:.25rem .9rem;font-size:.78rem;color:var(--muted)}.distribution-legend span:before{content:"";display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:.3rem;background:#aebfbd}.distribution-legend .legend-working:before{background:#0d907a}.distribution-legend .legend-reached:before{background:#e3a357}.quick-filters{display:flex;flex-wrap:wrap;gap:.4rem;padding:0 0 .85rem}.quick-filters button{padding:.38rem .7rem;font-size:.9rem;border-radius:4px}.quick-filters button.active{color:#fff;background:var(--text);border-color:var(--text)}.quick-filters button:not(.active):hover{background:#e6f2ee}.process-visual{padding:1.2rem 0 .6rem;border-bottom:1px solid var(--border)}.process-visual-head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.8rem}.process-visual-head h3,.batch-actions h3{font-size:1.18rem;margin:0}.process-visual-head .segmented{margin-bottom:0}.step-chart-rows{display:grid;gap:.35rem;max-height:450px;overflow-y:auto}.step-chart-row{width:100%;display:grid;grid-template-columns:minmax(130px,190px) minmax(0,1fr) minmax(100px,135px);align-items:center;gap:1rem;padding:.55rem .75rem;text-align:left;border:1px solid transparent;background:#fff}.step-chart-row:hover,.step-chart-row:focus-visible{border-color:#b7d9cf;background:#f0f8f5}.chart-step-label{display:flex;flex-direction:column;min-width:0}.chart-step-label strong{font-size:.96rem;overflow-wrap:anywhere}.chart-step-label small{font-size:.8rem;color:var(--muted)}.chart-step-bars{display:grid;gap:.35rem}.chart-bar-track,.contribution-track{display:block;height:10px;width:100%;overflow:hidden;background:#e5edeb;border-radius:3px}.chart-bar-good,.contribution-track>span{display:block;height:100%;min-width:0;background:#0d907a}.chart-step-value{text-align:right;font-size:.96rem;font-variant-numeric:tabular-nums;white-space:nowrap}.batch-actions{display:flex;align-items:center;gap:.5rem;margin-top:1.5rem}.batch-actions h3{margin-right:auto}.batch-actions button{padding:.35rem .6rem;font-size:.9rem;color:var(--primary)}.step-detail{scroll-margin-top:2rem}.step-highlight{outline:2px solid var(--primary);outline-offset:-2px}.employee-contribution{padding:.7rem 0 1.1rem;max-width:760px}.contribution-heading{display:flex;justify-content:space-between;gap:.5rem;font-size:.92rem;margin-bottom:.6rem}.contribution-heading>span{color:var(--muted)}.contribution-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(100px,2fr) 60px;align-items:center;gap:.75rem;padding:.26rem 0;font-size:.88rem}.contribution-row>span{overflow-wrap:anywhere}.contribution-row strong{text-align:right;font-variant-numeric:tabular-nums}.contribution-track{height:8px}.period-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem 1rem;margin-bottom:1.1rem}.period-heading h2{margin:0;font-size:1.75rem}.period-current{font-size:1.2rem;font-variant-numeric:tabular-nums;color:var(--muted)}.view-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:480px;gap:.5rem;margin-bottom:1.2rem}.view-switcher button{min-height:54px;padding:.65rem 1rem;font-size:1.12rem;font-weight:600;border-radius:4px;border-bottom-width:3px;transition:background .15s,border-color .15s}.view-switcher button:hover:not(.active){background:var(--row-hover);border-color:#a9bdb7}.view-switcher button.active{color:var(--primary-dark);border-color:var(--primary);background:#e0f2ec}.period-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.5rem;padding:1.1rem 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-bottom:1.2rem}.period-nav{display:grid;grid-template-columns:48px minmax(175px,1fr) 48px;gap:.5rem;align-items:end}.period-picker,.period-filter{display:flex;flex-direction:column;gap:.3rem;min-width:0}.period-picker>span,.period-filter>span{color:var(--muted);font-size:1rem}.period-picker input,.period-filter select{height:48px;min-width:0;font-size:1.05rem;color:var(--text);background:#fff}.period-picker input{width:100%}.period-arrow{width:48px;height:48px;padding:0;font-size:1.8rem;line-height:1;color:var(--primary);flex:0 0 auto}.period-arrow:hover:not(:disabled){background:#e0f2ec;border-color:var(--primary)}.period-actions{display:flex;flex:1;align-items:center;min-width:0;padding-top:1.8rem}.period-shortcuts{display:flex;flex-wrap:wrap;gap:.45rem}.period-shortcuts button{min-height:44px;padding:.5rem .85rem;font-size:1rem}.period-shortcuts button.active,.month-grid button.active{color:#fff;background:var(--primary);border-color:var(--primary)}.period-shortcuts button:hover:not(.active),.month-grid button:hover:not(.active){background:var(--row-hover);border-color:#a9bdb7}.period-filter{width:210px;max-width:100%}.month-browser{width:100%}.month-browser summary{width:fit-content;padding:.35rem 0;min-height:40px;color:var(--primary);font-size:1.05rem;font-weight:600;cursor:pointer}.month-browser-content{max-width:600px;padding:.6rem 0 0}.month-year-nav{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.8rem}.month-year-nav label{display:flex;align-items:center;gap:.5rem;font-size:1.05rem}.month-year-nav input{width:100px;height:48px;text-align:center;font-size:1.15rem;font-weight:600}.month-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.5rem}.month-grid button{height:48px;padding:.4rem;font-size:1.05rem}.period-body{min-height:280px}.period-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-bottom:1rem;background:#fff}.period-stat{display:flex;flex-direction:column;gap:.5rem;min-width:0;padding:1.2rem 1rem}.period-stat+.period-stat{border-left:1px solid var(--border)}.period-stat>span{color:var(--muted);font-size:1rem}.period-stat strong{font-size:1.65rem;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.period-stat.money strong{font-size:1.45rem}.period-stat.accent strong{color:var(--primary)}.period-body table{font-size:1.05rem}.period-body th,.period-body td{padding:.85rem .9rem}.period-body .table-wrap{border-radius:4px}.period-empty{display:flex;justify-content:center;align-items:center;min-height:160px;font-size:1.05rem}.daily-filters,.quality-toolbar{display:grid;gap:.75rem;align-items:end;margin:0 0 1.2rem}.daily-filters{grid-template-columns:minmax(260px,1fr) minmax(220px,300px)}.quality-toolbar{grid-template-columns:170px auto minmax(220px,1fr) 170px 150px}.daily-filters>label,.daily-filters>div,.quality-toolbar>label{display:flex;flex-direction:column;gap:.35rem;min-width:0}.daily-filters>label>span,.daily-filters>div>span,.quality-toolbar>label>span{color:var(--muted);font-size:1rem}.daily-filters input,.quality-toolbar input,.quality-toolbar select,.workshop-filter>summary{min-height:48px;font-size:1.04rem}.workshop-filter{position:relative}.workshop-filter>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:.55rem .7rem;border:1px solid var(--border);border-radius:6px;background:#fff;list-style:none}.workshop-filter>summary::-webkit-details-marker{display:none}.workshop-filter>summary:after{content:"▾";color:var(--primary)}.workshop-options{position:absolute;z-index:5;width:100%;max-height:300px;overflow-y:auto;background:#fff;border:1px solid var(--border);box-shadow:0 8px 20px #1b292820;padding:.35rem}.workshop-options label{display:flex;flex-direction:row;align-items:center;gap:.65rem;padding:.65rem;cursor:pointer}.workshop-options label:hover{background:var(--row-hover)}.workshop-options input,.quality-all-months input{width:20px;height:20px;min-height:20px;accent-color:var(--primary)}.workshop-actions{border-bottom:1px solid var(--border);padding-bottom:.35rem}.workshop-actions button{width:100%;text-align:left;border:0;color:var(--primary)}.daily-employee,.quality-order{background:#fff;border-bottom:1px solid var(--border)}.daily-employee:first-of-type,.quality-order:first-of-type{border-top:1px solid var(--border)}.daily-employee>summary,.quality-order>summary{display:grid;align-items:center;gap:1rem;padding:1rem;cursor:pointer;list-style:none;font-size:1.06rem}.daily-employee>summary{grid-template-columns:minmax(160px,1.5fr) minmax(130px,1fr) minmax(190px,1.2fr) 25px}.daily-employee>summary::-webkit-details-marker,.quality-order>summary::-webkit-details-marker{display:none}.daily-employee>summary:hover,.quality-order>summary:hover,.daily-employee[open]>summary,.quality-order[open]>summary{background:var(--row-hover)}.daily-person,.quality-order-title{display:flex;flex-direction:column;min-width:0}.daily-person strong,.quality-order-title strong{font-size:1.16rem;overflow-wrap:anywhere}.daily-person small,.quality-order-title small{color:var(--muted);font-size:.91rem;overflow-wrap:anywhere}.daily-count{color:var(--primary-dark);font-variant-numeric:tabular-nums}.daily-chevron{color:var(--primary)}.daily-employee[open] .daily-chevron{transform:rotate(180deg)}.daily-lines,.quality-records{padding:0 1rem .65rem}.daily-line{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(150px,1fr) auto;gap:1rem;align-items:center;padding:.85rem .5rem;border-top:1px solid var(--border)}.daily-line>div:first-child{display:flex;flex-direction:column}.daily-line>div:first-child span{color:var(--muted);font-size:.94rem}.daily-line a,.quality-order-link,.order-quality-link a{color:var(--primary-dark);font-weight:600;white-space:nowrap}.quality-toolbar .quality-all-months{display:flex;flex-direction:row;gap:.5rem;align-items:center;min-height:48px;white-space:nowrap}.quality-month-shortcuts{display:flex;flex-wrap:wrap;gap:.45rem;margin:-.35rem 0 1.15rem}.quality-month-shortcuts button{min-height:40px;padding:.35rem .75rem}.quality-month-shortcuts button.active{background:var(--primary);border-color:var(--primary);color:#fff}.quality-order>summary{grid-template-columns:minmax(180px,1.2fr) minmax(160px,1fr) minmax(100px,1fr)}.quality-order-totals{font-weight:600;font-variant-numeric:tabular-nums}.quality-bar{display:flex;align-items:center;width:100%;min-height:14px;border-radius:3px;background:#e6edeb;overflow:hidden}.quality-bar-repair,.quality-bar-scrap{display:block;height:14px}.quality-bar-repair{background:#0d907a}.quality-bar-scrap{background:#d05b43}.quality-record{border-top:1px solid var(--border);padding:.85rem .4rem}.quality-record-head{display:flex;gap:.55rem 1rem;align-items:center;flex-wrap:wrap}.quality-record-head>span:nth-child(2),.quality-ineffective{color:var(--muted)}.quality-record-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:.6rem}.quality-record-values p{margin:.25rem 0;overflow-wrap:anywhere}.quality-repair{color:#087968}.quality-scrap,.period-stat.scrap strong{color:#bd4632}.period-stat.repair strong{color:var(--primary)}.quality-order-link{display:inline-block;margin:.3rem 0 .8rem}.order-quality-link{border-bottom:1px solid var(--border);padding:.7rem 0;margin-bottom:1rem}@media(max-width:800px){.quality-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.quality-toolbar>label:nth-child(3){grid-column:1 / -1}.chart-grid{grid-template-columns:1fr}.order-row{grid-template-columns:minmax(180px,2fr) minmax(110px,1fr) minmax(130px,1fr) auto;gap:.8rem}.order-delivery{display:none}.step-detail summary{grid-template-columns:30px minmax(130px,2fr) minmax(75px,1fr) 76px;gap:.65rem}.step-progress{display:none}.order-summary{grid-template-columns:1fr}.summary-visual{border-left:0;border-top:1px solid var(--border)}.period-filter{width:100%}.period-actions{flex-basis:250px}}@media(max-width:640px){.daily-filters{grid-template-columns:1fr}.quality-toolbar{grid-template-columns:1fr 1fr}.quality-toolbar>label:nth-child(3){grid-column:1 / -1;grid-row:1}.daily-employee>summary{grid-template-columns:minmax(0,1fr) auto;gap:.3rem}.daily-count{grid-column:1}.daily-chevron{grid-column:2;grid-row:1 / 3}.daily-line{grid-template-columns:1fr;gap:.4rem}.quality-order>summary{grid-template-columns:1fr auto;gap:.4rem}.quality-bar{grid-column:1 / -1}.quality-record-values{grid-template-columns:1fr;gap:.45rem}.layout header{gap:.5rem}.layout nav a{padding:.3rem .5rem;font-size:.92rem}.card-grid{grid-template-columns:repeat(2,1fr)}.stat-value{font-size:1.45rem}.search-input{width:100%}table{font-size:.92rem}th,td{padding:.5rem .55rem}.layout{padding:0 .85rem 1.5rem}.layout header{align-items:flex-start}.brand{width:100%;margin-right:0}.layout nav{order:3;width:100%;flex:auto;overflow-x:auto;flex-wrap:nowrap}.layout nav a{white-space:nowrap}.order-heading h2,.detail-header h2{font-size:1.55rem}.summary-stats{grid-template-columns:1fr 1fr}.summary-stat:nth-child(3){border-left:0}.summary-stat:nth-child(n+3){border-top:1px solid var(--border)}.summary-stat strong{font-size:1.42rem}.heading-note{display:none}.order-toolbar{grid-template-columns:1fr 1fr}.order-toolbar .order-search{grid-column:1 / -1}.order-row{grid-template-columns:1fr auto;gap:.8rem;padding:.95rem .7rem}.order-identity{grid-column:1 / -1}.order-quantity{grid-column:1}.order-progress{grid-column:1;grid-row:3}.order-open{grid-column:2;grid-row:2 / 4;align-self:center}.order-metrics{grid-template-columns:1fr 1fr}.order-metric{padding:.85rem .3rem .85rem 0}.order-metric+.order-metric{border-left:0;padding-left:0}.order-metric:nth-child(2n){padding-left:.85rem;border-left:1px solid var(--border)}.order-metric strong{font-size:1.05rem}.batch-heading{align-items:flex-start}.batch-heading-side{flex-direction:column;align-items:flex-end;gap:.3rem}.step-detail summary{grid-template-columns:26px minmax(0,1fr) auto;gap:.5rem}.step-count{grid-column:2;font-size:.8rem;color:var(--muted)}.step-toggle{grid-column:3;grid-row:1 / 3}.step-expanded{padding-left:.8rem}.step-chart-row{grid-template-columns:minmax(100px,1fr) minmax(90px,1.2fr);gap:.5rem}.chart-step-value{grid-column:2;font-size:.86rem}.process-visual-head{align-items:flex-start;flex-direction:column}.contribution-row{grid-template-columns:minmax(90px,1fr) minmax(60px,1fr) 44px;gap:.35rem}.period-heading h2{font-size:1.5rem}.period-current{font-size:1.05rem}.view-switcher{max-width:none}.view-switcher button{padding:.65rem .4rem}.period-toolbar{gap:.85rem}.period-nav{width:100%;grid-template-columns:48px minmax(0,1fr) 48px}.period-actions{width:100%;flex-basis:100%;padding-top:0}.period-shortcuts{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.period-shortcuts button{padding:.5rem .3rem}.period-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.period-stat{padding:1rem .65rem}.period-stat:nth-child(3){border-left:0}.period-stat:nth-child(n+3){border-top:1px solid var(--border)}.period-stat strong{font-size:1.35rem}.period-stat.money strong{font-size:1.22rem}.month-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.period-body .table-wrap{overflow:visible;background:transparent;border:0}.period-body table,.period-body tbody,.period-body tr,.period-body td{display:block;width:100%;white-space:normal}.period-body thead{display:none}.period-body tbody{display:grid;gap:.6rem}.period-body tr{background:#fff;border:1px solid var(--border);border-radius:4px;overflow:hidden}.period-body td,.period-body td.num{display:flex;justify-content:space-between;gap:.6rem;text-align:right;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.period-body td:last-child{border-bottom:0}.period-body td:before{content:attr(data-label);flex:0 0 auto;color:var(--muted);text-align:left}}
