/* Rydo admin: Material skin over Bootstrap 3 + Light Bootstrap Dashboard.
   Loaded last in the admin and login layouts. Built on the --rydo-* tokens in rydo-colors.css.
   Volt is a fill only, always with Ink text; never Volt text on white. */

:root {
  --rydo-elev-1: 0 1px 2px rgba(11, 15, 20, .06), 0 1px 3px 1px rgba(11, 15, 20, .05);
  --rydo-elev-2: 0 1px 2px rgba(11, 15, 20, .08), 0 2px 8px 2px rgba(11, 15, 20, .06);
  --rydo-elev-3: 0 4px 8px 3px rgba(11, 15, 20, .10), 0 1px 3px rgba(11, 15, 20, .12);
  --rydo-focus-ring: 0 0 0 3px rgba(200, 241, 53, .65);
  --rydo-sidebar-w: 264px;
  --rydo-topbar-h: 64px;
  --rydo-sidebar-text: #C9D1DB;
}

/* ---------- Base ---------- */
html, body { -webkit-font-smoothing: antialiased; }
body, .rydo-admin, h1, h2, h3, h4, h5, h6, p, .btn, input, select, textarea, button, .tooltip, .popover {
  font-family: var(--rydo-font);
}
body { background: var(--rydo-surface-raised); color: var(--rydo-text); font-size: 14px; line-height: 1.5; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--rydo-text); font-weight: 700; letter-spacing: -.01em; }
h3 { color: var(--rydo-text) !important; }
a, a:hover, a:focus { color: var(--rydo-link); }
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: none; box-shadow: var(--rydo-focus-ring); }
hr { border-color: var(--rydo-hairline); }
.text-muted, .category, .card .category { color: var(--rydo-text-muted) !important; }
.text-danger { color: var(--rydo-danger) !important; }
.text-success { color: var(--rydo-success) !important; }
.text-warning { color: var(--rydo-warning) !important; }
.text-info, .text-primary { color: var(--rydo-route) !important; }
.material-symbols-rounded { font-size: 22px; line-height: 1; vertical-align: middle; font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24; }

/* ---------- Shell ---------- */
.rydo-shell { min-height: 100vh; }
.rydo-sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 1040;
  width: var(--rydo-sidebar-w); padding: 20px 12px 24px;
  background: var(--rydo-ink); color: var(--rydo-sidebar-text);
  overflow-y: auto; overscroll-behavior: contain;
  transition: transform .25s cubic-bezier(.2, 0, 0, 1);
}
.rydo-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 24px; }
.rydo-sidebar-brand img { height: 30px; width: auto; display: block; }
.rydo-brand-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rydo-on-volt); background: var(--rydo-volt); border-radius: var(--rydo-radius-pill); padding: 3px 8px;
}
.rydo-nav, .rydo-subnav { list-style: none; margin: 0; padding: 0; }
.rydo-nav > li { margin-bottom: 2px; }
.rydo-nav a {
  display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 16px;
  border-radius: var(--rydo-radius-pill); color: var(--rydo-sidebar-text) !important;
  font-size: 14px; font-weight: 600; text-decoration: none !important;
  transition: background-color .15s, color .15s;
}
.rydo-nav a:hover, .rydo-nav a:focus { background: rgba(255, 255, 255, .07); color: #fff !important; }
.rydo-nav > li.active > a { background: var(--rydo-volt); color: var(--rydo-on-volt) !important; }
.rydo-nav > li.active > a .material-symbols-rounded { font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24; }
.rydo-nav .rydo-caret { margin-left: auto; font-size: 20px; transition: transform .2s; }
.rydo-nav a:not(.collapsed) .rydo-caret { transform: rotate(180deg); }
.rydo-subnav { padding: 2px 0 6px; }
.rydo-subnav a { min-height: 38px; padding-left: 52px; font-weight: 500; font-size: 13.5px; }
.rydo-subnav li.active > a { background: rgba(200, 241, 53, .14); color: var(--rydo-volt) !important; }

.rydo-main { margin-left: var(--rydo-sidebar-w); min-height: 100vh; min-width: 0; display: flex; flex-direction: column; }
.rydo-topbar {
  position: sticky; top: 0; z-index: 1030;
  display: flex; align-items: center; gap: 16px;
  height: var(--rydo-topbar-h); padding: 0 28px;
  background: var(--rydo-surface); border-bottom: 1px solid var(--rydo-hairline);
}
.rydo-topbar-title { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.rydo-topbar-title h1 { margin: 0; font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rydo-topbar-title span {
  font-size: 12px; font-weight: 600; color: var(--rydo-text-muted);
  background: var(--rydo-surface-raised); border-radius: var(--rydo-radius-pill); padding: 3px 10px; white-space: nowrap;
}
.rydo-topbar-search { flex: 1; display: flex; justify-content: center; min-width: 0; }
.rydo-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: transparent; color: var(--rydo-text); cursor: pointer;
}
.rydo-icon-btn:hover { background: var(--rydo-surface-raised); }
.rydo-nav-toggle { display: none; margin-left: -8px; }
.rydo-user > a {
  display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px;
  border-radius: var(--rydo-radius-pill); color: var(--rydo-text) !important; text-decoration: none !important; font-weight: 600;
}
.rydo-user > a:hover { background: var(--rydo-surface-raised); }
.rydo-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--rydo-volt); color: var(--rydo-on-volt); font-weight: 800; font-size: 15px;
}
.rydo-user-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rydo-user .dropdown-menu { margin-top: 8px; }
.rydo-user .dropdown-menu a { display: flex !important; align-items: center; gap: 10px; }

.rydo-content { flex: 1; padding: 28px; min-width: 0; }
.rydo-footer { padding: 16px 28px 24px; color: var(--rydo-text-muted); font-size: 13px; text-align: right; }
.rydo-scrim { display: none; }

@media (max-width: 991px) {
  .rydo-sidebar { transform: translateX(-100%); box-shadow: none; }
  .rydo-nav-open .rydo-sidebar { transform: translateX(0); box-shadow: var(--rydo-elev-3); }
  .rydo-nav-open .rydo-scrim { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(11, 15, 20, .45); }
  .rydo-nav-open, .rydo-nav-open body { overflow: hidden; }
  .rydo-main { margin-left: 0; }
  .rydo-nav-toggle { display: inline-flex; }
  .rydo-topbar { padding: 0 16px; gap: 8px; }
  .rydo-content { padding: 16px; }
  .rydo-footer { padding: 12px 16px 20px; }
}
@media (max-width: 600px) {
  .rydo-user-name, .rydo-topbar-title span { display: none; }
}

/* ---------- Cards / panels ---------- */
.card, .panel {
  background: var(--rydo-surface); border: 0; border-radius: var(--rydo-radius-md);
  box-shadow: var(--rydo-elev-1); margin-bottom: 24px;
}
.rydo-page-card { padding: 4px 0 8px; box-shadow: var(--rydo-elev-1); overflow-x: auto; }
.rydo-page-card .card, .rydo-page-card .panel { box-shadow: none; border: 1px solid var(--rydo-hairline); border-radius: 14px; }
.card .header { padding: 24px 24px 0; }
.card .content { padding: 16px 24px 24px; }
.card .content.table-full-width { padding-left: 0; padding-right: 0; padding-bottom: 8px; }
.card .title, .header .title { margin: 0 0 4px; color: var(--rydo-text); font-weight: 700; font-size: 20px; }
.header h2.title { font-size: 24px; }
.card .footer { padding: 0 24px 16px; background: transparent; }
.card .footer .legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--rydo-text-muted); font-weight: 600; font-size: 13px; }
.card label, .control-label { color: var(--rydo-text); font-size: 13px; font-weight: 600; text-transform: none; margin-bottom: 6px; }
.panel-heading { background: transparent !important; border-bottom: 1px solid var(--rydo-hairline) !important; border-radius: var(--rydo-radius-md) var(--rydo-radius-md) 0 0; padding: 16px 20px; font-weight: 700; }
.panel-body { padding: 20px; }
.panel-footer { background: var(--rydo-surface-raised); border-top: 1px solid var(--rydo-hairline); border-radius: 0 0 var(--rydo-radius-md) var(--rydo-radius-md); }
.well { background: var(--rydo-surface-raised); border: 0; border-radius: 14px; box-shadow: none; }
.dl-horizontal dt { color: var(--rydo-text-muted); font-weight: 600; }
.dl-horizontal dd { margin-bottom: 10px; }

/* ---------- Tables ---------- */
/* LBD gives .table-full-width -15px side margins, which pushed tables outside their card */
.table-full-width { margin-left: 0 !important; margin-right: 0 !important; }
.rydo-page-card .table-responsive { clear: both; border: 0; margin-bottom: 0; overflow-x: auto; border-radius: inherit; }
.rydo-page-card .card > .content.table-full-width { padding: 0; border-radius: inherit; }
.table { margin-bottom: 0; background: transparent; }
.table > thead > tr > th {
  background: var(--rydo-surface-raised); color: var(--rydo-text-muted);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 16px; border-bottom: 1px solid var(--rydo-hairline) !important; border-top: 0 !important; white-space: nowrap;
}
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td {
  height: 48px; padding: 10px 16px; vertical-align: middle; border-top: 1px solid var(--rydo-hairline);
  color: var(--rydo-text); font-size: 14px;
}
.table > tbody > tr:first-child > td { border-top: 0; }
.table-striped > tbody > tr:nth-of-type(odd) { background: transparent; }
.table-hover > tbody > tr, .table > tbody > tr { transition: background-color .12s; }
.table-hover > tbody > tr:hover, .table > tbody > tr:hover { background: var(--rydo-surface-raised); }
.table img { border-radius: 10px; }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td { border-color: var(--rydo-hairline); }

/* ---------- Forms ---------- */
.form-control, .input-group-addon {
  height: 44px; padding: 10px 14px; border: 1px solid var(--rydo-control-border); border-radius: 12px;
  background: var(--rydo-surface); color: var(--rydo-text); font-size: 14px; box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.form-control, select[multiple].form-control { height: auto; min-height: 96px; }
input[type="file"].form-control { padding: 9px 12px; }
.form-control::placeholder { color: var(--rydo-text-muted); opacity: 1; }
.form-control:focus, .input-group-focus .form-control, .input-group-focus .input-group-addon {
  border-color: var(--rydo-ink); box-shadow: var(--rydo-focus-ring); outline: 0; background: var(--rydo-surface);
}
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background: var(--rydo-surface-raised); color: var(--rydo-text-muted); }
.input-group .form-control:first-child, .input-group-addon:first-child { border-radius: 12px 0 0 12px; }
.input-group .form-control:last-child, .input-group-addon:last-child { border-radius: 0 12px 12px 0; }
.input-group-addon { background: var(--rydo-surface-raised); height: auto; }
.form-group { margin-bottom: 18px; }
.has-error .form-control, .input-validation-error { border-color: var(--rydo-danger) !important; }
.field-validation-error, .validation-summary-errors { color: var(--rydo-danger); font-size: 13px; font-weight: 500; }
.validation-summary-errors ul { padding-left: 18px; margin: 0 0 12px; }
.checkbox, .radio { color: var(--rydo-text); }
.checkbox.checked, .radio.checked, .checkbox.checked .second-icon, .radio.checked .second-icon, .checkbox-list label span { color: var(--rydo-text) !important; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--rydo-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: max-content; height: 40px; padding: 0 20px;
  border: 1.5px solid var(--rydo-control-border); border-radius: var(--rydo-radius-pill);
  background: transparent; color: var(--rydo-text); opacity: 1;
  font-size: 14px; font-weight: 600; letter-spacing: .01em; line-height: 1; text-transform: none;
  transition: background-color .15s, box-shadow .15s, border-color .15s;
}
input.btn, button.btn { display: inline-block; line-height: 37px; }
.btn:hover, .btn:focus { background: var(--rydo-surface-raised); color: var(--rydo-text); border-color: var(--rydo-ink); opacity: 1; }
.btn:active, .btn.active { box-shadow: none; }
.btn-sm, .btn-xs { height: 32px; padding: 0 14px; font-size: 13px; }
input.btn-sm, button.btn-sm, input.btn-xs, button.btn-xs { line-height: 29px; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-wd { min-width: 140px; }

/* Filled (primary): Volt with Ink text */
.btn-fill, .btn-primary.btn-fill, .btn-info.btn-fill, .btn-success.btn-fill,
.btn-default.btn-primary, .rydo-btn-filled {
  background: var(--rydo-volt) !important; border-color: var(--rydo-volt) !important; color: var(--rydo-on-volt) !important;
  box-shadow: var(--rydo-elev-1);
}
.btn-fill:hover, .btn-fill:focus, .btn-fill:active,
.btn-primary.btn-fill:hover, .btn-primary.btn-fill:focus, .btn-primary.btn-fill:active,
.btn-info.btn-fill:hover, .btn-info.btn-fill:focus, .btn-info.btn-fill:active,
.btn-success.btn-fill:hover, .btn-success.btn-fill:focus {
  background: var(--rydo-volt-pressed) !important; border-color: var(--rydo-volt-pressed) !important; color: var(--rydo-on-volt) !important;
  box-shadow: var(--rydo-elev-2);
}
/* Tonal */
.btn-default.btn-fill, .btn:not([class*="btn-"]) {
  background: var(--rydo-surface-raised) !important; border-color: transparent !important; color: var(--rydo-text) !important;
}
.btn-default.btn-fill:hover, .btn:not([class*="btn-"]):hover { background: var(--rydo-hairline) !important; }
.btn.active, .btn:not([class*="btn-"]).active { background: var(--rydo-ink) !important; border-color: var(--rydo-ink) !important; color: #fff !important; }
/* Destructive */
.btn-danger.btn-fill { background: var(--rydo-danger) !important; border-color: var(--rydo-danger) !important; color: #fff !important; box-shadow: var(--rydo-elev-1); }
.btn-danger.btn-fill:hover, .btn-danger.btn-fill:focus { background: #B42318 !important; border-color: #B42318 !important; }
.btn-warning.btn-fill { background: var(--rydo-warning) !important; border-color: var(--rydo-warning) !important; color: #fff !important; }
/* Outlined */
.btn-default, .btn-primary:not(.btn-fill), .btn-info:not(.btn-fill), .btn-success:not(.btn-fill) {
  background: transparent; border-color: var(--rydo-control-border); color: var(--rydo-text);
}
.btn-danger:not(.btn-fill) { background: transparent; border-color: var(--rydo-danger); color: var(--rydo-danger); }
.btn-danger:not(.btn-fill):hover { background: rgba(217, 45, 32, .08); color: var(--rydo-danger); border-color: var(--rydo-danger); }
.btn-warning:not(.btn-fill) { border-color: var(--rydo-warning); color: var(--rydo-warning); }
.btn-link, .btn-simple { border-color: transparent !important; background: transparent !important; color: var(--rydo-link) !important; box-shadow: none !important; }
.btn-group > .btn { border-radius: 0; }
.btn-group > .btn:first-child { border-radius: var(--rydo-radius-pill) 0 0 var(--rydo-radius-pill); }
.btn-group > .btn:last-child { border-radius: 0 var(--rydo-radius-pill) var(--rydo-radius-pill) 0; }
.btn-group > .btn:only-child { border-radius: var(--rydo-radius-pill); }
.header form { display: inline-block; }

/* ---------- Badges / labels ---------- */
.label, .badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--rydo-radius-pill);
  font-size: 12px; font-weight: 700; letter-spacing: .01em; text-transform: none; line-height: 1;
  background: var(--rydo-surface-raised); color: var(--rydo-text);
}
.label-primary, .badge-primary { background: var(--rydo-volt); color: var(--rydo-on-volt); }
.label-success { background: #DCFAE6; color: var(--rydo-success); }
.label-warning { background: #FEF0C7; color: var(--rydo-warning); }
.label-danger { background: #FEE4E2; color: var(--rydo-danger); }
.label-info { background: #DBE6FE; color: var(--rydo-route); }
.label-default { background: var(--rydo-surface-raised); color: var(--rydo-text-muted); }

/* ---------- Alerts ---------- */
.alert { border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 500; box-shadow: none; }
.alert-success { background: #DCFAE6; color: var(--rydo-success); }
.alert-danger { background: #FEE4E2; color: var(--rydo-danger); }
.alert-warning { background: #FEF0C7; color: var(--rydo-warning); }
.alert-info { background: #DBE6FE; color: var(--rydo-route); }

/* ---------- Pagination (X.PagedList renders Bootstrap 3 markup) ---------- */
.pagination-container { padding: 16px 24px 8px; }
.pagination { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.pagination > li > a, .pagination > li > span {
  float: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px; margin: 0 !important;
  border: 1px solid var(--rydo-hairline); border-radius: var(--rydo-radius-pill) !important;
  background: var(--rydo-surface); color: var(--rydo-text) !important; font-weight: 600;
}
.pagination > li > a:hover, .pagination > li > a:focus { background: var(--rydo-surface-raised); border-color: var(--rydo-control-border); }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus, .pagination > .active > span {
  background: var(--rydo-volt) !important; border-color: var(--rydo-volt) !important; color: var(--rydo-on-volt) !important;
}
.pagination > .disabled > a, .pagination > .disabled > span { color: var(--rydo-text-muted) !important; background: var(--rydo-surface); }

/* ---------- Dropdowns ---------- */
.dropdown-menu {
  padding: 8px; border: 0; border-radius: 14px; min-width: 200px;
  background: var(--rydo-surface-overlay); box-shadow: var(--rydo-elev-3);
}
.dropdown-menu:before, .dropdown-menu:after { display: none !important; }
.dropdown-menu > li > a { padding: 10px 14px; border-radius: 10px !important; color: var(--rydo-text) !important; font-weight: 500; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { background: var(--rydo-surface-raised) !important; color: var(--rydo-text) !important; }
.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover { background: var(--rydo-volt-soft) !important; color: var(--rydo-text) !important; }
.dropdown-header { padding: 8px 14px; color: var(--rydo-text-muted); font-size: 12px; font-weight: 600; }
.dropdown-menu .divider { background: var(--rydo-hairline); margin: 6px 0; }

/* ---------- Modals ---------- */
.modal-content { border: 0; border-radius: 28px; box-shadow: var(--rydo-elev-3); background: var(--rydo-surface-overlay); }
.modal-header { border-bottom: 0; padding: 24px 24px 8px; }
.modal-header .modal-title { font-weight: 700; font-size: 20px; }
.modal-body { padding: 8px 24px 16px; }
.modal-footer { border-top: 0; padding: 8px 24px 24px; }
.modal-backdrop.in { opacity: .45; background: var(--rydo-ink); }
.close { opacity: .6; text-shadow: none; color: var(--rydo-text); }

/* ---------- Tabs / pills ---------- */
.nav-tabs { border-bottom: 1px solid var(--rydo-hairline); }
.nav-tabs > li > a {
  margin: 0; border: 0 !important; border-radius: 0; padding: 12px 18px;
  color: var(--rydo-text-muted); font-weight: 600; background: transparent !important; box-shadow: inset 0 -3px 0 transparent;
}
.nav-tabs > li > a:hover { color: var(--rydo-text); background: var(--rydo-surface-raised) !important; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: var(--rydo-text); box-shadow: inset 0 -3px 0 var(--rydo-volt); }
.nav-pills > li > a { border-radius: var(--rydo-radius-pill); color: var(--rydo-text-muted); font-weight: 600; }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus, .tabbedMenu .active {
  background: var(--rydo-volt) !important; color: var(--rydo-on-volt) !important;
}

/* ---------- Bootstrap switch (LBD) ---------- */
.has-switch { -webkit-mask: none; mask: none; box-shadow: inset 0 0 0 1px var(--rydo-hairline); }
.has-switch span.switch-left, .has-switch span.switch-right { background-color: var(--rydo-volt); color: var(--rydo-on-volt); }
.has-switch .switch-off span.switch-left, .has-switch .switch-off span.switch-right { background-color: var(--rydo-hairline); color: var(--rydo-text-muted); }
.has-switch > div label { background: #fff; box-shadow: 0 1px 3px rgba(11, 15, 20, .3); }

/* ---------- jQuery UI datepicker + timepicker ---------- */
.ui-datepicker {
  z-index: 2000 !important; padding: 12px; border: 0 !important; border-radius: var(--rydo-radius-md);
  background: var(--rydo-surface-overlay) !important; box-shadow: var(--rydo-elev-3); font-family: var(--rydo-font); width: 18em;
}
.ui-datepicker .ui-datepicker-header { border: 0; border-radius: 10px; background: var(--rydo-ink); color: #fff; padding: 6px 0; }
.ui-datepicker .ui-datepicker-title { font-weight: 700; }
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { top: 6px !important; border: 0 !important; background: transparent !important; cursor: pointer; }
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { filter: invert(1); }
.ui-datepicker th { color: var(--rydo-text-muted); font-weight: 700; font-size: 12px; }
.ui-datepicker td a, .ui-datepicker td span {
  text-align: center !important; border: 0 !important; border-radius: 50%; background: transparent !important;
  color: var(--rydo-text) !important; padding: 6px 0 !important; font-weight: 500;
}
.ui-datepicker td a:hover { background: var(--rydo-surface-raised) !important; }
.ui-datepicker td a.ui-state-highlight { box-shadow: inset 0 0 0 1.5px var(--rydo-ink); }
.ui-datepicker td a.ui-state-active { background: var(--rydo-volt) !important; color: var(--rydo-on-volt) !important; font-weight: 700; }
.ui-datepicker .ui-datepicker-buttonpane button { border-radius: var(--rydo-radius-pill); }
.ui-timepicker-wrapper, .ui-timepicker-list { border: 0 !important; border-radius: 14px; box-shadow: var(--rydo-elev-3); font-family: var(--rydo-font); }
.ui-timepicker-list li.ui-timepicker-selected, .ui-timepicker-list li:hover { background: var(--rydo-volt) !important; color: var(--rydo-on-volt) !important; }

/* ---------- Dashboard ---------- */
.rydo-c-dashboard .rydo-page-card { background: transparent; box-shadow: none; padding: 0; overflow: visible; }
.rydo-c-dashboard .rydo-page-card > .content { padding: 0; }
.rydo-c-dashboard .rydo-page-card .card { border: 0; box-shadow: var(--rydo-elev-1); border-radius: var(--rydo-radius-md); }
.rydo-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 24px; }
.rydo-kpi {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px;
  background: var(--rydo-surface); border-radius: var(--rydo-radius-md); box-shadow: var(--rydo-elev-1);
  transition: box-shadow .2s, transform .2s;
}
.rydo-kpi:hover { box-shadow: var(--rydo-elev-2); transform: translateY(-1px); }
.rydo-kpi-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--rydo-volt); color: var(--rydo-on-volt); font-size: 26px;
}
.rydo-kpi-icon.is-ink { background: var(--rydo-ink); color: var(--rydo-volt); }
.rydo-kpi-icon.is-soft { background: var(--rydo-volt-soft); color: var(--rydo-ink); }
.rydo-kpi-label { margin: 0 0 4px; color: var(--rydo-text-muted); font-size: 13px; font-weight: 600; }
.rydo-kpi-value { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--rydo-text); }
.rydo-kpi-value a { color: var(--rydo-text) !important; text-decoration: none; border-bottom: 2px solid var(--rydo-volt); }
.rydo-kpi-delta { display: inline-flex; align-items: center; gap: 4px; margin: 8px 0 0; font-size: 12px; font-weight: 600; color: var(--rydo-text-muted); }
.rydo-kpi-delta .material-symbols-rounded { font-size: 16px; }
.rydo-kpi-delta.is-live { color: var(--rydo-success); }
.rydo-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.rydo-dot-a { background: var(--rydo-volt); box-shadow: inset 0 0 0 1px rgba(11, 15, 20, .25); }
.rydo-dot-b { background: var(--rydo-route); }
.rydo-dot-c { background: var(--rydo-ink); }

/* Chartist in brand colours */
.ct-label { color: var(--rydo-text-muted); fill: var(--rydo-text-muted); font-size: 12px; font-family: var(--rydo-font); }
.ct-grid { stroke: var(--rydo-hairline); stroke-dasharray: 3 3; }
.ct-series-a .ct-line, .ct-series-a .ct-point, .ct-series-a .ct-bar { stroke: #9BC21B; }
.ct-series-a .ct-area, .ct-series-a .ct-slice-pie { fill: var(--rydo-volt); fill-opacity: .55; }
.ct-series-b .ct-line, .ct-series-b .ct-point, .ct-series-b .ct-bar { stroke: var(--rydo-route); }
.ct-series-b .ct-area, .ct-series-b .ct-slice-pie { fill: var(--rydo-route); fill-opacity: .25; }
.ct-series-c .ct-line, .ct-series-c .ct-point, .ct-series-c .ct-bar { stroke: var(--rydo-ink); }
.ct-series-c .ct-area, .ct-series-c .ct-slice-pie { fill: var(--rydo-ink); fill-opacity: .18; }

/* Categorical charts: fixed hue order a-d, validated for CVD on the light surface */
.rydo-chart-cat .ct-bar { stroke-width: 20px; }
.rydo-chart-cat .ct-series-a .ct-bar, .rydo-chart-cat .ct-series-a .ct-slice-donut { stroke: #86A80C; }
.rydo-chart-cat .ct-series-b .ct-bar, .rydo-chart-cat .ct-series-b .ct-slice-donut { stroke: #1D4ED8; }
.rydo-chart-cat .ct-series-c .ct-bar, .rydo-chart-cat .ct-series-c .ct-slice-donut { stroke: #D97706; }
.rydo-chart-cat .ct-series-d .ct-bar, .rydo-chart-cat .ct-series-d .ct-slice-donut { stroke: #7C3AED; }
.rydo-dot-cat-a { background: #86A80C; } .rydo-dot-cat-b { background: #1D4ED8; }
.rydo-dot-cat-c { background: #D97706; } .rydo-dot-cat-d { background: #7C3AED; }
.card .footer .legend strong { color: var(--rydo-text); margin-left: 2px; }

/* ---------- Old dashboard tiles still used elsewhere ---------- */
.dashBX { border: 0; border-radius: var(--rydo-radius-md); background: var(--rydo-surface); box-shadow: var(--rydo-elev-1); color: var(--rydo-text-muted); font-size: 14px; font-weight: 600; }
.dashBX span { color: var(--rydo-text); font-weight: 800; font-size: 28px; }

/* ---------- Fancybox + misc ---------- */
.fancybox-skin { border-radius: var(--rydo-radius-md) !important; }
.img-thumbnail { border-radius: 12px; border-color: var(--rydo-hairline); }
::selection { background: var(--rydo-volt); color: var(--rydo-on-volt); }

/* ---------- Polish pass (visual audit 2026-10-16) ---------- */
/* Row links (driver/customer names) read as text, not faded grey */
.table > tbody > tr > td > a:not(.btn) { color: var(--rydo-text) !important; font-weight: 500; text-decoration: none; }
.table > tbody > tr > td > a:not(.btn):hover { color: var(--rydo-link) !important; text-decoration: underline; }
/* Secondary text links that sit beside the row icons (e.g. "Vehicle Info Verification") stay quiet */
.table > tbody > tr > td > a:not(.btn):not(:only-child):not(:has(> [class^="pe-7s-"])):not(:has(> .fa)) {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--rydo-radius-pill);
  background: var(--rydo-surface-raised); color: var(--rydo-text) !important; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.table > tbody > tr > td > a:not(.btn):not(:only-child):not(:has(> [class^="pe-7s-"])):not(:has(> .fa)):hover { background: var(--rydo-hairline); text-decoration: none; }
.table > tbody > tr > td:last-child { white-space: nowrap; }
/* Page header: title left, actions right, vertically centred */
.rydo-page-card > .header > .row { display: flex; flex-wrap: wrap; align-items: center; row-gap: 12px; }
.rydo-page-card > .header > .row > .text-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.rydo-page-card > .header .btn-fill[style*="width"] { width: auto !important; }
/* Row action icons: big enough to see and hit */
.table td a > [class^="pe-7s-"], .table td a > [class*=" pe-7s-"], .table td a > .fa {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: -7px 0;
  border-radius: 50%; font-size: 17px; color: var(--rydo-text-muted); vertical-align: middle; transition: background-color .15s, color .15s;
}
.table td a:hover > [class^="pe-7s-"], .table td a:hover > [class*=" pe-7s-"], .table td a:hover > .fa { background: var(--rydo-surface-raised); color: var(--rydo-text); }
/* Tables whose header row has no <thead> (VehicleTypes, FAQ, Blog, Banner...) */
.table > tbody > tr:first-child > th {
  background: var(--rydo-surface-raised); color: var(--rydo-text-muted); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 14px 16px; border-top: 0; border-bottom: 1px solid var(--rydo-hairline); white-space: nowrap;
}
.table img.listimage { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; background: var(--rydo-surface-raised); }
.table img.listicon { height: 28px; width: auto; }
/* Forms: cap the width so inputs don't stretch across a wide screen */
/* Create/Edit views render <form> straight into the page card with Bootstrap's col-md-2 / col-md-10 grid, mostly without .form-horizontal */
.rydo-page-card > form:has(.form-group > .col-md-10), .rydo-page-card form.form-horizontal { max-width: 920px; }
.rydo-page-card > form .control-label, .form-horizontal .control-label { padding-top: 11px; }
/* Ride status tabs: segmented control */
.header.tabbedMenu { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: var(--rydo-surface-raised); border-radius: var(--rydo-radius-pill); }
.header.tabbedMenu .btn { height: 36px; padding: 0 18px; border: 0 !important; background: transparent !important; color: var(--rydo-text-muted) !important; box-shadow: none; }
.header.tabbedMenu .btn:hover { color: var(--rydo-text) !important; }
.header.tabbedMenu .btn.active { background: var(--rydo-volt) !important; color: var(--rydo-on-volt) !important; box-shadow: var(--rydo-elev-1); }
/* Login: keep the highlighted words on one line; neutralise Chrome autofill blue */
.rydo-auth-brand h2 { max-width: 16ch; }
.rydo-auth-brand h2 em { white-space: nowrap; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--rydo-surface) inset; -webkit-text-fill-color: var(--rydo-text); caret-color: var(--rydo-text); transition: background-color 9999s ease-out;
}

/* ---------- Login (Views/Home/Index + Views/Shared/_Layout) ---------- */
.rydo-auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; background: var(--rydo-surface); }
.rydo-auth-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 56px; background: var(--rydo-ink); color: #F5F7FA;
}
.rydo-auth-brand:after {
  content: ""; position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 241, 53, .35), rgba(200, 241, 53, 0));
}
.rydo-auth-brand img { height: 40px; width: auto; }
.rydo-auth-brand h2 { color: #F5F7FA !important; font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; max-width: 12ch; }
.rydo-auth-brand h2 em { font-style: normal; background: var(--rydo-volt); color: var(--rydo-on-volt); border-radius: 12px; padding: 0 10px; }
.rydo-auth-brand p { color: #9AA4B2; font-size: 16px; max-width: 40ch; margin: 0; }
.rydo-auth-brand small { position: relative; z-index: 1; color: #9AA4B2; }
.rydo-auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--rydo-surface-raised); }
.rydo-auth-card { width: 100%; max-width: 420px; padding: 40px 36px; border-radius: 28px; background: var(--rydo-surface); box-shadow: var(--rydo-elev-2); }
.rydo-auth-card h1 { font-size: 26px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.02em; }
.rydo-auth-card .rydo-muted { margin: 0 0 28px; }
.rydo-auth-card .form-group label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.rydo-auth-card .btn { width: 100%; height: 48px; font-size: 15px; display: block; line-height: 45px; }
.rydo-auth-card .rydo-auth-logo { display: none; }
.rydo-auth-error { background: #FEE4E2; color: var(--rydo-danger); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-weight: 500; }
.rydo-auth-error:empty { display: none; }
@media (max-width: 860px) {
  .rydo-auth { grid-template-columns: 1fr; }
  .rydo-auth-brand { display: none; }
  .rydo-auth-panel { min-height: 100vh; padding: 24px 16px; }
  .rydo-auth-card { padding: 32px 24px; }
  .rydo-auth-card .rydo-auth-logo { display: block; height: 36px; margin-bottom: 24px; }
}

/* ---------- Skeleton ("shadow") loader: shown while a page loads or a navigation is in flight ---------- */
.rydo-content { position: relative; }
.rydo-skeleton { display: none; position: absolute; inset: 24px; z-index: 5; background: var(--rydo-surface); border-radius: var(--rydo-radius-md); padding: 24px; box-shadow: var(--rydo-elev-1); overflow: hidden; }
html.rydo-loading .rydo-skeleton { display: block; }
html.rydo-loading .rydo-page-card { visibility: hidden; }
.rydo-skeleton span {
  display: block; height: 14px; border-radius: 7px; margin-bottom: 18px;
  background: linear-gradient(90deg, var(--rydo-surface-raised) 25%, var(--rydo-hairline) 50%, var(--rydo-surface-raised) 75%);
  background-size: 400px 100%; animation: rydo-shimmer 1.2s linear infinite;
}
.rydo-skeleton .h { height: 22px; width: 30%; margin-bottom: 28px; }
.rydo-skeleton .w1 { width: 95%; } .rydo-skeleton .w2 { width: 85%; } .rydo-skeleton .w3 { width: 70%; }
@keyframes rydo-shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
@media (max-width: 991px) { .rydo-skeleton { inset: 16px; } }
@media (prefers-reduced-motion: reduce) { .rydo-skeleton span { animation: none; } }
