/* Reference image skin. Original application routes and controls are retained. */
:root{--primary:#1261d4;--primary-dark:#124487;--secondary:#19a5e9;--dark:#183252;--gray:#637a96;--line:#dfEafa;--panel-soft:#f1f7ff;--volume-shadow:0 3px 14px #174e8610;--volume-shadow-hover:0 5px 20px #174e8618;--volume-border:#e2ecf8}
body{background:#eff6ff!important;color:#183252;font-family:Inter,'Segoe UI',sans-serif}
body.reference-home #mainContainer{padding:0 14px 24px 190px;display:block!important}body.reference-home #mainContainer[style*="none"]{display:none!important}
.reference-home .header{position:relative;min-height:94px;margin:0 -14px 12px -14px;padding:16px 255px 14px 20px;border:0!important;border-radius:0!important;box-shadow:none!important;background:#f3f9ff url('/reference-landscape.svg') right bottom/auto 100% no-repeat!important;backdrop-filter:none}
.reference-home .header::after{background-image:url('/header-power-lines.svg');background-position:right bottom;background-size:auto 100%;opacity:.58}.reference-home .header:before{display:none}.reference-home .header h1{font-size:26px;font-weight:800;letter-spacing:-.7px;line-height:1.15;margin:0 0 4px;color:#123b73;text-shadow:none}.reference-home .header h1 i{display:none}.reference-home .header-subtitle{font-size:13px;line-height:1.4;font-weight:700}.reference-home .header-description{font-size:10px;line-height:1.5;margin-top:3px;color:#637a96}
.reference-home #tabsContainer{position:fixed;top:0;bottom:0;left:0;width:176px;min-height:100vh;padding:70px 12px 95px;border:0!important;border-radius:0!important;background:linear-gradient(155deg,#0b3977,#124a91)!important;gap:4px;z-index:20;overflow-y:auto;box-shadow:none!important}.reference-home #tabsContainer:before{font-size:9px;letter-spacing:1.3px;font-weight:500;padding:0 8px 10px;border:0;margin:0}.reference-home #tabsContainer:after{background-image:url('/power-lines-concept.svg');background-size:auto 100%;height:55%;bottom:45px;opacity:.38}.reference-home .tab-btn{font-size:10px;font-weight:600;padding:10px 8px;gap:9px;min-height:36px;border-radius:6px;white-space:normal;color:#dcecff;position:relative;z-index:2}.reference-home .tab-btn i{width:17px;font-size:12px}.reference-home .tab-btn.active{color:#144c94;background:white;border-color:#b8d6fa}.reference-home .tab-btn.active i{color:#1261d4}
.rd-brand{position:fixed;top:16px;left:23px;z-index:21;display:flex;gap:9px;color:#fff;align-items:center;pointer-events:none}.rd-brand-mark{font-size:34px;line-height:1}.rd-brand strong{display:block;font-size:13px;letter-spacing:1.2px;font-weight:700}.rd-brand small{display:block;font-size:9px;line-height:1.4;letter-spacing:1px}
.reference-home #userInfo,.reference-home #userInfo.is-compact{position:absolute!important;top:18px!important;right:17px!important;min-width:0!important;padding:4px!important;background:transparent!important;border:0!important;box-shadow:none!important;z-index:25;width:auto!important;opacity:1!important;visibility:visible!important;transform:none!important}.reference-home #userInfo .user-details{display:none!important}.reference-home #userInfo .user-avatar{display:flex!important;opacity:1!important;width:32px;height:32px;background:#1859ad;color:#fff;font-size:11px}.reference-home #userInfo .logout-btn{width:29px;height:29px;font-size:12px;background:#eaf3ff;color:#1655a5;box-shadow:none;border:0}.reference-home #serverStatus,.reference-home #serverStatus.is-compact{left:18px!important;bottom:16px!important;top:auto!important;right:auto!important;max-width:143px!important;min-width:0!important;width:auto!important;padding:7px!important;background:#0b3977c9!important;color:#d7edff!important;border:0!important;box-shadow:none!important;gap:8px;z-index:22}.reference-home #serverStatusText{display:block!important;opacity:1!important;visibility:visible!important;font-size:9px!important;line-height:1.4}.reference-home #serverStatus .status-dot{width:8px;height:8px;box-shadow:0 0 0 4px #2dd4a033}
.rd-date{position:absolute;right:104px;top:15px;display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:8px;background:#ffffff8f;color:#22589b;z-index:3}.rd-date i{font-size:14px}.rd-date small{display:block;font-size:9px;color:#6682a4}.rd-date strong{font-size:11px}
.reference-home .stats-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:14px}.reference-home .stat-card{border:1px solid #e2ecf8!important;border-radius:8px!important;background:#fff!important;box-shadow:0 3px 12px #13477809!important;padding:12px 10px;min-width:0;overflow:hidden;min-height:0}.reference-home .stat-card:before,.reference-home .stat-card:after{display:none}.reference-home .stat-header{margin-bottom:11px;padding-bottom:0;border:0;min-height:32px;position:relative}.reference-home .stat-title{gap:7px;font-size:11px;font-weight:700;line-height:1.3;padding-right:0;align-items:flex-start}.reference-home .stat-title>div:last-child{min-width:0;flex:1}.reference-home .stat-icon{width:25px;height:25px;min-width:25px;font-size:13px;background:#edf5ff!important;color:#1665d5!important;box-shadow:none;border-radius:6px}.reference-home .stat-date{font-size:9px;font-weight:500;line-height:1.4;margin-top:4px;padding:2px 7px;border:0;border-radius:3px;background:#edf4ff;color:#345c96;width:max-content;max-width:100%}
.rd-period{position:absolute;right:0;top:0;font-size:8px;color:#6882a0;background:#f1f5fc;border-radius:4px;padding:3px 5px;transform:translateY(-3px)}.rd-current{color:#168464;background:#e6f8ef}.reference-home .rd-week .stat-title{padding-right:35px}
.reference-home .stat-values{gap:6px}.reference-home .stat-value-row{gap:5px;margin:0;align-items:center;min-height:18px}.reference-home .stat-value-label{font-size:9px!important;font-weight:500;color:#637a96;flex:1;min-width:0}.reference-home .stat-value{font-size:19px!important;font-weight:750!important;letter-spacing:-.5px;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.2}.reference-home .stat-value.current,.reference-home .stat-value.best{color:#1358c6}.reference-home .stat-value.worst{color:#dc3d50}
.reference-home .rd-main-metric{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 4px}.reference-home .rd-main-metric>.rd-delta{grid-column:1/-1;text-align:right;margin-top:-1px}.rd-delta{font-size:8px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.5}.rd-up{color:#158c6c!important}.rd-down{color:#da4456!important}.rd-neutral{color:#7690ab!important}
.rd-progress{height:6px;background:#e5efff;border-radius:8px;overflow:hidden;margin:5px 0 8px}.rd-progress>span{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#18a4ec,#145ad5)}.rd-chart{height:40px;margin:6px 0 7px;border-bottom:1px solid #e1edfc;background:linear-gradient(0deg,#edf7ff,transparent);color:#2588de}.rd-spark{display:block;width:100%;height:100%;overflow:visible}.rd-spark text{font:9px Inter,'Segoe UI',sans-serif;fill:#6b819c}
.reference-home .stat-details{gap:6px;margin-top:7px!important}.reference-home .stat-detail-item{position:relative;background:#f3f8ff;border:0;border-radius:6px;padding:8px 5px 6px 25px;min-width:0;box-shadow:none}.reference-home .stat-detail-value{font-size:12px!important;letter-spacing:-.15px;font-weight:700!important;line-height:1.3;margin-bottom:2px;color:#155cc6}.reference-home .stat-detail-label{font-size:8px;font-weight:400!important;line-height:1.35;min-height:22px;color:#637a96}.reference-home .stat-detail-item>.rd-delta{display:block;margin-top:3px}.reference-home .stat-detail-item:before{position:absolute;left:7px;top:11px;font-family:'Font Awesome 6 Free';font-weight:900;font-size:11px;color:#2b7bd8;content:'\f1b3'}.reference-home .rd-count-1:before{content:'\f071';color:#df4b5b}.reference-home .rd-count-2:before{content:'\f1ad'}.reference-home .rd-count-3:before{content:'\f1b2'}
.reference-home .stat-footer{margin-top:10px;padding-top:0;border-top:0;gap:7px}.reference-home .stat-footer>div{gap:6px!important;width:100%}.reference-home .badge{font-size:8px;font-weight:600;border-radius:6px;line-height:1.5;padding:7px 6px;white-space:normal;flex:1;min-width:0;text-transform:none;box-shadow:none}.reference-home .badge-best{background:linear-gradient(120deg,#13a480,#098565);color:#fff}.reference-home .badge-worst{background:linear-gradient(120deg,#ee5368,#d83449);color:#fff}.reference-home .stat-footer .btn{width:100%;padding:7px 5px;font-size:9px;min-height:29px;border-radius:5px;box-shadow:none;transform:none;border-width:1px}.reference-home .btn-outline{color:#1c5db2;border-color:#86aad9;background:#fff}.reference-home .btn-primary{background:linear-gradient(90deg,#2365d9,#18a3e8)}
.reference-home .stat-label{font-size:8px;color:#70859d;font-weight:500}.reference-home #statsGrid>.stat-card:last-child:not(.rd-week) .stat-value{font-size:15px!important}.reference-home .pu-date-controls{gap:6px;border-color:#e3edf9;padding-top:12px;margin-top:14px}.reference-home .pu-date-field{font-size:8px;font-weight:500}.reference-home .pu-date-field input{font-size:9px;width:100%;min-width:0;padding:5px;border-radius:5px}.reference-home .pu-date-calculate{font-size:10px;min-height:30px;background:linear-gradient(90deg,#2468da,#17a4e9);border-radius:5px;box-shadow:none}.reference-home .excel-more-btn{font-size:10px;border-radius:5px;padding:7px 10px;border-width:1px;box-shadow:none}.reference-home .excel-actions{margin-top:8px}
.reference-home .detailed-comparison,.reference-home .input-section,.reference-home .history-section,.reference-home .export-section{padding:15px 13px;background:#fff!important;border:1px solid #e1ecf8!important;border-radius:8px!important;box-shadow:0 3px 12px #13477808!important}.reference-home .section-title{font-size:14px;line-height:1.4;font-weight:700;padding-bottom:12px;margin-bottom:10px;border-color:#e6eef9}.reference-home #stats>.detailed-comparison>.section-title{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.reference-home #currentWeekLabel{font-size:12px!important;font-weight:500!important;color:#67819d!important}.rd-table-tools{margin-left:auto;display:flex;gap:7px;align-items:center;flex-wrap:wrap}.rd-table-tools input,.rd-table-tools select{border:1px solid #dce7f7;border-radius:5px;padding:6px 8px;font-size:10px;background:#f9fbff;color:#486786;min-height:29px}.rd-table-tools input{width:210px}.rd-table-tools .btn{padding:6px 12px;font-size:10px;border-radius:5px;border-width:1px;box-shadow:none}.rd-sort{background:transparent;border:0;padding:0;color:inherit;font:inherit;cursor:pointer;text-align:inherit}.rd-sort:focus-visible{outline:2px solid #2a7fdb;outline-offset:4px}
.reference-home .table-container{border:0;border-radius:5px;overflow:auto}.reference-home #detailedTable{min-width:1000px;width:100%;font-size:10px}.reference-home #detailedTable th{font-size:8px;letter-spacing:0;font-weight:600;color:#587294;background:#eef6ff!important;padding:9px 6px;text-transform:none;box-shadow:none!important}.reference-home #detailedTable td{font-size:10px;padding:7px 6px;border-bottom:1px solid #e8f0fa;background:#fff;font-weight:550!important;white-space:nowrap;font-variant-numeric:tabular-nums}.reference-home #detailedTable .res-name{font-size:10px!important;font-weight:650!important;white-space:normal;min-width:145px}.reference-home #detailedTable td:nth-child(6),.reference-home #detailedTable td:nth-child(10){font-size:11px;font-weight:700!important}.reference-home #detailedTable td:nth-child(6)>span,.reference-home #detailedTable td:nth-child(10)>span{font-size:8px!important;display:block;margin-left:0!important;background:transparent!important;padding:0!important}.reference-home #detailedTable tr.rd-total{border-width:1px!important}.reference-home #detailedTable tr.rd-total td{background:#edf5ff!important;border-top:1px solid #bfd8f4;color:#24568f!important}.reference-home #detailedTable tr.rd-total td:first-child{font-size:12px!important}.rd-trend-cell{min-width:95px;color:#2588de!important}.rd-trend-cell .rd-spark{height:23px;width:100%;min-width:75px}.rd-trend-cell>.rd-delta{display:block;text-align:right}.rd-table-note{font-size:9px;color:#7086a0;margin:10px 0 0}.reference-home #detailedTable tr[hidden]{display:none!important}
.reference-home .history-date-group{box-shadow:none!important;border:1px solid #dbe8f8;border-radius:8px!important}.reference-home .history-date-title{font-size:13px}.reference-home .statistics-tool-card{padding:18px;border-radius:8px!important;box-shadow:none!important}.reference-home .statistics-tool-card .stat-title{font-size:14px}.reference-home .statistics-tool-card p{font-size:12px}.reference-home .form-control{font-size:13px;border-width:1px}.reference-home .table-container th{background:#edf5ff!important;box-shadow:none!important}.reference-home .login-container{border-radius:14px!important;box-shadow:0 18px 60px #102d6526!important}
/* Compact spacing retains all metrics at laptop widths. */
.reference-home .stat-main{margin-bottom:0}.reference-home #serverStatusText{white-space:normal!important;overflow-wrap:anywhere}
@media(min-width:1180px) and (max-width:1599px){.reference-home .stat-header{margin-bottom:7px}.reference-home .stat-values{gap:3px}.reference-home .rd-progress{margin:2px 0 3px}.reference-home .rd-chart{height:30px;margin:4px 0}.reference-home .stat-detail-item{padding:6px 4px 5px 22px}.reference-home .stat-detail-label{min-height:11px;font-size:7.5px}.reference-home .stat-detail-item>.rd-delta{margin-top:2px}.reference-home .stat-footer{margin-top:8px}.reference-home .rd-period{top:22px;transform:none;padding:2px 4px}.reference-home .rd-week .stat-title{padding-right:0}}
.rd-clock{display:block;font-size:10px;line-height:1.5;color:#486b96;font-variant-numeric:tabular-nums;white-space:nowrap}
.reference-home #detailedTable th,.reference-home #detailedTable td,.reference-home #detailedTable .res-name,.reference-home #detailedTable .rd-sort,.reference-home #detailedTable .rd-trend-cell>.rd-delta{text-align:center!important;vertical-align:middle}
body.reference-home #serverStatus.is-compact{width:46px!important;min-width:46px!important;max-width:46px!important;height:46px!important;padding:0!important;gap:0!important;border-radius:50%!important;justify-content:center}
body.reference-home #serverStatus.is-compact #serverStatusText{display:none!important}
body.reference-home #serverStatus.is-compact.online{background:#16a34a!important;border:1px solid #15803d!important;box-shadow:0 10px 26px #16a34a4d,0 0 0 4px #22c55e26!important}
body.reference-home #serverStatus.is-compact.offline{background:#dc2626!important;border:1px solid #b91c1c!important}
body.reference-home #serverStatus.is-compact.connecting{background:#d97706!important;border:1px solid #b45309!important}
body.reference-home #serverStatus.is-compact .status-dot{width:13px!important;height:13px!important;flex:0 0 13px;background:#fff!important;box-shadow:0 0 0 5px #fff3!important;animation:none}
@media(min-width:1600px){body.reference-home #mainContainer{padding-left:218px;padding-right:18px}}
/* Full-width header artwork and the single table action. */
body.reference-home .header{background-size:100% 100%!important}
body.reference-home .header::after{inset:0;background-size:100% 100%;background-position:center}
body.reference-home .rd-table-tools{display:flex;width:auto;margin-left:auto;justify-content:flex-end}
/* Vector artwork recreated from the supplied reference. */
body.reference-home .header{background-image:url('/reference-header.svg?v=20261027-4')!important;background-position:center!important;background-size:100% 100%!important}
body.reference-home .header::after{display:none}
body.reference-home #tabsContainer{background:#0c3975 url('/reference-sidebar.svg?v=20261027-4') center/100% 100% no-repeat!important}
body.reference-home #tabsContainer::after{display:none}
.rd-brand{left:20px;top:14px}.rd-logo{display:block;width:140px;height:auto}
/* Persistent header; the sidebar retains its existing layout. */
body.reference-home .header{position:sticky;top:0;z-index:30;box-shadow:0 3px 12px #18325212!important}
body.reference-home #mainContainer{min-width:0}
body.reference-home .table-container{max-width:100%;min-width:0;-webkit-overflow-scrolling:touch}
body.reference-home .header #userInfo{position:absolute!important}
@media(max-width:860px){
 body.reference-home .header{padding:12px 58px 10px 14px;min-height:0}
 body.reference-home .header h1{font-size:clamp(17px,4.5vw,22px);line-height:1.2;letter-spacing:-.4px}
 body.reference-home .header-subtitle{font-size:12px}
 body.reference-home .header-description{font-size:10px;line-height:1.4}
 body.reference-home .rd-date{display:flex;position:static;width:fit-content;max-width:100%;margin-top:7px;padding:4px 7px;gap:6px}
 body.reference-home .rd-date>div{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px}
 body.reference-home .rd-date small{font-size:9px}
 body.reference-home .rd-date strong,body.reference-home .rd-clock{font-size:10px}
 body.reference-home .header #userInfo,body.reference-home .header #userInfo.is-compact{top:10px!important;right:10px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;padding:0!important}
 body.reference-home .header #userInfo .user-avatar{display:none!important}
 body.reference-home .detailed-comparison{padding:12px 9px}
 body.reference-home .section-title{font-size:13px}
 body.reference-home .stat-footer .btn,body.reference-home .rd-export{min-height:38px}
 body.reference-home #detailedTable{min-width:950px}
 body.reference-home .rd-table-note::before{content:'Таблицу можно прокручивать влево и вправо. ';font-weight:600}
}
@media print{body.reference-home .header{position:static}}
/* Standalone tools keep their original layout and calculations. */
body:not(.reference-home) .hdr,body:not(.reference-home) .upload-card,body:not(.reference-home) .panel,body:not(.reference-home) .chart-card{box-shadow:0 3px 15px #20518c0b!important;border-color:#dce9f8!important}.hdr h1{font-weight:750}.hbtn,.hdr-link{border-radius:6px}.kpi-v{font-weight:700}
@media(min-width:1600px){.reference-home #mainContainer{padding-left:218px;padding-right:18px}.reference-home #tabsContainer{width:200px;padding-left:14px;padding-right:14px}.reference-home .tab-btn{font-size:12px;padding:12px 9px}.rd-brand{left:27px}.reference-home .header{padding-top:20px;min-height:106px}.reference-home .header h1{font-size:31px}.reference-home .header-description{font-size:11px}.reference-home .stat-card{padding:15px 13px}.reference-home .stat-title{font-size:13px}.reference-home .stat-date{font-size:10px}.reference-home .stat-value{font-size:24px!important}.reference-home .stat-value-label{font-size:11px!important}.reference-home .rd-main-metric{display:flex;flex-wrap:wrap}.reference-home .rd-main-metric>.rd-delta{margin-left:auto}.reference-home .rd-delta{font-size:10px}.reference-home .stat-detail-value{font-size:15px!important}.reference-home .stat-detail-label{font-size:10px}.reference-home .badge{font-size:10px}.reference-home .stat-footer .btn{font-size:11px}.reference-home #detailedTable td{font-size:12px}.reference-home #detailedTable th{font-size:10px}.reference-home #detailedTable .res-name{font-size:12px!important}.rd-period{font-size:9px}}
@media(max-width:1179px){.reference-home .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.reference-home .rd-week .stat-title{padding-right:35px}.reference-home .stat-value{font-size:23px!important}.reference-home .stat-detail-label{font-size:10px}.rd-table-tools{width:100%;margin:5px 0 0}.reference-home .stat-footer .btn{font-size:11px}}
@media(max-width:860px){body.reference-home #mainContainer{padding:0 12px 20px!important}.reference-home .header{margin:0 -12px;padding:15px 90px 15px 15px;min-height:116px}.reference-home .header h1{font-size:22px}.reference-home .header-description{font-size:10px}.rd-date{display:none}.rd-brand{display:none}.reference-home #tabsContainer{position:relative;top:auto;bottom:auto;width:100%;min-height:0;padding:8px;display:flex;flex-direction:row;overflow-x:auto;flex-wrap:nowrap;border-radius:8px!important;margin:0 0 12px}.reference-home #tabsContainer:before,.reference-home #tabsContainer:after{display:none}.reference-home .tab-btn{width:auto;min-width:140px;flex:none;font-size:10px;justify-content:center}.reference-home #serverStatus{display:none!important}.reference-home .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-home #userInfo,.reference-home #userInfo.is-compact{right:12px!important;top:20px!important}.reference-home .header h1 i{display:none}}
@media(max-width:480px){.reference-home .stats-grid{grid-template-columns:1fr}.reference-home .stat-card{padding:15px}.reference-home .stat-title{font-size:13px}.reference-home .stat-value-label{font-size:12px!important}.reference-home .stat-value{font-size:24px!important}.reference-home .stat-detail-value{font-size:16px!important}.reference-home .stat-detail-label{font-size:11px}.reference-home .rd-delta{font-size:10px}.reference-home .badge{font-size:11px}.reference-home .rd-period{font-size:10px}.rd-table-tools input{width:100%}.rd-table-tools{display:grid;grid-template-columns:1fr 1fr}.rd-table-tools input{grid-column:1/-1}.rd-table-tools input,.rd-table-tools select{font-size:14px;min-height:38px}.reference-home .stat-detail-item{padding-left:30px}.reference-home .stat-icon{width:30px;height:30px}.reference-home .header h1{font-size:20px}}
@media print{.rd-brand,.rd-date,.rd-table-tools,.reference-home #userInfo,.reference-home #serverStatus,.reference-home #tabsContainer{display:none!important}body.reference-home #mainContainer{padding:0!important}.reference-home .header{margin:0;padding:15px;min-height:80px}.reference-home .stats-grid{grid-template-columns:repeat(5,1fr)}.reference-home #detailedTable{min-width:0;font-size:9px}.reference-home .table-container{overflow:visible}.rd-trend-cell{min-width:70px}.reference-home .stat-footer .btn{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep the logout control stable before and after the legacy compact timer. */
body.reference-home .header #userInfo,body.reference-home .header #userInfo.is-compact{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;padding:0!important;gap:0!important;border:0!important;border-radius:50%!important;overflow:visible!important;transition:none!important;animation:none!important;transform:none!important;background:transparent!important}
body.reference-home .header #userInfo .user-avatar,body.reference-home .header #userInfo .user-details{display:none!important}
body.reference-home .header #userInfo .logout-btn{display:flex;align-items:center;justify-content:center;width:44px!important;height:44px!important;min-width:44px;padding:0!important;margin:0!important;border:1px solid #b8d6fa!important;border-radius:50%!important;background:#f5faff!important;color:#1964ca!important;font-size:19px!important;box-shadow:0 2px 8px #155aa414;transition:background-color .18s ease,color .18s ease,box-shadow .18s ease!important;transform:none!important}
body.reference-home .header #userInfo .logout-btn:hover,body.reference-home .header #userInfo .logout-btn:focus-visible{background:#1964ca!important;color:white!important;box-shadow:0 0 0 3px #1964ca26!important;outline:none}
body.reference-home .rd-date>div{display:flex;flex-direction:column;align-items:flex-start;gap:1px}
body.reference-home .rd-date small{white-space:nowrap}
@media(prefers-reduced-motion:reduce){body.reference-home .header #userInfo .logout-btn{transition:none!important}}
body.reference-home .header #userInfo .logout-btn:hover,body.reference-home .header #userInfo .logout-btn:focus-visible{background:#dc2626!important;border-color:#dc2626!important;box-shadow:0 0 0 3px #dc262626!important;color:white!important}
body.reference-home .header{padding-right:290px}
body.reference-home .rd-date{right:78px}
body.reference-home #detailedTable th{font-size:9px;padding:8px 4px;white-space:normal;line-height:1.25}
body.reference-home #detailedTable td{font-size:11px;padding:6px 4px}
body.reference-home #detailedTable .res-name{min-width:125px;font-size:11px!important}
body.reference-home #detailedTable .rd-trend-cell{min-width:65px}
body.reference-home #detailedTable .rd-spo-rank{min-width:60px;background:#f1f7ff;font-weight:700!important;border-left:1px solid #d3e4f7}
@media(min-width:861px){body.reference-home #tabsContainer{top:12px;bottom:12px;left:10px;width:166px;min-height:0;height:calc(100dvh - 24px);border-radius:14px!important;box-shadow:0 5px 18px #0b397733!important;overflow:hidden}body.reference-home .rd-brand{left:25px;top:26px}body.reference-home #serverStatus{left:24px!important;bottom:28px!important}}
@media(min-width:1600px){body.reference-home #tabsContainer{width:190px}}
@media(max-width:860px){body.reference-home .header{padding-right:62px}body.reference-home .rd-date{margin-top:6px}body.reference-home .rd-clock{font-size:9px;white-space:normal}body.reference-home .header{display:block}body.reference-home #detailedTable{min-width:980px}}
@media(max-height:560px) and (min-width:861px){body.reference-home #tabsContainer{overflow-y:auto;padding-bottom:65px}}
body.reference-home #detailedTable .rd-spo-name{white-space:normal;min-width:125px;max-width:160px;color:#185ca8;font-size:10px;font-weight:650!important;background:#f6faff;border-left:3px solid #6ba8ee}
body.reference-home #detailedTable .rd-rank-badge{display:inline-block;margin-right:5px;font-size:10px;font-weight:700;white-space:nowrap}
body.reference-home #detailedTable td:nth-child(10){font-size:11px;font-weight:550!important}
body.reference-home #detailedTable td:nth-child(11){font-size:11px;font-weight:700!important}
body.reference-home #detailedTable td:nth-child(11)>span{font-size:8px!important;display:block;margin-left:0!important;background:transparent!important;padding:0!important}
body.reference-home #detailedTable th,body.reference-home #detailedTable td{padding-left:3px;padding-right:3px}
body.reference-home #detailedTable td:nth-child(2),body.reference-home #detailedTable td.rd-spo-name,body.reference-home #detailedTable .res-name,body.reference-home #detailedTable th:nth-child(2),body.reference-home #detailedTable th:nth-child(8){text-align:left!important;padding-left:8px!important}
body.reference-home #detailedTable td.rd-spo-name{border-left:0;background:#fff;min-width:125px;white-space:normal;color:#185ca8}
body.reference-home #detailedTable .rd-spo-place{width:38px;min-width:38px;white-space:nowrap!important;text-align:center!important;background:#eff6ff;border-left:3px solid #6ba8ee;border-right:1px solid #d8e7f7;color:#1958b8;font-weight:700!important}
body.reference-home #detailedTable td:nth-child(11){font-size:11px;font-weight:550!important}
body.reference-home #detailedTable td:nth-child(12){font-size:11px;font-weight:700!important}
body.reference-home #detailedTable td:nth-child(12)>span{font-size:8px!important;display:block;margin-left:0!important;background:transparent!important;padding:0!important}

/* Fixed slots: rank number left, medal right. */
body.reference-home #detailedTable td.rd-spo-place{padding-left:3px!important;padding-right:3px!important;font-variant-numeric:tabular-nums}
body.reference-home #detailedTable .rd-place-number,body.reference-home #detailedTable .rd-place-medal{display:inline-block!important;vertical-align:middle;width:16px!important;min-width:16px;text-align:center!important;margin:0!important;padding:0!important;line-height:1.3}
body.reference-home #detailedTable .rd-place-number{font-size:11px!important;font-weight:700!important}
body.reference-home #detailedTable .rd-place-medal{font-size:12px!important}
/* Wider desktop navigation with clear system typography. */
body.reference-home #tabsContainer .tab-btn{font-family:'Segoe UI',Tahoma,Arial,sans-serif!important;font-size:13px!important;font-weight:500!important;letter-spacing:0!important;line-height:1.35;justify-content:flex-start;text-align:left;white-space:nowrap;gap:10px;padding:11px 10px!important;min-height:42px}
body.reference-home #tabsContainer .tab-btn i{flex:0 0 17px;width:17px;text-align:center}
body.reference-home #tabsContainer .tab-btn span{white-space:nowrap}
@media(min-width:861px){body.reference-home #tabsContainer{width:220px;padding-left:12px;padding-right:12px}body.reference-home #mainContainer{padding-left:244px}body.reference-home .rd-brand{left:28px}}
@media(min-width:1600px){body.reference-home #tabsContainer{width:240px}body.reference-home #mainContainer{padding-left:268px}}
@media(max-width:860px){body.reference-home #tabsContainer .tab-btn{font-size:12px!important;width:auto;min-width:max-content}}

/* Official supplied logo: preserve original pixels and transparency. */
body.reference-home .rd-brand .rd-logo{width:160px;height:auto;object-fit:contain;filter:brightness(0) invert(1)}
@media(min-width:861px){body.reference-home #tabsContainer{padding-top:104px}body.reference-home .rd-brand{top:24px}}

/* Larger official artwork, displayed through an SVG color mask. */
body.reference-home .rd-brand .rd-logo{width:176px;height:auto;filter:none}

/* Crisp SVG lettering at menu size. */
body.reference-home .rd-brand .rd-logo{width:190px;height:auto;filter:none}

/* Quiet separator and a clear page heading without duplicate company name. */
@media(min-width:861px){body.reference-home #tabsContainer::before{content:''!important;display:block;height:1px;min-height:1px;flex:0 0 1px;margin:0 4px 12px!important;padding:0!important;border:0!important;background:rgba(255,255,255,.15)}}
body.reference-home .header h1.header-subtitle{font-size:26px!important;font-weight:700;line-height:1.2;letter-spacing:-.3px;margin:0 0 7px}
body.reference-home .header .header-description{font-size:13px!important;line-height:1.45;margin-top:0;max-width:750px;color:#58728f}
@media(min-width:1600px){body.reference-home .header h1.header-subtitle{font-size:29px!important}body.reference-home .header .header-description{font-size:14px!important}}
@media(max-width:860px){body.reference-home .header h1.header-subtitle{font-size:22px!important}body.reference-home .header .header-description{font-size:12px!important}}

/* Approved compact weekly cards with three comparable percentage scales. */
body.reference-home .rd-week.stat-card{padding:12px 10px;min-height:0;height:auto}
body.reference-home .rd-week .stat-header{margin-bottom:12px;min-height:31px}
body.reference-home .rd-week .stat-title{font-size:12px;line-height:1.35;white-space:normal}
body.reference-home .rd-week .stat-date{font-size:11px}
body.reference-home .rd-week .rd-period{font-size:10px;top:22px;transform:none;white-space:nowrap}
body.reference-home .rd-week .stat-title{padding-right:0}
body.reference-home .rd-week .stat-values{gap:10px}
body.reference-home .rd-week .rd-meter-row,body.reference-home .rd-week .rd-main-metric{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 6px;margin:0;min-height:0}
body.reference-home .rd-week .stat-value-label{font-size:12px!important;line-height:1.35;flex:1 1 98px;white-space:normal}
body.reference-home .rd-week .stat-value{font-size:22px!important;line-height:1.15;letter-spacing:-.4px;margin-left:auto;flex:0 0 auto}
body.reference-home .rd-week .rd-progress{height:5px;margin:5px 0 0;background:#eaf1fc}
body.reference-home .rd-week .rd-meter-worst .rd-progress{background:#fdeef1}
body.reference-home .rd-week .rd-meter-worst .rd-progress>span{background:linear-gradient(90deg,#f17a89,#dc3d50)}
body.reference-home .rd-week .rd-meter-group>.rd-delta{display:block;text-align:right;font-size:11px;margin-top:3px;line-height:1.3}
body.reference-home .rd-week .rd-meter-axis{display:flex;justify-content:space-between;color:#7890ab;font-size:11px;line-height:1.3;margin-top:-3px}
body.reference-home .rd-week .stat-details{gap:6px;margin-top:9px!important}
body.reference-home .rd-week .stat-detail-item{padding:8px 7px 6px;overflow:visible}
body.reference-home .rd-week .stat-detail-item:before{display:none}
body.reference-home .rd-week .stat-detail-value{font-size:15px!important;line-height:1.2;margin-bottom:4px;white-space:nowrap}
body.reference-home .rd-week .stat-detail-label{font-size:11px!important;line-height:1.3;min-height:28px;white-space:normal;overflow:visible;overflow-wrap:break-word}
body.reference-home .rd-week .stat-detail-item>.rd-delta{font-size:11px;line-height:1.3;margin-top:4px;white-space:normal}
body.reference-home .rd-week .stat-footer{gap:6px;margin-top:8px}
body.reference-home .rd-week .badge{font-size:11px!important;line-height:1.3;padding:7px 6px;white-space:normal;overflow-wrap:break-word;text-transform:none}
body.reference-home .rd-week .stat-footer .btn{font-size:11px;min-height:30px;padding:6px;white-space:normal;line-height:1.3}
@media(max-width:640px){body.reference-home .stats-grid{grid-template-columns:1fr}body.reference-home .rd-week.stat-card{padding:14px}body.reference-home .rd-week .stat-title{font-size:14px}body.reference-home .rd-week .stat-value-label{font-size:13px!important}body.reference-home .rd-week .stat-value{font-size:24px!important}body.reference-home .rd-week .stat-footer .btn{min-height:38px}}

body.reference-home .rd-week .rd-meter-group .stat-value{color:#1358c6!important}
body.reference-home .rd-week .rd-meter-worst .stat-value{color:#dc3d50!important}
/* Keep compact cards wide enough for full labels on laptop screens. */
@media(min-width:1001px) and (max-width:1499px){body.reference-home .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:641px) and (max-width:1000px){body.reference-home .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Trial density: preserve type sizes and all labels; reduce empty spacing. */
body.reference-home .rd-week.stat-card{padding:10px}
body.reference-home .rd-week .stat-header{margin-bottom:8px;min-height:30px}
body.reference-home .rd-week .stat-values{gap:6px}
body.reference-home .rd-week .rd-progress{margin-top:3px}
body.reference-home .rd-week .rd-meter-group>.rd-delta{margin-top:2px}
body.reference-home .rd-week .stat-details{gap:5px;margin-top:7px!important}
body.reference-home .rd-week .stat-detail-item{padding:6px 7px 5px}
body.reference-home .rd-week .stat-detail-value{margin-bottom:2px}
body.reference-home .rd-week .stat-detail-label{min-height:0}
body.reference-home .rd-week .stat-detail-item>.rd-delta{margin-top:2px}
body.reference-home .rd-week .stat-footer{gap:5px;margin-top:6px}
body.reference-home .rd-week .badge{padding:5px 6px}
body.reference-home .rd-week .stat-footer .btn{min-height:28px;padding:5px 6px}
@media(max-width:640px){body.reference-home .rd-week.stat-card{padding:12px}body.reference-home .rd-week .stat-footer .btn{min-height:38px}}


body.reference-home .rd-week .rd-meter-group .stat-value{font-size:18px!important;letter-spacing:-.2px}
@media(max-width:640px){body.reference-home .rd-week .rd-meter-group .stat-value{font-size:20px!important}}
