/* V13: structured production table and readable reports */
.logo-mark{width:77px;height:56px;border-radius:9px;background:white!important;border:1px solid #dee7f4;padding:3px;overflow:hidden}
.logo-mark img{width:100%;height:100%;object-fit:contain}
.login-logo{width:185px;height:105px;margin:0 auto 22px;padding:7px;border-radius:13px}
.sidebar .logo{padding:4px 0 23px;gap:9px}.sidebar .logo strong{font-size:13px;color:#eaf0ff;line-height:1.3;max-width:120px;word-break:normal}
.record-list-panel .table{border:1px solid #ccd6e6;border-collapse:collapse}.record-list-panel .table th,.record-list-panel .table td{border:1px solid #d5deea;padding:11px 10px;vertical-align:middle;line-height:1.5}.record-list-panel .table th{background:#edf2f9;border-color:#cdd8e6;font-size:11px}.record-list-panel .table tbody tr:nth-child(even){background:#f8faff}.record-list-panel .table tbody tr:hover{background:#ecf3fc}.record-list-panel .table td{overflow-wrap:anywhere;min-width:60px}
.r13-report{display:grid;gap:15px}.r13-report .panel{min-width:0}.r13-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:13px}.r13-kpis .num{font-size:25px}.r13-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,475px),1fr));gap:15px}.r13-chart-scroll{overflow-x:auto;max-width:100%;padding:8px 0}.r13-svg{height:272px;display:block;width:100%;max-width:none}.r13-status-row{display:grid;grid-template-columns:minmax(145px,230px) 1fr 55px;gap:12px;align-items:center;padding:8px 4px;cursor:pointer;border-radius:6px}.r13-status-row:hover,.r13-stage-row:hover{background:#f1f6fe}.r13-status-name{font-weight:600;color:#3a4d6c;overflow-wrap:anywhere;font-size:12px}.r13-track{background:#e6ecf5;border-radius:8px;min-height:13px;overflow:hidden;display:flex}.r13-track>span{display:block;background:#4d74d4;min-height:13px;border-radius:7px}.r13-status-row strong{text-align:right}.r13-interactive-bars{margin:13px 0}.r13-hint,.r13-modal-note{color:#70829c;font-size:11px;line-height:1.6;margin:11px 0 2px}.r13-stage-row{display:grid;grid-template-columns:minmax(90px,120px) 1fr 85px 48px;align-items:center;gap:9px;padding:8px 4px;cursor:pointer;border-radius:6px;font-size:12px}.r13-stage-row b{text-align:right;white-space:nowrap}.r13-stage-row em{font-style:normal;color:#667d9a;text-align:right}.r13-track.r13-stack{background:#edf1f7}.r13-segment{height:14px;min-height:14px;flex-shrink:0;border:0;padding:0;border-radius:0;cursor:pointer}.r13-segment:hover{outline:2px solid #172d68;outline-offset:-1px}.r13-legend{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:10px;color:#667791;margin:9px 0}.r13-legend span{display:flex;align-items:center;gap:5px}.r13-legend i{width:8px;height:8px;border-radius:3px}.r13-matrix-toolbar{display:flex;align-items:center;gap:14px;margin:14px 0}.r13-matrix-toolbar label{color:#596e8d;font-weight:700}.r13-matrix-toolbar select{max-width:330px}.r13-matrix-scroll{max-height:470px;overflow:auto}.r13-pivot-table{width:100%;border-collapse:collapse;font-size:12px;min-width:660px}.r13-pivot-table th,.r13-pivot-table td{padding:11px;border:1px solid #dae3f1;text-align:right;white-space:nowrap}.r13-pivot-table th{position:sticky;top:0;background:#f0f5fc;color:#4c5f7d;font-size:11px;z-index:2}.r13-pivot-table th:first-child,.r13-pivot-table td:first-child{text-align:left;position:sticky;left:0;background:#fff;font-weight:700}.r13-pivot-table th:first-child{background:#f0f5fc;z-index:3}.r13-pivot-table tbody tr:hover td{background:#f0f6ff}.r13-pivot-table tfoot td{background:#eaf0fb!important;font-weight:800}.r13-pivot-link{background:#e8f0ff;color:#214da1;border:1px solid #c8d7f5;border-radius:6px;padding:5px 8px;min-width:38px;font-weight:700}.r13-pivot-link:hover{background:#d0e2ff}.r13-drill .table{margin-top:13px;border-collapse:collapse}.r13-drill .table th,.r13-drill .table td{border:1px solid #dbe3ee;padding:9px 10px}.r13-drill{max-height:55vh;overflow:auto}
@media(max-width:900px){.r13-stage-row{grid-template-columns:100px 1fr 80px 38px}.r13-status-row{grid-template-columns:130px 1fr 42px}.logo-mark{width:58px;height:47px}.sidebar .logo strong{font-size:11px}} 
.ops-secondary-row .r13-ops-link{cursor:pointer}.ops-secondary-row .r13-ops-link:hover{background:#f3f7fe;border-radius:6px}


/* v19: warning matrix uses the same axis-specific Chrome/Edge styling. */
.r13-matrix-scroll{overflow:auto!important;overscroll-behavior:contain;scrollbar-width:auto!important;scrollbar-color:auto!important}
.r13-matrix-scroll::-webkit-scrollbar{height:0!important;width:10px!important}
.r13-matrix-scroll::-webkit-scrollbar:vertical{width:10px!important}
.r13-matrix-scroll::-webkit-scrollbar-track:vertical{background:#edf2f8}
.r13-matrix-scroll::-webkit-scrollbar-thumb:vertical{background:#aebed2;border-radius:8px}

/* v22: reporting chart + detail table pairs, no redundant usage hints. */
.r13-hint{display:none!important}
.r22-pair{display:grid;gap:10px;min-width:0}
.r22-data{margin:7px 0 0;border:1px solid #dde6f2;border-radius:10px;overflow:hidden;min-width:0}
.r22-data summary{cursor:pointer;font-size:12px;font-weight:750;padding:10px 13px;background:#f6f9fe;color:#334e7a;user-select:none}
.r22-data .r22-scroll{max-height:310px;overflow:auto}
.r22-table{min-width:100%;width:max-content;border-collapse:collapse;font-size:11px}
.r22-table th,.r22-table td{padding:9px 12px;border:1px solid #e0e7f0;text-align:right;white-space:nowrap}
.r22-table th:first-child,.r22-table td:first-child{text-align:left;position:sticky;left:0;background:#fff;z-index:1}
.r22-table thead th{background:#edf3fc;color:#425b82;position:sticky;top:0;z-index:2}
.r22-table thead th:first-child{background:#edf3fc;z-index:3}
.r22-table tfoot td{background:#e8f0fa!important;font-weight:750}
.r22-chart-group{min-width:0}.r22-chart-group .r13-interactive-bars{margin:8px 0}
.r22-warning-bars{display:grid;gap:7px;margin:10px 0 13px}
.r22-warning-row{display:grid;grid-template-columns:minmax(125px,215px) 1fr 40px;align-items:center;gap:10px;cursor:pointer;font-size:11px;padding:5px 0}
.r22-warning-track{height:13px;background:#edf1f7;border-radius:9px;overflow:hidden}
.r22-warning-track>span{height:100%;display:block;border-radius:9px}
.r22-summary-inline{font-size:11px;color:#69809b;margin-top:8px}
.excel-queue-warning{background:#fff5e4;color:#7b4b00;border:1px solid #edc178;border-radius:10px;padding:13px 17px;margin:0 0 15px;font-weight:700;line-height:1.5}

.r22-warning-track{display:flex}.r22-warning-track>button{height:100%;border:0;cursor:pointer;padding:0;min-width:0}.r22-warning-track>button:hover{filter:brightness(.88);outline:1px solid #fff}

/* v23: warning shares the monthly CONT chart/table presentation. */
.r22-warning-legend{margin:8px 0 6px;gap:9px 16px}
.r22-warning-chart-scroll{max-width:1000px;margin:0 auto}
.r13-matrix-panel .r22-data{margin-top:8px}
.r13-matrix-panel .r22-data .r13-matrix-toolbar{padding:0 12px}
.r13-matrix-panel .r22-data .r13-matrix-scroll{max-height:360px}
.r13-status-panel .r13-interactive-bars{margin:8px 0}


/* v24: report screenshot actions and an always-visible warning detail table. */
.r24-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.r24-panel-head .panel-title{margin:0;min-width:0}
.r24-copy-btn{white-space:nowrap;flex:none}
.r24-warning-always{margin:8px 0 0}
.r24-warning-always .r13-matrix-toolbar{padding:0 12px}
.r24-preview{position:fixed;inset:0;background:rgba(11,24,49,.67);z-index:10000;display:flex;align-items:center;justify-content:center;padding:18px}
.r24-preview-panel{background:#fff;border-radius:12px;padding:16px;max-width:min(960px,96vw);max-height:90vh;overflow:auto;display:grid;gap:12px}
.r24-preview-head{display:flex;justify-content:space-between;align-items:center;gap:20px}
.r24-preview-panel p{font-size:13px;color:#47607f;margin:0}
.r24-preview-panel img{max-width:100%;height:auto;border:1px solid #e1e6ef}
@media(max-width:650px){.r24-panel-head{align-items:flex-start}.r24-copy-btn{font-size:11px}}

/* V26.40 – status bar labels share their severity color with the bar. */
.r13-status-panel .r13-status-name{font-weight:800}
.r13-status-panel .r13-status-row{gap:14px;padding:9px 6px}
.r13-status-panel .r13-track,.r13-status-panel .r13-track>span{min-height:15px}

/* V26.41: only the bar carries severity colour; all labels remain dark. */
.r13-status-panel .r13-status-name{color:#111!important}

/* V26.42: make the middle-button drag state evident without blocking cell clicks. */
.r13-matrix-scroll.r13-middle-panning,
.r13-matrix-scroll.r13-middle-panning *{cursor:grabbing!important;user-select:none!important}
