.v26-root{max-width:1600px;margin:auto}.v26-panel{padding:18px}.v26-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:15px}.v26-toolbar .text-input{min-width:160px;flex:1}.v26-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.v26-kpis>div{padding:13px;background:var(--panel,#f7faff);border:1px solid #e2e9f1;border-radius:10px;display:flex;flex-direction:column;gap:5px}.v26-kpis b{font-size:22px}.v26-kpis span{font-size:12px;color:#68778e}.v26-po{border:1px solid #e4e9f0;border-radius:11px;margin-bottom:12px;overflow:hidden;background:#fff}.v26-po-head{width:100%;border:0;background:#f3f7fb;padding:14px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:14px;color:#183b5c}.v26-list{padding:12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(390px,1fr));gap:12px}.v26-card{background:#fff;text-align:left;border:1px solid #d9e3ef;border-radius:11px;padding:14px;color:#273447;cursor:pointer;min-width:0}.v26-card:hover{border-color:#4b84c2;box-shadow:0 4px 16px #264a6820}.v26-card-head{display:flex;justify-content:space-between;gap:12px;font-size:13px}.v26-card-head>div:last-child{text-align:right}.v26-muted{font-size:12px;color:#78859b;margin-top:4px}.v26-risk{margin-top:10px}.v26-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.v26-metric{display:flex;flex-direction:column;gap:6px;font-size:12px;min-width:0}.v26-metric>span{color:#566b81}.v26-metric strong{font-size:13px;white-space:normal;overflow-wrap:anywhere}.v26-progress{height:7px;border-radius:10px;background:#e6edf3;overflow:hidden;width:100%}.v26-progress b{display:block;height:100%;background:#247bbd;border-radius:10px}.v26-mask{position:fixed;inset:0;background:#0009;z-index:1005;display:flex;justify-content:flex-end}.v26-mask[hidden]{display:none}.v26-drawer{width:min(860px,96vw);background:white;display:flex;flex-direction:column;max-height:100vh;box-shadow:-12px 0 40px #0003}.v26-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:19px 23px;border-bottom:1px solid #dde6ef;gap:15px}.v26-drawer-head strong{font-size:18px}.v26-body{overflow:auto;padding:20px 24px 35px}.v26-body h3{font-size:15px;margin:23px 0 12px}.v26-stagegrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.v26-stage{padding:12px;border:1px solid #dfe7f1;border-radius:10px;min-width:0}.v26-stage-top{display:flex;flex-direction:column;gap:6px;margin-bottom:8px;font-size:12px}.v26-stage button{margin-top:9px}.v26-available{margin-top:15px;background:#eaf4fc;padding:12px;border-radius:9px}.v26-editor{margin:22px 0 30px;border:2px solid #bbd2e8;padding:18px;border-radius:13px}.v26-editor-heading{display:flex;align-items:center;justify-content:space-between}.v26-editor-heading h3{margin:0 0 15px}.v26-stage-summary{display:flex;justify-content:space-between;gap:10px;margin-bottom:9px}.v26-stage-summary>div{display:flex;flex-direction:column;gap:4px}.v26-stage-summary span{font-size:12px;color:#687b91}.v26-history-list{margin:10px 0 20px;max-height:220px;overflow:auto;border-top:1px solid #e7edf3}.v26-history-list>div,.v26-queued{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e7edf3;padding:10px 0;gap:9px;font-size:13px}.v26-entry{display:grid;grid-template-columns:1fr 1fr;gap:12px}.v26-entry label{font-size:12px;display:flex;flex-direction:column;gap:8px}.v26-entry input{border:1px solid #cdd9e5;padding:10px;border-radius:9px;min-width:0;font-size:14px}.v26-na{font-size:13px;display:block;margin-top:12px}.v26-save{width:100%;display:block;padding:16px;margin-top:13px;font-size:17px;font-weight:800}.v26-save:disabled{opacity:.5}#v26Error{margin-top:10px;color:#b62727}.v26-history-results{overflow:auto}#v26HistResults{margin-top:12px}@media(max-width:860px){.v26-kpis{grid-template-columns:repeat(2,1fr)}.v26-3{grid-template-columns:1fr}.v26-stagegrid{grid-template-columns:repeat(2,1fr)}.v26-list{grid-template-columns:1fr}}@media(max-width:500px){.v26-stagegrid,.v26-entry{grid-template-columns:1fr}.v26-drawer{width:100vw}.v26-body{padding:15px}.v26-toolbar>*{width:100%}}

/* V26.2 — production-stage list follows the V25 production-plan table layout. */
.v26-root{max-width:none}
.v26-table-panel{min-width:0}
.v26-table-panel .v26-toolbar{margin:0 0 13px;align-items:center}
.v26-table-panel .v26-toolbar .text-input{flex:0 1 auto;min-width:135px;max-width:205px}
.v26-table-panel .v26-toolbar #v26Query{min-width:230px;max-width:290px;flex:1 1 230px}
.v26-table-panel .v26-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.v26-table-panel .v26-kpis>div{padding:10px 13px}
.v26-table-panel .v26-kpis b{font-size:19px}
.v26-table{min-width:1300px}
.v26-table th{white-space:nowrap}
.v26-table td{vertical-align:middle}
.v26-table .v26-product-name{min-width:150px;max-width:270px;overflow-wrap:anywhere}
.v26-table .v26-table-row td:nth-child(8),.v26-table .v26-table-row td:nth-child(9),.v26-table .v26-table-row td:nth-child(10){min-width:150px}
.v26-cellmetric{min-width:132px;display:flex;flex-direction:column;gap:7px}
.v26-cellmetric strong{font-size:12px;white-space:nowrap;color:#1f3859}
.v26-cellmetric strong span{font-weight:500;color:#687991}
.v26-cellmetric .v26-progress{height:6px}
.v26-pending{color:#8a6b30;font-size:12px;white-space:nowrap}
.v26-po-row td{padding:0!important;background:#edf3fb;border-bottom:1px solid #cdd9e9}
.v26-po-row button{border:0;width:100%;background:transparent;color:#234569;display:flex;align-items:center;justify-content:space-between;padding:10px 13px;cursor:pointer;text-align:left}
.v26-po-row button:hover{background:#dfeafa}
.v26-po-row span{font-size:12px;color:#6d7f97}
.v26-table-row:hover td{background:#f2f7ff}
@media(max-width:800px){.v26-table-panel .v26-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V26.3 — two independently managed production areas, balanced table layout. */
.v26-table{min-width:1050px;table-layout:auto}
.v26-table .v26-product-name{min-width:160px;max-width:230px}
.v26-table .v26-product-name strong{display:block;font-size:12px}
.v26-table .v26-product-name small{display:block;color:#718099;font-size:11px;margin-top:4px}
.v26-table .v26-table-row td:nth-child(7){min-width:155px;max-width:200px}
.v26-table .v26-table-row td:nth-child(8){min-width:220px;max-width:340px}
.v26-table .v26-table-row td:nth-child(9){min-width:95px}
.v26-table .v26-table-row td:nth-child(8){line-height:2}
.v26-stage-chip{display:inline-block;padding:1px 6px;margin-right:4px;border-radius:5px;background:#f1f4f8;color:#66758a;font-size:10px;border:1px solid #e5ebf2;white-space:nowrap}
.v26-chip-active{color:#1a6595;background:#eaf3fc;border-color:#d5e6f7}
.v26-chip-na{color:#738296;background:#f3f5f7}
.v26-overview{border:1px solid #e2e9f2;background:#f8faff;border-radius:10px;padding:15px;margin:8px 0 18px}
.v26-overview .v26-metric{gap:9px}.v26-overview .v26-metric strong{font-size:18px}
.v26-table-panel .panel-head{margin-bottom:12px}
.v26-table-panel .panel-head .muted{margin-top:6px}
.v26-stagegrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.v26-stage{min-height:116px}
@media(max-width:820px){.v26-stagegrid{grid-template-columns:1fr}.v26-table-panel .v26-toolbar .text-input{flex:1 1 160px}}

/* V26.4 — Quick Update: click a product row; accessible centered/mobile dialog. */
.v26-row-click{cursor:pointer}.v26-row-click:hover td,.v26-row-click:focus-visible td{background:#eaf2ff!important}.v26-row-click:focus-visible{outline:2px solid #315bbb;outline-offset:-2px}
.v26-table .v26-product-name{min-width:155px;max-width:245px}
.v26-table .v26-table-row td:nth-child(8){min-width:190px;max-width:310px}
.v26-table{min-width:970px}
.v26-mobile-list{display:none}
body.v26-dialog-open{overflow:hidden}
.v26-mask{align-items:center;justify-content:center;padding:18px;background:rgba(10,21,37,.62);backdrop-filter:blur(2px)}
.v26-drawer{background:#fff;width:min(680px,calc(100vw - 36px));max-height:min(90dvh,850px);height:auto;border-radius:17px;overflow:hidden;box-shadow:0 24px 70px #0e233d4a;display:flex;flex-direction:column}
.v26-drawer-head{padding:17px 22px;border-bottom:1px solid #e5eaf2;flex-shrink:0}
.v26-dialog-title{min-width:0}.v26-dialog-title strong{font-size:18px;overflow-wrap:anywhere}
.v26-close-btn{border:1px solid #dce4ee;background:#f7f9fc;border-radius:9px;width:38px;height:38px;flex:0 0 auto;font-size:17px;color:#4c617b;cursor:pointer}
.v26-close-btn:hover{background:#eaf1f9}
.v26-body{flex:1;min-height:0;overflow:auto;padding:16px 22px 20px;overscroll-behavior:contain}
.v26-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;font-size:12px;color:#6a7b93}
.v26-topline b{font-size:13px;color:#253e60}
.v26-stage-tabs{display:flex;gap:7px;overflow-x:auto;flex-wrap:nowrap;padding:1px 0 12px;margin-bottom:8px;scrollbar-width:thin}
.v26-stage-tab{background:#f7f9fd;border:1px solid #dae4ef;border-radius:22px;white-space:nowrap;padding:10px 13px;font-size:12px;font-weight:700;color:#4d6581;cursor:pointer;flex-shrink:0}
.v26-stage-tab.active{background:#254c9c;color:#fff;border-color:#254c9c}
.v26-stage-tab:focus-visible{outline:3px solid #9ebae7;outline-offset:2px}
.v26-editor{border:0;padding:0;margin:0}
.v26-editor>.v26-progress{height:9px;margin-bottom:16px}
.v26-stage-summary{padding:14px 15px;background:#f6f9fe;border:1px solid #e0e9f5;border-radius:10px;margin-bottom:9px;align-items:center}
.v26-stage-summary strong{font-size:17px}
.v26-stage-summary>div>strong{font-size:20px;color:#1a3e72}
.v26-entry-title{font-weight:750;font-size:14px;margin:18px 0 12px}
.v26-entry input{height:43px;font-size:16px;background:#fff}
.v26-entry label{font-size:12px;font-weight:650;color:#4c5d75}
.v26-add{width:100%;border-style:dashed;margin-top:12px;background:#f7faff}
.v26-queue{margin-top:10px}.v26-queue-title{font-size:12px;font-weight:750;color:#476185;margin-top:8px}
.v26-history-fold{border-top:1px solid #e7ebf2;margin-top:17px;padding:13px 0 0}
.v26-history-fold summary{font-size:13px;color:#3c5c83;font-weight:750;cursor:pointer;padding:6px 0;list-style-position:inside}
.v26-history-fold summary span{font-weight:500;color:#71839a}
.v26-history-list{max-height:190px;overflow:auto;margin:8px 0 0}
.v26-modal-foot{border-top:1px solid #e2e8f1;padding:12px 22px 16px;flex-shrink:0;background:#fff;box-shadow:0 -7px 24px #132f4b0d}
.v26-save-note{color:#71839a;font-size:11px;text-align:center;margin-bottom:9px}
.v26-modal-foot .v26-save{width:100%;margin:0;min-height:52px;font-size:16px;font-weight:800;letter-spacing:.25px;border-radius:11px}
.v26-modal-foot .v26-save:not(:disabled):hover{background:#1c4196;border-color:#1c4196}
.v26-mobile-card,.v26-mobile-po{appearance:none}
@media(max-width:760px){
 .v26-table-panel{padding:12px!important}
 .v26-table-panel>.table-scroll{display:none}
 .v26-mobile-list{display:block}
 .v26-mobile-group{margin:0 0 13px}
 .v26-mobile-po{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;background:#eef3fb;border:1px solid #dbe5f1;border-radius:9px;padding:11px 12px;margin:8px 0;color:#254c77;text-align:left}
 .v26-mobile-po small{color:#667990;white-space:nowrap}
 .v26-mobile-card{display:flex;flex-direction:column;gap:9px;text-align:left;width:100%;background:#fff;border:1px solid #dfe7f1;border-radius:12px;padding:15px;margin:8px 0;box-shadow:0 2px 6px #1d3a6210;cursor:pointer;color:#253850}
 .v26-mobile-card:active{background:#f5f9ff;border-color:#93b5ea}
 .v26-mcard-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;font-size:14px}
 .v26-mcard-top strong{font-size:15px;overflow-wrap:anywhere}
 .v26-mcard-top>span{white-space:nowrap;font-size:12px;color:#526d8c}
 .v26-mcard-meta{color:#72839a;font-size:12px;line-height:1.55}
 .v26-mcard-progress{font-size:14px;font-weight:750;color:#24528b}
 .v26-mcard-stages{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}
 .v26-mcard-stages span{background:#f0f5fb;padding:5px 7px;border-radius:5px;font-size:11px;color:#4c647c}
 .v26-mcard-cta{text-align:center;padding:9px 8px 0;border-top:1px solid #edf1f7;color:#225db5;font-weight:750;font-size:13px}
 .v26-mcard-cta span{font-size:18px;margin-left:4px}
 .v26-table-panel .v26-toolbar .text-input,.v26-table-panel .v26-toolbar #v26Query{flex:1 1 155px;min-width:0;max-width:none}
 .v26-table-panel .v26-toolbar .btn{flex:1 1 120px}
}
@media(max-width:650px){
 .v26-mask{padding:0;align-items:stretch;backdrop-filter:none}
 .v26-drawer{height:100dvh;max-height:100dvh;width:100vw;border-radius:0;box-shadow:none}
 .v26-drawer-head{padding:12px 16px}
 .v26-body{padding:12px 16px;flex:1}
 .v26-modal-foot{padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px))}
 .v26-stage-tabs{gap:6px;margin-bottom:8px}
 .v26-stage-tab{padding:10px 12px}
 .v26-stage-summary{padding:12px}
 .v26-stage-summary>div>strong{font-size:18px}
 .v26-entry{grid-template-columns:1fr 1fr;gap:9px}
}
@media(max-width:410px){.v26-entry{grid-template-columns:1fr}.v26-modal-foot .v26-save{min-height:50px}}


/* V26.6: restore V26.4 list; retain V26.5 update-popup layout only. */
.v26-stage-summary-fill{
 border-color:color-mix(in srgb, var(--v26fill) 25%, #dce6f1);
 background:linear-gradient(180deg,var(--v26soft),#fff);
 color:var(--v26txt)
}
.v26-stage-summary-fill>strong{font-size:28px;color:var(--v26fill)}
.v26-stage-summary-fill>div>strong{font-size:34px;color:#183c69}
.v26-editor-progress{height:8px;background:#e8eef5;border-radius:999px;overflow:hidden;margin-top:10px}
.v26-editor-progress b{display:block;height:100%;border-radius:999px}
.v26-history-list{margin:8px 0 0;max-height:none;border-top:0}
.v26-history-fold{border-top:0;margin-top:18px;padding-top:0}
.v26-history-fold summary{font-size:14px;color:#31527a}
.v26-history-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #edf2f7;font-size:14px}
.v26-history-row span{color:#53657e}
.v26-history-row b{color:#1b3558}
.v26-entry{margin-top:12px}
.v26-entry input{border-radius:10px;height:48px}
.v26-add{margin-top:12px;border-color:#d8e3ef;border-radius:10px;padding:14px 12px}
.v26-modal-foot .v26-save{background:#8fa1e9;border-color:#8fa1e9}
@media(max-width:520px){.v26-stage-summary-fill>div>strong{font-size:28px}}
/* V26.8 — readable stage progress bars and safe history actions */
.v26-table .v26-table-row td:nth-child(8){min-width:280px;max-width:490px;padding-top:14px;padding-bottom:14px}
.v268-stages{display:grid;grid-template-columns:repeat(2,minmax(130px,1fr));gap:10px;padding:6px 0}
.v268-stagebar{background:#f9fbfe;border:1px solid #e2eaf3;padding:9px 11px;border-radius:9px;min-height:65px;display:flex;flex-direction:column;gap:4px}
.v268-stagebar-head{display:flex;justify-content:space-between;align-items:center;gap:9px;color:#4e647e;font-size:11px}.v268-stagebar-head b{color:var(--v268-color);font-size:12px;white-space:nowrap}
.v268-stagebar-track{height:9px;background:#fce9e2;border-radius:10px;overflow:hidden}.v268-stagebar-track b{display:block;height:100%;background:var(--v268-color);border-radius:10px}
.v268-stagebar small{color:var(--v268-color);font-size:11px;font-weight:750;text-align:right}
.v268-stagebar.is-na{color:#8b98a9;flex-direction:row;min-height:34px;align-items:center;justify-content:space-between;background:#f4f6fa}
.v268-history-right{display:flex;gap:9px;align-items:center;margin-left:auto}.v268-history-right>b{font-size:12px;min-width:55px;text-align:right}
.v268-event-edit,.v268-event-delete{font-size:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dce6f0;background:#fff;border-radius:8px;cursor:pointer;width:31px;height:31px}
.v268-event-edit{color:#16794e}.v268-event-delete{color:#d75448}.v268-event-edit:hover{background:#e3f6eb}.v268-event-delete:hover{background:#ffebe8}
@media(max-width:1100px){.v268-stages{grid-template-columns:1fr}}

.v268-inline-edit{display:flex;flex-wrap:wrap;align-items:end;gap:9px;border:1px solid #cbdcf1;background:#f6faff;padding:11px;border-radius:10px;margin:4px 0 9px}
.v268-inline-edit label{display:flex;flex-direction:column;gap:4px;flex:1 1 130px;font-size:11px;font-weight:700;color:#53647f}
.v268-inline-edit input{height:39px;width:100%;min-width:0;border-radius:8px;border:1px solid #c9d7e9;background:#fff;font-size:15px;padding:6px 8px}
.v268-inline-edit .btn{height:39px;white-space:nowrap}
@media(max-width:480px){.v268-inline-edit label{flex-basis:calc(50% - 8px)}.v268-inline-edit .btn{flex:1 1 auto}}

/* V26.9 Compact one-line bar per manufacturing stage. */
.v268-stages{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;gap:3px!important;padding:2px 0!important;min-width:280px!important}
.v268-stagebar,.v268-stagebar.is-na{display:grid!important;grid-template-columns:minmax(65px,95px) minmax(80px,1fr) 50px 90px!important;align-items:center!important;gap:7px!important;min-height:24px!important;padding:3px 7px!important;border:0!important;background:transparent!important;border-radius:5px!important;box-sizing:border-box!important}
.v268-stagebar:hover{background:#f0f6fe!important}.v268-stagebar-track{height:7px!important;background:#f1e5e3}.v269-stage-name{font-size:11px;color:#405979;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v269-stage-data{font-size:11px;color:#344b68;text-align:right;white-space:nowrap}.v269-stage-pct{font-weight:800;font-size:11px;color:var(--v268-color);text-align:right}.v268-stagebar.is-na .v269-stage-data{grid-column:4}
.v269-journal-title{display:flex;flex-direction:column;gap:4px;margin:5px 0 13px}.v269-journal-title strong{font-size:17px}.v269-journal-title span{font-size:12px;color:#6e829d}.v269-journal-table{min-width:800px}.v269-journal-table th,.v269-journal-table td{white-space:nowrap}.v269-journal-actions{display:flex;gap:5px;align-items:center}.v269-journal-editor{display:flex;flex-wrap:wrap;gap:6px;align-items:end;padding:7px}.v269-journal-editor label{display:flex;flex-direction:column;gap:3px;font-size:12px}.v269-journal-editor input{padding:5px;border:1px solid #bfcde0;border-radius:6px;max-width:145px}
@media(max-width:700px){.v268-stages{min-width:0!important}.v268-stagebar{grid-template-columns:minmax(60px,88px) minmax(48px,1fr) 42px 74px!important;gap:5px!important}.v269-stage-data{font-size:10px}}

/* V26.10 — persistable collapse-all PO control */
.v26-collapse-toggle[aria-pressed="true"]{background:#eaf2ff;border-color:#aac5f1;color:#1d4f92;font-weight:750}
.v26-collapse-toggle:focus-visible{outline:2px solid #468ce1;outline-offset:2px}

/* V26.11 — compact process rows, stronger PO sections, visible errors */
.v26-table thead th,.v269-journal-table thead th{background:#215c98!important;color:#fff!important;border-color:#3c77ac!important}
.v26-table thead th .xl-filter-header{color:white!important}
.v26-po-row td{background:#deebf9!important;border-top:2px solid #8bb3d9!important;border-bottom:1px solid #accae7!important}
.v26-po-row td:first-child{border-left:5px solid #215c98!important}
.v26-po-row button{background:linear-gradient(90deg,#d8e8f7,#edf5fc)!important;color:#174c7b!important;font-size:13px;font-weight:800;min-height:40px;letter-spacing:.06px;padding:10px 14px!important}
.v26-po-row button:hover{background:linear-gradient(90deg,#c7def4,#e3effb)!important}
.v26-po-row button span{color:#4b718f;font-weight:500}
.v268-stages{gap:1px!important;padding:0!important}
.v268-stagebar,.v268-stagebar.is-na{min-height:21px!important;padding:1px 6px!important;gap:6px!important}
.v268-stagebar-track{height:6px!important}
.v2611-dialog-error{background:#fff1ee;border:1px solid #e5a69b;color:#9d3026;border-radius:9px;padding:10px 12px;font-size:13px;font-weight:700;margin-bottom:8px;white-space:pre-wrap;line-height:1.45;max-height:135px;overflow:auto;box-shadow:0 1px 3px #3f10100d}
.v2611-dialog-error[hidden]{display:none!important}
.v26-modal-foot #v26SaveNote{margin-bottom:7px}
.v26-modal-foot .v26-save{min-height:52px}
.toast{z-index:2200!important;filter:none!important;opacity:1!important}
.v26-table-panel .hub-pager{justify-content:center}
@media(max-width:720px){.v26-po-row button{font-size:12px}.v268-stagebar{min-height:21px!important}}

/* V26.12 — server-side queued updates: clear amber receipt even if the Excel file is locked. */
.v2612-pending-notice{padding:11px 13px;margin-bottom:10px;border:1px solid #e6c185;background:#fff3d9;color:#81520b;border-radius:9px;line-height:1.5;font-size:12px;font-weight:650;max-height:110px;overflow:auto;}
.v2612-pending-notice[hidden]{display:none!important}

/* V26.13 — Save action is visibly ready when a valid unsaved entry exists. */
.v26-modal-foot .v26-save:not(:disabled){background:#215cbd!important;border-color:#215cbd!important;color:#fff!important;opacity:1!important;box-shadow:0 5px 15px rgba(33,92,189,.23);transition:background .15s ease,box-shadow .15s ease}
.v26-modal-foot .v26-save:not(:disabled):hover,.v26-modal-foot .v26-save:not(:disabled):focus-visible{background:#163c91!important;border-color:#163c91!important;box-shadow:0 7px 18px rgba(22,60,145,.3)}
.v26-modal-foot .v26-save:disabled{background:#9aa9e6!important;border-color:#9aa9e6!important;color:#fff!important;opacity:1!important;box-shadow:none!important;cursor:not-allowed}

/* V26.15: production rows are selectable text. Drag selection never opens editor. */
.v26-table .v26-table-row, .v26-table .v26-table-row td, .v26-table .v26-table-row td *,
.v26-mobile-card, .v26-mobile-card *{user-select:text!important;-webkit-user-select:text!important}
.v26-mobile-card[role="button"]{touch-action:pan-y;cursor:pointer}

/* V26.15: neutral receipt while quick background write completes. */
.v2615-received-notice{padding:9px 12px;margin-bottom:8px;border:1px solid #b9d5f5;background:#f1f7ff;color:#215c98;border-radius:8px;font-size:12px;font-weight:650;text-align:center}
.v2615-received-notice[hidden]{display:none!important}

/* V26.17 — accessible in-page history confirmation, not browser-native dialog. */
.v2617-confirm-mask{position:fixed;inset:0;background:rgba(14,25,44,.55);z-index:2800;display:flex;align-items:center;justify-content:center;padding:16px}
.v2617-confirm-panel{background:#fff;color:#1c304e;border:1px solid #d7e3f1;border-radius:14px;width:min(440px,100%);padding:23px 23px 18px;box-shadow:0 18px 48px rgba(0,0,0,.25)}
.v2617-confirm-panel>strong{display:block;font-size:17px;color:#215c98;margin-bottom:9px}
.v2617-confirm-panel>p{font-size:14px;line-height:1.55;color:#45566e;white-space:pre-line;margin:0 0 21px}
.v2617-confirm-buttons{display:flex;justify-content:flex-end;gap:9px}
.v2617-confirm-buttons .btn{min-width:90px}
.v2617-confirm-buttons .btn.danger{background:#b82d34;color:#fff;border-color:#b82d34}

.stage-alert{display:block;white-space:normal;font-weight:600;color:#843d16}.v268-stagebar:has(.stage-alert){height:auto;min-height:2.5em}.v269-stage-name:has(.stage-alert){white-space:normal}
.v26-table .v26-table-row td.ph28-stage-cell,.v26-table .v26-table-row td.ph28-status-cell{vertical-align:middle;padding-top:4px!important;padding-bottom:4px!important}
.ph28-status-list{display:flex;flex-direction:column;gap:1px}
.ph28-status-list>span,.ph28-stage-cell .v268-stagebar{height:22px!important;min-height:22px!important;box-sizing:border-box}
.ph28-status-list>span{display:block;line-height:22px;font-size:11px;white-space:nowrap}

/* V26.29: five synchronized rows of stage progress and named status. */
.v26-table .ph29-status-list{display:flex;flex-direction:column;gap:2px;min-width:0;width:100%}
.v26-table .ph29-status-item{min-height:22px;display:flex;align-items:center;gap:8px;white-space:normal;font-size:11.5px;line-height:1.35;box-sizing:border-box}
.ph29-status-dot{width:8px;height:8px;min-width:8px;border-radius:50%;background:currentColor;flex:0 0 8px}
.ph29-status-item>span:last-child{overflow:visible;text-overflow:clip;white-space:normal;word-break:break-word}
.ph29-status-item.is-complete,.v26-mcard-stages .is-complete{color:#16834b}
.ph29-status-item.is-neutral,.v26-mcard-stages .is-neutral{color:#66788c}
.ph29-status-item.is-warning,.v26-mcard-stages .is-warning{color:#bd7510}
.ph29-status-item.is-urgent,.v26-mcard-stages .is-urgent{color:#e26723}
.ph29-status-item.is-late,.v26-mcard-stages .is-late{color:#c32934}

/* V26.34: keep Đóng gói visible as sixth Khung editor tab, including phones. */
.v26-stage-tabs-khung{flex-wrap:wrap;overflow-x:visible}


/* V26.35: display sixth PACKING bar and matching status row without clipping.
   Only changes visual row heights; Khung completion math retains five stages. */
.v26-table .v26-table-row td.ph28-stage-cell,
.v26-table .v26-table-row td.ph28-status-cell{height:auto!important;max-height:none!important;overflow:visible!important}
.v26-table .v268-stages,
.v26-table .ph29-status-list{height:auto!important;max-height:none!important;overflow:visible!important;align-content:start}
.v26-table .v26-table-row{height:auto!important;min-height:152px}
.v26-table .v268-stagebar:last-child,.v26-table .ph29-status-item:last-child{border-radius:3px}

/* V26.36: Khung, Nệm, Đóng gói are independent menu pages.
   Production rows grow only with applicable (non-N/A) stages. */
.v26-table .v26-table-row{min-height:0!important}
.v26-table .v26-table-row td{height:auto!important}
.v26-table .v268-stages:not(:has(.v268-stagebar)),
.v26-table .ph29-status-list:empty{min-height:20px}
.v26-stage-tab:focus-visible{outline:2px solid #215c98;outline-offset:2px}

/* V26.40 – one compact image column in all three stage work areas. */
.v26-table{min-width:1100px!important;width:100%;table-layout:fixed!important}
.v26-table .v26-product-name{min-width:0!important;max-width:none!important;overflow-wrap:anywhere}
.v26-table .v26-table-row td:nth-child(7),
.v26-table .v26-table-row td:nth-child(8),
.v26-table .v26-table-row td:nth-child(9),
.v26-table .v26-table-row td:nth-child(10){min-width:0!important;max-width:none!important}
.v26-table .v26-table-row td{padding:5px 6px!important;font-size:11px;overflow-wrap:anywhere}
.v26-table .v26-table-row td.v2640-photo-cell{text-align:center;padding:3px!important}
.v2640-photo{display:block;margin:auto;width:62px;max-width:100%;height:46px;object-fit:contain;border:1px solid #dce6f1;border-radius:6px;background:#fff;pointer-events:none}
.v2640-no-photo{color:#a1afc2;font-size:12px;display:inline-block;text-align:center;min-width:12px}
.v26-table .v268-stagebar,.v26-table .v268-stagebar.is-na{grid-template-columns:minmax(50px,55px) minmax(35px,1fr) 33px 55px!important;gap:3px!important;padding:1px 3px!important}
.v26-table .ph29-status-list{min-width:0!important}
.v26-table .ph29-status-item{min-width:0;font-size:10px}
.v26-table .ph29-status-item b{min-width:38px;max-width:66px;overflow:hidden;text-overflow:ellipsis}
.v2640-mcard-title{display:flex;align-items:center;gap:9px;min-width:0}
.v2640-mcard-title .v2640-photo{width:55px;height:43px;flex:0 0 55px}
.v2640-mcard-title strong{min-width:0}

/* Keep stage bars inside their own column; legacy V26.9 min-width:280px caused overlap with Trạng thái. */
.v26-table .v268-stages{min-width:0!important;width:100%;max-width:100%;overflow:hidden}
.v26-table .v268-stagebar{min-width:0!important;max-width:100%}
.v26-table .ph29-status-list{min-width:0!important;max-width:100%;overflow:hidden}
.v26-table thead th{overflow:hidden}
.v26-table .xl-filter-header{min-width:0;gap:2px}

/* V26.41 – photo thumbnail opens authorized full image without activating the row. */
.v2641-photo-button{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:2px;border:1px solid #dce6f1;border-radius:7px;background:#fff;cursor:zoom-in}
.v2641-photo-button:hover,.v2641-photo-button:focus-visible{outline:2px solid #215c98;outline-offset:1px}
.v2641-photo-button .v2640-photo{pointer-events:none;border:0}


/* V26.43 – packing progress column must never overflow into the next column. */
.v26-table td .v26-cellmetric{min-width:0!important;width:100%;max-width:100%;overflow:hidden}
.v26-table td .v26-cellmetric strong{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.25}
.v26-table td .v26-cellmetric .v26-progress{width:100%;max-width:100%}
.v26-table-pack td:nth-child(8){padding-right:4px!important}
.v26-table-pack td:nth-child(8) .v26-cellmetric{gap:4px}
.v26-table-pack td:nth-child(8) .v26-cellmetric strong{font-size:11px}
.v26-table-pack td:nth-child(8) .v26-cellmetric strong span{display:inline}
.v26-table-pack td:nth-child(8) .v26-progress{height:5px}


/* V26.73 — taller status rows, centered bullets/text, and wider stage pills after font-size increase. */
.v26-stage-tabs{gap:8px!important;flex-wrap:wrap!important;overflow-x:visible!important}
.v26-stage-tab{padding:10px 14px!important;min-height:40px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1.25!important;white-space:nowrap!important}
.v26-table thead th{text-align:center!important;vertical-align:middle!important}
.v26-table .v26-table-row td{font-size:12px!important;line-height:1.4!important;vertical-align:middle!important;padding-top:8px!important;padding-bottom:8px!important}
.v26-table .v26-table-row td:nth-child(1),.v26-table .v26-table-row td:nth-child(2),.v26-table .v26-table-row td:nth-child(3),.v26-table .v26-table-row td:nth-child(4),.v26-table .v26-table-row td:nth-child(5),.v26-table .v26-table-row td:nth-child(6),.v26-table .v26-table-row td:nth-child(7),.v26-table .v26-table-row td:nth-child(8),.v26-table .v26-table-row td:nth-child(9),.v26-table .v26-table-row td:nth-child(10){text-align:center!important}
.v26-table .v26-product-name strong{font-size:12.5px!important;line-height:1.35!important}
.v26-table .v26-product-name small{font-size:11px!important;line-height:1.35!important;display:block;margin-top:4px!important}
.v26-table .ph29-status-list{gap:3px!important}
.v26-table .ph29-status-item{min-height:24px!important;height:auto!important;display:grid!important;grid-template-columns:10px minmax(42px,max-content) minmax(0,1fr)!important;column-gap:7px!important;align-items:center!important;font-size:11px!important;line-height:1.3!important;white-space:nowrap!important}
.ph29-status-dot{width:8px!important;height:8px!important;min-width:8px!important;align-self:center!important;justify-self:center!important}
.ph29-status-item b{font-size:11px!important;min-width:42px!important;max-width:none!important;overflow:visible!important;text-overflow:clip!important;line-height:1.3!important;align-self:center!important}
.ph29-status-item>span:last-child{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.3!important;align-self:center!important}

/* V26.78 — persistent hide-completed display preference. */
.v26-hide-completed-toggle.v26-hide-completed-on{background:#eaf4ff!important;border-color:#7fb3ee!important;color:#175d9c!important;font-weight:750!important}
