/* Visual-source exception: these exact values are contractually preserved from the approved Open Design HTML. */
.production-progress-dashboard{--pp-bg:#f4f6f8;--pp-surface:#fff;--pp-subtle:#f8fafc;--pp-selected:#edf5ff;--pp-fg:#121920;--pp-muted:#5f6c78;--pp-border:#cbd3dc;--pp-border-strong:#8d99a6;--pp-accent:#1764c0;--pp-accent-soft:#e7f1fc;--pp-focus:#2d7ee8;--pp-warning:#9a6410;--pp-warning-soft:#fff3d6;--pp-danger:#b4232f;--pp-danger-soft:#fdecef;--pp-cyan:#168ca7;--pp-radius:8px;--pp-font:"Roboto",Arial,sans-serif;--pp-mono:"Roboto",Arial,sans-serif;width:100%;margin-top:16px;color:var(--pp-fg);font:14px/1.55 var(--pp-font);font-synthesis:none}
.production-progress-dashboard *{box-sizing:border-box}.production-progress-dashboard button,.production-progress-dashboard input{color:inherit;font:inherit}.production-progress-dashboard button{cursor:pointer}.production-progress-dashboard :is(button,input,[tabindex]):focus-visible,.production-progress__drawer :is(button,[tabindex]):focus-visible{outline:2px solid var(--pp-focus,#2d7ee8);outline-offset:2px}
.production-progress__eyebrow{margin:0;color:var(--pp-muted,#5f6c78);font-size:11px;font-weight:650;letter-spacing:.08em;text-transform:uppercase}
.production-progress__panel{overflow:hidden;border:1px solid var(--pp-border);border-radius:var(--pp-radius);background:var(--pp-surface)}.production-progress__toolbar{min-height:64px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--pp-border);background:var(--pp-subtle)}.production-progress__period{display:flex;align-items:center;gap:6px}.production-progress__period strong{min-width:142px;text-align:center;font-variant-numeric:tabular-nums}
.production-progress__icon-btn,.production-progress__close-btn{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--pp-border);border-radius:7px;background:var(--pp-surface);font-size:22px}.production-progress__icon-btn:hover,.production-progress__close-btn:hover{border-color:color-mix(in srgb,var(--pp-accent) 45%,var(--pp-border));background:color-mix(in srgb,var(--pp-accent) 5%,var(--pp-surface))}
.production-progress__segmented{display:flex;gap:4px;padding:4px;border:1px solid var(--pp-border);border-radius:8px;background:var(--pp-subtle)}.production-progress__segment{min-height:36px;padding:7px 12px;border:0;border-radius:6px;background:transparent;color:var(--pp-muted);font-weight:550;letter-spacing:.01em}.production-progress__segment[aria-pressed="true"]{color:var(--pp-fg);background:var(--pp-surface);box-shadow:0 1px 2px color-mix(in srgb,var(--pp-fg) 10%,transparent)}
.production-progress__timeline-shell{display:grid;grid-template-columns:290px minmax(0,1fr);min-width:0}.production-progress__project-column{position:relative;z-index:4;border-right:1px solid var(--pp-border);background:var(--pp-surface)}.production-progress__column-head,.production-progress__dates{height:58px;border-bottom:1px solid var(--pp-border)}.production-progress__column-head{display:flex;align-items:center;padding:0 16px;color:var(--pp-muted);font-size:11px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}
.production-progress__project-row{height:68px;padding:9px 14px;display:flex;align-items:center;gap:10px;border-bottom:1px solid color-mix(in srgb,var(--pp-border) 72%,transparent);background:var(--pp-surface)}.production-progress__project-row.selected{background:var(--pp-selected)}.production-progress__project-code{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:6px;background:var(--pp-accent-soft);color:var(--pp-accent);font:650 10px/1 var(--pp-mono)}.production-progress__project-copy{min-width:0}.production-progress__project-copy strong,.production-progress__project-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.production-progress__project-copy strong{font-size:13px}.production-progress__project-copy small{margin-top:2px;color:var(--pp-muted);font-size:11px}
.production-progress__timeline-viewport{min-width:0;overflow:auto;overscroll-behavior-inline:contain;scrollbar-color:var(--pp-border-strong) var(--pp-subtle)}.production-progress__timeline-track{position:relative;min-width:calc(var(--day-count) * 44px);background:repeating-linear-gradient(90deg,transparent 0,transparent 43px,color-mix(in srgb,var(--pp-border) 55%,transparent) 43px,color-mix(in srgb,var(--pp-border) 55%,transparent) 44px)}.production-progress__dates{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:repeat(var(--day-count),44px);align-items:center;background:color-mix(in srgb,var(--pp-surface) 94%,transparent)}.production-progress__date-cell{height:58px;display:flex;align-items:baseline;justify-content:center;gap:4px;padding-top:17px}.production-progress__date-weekday{color:var(--pp-muted);font-size:9px;font-weight:550;letter-spacing:.04em}.production-progress__date-day{font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}.production-progress__date-cell.today .production-progress__date-weekday{color:var(--pp-accent)}.production-progress__date-cell.today .production-progress__date-day{width:27px;height:27px;display:grid;place-items:center;margin-top:-5px;border-radius:5px;background:var(--pp-accent);color:#fff}
.production-progress__lane{position:relative;height:68px;border-bottom:1px solid color-mix(in srgb,var(--pp-border) 72%,transparent)}.production-progress__lane:hover,.production-progress__lane.selected{background:color-mix(in srgb,var(--pp-accent) 4%,transparent)}.production-progress__bar-track{position:absolute;top:18px;height:32px;min-width:132px;border-radius:999px;background:var(--bar-soft);transition:filter .15s}.production-progress__bar-track:hover{filter:saturate(1.08)}.production-progress__bar-fill{position:absolute;inset:0 auto 0 0;width:var(--progress);min-width:32px;max-width:100%;border-radius:999px;background:var(--bar-color)}.production-progress__bar-percent{position:absolute;z-index:3;right:10px;top:50%;transform:translateY(-50%);color:var(--bar-text);font-size:10px;font-weight:650;font-variant-numeric:tabular-nums;pointer-events:none}
.production-progress__eye-trigger{position:absolute;z-index:7;left:-6px;top:-6px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent}.production-progress__eye-core,.production-progress__eye-ring{position:absolute;left:50%;top:50%;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}.production-progress__eye-core{z-index:3;width:6px;height:6px;background:#fff;box-shadow:0 1px 3px color-mix(in srgb,var(--bar-color) 38%,transparent)}.production-progress__eye-ring{z-index:2;width:16px;height:16px;border:0;background:color-mix(in srgb,#fff 32%,transparent);transition:width .16s ease,height .16s ease,background .16s ease}.production-progress__eye-trigger:hover .production-progress__eye-ring,.production-progress__eye-trigger:focus-visible .production-progress__eye-ring{width:20px;height:20px;background:color-mix(in srgb,#fff 44%,transparent)}.production-progress__eye-trigger::after{content:"Xem chi tiết dự án";position:absolute;left:50%;bottom:43px;transform:translateX(-50%) translateY(4px);opacity:0;pointer-events:none;white-space:nowrap;padding:5px 7px;border:1px solid var(--pp-border);border-radius:4px;background:var(--pp-fg);color:#fff;font-size:10px;font-weight:550;transition:opacity .14s,transform .14s}.production-progress__eye-trigger:hover::after,.production-progress__eye-trigger:focus-visible::after{opacity:1;transform:translateX(-50%) translateY(0)}
.production-progress__today-marker{position:absolute;z-index:6;top:31px;bottom:0;width:1px;background:var(--pp-accent);pointer-events:none}.production-progress__today-marker::before{content:"";position:absolute;top:-4px;left:-3px;width:7px;height:7px;border-radius:50%;background:var(--pp-accent)}.production-progress__state-box{grid-column:1/-1;min-height:310px;display:grid;place-items:center;padding:32px;color:var(--pp-muted);text-align:center}.production-progress__footer{min-height:52px;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid var(--pp-border);color:var(--pp-muted);font-size:11px}.production-progress__legend{display:flex;gap:14px;flex-wrap:wrap}.production-progress__legend i{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:currentColor}.production-progress__legend .is-active{color:var(--pp-accent)}.production-progress__legend .is-ontrack{color:var(--pp-cyan)}.production-progress__legend .is-attention{color:var(--pp-warning)}
.production-progress__backdrop{position:fixed;z-index:9998;inset:0;background:color-mix(in srgb,#121920 28%,transparent);opacity:0;pointer-events:none;transition:opacity .2s}.production-progress__backdrop.open{opacity:1;pointer-events:auto}.production-progress__drawer{--pp-surface:#fff;--pp-subtle:#f8fafc;--pp-fg:#121920;--pp-muted:#5f6c78;--pp-border:#cbd3dc;--pp-border-strong:#8d99a6;--pp-accent:#1764c0;--pp-focus:#2d7ee8;--pp-warning:#9a6410;--pp-danger:#b4232f;--pp-danger-soft:#fdecef;--pp-font:"Roboto",Arial,sans-serif;position:fixed;z-index:9999;top:0;right:0;width:min(480px,100%);height:100%;overflow:auto;color:var(--pp-fg);background:var(--pp-surface);box-shadow:-18px 0 50px color-mix(in srgb,var(--pp-fg) 16%,transparent);font:14px/1.55 var(--pp-font);transform:translateX(105%);transition:transform .22s ease}.production-progress__drawer.open{transform:translateX(0)}
.production-progress__drawer-head{position:sticky;top:0;z-index:6;display:flex;justify-content:space-between;align-items:start;gap:16px;padding:18px 20px;border-bottom:1px solid var(--pp-border);background:color-mix(in srgb,var(--pp-surface) 96%,transparent)}.production-progress__drawer h2{margin:3px 0;font-size:22px;line-height:1.25}.production-progress__drawer-sub{margin:4px 0 0;color:var(--pp-muted);font-size:12px}.production-progress__project-summary{padding:18px 20px;border-bottom:1px solid var(--pp-border);background:var(--pp-subtle)}.production-progress__progress-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.production-progress__progress-row strong{font-size:13px}.production-progress__progress{height:8px;margin-top:9px;overflow:hidden;border-radius:999px;background:var(--pp-border)}.production-progress__progress i{display:block;height:100%;border-radius:inherit;background:var(--pp-accent)}.production-progress__facts{display:grid;grid-template-columns:1fr 1fr;gap:1px;margin-top:14px;border:1px solid var(--pp-border);background:var(--pp-border)}.production-progress__fact{padding:10px;background:var(--pp-surface)}.production-progress__fact span,.production-progress__fact strong{display:block}.production-progress__fact span{color:var(--pp-muted);font-size:10px}.production-progress__fact strong{margin-top:3px;font-size:12px}
.production-progress__activity-section{padding:18px 20px 28px}.production-progress__section-title{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:16px}.production-progress__section-title h3{margin:0;font-size:16px}.production-progress__section-title span{color:var(--pp-muted);font-size:11px}.production-progress__activity-list{position:relative;margin-left:3px}.production-progress__activity-list::before{content:"";position:absolute;left:9px;top:8px;bottom:18px;width:1px;background:var(--pp-border)}.production-progress__activity-item{position:relative;padding:0 0 24px 36px}.production-progress__activity-item:last-child{padding-bottom:0}.production-progress__activity-dot{position:absolute;z-index:2;left:3px;top:4px;width:13px;height:13px;border:3px solid var(--pp-surface);border-radius:50%;background:var(--dot-color);box-shadow:0 0 0 1px var(--dot-color)}.production-progress__activity-branch{position:absolute;left:15px;top:10px;width:16px;height:1px;background:var(--pp-border)}.production-progress__activity-time{margin:0 0 8px;color:var(--pp-muted);font:550 10px/1.4 "Roboto",Arial,sans-serif;letter-spacing:.02em}.production-progress__activity-card{overflow:hidden;border:1px solid var(--pp-border);border-radius:7px;background:var(--pp-surface)}.production-progress__activity-media{aspect-ratio:16/8;display:grid;place-items:center;border-bottom:1px solid var(--pp-border);background:var(--pp-subtle);color:var(--pp-muted);text-align:center}.production-progress__activity-media img{width:100%;height:100%;object-fit:cover}.production-progress__activity-media strong,.production-progress__activity-media small{display:block}.production-progress__activity-media strong{font-size:12px}.production-progress__activity-media small{margin-top:3px;font-size:10px}.production-progress__activity-media.error{color:var(--pp-danger);background:var(--pp-danger-soft)}.production-progress__activity-copy{padding:11px 12px}.production-progress__activity-copy p{margin:0;color:var(--pp-fg);font-size:12px;line-height:1.55}.production-progress__activity-meta{display:flex;justify-content:space-between;gap:10px;margin-top:8px;color:var(--pp-muted);font-size:10px}.production-progress__empty-log{padding:30px 16px;border:1px solid var(--pp-border);background:var(--pp-subtle);color:var(--pp-muted);text-align:center}.production-progress__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.production-progress__timeline-shell{grid-template-columns:230px minmax(0,1fr)}.production-progress__drawer{width:min(440px,100%)}}
@media(max-width:700px){.production-progress__toolbar{align-items:stretch;flex-direction:column}.production-progress__period{justify-content:space-between}.production-progress__segmented{overflow:auto}.production-progress__segment{flex:1;white-space:nowrap}.production-progress__timeline-shell{grid-template-columns:172px minmax(0,1fr)}.production-progress__project-row{padding:8px}.production-progress__project-code{width:34px;height:34px;flex-basis:34px}.production-progress__footer{align-items:flex-start;flex-direction:column}.production-progress__drawer{width:100%}.production-progress__activity-section,.production-progress__project-summary{padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:reduce){.production-progress-dashboard *,.production-progress-dashboard *::before,.production-progress-dashboard *::after,.production-progress__drawer,.production-progress__backdrop{scroll-behavior:auto!important;transition:none!important}}
.production-progress__section-title{align-items:center;margin-bottom:16px}.production-progress__section-title>button{min-height:36px;padding:0 13px;border:1px solid color-mix(in srgb,var(--pp-accent) 35%,var(--pp-border));border-radius:8px;color:var(--pp-accent);background:color-mix(in srgb,var(--pp-accent) 8%,var(--pp-surface));font:700 12px/1 var(--pp-font)}.production-progress__activity-stream{position:relative}.production-progress__composer{margin:0;padding-bottom:20px}.production-progress__composer[hidden]{display:none}.production-progress__composer .production-progress__activity-dot{--dot-color:var(--pp-accent)}.production-progress__composer .production-progress__activity-card{border-radius:9px;box-shadow:0 2px 8px color-mix(in srgb,var(--pp-fg) 7%,transparent)}.production-progress__composer-media{display:grid;place-items:center;width:100%;min-height:172px;padding:12px;border:0;border-bottom:1px solid var(--pp-border);border-radius:0;color:var(--pp-surface);background:var(--pp-fg);text-align:center;cursor:pointer}.production-progress__composer-media-empty b,.production-progress__composer-media-empty strong,.production-progress__composer-media-empty small{display:block}.production-progress__composer-media-empty b{font-size:22px;line-height:1}.production-progress__composer-media-empty strong{margin-top:5px;font-size:12px}.production-progress__composer-media-empty small{margin-top:5px;color:var(--pp-border);font-size:9px;font-weight:400}.production-progress__composer-media img{display:block;width:auto;max-width:100%;height:auto;max-height:360px;object-fit:contain}.production-progress__composer-media.has-preview{min-height:0;background:var(--pp-fg)}.production-progress__composer-media.has-preview .production-progress__composer-media-empty{display:none}.production-progress__native-file{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.production-progress__composer textarea{display:block;width:100%;min-height:68px;max-height:180px;padding:11px 12px;border:0;border-bottom:1px solid var(--pp-border);border-radius:0;color:var(--pp-fg);background:var(--pp-surface);resize:none;overflow-y:auto;font:12px/1.55 var(--pp-font)}.production-progress__composer textarea:focus{outline:0;box-shadow:inset 3px 0 0 var(--pp-accent)}.production-progress__composer-actions{display:flex;justify-content:flex-end;gap:7px;padding:9px 10px;background:var(--pp-subtle)}.production-progress__composer-actions button{min-height:32px;padding:0 11px;border:1px solid var(--pp-border);border-radius:7px;background:var(--pp-surface);font:700 11px/1 var(--pp-font)}.production-progress__composer-actions .production-progress__submit-log{border-color:var(--pp-accent);color:var(--pp-surface);background:var(--pp-accent)}.production-progress__composer-actions button:disabled{opacity:.55;cursor:wait}.production-progress__activity-list{margin-left:0}.production-progress__activity-list::before{left:9px}.production-progress__activity-item{padding-left:28px}.production-progress__activity-branch{display:none}.production-progress__activity-card{border-radius:9px;box-shadow:0 1px 4px color-mix(in srgb,var(--pp-fg) 5%,transparent)}.production-progress__activity-media{display:grid;width:100%;height:auto;min-height:148px;max-height:360px;aspect-ratio:auto;padding:0;background:var(--pp-fg)}.production-progress__activity-media img{display:block;width:auto;max-width:100%;height:auto;max-height:360px;object-fit:contain}.production-progress__activity-copy{padding:12px}.production-progress__activity-meta strong{padding:2px 7px;border-radius:999px;color:var(--bms-success);background:color-mix(in srgb,var(--bms-success) 12%,var(--pp-surface))}.production-progress__empty-log{margin-left:28px;border-radius:9px}
@media(max-width:420px){.production-progress__drawer-head,.production-progress__activity-section,.production-progress__project-summary{padding-left:12px;padding-right:12px}.production-progress__section-title>button{min-width:36px;padding:0 10px}.production-progress__composer-media{min-height:150px}.production-progress__activity-item{padding-left:25px}}
.production-progress__activity-stream::before{content:"";position:absolute;left:9px;top:8px;bottom:18px;width:1px;background:var(--pp-border)}.production-progress__activity-list::before{content:none}.production-progress__activity-dot{z-index:2}.production-progress__composer-media img[hidden]{display:none!important}
@media(max-width:900px),(max-width:960px) and (max-height:480px){.production-progress-dashboard :is(button,input,select,textarea){min-height:var(--bms-control-touch)}.production-progress-dashboard :is(.production-progress__icon-btn,.production-progress__close-btn){width:var(--bms-control-touch);min-width:var(--bms-control-touch);height:var(--bms-control-touch)}}
.production-progress__bar-track.is-ontrack{--bar-color:var(--pp-accent);--bar-soft:color-mix(in srgb,var(--pp-accent) 10%,var(--pp-surface));--bar-text:var(--pp-surface)}
.production-progress__bar-track.is-attention{--bar-color:var(--pp-warning);--bar-soft:color-mix(in srgb,var(--pp-warning) 12%,var(--pp-surface));--bar-text:var(--pp-fg)}
.production-progress__activity-dot.is-current{--dot-color:var(--pp-accent)}
.production-progress__activity-dot.is-attention{--dot-color:var(--pp-warning)}
.production-progress__activity-dot.is-history{--dot-color:var(--pp-border-strong)}
.production-progress__summary[hidden]{display:none}.production-progress__summary{display:flex;flex-wrap:wrap;gap:10px;padding:10px 12px;border-bottom:1px solid var(--pp-border);background:var(--pp-surface)}.production-progress__summary-chip{display:inline-flex;align-items:baseline;gap:6px;padding:4px 10px;border:1px solid var(--pp-border);border-radius:999px;font-size:12px;color:var(--pp-muted)}.production-progress__summary-chip strong{font-size:13px;color:var(--pp-fg);font-variant-numeric:tabular-nums}.production-progress__summary-chip.is-missing{border-color:var(--pp-danger);background:var(--pp-danger-soft);color:var(--pp-danger)}.production-progress__summary-chip.is-missing strong{color:var(--pp-danger)}
.production-progress__missing-badge{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;background:var(--pp-danger-soft);color:var(--pp-danger);font-size:10px;font-weight:650;white-space:nowrap}
.production-progress__bar-track.is-missing{--bar-color:var(--pp-danger);--bar-soft:color-mix(in srgb,var(--pp-danger) 12%,var(--pp-surface));--bar-text:var(--pp-fg)}
.production-progress__legend .is-missing{color:var(--pp-danger)}
.production-progress__order-link{justify-self:start;margin:0 0 4px;padding:2px 8px;border:1px solid var(--bms-primary);border-radius:999px;color:var(--bms-primary);background:var(--bms-primary-soft);font-size:11px;font-weight:700;cursor:pointer}
.production-progress__order-link:hover{color:var(--surface);background:var(--bms-primary)}
/* #81: mã dự án hiện đầy đủ và bấm được; điện thoại chỉ giữ cột mã để nhường chỗ cho dòng thời gian. */
.production-progress__project-code{width:auto;height:26px;flex:0 0 auto;padding:0 8px;border:0;white-space:nowrap;font:700 11px/1 var(--pp-mono);letter-spacing:.01em}
.production-progress__project-code:hover{background:color-mix(in srgb,var(--pp-accent) 16%,var(--pp-surface))}
.production-progress__project-code.is-missing{background:var(--pp-danger-soft);color:var(--pp-danger)}
@media(max-width:700px){.production-progress__timeline-shell{grid-template-columns:108px minmax(0,1fr)}.production-progress__project-row{padding:8px 6px}.production-progress__project-copy{display:none}.production-progress__project-code{width:100%;height:34px;padding:0 4px;font-size:10.5px}.production-progress__column-head{padding-left:8px;padding-right:8px}}
/* Trục thời gian kiểu Gantt: "Tuần" = hàng tháng + cột tuần trên 3 tháng, "Ngày" = từng ngày trong tháng; ô đặt theo % để khớp thanh tiến độ ở mọi độ rộng. */
.production-progress__zoom{display:flex;gap:4px;margin-left:6px}.production-progress__zoom svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.production-progress__zoom .production-progress__icon-btn:disabled{cursor:default;color:var(--pp-accent);border-color:color-mix(in srgb,var(--pp-accent) 45%,var(--pp-border));background:var(--pp-accent-soft)}
.production-progress__timeline-track{min-width:var(--track-width,calc(var(--day-count) * 44px));background:linear-gradient(90deg,transparent calc(100% - 1px),color-mix(in srgb,var(--pp-border) 55%,transparent) calc(100% - 1px)) 0 0/calc(100% / var(--grid-cols,var(--day-count))) 100%}
.production-progress__dates{display:block}.production-progress__date-cell{position:absolute;top:0}
.production-progress__month-cell,.production-progress__week-cell{position:absolute;display:flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;font-variant-numeric:tabular-nums}
.production-progress__month-cell{top:0;height:26px;padding:0 6px;border-left:1px solid var(--pp-border);border-bottom:1px solid color-mix(in srgb,var(--pp-border) 70%,transparent);color:var(--pp-fg);font-size:12px;font-weight:650}.production-progress__month-cell.is-edge{border-left:0}
.production-progress__week-cell{top:26px;height:32px;color:var(--pp-muted);font-size:11px;font-weight:550}
.production-progress__week-cell.today{color:var(--pp-accent);font-weight:700;box-shadow:inset 0 -3px 0 var(--pp-accent)}
.production-progress__timeline-track.is-week .production-progress__today-marker{top:26px}
@media(max-width:700px){.production-progress__period{flex-wrap:wrap;gap:8px}.production-progress__zoom{margin-left:0}}
/* Bộ lọc trạng thái gọn: bỏ khung bao ngoài, mục đang chọn chỉ tô nền nhạt màu nhấn. */
.production-progress__segmented{padding:0;border:0;background:transparent}.production-progress__segment:hover{color:var(--pp-fg);background:color-mix(in srgb,var(--pp-accent) 6%,transparent)}.production-progress__segment[aria-pressed="true"]{color:var(--pp-accent);background:var(--pp-accent-soft);box-shadow:none;font-weight:650}
.production-progress__segment{min-height:44px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center}
/* Điện thoại (#81): khoảng thời gian + nút −/+ trên một dòng, bộ lọc và ô tổng hợp vuốt ngang không xuống dòng, mã dài rút gọn "…", chú thích dưới bảng một dòng. */
.production-progress__period-short,.production-progress__hint-short{display:none}
.production-progress__project-code{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media(max-width:700px){
.production-progress__period{flex-wrap:nowrap;gap:6px}.production-progress__period .production-progress__icon-btn{flex:0 0 40px;width:40px;height:40px}.production-progress__period strong{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px}.production-progress__zoom{flex:0 0 auto;gap:6px}
.production-progress__period-full{display:none}.production-progress__period-short{display:inline}
.production-progress__segmented{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}.production-progress__segmented::-webkit-scrollbar{display:none}.production-progress__segmented{gap:2px}.production-progress__segment{flex:0 0 auto;min-height:40px;padding:0 8px;font-size:13px}
.production-progress__summary{flex-wrap:nowrap;gap:6px;overflow-x:auto;scrollbar-width:none;padding:8px 10px}.production-progress__summary::-webkit-scrollbar{display:none}.production-progress__summary-chip{flex:0 0 auto;white-space:nowrap;padding:4px 8px}
.production-progress__head-extra{display:none}
.production-progress__project-code{display:block;line-height:34px}
.production-progress__footer{gap:6px;padding:8px 10px}.production-progress__legend{flex-wrap:nowrap;gap:10px;white-space:nowrap}.production-progress__legend i{margin-right:4px}
.production-progress__hint{display:none}.production-progress__hint-short{display:inline}
}
@media(max-width:380px){.production-progress__legend{gap:8px;font-size:10.5px}.production-progress__period .production-progress__icon-btn{flex-basis:36px;width:36px;height:36px}.production-progress__period strong{font-size:13px}}
/* Điện thoại: chữ và hàng gọn hơn (mã dạng 26_ABCD_01 vẫn đủ), cột dự án hẹp lại để dải công việc trên trục thời gian hiện được dài hơn. */
@media(max-width:700px){
.production-progress__timeline-shell{grid-template-columns:88px minmax(0,1fr)}
.production-progress__project-row,.production-progress__lane{height:52px}.production-progress__project-row{padding:6px 4px}
.production-progress-dashboard .production-progress__project-code{height:28px;padding:0 3px;font:700 10.5px/28px var(--pp-mono);letter-spacing:0}
.production-progress__column-head{padding-left:6px;padding-right:6px;font-size:10px}
.production-progress__bar-track{top:12px;height:28px;min-width:64px}.production-progress__eye-trigger{top:-8px}.production-progress__bar-percent{right:8px;font-size:9px}
.production-progress__month-cell{font-size:11px}.production-progress__week-cell{font-size:10px}
.production-progress__date-day{font-size:12px}.production-progress__date-weekday{font-size:8px}.production-progress__date-cell{flex-direction:column;align-items:center;gap:2px;padding-top:12px}.production-progress__date-cell.today .production-progress__date-day{width:22px;height:22px;margin-top:0}
}
/* Điện thoại: thanh công cụ tinh gọn (nút và bộ lọc cao 32px, ghi trong DESIGN-DEBT), ẩn hàng ô tổng hợp trùng với bộ lọc và câu hướng dẫn dưới bảng. */
@media(max-width:700px){
.production-progress__toolbar{--bms-control-touch:32px;min-height:0;padding:6px 8px;gap:6px}
.production-progress__period{gap:4px}
.production-progress-dashboard .production-progress__period .production-progress__icon-btn{flex:0 0 32px;width:32px;height:32px;font-size:17px}.production-progress__zoom{gap:4px}.production-progress__zoom svg{width:17px;height:17px}
.production-progress__period strong{font-size:13px}
.production-progress-dashboard .production-progress__segment{height:32px;padding:0 9px;font-size:12px}
.production-progress__summary{display:none}
.production-progress__timeline-shell{--bms-control-touch:30px}.production-progress-dashboard .production-progress__project-code{height:30px;line-height:30px}.production-progress__project-row,.production-progress__lane{height:44px}.production-progress__project-row{padding:4px}.production-progress__bar-track{top:8px}
.production-progress__footer{min-height:0;padding:6px 8px;font-size:10px}.production-progress__hint-short{display:none}
.production-progress__column-head,.production-progress__dates{height:48px}.production-progress__month-cell{height:22px}.production-progress__week-cell{top:22px;height:26px}.production-progress__timeline-track.is-week .production-progress__today-marker{top:22px}
}
/* Điện thoại: khi cuộn ngang trục thời gian, cột mã thu hẹp (ẩn tiền tố năm "26_") để nhường chỗ cho dải công việc. */
@media(max-width:700px){
.production-progress__timeline-shell{transition:grid-template-columns .18s ease}
.production-progress__timeline-shell.is-scrolled{grid-template-columns:68px minmax(0,1fr)}.production-progress-dashboard .is-scrolled .production-progress__project-code{padding:0 2px;font-size:10px}
.production-progress__timeline-shell.is-scrolled .production-progress__code-year{display:none}
.production-progress__week-cell{font-size:9px}.production-progress__month-cell{font-size:10.5px}
}
@media(prefers-reduced-motion:reduce){.production-progress__timeline-shell{transition:none}}
/* Bộ lọc trạng thái: máy tính giữ hàng nút; điện thoại gom vào nút phễu cạnh kính lúp + và mở danh sách thả xuống. */
.production-progress__filter-toggle{display:none!important;position:relative}
.production-progress__filter-toggle.is-filtered::after{content:"";position:absolute;top:5px;right:5px;width:7px;height:7px;border-radius:50%;background:var(--pp-accent)}
@media(max-width:700px){
.production-progress__toolbar{position:relative}
.production-progress__filter-toggle{display:grid!important}
.production-progress__filter-toggle[aria-expanded="true"]{color:var(--pp-accent);border-color:color-mix(in srgb,var(--pp-accent) 45%,var(--pp-border));background:var(--pp-accent-soft)}
.production-progress__segmented{display:none;position:absolute;z-index:20;top:calc(100% - 4px);right:8px;min-width:180px;flex-direction:column;gap:2px;padding:4px;border:1px solid var(--pp-border);border-radius:8px;background:var(--pp-surface);box-shadow:0 8px 24px color-mix(in srgb,var(--pp-fg) 16%,transparent);overflow:visible}
.production-progress__toolbar.filters-open .production-progress__segmented{display:flex}
.production-progress-dashboard .production-progress__segment{justify-content:flex-start;width:100%;height:36px;padding:0 12px;font-size:13px}
}
/* Nút mở rộng (điện thoại): bảng phủ toàn màn hình; nếu máy vẫn dựng đứng thì xoay 90° để xem ngang. */
.production-progress__expand{display:none!important}.production-progress__expand-close{display:none}
.production-progress-dashboard.is-expanded .production-progress__expand-open{display:none}.production-progress-dashboard.is-expanded .production-progress__expand-close{display:block}
@media(max-width:700px){.production-progress__expand{display:grid!important}}
/* Phủ toàn màn hình và xoay: bms-landscape-view.css. */
.production-progress-dashboard.is-expanded{--bms-landscape-bg:var(--pp-bg);padding:8px}
/* Điện thoại: đưa Tiến độ sản xuất lên đầu Dashboard, ngay dưới lời chào và trên các thẻ số liệu. */
@media(max-width:700px){
body .content>.panel.dashboard-panel.active[data-panel="dashboard"]{display:flex;flex-direction:column}
.panel.dashboard-panel[data-panel="dashboard"]>.section-title{order:-2}
.panel.dashboard-panel[data-panel="dashboard"]>.metric-grid{order:-3}
.panel.dashboard-panel[data-panel="dashboard"]>.production-progress-dashboard{order:-1;margin-top:0;margin-bottom:16px}
}
/* Bo góc khung bằng token chung, đồng bộ với các thẻ khác trên Dashboard. */
.production-progress-dashboard .production-progress__panel{border-radius:var(--bms-radius-3)}
/* Tiêu đề khung: "Theo dõi tiến độ dự án", nằm cùng nền với thanh công cụ. */
.production-progress__title-bar{padding:12px 16px 10px;border-bottom:1px solid var(--pp-border);background:var(--pp-subtle);text-align:center}.production-progress__title-bar h3{display:inline-block;margin:0;background:linear-gradient(90deg,var(--pp-accent),var(--pp-cyan));-webkit-background-clip:text;background-clip:text;color:transparent;font-size:18px;font-weight:800;line-height:1.25;letter-spacing:.01em}
@media(max-width:700px){.production-progress__title-bar{padding:8px 10px 7px}.production-progress__title-bar h3{font-size:17px;line-height:22px}}
