/* 2026-11-14 visual refinement, adapted from the approved interactive concept.
   The existing controls, roles, API handlers and records remain authoritative. */
body.rd-interface{
 --rd-navy:#102b3d;--rd-ink:#1e3344;--rd-muted:#657583;--rd-line:#e1e7ea;
 --rd-bg:#f3f5f6;--rd-blue:#2164d9;--rd-blue-soft:#edf3fd;
 --rd-green:#16735d;--rd-green-soft:#eaf5ef;--rd-amber:#976017;
 --rd-side:244px;--rd-top:74px;-webkit-font-smoothing:antialiased;
}
body.rd-interface h1{font-size:32px;letter-spacing:-1.1px;line-height:1.2}
body.rd-interface h2{font-size:18px;font-weight:650}
body.rd-interface h3{font-size:15px}
body.rd-interface :is(button,.rd-button){min-height:42px;font-size:13px;border-radius:9px;padding:9px 14px}
body.rd-interface :is(button,a,summary,input,select,textarea):focus-visible{outline-color:#7faff2}
body.rd-interface .panel,body.rd-interface .job,.rd-surface{box-shadow:0 2px 5px #13304403,0 8px 24px #13304404;border-color:var(--rd-line)}
body.rd-interface .rd-sidebar{padding:26px 17px 18px;background:var(--rd-navy)}
.rd-logo-pair{min-height:69px;justify-content:center;border-radius:10px;padding:10px 12px;gap:10px}
.rd-logo-pair img:first-child{width:128px}.rd-logo-pair img:last-child{width:40px}
.rd-brand-caption{font-size:8px;letter-spacing:1.4px;color:#a6b8c4;margin:12px 0 23px}
.rd-workshop{color:#e1e9ee;margin:0 4px 26px;padding:13px 10px;font-size:12px}
.rd-workshop small{font-size:10px;color:#92aaba;margin-top:4px}.rd-workshop>.rd-icon{color:#a1bfce}
.rd-nav-caption{font-size:10px;color:#88a4b5;letter-spacing:1.5px;margin-bottom:12px}
.rd-side-nav{gap:5px}
body.rd-interface .rd-side-nav :is(button,a){min-height:45px;font-size:13px;padding:11px 13px;color:#b6c8d2;font-weight:500;border-radius:9px}
body.rd-interface .rd-side-nav :is(button,a):hover{background:#ffffff09;color:white}
body.rd-interface .rd-side-nav .is-active{background:#ffffff10;color:#fff;box-shadow:inset 3px 0 0 #91b96a}
.rd-side-nav .rd-icon{color:#93aebb}.rd-side-nav .is-active .rd-icon{color:#d2e5ef}
.rd-sidebar-bottom>p{font-size:9px;color:#91aab9;line-height:1.9!important;letter-spacing:.25px;border-top:1px solid #ffffff12;padding-top:18px}
body.rd-interface .rd-user-button{padding:15px 9px 4px;gap:10px}.rd-user-button .rd-avatar{border-radius:50%;background:#d9e4eb;color:#24445b}
.rd-user-button strong{font-size:13px}.rd-user-button small{font-size:11px;color:#91aab9}
body.rd-interface .rd-topbar{border-bottom-color:#e4e9ed;padding-left:32px;padding-right:32px}
.rd-breadcrumb{font-size:12px}.rd-breadcrumb strong{font-weight:600;color:#273d4d}.rd-today{color:var(--rd-muted);font-size:11px}
body.rd-interface .rd-icon-button{width:40px;min-width:40px;height:40px;min-height:40px;border-radius:9px}
body.rd-interface .rd-topbar .rd-icon-button{border:1px solid #edf0f2;background:white}
body.rd-interface #rdTopCreate .rd-primary{box-shadow:0 3px 8px #2164d91a;padding:10px 16px;font-size:13px}
body.rd-interface[data-rd-auth=true]>.rd-main{padding:calc(var(--rd-top) + var(--rd-env) + 32px) 32px 48px!important}
.rd-page-heading{margin-bottom:28px}.rd-page-heading>div>p:last-child{font-size:13px;color:#6c7b86;margin-top:10px}
.rd-page-heading .rd-eyebrow{font-size:10px;letter-spacing:1.7px;color:#647b8a}
.rd-stats{gap:16px;margin-bottom:22px}
body.rd-interface .rd-stat{padding:21px!important;min-height:154px;border-radius:13px;box-shadow:0 2px 5px #13304403,0 8px 24px #13304404;transition:transform .15s,box-shadow .15s}
body.rd-interface .rd-stat:hover{transform:translateY(-2px);box-shadow:0 6px 18px #1731470c}
.rd-stat>span{font-size:12px;color:#5b6d7b;padding-right:30px}.rd-stat>b{font-size:38px;line-height:1.2;margin:14px 0 7px;letter-spacing:-1.3px;color:#1e3546}
.rd-stat>small{font-size:11px;color:#798793}.rd-stat>i{width:35px;height:35px;border-radius:10px;right:18px;top:17px}
.rd-stat>i>.rd-icon{width:18px;height:18px}
body.rd-interface .rd-stat-0{background:#173b55;border-color:#173b55;box-shadow:0 6px 20px #173b5515}
.rd-stat-0>span{color:#d5e4ed}.rd-stat-0>b{color:white}.rd-stat-0>small{color:#adc5d5}.rd-stat-0>i{background:#ffffff12;color:#c9e4f3}
body.rd-interface .rd-attention{padding:15px 18px;border-color:#eadbc0;background:#fffbf3;color:#8a6429;font-size:12px}
.rd-attention>b{font-size:11px}.rd-attention .rd-icon{width:18px;height:18px}
.rd-section-heading h2{font-size:18px}.rd-section-heading .rd-link{font-size:12px}
.rd-overview-columns{font-size:9px;color:#74848e;letter-spacing:.8px;background:#f8fafb}
body.rd-interface .rd-overview-row{min-height:97px;border-color:#edf1f3;padding-top:21px;padding-bottom:21px}
body.rd-interface .rd-overview-row:hover{background:#f7fafc}.rd-car-symbol{background:#edf3f8;color:#65839b;border-radius:9px}
.rd-vehicle>strong{font-size:14px;line-height:1.4}.rd-vehicle>small,.rd-vehicle>small>span{font-size:11px;color:#6e8290}
.rd-row-team>span:last-child{font-size:11px;color:#5f7180}.rd-row-progress small{font-size:11px;color:#718696}
.rd-row-progress>i{height:5px;background:#edf0f3}.rd-row-progress b{background:#4f83c5}
.rd-status{font-size:11px;padding:5px 8px;border-radius:6px;font-weight:600}.rd-status-grey{color:#697e8c}.rd-status-amber{color:#976017;background:#fff3e1}
.rd-surface-foot{font-size:10px;color:#7a8891;padding:13px 20px}
.rd-surface-heading{padding:21px 20px 14px}.rd-surface-heading h2{font-size:15px!important}
.rd-today-schedule{padding-left:20px;padding-right:20px;font-size:12px;color:#708491}
.rd-today-schedule .home-today-item{padding:15px 0}.rd-today-schedule :is(a,.home-today-note){font-size:12px}.rd-today-schedule strong{font-size:12px;color:#4a6577}
body.rd-interface .rd-rail-link{font-size:11px;min-height:42px}.rd-team-roster{padding:0 20px 10px}
body.rd-interface .rd-team-roster>button{padding:15px 0}.rd-team-roster strong{font-size:12px}.rd-team-roster small{font-size:10px;color:#7e909c}.rd-team-roster b{font-size:11px;color:#637e90}
.rd-avatar-blue{color:#3f69a0;background:#e5edfb}.rd-avatar-teal{color:#437c6f;background:#e0f0e9}.rd-avatar-violet{color:#7f66a3;background:#eee6f7}
body.rd-interface #workOrdersSection .order-list-title{font-size:14px!important;color:var(--rd-ink)!important}
body.rd-interface #workOrdersSection :is(.order-list-meta,.order-list-services,.order-list-progress,.rd-team-names){font-size:12px!important;color:#687f90!important;line-height:1.7}
body.rd-interface .pill{font-size:11px;padding:5px 8px;border-radius:6px}
body.rd-interface :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:#d9e2e8;min-height:43px}
body.rd-interface label{font-size:12px;color:#4a6172}.rd-interface #orderSearch{background:#f9fbfc!important}
body.rd-interface #workOrdersSection .simple-order-hero{border-radius:14px;padding:25px;background:white;border-color:#dfe6eb}
body.rd-interface #workOrdersSection .simple-task-card{border-color:#e5ebef;border-radius:10px;padding:21px;margin-bottom:12px}
body.rd-interface #workOrdersSection .simple-task-identity h5{font-size:15px;color:#2e485b;line-height:1.6}
body.rd-interface #workOrdersSection .simple-task-assigned{font-size:12px;color:#687f90;line-height:1.7}
body.rd-interface #workOrdersSection .simple-task-actions button{min-height:43px;font-size:13px;border-radius:8px}
body.rd-interface #workOrdersSection .simple-task-actions .simple-finish-action{background:var(--rd-green)!important;color:white!important}
body.rd-interface :is(.history-event-summary,.history-activity-title){color:#385167;font-size:13px;line-height:1.7}
body.rd-interface :is(.history-event-meta,.history-activity-time){color:#718697;font-size:11px}
body.rd-interface #createOrderPanel .create-form-card{border-color:#e1e7ea}.rd-interface #createOrderPanel .create-card-description{font-size:12px;color:#6e8293}
body.rd-interface #createOrderPanel .create-summary-list :is(dt,dd){font-size:12px}
body.rd-interface #billingReviewRows>.extra{padding:21px;border-color:#e1e7ea}
body.rd-interface #billingReviewRows .row strong{font-size:14px;color:#38566c}.rd-interface #billingReviewRows .row .small{font-size:12px;color:#708491}
body.rd-interface #billingReviewRows .actions button{font-size:12px;min-height:41px}
body.rd-interface.rd-portal :is(td,th){font-size:12px}.rd-interface.rd-portal th{color:#567184;background:#f8fafb}
body.rd-interface.rd-portal .worker-card{border-color:#e0e8ed;border-radius:12px}.rd-interface.rd-portal .worker-name{font-size:16px}
body.rd-interface[data-rd-auth=false]{background:#eef2f5!important}
body.rd-interface #loginPanel.rd-login-card{box-shadow:0 22px 65px #29435e12;border-radius:19px;border:0}
body.rd-interface #loginPanel .rd-login-visual{background:#12364e}
body.rd-interface #loginPanel .rd-login-visual h2{font-size:46px;letter-spacing:-1.5px;line-height:1.12}
body.rd-interface #loginPanel .rd-login-form h1{font-size:33px}.rd-login-intro{font-size:14px;color:#788a98}
body.rd-interface .rd-profile-choice{background:#fbfcfd;border-color:#dfe7ed;border-radius:10px}
body.rd-interface .rd-profile-choice.is-selected{border-color:#3a75cf;background:#f1f6ff;box-shadow:0 0 0 1px #3a75cf}
.rd-login-test-note{background:#f3f6f8;border-color:#e4eaef;border-radius:9px;color:#657d8e}.rd-login-test-note>p{font-size:11px}
body.rd-interface .rd-login-footer{color:#82929d}
@media(min-width:1230px){
 .rd-dashboard-grid{grid-template-columns:minmax(0,1fr) 282px;gap:24px}.rd-dashboard-rail{grid-template-columns:1fr}
 body.rd-interface .rd-overview-row{grid-template-columns:32px minmax(120px,1.5fr) minmax(97px,1fr) 80px 96px 14px;gap:11px}
 .rd-overview-columns{grid-template-columns:minmax(120px,1.5fr) minmax(97px,1fr) 80px 96px;gap:11px}
}
@media(min-width:1700px){body.rd-interface{--rd-side:252px}.rd-dashboard-grid{grid-template-columns:minmax(0,1fr) 310px;gap:28px}.rd-vehicle>strong{font-size:15px}}
@media(max-width:1300px){
 body.rd-interface{--rd-side:222px}body.rd-interface .rd-sidebar{padding-left:13px;padding-right:13px}
 .rd-logo-pair{padding:10px;gap:9px}.rd-logo-pair img:first-child{width:112px}.rd-logo-pair img:last-child{width:36px}
 body.rd-interface[data-rd-auth=true]>.rd-main{padding-left:24px!important;padding-right:24px!important}
 body.rd-interface .rd-topbar{padding-left:24px;padding-right:24px}
 .rd-stat>span{font-size:11px}.rd-stat>b{font-size:35px}.rd-stat>i{right:14px;width:29px;height:29px}
 .rd-stat>small{font-size:10px}.rd-vehicle>strong{font-size:13px}
}
@media(max-width:1000px){
 .rd-stat>span{font-size:12px}body.rd-interface .rd-side-nav :is(button,a){font-size:12px;padding:10px 11px}
 body.rd-interface #loginPanel .rd-login-visual h2{font-size:36px}
}
@media(max-width:800px){
 body.rd-interface{--rd-side:0px;--rd-top:68px}
 body.rd-interface .rd-sidebar{display:none}
 body.rd-interface[data-rd-auth=true]>.rd-main{margin-left:0;padding:calc(var(--rd-top) + var(--rd-env) + 25px) 21px 108px!important}
 body.rd-interface .rd-topbar{padding:0 20px}body.rd-interface #rdTopCreate .rd-primary{font-size:12px;min-height:39px;padding:9px 12px}
 .rd-mobile-brand .rd-logo-pair{min-height:0}.rd-mobile-brand .rd-logo-pair img:first-child{width:102px}.rd-mobile-brand .rd-logo-pair img:last-child{width:32px}
 body.rd-interface .rd-mobile-nav{min-height:69px;background:#fffffffa;border-top:1px solid #dfe6eb;box-shadow:0 -5px 20px #15354b06}
 body.rd-interface .rd-mobile-nav :is(button,a){font-size:10px;color:#7a8e9c;min-height:56px}.rd-mobile-nav .is-active{color:#285d9d!important}
 body.rd-interface .rd-page-heading h1{font-size:28px}.rd-page-heading>div>p:last-child{font-size:12px}
}
@media(max-width:600px){
 body.rd-interface{--rd-top:64px}
 body.rd-interface[data-rd-auth=true]>.rd-main{padding:calc(var(--rd-top) + var(--rd-env) + 23px) 16px 100px!important}
 body.rd-interface .rd-topbar{padding:0 16px}body.rd-interface .rd-topbar>.rd-topbar-actions{gap:5px}
 .rd-mobile-brand .rd-logo-pair{gap:7px}.rd-mobile-brand .rd-logo-pair img:first-child{width:88px}.rd-mobile-brand .rd-logo-pair img:last-child{width:26px}
 body.rd-interface .rd-topbar .rd-icon-button{width:34px;min-width:34px;min-height:36px;border:0}
 body.rd-interface #rdTopCreate .rd-primary{font-size:11px;padding:8px 10px;min-height:37px}
 body.rd-interface .rd-page-heading h1{font-size:26px}.rd-page-heading{margin-bottom:23px}.rd-page-heading .rd-eyebrow{font-size:9px}
 .rd-page-heading>div>p:last-child{font-size:12px;line-height:1.7}
 .rd-stats{gap:11px;margin-bottom:18px}body.rd-interface .rd-stat{min-height:140px;padding:16px!important}
 .rd-stat>span{font-size:11px;min-height:30px;line-height:1.5;padding-right:23px;max-width:100%}.rd-stat>b{font-size:32px;margin:9px 0 5px}
 .rd-stat>small{font-size:10px;line-height:1.6}.rd-stat>i{width:26px;height:26px;right:11px;top:13px}
 body.rd-interface .rd-attention{font-size:11px;padding:13px;gap:9px}.rd-attention>b{font-size:10px}
 body.rd-interface .rd-overview-row{padding:19px 15px;gap:10px;min-height:119px}
 .rd-vehicle>strong{font-size:13px}.rd-vehicle>small,.rd-vehicle>small>span,.rd-row-team>span:last-child,.rd-row-progress small{font-size:10px}
 .rd-overview-row>.rd-status{font-size:10px;max-width:87px;padding:4px 6px}.rd-overview-row>.rd-row-team{flex-wrap:wrap}
 body.rd-interface #workOrdersSection .order-list-title{font-size:14px!important}
 body.rd-interface #workOrdersSection :is(.order-list-meta,.order-list-services,.order-list-progress,.rd-team-names){font-size:11px!important}
 body.rd-interface #workOrdersSection .simple-order-hero{padding:20px}
 body.rd-interface #workOrdersSection .simple-task-card{padding:18px 16px}
 body.rd-interface #workOrdersSection .simple-task-identity h5{font-size:14px}
 body.rd-interface #workOrdersSection .simple-task-assigned{font-size:11px;line-height:1.7}
 body.rd-interface #workOrdersSection .simple-task-actions{gap:7px;max-width:100%}
 body.rd-interface #workOrdersSection .simple-task-actions button{min-height:45px;font-size:12px}
 body.rd-interface #billingReviewRows>.extra{padding:18px 15px}
 body.rd-interface #billingReviewRows .row strong{font-size:13px}body.rd-interface #billingReviewRows .row .small{font-size:11px}
 body.rd-interface #billingReviewRows .actions button{font-size:11px;min-height:43px}
 body.rd-interface .pill{font-size:10px}
 body.rd-interface #loginPanel .rd-login-form{padding:28px 20px 23px}
 body.rd-interface #loginPanel .rd-login-form h1{font-size:29px}
 body.rd-interface .rd-profile-grid{gap:8px}body.rd-interface .rd-profile-choice{min-height:61px;border-radius:10px}
 .rd-profile-group:first-child .rd-profile-choice{flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:78px;padding:10px 6px}
 .rd-profile-choice .rd-avatar{width:29px;height:29px;font-size:10px}
 .rd-login-test-note{padding:13px 11px}.rd-login-test-note>p{font-size:10px;line-height:1.7}
 .rd-login-identity .rd-logo-pair{min-height:0}.rd-login-footer{font-size:9px}
}
@media(max-width:360px){
 body.rd-interface[data-rd-auth=true]>.rd-main{padding-left:12px!important;padding-right:12px!important}
 body.rd-interface .rd-topbar{padding-left:12px;padding-right:12px}.rd-mobile-brand .rd-logo-pair img:first-child{width:78px}
 body.rd-interface #rdTopCreate .rd-primary{padding:8px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){body.rd-interface *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{body.rd-interface .rd-stat-0{background:white!important;color:black!important}.rd-stat-0>*{color:black!important}}
/* Historical records use the same readable hierarchy as current orders. */
body.rd-interface .history-detail-header{background:white;border-color:#dfe6eb;border-radius:14px;padding:25px}
body.rd-interface .history-detail-header h3{font-size:23px;line-height:1.45;color:#263e50;font-weight:650}
body.rd-interface .history-detail-header>.small{color:#6d8292;font-size:12px}
body.rd-interface .history-detail-section{border-color:#e1e7ea;border-radius:12px;padding:23px}
body.rd-interface .history-detail-section h4{font-size:15px;color:#38566b;margin-bottom:19px}
body.rd-interface .history-detail-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 24px}
body.rd-interface .history-detail-pair>span{font-size:11px;color:#738996;line-height:1.7}
body.rd-interface .history-detail-pair>strong{font-size:13px;color:#3d596d;font-weight:550;line-height:1.8}
body.rd-interface .history-work-table :is(th,td){font-size:12px;color:#526e80;padding:15px 11px}
body.rd-interface .history-work-table button{font-size:11px;min-height:39px;margin-left:7px}
body.rd-interface .history-event{border-color:#e6edf1;padding-top:14px;padding-bottom:14px}
body.rd-interface .history-event>strong{color:#38566b;font-size:13px}
body.rd-interface .history-activity-summary{font-size:13px;color:#526c80;line-height:1.8}
@media(max-width:1100px){body.rd-interface .history-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 body.rd-interface .history-detail-header{padding:20px 17px}body.rd-interface .history-detail-header h3{font-size:19px}
 body.rd-interface .history-detail-section{padding:20px 16px}body.rd-interface .history-detail-grid{gap:15px}
 body.rd-interface .history-detail-pair>strong{font-size:12px}body.rd-interface .history-detail-pair>span{font-size:10px}
 body.rd-interface .history-work-table :is(th,td){font-size:11px;padding:13px 7px}body.rd-interface .history-work-table button{font-size:10px;min-height:41px;margin:6px 5px 4px 0}
 body.rd-interface .history-activity-summary{font-size:12px}
}
@media(max-width:600px){
 body.rd-interface #orderListFilters.panel{grid-template-columns:minmax(0,1fr)!important;max-width:100%;min-width:0}
 body.rd-interface #orderListFilters>div:first-child,body.rd-interface #advancedFilters{width:100%;min-width:0;max-width:100%}
 body.rd-interface #orderSearch{width:100%!important;min-width:0!important;max-width:100%!important}
 body.rd-interface #filterCount{width:auto!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.7;font-size:10px}
}
@media(max-width:800px){
 body.rd-interface #workOrdersSection .simple-workspace-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important;width:100%;min-width:0}
 body.rd-interface #workOrdersSection .simple-order-main,body.rd-interface #workOrdersSection .simple-order-sidebar{width:100%!important;min-width:0!important;max-width:100%;grid-column:auto!important}
 body.rd-interface #workOrdersSection .simple-order-sidebar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px}
 body.rd-interface #workOrdersSection .simple-tasks{width:100%;min-width:0}
 body.rd-interface #workOrdersSection .simple-task-main{flex-wrap:wrap!important;min-width:0}
 body.rd-interface #workOrdersSection .simple-task-identity{min-width:0;flex:1}
 body.rd-interface #workOrdersSection .simple-task-actions{padding-left:0!important;flex-wrap:wrap;min-width:0;max-width:100%}
}
/* Mobile form actions stay in document flow, clear of the bottom navigation.
   Match the desktop selector weight so narrower layouts actually take effect. */
@media(max-width:800px){
 body.rd-interface[data-rd-auth=true]>.rd-main{padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}
 body.rd-interface #createOrderPanel .create-form-footer{position:static;bottom:auto;z-index:auto}
}
@media(max-width:600px){
 body.rd-interface #createOrderPanel .create-form-grid{grid-template-columns:minmax(0,1fr)}
 body.rd-interface #createOrderPanel .create-form-main,
 body.rd-interface #createOrderPanel .create-form-side{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}
 body.rd-interface #createOrderPanel .create-form-footer{flex-direction:column;align-items:stretch;gap:16px;bottom:auto}
 body.rd-interface #createOrderPanel #createPilotChoice{display:flex;align-items:flex-start;gap:10px;flex-basis:auto;font-size:12px!important;line-height:1.6}
 body.rd-interface #createOrderPanel #createPilotChoice input{flex:0 0 18px;margin:0!important}
 body.rd-interface #createOrderPanel .create-footer-buttons{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);width:100%;margin:0}
 body.rd-interface #createOrderPanel .create-footer-buttons>button{width:100%;min-width:0!important;white-space:normal;min-height:46px!important}
 body.rd-interface #createOrderPanel .chosen-service input[data-unified-qty]{font-size:16px!important;min-height:40px!important}
}
@media(max-width:480px){
 body.rd-interface #createOrderPanel .vehicle-identity-grid,
 body.rd-interface #quickOrderForm .vehicle-identity-grid{grid-template-columns:minmax(0,1fr)!important}
 body.rd-interface #createOrderPanel .plate-lookup{grid-template-columns:minmax(0,1fr)}
 body.rd-interface #createOrderPanel .plate-lookup>button{grid-column:1;width:100%}
 body.rd-interface #createOrderPanel .service-picker,
 body.rd-interface #quickOrderForm .service-picker{grid-template-columns:minmax(0,1fr)}
 body.rd-interface #createOrderPanel #createAddService{width:100%}
}
