/* CarCarriers.in — Admin & Staff Portal */
:root {
    --navy-900: #071a44;
    --navy-800: #0a2560;
    --navy-700: #0f3178;
    --primary: #1557e6;
    --primary-600: #0f47c4;
    --primary-50: #eaf1ff;
    --red: #e3262f;
    --red-50: #fdecee;
    --green: #16a34a;
    --green-600: #138a3f;
    --green-50: #e7f7ee;
    --amber: #f5a524;
    --amber-50: #fff5e0;
    --purple: #7c3aed;
    --purple-50: #f1eaff;
    --gray-50: #f6f8fc;
    --gray-100: #eef2f8;
    --gray-200: #e1e7f0;
    --gray-300: #cbd4e2;
    --gray-500: #6b7a93;
    --gray-700: #3a4a63;
    --ink: #0e1b33;
    --bg: #eef3fb;
    --card: #ffffff;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(16, 38, 84, .05), 0 4px 16px rgba(16, 38, 84, .06);
    --sidebar-w: 300px;
    font-size: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

body {
    font-family: "Montserrat", sans-serif !important;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
}

p {
    margin: 0 0 .5rem;
}

small,
.small {
    font-size: 12px;
    font-weight: 500;
}

.muted {
    color: var(--gray-500);
}

.text-red {
    color: var(--red);
}

.text-green {
    color: var(--green);
}

.text-amber {
    color: #c47d00;
}

.text-blue {
    color: var(--primary);
}

.text-purple {
    color: var(--purple);
}

.fw-6 {
    font-weight: 600;
}

.fw-7 {
    font-weight: 700;
}

/* .mono {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: .92em;
} */

.nowrap {
    white-space: nowrap;
}

.right {
    text-align: right;
}

.center {
    text-align: center;
}

.mt-0 {
    margin-top: 0
}

.mt-1 {
    margin-top: .25rem
}

.mt-2 {
    margin-top: .5rem
}

.mt-3 {
    margin-top: 1rem
}

.mt-4 {
    margin-top: 1.5rem
}

.mb-0 {
    margin-bottom: 0
}

.mb-1 {
    margin-bottom: .25rem
}

.mb-2 {
    margin-bottom: .5rem
}

.mb-3 {
    margin-bottom: 1rem
}

.flex {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.between {
    justify-content: space-between;
}

.grow {
    flex: 1;
    min-width: 0;
}

.gap-3 {
    gap: 1rem;
}

.hidden {
    display: none !important;
}

/* ------------------------------------------------------------------ Layout */
.app {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
    color: #dbe5ff;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 14px 12px 18px;
    overflow-y: auto;
    z-index: 30;
}

.sidebar .brand {
    background: #fff;
    border-radius: 10px;
    /* padding: 10px 8px; */
    margin-bottom: 18px;
    display: none;
}

.sidebar .brand:hover {
    text-decoration: none;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 9px;
    color: #e3ebff;
    font-size: 13px;
    font-weight: 500;
}

.nav a i {
    font-size: 13px;
    width: 24px;
    text-align: center;
}

.nav a:hover {
    background: rgba(255, 255, 255, .07);
    text-decoration: none;
}

.nav a.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(21, 87, 230, .35);
}

.nav .count {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
}

.nav-label {
    font-size: .75rem;
    letter-spacing: .12em;
    color: #8ea6d8;
    margin: 14px 14px 4px;
    text-transform: uppercase;
}

.sidebar .spacer {
    flex: 1;
}

.sidebar .logout {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-top: 12px;
    margin-top: 12px;
}

.sidebar .logout button {
    all: unset;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    color: #e3ebff;
    font-size: 13px;
    width: calc(100% - 28px);
    border-radius: 9px;
}

.sidebar .logout button:hover {
    background: rgba(255, 255, 255, .07);
}

.sidebar .portal-tag {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 9px;
    padding: 10px 14px;
    font-weight: 700;
    letter-spacing: .06em;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    color: #fff;
}

.main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, .65);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 20;
}

.menu-btn {
    all: unset;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--navy-800);
    padding: 4px;
}

.page-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 20px;
}

.page-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.page-title h1 {
    font-size: 22px;
    line-height: 1.25;
    color: var(--navy-800);
    letter-spacing: -.01em;
    font-weight: 800;
}

.page-title .sub {
    color: var(--gray-500);
    font-size: 13px;
    margin-top: 2px;
}

.topbar .topbar-title h1 {
    font-size: 16px;
}

.page-title .crumbs a {
    color: var(--primary);
}

.top-search {
    margin-left: auto;
    position: relative;
    width: min(420px, 34vw);
}

.top-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.top-search i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bell {
    position: relative;
    font-size: 1.5rem;
    color: var(--navy-800);
}

.bell .dot {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--red);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 999px;
    min-width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.dropdown {
    position: relative;
}

.dropdown>summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown>summary::-webkit-details-marker {
    display: none;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(10, 37, 96, .18);
    min-width: 240px;
    padding: 6px 6px 10px;
    z-index: 50;
}

.dropdown-menu a,
.dropdown-menu button {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--ink);
    width: 100%;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: var(--gray-50);
    text-decoration: none;
}

.notif-menu {
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
}

.notif-item {
    display: block !important;
    border-bottom: 1px solid var(--gray-100);
}

.notif-item.unread {
    background: var(--primary-50);
}

.user-chip .avatar {
    width: 40px;
    height: 40px;
}

.user-chip .who {
    line-height: 1.15;
}

.user-chip .who b {
    color: var(--navy-800);
    font-size: 1.05rem;
}

.content {
    padding: 20px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.page-lead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.page-lead p {
    margin: 0;
    color: var(--gray-700);
    font-size: 1.1rem;
}

/* ------------------------------------------------------------------- Logo */
.logo {
    text-align: center;
    line-height: 1;
    user-select: none;
}

.logo .word {
    font-weight: 800;
    font-style: italic;
    letter-spacing: -.02em;
    color: var(--red);
    font-size: 1.85rem;
    text-shadow: 1px 1px 0 #111;
}

.logo .tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: #111;
    margin-top: 4px;
}

.logo .tag::before,
.logo .tag::after {
    content: "";
    flex: 1;
    max-width: 28px;
    height: 5px;
    background: repeating-linear-gradient(180deg, #111 0 1.5px, transparent 1.5px 3px), linear-gradient(90deg, var(--red), var(--red));
    background-blend-mode: multiply;
}

.logo.lg .word {
    font-size: 3rem;
}

.logo.lg .tag {
    font-size: .95rem;
    margin-top: 8px;
}

.logo.lg .tag::before,
.logo.lg .tag::after {
    max-width: 44px;
    height: 8px;
}

/* ------------------------------------------------------------------ Cards */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e6ecf6;
    padding: 18px 20px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.card.p-0 {
    padding: 0;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.card-title {
    font-size: 15px;
    color: var(--navy-800);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.card-title::before {
    content: "";
    width: 4px;
    height: 1.25em;
    background: var(--red);
    border-radius: 2px;
}

.card-title.sm {
    font-size: 1.08rem;
}

.card-sub {
    color: var(--gray-500);
    margin-top: -10px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-800);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 8px;
}

.section-title::before {
    content: "";
    width: 3px;
    height: 1.1em;
    background: var(--red);
    border-radius: 2px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    align-items: start;
}

.split-wide {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.split.split-dash {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}

.split.split-450 {
    grid-template-columns: minmax(0, 1fr) 450px;
}

.split.split-470 {
    grid-template-columns: minmax(0, 1fr) 470px;
}

.filters.f4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.grid-dash {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

/* ------------------------------------------------------------ Stat cards */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e6ecf6;
    padding: 18px 20px;
    display: flex;
    gap: 18px;
    align-items: center;
    color: inherit;
}

a.stat:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(16, 38, 84, .12);
}

.stat .ico {
    width: 50px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex: none;
}

.stat .val {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    color: var(--ink);
}

.stat .lbl {
    font-size: 13px;
    color: var(--gray-700);
    font-weight: 500;
    margin-top: 5px;
}

.stat .trend {
    font-size: .9rem;
    margin-top: 4px;
    color: var(--gray-500);
}

.stat .trend b {
    font-weight: 600;
}

.stat.compact .ico {
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
}

.stat.compact .val {
    font-size: 1.25rem;
}

.stat.compact .lbl {
    font-size: 1rem;
}

.bg-blue {
    background: var(--primary);
}

.bg-amber {
    background: var(--amber);
}

.bg-green {
    background: var(--green);
}

.bg-red {
    background: var(--red);
}

.bg-purple {
    background: var(--purple);
}

.bg-navy {
    background: var(--navy-800);
}

.soft-blue {
    background: var(--primary-50);
    color: var(--primary);
}

.soft-green {
    background: var(--green-50);
    color: var(--green);
}

.soft-amber {
    background: var(--amber-50);
    color: #c47d00;
}

.soft-red {
    background: var(--red-50);
    color: var(--red);
}

.soft-purple {
    background: var(--purple-50);
    color: var(--purple);
}

/* --------------------------------------------------------------- Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: .84rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
}

.badge-green {
    background: #dcf5e6;
    color: #11793a;
}

.badge-amber {
    background: #ffedc7;
    color: #8a5a00;
}

.badge-blue {
    background: #dfe9ff;
    color: #1546b8;
}

.badge-purple {
    background: #ece2ff;
    color: #5b23c4;
}

.badge-red {
    background: #ffe0e2;
    color: #b4161e;
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-700);
}

.badge-solid-green {
    background: var(--green);
    color: #fff;
}

.badge-solid-red {
    background: var(--red);
    color: #fff;
}

.badge-solid-blue {
    background: #3b82f6;
    color: #fff;
}

.role-super_admin {
    background: #7c3aed;
    color: #fff;
}

.role-admin {
    background: #dbe8ff;
    color: #1546b8;
}

.role-operations {
    background: #2563eb;
    color: #fff;
}

.role-customer {
    background: #fde68a;
    color: #7a4f00;
}

.role-delivery {
    background: #cff4ff;
    color: #075985;
}

.role-system {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* --------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 9px;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background .15s, box-shadow .15s;
    height: 47px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-600);
}

.btn-outline {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-50);
}

.btn-light {
    background: var(--primary-50);
    color: var(--primary);
}

.btn-light:hover {
    background: #dbe7ff;
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-ghost:hover {
    background: var(--gray-50);
}

.btn-danger {
    background: var(--red);
    color: #fff;
}

.btn-danger:hover {
    background: #c81e26;
}

.btn-outline-danger {
    background: #fff;
    color: var(--red);
    border-color: var(--red);
}

.btn-outline-danger:hover {
    background: var(--red-50);
}

.btn-success {
    background: var(--green);
    color: #fff;
}

.btn-success:hover {
    background: var(--green-600);
}

.btn-sm {
    padding: 5px 11px;
    font-size: .9rem;
    border-radius: 7px;
}

.btn-xs {
    padding: 3px 9px;
    font-size: .82rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 12px 22px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn[disabled],
.btn.disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.link-btn {
    all: unset;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
}

.link-btn:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------------------- Forms */
.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 5px;
    font-size: 13px !important;
}

.form-control,
.form-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 9px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    min-height: 47px;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 87, 230, .15);
}

.form-control[readonly],
.form-control:disabled,
.form-select:disabled {
    background: var(--gray-100);
    color: var(--gray-500);
}

textarea.form-control {
    min-height: 84px;
    resize: vertical;
}

.form-hint {
    color: var(--gray-500);
    font-size: .85rem;
    margin-top: 3px;
}

.form-error {
    color: var(--red);
    font-size: .85rem;
    margin-top: 3px;
}

.is-invalid {
    border-color: var(--red) !important;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.input-icon {
    position: relative;
}

.input-icon>i,
.input-icon>svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 16px;
    color: var(--primary);
    pointer-events: none;
}

.input-icon>.form-control,
.input-icon>.form-select {
    padding-left: 38px;
}

.input-icon .toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 1.15rem;
}

.check {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.check input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    margin-top: 2px;
    flex: none;
}

.filters {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(130px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.filters .actions {
    display: flex;
    gap: 10px;
}

.filters.audit-filters {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.filters.audit-filters .search-col {
    grid-column: 1 / -1;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.switch input {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: var(--gray-300);
    position: relative;
    cursor: pointer;
    transition: background .2s;
    margin: 0;
    flex: none;
}

.switch input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: left .2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.switch input:checked {
    background: var(--green);
}

.switch input:checked::after {
    left: 21px;
}

.switch input:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.switch.blue input:checked {
    background: var(--primary);
}

/* ------------------------------------------------------------------ Tabs */
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--primary-50);
    color: var(--navy-800);
    font-weight: 500;
    border: 1px solid transparent;
    font-size: 13px;
}

.chip:hover {
    text-decoration: none;
    background: #dbe7ff;
}

.chip.active {
    background: var(--primary);
    color: #fff;
}

.tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.tabs a {
    padding: 10px 14px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 1.05rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.tabs a:hover {
    text-decoration: none;
    color: var(--primary);
}

.tabs a.active {
    color: var(--navy-800);
    border-bottom-color: var(--primary);
}

.seg {
    display: inline-flex;
    border: 1px solid var(--gray-200);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

.seg a,
.seg button,
.seg label {
    padding: 8px 16px;
    color: var(--gray-700);
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
    border-right: 1px solid var(--gray-200);
}

.seg> :last-child {
    border-right: 0;
}

.seg .active,
.seg input:checked+span {
    background: var(--primary);
    color: #fff;
}

.seg label {
    padding: 0;
}

.seg label span {
    display: block;
    padding: 8px 16px;
}

.seg label input {
    display: none;
}

/* ----------------------------------------------------------------- Table */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}

.table th {
    background: #092259;
    color: #ffffff;
    text-align: left;
    font-weight: 600;
    padding: 10px 12px;
    white-space: nowrap;
    border-bottom: 1px solid var(--gray-200);
    height: 50px;
    font-size: 13px;
}

.table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover {
    background: #f8faff;
}

.table tr.selected {
    background: #eef4ff;
}

.table .sub {
    color: var(--gray-500);
    font-size: .85rem;
    display: block;
}

.table .chk {
    width: 36px;
}

.table.compact td,
.table.compact th {
    padding: 7px 9px;
}

.table.compact {
    font-size: .9rem;
}

/* nowrap only where the table can scroll; elsewhere cells wrap so they never spill out of the card */
.table.compact td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.table-wrap .table.compact td {
    white-space: nowrap;
    overflow-wrap: normal;
}

.table .wrap {
    white-space: normal;
}

.empty {
    text-align: center;
    color: var(--gray-500);
    padding: 32px 12px !important;
}

.empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 6px;
    color: var(--gray-300);
}

.kebab {
    all: unset;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 1.15rem;
    color: var(--gray-700);
}

.kebab:hover {
    background: var(--gray-100);
}

.bulk-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.bulk-bar .box {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 9px;
    padding: 6px 10px;
}

.table-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
    color: var(--gray-700);
}

/* Pagination */
.pager {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.pager a,
.pager span {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-700);
    padding: 0 9px;
}

.pager a:hover {
    text-decoration: none;
    border-color: var(--primary);
    color: var(--primary);
}

.pager .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
}

.pager .disabled {
    opacity: .45;
}

/* ------------------------------------------------------- Key/value lists */
.kv {
    width: 100%;
    border-collapse: collapse;
}

.kv td {
    padding: 6px 4px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
}

.kv td:first-child {
    color: var(--gray-500);
    width: 42%;
}

.kv td:last-child {
    color: var(--ink);
    font-weight: 500;
}

.kv tr:last-child td {
    border-bottom: 0;
}

.kv.tight td {
    padding: 4px;
    font-size: .92rem;
}

.meta-row {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.meta-row>div {
    min-width: 0;
}

.meta-row .k {
    color: var(--gray-500);
    font-size: .88rem;
}

.meta-row .v {
    font-weight: 600;
    color: var(--navy-800);
}

.divider {
    border: 0;
    border-top: 1px solid var(--gray-200);
    margin: 12px 0;
}

/* ------------------------------------------------------- Detail panels */
.panel-id {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy-800);
}

.info-tile {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 10px 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

.info-grid .item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.info-grid .item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 1px;
}

.notice {
    border-radius: 10px;
    padding: 11px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .95rem;
}

.notice i {
    font-size: 1.15rem;
    margin-top: 1px;
}

.notice.info {
    background: var(--primary-50);
    color: #1d3f8f;
    border: 1px solid #cddcff;
}

.notice.success {
    background: var(--green-50);
    color: #11612f;
    border: 1px solid #c4ebd2;
}

.notice.warn {
    background: var(--amber-50);
    color: #7a4f00;
    border: 1px solid #ffe2a6;
}

.notice.danger {
    background: var(--red-50);
    color: #9b1219;
    border: 1px solid #ffcfd2;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checklist li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.checklist .bi-check-circle-fill {
    color: var(--green);
}

.checklist .bi-lock-fill {
    color: var(--gray-500);
}

.checklist .bi-x-circle-fill,
.checklist .bi-dash-circle-fill.red {
    color: var(--red);
}

.checklist .bi-dash-circle-fill {
    color: var(--gray-500);
}

/* Hero banners */
.hero {
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid;
}

.hero.success {
    background: linear-gradient(90deg, #e9f8ef, #f3fbf6);
    border-color: #c4ebd2;
}

.hero.warn {
    background: linear-gradient(90deg, #fff5e0, #fffaf0);
    border-color: #ffe2a6;
}

.hero.danger {
    background: linear-gradient(90deg, #ffe9eb, #fff4f5);
    border-color: #ffcfd2;
}

.hero .big-ico {
    font-size: 3.6rem;
    line-height: 1;
}

.hero.success .big-ico {
    color: var(--green-600);
}

.hero.warn .big-ico {
    color: var(--amber);
}

.hero.danger .big-ico {
    color: var(--red);
}

.hero h2 {
    font-size: 16px !important;
}

.hero.success h2 {
    color: #0f5d2e;
}

.hero.warn h2 {
    color: #8a4b00;
}

.hero.danger h2 {
    color: #b4161e;
}

.hero .facts {
    display: flex;
    gap: 26px;
    margin-left: auto;
    flex-wrap: wrap;
    border-left: 1px solid rgba(0, 0, 0, .08);
    padding-left: 22px;
}

.hero .facts .k {
    color: var(--gray-500);
    font-size: .9rem;
}

.hero .facts .v {
    font-weight: 700;
    color: var(--navy-800);
    font-size: 1.1rem;
}

/* Mini status tiles under heroes */
.tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tile {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #e6ecf6;
    box-shadow: var(--shadow);
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.tile .ico {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex: none;
}

.tile .k {
    font-weight: 700;
    color: var(--navy-800);
    font-size: 14px;
}

.tile .v {
    font-weight: 700;
    font-size: 14px !important;
}

/* ------------------------------------------------------------- Timeline */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.timeline li {
    position: relative;
    padding: 0 0 14px 30px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 20px;
    bottom: -2px;
    width: 2px;
    background: var(--gray-200);
}

.timeline li:last-child::before {
    display: none;
}

.timeline li.done::before {
    background: var(--green);
}

.timeline .dot {
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    color: #fff;
    background: var(--gray-300);
}

.timeline li.done .dot {
    background: var(--green);
}

.timeline li.current .dot {
    background: #fff;
    border: 3px solid var(--primary);
}

.timeline .t {
    font-weight: 600;
    color: var(--ink);
}

.timeline .h {
    color: var(--gray-500);
    font-size: .85rem;
}

.timeline .when {
    color: var(--gray-500);
    font-size: .85rem;
    float: right;
    text-align: right;
    margin-left: 10px;
}

/* Route progress */
.route {
    position: relative;
    margin: 18px 6px 4px;
    height: 70px;
}

.route .bar {
    position: absolute;
    top: 9px;
    left: 9px;
    right: 9px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
}

.route .fill {
    position: absolute;
    top: 9px;
    left: 9px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.route .stop {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    text-align: center;
    font-size: .85rem;
    width: 110px;
}

.route .stop .pin {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    margin: 0 auto 6px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}

.route .stop.end .pin {
    background: var(--gray-300);
    box-shadow: 0 0 0 2px var(--gray-300);
}

.route .stop.cur .pin {
    background: #fff;
    border: 5px solid var(--primary);
}

.route .stop b {
    display: block;
    color: var(--ink);
}

.route .stop span {
    color: var(--primary);
}

.route .stop.end span,
.route .stop.start span {
    color: var(--gray-500);
}

/* ----------------------------------------------------------------- Alerts */
.flash {
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 500;
}

.flash.success {
    background: var(--green-50);
    color: #11612f;
    border: 1px solid #c4ebd2;
}

.flash.error {
    background: var(--red-50);
    color: #9b1219;
    border: 1px solid #ffcfd2;
}

.flash.dev {
    background: #fff8db;
    color: #6b4e00;
    border: 1px dashed #e0b400;
    font-family: ui-monospace, Consolas, monospace;
    word-break: break-all;
}

.flash ul {
    margin: 0;
    padding-left: 18px;
}

/* ----------------------------------------------------------------- Modal */
dialog.modal {
    border: 0;
    border-radius: 14px;
    padding: 0;
    width: min(520px, 94vw);
    box-shadow: 0 30px 80px rgba(7, 26, 68, .35);
}

dialog.modal::backdrop {
    background: rgba(7, 26, 68, .45);
}

.modal-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-head h3 {
    font-size: 1.2rem;
    color: var(--navy-800);
}

.modal-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-foot {
    padding: 14px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.x-btn {
    all: unset;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--gray-500);
}

/* ---------------------------------------------------------------- Avatar */
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: none;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar.lg {
    width: 60px;
    height: 60px;
    font-size: 2rem;
}

.avatar.xl {
    width: 100px;
    height: 100px;
    font-weight: 900;
    font-size: 34px;
}

.avatar.sm {
    width: 32px;
    height: 32px;
    font-size: .8rem;
}

/* ------------------------------------------------------------- Progress */
.pbar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 999px;
    overflow: hidden;
}

.pbar>span {
    display: block;
    height: 100%;
    background: var(--green);
    border-radius: 999px;
}

.pbar.blue>span {
    background: var(--primary);
}

.pbar.purple>span {
    background: var(--purple);
}

.ring {
    --p: 0;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--gray-200) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.ring.green {
    background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--gray-200) 0);
}

.ring>div {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.ring b {
    font-size: 1.6rem;
    color: var(--navy-800);
}

/* ---------------------------------------------------------- Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 6px 4%;
}

.stepper::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gray-300);
}

.stepper .s {
    position: relative;
    text-align: center;
    flex: 1;
    z-index: 1;
}

.stepper .n {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gray-300);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-weight: 700;
    border: 3px solid #fff;
}

.stepper .s.done .n {
    background: var(--primary);
}

.stepper .s.cur .n {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(21, 87, 230, .2);
}

.stepper .s.final .n {
    background: var(--green);
}

.stepper .l {
    color: var(--gray-500);
    font-weight: 500;
    font-size: 1.05rem;
}

.stepper .s.done .l,
.stepper .s.cur .l {
    color: var(--navy-800);
}

.stepper .s.final .l {
    color: var(--green-600);
}

/* Role cards */
.role-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.role-card {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: #fff;
    display: block;
    color: inherit;
}

.role-card:hover {
    border-color: var(--primary);
    text-decoration: none;
}

.role-card i {
    font-size: 1.9rem;
    color: var(--navy-700);
}

.role-card b {
    display: block;
    font-size: 1.1rem;
    color: var(--navy-800);
    margin-top: 4px;
}

.role-card small {
    color: var(--gray-500);
}

.role-card.active {
    border: 2px solid var(--primary);
    background: var(--primary-50);
}

.role-card.active::after {
    content: "\F26B";
    font-family: "bootstrap-icons";
    position: absolute;
    top: 8px;
    right: 10px;
    color: var(--primary);
    font-size: 1.3rem;
}

.role-card input {
    display: none;
}

/* Permission rows */
.perm-group {
    font-weight: 700;
    color: var(--navy-800);
    background: var(--gray-50);
    padding: 6px 10px;
    border-radius: 6px;
    margin: 8px 0 2px;
}

.perm-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-bottom: 1px solid var(--gray-100);
}

.perm-row:last-child {
    border-bottom: 0;
}

.perm-row .name {
    flex: 1;
}

.perm-row .name small {
    display: block;
    color: var(--gray-500);
}

.perm-row .lock {
    color: var(--red);
    font-weight: 600;
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.perm-row .state {
    width: 30px;
    color: var(--gray-500);
    font-size: .85rem;
}

/* OTP input */
.otp {
    display: flex;
    gap: 12px;
}

.otp input {
    width: 58px;
    height: 64px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    font-family: inherit;
}

.otp input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 87, 230, .15);
}

.otp.sm input {
    width: 46px;
    height: 50px;
    font-size: 1.3rem;
}

/* Map */
.map-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 14px;
}

.map-svg {
    width: 100%;
    height: auto;
}

.map-svg .land {
    fill: #e8eef9;
    stroke: #c5d3ee;
    stroke-width: 1.2;
}

.map-svg .route-line {
    fill: none;
    stroke: #3b6fe0;
    stroke-width: 1.4;
    stroke-dasharray: 3 3;
    opacity: .75;
}

.map-svg text {
    font-size: 9px;
    fill: #253656;
    font-family: "Barlow", sans-serif;
}

.legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: .9rem;
    color: var(--gray-700);
}

.legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.map-facts .f {
    padding: 9px 0;
    border-bottom: 1px solid var(--gray-100);
}

.map-facts .f b {
    display: block;
    font-size: 1.45rem;
    color: var(--ink);
    line-height: 1.1;
}

.map-facts .f span {
    color: var(--gray-500);
}

/* Activity feed */
.feed {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feed li {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--gray-100);
}

.feed li:last-child {
    border-bottom: 0;
}

.feed .ic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.feed .t {
    font-weight: 600;
}

.feed .s {
    color: var(--gray-500);
    font-size: .88rem;
}

.feed .when {
    margin-left: auto;
    color: var(--gray-500);
    font-size: .85rem;
    white-space: nowrap;
}

/* Quick actions */
.quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick a {
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--ink);
}

.quick a:hover {
    text-decoration: none;
    filter: brightness(.97);
}

.quick a i {
    font-size: 1.7rem;
}

.quick a b {
    display: block;
    font-size: 1.05rem;
}

.quick a small {
    color: var(--gray-500);
}

/* Thumbnails */
.thumbs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.thumbs a {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    color: var(--gray-500);
    font-size: 1.4rem;
}

.thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Action tiles (staff workspace) */
.action-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.action-tile {
    all: unset;
    cursor: pointer;
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--navy-800);
    font-size: 12px;
    border: 1px solid transparent;
    line-height: 16px;
}

.action-tile .c {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
}

.action-tile:hover {
    filter: brightness(.97);
    border-color: var(--gray-300);
}

.action-tile.disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* Auth pages */
.auth {
    min-height: 100vh;
    display: flex;
    /* grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); */
}

.innerMainLogContent {
    background: radial-gradient(1200px 600px at 70% 40%, #12408f91 0%, #030304 60%);
    /* background: radial-gradient(1200px 600px at 70% 40%, #12408f 0%, var(--navy-900) 60%); */
    color: #fff;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.auth-aside .brand {
    background: #fff;
    border-radius: 10px;
    padding: 10px 22px;
    width: fit-content;
}

.auth-aside h2 {
    margin-top: 30px;
    font-size: 23px;
    line-height: 1.1;
    font-weight: 800;
}

.auth-aside p.lead {
    font-size: 13px;
    color: #c9d7f5;
    margin: 6px 0px 40px 0px;
    font-weight: 500;
}

.auth-aside .feat {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 30px;
}

.auth-aside .feat .ic {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #8db4ff;
    flex: none;
}

.auth-aside .feat b {
    font-size: 15px;
    display: block;
    margin-bottom: 3px;
}

.auth-aside .feat span {
    color: #c9d7f5;
    font-size: 14px;
}

.auth-aside .shield {
    position: absolute;
    right: -40px;
    bottom: 80px;
    font-size: 16rem;
    color: rgba(80, 140, 255, .18);
}

.auth-aside .foot {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    color: #b5c6ea;
    font-size: .95rem;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-main {
    background-image:
        linear-gradient(180deg, rgba(243, 247, 253, 0.85), rgba(233, 240, 251, 0.85)),
        url('/img/formbacklogin.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(16, 38, 84, .12);
    padding: 40px 44px;
    width: 100%;
}

.auth-card .pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: var(--primary-50);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: .06em;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 12px;
}

.auth-card h1 {
    font-size: 18px;
    margin: 20px 0px 0px;
    color: var(--ink);
    font-weight: 800;
    text-transform: uppercase;
}

.auth-card .lead {
    color: var(--gray-700);
    font-size: 13px;
    margin-bottom: 22px;
    font-weight: 500;
}

.auth-card .form-control {
    min-height: 50px;
    font-size: 13px;
    font-weight: 600;
}

.auth-card .btn-lg {
    min-height: 52px;
}

.auth-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 25px;
}

.auth-steps .s {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 140px;
    position: relative;
    color: var(--gray-500);
    font-weight: 500;
}

.auth-steps .s::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--gray-300);
    z-index: 0;
}

.auth-steps .s:last-child::after {
    display: none;
}

.auth-steps .s .n {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    font-weight: 700;
}

.auth-steps .s.done .n,
.auth-steps .s.cur .n {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.auth-steps .s.done::after {
    background: var(--primary);
}

.auth-steps .s.cur {
    color: var(--primary);
}

.trust {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    background: var(--gray-50);
    border-radius: 12px;
    padding: 12px;
    margin-top: 18px;
    color: var(--gray-700);
    flex-wrap: wrap;
}

.trust span {
    display: flex;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    align-items: center;
}

.trust i {
    color: var(--primary);
}

.sep-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-500);
    font-size: 12px;
    letter-spacing: .12em;
    margin: 18px 0 8px;
    font-weight: 600;
}

.sep-label::before,
.sep-label::after {
    content: "";
    flex: 1;
    border-top: 2px solid var(--gray-300);
}

.strength {
    height: 6px;
    border-radius: 3px;
    background: var(--gray-200);
    overflow: hidden;
    margin-top: 6px;
}

.strength span {
    display: block;
    height: 100%;
    width: 0;
    transition: width .2s, background .2s;
}

/* Footer bars */
.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-radius: var(--radius);
    padding: 12px 18px;
}

.footer-bar.success {
    background: var(--green-50);
    border: 1px solid #c4ebd2;
}

.footer-bar.warn {
    background: var(--amber-50);
    border: 1px solid #ffe2a6;
}

.footer-bar.plain {
    background: #fff;
    border: 1px solid #e6ecf6;
}

.chart-box {
    position: relative;
    height: 230px;
}

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1400px) {
    .split {
        grid-template-columns: minmax(0, 1fr) 350px;
    }

    .filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filters .search-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1180px) {

    .split,
    .split-wide,
    .split.split-dash,
    .split.split-450,
    .split.split-470 {
        grid-template-columns: 1fr;
    }

    .filters.f4 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-dash {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats,
    .tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .action-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .app {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: var(--sidebar-w);
        transform: translateX(-100%);
        transition: transform .25s;
    }

    body.nav-open .sidebar {
        transform: none;
        box-shadow: 0 0 60px rgba(0, 0, 0, .4);
    }

    .top-search {
        display: none;
    }

    .auth {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        display: none;
    }

    .user-chip .who {
        display: none;
    }
}

@media (max-width: 640px) {
    .content {
        padding: 14px 16px 24px;
    }

    .topbar {
        padding: 10px 16px;
        gap: 10px;
    }

    .page-title h1 {
        font-size: 1.2rem;
    }

    .page-head {
        margin-bottom: 14px;
    }

    .stats,
    .tiles,
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-dash,
    .form-grid,
    .filters,
    .filters.f4,
    .quick,
    .info-grid,
    .role-cards {
        grid-template-columns: 1fr;
    }

    .stat .val {
        font-size: 1.6rem;
    }

    .map-wrap {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .otp input {
        width: 44px;
        height: 52px;
        font-size: 1.3rem;
    }

    .otp {
        gap: 7px;
    }

    .hero .facts {
        margin-left: 0;
        border-left: 0;
        padding-left: 0;
    }
}

form.is-submitting button[type=submit],
form.is-submitting button:not([type]) {
    opacity: .65;
    cursor: progress;
}


.dashboardlogo img {
    height: 50px;
    width: auto;
}


.top-actions .dropdown-menu small {
    font-weight: 500;
}

.sidebar {
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.sidebar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.info-tile div span {
    font-size: 13px;
    font-weight: 500;
}

table td button,
table td a {
    height: auto !important;
}

.map-facts .f b {
    font-size: 12px !important;
    font-weight: 700;
    line-height: 18px;
    text-transform: uppercase;
}

.map-facts .f span {
    font-size: 13px;
    font-weight: 500;
}

/* Proof verification photo grid (admin/verify) */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.proof {
    margin: 0;
}

.proof .frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-500);
    font-size: 2rem;
}

.proof .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s;
}

.proof a.frame:hover img {
    transform: scale(1.04);
}

.proof .flag {
    position: absolute;
    left: 8px;
    top: 8px;
    font-size: .78rem;
}

.proof figcaption {
    text-align: center;
    font-weight: 600;
    color: var(--navy-800);
    margin-top: 6px;
    font-size: .92rem;
}


.forgotPassword {
    font-size: 13px;
    font-weight: 500;
}

.myButtonMain {
    font-size: 13px;
    font-weight: 600;
    width: 100%;
}

.centerFlexSection {
    align-items: center !important;
}

.auth-card .notice {
    font-size: 13px;
    font-weight: 500;
}

.authSideContent {
    width: 60%;
}

.forgotThreeSec {
    margin: 30px 0px;
    font-size: 13px;
    font-weight: 500;
}

.auth-main,
.auth-aside {
    width: 50%;
}

.informection {
    width: 80%;
}

input::placeholder,
textarea::placeholder {
    color: #000;
    opacity: 0.5;
    font-weight: 600;
}

.forgotThreeSec {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}


.loginMainContentsec {
    background-image: url('../img/loginbackground.png') !important;
    background-size: cover;
    background-position: center;
}

.dashboardlogo {
    background: #fff;
    border-radius: 18px;
}


.reportGrowSection b {
    font-size: 14px !important;
    font-weight: 600 !important;
}

.reportGrowSection {
    margin-bottom: 15px;
}

.font12w500 {
    font-size: 12px;
    font-weight: 500;
}

.tile span {
    font-size: 13px;
    font-weight: 500;
}

/* Proof photo slots (staff field app pages) */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.slot .frame {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--gray-500);
    font-size: 1.8rem;
    cursor: pointer;
}

.slot .frame.empty {
    border: 2px dashed #b9cdf5;
    color: var(--primary);
    background: var(--primary-50);
}

.slot .frame a {
    display: contents;
}

.slot .frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slot .frame .flag {
    position: absolute;
    right: 6px;
    bottom: 6px;
    font-size: .72rem;
}

.slot .lbl {
    margin-top: 6px;
    font-weight: 600;
    color: var(--navy-800);
    font-size: .95rem;
}



@media (max-width: 1000px) {
    .auth-main, .auth-aside {
        width: 100%;
        padding: 0px;
        padding-bottom: 20px;
    }
    .informection {
       width: 90%;
    }

}