/* 4.1 local refactor — dense information architecture first. */
:root{--sidebar-width:172px}
body{font-size:12px;line-height:1.35}
.main-content{padding:8px 10px!important}
.sidebar-header{padding:10px 11px 7px}.sidebar-nav a{padding:7px 11px;font-size:12px}
.page-heading.compact-heading{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 6px!important;min-height:26px}
.compact-heading h2{font-size:19px!important}.compact-heading p{font-size:10px}.compact-heading>b{font-size:11px;color:#315889}
.card{padding:8px 10px!important;margin-bottom:7px!important;border-radius:6px}
.dense-section-title{display:flex;align-items:baseline;gap:10px;margin-bottom:6px}.dense-section-title h3{margin:0;font-size:14px}.dense-section-title span{color:#7b8795;font-size:9px}
.performance-columns{display:grid;grid-template-columns:1fr 1fr;gap:8px}.performance-panel{border:1px solid #d4dde8;border-radius:5px;overflow:hidden}
.performance-panel>header{display:flex;justify-content:space-between;padding:6px 8px;background:#eef3f8}.performance-panel>header strong{font-size:13px}.performance-panel>header em{color:#235b85;font-size:11px;font-style:normal;font-weight:700}
.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:3px 8px 5px}.metric-grid dl{display:flex;justify-content:space-between;gap:8px;margin:0;padding:3px 4px;border-bottom:1px solid #eef1f5}.metric-grid dt{color:#536477}.metric-grid dd{margin:0;color:#183c66;font-weight:750}.metric-grid .danger dd{color:#bd3b36}.metric-grid .separator{border-top:2px solid #aebdcd}
.remaining-tables{display:grid;grid-template-columns:minmax(320px,.72fr) minmax(560px,1.28fr);gap:9px}.remaining-tables>div>b{display:block;margin-bottom:4px;color:#203d61}
.remaining-tables table{width:100%;table-layout:fixed;border-collapse:collapse}.remaining-tables th,.remaining-tables td{padding:3px 5px!important;text-align:right;border:1px solid #d8e0e9;font-size:10px}.remaining-tables th:first-child,.remaining-tables td:first-child{text-align:left}.remaining-tables thead th{position:sticky;top:0;background:#eef3f8}.remaining-tables tr.off{color:#a1a9b2;background:#f5f6f7}
.shared-case-table-wrap{overflow-x:hidden!important}.shared-case-table{min-width:0!important;table-layout:fixed!important}.shared-case-table th,.shared-case-table td{padding:4px 5px!important;font-size:10px!important}
.table-wrap{overflow-x:hidden!important}.btn{min-height:27px;padding:4px 8px;font-size:11px}.btn-sm{min-height:24px;padding:3px 6px;font-size:10px}.form-input,.form-select{min-height:29px;padding:4px 7px;font-size:11px}
@media(max-width:1100px){.performance-columns,.remaining-tables{grid-template-columns:1fr}.remaining-tables{overflow-x:auto}}

/* Registration queue and formal list. */
.upload-compact-row{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:nowrap}.upload-compact-row>.segment-pair,.upload-compact-row>.test-title-toggle,.upload-compact-row>.upload-start-button{flex:0 0 auto}.test-title-toggle{display:flex;align-items:center;gap:4px;white-space:nowrap}.segment-pair{display:flex;border:1px solid #b9c7d7;border-radius:5px;overflow:hidden}.segment-pair button{min-width:90px;padding:6px 9px;border:0;background:#fff}.segment-pair button.active{background:#315889;color:#fff}.drop-inline{position:relative;display:flex;align-items:center;justify-content:center;min-width:240px;min-height:31px;flex:1 1 360px;padding:0 182px;border:1px dashed #b8c6d6;border-radius:5px;background:#fafbfd}.drop-inline-prompt{display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.drop-inline>.test-reset-button{position:absolute;left:6px;top:50%;max-width:170px;transform:translateY(-50%);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drop-inline.dragging{border-color:#315889;background:#eef5fc}.drop-inline span{color:#8a96a4;font-size:9px}.upload-file-strip{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.upload-file-strip>span{display:flex;gap:4px;padding:2px 6px;border:1px solid #d8e0e8;border-radius:3px;font-size:9px}.upload-file-strip b{color:#637389}.upload-file-strip .done b,.success-text{color:#218050}.upload-file-strip .error b{color:#bb3e37}.upload-file-strip i{cursor:pointer}@media(max-width:1100px){.upload-compact-row{flex-wrap:wrap}.drop-inline{order:4;flex-basis:calc(100% - 150px);padding-right:8px}.upload-start-button{order:5}}
.dense-section-title>b{margin-left:auto;color:#315889}.confirmation-scroll,.formal-scroll{max-height:218px;overflow-y:auto;border:1px solid #d5dee8;border-radius:5px}.confirmation-table,.formal-table{width:100%;table-layout:fixed;border-collapse:collapse}.confirmation-table th,.formal-table th{position:sticky;top:0;z-index:2;background:#edf3f8}.confirmation-table th,.confirmation-table td,.formal-table th,.formal-table td{padding:3px 4px!important;border-bottom:1px solid #e1e7ee;font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.confirmation-table input,.confirmation-table select{box-sizing:border-box;width:100%;min-width:0;height:26px;padding:2px 4px;border:1px solid #bcd1e3;border-radius:3px;font-size:9.5px}.confirmation-table .recognized{background:#eef7ff}.confirmation-table .needs-confirmation{border-color:#e7ad66;background:#fff1df}.confirmation-table th:nth-child(1){width:8%}.confirmation-table th:nth-child(2){width:12%}.confirmation-table th:nth-child(3){width:13%}.confirmation-table th:nth-child(4){width:9%}.confirmation-table th:nth-child(5){width:10%}.confirmation-table th:nth-child(6){width:7%}.confirmation-table th:nth-child(7),.confirmation-table th:nth-child(8){width:12%}.confirmation-table th:nth-child(9){width:14%}.inline-query{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px}.inline-query button,.mini-toggle button{padding:2px 4px;border:1px solid #b7c5d4;background:#fff;font-size:9px}.mini-toggle{display:flex}.mini-toggle button{flex:1}.mini-toggle button.active{background:#315889;color:#fff}.row-actions{overflow:visible!important}.row-actions .btn+.btn{margin-left:2px}.formal-toolbar{display:flex;align-items:center;gap:5px}.formal-toolbar .dense-section-title{flex:1;margin:0}.formal-toolbar .form-input{width:220px}.formal-table th:nth-child(1){width:11%}.formal-table th:nth-child(2){width:18%}.formal-table th:nth-child(3){width:10%}.formal-table th:nth-child(4){width:12%}.formal-table th:nth-child(5){width:8%}.formal-table th:nth-child(6){width:7%}.formal-table th:nth-child(7){width:12%}.formal-table th:nth-child(8){width:6%}.formal-table th:nth-child(9){width:8%}.formal-table th:nth-child(10){width:12%}.empty-line{padding:14px;text-align:center;color:#8491a0}.history-modal{width:min(1100px,94vw)}.history-modal table{width:100%;table-layout:fixed}
.heading-actions{display:flex;align-items:center;gap:5px}.reception-log-modal{width:min(1500px,96vw);height:min(760px,90vh);max-height:90vh;display:flex;flex-direction:column}.reception-log-modal .modal-header>div{display:flex;align-items:center;gap:7px}.reception-log-modal .modal-header small{font-size:10px;color:#657487}.reception-status-note{margin:5px 0;padding:6px 8px;border:1px solid #e2b66f;background:#fff7e8;color:#8a5a13}.reception-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:7px 0}.reception-metrics>div{display:flex;flex-direction:column;min-width:0;padding:6px 8px;border:1px solid #d7e0e9;border-radius:5px;background:#f7fafc}.reception-metrics small{font-size:9px;color:#738091}.reception-metrics b{margin-top:2px;font-size:14px;color:#244a78;white-space:nowrap}.reception-metrics b.warn{color:#9a6713}.reception-metrics b.danger{color:#b33d3d}.reception-log-layout{display:grid;grid-template-columns:minmax(430px,.75fr) minmax(650px,1.35fr);gap:8px;min-height:0;flex:1}.reception-runs,.reception-details{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid #d6dfe8;border-radius:6px;background:#fff}.reception-pane-title{min-height:37px;padding:6px 8px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #d6dfe8;background:#f6f9fc}.reception-pane-title>div{display:flex;align-items:center;gap:7px}.reception-pane-title small{color:#718094;font-size:9px}.reception-log-scroll,.reception-detail-scroll{min-height:0;overflow:auto;flex:1}.reception-log-scroll table,.reception-detail-scroll table{width:100%;table-layout:fixed;border-collapse:collapse}.reception-log-scroll th,.reception-log-scroll td,.reception-detail-scroll th,.reception-detail-scroll td{padding:5px 6px;border-bottom:1px solid #e1e7ed;font-size:10px;vertical-align:top}.reception-log-scroll th,.reception-detail-scroll th{position:sticky;top:0;z-index:2;background:#edf3f8;white-space:nowrap}.reception-log-scroll td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;cursor:pointer}.reception-log-scroll td:first-child,.reception-log-scroll td:nth-child(2){text-align:left}.reception-log-scroll tr.selected td{background:#e8f1fb}.reception-log-scroll tbody tr:hover td{background:#f1f6fb}.reception-detail-scroll th:nth-child(1){width:14%}.reception-detail-scroll th:nth-child(2){width:20%}.reception-detail-scroll th:nth-child(3){width:28%}.reception-detail-scroll th:nth-child(4){width:19%}.reception-detail-scroll th:nth-child(5){width:19%}.reception-detail-scroll td{overflow-wrap:anywhere;line-height:1.35}.reception-detail-scroll td:first-child b,.reception-detail-scroll td:first-child small{display:block}.reception-detail-scroll td:first-child small{margin-top:2px;color:#61758b}.detail-attention td{background:#fff2f0}.detail-skip td{background:#faf8f2}.detail-filters{display:flex;gap:3px}.detail-filters button{border:1px solid #cad5e1;border-radius:12px;background:#fff;padding:3px 7px;font-size:9px;cursor:pointer}.detail-filters button.active{background:#315889;border-color:#315889;color:#fff}.reception-error,.legacy-note{padding:6px 8px;font-size:10px;border-top:1px solid #e3e8ee}.reception-error{color:#ad342f;background:#fff1ef}.legacy-note{color:#7a6644;background:#fff9eb}.run-status{display:inline-block;padding:2px 7px;border-radius:10px;background:#e7f3ea;color:#287744}.run-status.failed{background:#fde9e7;color:#b33d3d}@media(max-width:1100px){.reception-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.reception-log-layout{grid-template-columns:1fr}.reception-runs{max-height:220px}}
.schedule-v41{display:flex;flex-direction:column;gap:8px}.schedule-workbench{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(250px,.75fr);gap:8px}.schedule-workbench>section,.schedule-active-section,.schedule-visual-section,.personnel-v41>section{min-width:0;border:1px solid #d7e0e8;border-radius:6px;background:#fff;padding:7px 9px}.schedule-queue-scroll,.schedule-active-scroll,.personnel-table-scroll{max-height:214px;overflow-y:auto;border:1px solid #d8e1ea;border-radius:4px}.schedule-queue-table,.schedule-active-table,.personnel-table{width:100%;table-layout:fixed;border-collapse:collapse}.schedule-queue-table th,.schedule-queue-table td,.schedule-active-table th,.schedule-active-table td,.personnel-table th,.personnel-table td{padding:3px 4px!important;border-bottom:1px solid #e2e7ed;font-size:9.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.schedule-queue-table th,.schedule-active-table th,.personnel-table th{position:sticky;top:0;z-index:3;background:#edf3f8}.schedule-queue-table tr.selected td,.schedule-active-table tr.selected td,.personnel-table tr.selected td{background:#e8f1fb}.schedule-adjust-panel{display:flex;flex-direction:column;gap:5px}.schedule-adjust-panel .adjust-row{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:5px}.schedule-adjust-panel input,.schedule-adjust-panel select,.schedule-active-table input,.schedule-active-table select,.personnel-table select{width:100%;min-width:0;box-sizing:border-box;height:25px;padding:2px 4px;font-size:9.5px}.schedule-active-table .day-input{font-variant-numeric:tabular-nums;text-align:center}.schedule-active-table .staff-cell{white-space:normal;line-height:1.15}.schedule-active-table .save-cell,.personnel-table .action-cell{overflow:visible}.schedule-visual-section .all-schedule-calendar{margin-top:4px}.schedule-visual-section .calendar-toolbar{padding:2px 0}.personnel-v41{display:flex;flex-direction:column;gap:8px}.personnel-filterbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.personnel-filterbar .filter-count{margin-left:auto;font-weight:700;color:#315889}.personnel-state-unassigned{color:#b04a3d}.personnel-state-preassigned{color:#b47a16}.personnel-state-confirmed{color:#237453}.compact-modal{width:min(920px,94vw)}
.personal-hub-tabs{display:flex;gap:4px;margin-bottom:6px}.personal-hub-tabs .btn{min-width:110px}.personal-hub-tabs .btn.active{background:#315889;color:#fff;border-color:#315889}
@media(max-width:1050px){.schedule-workbench{grid-template-columns:minmax(0,1fr) 240px}.schedule-queue-table th,.schedule-queue-table td,.schedule-active-table th,.schedule-active-table td,.personnel-table th,.personnel-table td{font-size:9px;padding:3px!important}}
.confirmation-table .check-cell{text-align:center}.confirmation-table .check-cell input{width:auto;height:auto;vertical-align:middle}.confirmation-table th:nth-child(1){width:7%!important}.confirmation-table th:nth-child(2){width:11%!important}.confirmation-table th:nth-child(3){width:12%!important}.confirmation-table th:nth-child(4){width:8%!important}.confirmation-table th:nth-child(5){width:9%!important}.confirmation-table th:nth-child(6){width:7%!important}.confirmation-table th:nth-child(7){width:5%!important}.confirmation-table th:nth-child(8),.confirmation-table th:nth-child(9){width:12%!important}.confirmation-table th:nth-child(10){width:17%!important}
.schedule-workbench-v41{display:flex;flex-direction:column;gap:7px;min-width:0}.schedule-top-grid{display:grid!important;grid-template-columns:minmax(0,3fr) minmax(250px,1fr);gap:7px}.schedule-top-grid>.card,.schedule-sheet-card{min-width:0;padding:6px 8px!important}.queue-filter{display:flex;align-items:center;gap:2px;flex-wrap:wrap}.queue-filter input{height:25px;min-width:190px;flex:1}.queue-filter button{height:24px;padding:2px 5px}.queue-scroll{max-height:112px;overflow-y:auto;border-top:1px solid #dbe3eb;margin-top:3px}.queue-scroll>button{display:grid;width:100%;grid-template-columns:minmax(0,1fr) 38px 38px 34px;align-items:center;gap:3px;padding:3px 4px;border:0;border-bottom:1px solid #e3e8ee;background:#fff;text-align:left}.queue-scroll>button.selected{background:#e8f1fb}.queue-scroll>button span{display:flex;gap:5px;min-width:0}.queue-scroll>button span>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.adjustment-vertical{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:3px 6px}.adjustment-vertical>.dense-section-title,.adjustment-vertical>.adjustment-list{grid-column:1/-1}.adjustment-vertical label{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:3px;font-size:9px}.adjustment-vertical input,.adjustment-vertical select{min-width:0;width:100%;height:24px;box-sizing:border-box}.adjustment-vertical>.btn{height:25px;padding:2px 6px}.schedule-sheet-toolbar{display:flex;align-items:center;gap:3px}.schedule-sheet-toolbar .dense-section-title{flex:1;margin:0}.schedule-sheet-scroll{max-height:310px;overflow-y:auto!important;overflow-x:hidden!important;border:1px solid #d8e1ea;border-radius:4px}.schedule-sheet{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse}.schedule-sheet th,.schedule-sheet td{box-sizing:border-box;padding:3px 2px!important;font-size:8.8px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid #e1e7ed}.schedule-sheet th{position:sticky;top:0;z-index:4;background:#edf3f8}.schedule-sheet input,.schedule-sheet select,.schedule-sheet button.staff-cell{box-sizing:border-box;width:100%;min-width:0;height:24px;padding:1px 2px;font-size:8.8px;overflow:hidden;text-overflow:ellipsis}.schedule-sheet th:nth-child(1){width:8%}.schedule-sheet th:nth-child(2){width:10%}.schedule-sheet th:nth-child(3){width:6%}.schedule-sheet th:nth-child(4){width:5%}.schedule-sheet th:nth-child(5),.schedule-sheet th:nth-child(6){width:6%}.schedule-sheet th:nth-child(7){width:5%}.schedule-sheet th:nth-child(8){width:4%}.schedule-sheet th:nth-child(n+9):nth-child(-n+15){width:4.55%}.schedule-sheet th:nth-child(16),.schedule-sheet th:nth-child(17){width:6%}.schedule-sheet th:nth-child(18){width:4%}.schedule-sheet td:nth-child(2) b{display:block;overflow:hidden;text-overflow:ellipsis}.schedule-sheet .btn{padding:2px!important;font-size:8.5px}.schedule-workbench-v41+.modal-mask{font-size:11px}
@media(max-width:1100px){.schedule-top-grid{grid-template-columns:minmax(0,2.7fr) minmax(220px,1fr)}.schedule-sheet th,.schedule-sheet td,.schedule-sheet input,.schedule-sheet select,.schedule-sheet button.staff-cell{font-size:8.2px}}
.daily-seq{font-weight:700;white-space:nowrap}.seq-input{width:54px;text-align:center;font-weight:700}.date-group-row td{background:#edf3f9!important;color:#173b68;font-weight:800;padding:5px 8px!important}.direct-datetime{min-width:144px}.group-toggle{float:right;font-size:11px;color:#5d6c7f}.reception-route-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px}.reception-route-cards button{display:flex;align-items:center;justify-content:space-between;border:1px solid #cbd8e8;background:#fff;border-radius:6px;padding:11px;color:#173b68;text-align:left}.reception-route-cards button:hover{background:#edf4fc}.reception-route-cards b{font-size:18px}.reception-log-modal .modal-header input[type=date]{padding:6px 8px;border:1px solid #cbd5e1;border-radius:5px}.formal-table td,.confirmation-table td{vertical-align:middle}
.delivery-preview-card{padding:0}.delivery-preview-toolbar{display:flex;gap:20px;padding:6px 9px;border-bottom:1px solid #d8e0ea}.delivery-preview-scroll{overflow-y:auto;overflow-x:hidden;max-height:calc(100vh - 165px)}.delivery-preview-scroll table{width:100%;table-layout:fixed;border-collapse:collapse}.delivery-preview-scroll th{position:sticky;top:0;background:#edf3f9;z-index:2;white-space:normal;line-height:1.05}.delivery-preview-scroll th,.delivery-preview-scroll td{padding:3px 2px;border:1px solid #d8e0ea;font-size:8.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.delivery-preview-scroll th:nth-child(1){width:3%}.delivery-preview-scroll th:nth-child(2){width:8%}.delivery-preview-scroll th:nth-child(3){width:4.5%}.delivery-preview-scroll th:nth-child(4){width:8%}.delivery-preview-scroll th:nth-child(5){width:5%}.delivery-preview-scroll th:nth-child(6){width:4%}.delivery-preview-scroll th:nth-child(7),.delivery-preview-scroll th:nth-child(9){width:5%}.delivery-preview-scroll th:nth-child(8),.delivery-preview-scroll th:nth-child(10){width:4.5%}.delivery-preview-scroll th:nth-child(11){width:4%}.delivery-preview-scroll th:nth-child(12){width:6%}.delivery-preview-scroll th:nth-child(13){width:9%}.delivery-preview-scroll th:nth-child(14),.delivery-preview-scroll th:nth-child(15){width:6%}.delivery-preview-scroll th:nth-child(16){width:4%}.delivery-preview-scroll th:nth-child(17){width:3.5%}.delivery-preview-scroll th:nth-child(18),.delivery-preview-scroll th:nth-child(19){width:4%}.delivery-preview-scroll input,.delivery-preview-scroll select{box-sizing:border-box;width:100%;height:23px;min-width:0;padding:1px 2px;font-size:8px}.preview-datetime{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:2px}.delivery-preview-page .compact-heading{margin-bottom:5px}

/* 2026-08-12 confirmed compact cross-date list rules */
.confirmation-scroll,.formal-scroll,.personnel-table-scroll,.queue-scroll,.schedule-sheet-scroll,.reception-detail-scroll,.reception-log-scroll{overflow-y:auto!important;overflow-x:hidden!important}
.confirmation-table,.formal-table,.personnel-table,.schedule-sheet,.reception-details table,.reception-runs table{width:100%!important;min-width:0!important;table-layout:fixed!important}
.seq-col{width:58px!important}.daily-seq{position:relative;width:58px!important;min-width:58px!important;text-align:center!important;font-size:11px!important;overflow:visible!important}.daily-seq>b,.daily-seq>.seq-input{font-size:11px!important;font-weight:750}.date-break td{border-top:2px solid #8fa9c4!important}.date-break .daily-seq{padding-top:17px!important}.daily-seq>small{position:absolute;top:2px;left:3px;right:3px;z-index:2;display:block;height:12px;padding:0 3px;border:0;border-radius:3px;background:#315889;color:#fff;font-size:8.5px;font-weight:800;line-height:12px;letter-spacing:.1px;white-space:nowrap;text-align:center;box-shadow:0 1px 0 rgba(31,63,101,.16)}.seq-input{box-sizing:border-box;width:40px!important;height:22px!important;padding:1px!important;text-align:center}
.confirmation-table th,.confirmation-table td,.formal-table th,.formal-table td,.personnel-table th,.personnel-table td{box-sizing:border-box;padding:3px 3px!important;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.confirmation-table input,.confirmation-table select{box-sizing:border-box;width:100%;min-width:0;height:26px;font-size:9px}.confirmation-table .row-actions,.formal-table .row-actions{white-space:nowrap}.confirmation-table .row-actions .btn,.formal-table .row-actions .btn{padding:2px 4px;font-size:8px}.formal-toolbar .dense-section-title{display:flex;align-items:center;gap:5px}.formal-toolbar .dense-section-title h3{margin-right:4px}
.confirmation-table th:nth-child(1){width:5%!important}.confirmation-table th:nth-child(2){width:10%!important}.confirmation-table th:nth-child(3){width:11%!important}.confirmation-table th:nth-child(4){width:10%!important}.confirmation-table th:nth-child(5){width:8%!important}.confirmation-table th:nth-child(6){width:8%!important}.confirmation-table th:nth-child(7){width:6%!important}.confirmation-table th:nth-child(8){width:5%!important}.confirmation-table th:nth-child(9){width:12%!important}.confirmation-table th:nth-child(10){width:13%!important}.confirmation-table th:nth-child(11){width:12%!important}
.formal-table th:nth-child(1){width:5%!important}.formal-table th:nth-child(2){width:10%!important}.formal-table th:nth-child(3){width:17%!important}.formal-table th:nth-child(4){width:9%!important}.formal-table th:nth-child(5){width:10%!important}.formal-table th:nth-child(6){width:7%!important}.formal-table th:nth-child(7){width:7%!important}.formal-table th:nth-child(8){width:12%!important}.formal-table th:nth-child(9){width:5%!important}.formal-table th:nth-child(10){width:8%!important}.formal-table th:nth-child(11){width:10%!important}
.confirmation-table .row-actions,.formal-table .row-actions{display:flex;align-items:center;gap:2px}.confirmation-table .row-actions .btn,.formal-table .row-actions .btn{min-width:0;flex:1;margin:0!important;padding:2px!important}
.queue-scroll>button{grid-template-columns:58px minmax(0,1fr) 38px 38px 40px!important}.queue-scroll>button.date-break{position:relative;border-top:2px solid #8fa9c4!important;padding-top:18px}.queue-scroll.locked>button:not(.selected){opacity:.48;pointer-events:none}.queue-seq{position:relative;display:flex!important;align-items:center!important;justify-content:center!important;height:100%;font-style:normal!important;overflow:visible!important}.queue-seq>small{position:absolute;top:-16px;left:3px;right:3px;display:block;height:12px;padding:0 3px;border:0;border-radius:3px;background:#315889;color:#fff;font-size:8.5px;font-weight:800;line-height:12px;white-space:nowrap;text-align:center}.queue-seq>b{font-size:11px}.schedule-actions{display:flex!important;gap:2px}.schedule-actions .btn{width:auto!important;flex:1;white-space:normal;line-height:1.05}.schedule-sheet tr.editing{background:#e7f1ff!important;box-shadow:inset 3px 0 #315889}
.personnel-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.filter-set{display:flex;align-items:center;gap:3px}.filter-set>b{font-size:9px;color:#69798b}.staff-chip-grid button.active{background:#315889!important;color:#fff!important;border-color:#173b68!important;box-shadow:inset 0 0 0 2px #9fc0e5}.personnel-modal label>strong{display:block;margin:2px 0 5px;color:#315889;font-size:10px}
.reception-log-modal{width:min(1500px,96vw)!important}.reception-header>div{display:flex;align-items:center;gap:5px}.date-text-input{width:108px;padding:6px 8px;border:1px solid #cbd5e1;border-radius:5px;font-variant-numeric:tabular-nums}.reception-log-layout{grid-template-columns:minmax(350px,.85fr) minmax(0,1.8fr)!important}.reception-runs th,.reception-runs td,.reception-details th,.reception-details td{padding:5px 6px!important;font-size:10px!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}.reception-runs th:nth-child(1){width:18%}.reception-runs th:not(:first-child){width:20.5%}.reception-runs tbody tr{cursor:pointer}.reception-runs tbody tr.active{background:#e8f1fb}.reception-details th:nth-child(1){width:7%}.reception-details th:nth-child(2){width:21%}.reception-details th:nth-child(3){width:30%}.reception-details th:nth-child(4){width:10%}.reception-details th:nth-child(5){width:14%}.reception-details th:nth-child(6){width:18%}.run-status{display:inline-block;min-width:0;padding:2px 7px;white-space:nowrap!important;writing-mode:horizontal-tb!important}.run-status.pending{background:#fff3d7;color:#805a00}.admin-log-link{border:0;background:transparent;color:#315889;text-decoration:underline;font-size:9px;cursor:pointer}.admin-log-panel{position:absolute;inset:50px 16px 16px;z-index:6;border:1px solid #bac8d7;border-radius:7px;background:#fff;box-shadow:0 12px 35px rgba(0,0,0,.18);overflow:auto}

/* Historical replay/test records are hidden by default. Administrators can
   explicitly include them; when visible they must remain unmistakable. */
.test-data-toggle{display:inline-flex;align-items:center;gap:5px;margin-left:8px;padding:3px 7px;border:1px solid #d8c27a;border-radius:4px;background:#fff9df;color:#725a08;font-size:10px;white-space:nowrap}.test-data-toggle input{margin:0}.reception-details tr.test-data-row td{background:#fff7d6!important}.test-data-badge{display:inline-block;margin-left:4px;padding:1px 5px;border-radius:9px;background:#8b6b00;color:#fff;font-size:8px;font-weight:700;vertical-align:middle}
.test-data-row>td{background:#fff9df!important}.daily-seq>.test-data-badge{display:block;width:max-content;margin:2px auto 0;font-size:7.5px;line-height:11px}.schedule-sheet tr.test-data-row.editing>td,.personnel-table tr.test-data-row:hover>td{background:#fff2b8!important}
.formal-row-editing td{height:44px;background:#e9f2fc!important;border-top:1px solid #9eb8d5;border-bottom:2px solid #315889}.formal-cell-input{box-sizing:border-box;width:100%;min-width:0;height:25px;padding:2px 4px;border:1px solid #9eb5cc;border-radius:3px;background:#fff;font-size:9px}.formal-project-edit{display:grid;grid-template-columns:38% 62%;gap:3px;min-width:0}.formal-usage-edit{display:grid;grid-template-columns:1fr;gap:2px}.formal-usage-edit .mini-toggle button{padding:1px 2px;font-size:8px}.formal-deadline-edit{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px;align-items:center}.formal-deadline-edit>div{display:flex;gap:2px}.formal-deadline-edit label{display:flex;align-items:center;gap:1px;font-size:8px}.formal-deadline-edit input[type=checkbox]{margin:0}

/* 4.2.3: give operational lists the viewport instead of leaving dead space. */
.formal-card .formal-scroll{height:calc(100vh - 455px);min-height:300px;max-height:none!important}

/* Registered title table: match the confirmation fields while keeping all
   twelve columns visible without horizontal scrolling. */
.formal-table th:nth-child(1){width:5%!important}.formal-table th:nth-child(2){width:12%!important}.formal-table th:nth-child(3){width:19%!important}.formal-table th:nth-child(4){width:9%!important}.formal-table th:nth-child(5){width:9%!important}.formal-table th:nth-child(6){width:7%!important}.formal-table th:nth-child(7){width:10%!important}.formal-table th:nth-child(8){width:13%!important}.formal-table th:nth-child(9){width:5%!important}.formal-table th:nth-child(10){width:6%!important}.formal-table th:nth-child(11){width:5%!important}

/* 4.2.13: 件名コード＝依頼番号。別列を廃止して確認待ちを10列に集約。 */
.confirmation-table th:nth-child(1){width:5%!important}.confirmation-table th:nth-child(2){width:15%!important}.confirmation-table th:nth-child(3){width:16%!important}.confirmation-table th:nth-child(4){width:8%!important}.confirmation-table th:nth-child(5){width:10%!important}.confirmation-table th:nth-child(6){width:8%!important}.confirmation-table th:nth-child(7){width:5%!important}.confirmation-table th:nth-child(8){width:13%!important}.confirmation-table th:nth-child(9){width:12%!important}.confirmation-table th:nth-child(10){width:8%!important}

/* 納品実行中は自動更新される一本道の進捗を常時表示する。 */
.delivery-live-progress{margin:8px 0;padding:10px 12px;border:1px solid #9db5d2;border-radius:8px;background:#f5f9ff}.delivery-live-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.delivery-progress-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.delivery-progress-step{position:relative;padding:7px 3px;border-radius:5px;background:#e8edf3;color:#667585;text-align:center;font-size:11px;font-weight:700;white-space:nowrap}.delivery-progress-step.is-done{background:#d9f1e4;color:#17683e}.delivery-progress-step.is-active{background:#315889;color:#fff;box-shadow:0 0 0 2px rgba(49,88,137,.18)}.delivery-progress-step.is-error{background:#fee2e2;color:#a92525}.delivery-progress-note{margin-top:6px;color:#536477;font-size:11px}.delivery-check.pending{background:#eef1f4;color:#8a96a3}
.schedule-top-grid .queue-scroll{height:230px;min-height:230px;max-height:230px!important}
.schedule-top-grid{align-items:stretch}.schedule-top-grid>.card{height:auto}

/* 4.2.14 見積・排程: one work table, three-level filters, horizontal adjustment. */
.schedule-control-row{display:grid;grid-template-columns:minmax(420px,.9fr) minmax(585px,1.35fr);gap:8px;align-items:stretch;margin:5px 0 7px}
.schedule-filter-stack{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:6px 8px;border:1px solid #d8e1ea;border-radius:5px;background:#f8fafc}
.schedule-filter-level{display:flex;align-items:center;gap:4px;min-height:27px;white-space:nowrap}
.schedule-filter-level>span{width:56px;color:#65778a;font-size:10px;font-weight:700}
.schedule-filter-level>input{min-width:150px;max-width:250px;height:27px;flex:1;padding:3px 7px;border:1px solid #bfcbd7;border-radius:4px}
.schedule-filter-level>button{height:27px;padding:3px 7px;border:1px solid #cbd5df;border-radius:14px;background:#fff;color:#334e68;font-size:10.5px;cursor:pointer}
.schedule-filter-level>button.active{border-color:#315889;background:#315889;color:#fff;font-weight:800}
.schedule-business-level,.schedule-usage-level{display:grid;grid-template-columns:60px 132px minmax(0,1fr);gap:4px;align-items:center}.schedule-business-level>span,.schedule-usage-level>span{width:auto}.business-slot,.usage-subgroup{display:flex;align-items:center;gap:3px;min-width:0}.business-slot button,.usage-subgroup button{height:27px;padding:3px 8px;border:1px solid #cbd5df;border-radius:14px;background:#fff;color:#334e68;font-size:10.5px;cursor:pointer;white-space:nowrap}.business-slot button.active,.usage-subgroup button.active{border-color:#315889;background:#315889;color:#fff;font-weight:800}.business-slot-plan{padding-left:10px;border-left:1px solid transparent}.usage-subgroup{height:27px;padding:0;border:0;border-radius:0;background:transparent;box-sizing:border-box}.usage-subgroup-plan{padding-left:10px;border-left:1px solid #aeb9c5}.usage-subgroup-normal,.usage-subgroup-plan{background:transparent}
.adjustment-horizontal{display:grid;grid-template-columns:auto minmax(124px,1fr) minmax(130px,1fr) 76px 88px 70px 58px;gap:5px;align-items:end;padding:6px 8px;border:1px solid #d8e1ea;border-radius:5px;background:#f8fafc}
.adjustment-title{align-self:center;white-space:nowrap}.adjustment-title b,.adjustment-title small{display:block}.adjustment-title b{font-size:12px}.adjustment-title small{color:#718096;font-size:9px}
.adjustment-horizontal label{display:grid;gap:2px;color:#617286;font-size:9px}.adjustment-horizontal input,.adjustment-horizontal select{box-sizing:border-box;width:100%;min-width:0;height:27px;padding:2px 4px}.adjustment-horizontal .mini-toggle{display:flex}.adjustment-horizontal .mini-toggle button{height:27px;flex:1;padding:2px 4px}.adjustment-horizontal>.btn{height:27px;min-height:27px;padding:2px 7px}.adjustment-horizontal .adjustment-list{grid-column:2/-1;display:flex;gap:4px;overflow-x:auto;white-space:nowrap}.adjustment-horizontal .adjustment-list span{font-size:9px}
.schedule-sheet-toolbar{min-height:32px}.schedule-sheet-toolbar .dense-section-title h3{font-size:15px}.schedule-sheet-toolbar .filter-chip{font-size:11px}
.schedule-sheet-scroll{height:500px;min-height:500px;max-height:500px;overflow-y:scroll!important;scrollbar-gutter:stable}
.schedule-sheet th,.schedule-sheet td{height:34px;padding:4px 3px!important;font-size:11px!important;line-height:1.25}.schedule-sheet th{font-size:10.5px!important}.schedule-sheet th>b{display:block;font-size:11px}.schedule-sheet th>small{display:block;min-height:13px;margin-top:2px;color:#315889;font-size:9.5px;font-weight:800;line-height:13px;white-space:nowrap}.schedule-sheet input,.schedule-sheet select,.schedule-sheet button.staff-cell{height:27px;font-size:10.5px}.schedule-sheet th:nth-child(1){width:5%}.schedule-sheet th:nth-child(2){width:7.2%}.schedule-sheet th:nth-child(3){width:10%}.schedule-sheet th:nth-child(4){width:5%}.schedule-sheet th:nth-child(5){width:5%}.schedule-sheet th:nth-child(6){width:4.7%}.schedule-sheet th:nth-child(7){width:4%}.schedule-sheet th:nth-child(8){width:3.5%}.schedule-sheet th:nth-child(n+9):nth-child(-n+15){width:5.2%}.schedule-sheet th:nth-child(16),.schedule-sheet th:nth-child(17){width:5.5%}.schedule-sheet th:nth-child(18){width:6%}.schedule-sheet tbody tr{cursor:pointer}.schedule-sheet tbody tr:not(.editing) :disabled{pointer-events:none}.schedule-sheet tr.locked{opacity:.46;pointer-events:none}.schedule-sheet tr.editing{opacity:1!important;pointer-events:auto!important;background:#e7f1ff!important;box-shadow:inset 4px 0 #315889}.schedule-sheet .daily-seq>b{font-size:12.5px}.schedule-sheet .mono{font-size:11px;font-weight:700}
@media(max-width:1050px){.schedule-control-row{grid-template-columns:1fr}.adjustment-horizontal{grid-template-columns:auto minmax(120px,1fr) minmax(130px,1fr) 70px 85px 65px 55px}}
.delivery-preview-scroll tr.new-entry td{background:#eaf3ff;color:#123f78}.delivery-preview-scroll tr.new-entry td:first-child{box-shadow:inset 4px 0 #2f6fbd}.delivery-preview-scroll tr.previous-boundary td{border-bottom:2px solid #315889}.delivery-preview-toolbar .new-count{color:#2f6fbd;font-weight:800}
/* Delivery management and read-only delivery history */
.delivery-management,.delivery-readonly{margin-top:10px;padding:12px 14px}
.delivery-state-tabs{display:flex;gap:6px;margin:8px 0}
.delivery-table-wrap{max-height:430px;overflow-y:auto;border:1px solid #d5deea;border-radius:6px}
.delivery-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}
.delivery-table th{position:sticky;top:0;z-index:2;background:#eef3f8;color:#263b55;font-weight:700;white-space:normal;line-height:1.2}
.delivery-table th,.delivery-table td{padding:7px 8px;border-bottom:1px solid #dbe3ed;vertical-align:middle;overflow:hidden;text-overflow:ellipsis}
.delivery-table tr:not(.delivery-event-row){cursor:pointer}
.delivery-table tr:not(.delivery-event-row):hover{background:#f6f9fd}
.delivery-table th:nth-child(1){width:13%}.delivery-table th:nth-child(2){width:20%}.delivery-table th:nth-child(3){width:10%}.delivery-table th:nth-child(4){width:19%}.delivery-table th:nth-child(5){width:25%}.delivery-table th:nth-child(6){width:13%}
.delivery-checks{display:flex;align-items:center;gap:4px;white-space:nowrap}
.delivery-check{display:inline-flex;align-items:center;justify-content:center;min-width:40px;padding:2px 5px;border-radius:10px;background:#edf1f5;color:#8995a3;font-size:10px}
.delivery-check.ok{background:#e7f7ed;color:#237b48;font-weight:700}
.delivery-check.error{background:#fff0ee;color:#bc4037}
.delivery-job-status{display:inline-block;padding:2px 7px;border-radius:10px;background:#edf1f5}
.delivery-job-status.completed{background:#e7f7ed;color:#237b48}.delivery-job-status.failed{background:#fff0ee;color:#bc4037}.delivery-job-status.running,.delivery-job-status.claimed,.delivery-job-status.queued{background:#edf4ff;color:#315889}
.delivery-event-row td{padding:8px 14px;background:#f8fafc;white-space:normal}
.delivery-event-row td>div{display:grid;grid-template-columns:100px 120px 1fr;gap:8px;padding:3px 0;border-bottom:1px dotted #ccd5e0}
.delivery-event-row time{color:#68778b}.delivery-event-row b{color:#315889}
.delivery-detail-toggle{float:right;border:0;background:transparent;color:#315889;font-weight:700;cursor:pointer}
.delivery-disabled{color:#8d98a6;font-size:11px}.delivery-error{color:#bd4037;font-weight:600}
@media(max-width:1200px){.delivery-table{font-size:11px}.delivery-table th,.delivery-table td{padding:6px 5px}.delivery-check{min-width:34px;padding:2px 3px}}
/* 4.2.19 delivery preview draft and compact direct-entry controls */
.preview-datetime{grid-template-columns:43px 43px!important;justify-content:center}
.annual-sequence-input{font-weight:800;text-align:center}
.delivery-preview-toolbar .draft-stamp{color:#8a5b00;font-weight:700}
.delivery-preview-scroll .compact-date-input,.delivery-preview-scroll .compact-time-input{font-size:8.5px;text-align:center}
.delivery-preview-page .heading-actions{display:flex;align-items:center;gap:5px}
.delivery-preview-page .heading-actions .btn{width:auto;min-width:88px}
.delivery-preview-scroll input{font-family:inherit!important;font-size:9px!important;font-variant-numeric:tabular-nums}
.delivery-preview-scroll .annual-sequence-input,.delivery-preview-scroll .plain-number-input{padding-left:3px!important;padding-right:3px!important;text-align:right}
.delivery-preview-scroll .annual-sequence-input{text-align:center;font-weight:600}
.delivery-preview-scroll input[type=number]::-webkit-inner-spin-button,.delivery-preview-scroll input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.delivery-preview-scroll input[type=number]{appearance:textfield;-moz-appearance:textfield}

/* 4.2.26: 自動分件を同一色で識別し、確認待ち10列を画面内に収める。 */
.confirmation-scroll{overflow-x:hidden!important}
.confirmation-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
.confirmation-table th:nth-child(1){width:4%!important}
.confirmation-table th:nth-child(2){width:13%!important}
.confirmation-table th:nth-child(3){width:15%!important}
.confirmation-table th:nth-child(4){width:7%!important}
.confirmation-table th:nth-child(5){width:9%!important}
.confirmation-table th:nth-child(6){width:7%!important}
.confirmation-table th:nth-child(7){width:5%!important}
.confirmation-table th:nth-child(8){width:12%!important}
.confirmation-table th:nth-child(9){width:13%!important}
.confirmation-table th:nth-child(10){width:15%!important}
.confirmation-table .row-actions{display:flex;align-items:center;gap:2px;overflow:hidden!important}
.confirmation-table .row-actions .btn{flex:1 1 0;min-width:0;margin:0!important;padding:2px 0!important;font-size:7px!important;letter-spacing:-.15px;white-space:nowrap}
.confirmation-table tr.split-group-row td{background:hsl(var(--split-hue) 68% 96%)}
.confirmation-table tr.split-group-row td:first-child{box-shadow:inset 4px 0 hsl(var(--split-hue) 58% 45%)}
.confirmation-table tr.split-group-row input,.confirmation-table tr.split-group-row select{border-color:hsl(var(--split-hue) 46% 66%)}
.split-group-badge{display:block;width:max-content;max-width:100%;margin-top:2px;padding:1px 5px;border-radius:8px;background:hsl(var(--split-hue) 62% 88%);color:hsl(var(--split-hue) 62% 28%);font-size:7.5px;font-weight:700;line-height:1.2;overflow:hidden;text-overflow:ellipsis}

/* v4.2.28: keep request number, test badge and history query on one line. */
.confirmation-table .inline-query{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:2px}
.confirmation-table .inline-query input{min-width:0}
.confirmation-table .inline-query button{width:auto!important;min-width:34px;white-space:nowrap}
.confirmation-table th:nth-child(2){width:16%!important}
.confirmation-table th:nth-child(3){width:13%!important}
.confirmation-table th:nth-child(9){width:11%!important}
.confirmation-table th:nth-child(10){width:16%!important}
.fw-work-timer{display:inline-flex;align-items:center;gap:5px;margin-top:4px;padding:3px 8px;border-radius:12px;background:#edf2f7;color:#29476d;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;width:max-content}.fw-work-timer i{width:7px;height:7px;border-radius:50%;background:#94a3b8}.fw-work-timer.running{background:#e8f7ef;color:#12653a}.fw-work-timer.running i{background:#20a562;box-shadow:0 0 0 3px rgba(32,165,98,.14);animation:fwTimerPulse 1.2s infinite}@keyframes fwTimerPulse{50%{opacity:.35}}

/* Date and time must remain visible inside the fixed-width confirmation cell. */
.confirmation-table .manual-receipt-datetime{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;white-space:normal}
.confirmation-table .manual-receipt-datetime input{display:block;width:100%;min-width:0}
