/* ============================================================================
   Custom CSS
   ============================================================================ */

*,
*::before,
*::after {
    box-sizing: border-box !important;
}

.mt-26 {
    margin-top: 26px;
}

/* ============================================================================
   Select2 Modern Styling - Chip/Tag Style for Better UX
   ============================================================================ */

/* Base Select2 Container */
.select2-container--bootstrap4 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.select2-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Prevent body scroll when dropdown is open */
body.select2-dropdown-open {
    overflow-x: hidden !important;
}

html.select2-dropdown-open {
    overflow-x: hidden !important;
}

.select2-container--bootstrap4 .select2-selection--single {
    height: calc(2.5rem + 2px) !important;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.select2-container--bootstrap4 .select2-selection--single:focus,
.select2-container--bootstrap4.select2-container--focus .select2-selection--single {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select2-container--bootstrap4 .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    padding: 4px 30px 4px 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    position: relative;
    min-height: calc(2.5rem + 2px);
    display: flex;
    align-items: center;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection--multiple {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Clear All Button */
.select2-container--bootstrap4 .select2-selection__clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
    margin: 0;
    padding: 0;
    background: transparent;
    font-weight: bold;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear {
    right: 8px;
}

.select2-container--bootstrap4 .select2-selection__clear:hover {
    color: #dc3545;
    background: transparent;
    opacity: 1;
}

/* Selected Items Container */
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    white-space: normal !important;
    margin: 0;
    padding: 2px 0;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered:empty {
    display: none;
}

/* Chip/Tag Styling for Selected Items */
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
    background-color: #f0f2f5;
    border: 1px solid #e4e6eb;
    border-radius: 4px;
    color: #495057;
    padding: 4px 8px;
    margin: 2px 0;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    line-height: 1.5;
    font-weight: 500;
    height: auto;
    min-height: 28px;
    max-width: 100%;
    word-break: break-word;
}

/* Remove Icon in Chips */
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
    color: #6c757d;
    margin-left: 6px;
    margin-right: 0;
    border: none;
    background: transparent;
    font-weight: bold;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    opacity: 0.8;
    flex-shrink: 0;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #dc3545;
    opacity: 1;
}

/* Search Input - Inline */
.select2-container--bootstrap4 .select2-search--inline {
    margin: 0 !important;
    display: inline-flex;
    flex: 1;
    min-width: 100px;
    align-items: center;
    padding-top: 6px;
}

.consent-notice-box {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 16px;
    margin-top: 15px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.select2-container--bootstrap4 .select2-search--inline .select2-search__field {
    padding: 0 4px;
    height: 24px;
    line-height: 1.5;
    font-size: 1rem;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    width: 100% !important;
    margin: 0;
    vertical-align: top;
}

/* Dropdown Styling */
.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 1px;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.select2-dropdown .select2-results {
    overflow-x: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.select2-dropdown .select2-results__options {
    overflow-x: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.select2-dropdown .select2-results__option {
    overflow-x: hidden !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Dropdown Options - Default styling (for non-chip-style dropdowns) */
.select2-container--bootstrap4 .select2-results__option {
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Highlight selected items in dropdown (for non-chip-style) */
.select2-container--bootstrap4 .select2-results__option[aria-selected=true],
.select2-container--bootstrap4 .select2-results__option--selected {
    background-color: #f5f5f5 !important;
    color: #495057 !important;
}

/* Hover state for unselected options (for non-chip-style) */
.select2-container--bootstrap4 .select2-results__option--highlighted {
    background-color: #e9ecef !important;
    color: #212529 !important;
}

/* Hover state for selected items (for non-chip-style) */
.select2-container--bootstrap4 .select2-results__option[aria-selected=true].select2-results__option--highlighted,
.select2-container--bootstrap4 .select2-results__option--selected.select2-results__option--highlighted {
    background-color: #dee2e6 !important;
    color: #212529 !important;
}

/* ============================================================================
   Form Group Styling
   ============================================================================ */

.form-group label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
}

.form-group .text-muted {
    font-size: 0.875rem;
    font-weight: normal;
}

.form-group .form-text {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Better spacing for form groups */
.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-3 .form-group {
    margin-bottom: 0;
}

/* ============================================================================
   Permission Groups Styling
   ============================================================================ */
.permission-groups {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.permission-group {
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.permission-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.permission-group h6 {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.custom-control-label {
    cursor: pointer;
    font-weight: normal;
}

.custom-control-input:checked~.custom-control-label {
    font-weight: 600;
    color: #007bff;
}

/* ============================================================================
   Card Footer Actions
   ============================================================================ */

.card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.card-footer .btn {
    margin: 0;
}

/* Ensure proper spacing for labels */
.font-weight-semibold {
    font-weight: 600;
}

/* Better placeholder styling */
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__placeholder {
    color: #6c757d;
    margin-left: 0;
    padding: 0;
    line-height: calc(2.5rem - 8px);
}

/* Ensure proper card body padding */
.card-body {
    padding: 1.25rem;
}

.card-body.border-top {
    border-top: 1px solid #dee2e6;
    padding-top: 1.5rem;
}

/* Better visual feedback for form controls */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Ensure consistent spacing */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

.row>[class*='col-'] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Better alignment for select2 in form groups */
.form-group .select2-container {
    width: 100% !important;
}

/* Fix for select2 dropdown positioning */
.select2-dropdown {
    z-index: 9999;
}

/* Prevent horizontal overflow on all Select2 elements */
.select2-container * {
    box-sizing: border-box !important;
}

.select2-dropdown * {
    box-sizing: border-box !important;
}

/* Better styling for disabled states */
.select2-container--bootstrap4 .select2-selection--multiple[aria-disabled="true"] {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Ensure chips wrap properly */
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Better visual hierarchy */
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1.25rem;
}

.card-header .card-title {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Gap utility for Bootstrap 4 */
.gap-2 {
    gap: 0.5rem;
}

/* ============================================================================
   Agent Registration Page Styles
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    background-color: #ffffff;
    padding: 18px 40px;
    border-bottom: 1px solid #eef0f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.main-header .page-title-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-left: 16px;
    padding: 0;
    padding-top: 4px;
    line-height: 1.5;
}

/* Profile dropdown: header name + balance + Account Settings + Logout */
.navbar-profile-menu .dropdown-header {
    font-size: 1rem;
    color: #0f172a;
}
.navbar-profile-menu .dropdown-item-text {
    font-size: 0.9rem;
    cursor: default;
}

/* Mobile: profile icon tap target */
@media (max-width: 991px) {
    #navbar-profile-dropdown {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
    text-decoration: none;
}

.logo img {
    max-width: 100px;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .main {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.logo-text .sub {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
}

.help-text {
    color: #666;
    font-size: 14px;
}

.help-text a {
    color: #0066cc;
    text-decoration: none;
}

/* Banner */
.banner-section {
    background-color: #0066cc;
    color: #ffffff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.banner-text {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-text {
    font-size: 14px;
    color: #475569;
    font-weight: 600;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.stepper-item {
    position: relative;
    display: flex;
    align-items: center;
}

.stepper-item::after {
    content: '';
    position: absolute;
    left: calc(100% + 4px);
    width: 12px;
    height: 2px;
    background: #e2e8f0;
}

.stepper-item:last-child::after {
    display: none;
}

.stepper-dot {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: #ffffff;
    transition: all 0.2s ease;
}

.stepper-item.completed .stepper-dot {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.stepper-item.active .stepper-dot {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Main Content */
.main-content {
    padding: 25px 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Form Section */
.form-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0066cc;
}

.form-section .subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0066cc;
}

.continue-btn {
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
    transition: background-color 0.3s;
}

.continue-btn:hover {
    background-color: #0052a3;
}

/* Benefits Section */
.benefits-section {
    padding-top: 0;
}

.benefits-list {
    list-style: none;
    margin-bottom: 25px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: 15px;
    color: #fff;
}

.benefits-list li .check-icon {
    color: #0066cc;
    font-size: 20px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.awards-section {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.award-badge {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #2a2a3e;
    border: 3px solid #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.award-logo {
    height: 60px;
    object-fit: contain;
}

.award-logo.inc500 {
    height: 45px;
    color: #0066cc;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.award-logo.best-places {
    height: 45px;
    background-color: #cc0000;
    padding: 6px 10px;
    border-radius: 4px;
    color: #ffffff;
    font-weight: 700;
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.main-footer {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 30px 40px;
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-logo .logo-icon {
    width: 35px;
    height: 35px;
    background-color: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
}

/* ============================================================================
   Admin Agent Wizard (Create / Edit) - Minimal Modern UI
   ============================================================================ */

.agent-wizard {
    max-width: 960px;
    margin: 0;
    padding: 24px 0 40px;
}

.agent-wizard-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.agent-wizard-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agent-wizard-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.agent-wizard-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    text-align: left;
}

.agent-wizard-stepper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.agent-wizard-stepper .step-indicator {
    justify-content: flex-start;
}

.agent-wizard-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.agent-wizard-card-header {
    background-color: #007bff;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-bottom: none;
}

.agent-wizard-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.agent-wizard-body {
    padding: 24px 28px 20px;
}

.agent-wizard-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.agent-wizard-section-title {
    margin-bottom: 8px;
}

.agent-wizard-section-heading {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px;
}

.agent-wizard-section-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.agent-wizard-footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.agent-wizard-footer .btn {
    margin: 0;
}

.agent-wizard-primary {
    padding-inline: 22px;
    font-weight: 600;
    border-radius: 999px;
}

.agent-wizard-secondary {
    border-radius: 999px;
}

.agent-wizard-tertiary {
    border-radius: 999px;
}

/* Product cards */
.agent-product-card {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
    height: 100%;
    display: flex;
}

.agent-product-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agent-product-options {
    margin-top: 4px;
}

.agent-product-card .form-check-label.font-weight-bold {
    font-size: 14px;
}

/* Review summary */
.agent-summary-card {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    padding: 16px 18px;
}

.agent-summary-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.agent-summary-table th {
    width: 40%;
    font-weight: 500;
    color: #64748b;
    border-top: none;
}

.agent-summary-table td {
    border-top: none;
    color: #0f172a;
}

.agent-info-banner {
    margin-top: 4px;
    border-radius: 10px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #1d4ed8;
}

.agent-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .agent-wizard {
        padding-inline: 8px;
    }

    .agent-wizard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .agent-wizard-subtitle {
        text-align: left;
    }

    .agent-wizard-stepper {
        width: 100%;
        justify-content: flex-start;
    }

    .agent-wizard-stepper .step-indicator {
        justify-content: flex-start;
    }
}

.footer-info {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-links {
    margin-top: 15px;
    font-size: 13px;
}

.footer-links a {
    color: #66b3ff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links .separator {
    color: #ffffff;
    margin: 0 10px;
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.alert {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Product Selection Section */
.product-selection-section {
    max-width: 1000px;
    margin: 0 auto;
}

.section-heading {
    font-size: 24px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.product-card {
    border: none;
    border-radius: 0;
    padding: 15px 20px;
    background-color: #ffffff;
    transition: background-color 0.2s;
}

.product-header {
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
}

.product-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    user-select: none;
}

.product-checkbox input[type="checkbox"] {
    display: none;
}

.product-checkbox .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #0066cc;
    border-radius: 3px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    transition: all 0.2s;
    flex-shrink: 0;
}

.product-checkbox input[type="checkbox"]:checked+.checkmark {
    background-color: #0066cc;
    border-color: #0066cc;
}

.product-checkbox input[type="checkbox"]:checked+.checkmark::after {
    content: "✓";
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.product-checkbox input[type="checkbox"]:disabled+.checkmark {
    border-color: #999;
    background-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.5;
}

.product-checkbox input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.product-checkbox:has(input[type="checkbox"]:disabled) {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-name {
    flex: 1;
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 32px;
    padding-top: 8px;
}

.option-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    user-select: none;
}

.option-checkbox input[type="checkbox"] {
    display: none;
}

.option-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #0066cc;
    border-radius: 3px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    transition: all 0.2s;
    flex-shrink: 0;
}

.option-checkbox input[type="checkbox"]:checked+.checkmark {
    background-color: #0066cc;
    border-color: #0066cc;
}

.option-checkbox input[type="checkbox"]:checked+.checkmark::after {
    content: "✓";
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.option-checkbox input[type="checkbox"]:disabled+.checkmark {
    border-color: #999;
    background-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.5;
}

.option-checkbox input[type="checkbox"]:disabled,
.option-checkbox:has(input[type="checkbox"]:disabled),
.product-card.disabled .product-checkbox,
.product-card.disabled .option-checkbox {
    cursor: not-allowed;
}

.product-error-alert {
    background-color: #dc3545;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    display: block;
}

.product-error-alert #error-text {
    display: block;
}

/* Location Error Alert */
.location-error-alert {
    background-color: #dc3545;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    display: block;
}

.location-error-alert span {
    display: block;
}

/* Step 4 - Filters */
.filters-form {
    width: 100%;
    display: flex;
    justify-content: center;
}

.filters-wrapper {
    width: 100%;
    max-width: 560px;
    padding-top: 10px;
}

.filters-title {
    color: #0066cc;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.filters-subtitle {
    font-size: 15px;
    color: #333;
    margin-bottom: 14px;
}

.filter-item {
    margin-bottom: 10px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.filter-checkbox {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    accent-color: #0066cc;
}

.filter-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.filter-name {
    font-size: 13px;
    color: #111;
}

.filter-desc {
    font-size: 12px;
    color: #444;
    margin-top: 2px;
}

.filter-select {
    margin-top: 8px;
    width: 190px;
    height: 32px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 13px;
    color: #333;
    background: #fff;
}

.filter-age-row {
    margin-top: 8px;
    display: flex;
    gap: 12px;
}

.filter-age-input {
    width: 96px;
    height: 34px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    padding: 6px 10px;
    font-size: 14px;
    color: #333;
}

.filters-actions {
    margin-top: 18px;
}

.filters-continue {
    width: 140px;
    max-width: 140px;
    border-radius: 4px;
    padding: 12px 0;
    text-transform: none;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

.form-actions .continue-btn {
    max-width: 250px;
    margin: 0 auto;
    padding: 14px 50px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .content-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .banner-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .main-content {
        padding: 40px 20px;
    }

    .main-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    /* App layout navbar: keep single row (hamburger, title, profile) */
    .main-header.navbar {
        flex-direction: row !important;
        align-items: center !important;
    }

    .main-footer {
        padding: 40px 20px;
    }
}

/* Location Selection Section (Step 3) */
.location-selection-section {
    max-width: 1000px;
    margin: 0 auto;
}

.location-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.location-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.location-tab:hover {
    color: #0066cc;
}

.location-tab.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

.step-indicator-wrapper {
    display: flex;
    justify-content: center;
    padding: 14px 40px 40px;
}

.location-tab-content {
    display: none;
}

.location-tab-content.active {
    display: block;
}

.location-search-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 16px;
}

.location-field {
    display: flex;
    flex-direction: column;
}

.location-label {
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
}

.location-input,
.location-select {
    height: 42px;
    border-radius: 4px;
}

.location-add-btn {
    margin: 8px 0 16px;
    padding: 8px 18px;
    border-radius: 4px;
}

.location-results {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
}

.location-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    font-size: 14px;
    color: #333;
}

.location-checkbox {
    width: 18px;
    height: 18px;
}

.location-selected {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.location-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #e7f3ff;
    border-radius: 16px;
    font-size: 13px;
    color: #0066cc;
}

.location-pill-remove {
    border: none;
    background: transparent;
    color: #0066cc;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.location-empty {
    font-size: 14px;
    color: #666;
    padding: 8px 4px;
}

.map-state-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

.map-container {
    width: 100%;
    background-color: #ffffff;
    border-radius: 4px;
    min-height: 400px;
    position: relative;
}

#us-map {
    width: 100% !important;
    height: 400px !important;
    min-height: 400px;
}

.state-list-container {
    width: 100%;
}

.state-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.loading-states {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.state-list::-webkit-scrollbar {
    width: 6px;
}

.state-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.state-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.state-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.state-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
    padding: 4px 0;
}

.state-checkbox-label:hover {
    color: #0066cc;
}

.state-checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0066cc;
}

.state-name {
    font-size: 14px;
    color: inherit;
}

.max-per-day-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 20px;
}

.max-per-day-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.max-per-day-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    background-color: #ffffff;
    cursor: pointer;
    min-width: 180px;
}

.max-per-day-select:focus {
    outline: none;
    border-color: #0066cc;
}

@media (max-width: 768px) {
    .map-state-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .state-list {
        grid-template-columns: 1fr;
    }

    .max-per-day-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .location-search-row {
        grid-template-columns: 1fr;
    }
}

/* Step 5 - Billing/Account Creation */
.billing-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.billing-left,
.billing-right {
    background-color: #ffffff;
}

.billing-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
}

.billing-section-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

.billing-form .form-group {
    margin-bottom: 18px;
}

.billing-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 18px;
}

.billing-form .form-control {
    width: 100%;
    padding: 0px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.billing-form .form-control:focus {
    outline: none;
    border-color: #0066cc;
}

.card-logos {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    align-items: center;
}

.card-logo {
    height: 24px;
    width: auto;
    opacity: 0.7;
}

.convenience-fee {
    font-size: 13px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 15px;
}

.terms-group {
    margin-top: 20px;
}

.terms-checkbox-label {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.terms-checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0066cc;
}

.terms-link {
    color: #0066cc;
    text-decoration: none;
}

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

.summary-content {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
}

.summary-row {
    margin-bottom: 20px;
}

.summary-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.summary-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    background-color: #ffffff;
    cursor: pointer;
}

.summary-select:focus {
    outline: none;
    border-color: #0066cc;
}

.promotion-input-group {
    display: flex;
    gap: 10px;
}

.promotion-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.promotion-input:focus {
    outline: none;
    border-color: #0066cc;
}

.promotion-add-btn {
    padding: 10px 20px;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.promotion-add-btn:hover {
    background-color: #0052a3;
}

.summary-checkbox-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.summary-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.summary-checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0066cc;
}

.billing-actions {
    text-align: center;
    margin-top: 40px;
}

.finish-submit-btn {
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    padding: 14px 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.finish-submit-btn:hover {
    background-color: #0052a3;
}

/* ============================================================================
   QuoteNest Sidebar - Two-state (expanded / collapsed icon rail)
   ============================================================================ */

/* Sidebar container: width and transition */
.wrapper.sidebar-state-expanded .quotenest-sidebar {
    width: 240px !important;
    transition: width 225ms ease-in-out;
}
.wrapper.sidebar-state-collapsed .quotenest-sidebar {
    width: 64px !important;
    transition: width 225ms ease-in-out;
}

/* Content area and footer shift with sidebar */
.wrapper.sidebar-state-expanded .content-wrapper,
.wrapper.sidebar-state-expanded .main-footer {
    margin-left: 240px !important;
    transition: margin-left 225ms ease-in-out;
}
.wrapper.sidebar-state-collapsed .content-wrapper,
.wrapper.sidebar-state-collapsed .main-footer {
    margin-left: 64px !important;
    transition: margin-left 225ms ease-in-out;
}

/* Sidebar header: logo + collapse btn (expanded) or Q (collapsed) */
.quotenest-sidebar .sidebar-header {
    display: flex;
    align-items: center;
    min-height: 3.5rem;
    padding: 0;
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #E0E0E0;
    overflow: hidden;
}

.quotenest-sidebar .sidebar-brand-expanded {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 1rem;
    color: #4A5568 !important;
    text-decoration: none !important;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: opacity 200ms ease-in-out;
}
.quotenest-sidebar .sidebar-brand-expanded:hover {
    color: #6B46C1 !important;
}

.quotenest-sidebar .sidebar-collapse-btn {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0.5rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #4A5568;
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s, color 0.15s;
}
.quotenest-sidebar .sidebar-collapse-btn:hover {
    background-color: #F7F8FA;
    color: #6B46C1;
}

.quotenest-sidebar .sidebar-brand-collapsed {
    display: none;
    width: 100%;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    color: #6B46C1 !important;
    text-decoration: none !important;
    flex-shrink: 0;
}
.quotenest-sidebar .sidebar-brand-collapsed:hover {
    background-color: #F7F8FA;
}
.quotenest-sidebar .sidebar-brand-collapsed .brand-mark {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

/* Expanded: show full logo + collapse btn; hide Q */
.wrapper.sidebar-state-expanded .sidebar-brand-expanded,
.wrapper.sidebar-state-expanded .sidebar-collapse-btn {
    display: flex;
}
.wrapper.sidebar-state-expanded .sidebar-brand-collapsed {
    display: none;
}

/* Collapsed: hide full logo + collapse btn; show Q */
.wrapper.sidebar-state-collapsed .sidebar-brand-expanded,
.wrapper.sidebar-state-collapsed .sidebar-collapse-btn {
    display: none;
}
.wrapper.sidebar-state-collapsed .sidebar-brand-collapsed {
    display: flex;
}

/* ============================================================================
   Sidebar Light Theme (screenshot color scheme)
   ============================================================================ */

.main-sidebar.sidebar-light-custom {
    background-color: #FFFFFF !important;
    border-right: 1px solid #E0E0E0;
}

/* More spacing between sidebar menu options (top-level only) */
.quotenest-sidebar .nav-sidebar > .nav-item {
    margin-bottom: 0.5rem;
}
.quotenest-sidebar .nav-sidebar > .nav-item:last-child {
    margin-bottom: 0;
}
.quotenest-sidebar .nav-sidebar > .nav-item > .nav-link {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.main-sidebar.sidebar-light-custom .nav-sidebar .nav-link {
    color: #4A5568 !important;
    background: transparent !important;
}

.main-sidebar.sidebar-light-custom .nav-sidebar .nav-link:hover {
    background-color: #F7F8FA !important;
    color: #4A5568 !important;
}

.main-sidebar.sidebar-light-custom .nav-sidebar .nav-link.active {
    background-color: #EEE7F6 !important;
    color: #6B46C1 !important;
    border-radius: 6px;
}

.main-sidebar.sidebar-light-custom .nav-sidebar .nav-link.active .nav-icon,
.main-sidebar.sidebar-light-custom .nav-sidebar .nav-link.active p {
    color: #6B46C1 !important;
}

.main-sidebar.sidebar-light-custom .nav-sidebar .nav-link .nav-icon {
    color: #4A5568 !important;
}

/* Collapsed: nav icons centered, labels hidden (opacity 0, no layout shift) */
.wrapper.sidebar-state-collapsed .quotenest-sidebar .nav-sidebar .nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
}
.wrapper.sidebar-state-collapsed .quotenest-sidebar .nav-sidebar .nav-link .nav-icon {
    margin: 0;
    width: auto;
}
.wrapper.sidebar-state-collapsed .quotenest-sidebar .nav-sidebar .nav-link p,
.wrapper.sidebar-state-collapsed .quotenest-sidebar .nav-sidebar .nav-link .right {
    width: 0 !important;
    min-width: 0 !important;
    overflow: hidden;
    opacity: 0;
    padding: 0 !important;
    margin: 0 !important;
    transition: opacity 200ms ease-in-out;
}

.wrapper.sidebar-state-collapsed .quotenest-sidebar .nav-treeview {
    display: none;
}
.wrapper.sidebar-state-collapsed .quotenest-sidebar .nav-sidebar .nav-item {
    width: 100%;
}

/* Expanded state: labels fade in */
.wrapper.sidebar-state-expanded .quotenest-sidebar .nav-sidebar .nav-link p,
.wrapper.sidebar-state-expanded .quotenest-sidebar .nav-sidebar .nav-link .right {
    transition: opacity 200ms ease-in-out;
}

/* Mobile: when expanded, sidebar overlays content; when collapsed, sidebar off-screen so hamburger is visible */
@media (max-width: 991px) {
    /* Mobile sidebar backdrop overlay */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1034;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1), visibility 300ms cubic-bezier(0.4, 0, 0.2, 1);
        will-change: opacity;
    }
    body.sidebar-mobile-open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Mobile sidebar base styles and transitions */
    .quotenest-sidebar {
        transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    /* Expanded/open sidebar on mobile */
    body .wrapper.sidebar-state-expanded .quotenest-sidebar,
    body.sidebar-mobile-open .quotenest-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0;
        bottom: 0;
        width: 240px !important;
        min-width: 240px !important;
        transform: translate3d(0, 0, 0) !important;
        visibility: visible !important;
        z-index: 1035;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
        will-change: transform;
    }
    
    /* Collapsed sidebar on mobile */
    .wrapper.sidebar-state-collapsed .quotenest-sidebar,
    body.sidebar-collapse:not(.sidebar-mobile-open) .quotenest-sidebar {
        position: fixed !important;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translate3d(-100%, 0, 0) !important;
        z-index: 1034;
        will-change: transform;
    }
    
    /* Content wrapper adjustments */
    .wrapper.sidebar-state-expanded .content-wrapper,
    .wrapper.sidebar-state-expanded .main-footer,
    .wrapper.sidebar-state-collapsed .content-wrapper,
    .wrapper.sidebar-state-collapsed .main-footer {
        margin-left: 0 !important;
    }
    /* App navbar: keep hamburger, page title, profile icon on one line (override column layout) */
    .main-header.navbar {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    .main-header.navbar .navbar-nav {
        flex-direction: row !important;
        align-items: center !important;
    }
    /* Mobile hamburger: ensure visible and tappable */
    #sidebar-open-mobile {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #4A5568 !important;
    }
    #sidebar-open-mobile:hover,
    #sidebar-open-mobile:focus {
        color: #6B46C1 !important;
    }
}

/* Small phones (e.g. 425px): re-apply sidebar expanded so AdminLTE/Bootstrap rules at 576px/480px don't hide it */
@media (max-width: 576px) {
    body .wrapper.sidebar-state-expanded .quotenest-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 240px !important;
        min-width: 240px !important; /* prevent 64px/collapsed width from showing as a thin strip */
        max-width: 85vw !important;
        transform: none !important;
        visibility: visible !important;
        z-index: 1050 !important;
        box-sizing: border-box !important;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    }
    /* Keep hamburger visible and tappable on small screens */
    #sidebar-open-mobile {
        display: inline-flex !important;
        min-width: 44px !important;
        min-height: 44px !important;
        flex-shrink: 0;
    }
}
@media (max-width: 480px) {
    body .wrapper.sidebar-state-expanded .quotenest-sidebar,
    body .wrapper.sidebar-state-expanded .quotenest-sidebar.main-sidebar {
        transform: none !important;
        width: 260px !important;
        min-width: 240px !important;
        max-width: 90vw !important;
        z-index: 1050 !important;
    }
}

.main-sidebar.sidebar-light-custom .nav-treeview .nav-link {
    padding-left: 2rem;
}

.main-sidebar.sidebar-light-custom .nav-treeview .nav-link .nav-icon {
    font-size: 0.6rem;
}

.main-sidebar.sidebar-light-custom .nav-treeview .nav-link.active {
    background-color: #EEE7F6 !important;
    color: #6B46C1 !important;
}

/* ============================================================================
   Lead Management Page - Table & Content (screenshot color scheme)
   ============================================================================ */

.lead-management-page .content-wrapper {
    background-color: #FFFFFF;
}

/* KPI cards: value scales with card width so Spend etc. don't overflow on mobile */
.lead-management-page .lead-kpi-box {
    overflow: hidden;
    min-width: 0;
}
.lead-management-page .lead-kpi-box__value {
    font-size: clamp(1.125rem, 5.5vw, 2.25rem) !important;
    min-width: 0;
    overflow: hidden;
}
@media (max-width: 576px) {
    .lead-management-page .lead-kpi-box__value {
        font-size: 1.35rem !important;
    }
}
@media (max-width: 380px) {
    .lead-management-page .lead-kpi-box__value {
        font-size: 1.15rem !important;
    }
}

.lead-management-page .card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.lead-management-page .card-header {
    background-color: #F7F8FA !important;
    border-bottom: 1px solid #E0E0E0;
    font-weight: 500;
    color: #4A5568;
}

.lead-management-page .card-header .card-title {
    color: #4A5568;
    font-weight: 600;
}

.lead-management-page .btn-primary,
.lead-management-page #apply-filters-btn {
    background-color: #6B46C1 !important;
    border-color: #6B46C1 !important;
    color: #FFFFFF !important;
    border-radius: 6px;
}

.lead-management-page .btn-primary:hover,
.lead-management-page #apply-filters-btn:hover {
    background-color: #5a3aa8 !important;
    border-color: #5a3aa8 !important;
    color: #FFFFFF !important;
}

.lead-management-page #leads-table thead tr:first-child th {
    background-color: #F7F8FA !important;
    color: #4A5568 !important;
    font-weight: 500;
    border-bottom: 1px solid #E0E0E0;
    border-top: 1px solid #E0E0E0;
}

.lead-management-page #leads-table thead tr:last-child th {
    background-color: #F7F8FA !important;
    color: #4A5568 !important;
    border-bottom: 1px solid #E0E0E0;
}

.lead-management-page #leads-table tbody td {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
    color: #4A5568;
}

.lead-management-page #leads-table tbody tr:hover td {
    background-color: #F7F8FA;
}

.lead-management-page #leads-table .badge-success {
    background-color: #E0F2F7 !important;
    color: #40BAD0 !important;
}

.lead-management-page #leads-table .badge-danger {
    background-color: #E6E6FA !important;
    color: #8A2BE2 !important;
}

.lead-management-page .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #6B46C1 !important;
    border-color: #6B46C1 !important;
    color: #FFFFFF !important;
    border-radius: 50%;
}

.lead-management-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #EEE7F6 !important;
    border-color: #EEE7F6 !important;
    color: #6B46C1 !important;
    border-radius: 6px;
}

.lead-management-page .dataTables_wrapper .dataTables_length label,
.lead-management-page .dataTables_wrapper .dataTables_info {
    color: #4A5568;
}

.lead-management-page .form-control {
    border-radius: 6px;
    border: 1px solid #D1D5DB;
}

.lead-management-page .form-control:focus {
    border-color: #6B46C1;
    box-shadow: 0 0 0 0.2rem rgba(107, 70, 193, 0.2);
}

.lead-management-page .select2-container--bootstrap4 .select2-selection--single {
    border-radius: 6px;
    border-color: #D1D5DB;
}

.lead-management-page .select2-container--bootstrap4.select2-container--focus .select2-selection--single {
    border-color: #6B46C1;
}

@media (max-width: 768px) {
    .main-header .page-title-text {
        font-size: 1rem;
        margin-left: 8px;
    }

    .billing-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .billing-form .form-row {
        grid-template-columns: 1fr;
    }

    .promotion-input-group {
        flex-direction: column;
    }
}


/* 🔥 MOBILE SIDEBAR FIX — prevent collapsed rail */
@media (max-width: 991.98px) {
    body.sidebar-collapse .main-sidebar {
      transform: translateX(-100%) !important;
      width: 240px !important;
    }
  
    /* kill icon-rail state on mobile */
    .sidebar-state-collapsed .main-sidebar {
      width: 240px !important;
    }
  
    /* ensure no ghost strip */
    .main-sidebar {
      margin-left: 0 !important;
      left: 0 !important;
    }
  
    .content-wrapper,
    .main-footer,
    .main-header {
      margin-left: 0 !important;
    }
  }
  
/* ============================================================================
   Agent Management - Listing Page Styles
   ============================================================================ */

/* Table styling */
#agents-table {
    table-layout: auto;
}

#agents-table th,
#agents-table td {
    vertical-align: middle;
}

/* Expand/collapse icon column */
#agents-table td.expand-icon {
    cursor: pointer;
    text-align: center;
    padding: 8px;
}

#agents-table td.expand-icon i {
    transition: transform 0.2s;
    color: #6c757d;
}

#agents-table tr.expanded td.expand-icon i {
    transform: rotate(90deg);
}

/* Row hover effect */
#agents-table tbody tr.agent-row:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

#agents-table tbody tr.expanded {
    background-color: #e7f3ff;
}

/* Wallet balance warning */
.wallet-balance-warning {
    color: #dc3545;
    font-weight: 600;
}

.wallet-balance-warning i {
    margin-right: 4px;
}

/* Expanded row styling */
#agents-table tr.expand-row td {
    padding: 0 !important;
    background-color: #f8f9fa;
    border-top: none;
}

.campaign-details-card {
    margin: 16px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.campaign-details-header {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.nested-campaign-table {
    width: 100%;
    margin: 0;
}

.nested-campaign-table thead th {
    background-color: #f7f8fa;
    color: #4a5568;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.nested-campaign-table tbody td {
    padding: 12px;
    font-size: 0.875rem;
    color: #4a5568;
    border-bottom: 1px solid #e8ecf0;
}

.filter-chip {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 6px;
    margin-bottom: 4px;
}

/* Campaign name styling (matching dashboard) */
.campaign-name {
    font-weight: 600;
    color: #374151;
    display: block;
    line-height: 1.4;
}

.campaign-type {
    font-size: 0.8125rem;
    color: #6B7280;
    display: block;
    line-height: 1.4;
}

/* Status toggle switch */
.status-toggle-switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 28px;
    cursor: pointer;
}

.status-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.status-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #6c757d;
    transition: .3s;
    border-radius: 14px;
}

.status-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.status-toggle-switch input:checked + .status-slider {
    background-color: #28a745;
}

.status-toggle-switch input:checked + .status-slider:before {
    transform: translateX(52px);
}

.status-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    pointer-events: none;
    transition: opacity 0.3s;
}

.status-label.active-label {
    left: 8px;
    opacity: 0;
}

.status-label.inactive-label {
    right: 6px;
    opacity: 1;
}

.status-toggle-switch input:checked ~ .status-label.active-label {
    opacity: 1;
}

.status-toggle-switch input:checked ~ .status-label.inactive-label {
    opacity: 0;
}

/* No campaign message */
.no-campaign-message {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

/* Actions column styling */
.actions-column-wrap {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}
