/* Project overrides for the Rizz theme. Do not edit theme files. */

/* ---------- Brand primary #144A86 (replaces the theme's green #22c55e) ---------- */
:root,
[data-bs-theme=light] {
    --brand: #144A86;
    --brand-rgb: 20, 74, 134;
    --brand-hover: #113f72;   /* shade 15% */
    --brand-active: #103b6b;  /* shade 20% */
    --brand-focus: #4f77a4;   /* tint 25% */
    --brand-soft: #7292b6;    /* tint 40%: secondary chart series */

    --bs-primary: var(--brand);
    --bs-primary-rgb: var(--brand-rgb);
    --bs-primary-text-emphasis: #081e36;
    --bs-primary-bg-subtle: rgba(20, 74, 134, 0.1);
    --bs-primary-border-subtle: #a1b7cf;
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: var(--brand-rgb);
    --bs-link-hover-color: var(--brand-active);
    --bs-link-hover-color-rgb: 16, 59, 107;
    --bs-focus-ring-color: rgba(20, 74, 134, 0.25);
}

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-hover);
    --bs-btn-hover-border-color: var(--brand-active);
    --bs-btn-focus-shadow-rgb: 55, 101, 152;
    --bs-btn-active-bg: var(--brand-active);
    --bs-btn-active-border-color: #0f3865;
    --bs-btn-disabled-bg: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
    box-shadow: 0 1px 2px 0 rgba(20, 74, 134, .35);
}

.btn-outline-primary {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-focus-shadow-rgb: 20, 74, 134;
    --bs-btn-active-bg: var(--brand);
    --bs-btn-active-border-color: var(--brand);
    --bs-btn-disabled-color: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
}

.pagination {
    --bs-pagination-active-bg: var(--brand);
    --bs-pagination-active-border-color: var(--brand);
}
.nav-pills { --bs-nav-pills-link-active-bg: var(--brand); }
.breadcrumb { --bs-breadcrumb-item-active-color: var(--brand); }
.progress, .progress-stacked { --bs-progress-bar-bg: var(--brand); }
.list-group { --bs-list-group-active-bg: var(--brand); --bs-list-group-active-border-color: var(--brand); }
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active { border-bottom-color: var(--brand) !important; }

.form-check-input:checked,
.form-check-input[type=checkbox]:indeterminate,
.form-switch-primary .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand-focus); }
.form-switch .form-check-input:focus {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%234f77a4'/%3e%3c/svg%3e");
}
.form-range::-webkit-slider-thumb { background-color: var(--brand); }
.form-range::-moz-range-thumb { background-color: var(--brand); }

/* Sidebar active / hover */
.startbar .startbar-menu .navbar-nav .nav-item .nav-link.active,
.startbar .startbar-menu .navbar-nav .nav-item .nav-link:hover { color: var(--brand); }
.startbar .startbar-menu .navbar-nav .nav-item .nav-link.active::before,
.startbar .startbar-menu .navbar-nav .nav-item .nav-link:hover::before {
    border-color: var(--brand) !important;
    background-color: var(--brand) !important;
}
.label-border .border_left:before, .label-border .border_right:before { border-bottom-color: rgba(20, 74, 134, .2); }
.label-border .border_left:after, .label-border .border_right:after { border-bottom-color: rgba(20, 74, 134, .5); }


/* ---------- Layout design ---------- */
:root {
    --brand-deep: #0b2a4d;
    --brand-ink: #071b33;
    --rr-radius: 14px;
    --rr-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(20, 74, 134, .06);
    --rr-shadow-hover: 0 2px 4px rgba(16, 24, 40, .06), 0 14px 30px rgba(20, 74, 134, .12);
}
body { background-color: #f3f6fb; }

/* Sidebar: brand gradient on Rizz's dark startbar */
[data-startbar=dark] {
    --bs-startbar-bg: var(--brand-ink);
    --bs-menu-icon-color: #8fa8c8;
    --bs-menu-link-color: #c3d1e3;
    --bs-menu-label-color: #6f8bb0;
}
.startbar {
    background: linear-gradient(180deg, var(--brand-deep) 0%, var(--brand-ink) 100%);
    box-shadow: 4px 0 24px rgba(7, 27, 51, .18);
}
.startbar .brand { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.startbar .brand .logo { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; }
.startbar .brand .logo .logo-lg { margin-left: 0; align-items: center; gap: 10px; text-align: center; }
[data-sidebar-size=collapsed] .startbar:not(:hover) .brand .logo .logo-lg { display: none; }
.startbar .brand .logo-sm { height: auto; }
.rr-logo-compact { display: none; }
.rr-logo-compact img { display: block; width: 46px; height: auto; }
[data-sidebar-size=collapsed] .startbar:not(:hover) .rr-logo-compact { display: block; }
.rr-brand-logo {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    padding: 8px 12px; border-radius: 10px;
    box-shadow: 0 6px 14px rgba(7, 27, 51, .25);
}
.rr-brand-logo img { display: block; height: 28px; width: auto; transition: height .3s; }
.rr-brand-text { display: inline-flex; flex-direction: column; line-height: 1.15; text-align: start; white-space: nowrap; overflow: hidden; }
.rr-brand-name { font-weight: 700; font-size: 16px; letter-spacing: .2px; color: #fff; }
.rr-brand-tag { font-size: 11px; color: #8fa8c8; letter-spacing: .4px; }
.startbar .startbar-menu .navbar-nav .menu-label { color: var(--bs-menu-label-color); font-size: 10.5px; font-weight: 600; letter-spacing: 1.4px; }
.startbar .startbar-menu .navbar-nav .nav-item .nav-link { color: var(--bs-menu-link-color); }
.startbar .startbar-menu .navbar-nav .nav-item .nav-link .menu-icon { color: var(--bs-menu-icon-color); transition: color .2s; }
.startbar .startbar-menu .navbar-nav .nav-item .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.startbar .startbar-menu .navbar-nav .nav-item .nav-link:hover .menu-icon { color: #fff; }
.startbar .startbar-menu .navbar-nav .nav-item .nav-link:hover::before { background-color: transparent !important; border-color: transparent !important; }
.startbar .startbar-menu .navbar-nav .nav-item .nav-link.active {
    color: #fff; font-weight: 600;
    background: linear-gradient(90deg, rgba(47, 123, 212, .35) 0%, rgba(47, 123, 212, .08) 100%);
    border-color: rgba(120, 170, 230, .18);
}
.startbar .startbar-menu .navbar-nav .nav-item .nav-link.active .menu-icon { color: #7fb4f0; }
.startbar .startbar-menu .navbar-nav .nav-item .nav-link.active::before { background-color: #4f9cf0 !important; border-color: #4f9cf0 !important; }

.rr-fleet-card {
    margin: 16px 0 20px; padding: 14px 16px; border-radius: 12px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07);
}
.rr-fleet-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: #8fa8c8; font-weight: 600; }
.rr-fleet-value { font-size: 22px; font-weight: 700; color: #fff; }
.rr-fleet-value small { font-size: 12px; font-weight: 500; color: #8fa8c8; margin-left: 2px; }
.rr-fleet-card .progress { background: rgba(255, 255, 255, .08); }
.rr-fleet-card .progress-bar { background: linear-gradient(90deg, #2f7bd4, #5fd3a5); }
.rr-fleet-dot { width: 8px; height: 8px; border-radius: 50%; }
.rr-fleet-dot.is-ok { background: #5fd3a5; box-shadow: 0 0 0 4px rgba(95, 211, 165, .18); }
.rr-fleet-dot.is-warn { background: #ffb547; box-shadow: 0 0 0 4px rgba(255, 181, 71, .2); }
[data-sidebar-size=collapsed] .startbar:not(:hover) .rr-fleet-card { display: none; }
[data-sidebar-size=collapsed] .startbar:not(:hover) .nav-link .badge { display: none; }

/* Topbar */
.topbar .welcome-text h3 { font-size: 20px; }
.rr-avatar {
    width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; background: linear-gradient(135deg, #2f7bd4, var(--brand));
    box-shadow: 0 4px 10px rgba(20, 74, 134, .25);
}
.rr-avatar-sm { width: 32px; height: 32px; font-size: 13px; box-shadow: none; }
.rr-bell-count {
    position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--bs-danger); color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
    border: 2px solid var(--bs-body-bg);
}
.rr-bell-count ~ .alert-badge, .topbar .alert-badge { display: none; }

/* Cards & tables */
.card { border-radius: var(--rr-radius); box-shadow: var(--rr-shadow); }
.card-header { background: transparent; border-bottom: 0; padding-top: 1.25rem; }
.card-title { font-weight: 600; }
.table > thead.table-light th {
    background-color: #f5f8fc; color: #5b6b86; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px;
    border-bottom: 0;
}
.table > thead.table-light th:first-child { border-radius: 8px 0 0 8px; }
.table > thead.table-light th:last-child { border-radius: 0 8px 8px 0; }
.table-centered tbody tr { transition: background-color .15s; }
.table-centered tbody tr:hover { background-color: rgba(20, 74, 134, .025); }
.badge { font-weight: 600; letter-spacing: .2px; }
.page-title-box .page-title { font-size: 20px; font-weight: 700; }

/* Dashboard hero */
.rr-hero {
    position: relative; overflow: hidden; color: #fff; border: 0;
    background: radial-gradient(circle at 85% 20%, rgba(95, 211, 165, .22), transparent 38%),
                radial-gradient(circle at 10% 120%, rgba(79, 156, 240, .45), transparent 45%),
                linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    box-shadow: 0 18px 40px rgba(20, 74, 134, .25);
}
.rr-hero .card-body { padding: 2rem; }
.rr-hero::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
    border: 36px solid rgba(255, 255, 255, .05);
}
.rr-hero-eyebrow { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: #a9c4e6; font-weight: 600; margin-bottom: .5rem; }
.rr-hero-title { color: #fff; font-weight: 700; font-size: 26px; margin-bottom: .5rem; }
.rr-hero-text { color: #d3e1f3; max-width: 520px; }
.rr-hero .btn-light { color: var(--brand); }
.rr-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.rr-btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.rr-hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; position: relative; z-index: 1; }
.rr-hero-stat {
    display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(4px);
}
.rr-hero-stat-icon { width: 38px; height: 38px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); font-size: 18px; }
.rr-hero-stat-value { font-weight: 700; font-size: 17px; line-height: 1.2; }
.rr-hero-stat > div { min-width: 0; }
.rr-hero-stat-label { font-size: 12px; color: #b9cfea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-hero-empty { grid-column: 1 / -1; text-align: center; padding: 24px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .25); color: #c9d9ee; }

@media (max-width: 575.98px) {
    .rr-hero .card-body { padding: 1.5rem; }
    .rr-hero-title { font-size: 21px; }
    .rr-hero-stats { grid-template-columns: minmax(0, 1fr); }
    .rr-auth-features { grid-template-columns: minmax(0, 1fr); }
}

/* KPI cards */
.rr-kpi { transition: transform .2s ease, box-shadow .2s ease; }
.rr-kpi:hover { transform: translateY(-3px); box-shadow: var(--rr-shadow-hover); }
.rr-kpi-label { font-size: 13px; font-weight: 500; color: var(--bs-secondary-color); }
.rr-kpi-value { font-size: 26px; font-weight: 700; }
.rr-kpi-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }

/* Login */
.rr-auth { background: #fff; }
.rr-auth-panel {
    position: relative; overflow: hidden; align-items: center; padding: 4rem;
    background: radial-gradient(circle at 80% 15%, rgba(95, 211, 165, .25), transparent 35%),
                radial-gradient(circle at 0% 100%, rgba(79, 156, 240, .5), transparent 45%),
                linear-gradient(140deg, var(--brand) 0%, var(--brand-ink) 100%);
    color: #fff;
}
.rr-auth-panel::after {
    content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, .04);
}
.rr-auth-panel-inner { position: relative; z-index: 1; max-width: 480px; }
.rr-auth-headline { color: #fff; font-weight: 700; font-size: 38px; line-height: 1.2; margin-bottom: 1rem; }
.rr-auth-lead { color: #c9d9ee; font-size: 16px; margin-bottom: 2rem; }
.rr-auth-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rr-auth-features li {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-weight: 500;
}
.rr-auth-features i { font-size: 18px; color: #7fb4f0; }
.rr-auth-form { width: 100%; max-width: 400px; }

/* ---------- Project components ---------- */
.map-picker { height: 320px; border-radius: .375rem; }
.table td.text-nowrap-ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-key { font-family: var(--bs-font-monospace); word-break: break-all; }

/* Confirmation popup */
.rr-confirm { border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(7, 27, 51, .25); }
.rr-confirm-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; }
.rr-confirm [data-confirm-message] { max-width: 360px; margin-inline: auto; }
.modal-backdrop.show { opacity: .45; background-color: var(--brand-ink); }

/* Allowance editor */
#allowances { scroll-margin-top: 90px; }
.min-w-0 { min-width: 0; }
.rr-allow-row {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; gap: 8px 20px; align-items: center;
    padding: 14px 12px; margin: 0 -12px; border-radius: 12px; border-bottom: 1px dashed var(--bs-border-color);
    transition: background-color .15s;
}
.rr-allow-row:last-of-type { border-bottom: 0; }
.rr-allow-row.is-dirty { background: rgba(20, 74, 134, .045); box-shadow: inset 3px 0 0 var(--brand); }
.rr-allow-service { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rr-allow-bar { height: 7px; background: #edf1f7; }
.rr-allow-edit { display: flex; align-items: center; gap: 8px; }
.rr-allow-mode .btn { min-width: 68px; }
.rr-allow-input { width: 140px; }
.rr-allow-input .form-control:disabled { background: #f5f7fb; color: var(--bs-secondary-color); }
.rr-allow-error { grid-column: 1 / -1; text-align: end; }
.rr-allow-savebar {
    position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #fff;
    box-shadow: 0 6px 24px rgba(20, 74, 134, .12); border: 1px solid #e6ecf5;
}
@media (max-width: 991.98px) {
    .rr-allow-row { grid-template-columns: minmax(0, 1fr); }
    .rr-allow-edit { justify-content: space-between; }
}

/* Row actions: View · Edit · Delete */
.rr-row-actions { display: inline-flex; align-items: center; gap: 4px; }
.rr-action {
    width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; padding: 0;
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--bs-secondary-color);
    transition: background-color .15s, color .15s;
}
.rr-action:hover { background: var(--bs-primary-bg-subtle); color: var(--brand); }
.rr-action-danger:hover { background: var(--bs-danger-bg-subtle); color: var(--bs-danger); }
.rr-action-view { color: var(--brand); background: rgba(20, 74, 134, .08); font-size: 16px; }
.rr-action-view:hover { background: var(--brand); color: #fff; box-shadow: 0 4px 10px rgba(20, 74, 134, .25); }

/* Service icons (uploaded images, initial as fallback) */
.rr-service-icon {
    flex: none; border-radius: 11px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bs-primary-bg-subtle); color: var(--brand); font-weight: 700;
}
.rr-service-icon img { width: 100%; height: 100%; object-fit: cover; }
.rr-hero .rr-service-icon { background: rgba(255, 255, 255, .14); color: #fff; }
.rr-icon-preview { border: 1px dashed var(--bs-border-color); }

/* Dashboard: equal-height card rows, usage & alert lists */
.rr-equal > [class*="col-"] { display: flex; flex-direction: column; }
.rr-equal > [class*="col-"] > .card { flex: 1 1 auto; }
.rr-usage-row, .rr-alert-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--bs-border-color); }
.rr-usage-row:last-child, .rr-alert-row:last-of-type { border-bottom: 0; }
.rr-usage-row.is-idle { opacity: .55; }
.rr-usage-value { font-weight: 700; font-size: 15px; white-space: nowrap; }
.rr-usage-bar { height: 6px; background: #edf1f7; }
.rr-alert-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.rr-alert-row .rr-action:hover { background: var(--bs-success-bg-subtle); color: var(--bs-success); }
.rr-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 28px 12px; color: var(--bs-secondary-color); }
.rr-empty i { font-size: 30px; }
.rr-empty.is-good i { color: var(--bs-success); }

/* Phone input: searchable country code + number */
.rr-phone { flex-wrap: nowrap; }
.rr-phone-btn {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    border: var(--bs-border-width) solid var(--bs-border-color); background: #f5f8fc; color: var(--bs-body-color); font-weight: 500;
}
.rr-phone-btn:hover, .rr-phone-btn.show { background: var(--bs-primary-bg-subtle); border-color: var(--bs-border-color); color: var(--brand); }
.rr-phone.is-invalid .rr-phone-btn { border-color: var(--bs-danger); }
.rr-phone-flag { font-size: 18px; line-height: 1; }
.rr-phone-menu { width: 320px; max-width: calc(100vw - 32px); }
.rr-phone-list { max-height: 280px; overflow-y: auto; }
.rr-phone-option { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 7px 10px; font-size: 13.5px; }
.rr-phone-option.active, .rr-phone-option:active { background: var(--bs-primary-bg-subtle); color: var(--brand); }
.rr-phone-option.active .text-muted { color: var(--brand) !important; }

/* Selectr (searchable selects) and date pickers, aligned with Rizz form controls */
.selectr-container { font-size: inherit; }
.selectr-selected { min-height: calc(1.5em + .75rem + 2px); border-color: var(--bs-border-color); border-radius: var(--bs-border-radius); padding: 6px 28px 6px 12px; background: var(--bs-body-bg); }
.selectr-container.open .selectr-selected, .selectr-selected:focus { border-color: var(--brand-focus); }
.selectr-container:has(select.is-invalid) .selectr-selected { border-color: var(--bs-danger); }
.selectr-options-container { border-color: var(--bs-border-color); border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius); box-shadow: 0 10px 24px rgba(7, 27, 51, .1); }
.selectr-input { border-radius: 8px; }
.selectr-option.active { background: var(--bs-primary-bg-subtle); color: var(--brand); }
.selectr-option.selected { background: var(--brand); color: #fff; }
.rr-daterange .form-control { min-width: 0; }
.datepicker-dropdown { z-index: 1060; }
.datepicker-picker { border-radius: 12px; box-shadow: 0 12px 30px rgba(7, 27, 51, .14); }
.datepicker-cell.selected, .datepicker-cell.selected:hover, .datepicker-cell.range-start, .datepicker-cell.range-end { background-color: var(--brand) !important; color: #fff !important; }
.datepicker-cell.range { background-color: var(--bs-primary-bg-subtle); }
.datepicker-cell.today:not(.selected):not(.range-start):not(.range-end) { background: transparent !important; color: var(--brand) !important; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--brand); }
.datepicker-cell.range { background-color: var(--bs-primary-bg-subtle) !important; color: var(--brand) !important; }
.selectr-input-container { padding: 8px; }
.selectr-input { width: 100% !important; margin: 0 !important; box-sizing: border-box; padding: 6px 30px 6px 10px; border: 1px solid var(--bs-border-color); }
.selectr-options { padding: 0 6px 6px; }
.selectr-option { border-radius: 6px; padding: 7px 10px; }

/* Date range quick presets */
.rr-range-btn {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 500;
    border: var(--bs-border-width) solid var(--bs-border-color); background: #f5f8fc; color: var(--bs-body-color);
}
.rr-range-btn:hover, .rr-range-btn.show { background: var(--bs-primary-bg-subtle); color: var(--brand); border-color: var(--bs-border-color); }
.rr-range-menu { min-width: 250px; padding: 6px; }
.rr-range-option { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 8px; padding: 7px 10px; font-size: 13.5px; }
.rr-range-option.active, .rr-range-option:active { background: var(--bs-primary-bg-subtle); color: var(--brand); font-weight: 600; }
.rr-range-hint { color: var(--bs-secondary-color); font-size: 12px; font-weight: 400; }
.rr-range-option.active .rr-range-hint { color: var(--brand); }

/* Table search */
.rr-table-search { position: relative; min-width: 240px; }
.rr-table-search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--bs-secondary-color); pointer-events: none; font-size: 16px; }
.rr-table-search .form-control { padding-left: 36px; }

/* AJAX filter results */
[data-ajax-results] { transition: opacity .15s ease; }
[data-ajax-results].is-loading { opacity: .45; pointer-events: none; }
.rr-filter-card .card-header { padding-bottom: 1.25rem; }

/* Profile */
.rr-profile-card { overflow: hidden; }
.rr-profile-cover {
    height: 96px;
    background: radial-gradient(circle at 85% 20%, rgba(95, 211, 165, .25), transparent 40%),
                linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
}
.rr-avatar-xl { width: 88px; height: 88px; font-size: 34px; margin-top: -44px; border: 4px solid var(--bs-card-bg, #fff); box-shadow: 0 8px 20px rgba(20, 74, 134, .25); }
.rr-profile-meta { border-top: 1px solid var(--bs-border-color); padding-top: 1rem; }
.rr-profile-meta li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.rr-profile-meta small, .rr-field small { color: var(--bs-secondary-color); font-size: 12px; }
.rr-profile-meta li > div > div { font-weight: 500; }
.rr-profile-meta-icon, .rr-section-icon {
    width: 36px; height: 36px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bs-primary-bg-subtle); color: var(--bs-primary); font-size: 18px;
}
.rr-section-icon { width: 40px; height: 40px; font-size: 20px; }
.rr-field { padding: 12px 14px; border-radius: 10px; background: var(--bs-tertiary-bg, #f6f8fb); }
.rr-field > div { font-weight: 500; margin-top: 2px; }
.rr-pw-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-size: 13px; color: var(--bs-secondary-color); }
.rr-pw-rules li { display: flex; align-items: center; gap: 6px; transition: color .2s; }
.rr-pw-rules i { font-size: 16px; opacity: .4; transition: opacity .2s; }
.rr-pw-rules li.is-met { color: var(--bs-success); }
.rr-pw-rules li.is-met i { opacity: 1; }
@media (max-width: 575.98px) { .rr-pw-rules { grid-template-columns: minmax(0, 1fr); } }

/* Password field with an inline show/hide toggle */
.rr-password { position: relative; }
.rr-password .form-control { padding-right: 3rem; }
.rr-password .form-control.is-invalid { background-position: right 2.75rem center; padding-right: 4.5rem; }
.rr-password-toggle {
    position: absolute; top: 4px; right: 4px; width: 32px; height: calc(100% - 8px); max-height: 32px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px;
    background: transparent; color: var(--bs-secondary-color); font-size: 18px; transition: background-color .15s, color .15s;
}
.rr-password-toggle:hover, .rr-password-toggle.is-active { color: var(--brand); background: rgba(20, 74, 134, .08); }
.rr-password-toggle:focus-visible { outline: 2px solid rgba(20, 74, 134, .35); outline-offset: 1px; }
