/* Shared portal navigation and record history actions. */
.record-history-entry{border:1px solid #e2e9ef;border-radius:12px;margin:12px 0;overflow:hidden;background:#fff}
.record-history-entry>.portal-row,.record-history-entry>.customer-list-row,.record-history-entry>.service-row-modern{border:0;margin:0;padding:18px}
.record-history-actions{display:flex;justify-content:flex-end;padding:0 16px 12px}
a.record-audit-link,a.record-audit-link:visited{display:inline-flex;align-items:center;gap:10px;background:#edf4fa;border:1px solid #dce6ef;border-radius:8px;padding:8px 12px;color:#254c70;text-decoration:none;font-size:12px;font-weight:700;line-height:1.4}
a.record-audit-link:hover{background:#deebf6;color:#173d65}a.record-audit-link:focus-visible{outline:3px solid #3985be;outline-offset:3px}
.vehicle-sidebar{overflow-y:auto;max-height:100vh;min-height:0}.vehicle-sidebar .sidebar-user{flex-shrink:0}
.security-workspace-content{padding-top:24px;min-width:0}.security-workspace-content .security-shell{max-width:1200px}
.security-mobile-menu{display:none}.customer-nav-links a span{display:none}
@media(max-width:1000px){.security-mobile-menu{display:block;background:#fff;border-bottom:1px solid #e2e9ef;padding:12px 18px}.security-mobile-menu summary{cursor:pointer;font-size:13px;font-weight:700;color:#254c70}.security-mobile-menu nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.security-mobile-menu a{display:inline-flex;gap:8px;text-decoration:none;padding:9px 12px;background:#edf4fa;border-radius:8px;color:#254c70;font-size:12px}.security-workspace-content{padding-top:12px}.record-history-actions{justify-content:flex-start}}

.admin-remove-account{margin-top:12px;max-width:340px}.admin-remove-account summary{color:#a52d3a;font-size:12px;font-weight:700;cursor:pointer}.admin-remove-account p{font-size:12px}.admin-remove-account button{background:#a52d3a}.admin-remove-account input{width:100%}

.vehicle-sidebar>a.mobile-ticket-link{display:none}
.vehicle-sidebar .msr-sidebar-brand{gap:11px;align-items:center;margin:2px 0 24px;padding:0;line-height:1.1}.msr-sidebar-brand img{flex:0 0 44px;width:44px;height:44px}.msr-sidebar-brand strong{font:700 20px/1.14 'Space Grotesk',sans-serif;letter-spacing:-.6px;color:#fff}.msr-sidebar-brand strong span{display:block;color:#65d5b1;width:auto;text-align:left}.vehicle-sidebar>a>span>svg{display:block}.vehicle-sidebar .msr-sidebar-brand:focus-visible{outline:2px solid #65d5b1;outline-offset:5px;border-radius:8px}

/* Shared navigation groups, used in every portal and the mobile menu. */
.vehicle-sidebar .nav-category{margin:21px 10px 7px;letter-spacing:1.4px;font-size:9px;color:#8c9eae}.vehicle-sidebar .nav-category:first-of-type{margin-top:5px}.vehicle-sidebar>a:not(.sidebar-brand){gap:11px;padding:10px 12px}.vehicle-sidebar .sidebar-user{margin-top:24px}.security-mobile-menu nav .nav-category{flex-basis:100%;margin:15px 0 3px;color:#57717f;font-size:10px;letter-spacing:1px}.security-mobile-menu nav .nav-category:first-child{margin-top:0}.security-mobile-menu nav a.active{background:#174ecf;color:#fff}.security-mobile-menu nav a span{display:inline-flex;align-items:center}.customer-categorised-nav{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px!important}.customer-categorised-nav .nav-category{font-size:9px;letter-spacing:1px;color:#6c828e;margin:0 2px 0 12px}.customer-categorised-nav .nav-category:first-child{margin-left:0}.customer-categorised-nav a{white-space:nowrap}.customer-categorised-nav a>span{display:none}.customer-categorised-nav .nav-category:not(:first-child){border-left:1px solid #dce5e9;padding-left:14px}@media(max-width:1000px){.customer-categorised-nav .nav-category{display:none}}

/* Let the document scroll without trapping the sticky sidebar in the body. */
@media(min-width:1001px){
 body.vehicle-page{overflow:visible!important}
 body.vehicle-page .vehicle-main,body.vehicle-page .vehicle-workspace{overflow:visible!important;height:auto!important;min-height:100vh}
 body.vehicle-page .vehicle-workspace{align-items:start}
 body.vehicle-page .vehicle-sidebar{position:sticky!important;top:0;align-self:start;box-sizing:border-box;height:100vh;height:100dvh;min-height:0!important;max-height:100vh;max-height:100dvh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#456071 #091722}
 body.vehicle-page .vehicle-content{height:auto!important;min-height:100vh;overflow:visible!important}
}

/* Retention remains a Pro feature; this shared badge does not grant access. */
.garage-portal .dash-nav-pro{display:inline-block;flex-shrink:0;background:#ffe8ab;color:#b96300;font:700 11px/18px 'DM Sans',sans-serif;letter-spacing:normal;padding:0 8px;border-radius:20px;margin-left:auto}
