/* =========================================================
   1. Brand & Theme Variables
   ========================================================= */

@supports (font-variation-settings: normal) {
    :root {
        font-family: 'Plus Jakarta Sans', 'Inter var', sans-serif;
    }
}

:root {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --bs-body-font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    --primary-color: #00e676;
    --bs-link-color: #00e676;
    --bs-btn-color: #00e676 --bs-btn-hover-bg: #00e676;
    --bs-secondary-color: rgba(33, 37, 41, 0.53);
    --bs-btn-border-color: #00e676;
    --bs-btn-hover-bg: #00e676;
    --bs-btn-hover-border-color: #00e676;
    --bs-btn-active-bg: #00e676;
    --bs-btn-active-border-color: #00e676;
    --bs-btn-disabled-color: #00e676;
    --bs-btn-disabled-border-color: #00e676;
    --bs-primary: #00e676;
    --bs-secondary: #6A8D89;
    --primary-hover: #00c853;
    --bs-primary-rgb: 0, 230, 118;
    --dark-bg: #000000;
    --sidebar-bg: #0b160e;
    --navbar-bg: #091208;
    --card-bg: #ffffff;
    --text-light: #cccccc;
    --text-dark: #111111;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --transition: 0.3s ease;
    --bs-border-radius: 0.2rem;
    --bs-link-color-rgb: 0, 230, 118;
    --bs-body-font-weight: 450;
    --bs-body-font-size: 0.9rem;
    --bs-link-hover-color-rgb: 0, 200, 83;
    --bs-btn-active-bg:;
    --bs-btn-active-border-color;
    --bs-btn-focus-box-shadow;
    --bs-btn-hover-border-color;
    --bs-border-color-translucent: transparent;
    --label-opacity: 0.15;
    --label-primary: 0, 230, 118;
    --bs-secondary-rgb: 110, 144, 140;
    --label-secondary: 110, 144, 140;
    --label-success: 25, 135, 84;
    --label-info: 13, 202, 240;
    --label-warning: 255, 193, 7;
    --label-danger: 220, 53, 69;
    --label-dark: 33, 37, 41;
    --bs-border-radius: 0.8rem;
    --bs-border-radius-lg: 1rem;
    --bs-heading-color: #2B2F38;
}

.card {
    --bs-card-cap-bg: transparent;
    --bs-card-cap-padding-x: 0.8rem;
    --bs-card-cap-padding-y: 0.8rem;
    --bs-card-color: #3a3a3a;
}

#sidebar {
    background: linear-gradient(180deg, #0d1a11 0%, #0a1410 100%);
    border-right: 1px solid rgba(0,230,118,.08);
}

.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--bs-secondary);
}

.btn-group-sm > .btn, .btn-sm {
    --bs-btn-border-radius: 0.8rem;
    height: auto;
    min-height: unset;
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.dropdown-toggle-no-caret::after {
    display: none !important;
}

.modal-backdrop {
    --bs-backdrop-opacity: 0.8;
}

.cursor-pointer {
    cursor: pointer !important;
}


.nav-pills {
    --bs-nav-pills-border-radius: var(--bs-border-radius);
    --bs-nav-pills-link-active-color: #fff;
    --bs-nav-pills-link-active-bg: var(--primary-color);
    --bs-nav-pills-link-active-gradient: linear-gradient( 135deg, #000 0%, #000000b2 45%, #000 100% );
}

    .nav-pills .nav-link.active, .nav-pills .show > .nav-link {
        background: var(--bs-nav-pills-link-active-gradient);
        background-color: unset !important;
    }

    .nav-link:focus, .nav-link:hover {
        color: var(--primary-color);
    }

.nav-link {
    color: #292929;
    font-weight: 500 !important;
}


.bg-secondary {
    background-color: var(--bs-secondary) !important;
}


.bg-label-primary {
    background: rgba(var(--label-primary), var(--label-opacity));
    color: var(--primary-color);
}

.bg-label-secondary {
    background: rgba(var(--label-secondary), var(--label-opacity));
    color: #6c757d;
}

.bg-label-success {
    background: rgba(var(--label-success), var(--label-opacity));
    color: #198754;
}

.bg-label-info {
    background: rgba(var(--label-info), var(--label-opacity));
    color: #0dcaf0;
}

.bg-label-warning {
    background: rgba(var(--label-warning), var(--label-opacity));
    color: #ffc107;
}

.bg-label-danger {
    background: rgba(var(--label-danger), var(--label-opacity));
    color: #dc3545;
}

.bg-label-dark {
    background: rgba(var(--label-dark), var(--label-opacity));
    color: #212529;
}

.badge {
    padding: 6px 12px;
    border-radius: 12px; 
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* =========================================================
   2. Base Reset & Typography
   ========================================================= */
body {
    font-family: var(--bs-body-font-family);
    background: #eef1f5;
    color: var(--text-dark);
}

a {
    text-decoration: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.form-control::placeholder {
    color: #666666;
    opacity: 0.5;
    font-size: smaller;
    font-weight: 400;
    font-size: 12px;
}


.form-label {
    margin-bottom: 6px !important;
    font-size: 13px !important;
}

.form-control:not(textarea) {
    height: 45px !important;
}
/* Add asterisk to labels of required inputs */
.form-control[data-val="true"] {
    position: relative;
}

    .form-control[data-val="true"] + .text-danger,
    .form-control[data-val="true"] {
        /* anchor for :has() fallback safety */
    }
/* Modern browsers (Chrome, Edge, Safari, Firefox) */
.mb-2:has(.form-control[data-val="true"]) > .form-label::after,
.mb-2:has(.selectpickerrr[data-val="true"]) > .form-label::after {
    content: " *";
    color: #dc3545; /* Bootstrap danger */
    font-weight: 700;
}


.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
/* =========================================================
   3. Buttons (Global)
   ========================================================= */



.btn {
    padding-inline: 1.5rem;
    border-radius: 10px;
    height: 40px;
    --bs-btn-border-width: 2px;
}

/* Keep dropdown action buttons aligned with the standard button shape. */
.btn.dropdown-toggle {
    padding-inline: 1.5rem;
    border-radius: 10px;
    height: 40px;
    --bs-btn-border-width: 2px;
}

.btn-icon {
    --bs-btn-active-border-color: transparent;
    padding: 0;
    width: calc(2.278125rem + 2px);
    height: calc(2.278125rem + 2px);
    display: inline-flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
}

    .btn-icon.btn-sm, .btn-group-sm > .btn-icon.btn {
        width: calc(1.725rem + 2px);
        height: calc(1.725rem + 2px);
        font-size: .8125rem;
    }



.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #00c853;
    --bs-btn-active-border-color: #00c853;
    --bs-btn-focus-shadow-rgb: 0, 230, 118;
    --bs-btn-disabled-color: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
}
/* =========================================================
   4. Brand / Logo (Used in Navbar & Auth)
   ========================================================= */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.subtitle {
    font-size: 12.96px;
    color: #666666
}

.brand-icon {
    background: var(--primary-color);
    color: #000;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.brand-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}
/* =========================================================
   5. Dashboard Navbar & Sidebar
   ========================================================= */
.custom-navbar {
    background: var(--navbar-bg);
    height: 60px;
    border-bottom: 1px solid rgba(0,230,118,.10);
}

/* ── Navbar Campaign Search ───────────────────────────────── */
.navbar-search-wrap {
    position: relative;
    flex: 1;
    max-width: 480px;
    margin: 0 24px;
}

.nsearch-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nsearch-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 1;
}

#nsearch-input {
    width: 100%;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    color: #fff;
    font-size: 0.84rem;
    padding: 0 36px 0 34px;
    outline: none;
    transition: background .15s, border-color .15s;
}

    #nsearch-input::placeholder {
        color: rgba(255,255,255,0.4);
        font-size: 0.84rem;
        opacity: 1;
    }

    #nsearch-input:focus {
        background: rgba(255,255,255,0.13);
        border-color: var(--primary-color);
    }

.nsearch-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color .12s;
}

    .nsearch-clear:hover {
        color: #fff;
    }

/* ── Dropdown ─────────────────────────────────────────────── */
.nsearch-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    z-index: 9999;
    min-width: 400px;
}

.nsearch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nsearch-view-all {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color) !important;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
}

    .nsearch-view-all:hover {
        text-decoration: underline;
    }

/* ── Result items ─────────────────────────────────────────── */
.nsearch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    text-decoration: none !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background .12s;
    cursor: pointer;
}

    .nsearch-item:hover {
        background: rgba(255,255,255,0.06);
    }

.nsearch-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.nsearch-item-body {
    flex: 1;
    min-width: 0;
}

.nsearch-item-title {
    font-size: 0.87rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.nsearch-item-brand {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nsearch-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nsearch-badge {
    font-size: 0.68rem !important;
    padding: 2px 7px !important;
}

.nsearch-km {
    font-size: 0.74rem;
    color: #9ca3af;
}

.nsearch-chevron {
    color: #4b5563;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.nsearch-item:hover .nsearch-chevron {
    color: #9ca3af;
}

/* ── States ───────────────────────────────────────────────── */
.nsearch-loading,
.nsearch-empty {
    padding: 18px 16px;
    font-size: 0.83rem;
    color: #9ca3af;
    text-align: center;
}

/* ── Footer ───────────────────────────────────────────────── */
.nsearch-footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

    .nsearch-footer a {
        font-size: 0.81rem;
        color: #9ca3af !important;
        text-decoration: none;
        transition: color .12s;
    }

        .nsearch-footer a:hover {
            color: #fff !important;
        }

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}


.nav {
    --bs-nav-link-font-weight: 400;
}



/* active state handled by pagination redesign block below */
.active > .page-link, .page-link.active {
    z-index: 1;
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 260px;
    height: calc(100vh - 60px);
    background: var(--sidebar-bg);
    color: var(--text-light);
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--transition), width var(--transition);
    z-index: 1050;
}

    .sidebar .nav-item {
        cursor: pointer;
        border-left: 5px solid transparent;
    }

        .sidebar .nav-item:hover {
            background: rgba(0,230,118,.06);
        }

        .sidebar .nav-item.active {
            background: rgba(0,230,118,.12);
            color: #eaf5ef;
            border-left-color: var(--primary-color);
        }

    .sidebar .nav-link {
        color: #8aaa96;
        padding: 12px 10px;
        display: flex;
        align-items: center;
        /*        justify-content: space-between;*/
        cursor: pointer;
    }

        .sidebar .nav-link:hover {
            background: rgba(0,230,118,.06);
            color: #eaf5ef;
        }
    /* Parent */
    .sidebar .has-submenu > .nav-link {
        position: relative;
    }
/* Arrow */
.submenu-arrow {
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
    transition: transform var(--transition);
    position: absolute;
    right: 2rem;
}
/* Submenu */
.submenu {
    list-style: none;
    padding-left: 0;
    display: none;
}

    .submenu .nav-link {
        padding-left: 40px;
        font-size: 14px;
    }
/* Open state */
.has-submenu.open > .submenu {
    display: block;
}

.has-submenu.open > .nav-link .submenu-arrow {
    transform: rotate(-135deg);
}
/* Active child */
.submenu .nav-link.active {
    color: #eaf5ef;
    background: rgba(0,230,118,.10);
    border-left: 3px solid var(--primary-color);
}
/* =========================================================
   7. Dashboard Content
   ========================================================= */
.content {
    margin-left: 260px;
    padding: 80px 30px 30px;
    transition: margin-left var(--transition);
}

/* ── Desktop sidebar collapsed (icon-only) ────────────────── */
@media (min-width: 992px) {
    body.sidebar-collapsed .sidebar {
        width: 64px;
    }

    body.sidebar-collapsed .content {
        margin-left: 64px;
    }

    /* Center the nav-link and remove side padding */
    body.sidebar-collapsed .sidebar .nav-link {
        justify-content: center !important;
        align-items: center !important;
        padding: 14px 0 !important;
    }

        /* The inner <div> that wraps icon + text must also be centered */
        body.sidebar-collapsed .sidebar .nav-link > div:first-child {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: auto;
        }

    /* Hide text labels, right-side badges, arrows */
    body.sidebar-collapsed .sidebar .sidebar-link-text {
        display: none !important;
    }

    /* Center icon and remove its margin */
    body.sidebar-collapsed .sidebar .nav-link i {
        margin: 0 !important;
        font-size: 1.05rem;
    }

    /* Hide open submenus */
    body.sidebar-collapsed .sidebar .submenu {
        display: none !important;
    }

    /* Tooltip via ::after using data-tip on <li> */
    body.sidebar-collapsed .sidebar .nav-item {
        position: relative;
    }

        body.sidebar-collapsed .sidebar .nav-item::after {
            content: attr(data-tip);
            position: absolute;
            left: calc(100% + 8px);
            top: 50%;
            transform: translateY(-50%);
            background: #0d1a11;
            color: #eaf5ef;
            border: 1px solid rgba(0,230,118,.15);
            padding: 5px 12px;
            border-radius: 6px;
            font-size: 0.78rem;
            font-weight: 500;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.15s;
            z-index: 9999;
            box-shadow: 0 4px 12px rgba(0,0,0,0.4);
        }

        body.sidebar-collapsed .sidebar .nav-item:hover::after {
            opacity: 1;
        }

        /* Active border still shows */
        body.sidebar-collapsed .sidebar .nav-item.active {
            border-left-color: var(--primary-color);
        }

    /* Logo swap: full logo ↔ B icon */
    .navbar-brand-icon {
        display: none !important;
    }

    body.sidebar-collapsed .navbar-brand-full {
        display: none !important;
    }

    body.sidebar-collapsed .navbar-brand-icon {
        display: flex !important;
    }
}
/* =========================================================
   10. Mobile & Responsive
   ========================================================= */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 60px 0 0 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .content {
        margin-left: 0;
    }

    .sidebar-overlay.show {
        display: block;
    }

    /* ── Mobile navbar: always use the compact B icon ── */
    .navbar-brand-full {
        display: none !important;
    }

    .navbar-brand-icon {
        display: flex !important;
    }

    /* ── Mobile navbar: hide search bar (too wide on small screens) ── */
    .navbar-search-wrap {
        display: none !important;
    }

    /* ── Mobile navbar: tighten spacing so icons don't overflow ── */
    .custom-navbar .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .custom-navbar .d-flex.align-items-center.gap-3.me-2 {
        gap: 0.6rem !important;
    }

    .custom-navbar .d-flex.align-items-center.gap-3:first-child {
        gap: 0.5rem !important;
    }
}
/* =========================================================
   SweetAlert2 – Brand Integration
   ========================================================= */

/* ── SweetAlert2 — green-charcoal system design ─────────────────────────── */

/* Popup container */
.swal2-popup {
    background: #0d1a11 !important;
    border: 1px solid rgba(0, 230, 118, 0.18) !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 230, 118, 0.06) !important;
    padding: 36px 32px 28px !important;
    width: 420px !important;
}

/* Icon */
.swal2-icon {
    margin: 0 auto 20px !important;
}

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.swal2-icon.swal2-error {
    border-color: #f87171 !important;
    color: #f87171 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #f87171 !important;
}

.swal2-icon.swal2-success {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: var(--primary-color) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(0, 230, 118, 0.25) !important;
}

.swal2-icon.swal2-info {
    border-color: rgba(0, 230, 118, 0.6) !important;
    color: var(--primary-color) !important;
}

/* Title */
.swal2-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #eaf5ef !important;
    padding: 0 !important;
}

/* Body text */
.swal2-html-container {
    font-size: 0.875rem !important;
    color: #7a9e8a !important;
    margin-top: 10px !important;
    line-height: 1.65 !important;
}

/* Buttons row */
.swal2-actions {
    gap: 12px !important;
    margin-top: 28px !important;
}

/* Confirm button — green filled pill */
.swal2-confirm {
    padding-inline: 1.5rem !important;
    border-radius: 2rem !important;
    height: 40px !important;
    border: 2px solid var(--primary-color) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    background: var(--primary-color) !important;
    color: #000 !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
    box-shadow: none !important;
}

.swal2-confirm:hover {
    background: #00e676 !important;
    border-color: #00e676 !important;
}

.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.25) !important;
}

/* Cancel button — green-tinted outline pill */
.swal2-cancel {
    padding-inline: 1.5rem !important;
    border-radius: 2rem !important;
    height: 40px !important;
    border: 2px solid rgba(0, 230, 118, 0.25) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    background: transparent !important;
    color: #8aaa96 !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
    box-shadow: none !important;
}

.swal2-cancel:hover {
    background: rgba(0, 230, 118, 0.08) !important;
    border-color: rgba(0, 230, 118, 0.45) !important;
    color: #c8e0d2 !important;
}

/* Deny button — red-tinted outline */
.swal2-deny {
    padding-inline: 1.5rem !important;
    border-radius: 2rem !important;
    height: 40px !important;
    border: 2px solid rgba(248, 113, 113, 0.3) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    background: transparent !important;
    color: #f87171 !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
    box-shadow: none !important;
}

.swal2-deny:hover {
    background: rgba(248, 113, 113, 0.10) !important;
    border-color: rgba(248, 113, 113, 0.55) !important;
}

/* Close icon */
.swal2-close {
    color: #5a8a6a !important;
    font-size: 1.4rem !important;
    transition: color 0.15s !important;
}

.swal2-close:hover {
    color: #eaf5ef !important;
}

/* Input (for swal with input) */
.swal2-input,
.swal2-textarea,
.swal2-select {
    background-color: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(0, 230, 118, 0.2) !important;
    border-radius: 8px !important;
    color: #e8f5ee !important;
    box-shadow: none !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.14) !important;
}

.swal2-input::placeholder,
.swal2-textarea::placeholder {
    color: #3d6b4d !important;
}

/* Validation message */
.swal2-validation-message {
    background: rgba(248, 113, 113, 0.10) !important;
    border-color: rgba(248, 113, 113, 0.3) !important;
    color: #f87171 !important;
    border-radius: 6px !important;
}

/* Overlay */
.swal2-backdrop-show {
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    background: rgba(5, 12, 7, 0.75) !important;
}

.logo-box {
    background: var(--primary-color);
    color: #000;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.logo-text {
    font-size: 14px;
    font-weight: 600;
}

div:where(.swal2-container).swal2-backdrop-show,
div:where(.swal2-container).swal2-noanimation {
    background: rgba(5, 12, 7, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
/* =========================================================
   Fixed Footer
   ========================================================= */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 260px;
    right: 0;
    height: 40px;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    z-index: 9;
    transition: left var(--transition);
}
    /* Footer content spacing */
    .app-footer .container-fluid {
        padding-left: 20px;
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
/* Collapsed sidebar — footer follows */
@media (min-width: 992px) {
    body.sidebar-collapsed .app-footer {
        left: 64px;
    }
}
/* Content must not overlap footer */
.content {
    padding-bottom: 60px;
}
/* Mobile behavior */
@media (max-width: 991px) {
    .app-footer {
        left: 0;
    }
}

.auth-page .app-footer {
    display: none;
}
/* =========================================================
   Select 2
   ========================================================= */
.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--primary-color);
    box-shadow: var(--primary-color);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: var(--primary-color);
}
/* =========================================================
   Datatable
   ========================================================= */
table.dataTable thead th {
    background: var(--bs-secondary);
    color: white;
    min-height: 30px;
}

table.dataTable td {
    font-weight: 400;
}

.dataTables_length select {
    margin-inline: 0.5rem !important;
}

table.dataTable tr {
    background: black;
    color: white;
    min-height: 30px;
}

.select-info {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

.dataTables_length > label {
    display: flex !important;
    font-size: small !important;
}

    .dataTables_length > label > span {
        margin-top: 0.3rem !important;
    }

.dataTables_info {
    font-size: small !important;
}


/* ── DataTable Pagination Redesign ─────────────────────────────────────── */

/* Pagination list — spaced pills */
.dt-paging .pagination,
.dataTables_paginate .pagination,
.dataTables_paginate.paging_simple_numbers > ul.pagination {
    display: flex !important;
    align-items: center;
    gap: 4px !important;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

/* Base button */
.dt-paging .page-item .page-link,
.dataTables_paginate .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 0.813rem;
    font-weight: 500;
    line-height: 1;
    color: #566a7f;
    background: #fff;
    border: 1px solid #dbe0e8;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
}

/* Hover */
.dt-paging .page-item:not(.disabled):not(.active) .page-link:hover,
.dataTables_paginate .page-item:not(.disabled):not(.active) .page-link:hover {
    background: rgba(40,199,111,0.08);
    border-color: var(--primary-color, #28c76f);
    color: var(--primary-color, #28c76f);
    box-shadow: 0 2px 8px rgba(40,199,111,0.12);
}

/* Active page */
.dt-paging .page-item.active .page-link,
.dataTables_paginate .page-item.active .page-link,
.active > .page-link,
.page-link.active {
    z-index: 1;
    background: var(--primary-color, #28c76f) !important;
    border-color: var(--primary-color, #28c76f) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.813rem;
    box-shadow: 0 4px 10px rgba(40,199,111,0.28);
}

/* Disabled */
.dt-paging .page-item.disabled .page-link,
.dataTables_paginate .page-item.disabled .page-link,
.disabled > .page-link,
.page-link.disabled {
    background: #f5f6fa !important;
    border-color: #e9ecef !important;
    color: #c4cdd6 !important;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    font-size: 0.813rem;
}

/* Previous / Next — slightly wider pill */
.dt-paging .page-item.previous .page-link,
.dt-paging .page-item.next .page-link,
.dataTables_paginate .page-item.prev .page-link,
.dataTables_paginate .page-item.next .page-link {
    padding: 0 14px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    border-radius: 10px;
}

/* First / Last */
.dt-paging .page-item.first .page-link,
.dt-paging .page-item.last .page-link,
.dataTables_paginate .page-item.first .page-link,
.dataTables_paginate .page-item.last .page-link {
    padding: 0 10px;
}

/* Info text ("Showing X to Y of Z entries") */
.dt-info,
.dataTables_info {
    font-size: 0.79rem !important;
    color: #8a94a6 !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em;
}

.dataTables_length label {
    align-items: center !important;
}

table.dataTable thead tr.search-inputs-row, table thead tr.search-inputs-row {
    background-clip: unset !important;
    background-color: #f7f7f9 !important;
}

.dark-style table.dataTable thead tr.search-inputs-row, .dark-style table thead tr.search-inputs-row {
    background-clip: unset !important;
    background-color: #0e0e0e !important;
}

table.dataTable thead th, table thead th {
    color: #f1f1f1 !important;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
}

table.dataTable thead tr:first-child th:first-child,
table thead tr:first-child th:first-child {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background-clip: unset !important;
}

table.dataTable thead tr:first-child th:last-child,
table thead tr:first-child th:last-child {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background-clip: unset !important;
}

[dir="rtl"] table.dataTable thead tr:first-child th:first-child,
[dir="rtl"] table thead tr:first-child th:first-child {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background-clip: unset !important;
}

[dir="rtl"] table.dataTable thead tr:first-child th:last-child,
[dir="rtl"] table thead tr:first-child th:last-child {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background-clip: unset !important;
}

.dt-length label, .dt-info {
    font-size: 12px !important;
}


table.dataTable thead .dt-orderable-asc:after,
table.dataTable thead .dt-orderable-desc:after {
    font-family: FontAwesome;
    opacity: 1;
    content: '\f0dc';
    margin-left: 20px;
    margin-right: 20px;
}

table.dataTable thead .dt-ordering-asc:after {
    content: '\f062';
}

table.dataTable thead .dt-ordering-desc:after {
    content: '\f063';
}

html.dark-style table.dataTable tbody tr > .dtfc-fixed-left,
html.dark-style table.dataTable tbody tr > .dtfc-fixed-right {
    background-color: #000 !important;
}

div.dt-scroll-body thead, div.dt-scroll-body tfoot {
    visibility: collapse !important;
}

    div.dt-scroll-body thead tr, div.dt-scroll-body tfoot tr {
        height: 0;
    }

        div.dt-scroll-body thead tr th, div.dt-scroll-body thead tr td, div.dt-scroll-body tfoot tr th, div.dt-scroll-body tfoot tr td {
            height: 0 !important;
            padding-top: 0px !important;
            padding-bottom: 0px !important;
            border-top-width: 0px !important;
            border-bottom-width: 0px !important;
        }

            div.dt-scroll-body thead tr th div.dt-scroll-sizing, div.dt-scroll-body thead tr td div.dt-scroll-sizing,
            div.dt-scroll-body tfoot tr th div.dt-scroll-sizing, div.dt-scroll-body tfoot tr td div.dt-scroll-sizing {
                height: 0 !important;
                overflow: hidden !important;
            }


.dropdown-toggle.hide-arrow::before, .dropdown-toggle.hide-arrow::after, .dropdown-toggle-hide-arrow > .dropdown-toggle::before, .dropdown-toggle-hide-arrow > .dropdown-toggle::after {
    display: none
}


.auth-wrapper .card {
    border-radius: 2rem;
}





.spw-75 {
    min-width: 75% !important;
}

.spw-50 {
    min-width: 50% !important;
}

main.content {
    position: relative;
}
/* =========================================================
   Floating Panel Cards
   ========================================================= */
.floating-panel {
    position: fixed;
    z-index: 10;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease;
}

    .floating-panel.show {
        opacity: 1;
        transform: translateY(0);
    }

.floating-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.floating-panel-body {
    padding: 16px;
}

.floating-panel-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #eee;
}

.floating-panel-close {
    background: none;
    border: 0;
    font-size: 15px;
    cursor: pointer;
}

.floating-panel {
    display: flex;
    flex-direction: column;
}

.floating-panel-body {
    overflow-y: auto;
}


.select2-selection.select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-bottom: 0 !important;
}

.select2-results__option[aria-selected=true] {
    background-color: var(--primary-color) !important;
    color: #f1f1f1
}

.dropdown.disabled, .dropdown-toggle.disabled, .dropdown-toggle:disabled {
    background-color: rgba(239, 239, 239, 0.3) !important;
    color: var(--default-text-color) !important;
    opacity: 0.85 !important;
    font-weight: 500;
}

.select2-results__option[aria-disabled="true"] {
    display: none !important;
}

/* =========================================================
   Profile Dropdown
   ========================================================= */

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.profile-dropdown {
    min-width: 200px;
    border-radius: var(--radius-md);
    padding: 8px 0;
}

    .profile-dropdown .dropdown-header {
        padding: 10px 16px;
    }

    .profile-dropdown .dropdown-item {
        font-size: 14px;
        padding: 8px 16px;
    }

        .profile-dropdown .dropdown-item:hover {
            background: #f5f5f5;
        }
/* =========================================================
   Notification Dropdown
   ========================================================= */

.nav-icon {
    font-size: 18px;
    cursor: pointer;
}
/* Badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--primary-color);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    padding: 2px 6px;
}
/* Dropdown */
.notification-dropdown {
    width: 360px;
    height: 420px;
    padding: 0;
    overflow: hidden;
    display: none;
}

    .notification-dropdown.show {
        display: flex;
        flex-direction: column;
    }

    .notification-dropdown.dropdown-menu {
        overflow: hidden !important;
    }

    .notification-dropdown .dropdown-header {
        padding: 12px 16px;
    }

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    white-space: normal;
}

    .notification-item p {
        font-size: 14px;
        margin: 0;
    }

.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    margin-top: 6px;
}

.notification-item.unread .notification-dot {
    background: var(--primary-color);
}

.notification-item:hover {
    background: #f6f6f6;
}

.dropdown-notifications-list {
    flex: 1;
    overflow-y: auto;
}

.notification-footer {
    background: #fff;
    position: sticky;
    bottom: 0;
    box-shadow: 0 -4px 6px -4px rgba(0,0,0,.08);
}

/* =========================================================
   RTL SUPPORT (FINAL)
   ========================================================= */

[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}
/* Sidebar */
[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
}

[dir="rtl"] .content {
    margin-left: 0;
    margin-right: 260px;
}
/* Footer */
[dir="rtl"] .app-footer {
    left: 0;
    right: 260px;
    transition: right var(--transition);
}
@media (min-width: 992px) {
    [dir="rtl"] body.sidebar-collapsed .app-footer {
        right: 64px;
    }
}
/* Mobile */
@media (max-width: 991px) {
    [dir="rtl"] .content {
        margin-right: 0;
    }

    [dir="rtl"] .app-footer {
        right: 0;
    }
}
/* Sidebar borders & submenu */
[dir="rtl"] .sidebar .nav-item {
    border-left: 0;
    border-right: 5px solid transparent;
}

    [dir="rtl"] .sidebar .nav-item.active {
        border-right-color: var(--primary-color);
    }
/* Submenu indentation */
[dir="rtl"] .submenu .nav-link {
    padding-left: 20px;
    padding-right: 40px;
}
/* Submenu arrow */
[dir="rtl"] .submenu-arrow {
    right: auto;
    left: 2rem;
    transform: rotate(-135deg);
}

[dir="rtl"] .has-submenu.open > .nav-link .submenu-arrow {
    transform: rotate(45deg);
}
/* Notification badge */
[dir="rtl"] .notification-badge {
    right: auto;
    left: -6px;
}
/* Dropdown alignment */
[dir="rtl"] .dropdown-menu-end {
    right: auto;
    left: 0;
}

[dir="rtl"] .notification-dropdown,
[dir="rtl"] .profile-dropdown {
    text-align: right;
}

.select2-selection.select2-selection--single {
    height: 45px !important;
    border-radius: var(--bs-border-radius) !important;
    padding: 0.5rem !important;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}


.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection {
    box-shadow: unset !important;
    border-color: var(--primary-color) !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
    box-shadow: 0 0 0 .25rem #55e39036 !important;
    border-color: var(--primary-color) !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: var(--primary-color) !important;
}

.select2-container--bootstrap-5.select2-container--open.select2-container--below .select2-selection {
    border-bottom-left-radius: unset !important;
    border-bottom-right-radius: unset !important;
}

.toast {
    border-radius: 0.8rem;
    border: unset !important;
}


.bm-file-uploader .upload-box {
    border: 1px dashed #d0d5dd;
    padding: 16px;
    border-radius: 8px;
}


.upload-dropzone {
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
}

    .upload-dropzone.drag-over {
        border-color: #4f46e5;
        background: #eef2ff;
    }

.dropzone-ui .icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.upload-dropzone {
    position: relative;
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
}

    .upload-dropzone.drag-over {
        border-color: #4f46e5;
        background: #eef2ff;
    }

/* 🔹 Progress overlay */
.upload-progress {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
}

/* 🔹 Preview cards */
.uploaded-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.uploaded-item {
    position: relative;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    padding: 1rem;
}

.remove-file {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
}

.uploaded-item img {
    max-width: 100%;
    border-radius: 6px;
}

/* 🔹 URL output */
.uploaded-urls {
    margin-top: 10px;
}

.url-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

    .url-row input {
        flex: 1;
        font-size: 12px;
    }

.single-file-view {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

    .single-file-view img {
        max-width: 100%;
        border-radius: 8px;
        cursor: pointer;
    }

    .single-file-view .file-name {
        font-size: 13px;
        margin-top: 6px;
    }


div:where(.swal2-container) .swal2-html-container {
    margin-top: 0;
}

.user-card .card {
    border-radius: 18px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .user-card .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 26px rgba(0,0,0,.12);
    }

.user-card .card-body {
    padding-top: 0.75rem;
}

.user-card .image-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: #fff;
}

.user-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.note-preview {
    position: relative;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    line-height: 1.4;
    color: #6c757d;
    max-height: calc(1.4em * 3);
}

    .note-preview:hover {
        cursor: pointer;
    }

        .note-preview:hover::after {
            content: attr(title);
            position: absolute;
            left: 0;
            top: 100%;
            z-index: 1050;
            width: 260px;
            margin-top: 6px;
            padding: 8px 10px;
            background: #fff;
            color: #333;
            font-size: 12px;
            line-height: 1.4;
            border: 1px solid #ddd;
            border-radius: 6px;
            box-shadow: 0 6px 16px rgba(0,0,0,.15);
            white-space: normal;
            pointer-events: none;
        }


.ellipsis-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}


.ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}


.ellipsis-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.img-thumbnail {
    padding: unset !important;
}

.sptech-paginated-list .card {
    border-radius: 16px;
}

.campaign-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

    .campaign-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.10) !important;
    }

/* legacy rule kept for backward-compat — new cards use aspect-ratio container */
.campaign-img {
    width: 100%;
    object-fit: cover;
}

.ellipsis-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#drivers-list tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.035);
}

#drivers-list tbody tr:focus {
    outline: 2px solid rgba(0, 123, 255, 0.25);
}


.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
}

    .profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.4s ease;
    }

    /* Elegant hover effect */
    .profile-avatar:hover img {
        transform: scale(1.05);
    }


.table-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f3f5;
}

    .table-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

.header-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}


.zoom-img {
    cursor: pointer;
}

.campaign-brand {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .5px;
    color: #6c757d;
    display: inline-block;
    margin-bottom: 0.3rem;
}



/* ── Campaign status filter bar ─────────────────────────────────────────── */
.campaign-status-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.25rem;
}

.status-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 20px; /* pill shape */
    padding: 5px 12px 5px 8px;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    line-height: 1;
}

    .status-item:hover {
        background: #f8f9fa;
        border-color: #ced4da;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .status-item.active {
        background: #eef4ff;
        border-color: var(--primary-color, #0d6efd);
        color: var(--primary-color, #0d6efd);
        box-shadow: 0 0 0 2px rgba(13,110,253,0.12);
    }

/* Coloured dot ─────────────────────────────────────────────────────────── */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.85;
}

/* Label ─────────────────────────────────────────────────────────────────── */
.status-title {
    font-size: 13px;
    font-weight: 500;
}

/* Count badge ───────────────────────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    background: #f0f0f0;
    color: #6c757d;
    border-radius: 20px;
    line-height: 1.5;
    transition: background 0.15s, color 0.15s;
}

.perf-alerts-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.perf-alert-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem;
    border-radius: 14px;
    background: #f8f9fa;
    border: 1px solid #eef0f2;
}

    .perf-alert-item i {
        margin-top: .15rem;
    }

    .perf-alert-item.warning {
        background: rgba(255, 171, 0, 0.08);
        border-color: rgba(255, 171, 0, 0.18);
    }

/* =========================================================
   Invite Corporates Modal
   ========================================================= */

#inviteCorporatesModal .invite-modal-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(25, 135, 84, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

#inviteCorporatesModal .invite-stat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

#inviteCorporatesModal .invite-stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8a96a8;
    font-weight: 500;
    line-height: 1.2;
}

#inviteCorporatesModal .invite-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2b4a;
    line-height: 1.15;
}

#inviteCorporatesModal #invite-slot-banner.invite-slot-banner--danger {
    border-color: #f5c2c7 !important;
    background: #fff5f5;
}

    #inviteCorporatesModal #invite-slot-banner.invite-slot-banner--danger .invite-stat-value {
        color: #842029;
    }

#inviteCorporatesModal .invite-search-input-group .form-control:focus {
    box-shadow: none;
}

/* ── Invite Corporate search bar: consistent height + border ───────────── */
/* The global .btn { height: 40px } conflicts with .form-control height:45px
   inside an input-group. Reset height so Bootstrap's align-items:stretch works. */
#inviteCorporatesModal .invite-search-input-group .btn {
    height: auto !important;
    border-color: #dee2e6 !important;
    background: #fff;
    color: #6c757d;
    padding-inline: 0.65rem;
}

#inviteCorporatesModal .invite-search-input-group .btn:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Keep all three segments (icon-wrap, input, button) on the same border colour */
#inviteCorporatesModal .invite-search-input-group .input-group-text {
    border-color: #dee2e6;
}

#inviteCorporatesModal .invite-corp-item {
    border-bottom: 1px solid #f5f6fa;
    cursor: default;
    border-radius: 6px;
    transition: background 0.12s;
}

    #inviteCorporatesModal .invite-corp-item:last-child {
        border-bottom: none;
    }

    #inviteCorporatesModal .invite-corp-item:not(.invite-corp-item--added):hover {
        background: #f8f9fa;
    }

#inviteCorporatesModal .invite-corp-item--added {
    opacity: 0.6;
}

#inviteCorporatesModal .invite-add-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#inviteCorporatesModal .invite-stepper-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#inviteCorporatesModal .invite-slot-display {
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-color: #0d6efd !important;
    color: #0d6efd !important;
    box-shadow: 0 0 0 1px rgba(13,110,253,0.15);
}

/* Remove native number spinners — Chrome/Safari/Edge */
#inviteCorporatesModal .invite-slot-display::-webkit-inner-spin-button,
#inviteCorporatesModal .invite-slot-display::-webkit-outer-spin-button,
#inviteCorporatesModal .invite-fee-input::-webkit-inner-spin-button,
#inviteCorporatesModal .invite-fee-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove native number spinners — Firefox */
#inviteCorporatesModal .invite-slot-display,
#inviteCorporatesModal .invite-fee-input {
    -moz-appearance: textfield;
}

#inviteCorporatesModal .invite-campaign-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #198754;
    background: rgba(25,135,84,0.08);
    border: 1px solid rgba(25,135,84,0.2);
    border-radius: 20px;
    padding: 2px 10px;
    letter-spacing: 0.02em;
}

#inviteCorporatesModal .invite-max-badge {
    font-size: 0.7rem;
    white-space: nowrap;
}

#inviteCorporatesModal .invite-ready-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #198754;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    #inviteCorporatesModal .invite-stat-value {
        font-size: 1.2rem;
    }
}

/* =========================================================
   Assign Drivers Modal
   ========================================================= */

#assignDriversModal .assign-driver-search-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
    min-width: 220px;
}

    #assignDriversModal .assign-driver-search-wrap:focus-within {
        border-color: #86b7fe;
        box-shadow: 0 0 0 3px rgba(13,110,253,.1);
    }

    #assignDriversModal .assign-driver-search-wrap .assign-search-icon {
        color: #adb5bd;
        flex-shrink: 0;
        margin-right: 6px;
    }

    #assignDriversModal .assign-driver-search-wrap input {
        flex: 1;
        border: none !important;
        padding: 8px 0;
        font-size: 0.84rem;
        outline: none !important;
        background: transparent;
        min-width: 0;
        box-shadow: none !important;
        color: #344054;
    }

        #assignDriversModal .assign-driver-search-wrap input::placeholder {
            color: #b0bec5;
        }

#assignDriversModal .assign-driver-filter {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.84rem;
    color: #344054;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    #assignDriversModal .assign-driver-filter:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 3px rgba(13,110,253,.1);
    }

#assignDriversModal .assign-drivers-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    background: #eef3ff;
    color: #3e5fd8;
    border: 1px solid #c5d3f8;
    white-space: nowrap;
}

#assignDriversModal .assign-select-all-btn {
    font-size: 0.82rem;
    padding: 5px 14px;
    border: 1px solid #198754;
    color: #198754;
    background: #fff;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

    #assignDriversModal .assign-select-all-btn:hover {
        background: #198754;
        color: #fff;
    }

#assignDriversModal .assign-drivers-thead th {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f1f1f1;
    font-weight: 700;
    padding: 10px 12px;
    background: var(--bs-secondary) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    /* No position:sticky — DataTables scrollY keeps the header fixed natively */
}

/* Checkbox visibility on secondary header */
#assignDriversModal .assign-drivers-thead .form-check-input {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.5);
}

    #assignDriversModal .assign-drivers-thead .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

#assignDriversModal #assign-drivers-table tbody td {
    padding: 10px 12px;
    border-color: #f5f6fa;
    vertical-align: middle;
}

#assignDriversModal #assign-drivers-table tbody tr.assign-row-selected td {
    background-color: #f0f5ff;
    border-color: #e2eaff;
}

/* DataTable pagination inside driver assign modal */
#assignDriversModal .assign-dt-footer {
    font-size: 0.78rem;
    background: #fafbfc;
}

    #assignDriversModal .assign-dt-footer .dataTables_info {
        font-size: 0.78rem;
        color: #6c757d;
    }

    #assignDriversModal .assign-dt-footer .paginate_button {
        border-radius: 6px !important;
        margin: 0 2px;
        padding: 3px 8px;
        font-size: 0.75rem;
        color: #5c6b7a !important;
        border: 1px solid #dee2e6 !important;
        background: #fff !important;
        cursor: pointer;
    }

        #assignDriversModal .assign-dt-footer .paginate_button.current {
            background: #198754 !important;
            border-color: #198754 !important;
            color: #fff !important;
        }

        #assignDriversModal .assign-dt-footer .paginate_button.disabled {
            color: #c9d1d9 !important;
            cursor: default;
        }

        #assignDriversModal .assign-dt-footer .paginate_button:hover:not(.disabled):not(.current) {
            background: #f0f5ff !important;
            border-color: #adb5bd !important;
        }
/* Suppress DataTable chrome we don't need */
#assignDriversModal .dataTables_length,
#assignDriversModal .dataTables_filter {
    display: none !important;
}

/* scrollY header — DataTables puts the visible thead in a non-scrolling
   dataTables_scrollHead div, so no CSS sticky is needed at all. */
#assignDriversModal .dataTables_scrollHead {
    background: #0d0d0d !important;
    overflow: hidden !important;
    border-radius: 0;
}

    #assignDriversModal .dataTables_scrollHead table {
        margin-bottom: 0 !important;
    }
/* scrollBody is the actual scroll container — DataTables sets its height */
#assignDriversModal .dataTables_scrollBody {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}



@media (max-width: 768px) {
    #assignDriversModal .assign-driver-search-wrap {
        min-width: 100%;
    }

    #assignDriversModal .assign-driver-filter {
        width: 100%;
    }
}

/* ── Assign drivers: Select Top N — input + button combo ─── */
#assignDriversModal .assign-select-top-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #198754;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    height: 32px;
}

#assignDriversModal .assign-select-top-label {
    font-size: 0.78rem;
    color: #198754;
    font-weight: 600;
    padding: 0 6px 0 12px;
    white-space: nowrap;
    user-select: none;
}

#assignDriversModal .assign-top-count-input {
    width: 48px;
    border: none;
    border-left: 1px solid #c3e6d2;
    border-right: 1px solid #c3e6d2;
    border-radius: 0;
    padding: 0 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #111;
    text-align: center;
    height: 100%;
    outline: none;
    background: #f6fdf9;
    -moz-appearance: textfield;
}

    #assignDriversModal .assign-top-count-input::-webkit-inner-spin-button,
    #assignDriversModal .assign-top-count-input::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    #assignDriversModal .assign-top-count-input:disabled {
        background: #f1f1f1;
        color: #aaa;
    }

#assignDriversModal .assign-select-top-wrap .assign-select-all-btn {
    border: none !important;
    border-radius: 0 !important;
    height: 100%;
    margin: 0;
    padding: 0 14px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #fff;
    color: #198754;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

    #assignDriversModal .assign-select-top-wrap .assign-select-all-btn:hover:not(:disabled) {
        background: #198754;
        color: #fff;
    }

    #assignDriversModal .assign-select-top-wrap .assign-select-all-btn:disabled,
    #assignDriversModal .assign-top-count-input:disabled ~ .assign-select-all-btn {
        color: #aaa;
        cursor: not-allowed;
    }

/* ── Assign drivers: slots-full warning banner ────────────── */
#assignDriversModal .assign-slots-full-banner {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
    color: #856404;
    font-size: 0.81rem;
    font-weight: 500;
}

/* ── Assign drivers: review step ──────────────────────────── */
#assignDriversModal .assign-review-item {
    transition: background 0.12s;
}

    #assignDriversModal .assign-review-item:hover {
        background: #f9fafb;
    }

    #assignDriversModal .assign-review-item:last-child {
        border-bottom: none !important;
    }

#assignDriversModal #assign-step-review .assign-remove-review-btn {
    opacity: 0.4;
    transition: opacity 0.15s, color 0.15s;
}

#assignDriversModal #assign-step-review .assign-review-item:hover .assign-remove-review-btn {
    opacity: 1;
}

.perf-alert-item.danger {
    background: rgba(255, 62, 29, 0.08);
    border-color: rgba(255, 62, 29, 0.18);
}

.perf-alert-item.success {
    background: rgba(3, 201, 126, 0.08);
    border-color: rgba(3, 201, 126, 0.18);
}

.campaign-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.campaign-filter-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.campaign-filter-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.pp-controls {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 4px 20px;
    display: flex;
    flex-direction: column;
}

.pp-control-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0;
}

    .pp-control-row + .pp-control-row {
        border-top: 1px solid #efefef;
    }

.pp-control-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.pp-control-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #b8c0cc;
    min-width: 68px;
    flex-shrink: 0;
}

.pp-chart-body {
    padding: 16px 20px 20px;
}

    .pp-chart-body .chart-container {
        height: 280px;
    }

.chart-empty {
    background: transparent;
}

    .chart-empty .empty-icon {
        font-size: 24px;
        opacity: .5;
    }

    .chart-empty .empty-text {
        font-size: 13px;
    }

.campaign-performance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

    .campaign-performance-row .pp-control-group {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

@media (max-width: 991.98px) {
    .campaign-filter-bar,
    .campaign-performance-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .campaign-filter-right {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
}

.perf-alert-content {
    flex: 1;
    min-width: 0;
}

.perf-alert-title {
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.2;
    margin-bottom: .2rem;
}

.perf-alert-text {
    font-size: .78rem;
    color: #6c757d;
    line-height: 1.35;
}

.perf-pred-item {
    padding: .75rem;
    border-radius: 14px;
    background: #f8f9fa;
    border: 1px solid #eef0f2;
}

.perf-chart-empty {
    min-height: 220px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.status-dot {
    display: none !important;
}

.status-item.active .status-dot {
    display: inline-block !important;
}

.status-item.active .status-badge {
    background: rgba(13,110,253,0.12);
    color: var(--primary-color, #0d6efd);
}

.sticker-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e6e8ec;
    overflow: hidden;
    transition: all .25s ease;
}

    .sticker-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
    }

.sticker-image-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.sticker-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform .3s ease;
}

.sticker-card:hover .sticker-image {
    transform: scale(1.05);
}

.sticker-label {
    padding: 10px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    border-top: 1px solid #f1f1f1;
}


/* Header icon */
.icon-circle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    border-radius: .6rem;
    justify-content: center;
}

.fin-kpi-tile {
    background: #f8f9fa;
    border: 1px solid #edf0f2;
    border-radius: 16px;
    padding: 16px 18px;
    transition: .2s ease;
}

    .fin-kpi-tile:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    }

.fin-kpi-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.fin-kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fin-kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.2;
}

.fin-kpi-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #374151;
    line-height: 1.2;
}

.fin-kpi-progress {
    height: 6px;
    border-radius: 999px;
    background: #eceff3;
    overflow: hidden;
}

/* ============================================================
 * Card / List View (.clv-*)  —  shared card-list-view component
 * ============================================================ */

/* ── Toolbar ──────────────────────────────────────────────── */
.clv-toolbar {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 10px 14px;
}

/* The border and radius above are the toolbar's own card chrome, for lists that sit
   directly on the page. Inside a card that draws a second card within the first, so
   the chrome goes and only the spacing stays. */
.card .clv-toolbar {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.campaign-toolbar-controls {
    min-width: 0;
}

.clv-toolbar-statuses {
    order: 2;
    flex: 0 0 100%;
    min-width: 0;
    padding-top: 4px;
}

.clv-toolbar-statuses .campaign-status-tabs,
.campaign-status-tabs.clv-toolbar-statuses {
    margin-bottom: 0;
}

.clv-search-wrap {
    position: relative;
    min-width: 220px;
}

.clv-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.clv-search-wrap input[type="text"] {
    width: 100%;
    height: 34px;
    padding: 0 10px 0 30px;
    border: 1px solid #dee2e6;
    border-radius: 7px;
    font-size: 0.84rem;
    outline: none;
    background: #f9fafb;
    color: #374151;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}

    .clv-search-wrap input[type="text"]:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0,230,118,.12);
        background: #fff;
    }

.clv-select-filter {
    height: 34px;
    padding: 0 28px 0 10px;
    border: 1px solid #dee2e6;
    border-radius: 7px;
    font-size: 0.84rem;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    appearance: auto;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s;
}

input[type="date"].clv-select-filter {
    padding-right: 10px;
    cursor: text;
}

.bp-date-filter-alt {
    min-width: 140px;
}

    .clv-select-filter:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0,230,118,.12);
    }

/* ── View toggle ──────────────────────────────────────────── */
.clv-view-toggle {
    display: flex;
    gap: 2px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
}

.clv-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background .15s, color .15s;
}

    .clv-view-btn:hover {
        background: #e5e7eb;
        color: #374151;
    }

    .clv-view-btn.active {
        background: #fff;
        color: var(--primary-color);
        box-shadow: 0 1px 3px rgba(0,0,0,.12);
    }

/* ── Card layout ──────────────────────────────────────────── */
.clv-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: box-shadow .18s, border-color .18s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .clv-card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,.09);
        border-color: #d1d5db;
    }

.clv-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.clv-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.clv-card-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.clv-card-top-info {
    flex: 1;
    min-width: 0;
}

.clv-card-company {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #111827;
    min-width: 0;
}

.clv-card-company .clv-company-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.clv-card-contact {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clv-card-phone {
    color: #9ca3af;
    margin-left: 4px;
}

.clv-card-email {
    font-size: 0.76rem;
    color: #9ca3af;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clv-card-menu {
    flex-shrink: 0;
    margin-left: auto;
}

.clv-card-action-btn {
    color: #9ca3af !important;
}

    .clv-card-action-btn:hover {
        color: #374151 !important;
    }

.clv-card-meta {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.77rem;
    color: #6b7280;
    margin-bottom: 10px;
    flex: 1;
}

.clv-card-meta .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 4px 10px;
    border-radius: 8px;
    line-height: 1;
    white-space: nowrap;
}

.clv-meta-icon {
    margin-right: 4px;
    color: #9ca3af;
}

.clv-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.clv-card-date {
    font-size: 0.74rem;
    color: #9ca3af;
}

/* ── List table layout ────────────────────────────────────── */
.clv-list-table {
    font-size: 0.84rem;
}

.clv-list-thead th {
    font-size: 0.72rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 2px solid #e9ecef;
    border-top: none;
    padding: 10px 12px;
    background: var(--bs-secondary);
}

.clv-list-table tbody tr {
    cursor: pointer;
    transition: background .12s;
}

    .clv-list-table tbody tr:hover {
        background: #f9fafb;
    }

.clv-list-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
}

.clv-row-logo-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.clv-card-display-id {
    font-size: 0.72rem;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
}

/* ── Card-list-view empty state ───────────────────────────── */
.clv-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
    text-align: center;
}

.clv-empty-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.clv-empty-icon {
    font-size: 1.6rem;
    color: #9ca3af;
}

.clv-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.clv-empty-subtitle {
    font-size: 0.85rem;
    color: #9ca3af;
    max-width: 340px;
    line-height: 1.5;
}

/* ── Participation stats strip (inside card) ───────────────── */
.part-stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 8px 0 4px;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 6px;
}

.part-stat-item {
    font-size: 0.74rem;
    color: #374151;
    white-space: nowrap;
}

/* ── List table layout ────────────────────────────────────── */
.clv-list-table {
    font-size: 0.84rem;
}

.clv-list-thead th {
    font-size: 0.72rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 2px solid #e9ecef;
    border-top: none;
    padding: 10px 12px;
    background: var(--bs-secondary);
}

.clv-list-table tbody tr {
    cursor: pointer;
    transition: background .12s;
}

    .clv-list-table tbody tr:hover {
        background: #f9fafb;
    }

.clv-list-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
}

.clv-row-logo-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.clv-card-display-id {
    font-size: 0.72rem;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
}

.clv-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #dee2e6;
    border-radius: 7px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    flex-shrink: 0;
}

    .clv-refresh-btn:hover {
        background: #e5e7eb;
        color: #374151;
        border-color: #d1d5db;
    }

/* ── Card-list-view empty state ───────────────────────────── */
.clv-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
    text-align: center;
}

.clv-empty-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.clv-empty-icon {
    font-size: 1.6rem;
    color: #9ca3af;
}

.clv-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.clv-empty-subtitle {
    font-size: 0.85rem;
    color: #9ca3af;
    max-width: 340px;
    line-height: 1.5;
}

/* =========================================================
   Permission Tree (Role Create / Edit)
   ========================================================= */

/* Section header row */
.perm-section-hdr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.perm-section-title {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

    .perm-section-title h6 {
        font-size: 0.92rem;
        font-weight: 700;
        color: #111827;
        margin: 0 0 2px;
    }

    .perm-section-title p {
        font-size: 0.76rem;
        color: #6b7280;
        margin: 0;
    }

/* Toolbar buttons */
.perm-toolbar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.perm-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.26rem 0.6rem;
    font-size: 0.74rem;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}

    .perm-toolbar-btn:hover {
        background: #f3f4f6;
        border-color: #9ca3af;
    }

    .perm-toolbar-btn.perm-select-all {
        border-color: #6ee7b7;
        color: #059669;
    }

        .perm-toolbar-btn.perm-select-all:hover {
            background: #ecfdf5;
            border-color: #34d399;
        }

/* Two-column layout */
.perm-layout {
    display: flex;
    gap: 0.85rem;
    height: 420px;
}

.perm-left-panel {
    flex: 1;
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.perm-right-panel {
    width: 310px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Search box */
.perm-search-wrap {
    position: relative;
    padding: 0.6rem;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.perm-search-input {
    width: 100%;
    padding: 0.38rem 0.7rem 0.38rem 2rem;
    font-size: 0.80rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    outline: none;
    background: #fafafa;
    color: #374151;
    box-sizing: border-box;
}

    .perm-search-input:focus {
        border-color: #00e676;
        background: #fff;
    }

.perm-search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.70rem;
    pointer-events: none;
}

/* Scrollable tree */
.perm-tree {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Group (depth 0) */
.perm-group {
    border-bottom: 1px solid #f3f4f6;
}

    .perm-group:last-child {
        border-bottom: none;
    }

.perm-group-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    user-select: none;
}

    .perm-group-header:hover {
        background: #f9fafb;
    }

.perm-group-label {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    cursor: pointer;
    line-height: 1.35;
}

/* Sub-group (depth 1) */
.perm-subgroup {
    border-top: 1px solid #f8f9fa;
}

.perm-subgroup-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.8rem 0.38rem 2.4rem;
    cursor: pointer;
    user-select: none;
}

    .perm-subgroup-header:hover {
        background: #f9fafb;
    }

.perm-subgroup-label {
    flex: 1;
    font-size: 0.80rem;
    font-weight: 500;
    color: #374151;
    margin: 0;
    cursor: pointer;
    line-height: 1.35;
}

/* Leaf items (depth 2+) */
.perm-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.8rem 0.28rem 4rem;
}

    .perm-item label {
        font-size: 0.78rem;
        color: #4b5563;
        margin: 0;
        cursor: pointer;
        line-height: 1.35;
    }

    .perm-item:hover {
        background: #f9fafb;
    }

/* Count badge */
.perm-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #9ca3af;
    background: #f3f4f6;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}

    .perm-badge.perm-badge-active {
        color: #059669;
        background: #ecfdf5;
    }

/* Expand / collapse chevron */
.perm-toggle-btn {
    background: none;
    border: none;
    padding: 0.1rem 0.22rem;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.68rem;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.15s;
}

    .perm-toggle-btn:hover {
        color: #374151;
    }

/* Right panel — selected permissions */
.perm-selected-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.perm-selected-hdr-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #111827;
}

.perm-selected-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.perm-sel-group {
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #f3f4f6;
}

    .perm-sel-group:last-child {
        border-bottom: none;
    }

.perm-sel-group-hdr {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem 0.3rem;
}

.perm-sel-group-name {
    flex: 1;
    font-size: 0.80rem;
    font-weight: 600;
    color: #111827;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.perm-sel-subgroup {
    padding-bottom: 0.15rem;
}

.perm-sel-subgroup-hdr {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem 0.2rem 1.4rem;
}

.perm-sel-subgroup-name {
    flex: 1;
    font-size: 0.76rem;
    font-weight: 500;
    color: #374151;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.perm-sel-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.7rem 0.18rem 2.1rem;
    font-size: 0.74rem;
    color: #4b5563;
}

    .perm-sel-item i {
        color: #10b981;
        font-size: 0.68rem;
        flex-shrink: 0;
    }

.perm-sel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    text-align: center;
    color: #9ca3af;
}

    .perm-sel-empty i {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        opacity: 0.5;
    }

/* Info box at bottom of right panel */
.perm-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
    margin: 0.5rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    font-size: 0.73rem;
    color: #4b5563;
    flex-shrink: 0;
    line-height: 1.45;
}

    .perm-info-box i {
        color: #3b82f6;
        margin-top: 1px;
        flex-shrink: 0;
    }

    .perm-info-box .perm-info-title {
        font-weight: 600;
        font-size: 0.74rem;
        color: #1e40af;
        margin-bottom: 2px;
    }

/* Badge small variant */
.perm-badge-sm {
    font-size: 0.64rem;
    padding: 0.07rem 0.32rem;
}

/* Read-only access note in selected panel */
.perm-sel-readonly {
    font-size: 0.73rem;
    color: #9ca3af;
}

    .perm-sel-readonly i {
        color: #9ca3af;
        font-size: 0.68rem;
        flex-shrink: 0;
    }

/* =========================================================
   Notifications List
   ========================================================= */

/* Circular icon next to notification title */
.notif-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

/* Text inside notification column */
.notif-title {
    font-size: 0.855rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 2px;
}

.notif-body {
    font-size: 0.775rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 2px;
    max-width: 520px;
}

.notif-timestamp {
    font-size: 0.72rem;
    color: #9ca3af;
}

/* Status badge (dot + text) */
.notif-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

.notif-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.notif-status-unread .notif-status-dot { background: #10b981; }
.notif-status-unread { color: #059669; }

.notif-status-read .notif-status-dot { background: #9ca3af; }
.notif-status-read { color: #6b7280; }

/* Unread row — subtle left accent */
#notifications-list tbody tr.notif-row-unread > td:first-child {
    border-left: 3px solid #10b981;
}

/* Mark As Read / Unread toggle button */
.notif-action-btn {
    font-size: 0.775rem;
    padding: 0.28rem 0.7rem;
    white-space: nowrap;
}


/* Primary Gradient Button */
.btn-primary {
    background: linear-gradient( 135deg, #00d26a 0%, #00d96f 45%, #00c853 100% );
    color: #ffffff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

    /* Hover */
    .btn-primary:hover {
        transform: translateY(-1px);
        filter: brightness(1.03);
    }

    /* Active */
    .btn-primary:active {
        transform: translateY(1px);
    }

    /* Disabled */
    .btn-primary:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.progress-primary-fill {
    background: linear-gradient( 90deg, #00c853 0%, #00e676 50%, #69f0ae 100% );
}

/* Campaign card list */
.camp-card.clv-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e5eaf0;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(19, 42, 76, 0.08);
}

.camp-card.clv-card:hover {
    border-color: #d7dee8;
    box-shadow: 0 12px 30px rgba(19, 42, 76, 0.13);
}

.camp-card-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
}

.camp-card-identity {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.camp-card .clv-card-logo,
.camp-card .clv-card-logo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50% !important;
    font-size: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(19, 42, 76, 0.06);
}

.camp-card-info {
    flex: 1;
    min-width: 0;
}

.camp-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.camp-card-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #102d52;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.camp-card-status {
    flex-shrink: 0;
    margin-left: auto;
}

/* ── Campaign list: filters, results and pager in one card ─────────────────
   The toolbar keeps its own .clv-toolbar class (shared with every other list in
   the portal) but drops its card chrome in here, so the two do not nest. */
.camp-list-card {
    padding: 14px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
}

.camp-list-card .clv-toolbar {
    padding: 0 0 12px;
    border: 0;
    border-bottom: 1px solid #eef0f2;
    border-radius: 0;
}

/* Table sits flush inside the card, with the header picking up its corners. */
.camp-list-card .clv-list-thead th:first-child {
    border-top-left-radius: 8px;
}

.camp-list-card .clv-list-thead th:last-child {
    border-top-right-radius: 8px;
}

.camp-list-card .clv-list-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Single-page lists render an empty <ul>; hide it so the card has no dead space. */
.camp-list-pager .pagination:empty {
    display: none;
}

.camp-list-pager .pagination {
    margin-top: 12px;
}

/* Campaign list rows — one line per campaign, so values must not wrap mid-value.
   The timeline and budget are the two that used to break across lines. */
.camp-row-nowrap {
    white-space: nowrap;
}

.camp-row-identity {
    min-width: 0;
}

.camp-row-identity strong {
    font-size: 0.87rem;
}

/* Two-line status: the bucket the campaign is in, then the exact state inside it.
   Both lines carry their own definition tooltip, hence the help cursor. */
.camp-status {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.3;
}

.camp-card-status .camp-status {
    align-items: flex-end;
    text-align: right;
}

.camp-status-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #102d52;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: help;
}

.camp-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.camp-status-sub {
    color: #65758b;
    font-size: 0.72rem;
    cursor: help;
}

.camp-status-sub-danger {
    color: #d0433e;
}

/* Money still owed on a campaign — sits next to the campaign name in both views. */
.camp-tag-unpaid {
    display: inline-flex;
    align-items: center;
    margin-inline-start: 6px;
    padding: 1px 7px;
    border: 1px solid rgba(208, 67, 62, 0.35);
    border-radius: 999px;
    background: rgba(208, 67, 62, 0.1);
    color: #c0392f;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
    cursor: help;
}

.camp-card .clv-card-contact {
    color: #65758b;
    font-size: 0.72rem;
    white-space: normal;
}

.camp-card .clv-card-contact span + span {
    margin-left: 10px;
}

.camp-card .clv-card-contact i {
    margin-right: 4px;
}

.camp-notes {
    display: -webkit-box;
    height: 2.2rem;
    margin: 9px 0 0;
    overflow: hidden;
    color: #65758b;
    font-size: 0.75rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.camp-notes:not(.camp-notes-empty) {
    cursor: help;
}

.campaign-note-tooltip .tooltip-inner {
    max-width: 260px;
    padding: 7px 9px;
    font-size: 0.72rem;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
}

.camp-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.camp-metric-box {
    display: flex;
    min-height: 82px;
    padding: 10px 6px;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    border: 1px solid #dde4ed;
    border-radius: 9px;
    text-align: center;
}

.camp-metric-label {
    color: #65758b;
    font-size: 0.68rem;
    font-weight: 600;
}

.camp-metric-value {
    color: #082a58;
    font-size: 0.76rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.camp-card-progress {
    display: grid;
    gap: 14px;
    padding: 16px 20px 20px;
    border-top: 1px solid #e5eaf0;
}

.camp-progress-section {
    min-width: 0;
}

.camp-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.camp-progress-label {
    color: #65758b;
    font-size: 0.72rem;
    font-weight: 600;
}

.camp-progress-value {
    color: #082a58;
    font-size: 0.76rem;
    font-weight: 700;
}

.camp-progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9edf3;
}

.camp-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--primary-color, var(--bs-primary, #696cff));
    transition: width 0.4s ease;
}

@media (max-width: 767.98px) {
    .camp-card-summary,
    .camp-card-progress {
        padding: 20px;
    }
}

/* ==========================================================
   CAMPAIGN PROFILE HERO — campaign design language
   ----------------------------------------------------------
   Same palette and radii as the campaign creation draft, scoped to
   .camp-profile-hero so no other profile page is affected.
   ========================================================== */
.camp-profile-hero {
    border: 1px solid #DCE2DF !important;
    border-radius: 14px;
    box-shadow: none !important;
}

.camp-profile-hero .card-body {
    padding: 16px 20px;
}

.camp-profile-hero .card-body.border-top {
    border-top-color: #EDF1EE !important;
}

/* Title and meta line */
.camp-profile-hero h5 {
    color: #101615;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.camp-profile-hero .text-muted,
.camp-profile-hero .text-muted small,
.camp-profile-hero small.text-muted {
    color: #6B7570 !important;
}

.camp-profile-hero .text-muted a {
    color: #6B7570;
}

.camp-profile-hero .text-muted a:hover {
    color: #067A45;
}

/* Cover thumbnail: soft frame rather than a heavy 2px secondary border */
.camp-profile-hero img.zoom-img {
    border: 1px solid #DCE2DF !important;
    border-radius: 12px !important;
}

/* "Verified by Brands Motion" */
.camp-profile-hero .text-success {
    color: #067A45 !important;
}

/* Status pill: quiet, matching the draft's badge weight */
.camp-profile-hero .badge {
    padding: 6px 12px !important;
    border-radius: 999px;
    font-size: 0.74rem !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Progress rails — accent fill on a soft track */
.camp-profile-hero .progress {
    border-radius: 999px;
    background: #EDF1EE;
}

.camp-profile-hero .progress-bar {
    border-radius: 999px;
}

.camp-profile-hero .campaign-progress-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: center;
}

.camp-profile-hero .campaign-progress-grid > div[style*="min-width"] {
    min-width: 0 !important;
}

.camp-profile-hero .campaign-progress-grid .vr {
    display: none !important;
}

.camp-profile-hero .progress-primary-fill {
    background: #00B85C;
}

.camp-profile-hero .vr {
    color: #DCE2DF;
    opacity: 1;
}

/* Campaign Actions strip */
.camp-profile-hero .btn {
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.camp-profile-hero .btn-dark {
    border-color: #0A100E;
    background: #0A100E;
}

.camp-profile-hero .btn-dark:hover {
    border-color: #101615;
    background: #101615;
}

.camp-profile-hero .btn-success {
    border-color: #067A45;
    background: #067A45;
}

.camp-profile-hero .btn-success:hover {
    border-color: #045C33;
    background: #045C33;
}

/* ── DataTable lists in a card ───────────────────────────────────────────────
   Brings every sp-table list in line with the campaign list: one card holding the
   controls, the table and the pager, with the table flush inside the card and its
   header picking up the top corners.

   sp-table and sp-table-head now emit .clv-list-table / .clv-list-thead, so the
   header treatment, row height and separators all come from those shared rules
   rather than being redefined per page. */
.card-datatable {
    padding: 14px;
}

    .card-datatable .table-responsive {
        border-radius: 8px;
    }

    .card-datatable .clv-list-thead th:first-child {
        border-top-left-radius: 8px;
    }

    .card-datatable .clv-list-thead th:last-child {
        border-top-right-radius: 8px;
    }

    .card-datatable .clv-list-table tbody tr:last-child td {
        border-bottom: 0;
    }

    /* The generated control strips carry px-2/py-3 utilities; pull them flush with
       the card's own padding so they read as one surface. */
    .card-datatable [class$="-ButtonWrapperElements"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid #eef0f2;
        margin-bottom: 12px;
    }

    .card-datatable [class$="-table-controls"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-top: 1px solid #eef0f2;
        padding-top: 12px;
        margin-top: 4px;
    }

        /* Single-page lists render an empty pager; hide it so there is no dead space. */
        .card-datatable [class$="-table-controls"] .pagination:empty {
            display: none;
        }

    /* A DataTables card nested in a list card (tabs and toolbar outside it, table
       inside) would read as a card within a card: drop its own frame so the two
       merge into the single surface the campaign list has. */
    .camp-list-card > .card {
        border: 0;
        box-shadow: none !important;
        margin-bottom: 0 !important;
    }

        .camp-list-card > .card > .card-datatable {
            padding: 0;
        }

/* ── Sub-tab pills ────────────────────────────────────────────────────────
   The pill row used for sub-tabs inside a page: campaign participation, driver
   analytics, the staff profile. inline-flex is the point of it — the grey track
   hugs the pills instead of spanning the container, and the pills size to their
   own labels rather than sharing the width evenly. */
.subtab-pills {
    display: inline-flex;
    gap: 2px !important;
    padding: 4px;
    border-radius: 999px;
    background: #f4f7fb;
    flex-wrap: wrap;
}

.subtab-pills .nav-item {
    flex: 0 0 auto;
}

.subtab-pills .nav-link {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: auto;
    min-height: 34px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #161616;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.2;
}

.subtab-pills .nav-link:hover {
    background: #f5f6f7;
    color: #161616;
}

.subtab-pills .nav-link.active {
    background: linear-gradient(180deg, #181818 0%, #050505 100%);
    color: #fff;
    box-shadow: none;
}

@media (max-width: 575.98px) {
    .subtab-pills {
        display: flex;
        width: 100%;
    }
}

/* ── Sub-tab card ─────────────────────────────────────────────────────────
   One card holding a .subtab-pills row and the selected pane's content, so the
   pills sit on the card rather than floating on the page above it. */
.subtab-card {
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    overflow: hidden;
}

.subtab-card > .card-body {
    padding: 16px !important;
}

/* A pane that brings its own card would read as a card within a card: drop its
   frame so the two merge into one surface. */
.subtab-card .tab-pane > .card {
    border: 0;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.subtab-card .tab-pane > .card > .card-body {
    padding: 0;
}
