@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0000FF;
    --primary-hover: #6464fc;
    --bg-color: #F1F5F9;
    --sidebar-bg: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --white-color: #fff;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* --- Layout --- */
/* .admin-wrapper {
  display: flex;
  min-height: 100vh;
} */

/* --- Sidebar --- */
.sidebar {
    width: 250px;
    background-color: var(--primary-color);
    border-right: 1px solid #3073b6;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 0 20px 14px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.sidebar .nav-item {
    margin-bottom: 5px;
    padding: 0 15px;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #fff;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.nav-link:hover {
    background-color: #f0ecfb;
    color: var(--primary-color);
}

.nav-link.active {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.nav-link i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    padding: 20px 40px;
    overflow-y: auto;
}

.topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
    background: #fff;
    padding: 15px 40px 16px;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 999;
    margin-left: 250px;
}

.topbar-user {
    font-weight: 500;
    color: var(--text-muted); 
    max-width: min(240px, 40vw);
}

.topbar-user .topbar-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Common Components --- */
h1.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

/* A heading and the filters/actions beside it drop to their own line rather than
   squeezing each other once the viewport can no longer hold both. */
.page-title.d-flex {
    flex-wrap: wrap;
    gap: 12px;
}

p.page-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    background-color: #fff;
}

.card-header-custom {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
}

/* search bar */
.search-bar {
    max-width: calc(100% - 160px);
}

/* Stat Cards */
.stat-card {
    padding: 20px;
    border-left: solid 4px var(--primary-color);
    display: flex;
    width: 100%;
    justify-content: center;
}

.stat-card-title {
    color: var(--text-muted);
    font-size:14px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0px
}

    .stat-card-title i {
        font-size: 24px;
        color: #fff;
        border-radius: 6px;
        background: var(--primary-color);
        text-align: center;
        line-height: 50px;
        width: 50px
    }

.stat-card-value {
    color: var(--text-dark);
    font-size:24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-card-trend {
    font-size: 0.8rem;
    font-weight: 500;
}

.trend-up {
    color: var(--success-color);
}

.trend-down {
    color: var(--danger-color);
}

/* Links */
.text-primary-custom {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}


/* Badges */
.badge-custom {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-active {
    background-color: #f0ecfb;
    color: var(--primary-color);
}

.badge-suspended {
    background-color: #fee2e2;
    color: var(--danger-color);
}

.badge-pending {
    background-color: #fef3c7;
    color: var(--warning-color);
}

/* Table */
.table-custom th {
    color:#fff;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 15px;
}
table.dataTable thead th {
    color: #fff;
}
.table-custom td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table-custom tr:last-child td {
    border-bottom: none;
}

.btm {
    font-size: 14px
}
/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
}

    .btn-primary:hover {
        background-color: var(--primary-hover);
        color: white;
    }

/* Forms */
.form-control-custom {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
}

    .form-control-custom:focus {
        box-shadow: 0 0 0 0.25rem rgba(169, 73, 245, 0.25);
        border-color: var(--primary-color);
    }

/* Login Page Custom */
.login-body {
    background-color: #ffffff;
}

.login-header-nav {
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
}

.login-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px;
    margin-top: auto;
}

.login-container {
    max-width: 450px;
    margin: 80px auto;
}

.login-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.active-packages {
    border: 1px solid #BEBEFF;
    border-radius: 14px;
}

/* tabs */
.cms-lang-tabs {
    display: inline-flex;
    gap: 10px;
    padding: 4px;
    border-radius: 40px;
    margin-bottom: 20px;
}

.cms-lang-tab {
    padding: 6px 20px;
    background-color: #fff;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

    .cms-lang-tab.active {
        background-color: var(--primary-color);
        color: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

/* --- Sidebar Toggle --- */
.sidebar {
    transition: width 0.3s ease;
    z-index: 1000;
}

body.sidebar-collapsed .sidebar {
    width: 80px;
}

body.sidebar-collapsed .sidebar-header {
    font-size: 0;
    padding: 0 10px 20px 10px;
    text-align: center;
}

.sidebar-header a img, .sidebar-header {
    filter: brightness(0) saturate(100%) invert(100%);
}

body.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 10px;
}

/* Hide the text content inside the nav link */
body.sidebar-collapsed .nav-link {
    font-size: 0;
}

    body.sidebar-collapsed .nav-link i {
        margin-right: 0;
        font-size: 1.3rem;
    }

/* Add transitions for main content and topbar margins */
.main-content,
.topbar {
    transition: margin-left 0.3s ease;
}

/* When collapsed, update the margin */
body.sidebar-collapsed .main-content,
body.sidebar-collapsed .topbar {
    margin-left: 80px !important;
}

/* Ensure default margins are consistent (they are 250px by default) */
.main-content {
    margin-left: 250px;
}

.language-dropdown .dropdown-menu {
    min-width: unset;
}

.language-dropdown img {
    height: 20px;
    width: auto;
    display: block;
}

.language-dropdown .dropdown-menu li a {
    padding-block: 5px !important;
}

.logo-sm {
    display: none;
}

body.sidebar-collapsed .sidebar-header .logo-sm {
    display: block;
}

body.sidebar-collapsed .sidebar-header .logo-lg {
    display: none;
}











/* Specific adjustments for login page to match Figma */
.login-page {
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-nav {
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.login-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.25rem;
    color: #333;
    text-decoration: none;
}

    .login-nav-logo span.icon {
        background-color: var(--primary-color);
        color: white;
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        font-size: 1rem;
    }

.login-nav-links {
    display: flex;
    gap: 30px;
}

    .login-nav-links a {
        color: #333;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
    }

        .login-nav-links a.active {
            color: var(--primary-color);
        }

.login-nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    font-weight: 500;
    color: var(--primary-color);
    padding: 8px 24px;
    border-radius: 6px;
    transition: .3s;
}

    .btn-primary-outline:hover {
        background-color: var(--primary-color);
        color: white;
    }

.btn-solid {
    background-color: #b45309;
    color: white;
    padding: 8px 24px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    font-weight: 500;
}

    .btn-solid:hover {
        background-color: #92400e;
        color: white;
    }

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    background: #fff;
}

.footer {
    background-color: #2b3342;
    color: #e2e8f0;
    padding: 60px 40px 30px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer h6 {
    color: white;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 1rem;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer ul li {
        margin-bottom: 12px;
    }

        .footer ul li a {
            color: #94a3b8;
            text-decoration: none;
            transition: color 0.2s;
        }

            .footer ul li a:hover {
                color: white;
            }

.footer-bottom {
    border-top: 1px solid #3f4859;
    padding-top: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* 8-apr-2026 */
.form-control-custom, .form-control {
    background-color: #F5F5F5 !important;
    border: 1px solid #e1e1e1 !important;
    font-size: 14px;
    padding: 8px 15px;
}

    .form-control-custom:focus {
        box-shadow: 0 0 0 1px var(--primary-color);
    }

.card-body {
    padding: 22px;
}

.table-custom td {
    padding: 11px !important;
    font-size: 14px;
}

.card-body .table {
    margin-bottom: 0;
}

.table-active {
    --bs-table-accent-bg: #f6f6ff;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: #f5f5f7;
}

table.dataTable thead th, table.dataTable thead td, .dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-color: #E5E5E5 !important;
}

table.dataTable thead th, table.dataTable td, table.dataTable.no-footer {
    border-color: #E5E5E5 !important;
}

.dataTables_length {
    margin-top: 8px;
    padding-left: 20px;
}

    .dataTables_length select {
        border: 1px solid #cbcbcb !important;
        border-radius: 4px !important;
    }

.pending_status, .completed_status, .suspended_status {
    padding: 2px 8px 2px 8px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.badge {
    padding: 5px 8px 5px 8px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.pending_status {
    background: #FFC107;
    color: #000000;
}

.completed_status {
    background: rgba(var(--bs-success-rgb),1) !important;
    color: #fff;
}

.suspended_status {
    background: #D4183D;
    color: #fff;
}

.nav-tabs .nav-link {
    color: #000;
}
/*.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border: 0;
}*/

.bg-primary {
    background-color: var(--primary-color) !important;
}

#btnExportExcel, #clearFilters {
    background: #fff !important;
    border-color: #b1b1b1 !important;
    height: 37px;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color)
    }

.sidebar button.nav-link {
    width: 100%;
    border: 0;
    color: #ff9baf;
    background: transparent;
}

    .sidebar button.nav-link:hover {
        background: #D4183D;
        color: #fff;
    }

.progress {
    background: #E5E7EB !important;
}


.dataTables_paginate .paginate_button {
    background: #f1f1f1 !important;
    padding: 2px 10px !important;
    border-radius: 4px !important;
    margin-left: 5px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #d0d0f9 !important;
    box-shadow: none !important;
    border-color: #d0d0f9 !important;
    color: #000 !important
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #0000ff !important;
    color: #fff !important;
    border-color: #0000ff !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 10px;
}

.stat-card-value {
    color: var(--text-dark);
}

/* 9-apr-2026 */
.activity-list-itm:last-child {
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important
}

.btn-outline-secondary {
    color: #1A1A1A;
    border-color: #c7c7c7;
}

    .btn-outline-secondary:hover {
        color: #fff;
    }

        .btn-outline-secondary:hover svg path {
            stroke: #fff;
        }

.card-warning {
    border: 1px solid #FEE685;
    background: #FFFBEB;
    border-radius: 14px;
    color: #7B3306;
}

.api-keys-btns button {
    border-radius: 4px !important;
    height: 38px;
    width: 38px;
}

.font-monospace {
    font-family: 'Courier New', monospace !important;
}



/* pricing */
.plan-mini {
    border: 1px solid rgba(0, 0, 0, .17);
    border-radius: 16px;
    padding: 24px;
    background: #fff;
    height: 100%;
    position: relative;
}

    .plan-mini.featured {
        border: 2px solid blue;
        box-shadow: 0 4px 16px rgba(0, 0, 255, .2);
    }

.most-popular {
    position: absolute;
    top: 10px;
    right: 10px;
    background: blue;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
}

.plan-price {
    font-size: 56px;
    font-weight: 700;
    color: blue;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -1.68px;
}

.plan-name {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
}

.plan-chars {
    text-align: center;
    font-size: 16px;
    color: rgba(33, 37, 41, .75);
}

.plan-rate {
    text-align: center;
    font-size: 14px;
    color: rgba(33, 37, 41, .75);
}

.plan-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .plan-list li {
        font-size: 14px;
        color: #212529;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }

        .plan-list li.dim {
            color: rgba(33, 37, 41, .75);
        }

.btn-plan {
    border: 1px solid blue;
    color: blue;
    background: transparent;
    border-radius: 8px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.btn-plan-filled {
    background: blue;
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.btn-plan-text {
    border: none;
    background: transparent;
    color: blue;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    padding: 14px;
    cursor: pointer;
}

/* ================================ pricing =====================================*/
.pricing-card {
    border: 1px solid rgba(0, 0, 0, .17);
    border-radius: 16px;
    padding: 24px;
    background: #fff;
    height: 100%;
    position: relative;
}

    .pricing-card.featured {
        border: 2px solid blue;
        box-shadow: 0 4px 16px rgba(0, 0, 255, .2);
    }

    .pricing-card.current-plan {
        border: 1px solid #198754;
        background: #f2fdf8
    }

.current-plan-badge {
    background: #198754;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.package-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1.2;
    z-index: 1;
}

    .package-type-badge.subscription {
        background: #0000ff;
        color: #fff;
    }

    .package-type-badge.addon {
        background: #6c757d;
        color: #fff;
    }

.billing-package-toggle .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
    margin-top: 0;
}

    .billing-package-toggle .form-check-input:checked {
        background-color: #0000ff;
        border-color: #0000ff;
    }

    .billing-package-toggle .form-check-input:focus {
        border-color: #0000ff;
        box-shadow: 0 0 0 0.25rem rgba(0, 0, 255, 0.25);
    }

.billing-package-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    cursor: pointer;
    white-space: nowrap;
}

.features-lbl {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.limits-lbl {
    font-size: 16px;
    font-weight: 600;
    color: rgba(33, 37, 41, .75);
}

.btn-plan-current {
    border: none;
    background: transparent;
    color: #198754;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    padding: 14px;
    cursor: pointer;
}

.current-plan-info {
    background: #dbe8ff;
    border: 1px solid #bebeff;
    border-radius: 12px;
    padding: 20px 24px;
}

.enterprise-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .17);
    padding: 36px;
}

/*---*/
.plan-features-list li::before {
    content: "";
    background: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_632_8961)"><path d="M14.535 6.66666C14.8395 8.16086 14.6225 9.71428 13.9203 11.0679C13.218 12.4214 12.073 13.4934 10.6761 14.1049C9.27913 14.7164 7.71479 14.8305 6.24391 14.4282C4.77302 14.026 3.4845 13.1316 2.59323 11.8943C1.70195 10.657 1.26179 9.15148 1.34615 7.62892C1.43051 6.10635 2.0343 4.65872 3.05681 3.52744C4.07932 2.39616 5.45876 1.64961 6.96509 1.4123C8.47141 1.17498 10.0136 1.46123 11.3344 2.22333" stroke="%23198754" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 7.33366L8 9.33366L14.6667 2.66699" stroke="%23198754" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/></g><defs><clipPath id="clip0_632_8961"><rect width="16" height="16" fill="white"/></clipPath></defs></svg>');
    width: 16px;
    height: 16px;
    position: absolute;
    top: 3px;
    left: 0;
}

.plan-features-list li {
    position: relative;
    padding-left: 22px;
    list-style: none;
    margin-bottom: 8px;
}

.plan-features-list ul {
    padding-left: 0;
    margin-top: 18px;
}

/* ── LANGUAGE DROPDOWN ── */
.lang-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background .15s;
}

    .lang-trigger:hover {
        background: rgba(0, 0, 0, .05);
    }

.lang-flag-stack {
    position: relative;
    width: 29px;
    height: 32px;
    flex-shrink: 0;
}

    .lang-flag-stack img {
        position: absolute;
        left: 0;
        width: 29px;
        height: 20px;
        border-radius: 2px;
        object-fit: cover;
    }

    .lang-flag-stack .flag-top {
        top: 5px;
        z-index: 2;
    }

    .lang-flag-stack .flag-bottom {
        top: 12px;
        z-index: 1;
    }

.lang-current-label {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    white-space: nowrap;
}

.lang-chevron {
    width: 12px;
    height: 12px;
    transition: transform .2s;
    flex-shrink: 0;
}

    .lang-chevron.open {
        transform: rotate(180deg);
    }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 190px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: 6px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s, transform .18s;
}

    .lang-dropdown.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    color: #212529;
    font-weight: 500;
    transition: background .12s;
}

    .lang-option:hover {
        background: #f0f4ff;
    }

    .lang-option.selected {
        background: #eef2ff;
        color: blue;
    }

    .lang-option .opt-flag {
        width: 26px;
        height: 18px;
        border-radius: 2px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .lang-option .opt-check {
        margin-left: auto;
        color: blue;
        font-size: 13px;
    }

.lang-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

.lang-section-lbl {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 6px 12px 2px;
}

.h-light-card {
    border-radius: 8px;
    padding: 15px;
    background: var(--bg-color)
}

.quick-action-card i {
    font-size: 2rem
}

.left-bdr {
    border-left: solid 4px var(--primary-color) !important;
}

.table > thead {
    background: #333;
    color: #fff
}

.table > tbody tr:nth-child(even) {
    background: var(--bg-color)
}

.grey-card {
    background: #efeff5;
    padding:10px 10px;
    border-radius: 8px
}
.form-switch .form-check-input:checked {
    background-color: #308752 !important;
    border-color: #308752 !important;
}

.form-switch .form-check-input:focus {
    border-color: #198754;
    box-shadow: 0 0 0 .25rem #19875426;
}

/* Select2 — align single-select dropdowns with .form-control-custom fields */
.select2-container {
    vertical-align: middle;
}

.select2-container--bootstrap-5 .select2-selection,
.select2-container .select2-selection--single {
    display: flex !important;
    align-items: center;
    min-height: calc(1.5em + 16px + 2px) !important;
    padding: 8px 15px !important;
    background-color: #F5F5F5 !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #212529;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered,
.select2-container .select2-selection--single .select2-selection__rendered {
    /* Keep clear of the arrow on the right, and clip a long label instead of running
       the text underneath it (client options carry the email as well as the name). */
    padding: 0 22px 0 0 !important;
    line-height: 1.5;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* The selection box is a flex container, so the label needs to be allowed to shrink
       before the ellipsis can kick in. */
    flex: 1 1 auto;
    min-width: 0;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow,
.select2-container .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 8px;
    height: 100%;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 1px var(--primary-color);
}

/* Dropdown panel + search box match the field theme */
.select2-container--bootstrap-5 .select2-dropdown {
    border-color: #e1e1e1;
    border-radius: 8px;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
}
 
.filter-toolbar .form-control-custom,
.filter-toolbar .form-select,
.filter-toolbar .filter-btn {
    height: 42px;
    font-size: 14px;
}

.filter-toolbar .form-control-custom,
.filter-toolbar .form-select,
.filter-toolbar .input-group-text {
    background-color: #F5F5F5 !important;
    border: 1px solid #e1e1e1 !important;
}

.filter-toolbar .input-group-text {
    border-right: 0 !important;
    border-radius: 8px 0 0 8px;
}

.filter-toolbar .date-input-group .form-control {
    border-left: 0 !important;
}

/* The global .search-bar cap (100% - 160px) was sized for the old flex bars. */
.filter-toolbar .search-bar {
    max-width: 100%;
}

.date-input-group {
    flex-wrap: nowrap;
}

.date-input-group .form-control {
    border-radius: 0 8px 8px 0 !important;
}

.date-picker {
    cursor: pointer;
}

/* Clear / Export sit next to the fields, so they match their height and radius. */
.filter-toolbar .filter-btn {
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    background-color: #fff;
    color: #212529;
    white-space: nowrap;
}

.filter-toolbar .filter-btn:hover {
    background-color: #f5f5f5;
}

/* Select2 replaces the native select, so keep its box the same size as the rest. */
.filter-toolbar .select2-container {
    width: 100% !important;
}

.filter-toolbar .select2-container--bootstrap-5 .select2-selection,
.filter-toolbar .select2-container .select2-selection--single {
    height: 42px;
    min-height: 42px !important;
}