/* RTO shares the cabinet's type and header controls. Only its data panes scroll. */
html:has(#rto-root),body:has(#rto-root){overflow:hidden}
.shell:has(#rto-root){height:100dvh;min-height:0;overflow:hidden}
.shell:has(#rto-root) .workspace{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.shell:has(#rto-root) .topbar{flex-shrink:0}
.shell:has(#rto-root) .content{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:16px 22px 12px;gap:8px}
#rto-root{--rto-ink:#132c48;--rto-muted:#738398;display:flex;flex-direction:column;flex:1;min-height:0;gap:15px;color:var(--rto-ink);font-size:13px}
#rto-root *{box-sizing:border-box}
.rto-driving{--rto-color:#397ed0;--rto-pale:#eef5ff}.rto-work{--rto-color:#db9944;--rto-pale:#fff6e9}.rto-availability{--rto-color:#8a75c6;--rto-pale:#f4f0fc}.rto-rest{--rto-color:#36a58e;--rto-pale:#edf8f4}.rto-unknown{--rto-color:#aab6c5;--rto-pale:#f3f5f8}
.rto-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;flex-shrink:0}
.rto-driver-field{display:flex;align-items:center;gap:10px;flex:1 1 280px;min-width:200px;font-size:12px;color:var(--rto-muted)}
#rto-root select,#rto-root input{min-width:0;max-width:100%;height:34px;background:#fff;border:1px solid #d5e0ec;border-radius:5px;box-shadow:none;color:#203a56;font:inherit;font-size:12px;padding:5px 9px;outline:none}
.rto-driver-field select{width:100%;max-width:440px;text-overflow:ellipsis}
#rto-root :is(button,select,input):focus-visible{outline:2px solid #749dcd;outline-offset:2px}
.rto-range{display:flex;align-items:center;gap:6px;color:#8695a6}.rto-range label{min-width:0}.rto-range input{width:123px}
#rto-root .btn{height:32px;min-height:32px;font-size:12px;font-weight:400;padding:0 11px;white-space:nowrap}
#rto-root .rto-arrow{width:30px;padding:0}.rto-arrow .icon{width:16px;height:16px}
.rto-view{display:flex;overflow:hidden;background:#fff;border:1px solid #d5e0ec;border-radius:5px}
.rto-view button{width:62px;height:32px;border:0;border-right:1px solid #e3eaf2;background:none;font:inherit;font-size:12px;color:#46607b;cursor:pointer}.rto-view button:last-child{border-right:0}.rto-view button[aria-pressed=true]{background:#355d85;color:#fff}
.rto-zone{margin-left:auto}.rto-zone select{width:173px}
.rto-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;flex-shrink:0}
.rto-stat{padding:14px 16px 12px;background:#fff;border:1px solid #dfe7ef;border-radius:8px;min-width:0;position:relative;overflow:hidden}
.rto-stat>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#546d85;font-size:12px;white-space:nowrap}
.rto-stat-icon{color:var(--rto-color);background:var(--rto-pale);height:29px;width:29px;border-radius:7px;display:grid;place-items:center;flex-shrink:0}.rto-stat-icon .icon{width:18px;height:18px;stroke-width:1.6}
.rto-stat strong{display:block;color:#142c49;font-size:clamp(17px,1.45vw,26px);font-weight:600;letter-spacing:-.5px;margin:7px 0 11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.rto-stat-track{height:3px;background:var(--rto-pale);border-radius:3px;overflow:hidden}.rto-stat-track i{display:block;height:100%;background:var(--rto-color);border-radius:3px}
.rto-body{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;min-height:0;flex:1}
.rto-chart,.rto-details{min-width:0;min-height:0;background:#fff;border:1px solid #dfe7ef;border-radius:9px;display:flex;flex-direction:column;overflow:hidden}
.rto-panel-heading{display:flex;justify-content:space-between;align-items:center;padding:17px 18px 13px;border-bottom:1px solid #e8eef4;flex-shrink:0;gap:12px}
#rto-root h2{font-size:15px;line-height:1.3;font-weight:600;color:#142d49;margin:0}#rto-root .rto-panel-heading p{font-size:11px;color:var(--rto-muted);margin:5px 0 0;line-height:1.35}.rto-file-count{font-size:11px;color:#56799c;padding:5px 8px;background:#f0f5fb;border-radius:4px;white-space:nowrap}
.rto-chart-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin}
.rto-axis,.rto-day{display:grid;grid-template-columns:94px minmax(320px,1fr) 105px;gap:13px;align-items:center;min-width:560px;padding:0 18px}
.rto-axis{position:sticky;top:0;z-index:2;background:#f8fafc;border-bottom:1px solid #e6edf4;height:41px;color:#728397;font-size:10px}.rto-axis>div{display:flex;justify-content:space-between}.rto-axis>span:last-child{text-align:right}
.rto-day{height:68px;border-bottom:1px solid #edf1f6;transition:background .12s}.rto-day.is-selected{background:#f0f6ff;box-shadow:inset 3px 0 #4e8acd}.rto-day:last-child{border-bottom:0}
.rto-day-date,.rto-driving-total{font:inherit;border:0;background:none;cursor:pointer;padding:0;text-align:left;color:#2d4863}.rto-day-date strong{font-size:12px;font-weight:600;display:block}.rto-day-date span{display:block;font-size:10px;color:#8290a0;margin-top:4px}.rto-driving-total{text-align:right;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.rto-track{position:relative;height:25px;border-radius:4px;background:#f0f3f7;box-shadow:0 0 0 1px #e3eaf2;overflow:hidden}
.rto-segment{height:100%;position:absolute;top:0;border:0;border-right:1px solid #ffffff88;padding:0;background:var(--rto-color);min-width:1px;cursor:pointer}
.rto-segment.rto-unknown{background:repeating-linear-gradient(135deg,#e7edf3,#e7edf3 4px,#f4f6f9 4px,#f4f6f9 8px)}
.rto-segment:hover{filter:brightness(.92)}
.rto-chart-footer{display:flex;align-items:center;gap:14px;padding:12px 18px;border-top:1px solid #e6edf4;flex-wrap:wrap;font-size:10px;color:#677e94;flex-shrink:0}.rto-chart-footer span{display:flex;gap:6px;align-items:center}.rto-chart-footer i{background:var(--rto-color);width:15px;height:5px;border-radius:2px}
.rto-day-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:13px 18px;background:#f8fafd;border-bottom:1px solid #e8eef4;flex-shrink:0}.rto-day-summary span{font-size:10px;color:#7b8ca0}.rto-day-summary strong{display:block;margin-top:5px;font-size:14px;font-weight:600;color:#274966;font-variant-numeric:tabular-nums}
.rto-periods{padding:10px 12px;min-height:0;overflow:auto;flex:1;overscroll-behavior:contain;scrollbar-width:thin}
.rto-period{display:block;position:relative;width:100%;background:#fff;border:0;border-radius:5px;margin:0 0 6px;padding:10px 10px 10px 16px;text-align:left;cursor:pointer;font:inherit;color:#233d59}.rto-period::before{content:'';position:absolute;left:2px;top:11px;bottom:11px;width:3px;background:var(--rto-color);border-radius:2px}.rto-period.is-selected,.rto-period:hover{background:var(--rto-pale)}
.rto-period-line{display:flex;gap:7px;align-items:center;justify-content:space-between}.rto-period-line strong{font-size:12px;font-weight:600}.rto-period-line b{font-size:11px;font-weight:500;white-space:nowrap}.rto-period-time{display:block;font-size:11px;color:#55718b;margin-top:5px;font-variant-numeric:tabular-nums}.rto-period-note{display:block;font-size:10px;color:#8a97a7;margin-top:4px;line-height:1.35}
.rto-detail-hint,.rto-source{border-top:1px solid #e8eef4;padding:12px 18px;flex-shrink:0;font-size:10px;color:#8190a3;line-height:1.4}.rto-source{display:flex;flex-direction:column;gap:7px}.rto-source strong{font-size:11px;color:#425f7b;font-weight:500}.rto-source>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rto-source .btn{align-self:flex-start}
.rto-bottom{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#8290a2;flex-shrink:0}.rto-loading{font-size:12px;color:#53799d;padding:8px 12px;background:#edf5fc;border-radius:5px}.rto-notice{background:#fff7e9;color:#795e32;border:1px solid #efdfc2;padding:10px 14px;border-radius:6px;font-size:12px;line-height:1.5;flex-shrink:0}
.rto-empty{flex:1;min-height:300px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:#fff;border:1px solid #dfe7ef;border-radius:10px;padding:26px;overflow:auto}
.rto-empty-symbol{position:relative;width:76px;height:76px;display:grid;place-items:center;background:#edf4fc;border-radius:22px;color:#507ba7;margin-bottom:22px}.rto-empty-symbol>.icon{width:44px;height:44px;stroke-width:1.2}.rto-empty-symbol>span{position:absolute;right:-9px;bottom:-5px;width:33px;height:33px;display:grid;place-items:center;border:3px solid #fff;background:#e4f3ed;border-radius:10px;color:#469780}.rto-empty-symbol>span .icon{width:18px;height:18px}
.rto-eyebrow{font-size:9px;letter-spacing:1.8px;color:#7c95ae;margin-bottom:12px}#rto-root .rto-empty h2{font-size:23px;letter-spacing:-.5px}.rto-empty p{font-size:13px;color:#7c8ea2;line-height:1.7;margin:12px 0 0}.rto-empty-preview{display:flex;gap:3px;height:21px;width:340px;max-width:95%;border-radius:5px;overflow:hidden;margin:26px 0}.rto-empty-preview i{background:#47a98f;flex:2}.rto-empty-preview i:nth-child(2),.rto-empty-preview i:nth-child(5){background:#478cce;flex:3}.rto-empty-preview i:nth-child(3){background:#e1b167;flex:.7}.rto-empty-preview i:nth-child(4){background:#9b87cb;flex:1}.rto-empty-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.rto-empty-note{font-size:10px;color:#99a6b4;margin-top:20px}.rto-empty-small{min-height:150px}.rto-empty-small h2{font-size:18px!important}
@media(min-width:1600px){.rto-body{grid-template-columns:minmax(0,1fr) 350px}.rto-day{height:74px}.rto-track{height:29px}.rto-stat{padding:16px 20px}.rto-period{padding-top:12px;padding-bottom:12px}.rto-period-line strong{font-size:13px}}
@media(max-width:1199px){#rto-root{gap:10px}.rto-body{grid-template-columns:minmax(0,1fr) 265px;gap:10px}.rto-toolbar{gap:8px}.rto-stat{padding:10px}.rto-stats{gap:8px}.rto-stat>div:first-child{font-size:11px}.rto-stat-icon{width:23px;height:23px}.rto-stat-icon .icon{width:15px;height:15px}.rto-periods{padding:8px}.rto-zone{margin-left:0}.rto-stat strong{font-size:18px}.rto-bottom{font-size:9px}}
@media(max-width:800px){html:has(#rto-root),body:has(#rto-root){overflow:auto}.shell:has(#rto-root){height:auto;min-height:100dvh;overflow:visible}.shell:has(#rto-root) .workspace{height:auto;overflow:visible}.shell:has(#rto-root) .content{overflow:visible;padding:12px}.rto-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.rto-stat:last-child{grid-column:1/-1}.rto-stat:last-child .rto-stat-track{display:none}.rto-body{grid-template-columns:1fr}.rto-chart-scroll{max-height:430px;flex:auto}.rto-periods{max-height:350px;flex:auto}.rto-driver-field{flex-basis:100%}.rto-driver-field select{max-width:none}.rto-range{width:100%;justify-content:space-between}.rto-zone{margin-left:auto}.rto-bottom{flex-direction:column;gap:4px}.rto-empty{min-height:420px}#rto-root .rto-empty h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.rto-day{transition:none}}

.rto-track-wrap{min-width:0}.rto-dst-ticks{display:flex;justify-content:space-between;font-size:9px;color:#7f8fa2;margin-top:3px}
.rto-analysis{border:1px solid #dfe7ef;border-radius:8px;background:#fff;max-height:38vh;overflow:auto;flex-shrink:0;scrollbar-width:thin}
.driver-sync{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;padding:10px 16px;background:#f1f7fb;border-bottom:1px solid #dfe7ef;color:#5d7893;font-size:11px;line-height:1.5}.driver-sync small,.driver-sync details{flex-basis:100%}.driver-sync summary{cursor:pointer}.driver-sync p{margin:4px 0;color:#ad4660}
.rto-analysis>details+details{border-top:1px solid #e6edf4}
.rto-analysis summary{padding:10px 14px;cursor:pointer;color:#294c6d;line-height:1.5;font-size:12px}
.rto-analysis summary strong{font-weight:600}.rto-analysis summary>span{color:#77899e;font-size:11px;margin-left:8px}
.rto-count{display:inline-block;margin-left:10px;min-width:24px;text-align:center;background:#eaf2fa;color:#32638a;padding:1px 5px;border-radius:4px;font-variant-numeric:tabular-nums}
.rto-count.has-findings{background:#fbe8ed;color:#bb3555}
.rto-profile-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 14px 12px}
.rto-profile-controls>label:first-child{display:grid;gap:5px;min-width:200px;font-size:11px;color:#677e94}
.rto-profile-controls .rto-check{display:flex;gap:6px;align-items:center;font-size:11px;max-width:280px}
#rto-root .rto-check input{height:15px;width:15px;flex-shrink:0;accent-color:#35668e}
.rto-profile>p,.rto-analysis-note,.rto-method p{margin:0;padding:8px 14px 12px;color:#718399;font-size:11px;line-height:1.5}
.rto-audit-scroll{overflow:auto;max-height:260px;scrollbar-width:thin}
.rto-audit-table{width:100%;border-collapse:collapse;font-size:12px;min-width:620px}
.rto-audit-table th{background:#f3f6fa;color:#4f647c;text-align:left;font-size:11px;font-weight:600;position:sticky;top:0}
.rto-audit-table :is(th,td){padding:9px 12px;border:1px solid #e7edf4;vertical-align:top}
.rto-audit-table small{display:block;color:#77899d;font-size:10px;margin-top:4px;max-width:450px;line-height:1.4}
.rto-audit-table strong{font-weight:500}.rto-audit-table a{color:#3d6a96;font-size:11px}.rto-excess{color:#c23958;white-space:nowrap;font-variant-numeric:tabular-nums}
.rto-link{padding:0;background:none;border:0;color:#315f89;font:inherit;cursor:pointer;text-align:left;white-space:nowrap}
.rto-method{border-top:1px solid #edf1f6}.rto-method ul{font-size:11px;color:#718399;line-height:1.5;margin:0;padding:0 30px 10px}
@media(max-width:800px){.rto-analysis{max-height:none;overflow:visible}.rto-profile-controls>label:first-child{width:100%}.rto-profile-controls .rto-check{max-width:none;width:100%}.rto-analysis summary>span{display:block;margin:3px 0 0 14px}}
/* Keep activity, analysis and profile in separate readable panes. */
#rto-root{gap:12px;font-size:14px}
.rto-identity{display:flex;align-items:center;gap:18px 32px;padding:14px 18px;background:#fff;border:1px solid #dfe7ef;border-radius:7px;flex-shrink:0;flex-wrap:wrap}
.rto-identity>div{display:flex;flex-direction:column;gap:5px;min-width:0}.rto-identity>div:first-child{margin-right:auto;flex:1 1 200px}.rto-identity strong{font-size:17px;font-weight:600;color:#254765}.rto-identity small,.rto-identity>div:first-child>span{font-size:12px;color:#768a9e}.rto-identity span{font-size:13px;overflow-wrap:anywhere}.rto-identity .driver-card-expiry{flex-direction:row;gap:8px;align-items:baseline;flex-wrap:wrap}
.rto-tabs{display:flex;align-items:stretch;gap:4px;border-bottom:1px solid #d8e3ed;flex-shrink:0;flex-wrap:wrap}.rto-tabs button{display:flex;align-items:center;gap:8px;padding:10px 16px;border:0;border-bottom:2px solid transparent;background:none;color:#667f98;font:inherit;font-size:13px;cursor:pointer}.rto-tabs button[aria-pressed=true]{color:#244e73;background:#eaf2f9;border-bottom-color:#426c92}.rto-tabs button span{font-size:11px;background:#fff;padding:2px 6px;border-radius:4px;color:#ad3c55}
#rto-root .rto-analysis{max-height:none;flex:1;min-height:0;overflow:auto}.rto-analysis>details{min-height:100%}.rto-analysis summary{font-size:14px;padding:15px 18px}.rto-analysis .rto-audit-scroll{max-height:none;overflow:visible}.rto-audit-table{font-size:13px;min-width:0;table-layout:fixed}.rto-audit-table th{font-size:12px;z-index:1}.rto-audit-table :is(th,td){padding:12px;overflow-wrap:anywhere}.rto-audit-table tbody tr:nth-child(even){background:#f8fafc}.rto-audit-table tbody tr:hover{background:#f1f6fb}.rto-audit-table small{font-size:11px;line-height:1.5}.rto-analysis-findings th:nth-child(2){width:29%}.rto-analysis-findings th:nth-child(3),.rto-analysis-findings th:nth-child(4){width:12%}.rto-number{font-variant-numeric:tabular-nums}.rto-audit-table .rto-link{white-space:normal;text-decoration:none;font-weight:500;line-height:1.5}.rto-excess{white-space:normal}.rto-analysis-note{font-size:12px;padding:14px 18px}.rto-profile-controls{padding:8px 18px 16px}.rto-profile-controls>label:first-child{font-size:13px;max-width:100%}.rto-profile-controls .rto-check{font-size:13px;line-height:1.5}.rto-profile>p,.rto-method p,.rto-method ul{font-size:12px;line-height:1.6}
.rto-day{height:62px}.rto-day-date strong,.rto-driving-total{font-size:13px}.rto-day-date span{font-size:11px}.rto-track{height:26px}.rto-segment.is-selected{box-shadow:inset 0 0 0 2px #193e60;z-index:1}.rto-stat strong{color:var(--rto-color)}.rto-period-line strong{font-size:13px}.rto-period-time,.rto-period-line b{font-size:12px}.rto-period-note{font-size:11px}.rto-chart-footer{font-size:11px}.rto-bottom{font-size:11px}.rto-stats{gap:10px}.rto-stat{padding:11px 14px}.rto-stat strong{margin:5px 0 8px}.rto-day-summary span{font-size:11px}
@media(max-width:1100px){.rto-body{grid-template-columns:minmax(0,1fr) 260px}.rto-axis,.rto-day{grid-template-columns:70px minmax(140px,1fr) 85px;min-width:0;gap:8px;padding:0 12px}.rto-axis{font-size:9px}.rto-identity{gap:12px 18px}.rto-identity>div:first-child{flex-basis:160px}.rto-audit-table :is(th,td){padding:9px 7px;font-size:12px}}
@media(max-width:800px){#rto-root .rto-analysis{overflow:visible;flex:auto}.rto-identity{padding:12px}.rto-identity>div:first-child{flex-basis:100%}.rto-body{grid-template-columns:1fr}.rto-tabs button{padding:9px 10px;font-size:12px}.rto-analysis-findings th:nth-child(2){width:auto}.rto-audit-table,.rto-audit-table tbody,.rto-audit-table tr,.rto-audit-table td{display:block;width:100%}.rto-audit-table thead{display:none}.rto-audit-table tr{padding:10px;border-bottom:1px solid #dce5ef}.rto-audit-table td{border:0;padding:5px}.rto-analysis-findings td:nth-child(3)::before{content:'Норма: ';color:#71859b}.rto-analysis-findings td:nth-child(4)::before{content:'Факт: ';color:#71859b}.rto-analysis-findings td:nth-child(5)::before{content:'Отклонение: ';color:#71859b}.rto-axis,.rto-day{grid-template-columns:55px minmax(100px,1fr) 70px;gap:5px;padding:0 8px}.rto-driving-total{font-size:11px}.rto-axis>div span:nth-child(even){visibility:hidden}.rto-range{gap:3px}.rto-range input{width:110px}.rto-view button{width:54px}.rto-zone select{width:150px}.rto-identity .driver-card-expiry{white-space:normal}.rto-day{height:58px}}

/* Original record evidence and quarantined date diagnostics. */
.rto-raw-day{border-bottom:1px solid var(--line,#dce5ef);padding:12px 16px}
.rto-raw-day summary{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;cursor:pointer;color:#345674}
.rto-raw-day summary span{font-size:12px;color:#74879e}
.rto-raw-day .rto-audit-scroll{margin-top:12px}
.rto-notice .rto-link{font:inherit;text-decoration:underline}
.driver-history .driver-file-partial{color:#a36e19}
.rto-tabs{flex-wrap:wrap}
.rto-analysis .rto-panel-heading{flex-wrap:wrap;gap:12px}
.rto-analysis .rto-panel-heading p{max-width:100%;overflow-wrap:anywhere}

/* Driver workspace: directory, card, activity and details. */
.rto-workspace{display:grid;grid-template-columns:minmax(210px,260px) minmax(0,1fr) minmax(245px,300px);gap:12px;flex:1;min-height:0;overflow:hidden}
.rto-directory,.rto-card-panel{background:#fff;border:1px solid #dfe7ef;border-radius:8px;min-width:0}
.rto-directory{display:flex;flex-direction:column;overflow:hidden}
.rto-directory-head{display:flex;align-items:center;justify-content:space-between;padding:16px 14px 10px}
.rto-directory-head span{color:#72879b}.rto-search-label{padding:0 12px 10px}.rto-search-label input{width:100%}
.rto-directory-list{overflow:auto;min-height:0;scrollbar-width:thin}
.rto-driver-item{display:flex;align-items:center;gap:10px;width:100%;min-height:59px;border:0;border-left:3px solid transparent;background:#fff;text-align:left;padding:8px 10px;font:inherit;color:#274360;cursor:pointer}.rto-driver-item[hidden]{display:none}.rto-driver-item:hover,.rto-driver-item.is-selected{background:#eaf3fc}.rto-driver-item.is-selected{border-left-color:#397ed0}.rto-driver-item strong,.rto-driver-item small{display:block;overflow-wrap:anywhere}.rto-driver-item strong{font-size:12px}.rto-driver-item small{color:#7890a7;font-size:10px;margin-top:4px}.rto-driver-avatar{width:35px;height:35px;display:grid;place-items:center;border-radius:6px;background:#edf3f9;color:#52769c;flex:none}.rto-driver-avatar svg{width:20px;height:20px}
.rto-main{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0;overflow:auto;scrollbar-width:thin}.rto-main .rto-chart{flex:1;min-height:250px}.rto-main .rto-tabs{flex-shrink:0}.rto-card-panel{padding:14px}.rto-card-layout{display:grid;grid-template-columns:minmax(250px,1.2fr) minmax(180px,1fr);gap:18px;margin-top:12px}.rto-card-visual{aspect-ratio:1.59;background:repeating-radial-gradient(ellipse at 55% 62%,transparent 0 3px,#a6bedb55 4px 5px,transparent 6px 9px),linear-gradient(125deg,#d7e8f9,#fae2e5 55%,#dcebf8);border:1px solid #bdccdb;border-radius:7px;box-shadow:0 2px 5px #203b5522;overflow:hidden;color:#152c49}.rto-card-top{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:6px 8px;color:#174f8a;font-size:clamp(11px,1vw,16px);background:#c7dcf1aa}.rto-card-top b{color:#fff;background:#13509a;font-size:17px;padding:1px 5px}.rto-card-country{text-align:center;font-weight:700;font-size:9px;letter-spacing:.8px;margin:4px}.rto-card-content{display:grid;grid-template-columns:30% 1fr;gap:10px;padding:4px 10px}.rto-card-portrait{min-width:0}.rto-card-photo{display:block;aspect-ratio:3/4;background-color:#e1e9f2;border:1px solid #bbcbd9}.rto-card-portrait small{display:block;font-size:8px;color:#405b74;text-align:center;margin-top:2px}.rto-card-fields{display:flex;flex-direction:column;gap:3px;font-size:clamp(9px,.8vw,12px);overflow-wrap:anywhere}.rto-card-fields span{font-size:9px;color:#546e85;margin-top:3px}.rto-card-facts{display:flex;flex-direction:column;gap:12px;justify-content:center}.rto-card-facts>div{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;align-items:start}.rto-card-facts small{color:#8294a7}.rto-card-facts strong,.rto-card-facts span{overflow-wrap:anywhere}.rto-card-facts .btn{align-self:flex-start}
.rto-workspace>.rto-details{height:100%}.rto-workspace .rto-chart-scroll{min-height:130px}.rto-workspace .rto-day{height:51px}.rto-workspace .rto-axis,.rto-workspace .rto-day{grid-template-columns:65px minmax(220px,1fr) 74px;gap:8px;min-width:400px;padding-left:12px;padding-right:12px}.rto-workspace .rto-track{height:20px}
@media(max-width:1150px){.rto-workspace{grid-template-columns:210px minmax(0,1fr);overflow:auto}.rto-workspace>.rto-details{grid-column:2;height:auto;min-height:300px}.rto-main{overflow:visible}.rto-directory{grid-row:1 / span 2;max-height:calc(100dvh - 150px);position:sticky;top:0}.rto-main .rto-chart{min-height:420px}}
@media(max-width:700px){.rto-workspace{display:flex;flex-direction:column;overflow:auto}.rto-directory{position:static;max-height:240px;flex:none}.rto-directory-list{max-height:150px}.rto-main{overflow:visible;flex:none}.rto-card-layout{grid-template-columns:1fr}.rto-card-visual{max-width:390px}.rto-card-facts{gap:7px}.rto-workspace>.rto-details{flex:none;min-height:300px}.rto-main .rto-chart{min-height:420px}.rto-workspace .rto-axis,.rto-workspace .rto-day{min-width:400px}}
.rto-workspace>.rto-details{overflow:auto;scrollbar-width:thin}.rto-workspace .rto-periods{flex:none;max-height:220px}.rto-side-sections{border-top:1px solid #e8eef4}.rto-side-sections section{padding:12px 18px;border-bottom:1px solid #e8eef4}.rto-side-sections h3{font-size:13px;margin:0 0 9px;color:#193653}.rto-side-sections h3 span{color:#c1475a;background:#fff0f1;border-radius:4px;padding:2px 5px;margin-left:5px}.rto-side-sections p{font-size:11px;line-height:1.5;color:#56728d;overflow-wrap:anywhere;margin:6px 0}.rto-side-sections .rto-side-finding{color:#ba4356}
.rto-card-portrait{position:relative}.rto-card-portrait small{position:absolute;left:0;right:0;bottom:0;margin:0;padding:2px 1px;background:#ffffffdd;color:#334f69;font-size:8px;line-height:1.15}

/* Fictional portrait placeholders; 54 faces, deterministic per driver list. */
[class*="rto-portrait-"]{background-repeat:no-repeat;background-size:600% 400%;}
.rto-portrait-0{background-image:url('./rto-driver-slavic-1.jpg');background-position:0% 0.0%;}
.rto-portrait-1{background-image:url('./rto-driver-slavic-1.jpg');background-position:20% 0.0%;}
.rto-portrait-2{background-image:url('./rto-driver-slavic-1.jpg');background-position:40% 0.0%;}
.rto-portrait-3{background-image:url('./rto-driver-slavic-1.jpg');background-position:60% 0.0%;}
.rto-portrait-4{background-image:url('./rto-driver-slavic-1.jpg');background-position:80% 0.0%;}
.rto-portrait-5{background-image:url('./rto-driver-slavic-1.jpg');background-position:100% 0.0%;}
.rto-portrait-6{background-image:url('./rto-driver-slavic-1.jpg');background-position:0% 33.33333%;}
.rto-portrait-7{background-image:url('./rto-driver-slavic-1.jpg');background-position:20% 33.33333%;}
.rto-portrait-8{background-image:url('./rto-driver-slavic-1.jpg');background-position:40% 33.33333%;}
.rto-portrait-9{background-image:url('./rto-driver-slavic-1.jpg');background-position:60% 33.33333%;}
.rto-portrait-10{background-image:url('./rto-driver-slavic-1.jpg');background-position:80% 33.33333%;}
.rto-portrait-11{background-image:url('./rto-driver-slavic-1.jpg');background-position:100% 33.33333%;}
.rto-portrait-12{background-image:url('./rto-driver-slavic-1.jpg');background-position:0% 66.66667%;}
.rto-portrait-13{background-image:url('./rto-driver-slavic-1.jpg');background-position:20% 66.66667%;}
.rto-portrait-14{background-image:url('./rto-driver-slavic-1.jpg');background-position:40% 66.66667%;}
.rto-portrait-15{background-image:url('./rto-driver-slavic-1.jpg');background-position:60% 66.66667%;}
.rto-portrait-16{background-image:url('./rto-driver-slavic-1.jpg');background-position:80% 66.66667%;}
.rto-portrait-17{background-image:url('./rto-driver-slavic-1.jpg');background-position:100% 66.66667%;}
.rto-portrait-18{background-image:url('./rto-driver-slavic-1.jpg');background-position:0% 100.0%;}
.rto-portrait-19{background-image:url('./rto-driver-slavic-1.jpg');background-position:20% 100.0%;}
.rto-portrait-20{background-image:url('./rto-driver-slavic-1.jpg');background-position:40% 100.0%;}
.rto-portrait-21{background-image:url('./rto-driver-slavic-1.jpg');background-position:60% 100.0%;}
.rto-portrait-22{background-image:url('./rto-driver-slavic-1.jpg');background-position:80% 100.0%;}
.rto-portrait-23{background-image:url('./rto-driver-slavic-1.jpg');background-position:100% 100.0%;}
.rto-portrait-24{background-image:url('./rto-driver-slavic-2.jpg');background-position:0% 0.0%;}
.rto-portrait-25{background-image:url('./rto-driver-slavic-2.jpg');background-position:20% 0.0%;}
.rto-portrait-26{background-image:url('./rto-driver-slavic-2.jpg');background-position:40% 0.0%;}
.rto-portrait-27{background-image:url('./rto-driver-slavic-2.jpg');background-position:60% 0.0%;}
.rto-portrait-28{background-image:url('./rto-driver-slavic-2.jpg');background-position:80% 0.0%;}
.rto-portrait-29{background-image:url('./rto-driver-slavic-2.jpg');background-position:100% 0.0%;}
.rto-portrait-30{background-image:url('./rto-driver-slavic-2.jpg');background-position:0% 33.33333%;}
.rto-portrait-31{background-image:url('./rto-driver-slavic-2.jpg');background-position:20% 33.33333%;}
.rto-portrait-32{background-image:url('./rto-driver-slavic-2.jpg');background-position:40% 33.33333%;}
.rto-portrait-33{background-image:url('./rto-driver-slavic-2.jpg');background-position:60% 33.33333%;}
.rto-portrait-34{background-image:url('./rto-driver-slavic-2.jpg');background-position:80% 33.33333%;}
.rto-portrait-35{background-image:url('./rto-driver-slavic-2.jpg');background-position:100% 33.33333%;}
.rto-portrait-36{background-image:url('./rto-driver-slavic-2.jpg');background-position:0% 66.66667%;}
.rto-portrait-37{background-image:url('./rto-driver-slavic-2.jpg');background-position:20% 66.66667%;}
.rto-portrait-38{background-image:url('./rto-driver-slavic-2.jpg');background-position:40% 66.66667%;}
.rto-portrait-39{background-image:url('./rto-driver-slavic-2.jpg');background-position:60% 66.66667%;}
.rto-portrait-40{background-image:url('./rto-driver-slavic-2.jpg');background-position:80% 66.66667%;}
.rto-portrait-41{background-image:url('./rto-driver-slavic-2.jpg');background-position:100% 66.66667%;}
.rto-portrait-42{background-image:url('./rto-driver-slavic-2.jpg');background-position:0% 100.0%;}
.rto-portrait-43{background-image:url('./rto-driver-slavic-2.jpg');background-position:20% 100.0%;}
.rto-portrait-44{background-image:url('./rto-driver-slavic-2.jpg');background-position:40% 100.0%;}
.rto-portrait-45{background-image:url('./rto-driver-slavic-2.jpg');background-position:60% 100.0%;}
.rto-portrait-46{background-image:url('./rto-driver-slavic-2.jpg');background-position:80% 100.0%;}
.rto-portrait-47{background-image:url('./rto-driver-slavic-2.jpg');background-position:100% 100.0%;}
.rto-portrait-48{background-image:url('./rto-driver-slavic-3.jpg');background-size:300% 200%;background-position:0% 0%;}
.rto-portrait-49{background-image:url('./rto-driver-slavic-3.jpg');background-size:300% 200%;background-position:50% 0%;}
.rto-portrait-50{background-image:url('./rto-driver-slavic-3.jpg');background-size:300% 200%;background-position:100% 0%;}
.rto-portrait-51{background-image:url('./rto-driver-slavic-3.jpg');background-size:300% 200%;background-position:0% 100%;}
.rto-portrait-52{background-image:url('./rto-driver-slavic-3.jpg');background-size:300% 200%;background-position:50% 100%;}
.rto-portrait-53{background-image:url('./rto-driver-slavic-3.jpg');background-size:300% 200%;background-position:100% 100%;}
/* RTO overview: identity, tabs and full-width chart, followed by summaries. */
.rto-workspace{grid-template-columns:minmax(210px,260px) minmax(0,1fr)}
.rto-main{overflow:auto}.rto-main .rto-chart{flex:none;min-height:390px}.rto-main .rto-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.rto-main .rto-tabs button{white-space:nowrap;flex:none}
.rto-card-layout{grid-template-columns:minmax(250px,.95fr) minmax(280px,1fr)}.rto-card-visual{max-width:500px}.rto-card-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}.rto-card-stats>div{padding:9px 7px;background:var(--rto-pale);border-radius:5px;min-width:0}.rto-card-stats small,.rto-card-stats strong{display:block;font-size:10px;overflow-wrap:anywhere}.rto-card-stats strong{font-size:12px;color:var(--rto-color);margin-top:7px}
.rto-bottom-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rto-bottom-cards>section{min-width:0;background:#fff;border:1px solid #dfe7ef;border-radius:8px;padding:13px}.rto-bottom-cards header{display:flex;justify-content:space-between;align-items:center;gap:8px}.rto-bottom-cards header h2{font-size:13px!important}.rto-bottom-cards p,.rto-bottom-row{display:flex;justify-content:space-between;gap:8px;border:0;border-bottom:1px solid #eef2f6;background:none;width:100%;padding:9px 0;margin:0;text-align:left;font:inherit;font-size:11px;color:#456078}.rto-bottom-cards p strong,.rto-bottom-row strong{overflow-wrap:anywhere}.rto-bottom-cards p small,.rto-bottom-row small{color:#8092a4;white-space:nowrap}.rto-bottom-row{cursor:pointer}.rto-day-expander{background:#fff;border:1px solid #dfe7ef;border-radius:8px}.rto-day-expander>summary{padding:13px;cursor:pointer;color:#345b81;font-weight:600}.rto-day-expander .rto-details{max-height:440px}.rto-day-expander .rto-periods{max-height:250px}
@media(max-width:1150px){.rto-workspace{grid-template-columns:210px minmax(0,1fr)}.rto-directory{grid-row:auto}.rto-main{overflow:visible}.rto-card-layout{grid-template-columns:minmax(200px,1fr) minmax(200px,1fr)}}
@media(max-width:700px){.rto-workspace{display:flex}.rto-card-layout{grid-template-columns:1fr}.rto-bottom-cards{grid-template-columns:1fr}.rto-card-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Driver-card reference proportions; live text over a decorative generated texture. */
.rto-card-preview{min-width:0;align-self:start;width:100%;max-width:500px}
.rto-card-visual{position:relative;container-type:inline-size;width:100%;aspect-ratio:1485/870;max-width:none;align-self:start;border:1px solid #cfc7c5;border-radius:14px;background:#f0e6e5 url('./rto-card-reference-bg.jpg') center/100% 100% no-repeat;box-shadow:0 2px 5px #263b501c;color:#111;font-family:Arial,sans-serif}
.rto-card-top{position:absolute;left:4%;top:5.5%;width:93%;height:16%;display:grid;grid-template-columns:16.4% 1fr 13%;gap:0;align-items:center;padding:0;background:none;color:#12457d;font-size:5.7cqw;line-height:1;white-space:nowrap}
.rto-card-top b{display:grid;place-items:center;height:100%;padding:0;border-radius:1cqw;background:#0753a1;font-size:7cqw;color:#fff;letter-spacing:.1cqw}
.rto-card-top strong{font-weight:700;text-align:center;font-size:inherit;letter-spacing:.1cqw}.rto-card-top strong:last-child{font-size:4.1cqw}
.rto-card-country{position:absolute;top:20.5%;left:29.5%;width:64%;margin:0;font-size:2.25cqw;letter-spacing:.35cqw;line-height:1.3;font-weight:700;color:#144c82;text-align:center}
.rto-card-portrait{position:absolute;left:3.5%;top:27.5%;width:24.5%;height:53%;border-radius:1cqw;overflow:hidden}
.rto-card-photo{width:100%;height:100%;aspect-ratio:auto;border:0}
.rto-card-fields{position:absolute;left:31.5%;top:30.5%;width:65%;height:45%;display:grid;grid-template-rows:repeat(6,1fr);gap:0;font-size:3.05cqw;line-height:1.12;color:#111}
.rto-card-field{display:grid;grid-template-columns:8% minmax(0,1fr);align-items:center;gap:0;min-width:0}
.rto-card-fields .rto-card-field span{font:inherit;color:inherit;margin:0}
.rto-card-field strong{font:inherit;font-weight:600;overflow-wrap:anywhere;min-width:0}.rto-card-field strong.is-long{font-size:2.5cqw}
.rto-card-caption{display:block;text-align:left;color:#8392a1;font-size:9px;line-height:1.4;margin-top:5px}
/* Compact driver workspace: preserve portrait ratio and keep the overview in the viewport. */
.rto-driver-avatar{width:30px;height:40px;aspect-ratio:3/4;border-radius:4px}
.rto-driver-item>span:last-child{min-width:0}.rto-driver-item strong{font-size:12px;line-height:1.3}.rto-driver-item small{font-size:9px}
.rto-card-panel .rto-card-layout{margin-top:0}
.rto-card-portrait{height:auto;aspect-ratio:3/4}
.rto-card-field strong.is-organization{font-size:2.3cqw;line-height:1.08;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rto-notices{position:relative;background:#fff7e9;border:1px solid #efdab5;border-radius:5px;color:#80643a;font-size:11px;flex:none;z-index:4}
.rto-notices>summary{cursor:pointer;padding:5px 10px}
.rto-notices[open]>div{position:absolute;left:0;right:0;top:100%;background:#fffaf1;border:1px solid #efdab5;box-shadow:0 6px 18px #23374922;max-height:200px;overflow:auto}
.rto-notices .rto-notice{margin:0;border:0;background:none;padding:8px 10px}
@media(min-width:1100px){
 .shell:has(.rto-workspace) .content{padding:10px 16px 8px}
 #rto-root:has(.rto-workspace){gap:8px}
 .rto-workspace{grid-template-columns:190px minmax(0,1fr);gap:10px;overflow:hidden}
 .rto-directory{position:static;max-height:none;min-height:0;grid-row:auto}
 .rto-directory-head{padding:10px 10px 7px}.rto-search-label{padding:0 8px 7px}
 #rto-search{font-size:11px!important;padding-inline:7px!important}
 .rto-driver-item{padding:6px 7px;gap:7px;min-height:52px}
 .rto-main{overflow:hidden;gap:7px}
 .rto-card-panel{padding:8px 10px;flex:none}
 .rto-card-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:16px;align-items:center}
 .rto-card-preview{width:min(100%,calc((clamp(160px,24dvh,240px) - 14px)*1.7069));max-width:none;justify-self:center}
 .rto-card-caption{font-size:8px;margin-top:2px;line-height:1.2}
 .rto-card-facts{gap:5px;font-size:12px;min-width:0}
 .rto-card-facts>div{grid-template-columns:112px minmax(0,1fr);gap:8px}
 .rto-card-facts .driver-card-expiry{line-height:1.2}
 #rto-root .rto-card-facts>.btn{min-height:25px;height:25px;font-size:11px}
 .rto-card-stats>div{padding:6px!important}.rto-card-stats small{font-size:9px!important}.rto-card-stats strong{font-size:12px!important;margin-top:4px}
 .rto-main .rto-tabs{min-height:30px;margin:0}.rto-main .rto-tabs button{padding:7px 10px;font-size:11px}
 .rto-main .rto-chart{flex:1 1 200px;min-height:170px}
 .rto-main .rto-panel-heading{padding:7px 10px 6px}
 #rto-root .rto-main .rto-panel-heading h2{font-size:13px}
 #rto-root .rto-main .rto-panel-heading p{margin-top:2px;font-size:10px}
 .rto-workspace .rto-chart-scroll{display:flex;flex-direction:column;min-height:0}
 .rto-workspace .rto-axis{height:24px;flex:none}
 .rto-workspace .rto-day{height:auto;flex:1 0 23px;min-height:23px;padding-block:2px}
 .rto-workspace .rto-day-date{display:flex;align-items:center;gap:7px}.rto-workspace .rto-day-date strong{font-size:11px;white-space:nowrap}.rto-workspace .rto-day-date span{margin:0;font-size:9px}
 .rto-workspace .rto-track{height:16px}.rto-workspace .rto-driving-total{font-size:11px}
 .rto-workspace .rto-axis,.rto-workspace .rto-day{grid-template-columns:84px minmax(220px,1fr) 74px;padding-inline:10px;gap:8px}
 .rto-chart-footer{padding:6px 10px;gap:10px;font-size:9px}
 .rto-bottom-cards{flex:0 0 clamp(95px,13dvh,140px);min-height:0;gap:8px}
 .rto-bottom-cards>section{padding:7px 9px;overflow:auto;scrollbar-width:thin}
 .rto-bottom-cards header{position:sticky;top:-7px;background:#fff;padding:2px 0 5px;gap:4px}
 #rto-root .rto-bottom-cards header h2{font-size:11px!important}.rto-bottom-cards header .rto-link{font-size:10px;white-space:nowrap}
 .rto-bottom-cards p,.rto-bottom-row{font-size:10px;padding:5px 0}.rto-bottom-cards p small,.rto-bottom-row small{font-size:9px}
 .rto-bottom-cards p strong{min-width:0;overflow-wrap:anywhere}
 .rto-day-expander{position:relative;flex:none;z-index:3}
 .rto-day-expander>summary{padding:5px 10px;font-size:11px}
 .rto-day-expander[open]>.rto-details{position:absolute;bottom:calc(100% + 5px);left:0;right:0;max-height:min(400px,60dvh);height:min(400px,60dvh);box-shadow:0 6px 24px #203a5533}
 .rto-main>.rto-analysis{min-height:0;overflow:auto;flex:1}
}
@media(min-width:1100px) and (max-height:800px){
 .rto-card-preview{width:min(100%,260px)}
 .rto-card-facts{font-size:11px;gap:3px}.rto-card-stats>div{padding:4px!important}.rto-card-stats strong{font-size:11px!important}
 .rto-main{gap:5px}.rto-card-panel{padding:6px 8px}.rto-main .rto-chart{min-height:155px}.rto-bottom-cards{flex-basis:90px}
}

@media(min-width:1100px){.rto-facts-organization{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}
@media(min-width:1100px){
 .shell:has(.rto-workspace) .topbar:has(.fleet-topbar-title)>.topbar-controls{grid-column:2;grid-row:1}
}
@media(min-width:1100px) and (max-height:800px){
 .rto-main .rto-panel-heading>div{display:flex;align-items:center;gap:10px}
 #rto-root .rto-main .rto-panel-heading p{margin:0;font-size:9px}
 .rto-workspace .rto-day{min-height:19px;flex-basis:19px;padding-block:1px}
 .rto-workspace .rto-track{height:14px}
 .rto-workspace .rto-axis{height:21px}
 .rto-chart-footer{padding-block:4px}
}
@media(min-width:1100px) and (max-height:800px){
 /* The same action remains in the always-visible "Записи карты" tab. */
 .rto-card-facts>.btn{display:none}
}
@media(min-width:1100px) and (max-height:740px){
 .rto-card-preview{width:min(100%,230px)}
 .rto-main .rto-tabs button{padding-block:5px}
}

/* Variant 02: narrow printed lettering, aligned with the portrait. */
@font-face{font-family:'Taho Card Condensed';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/RobotoCondensed-Regular.woff2') format('woff2')}
.rto-card-fields{top:27.5%;height:calc(24.5cqw / .75);display:flex;flex-direction:column;justify-content:space-between;gap:0;font-family:'Taho Card Condensed','Arial Narrow',Arial,sans-serif;font-size:3.7cqw;line-height:1.08;font-weight:400;font-synthesis:none}
.rto-card-field{flex:none;width:100%;grid-template-columns:8% minmax(0,1fr);align-items:start}
.rto-card-field strong{font-weight:400;letter-spacing:0}
.rto-card-field strong.is-long{font-size:3.2cqw}
.rto-card-field strong.is-organization{font-size:2.8cqw;line-height:1.08}
/* RTO period controls share the Orders header's control sizing and palette. */
.shell .topbar:has(.rto-header-actions){grid-template-columns:auto minmax(0,1fr);gap:8px 16px}
.shell .topbar:has(.rto-header-actions) .fleet-topbar-title p{display:none}
.shell .topbar:has(.rto-header-actions) .fleet-topbar-title h1::after{display:none}
.shell .topbar:has(.rto-header-actions)>.topbar-controls{display:flex;grid-column:2;grid-row:1;justify-self:end;min-width:0;max-width:100%;width:auto}
.shell .topbar:has(.rto-header-actions) .topbar-fleet-actions{min-width:0;max-width:100%;width:auto}
.rto-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 12px;max-width:100%;min-width:0}
.rto-header-actions .rto-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;min-width:0;max-width:100%;margin:0}
.shell .rto-header-actions .rto-file-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;width:auto;flex-wrap:nowrap}
.rto-header-actions .rto-range{gap:6px;min-width:0;max-width:100%;width:auto;color:#8292a4}
.rto-header-actions .rto-range input{width:108px}
.rto-header-actions .rto-zone{margin-left:0;min-width:0;max-width:100%}
.rto-header-actions .rto-zone select{width:184px;padding-right:22px}
.shell .rto-header-actions :is(.btn,input,select,.rto-view button){box-sizing:border-box;height:var(--fleet-action-height);min-height:var(--fleet-action-height);padding:4px 10px;border:1px solid #d7e0ef;border-radius:5px;gap:5px;font-family:inherit;font-size:13px;font-weight:400;line-height:16px;white-space:nowrap;background:#fff;color:#365b7c;box-shadow:none;margin:0}
.shell .rto-header-actions :is(input,select){min-width:0;max-width:100%;outline:none}
.shell .rto-header-actions :is(input,select):focus-visible,.shell .rto-header-actions button:focus-visible{outline:2px solid #749dcd;outline-offset:2px}
.shell .rto-header-actions .rto-arrow{width:var(--fleet-action-height);padding:4px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.shell .rto-header-actions .icon{width:14px;height:14px;flex:none}
.shell .rto-header-actions .rto-view{border-color:#d7e0ef;border-radius:5px;flex:none;box-sizing:border-box;height:var(--fleet-action-height)}
.shell .rto-header-actions .rto-view button{width:auto;min-width:50px;height:calc(var(--fleet-action-height) - 2px);min-height:0;border:0;border-right:1px solid #d7e0ef;border-radius:0;padding:3px 9px}
.shell .rto-header-actions .rto-view button:last-child{border-right:0}
.shell .rto-header-actions .rto-view button[aria-pressed=true],.shell .rto-header-actions .btn.primary{background:#3d607f;border-color:#3d607f;color:#fff}
.shell .rto-header-actions .btn.primary:hover{background:#304e69;border-color:#304e69}
.shell .rto-header-actions .rto-view button:not([aria-pressed=true]):hover,.shell .rto-header-actions .rto-arrow:hover{background:#e9f0f8}
@media(max-width:1199px){
 .shell .topbar:has(.rto-header-actions)>.topbar-controls{grid-column:1/-1;grid-row:2;width:100%}
 .shell .topbar:has(.rto-header-actions) .topbar-fleet-actions{width:100%}
}
@media(max-width:959px){
 .shell .topbar:has(.rto-header-actions){grid-template-columns:auto minmax(0,1fr)}
 .shell .topbar:has(.rto-header-actions) .fleet-topbar-title h1{grid-column:2;grid-row:1}
 .shell .topbar:has(.rto-header-actions) .topbar-fleet-actions{grid-column:auto;grid-row:auto}
}
@media(max-width:699px){
 .rto-header-actions{gap:8px;justify-content:flex-end}
 .rto-header-actions .rto-toolbar{gap:6px;flex-basis:100%}
 .shell .rto-header-actions .rto-range{flex:1 1 100%;justify-content:flex-end}
 .shell .rto-header-actions .rto-range input{width:min(108px,calc((100vw - 132px)/2));padding-inline:5px}
}
/* Leave room for the full date and the browser's calendar indicator. */
.rto-header-actions .rto-range input{width:128px}
@media(max-width:699px){.shell .rto-header-actions .rto-range input{font-size:12px;padding-inline:4px}}

/* Driver details and period totals, matching the RTO design reference. */
.rto-card-facts.rto-facts-redesign{gap:12px;justify-content:space-between;min-width:0}
.rto-facts-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#rto-root .rto-facts-heading h2{font-size:18px;line-height:1.25;margin:0;color:#203c59;overflow-wrap:anywhere}
#rto-root .rto-facts-heading .btn{height:28px;min-height:28px;padding:4px 9px;font-size:12px;white-space:nowrap;flex:none;gap:7px}
.rto-facts-heading .btn svg{width:14px;height:14px}
.rto-facts-rows{margin:0;display:grid;gap:7px;font-size:13px}
.rto-facts-rows>div{display:grid;grid-template-columns:minmax(105px,.8fr) minmax(0,1.3fr);gap:12px;align-items:center}
.rto-facts-rows dt{color:#7c91a7}.rto-facts-rows dd{margin:0;color:#365570;font-weight:600;overflow-wrap:anywhere}
.rto-card-status{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:4px 10px;color:#259b85;background:#eef9f5;font-size:12px;font-weight:600;line-height:1.2}
.rto-card-status svg{width:14px;height:14px;flex:none}.rto-card-status.is-soon{color:#b67c1e;background:#fff5df}.rto-card-status.is-expired{color:#d1485d;background:#fff0f2}.rto-card-status.is-unknown{color:#78879a;background:#f0f3f7}
#rto-root .rto-facts-redesign .rto-card-stats{gap:8px!important}
#rto-root .rto-facts-redesign .rto-card-stats>div{background:#fff;border:1px solid #e4ecf4;border-radius:7px;padding:11px 10px!important;min-width:0}
.rto-stat-label{display:flex;justify-content:space-between;align-items:flex-start;gap:5px;min-height:32px}
#rto-root .rto-facts-redesign .rto-card-stats small{font-size:11px!important;line-height:1.25;color:#75899f}
.rto-stat-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;color:var(--rto-color);background:var(--rto-pale);flex:none}
.rto-stat-icon svg{width:18px;height:18px}
#rto-root .rto-facts-redesign .rto-card-stats strong{font-size:16px!important;line-height:1.25;margin:10px 0 9px;white-space:nowrap;letter-spacing:-.3px}
.rto-card-stats progress{display:block;appearance:none;border:0;width:100%;height:4px;border-radius:5px;overflow:hidden;background:var(--rto-pale);color:var(--rto-color)}
.rto-card-stats progress::-webkit-progress-bar{background:var(--rto-pale);border-radius:5px}.rto-card-stats progress::-webkit-progress-value{background:var(--rto-color);border-radius:5px}.rto-card-stats progress::-moz-progress-bar{background:var(--rto-color);border-radius:5px}
@media(min-width:1100px){.rto-card-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.rto-card-facts.rto-facts-redesign{gap:8px}#rto-root .rto-facts-heading h2{font-size:16px}.rto-facts-rows{gap:5px;font-size:12px}}
@media(min-width:1100px) and (max-height:800px){
 .rto-card-facts.rto-facts-redesign{gap:5px}#rto-root .rto-facts-heading h2{font-size:14px}#rto-root .rto-facts-heading .btn{height:24px;min-height:24px;font-size:11px}
 .rto-facts-rows{gap:3px;font-size:11px}.rto-card-status{font-size:10px;padding:3px 7px}
 #rto-root .rto-facts-redesign .rto-card-stats>div{padding:6px!important}#rto-root .rto-facts-redesign .rto-card-stats strong{font-size:12px!important;margin:5px 0 6px}
 #rto-root .rto-facts-redesign .rto-card-stats small{font-size:9px!important}.rto-stat-label{min-height:24px}.rto-stat-icon{width:22px;height:22px}.rto-stat-icon svg{width:15px;height:15px}
}
@media(min-width:701px) and (max-width:1099px){.rto-card-layout{grid-template-columns:1fr}.rto-card-preview{max-width:360px;justify-self:center}}
@media(max-width:700px){#rto-root .rto-facts-heading h2{font-size:16px}.rto-facts-rows{font-size:12px}.rto-facts-rows>div{grid-template-columns:105px minmax(0,1fr);gap:8px}.rto-facts-heading{gap:6px}}
@media(min-width:1100px) and (max-height:740px){
 .rto-facts-rows{gap:2px;line-height:1.2}.rto-card-facts.rto-facts-redesign{gap:4px}
 #rto-root .rto-facts-heading .btn{height:22px;min-height:22px}
 #rto-root .rto-facts-redesign .rto-card-stats strong{margin:3px 0 4px}
 .rto-facts-redesign .rto-stat-label{min-height:20px}.rto-facts-redesign .rto-stat-icon{height:20px;width:20px}
}

/* Keep full driver names on one line; the existing title exposes the full name. */
.rto-driver-item>span:last-child{flex:1;min-width:0}
.rto-driver-item strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}

/* Size the directory from the actual full-name font metrics. */
@media(min-width:701px){
 .rto-workspace{grid-template-columns:min(var(--rto-directory-width,320px),42%) minmax(0,1fr)}
 .rto-directory{min-width:0;width:100%}
 .rto-directory-list{scrollbar-gutter:stable}
}
@media(min-width:1100px) and (max-width:1350px){
 .rto-facts-redesign .rto-stat-label{gap:3px}
 .rto-facts-redesign .rto-stat-icon{width:14px;height:18px;background:none}
 .rto-facts-redesign .rto-stat-icon svg{width:13px;height:13px}
}

/* The same client/zone controls and listbox design as Orders. */
.rto-header-actions .rto-toolbar{display:contents}
.shell .rto-header-actions .rto-picker{display:flex;align-items:center;justify-content:space-between;gap:8px;width:clamp(240px,18vw,320px);max-width:100%;flex:0 0 auto;padding:4px 10px;box-sizing:border-box;height:var(--fleet-action-height);min-height:var(--fleet-action-height);border:1px solid #d7e0ef;border-radius:6px;box-shadow:none;background:#fff;color:#234466;text-align:left;cursor:pointer;font:400 12px/16px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:normal;font-variant-numeric:tabular-nums}
.shell .rto-header-actions .rto-picker-zone{width:184px}
.rto-picker>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rto-header-actions .rto-picker>.icon{width:14px;height:14px;flex:0 0 14px;transform:rotate(90deg)}.rto-header-actions .rto-picker[aria-expanded="true"]>.icon{transform:rotate(-90deg)}
.shell .rto-header-actions .rto-picker:is(:hover,:focus,:focus-visible,:active,[aria-expanded="true"]){background:#fff;color:#234466;border:1px solid #d7e0ef;outline:none;box-shadow:none;filter:none}.shell .rto-header-actions .rto-picker:focus-visible{border-color:#98b5ef}
.rto-header-actions .rto-picker-options{position:fixed;inset:auto;margin:0;z-index:1250;box-sizing:border-box;padding:5px;border:0;border-radius:7px;background:#fff;box-shadow:0 8px 24px #173d6824;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bdcfdf transparent}
.rto-picker-options:not([popover]),.rto-picker-options:popover-open{display:block}
.rto-picker-options>button{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;padding:8px;border:0;border-radius:4px;background:transparent;color:#234466;font:400 12px/16px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:normal;font-variant-numeric:tabular-nums;text-align:left;cursor:pointer}
.rto-picker-options>button>span:first-child{min-width:0;overflow-wrap:anywhere}.rto-picker-check{flex:0 0 14px;color:#306b9d}
.rto-picker-options>button[aria-selected="true"]{background:#dceaf8;font-weight:600}.rto-picker-options>button:hover,.rto-picker-options>button:focus-visible{outline:none;background:#d6e6f6}

/* Keep the card left-aligned, details close, and both lower edges on one baseline. */
.rto-card-layout{gap:12px;align-items:end}
.rto-card-preview{justify-self:start;align-self:end}
.rto-facts-rows{grid-template-columns:max-content minmax(0,1fr);column-gap:14px;align-items:center}
.rto-facts-rows>div{display:contents}
.rto-card-facts.rto-facts-redesign{width:100%}
#rto-root .rto-facts-redesign .rto-card-stats{width:100%;align-self:stretch;margin-bottom:0}
@media(min-width:1100px){
 .rto-card-layout{--rto-card-width:calc((clamp(160px,24dvh,240px) - 14px)*1.7069);grid-template-columns:min(40%,var(--rto-card-width)) minmax(0,1fr);align-items:end;gap:12px}
 .rto-card-preview{width:100%;max-width:none;justify-self:start;align-self:end}
 .rto-card-facts.rto-facts-redesign{justify-content:flex-start;gap:7px}
 .rto-facts-rows{row-gap:4px}
}
@media(min-width:1100px) and (max-height:800px){.rto-card-layout{--rto-card-width:260px}.rto-card-facts.rto-facts-redesign{gap:5px}.rto-facts-rows{row-gap:3px}}
@media(min-width:1100px) and (max-height:740px){.rto-card-layout{--rto-card-width:230px}.rto-card-facts.rto-facts-redesign{gap:4px}.rto-facts-rows{row-gap:2px}}
@media(min-width:1100px) and (max-width:1599px) and (min-height:801px){
 #rto-root .rto-facts-redesign .rto-card-stats small{font-size:10px!important}
 .rto-facts-redesign .rto-stat-icon{width:22px;height:22px}
 .rto-facts-redesign .rto-stat-icon svg{width:16px;height:16px}
}

/* Compact, non-interactive overview: dates and totals stay readable. */
.rto-main .rto-chart.is-static{flex:0 1 auto;min-height:0}
.rto-chart.is-static .rto-chart-scroll{flex:0 1 auto;min-height:0}
.rto-chart.is-static .rto-day{height:27px;min-height:27px;flex:0 0 27px;padding-block:2px;transition:none}
.rto-chart.is-static .rto-axis,.rto-chart.is-static .rto-day{grid-template-columns:108px minmax(180px,1fr) 100px;gap:10px;padding-inline:12px}
.rto-chart.is-static .rto-day-date{display:flex;align-items:center;gap:8px}
.rto-chart.is-static :is(.rto-day-date,.rto-driving-total,.rto-segment){cursor:default}
.rto-chart.is-static .rto-day-date strong,.rto-chart.is-static .rto-driving-total{font-size:14px;font-weight:700;line-height:18px}
.rto-chart.is-static .rto-day-date span{font-size:12px;font-weight:600;line-height:16px;margin:0}
.rto-chart.is-static .rto-track{height:21px;border-radius:2px}
.rto-chart.is-static .rto-segment:hover{filter:none}
.rto-chart.is-static .rto-axis{height:28px;flex:none;font-size:11px;font-weight:600}
.rto-chart.is-static .rto-chart-footer{padding:9px 12px;gap:8px 16px;font-size:13px;font-weight:500;line-height:18px}
.rto-chart.is-static .rto-chart-footer i{width:9px;height:9px;border-radius:3px}
#rto-root .rto-chart.is-static .rto-panel-heading p{font-size:12px;line-height:16px}
@media(min-width:1100px) and (max-height:800px){
 .rto-chart.is-static .rto-day{height:23px;min-height:23px;flex-basis:23px;padding-block:2px}
 .rto-chart.is-static .rto-day-date strong,.rto-chart.is-static .rto-driving-total{font-size:13px;line-height:16px}
 .rto-chart.is-static .rto-day-date span{font-size:11px;line-height:15px}
 .rto-chart.is-static .rto-track{height:17px}
 .rto-chart.is-static .rto-axis{height:23px}
 .rto-chart.is-static .rto-chart-footer{padding-block:5px;font-size:12px;gap:6px 12px;line-height:16px}
 #rto-root .rto-chart.is-static .rto-panel-heading p{font-size:11px}
}
@media(max-width:1099px){.rto-chart.is-static .rto-chart-scroll{max-height:430px}.rto-chart.is-static .rto-axis,.rto-chart.is-static .rto-day{min-width:500px}}
@media(max-width:1099px){.rto-main .rto-chart.is-static{flex:none}.rto-chart.is-static .rto-chart-scroll{flex:none;max-height:430px}}

/* Compact details to the card height instead of leaving a blank area above it. */
@media(min-width:1100px){
 .rto-card-layout{align-items:stretch}
 .rto-card-preview{align-self:start}
 .rto-card-facts.rto-facts-redesign{align-self:stretch;gap:4px}
 #rto-root .rto-facts-heading .btn{height:24px;min-height:24px;padding-block:2px}
 .rto-facts-rows{row-gap:0;font-size:12px;line-height:14px}
 .rto-facts-rows dd,.rto-facts-rows dt{line-height:14px}
 .rto-facts-rows .rto-card-status{padding:2px 7px;font-size:11px;line-height:14px}
 #rto-root .rto-facts-redesign .rto-card-stats{margin-top:auto}
 #rto-root .rto-facts-redesign .rto-card-stats>div{padding:4px 6px!important}
 .rto-facts-redesign .rto-stat-label{min-height:22px;gap:4px}
 #rto-root .rto-facts-redesign .rto-card-stats small{font-size:10px!important;line-height:11px}
 .rto-facts-redesign .rto-stat-icon{width:18px;height:18px}
 .rto-facts-redesign .rto-stat-icon svg{width:14px;height:14px}
 #rto-root .rto-facts-redesign .rto-card-stats strong{font-size:14px!important;line-height:16px;margin:3px 0}
}
@media(min-width:1100px) and (max-height:800px){
 .rto-card-layout{--rto-card-width:260px}
 #rto-root .rto-facts-heading .btn{height:20px;min-height:20px;font-size:10px;padding:1px 7px}
 #rto-root .rto-facts-heading h2{font-size:13px;line-height:17px}
 .rto-card-facts.rto-facts-redesign{gap:3px}
 .rto-facts-rows{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 12px}
 .rto-facts-rows>div{display:block;min-width:0}
 .rto-facts-rows dt{font-size:9px;line-height:10px;margin:0 0 1px}
 .rto-facts-rows dd{font-size:11px;line-height:12px}
 .rto-facts-rows .rto-card-status{font-size:10px;line-height:12px;padding:0 5px;min-height:14px}
 .rto-facts-rows .rto-card-status svg{height:12px;width:12px}
 #rto-root .rto-facts-redesign .rto-card-stats>div{padding:3px 5px!important}
 .rto-facts-redesign .rto-stat-label{min-height:20px;gap:2px}
 #rto-root .rto-facts-redesign .rto-card-stats small{font-size:9px!important;line-height:10px}
 .rto-facts-redesign .rto-stat-icon{width:13px;height:14px;background:none}
 .rto-facts-redesign .rto-stat-icon svg{width:12px;height:12px}
 #rto-root .rto-facts-redesign .rto-card-stats strong{font-size:11px!important;line-height:13px;margin:2px 0}
}
@media(min-width:1100px) and (max-height:800px){
 .rto-card-facts.rto-facts-redesign{gap:2px}
 .rto-facts-redesign .rto-stat-label{min-height:18px}
 #rto-root .rto-facts-redesign .rto-card-stats strong{margin:1px 0}
}
@media(min-width:1100px) and (max-height:800px){#rto-root .rto-facts-redesign .rto-card-stats>div{padding:2px 5px!important}}
@media(min-width:1100px) and (max-height:800px){.shell .rto-facts-rows .driver-read-status.is-expired::before{width:12px;height:12px;flex-basis:12px;background-size:12px 12px}}
@media(min-width:1100px) and (min-height:801px){.shell .rto-facts-rows .driver-read-status.is-expired::before{width:14px;height:14px;flex-basis:14px;background-size:14px 14px}}
@media(min-width:1100px){.rto-facts-rows .driver-read-status{vertical-align:top}}

/* Enlarge facts only into existing free space; panel/card dimensions stay fixed. */
@media(min-width:1100px) and (min-height:801px){
 .rto-facts-rows{font-size:var(--rto-facts-font,12px);line-height:var(--rto-facts-line,14px)}
 .rto-facts-rows dt,.rto-facts-rows dd{line-height:var(--rto-facts-line,14px)}
 .rto-facts-rows .rto-card-status{font-size:calc(var(--rto-facts-font,12px) - 1px);line-height:var(--rto-facts-line,14px)}
}

/* The three overview cards consume the remaining desktop height. */
@media(min-width:1100px){
 .rto-main>.rto-bottom-cards{flex-grow:1;grid-template-rows:minmax(0,1fr)}
}

/* Regular-weight values in the driver details, including status labels. */
.shell .rto-facts-rows dd,.shell .rto-facts-rows .rto-card-status,.shell .rto-facts-rows .driver-read-status{font-weight:400}

/* Readable tabs distributed across the available RTO width. */
.rto-main>.rto-tabs{container-type:inline-size;width:100%;gap:2px}
.rto-main>.rto-tabs button{flex:1 0 auto;justify-content:center;font-size:clamp(12px,1.2cqw,18px);line-height:1.4;padding:7px 8px;gap:6px}
.rto-main>.rto-tabs button span{font-size:inherit;padding:1px 5px}
