/* One visual and interaction vocabulary across Admin, Team leader, Business, Partner,
   Captain, account management and sign-in. Loaded after legacy page styles. */
:root{--ry-control:44px;--ry-radius:10px;--ry-panel-radius:14px;--ry-sidebar:240px;--ry-header:72px}
:root[data-theme="light"]{color-scheme:light}:root[data-theme="dark"]{color-scheme:dark}
body{font:400 14px/1.6 var(--ry-body);-webkit-font-smoothing:antialiased}
body :is(button,input,select,textarea){font-family:var(--ry-body)}
body :is(h1,h2,h3){font-family:var(--ry-head);font-weight:600}
body :is(.ph h1,.view-head h1,.access-heading h1){font-size:24px;line-height:1.5}
body :is(.btn,.ry-btn){height:var(--ry-control);min-height:var(--ry-control);padding:0 16px;border-radius:var(--ry-radius);font-size:14px;font-weight:500;line-height:1.3;gap:8px}
body :is(.btn.main,.btn-p,.btn.grad){background:var(--ry-gradient);border-color:transparent;color:#fff}
body :is(.btn.ghost,.btn-s,.btn.soft){background:var(--ry-card);border:1px solid var(--ry-line);color:var(--ry-interactive)}
body :is(.btn.danger,.btn-danger){background:var(--ry-card);color:#c23434;border:1px solid var(--ry-line)}
body :is(.btn,.icon-btn,button):disabled{opacity:.5;cursor:not-allowed}
body :is(.input,.fld,.sel,.txt,input:not([type=checkbox],[type=radio],[type=file],[type=range]),select,textarea){border-radius:var(--ry-radius);border:1px solid var(--ry-line);background:var(--ry-field);color:var(--ry-ink);min-height:var(--ry-control);font-size:14px;text-align:start}
body :is(input[type=tel],input[name=login]){direction:ltr}
body :is(input,select,textarea):focus-visible{outline:2px solid var(--ry-interactive);outline-offset:2px;box-shadow:none}
body :is(.panel,.card,.stat,.access-panel,.access-stats article){border-radius:var(--ry-panel-radius);border-color:var(--ry-line);box-shadow:none}
body .ry-preference-group{display:inline-flex;align-items:center;flex:none;direction:ltr;border:1px solid var(--ry-line);border-radius:var(--ry-radius);padding:3px;background:var(--ry-field);overflow:hidden;gap:2px}
body .ry-preference-group button{width:auto!important;min-width:36px;height:36px;min-height:36px;padding:0 9px;border:0;border-radius:7px;background:transparent;color:var(--ry-muted);font:500 12px/1 var(--ry-body);box-shadow:none}
body .ry-preference-group button.on,body .ry-preference-group button[aria-pressed=true]{background:var(--ry-card);color:var(--ry-interactive);box-shadow:0 1px 3px #00000012}
body .ry-theme-control{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px!important;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--ry-line);border-radius:var(--ry-radius);background:var(--ry-card);color:var(--ry-muted)}
.ry-ux-icon{display:inline-block;width:20px;height:20px;flex:none;vertical-align:middle}
.ry-password-field{position:relative;display:block;min-width:0;width:100%;flex:1;text-align:start}
body .ry-password-field>input{width:100%;padding-inline-end:48px;margin-block:0}
body .ry-password-toggle{position:absolute;inset-inline-end:2px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:40px;padding:0;background:transparent;color:var(--ry-muted);border:0;border-radius:8px}
body .ry-password-field:focus-within .ry-password-toggle{color:var(--ry-interactive)}
body :is(.toast,#access-toast:not(:empty)){background:var(--ry-ink);color:var(--ry-card);border:1px solid var(--ry-line);border-radius:12px;padding:14px 20px;font:500 13px/1.6 var(--ry-body);box-shadow:0 8px 30px #0002;max-width:min(440px,calc(100vw - 32px))}
body .toast .btn-link{color:inherit;text-decoration:underline}
body :is(.empty,.access-empty){padding:36px 24px;text-align:center;color:var(--ry-muted)}
body :is(.empty,.access-empty) h3{color:var(--ry-ink);font-size:17px}
body :is(.mdl,.sheet,.access-dialog){border:1px solid var(--ry-line);background:var(--ry-card);color:var(--ry-ink);border-radius:18px;padding:24px}
body :is(.login .panel,.ry-auth .b){width:100%;max-width:420px;padding:32px;border:1px solid var(--ry-line);border-radius:18px;background:var(--ry-card);text-align:start}
body .login .panel>.wordmark{display:flex;justify-content:center;margin-bottom:16px}
body .login :is(.field label,.tag,.tg){font-size:13px;color:var(--ry-muted)}
body .login .field label{color:var(--ry-ink);font-weight:500}
body .login .panel .input{font-size:16px}
body.ry-auth .b{text-align:center}body.ry-auth #lf{text-align:start}
body.ry-auth #lf>button{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:var(--ry-radius);font:500 14px var(--ry-body)}
body.ry-auth .e{margin-block:10px}
.ry-admin .nav-i,.ry-portal .side button{height:44px;border-radius:10px;font-size:13px;font-weight:500;gap:12px;padding-inline:12px}
.ry-portal .side{width:var(--ry-sidebar)}
.ry-driver .online.on h2{color:var(--ry-ink)}.ry-driver .online.on .muted{color:var(--ry-muted);opacity:1}
.ry-driver .topbar,.ry-portal .topbar{min-height:var(--ry-header);height:auto;padding:12px 24px}
.ry-driver .driver-logo{width:128px}.ry-driver .wordmark small{font:500 11px var(--ry-body);color:var(--ry-muted)}
@media(min-width:901px){
 .ry-admin .top{height:var(--ry-header)}.ry-admin main,.ry-portal main.main{padding:28px 24px 40px}
 .ry-portal .side{top:var(--ry-header);height:calc(100dvh - var(--ry-header));padding:20px 16px}
 .ry-driver main{max-width:1100px;width:calc(100% - var(--ry-sidebar));margin:0;margin-inline-start:var(--ry-sidebar);padding:28px 24px 40px}
 .ry-driver .tabbar{position:fixed;top:var(--ry-header);bottom:0;inset-inline-start:0;inset-inline-end:auto;width:var(--ry-sidebar);height:auto;padding:20px 16px;display:flex;flex-direction:column;align-items:stretch;gap:6px;border:0;border-inline-end:1px solid var(--ry-line);border-radius:0;box-shadow:none}
 .ry-driver .tabbar button{flex:none;height:44px;padding:0 12px;display:flex;flex-direction:row;justify-content:flex-start;gap:12px;font-size:13px;font-weight:500;border-radius:10px}
 .ry-driver .tabbar button.on{background:var(--ry-tint);color:var(--ry-interactive)}
}
@media(max-width:900px){
 .ry-driver .topbar,.ry-portal .topbar{padding:12px 16px;gap:8px}
 .ry-admin .top{gap:6px}.ry-admin .top .search{min-width:40px}.ry-admin .top .search input{min-width:0}
 body :is(.ph h1,.view-head h1,.access-heading h1){font-size:22px}
 .ry-portal .tabbar,.ry-driver .tabbar{inset-inline:8px;bottom:max(8px,env(safe-area-inset-bottom));width:auto;height:68px;padding:6px;border:1px solid var(--ry-line);border-radius:16px;background:var(--ry-card);box-shadow:0 4px 16px #14182114;gap:4px}
 .ry-portal .tabbar button,.ry-driver .tabbar button{min-height:54px;gap:4px;border-radius:10px;font-size:11px;font-weight:500}
 .ry-portal .tabbar button.on,.ry-driver .tabbar button.on{background:var(--ry-tint);color:var(--ry-interactive)}
 body :is(.login .panel,.ry-auth .b){padding:24px}
 body .ry-preference-group button{padding:0 7px}
 .ry-driver .driver-logo{width:104px}.ry-driver .wordmark small{display:none}
 body>.toast,body #access-toast:not(:empty){bottom:96px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
body .ry-login-heading,body.ry-auth .b h1{font-size:22px;text-align:center;margin:16px 0 6px}
body .login .panel>:is(.tag,.tg){display:block;height:auto;background:none;border:0;text-align:center;margin:0 0 24px;font-size:13px}
body .login .lang{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:24px}
body .auth-preferences{margin-top:24px;gap:2px}
body.ry-auth .auth-preferences .ry-theme-control{margin-inline-start:8px}
body .login .btn.main{height:44px;min-height:44px;padding:0 16px}
body.ry-portal .ry-hero>.btn{padding:0 16px;height:44px;min-height:44px}
body .search-f input{min-height:0;border:0;background:transparent;border-radius:0}
body .search-f:focus-within{outline:2px solid var(--ry-interactive);outline-offset:2px}
body .search-f input:focus-visible{outline:0}

/* UX check fixes (29 Oct 2026): readable small labels, filter chips that scroll on phones, readable red buttons in dark mode, driver actions that wrap */
.nav-h,.ry-side-label{font-size:11px!important}
@media (max-width:700px){.filters .seg{max-width:100%;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}.filters .seg::-webkit-scrollbar{display:none}.filters .seg>button{flex:none;white-space:nowrap}}
:root[data-theme="dark"] body :is(.btn.danger,.btn-danger){color:#F2B8B5}
:root[data-theme="dark"] .faint{color:#A3A3BD}
.act-wrap{display:flex;flex-wrap:wrap;gap:4px;max-width:340px}
