/**
 * Global Styles
 * Core styling for the entire application
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e293b;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --border-light: #e2e8f0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
}

/* ========================================
   Body and Global Zoom
   ======================================== */
body {
    zoom: 0.8;
    background: #f3f4f6;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    position: relative;
    transform-origin: top left;
}

/* Firefox fallback */
@-moz-document url-prefix() {
    body {
        -moz-transform: scale(0.8);
        -moz-transform-origin: 0 0;
        width: 125%;
        height: 125%;
    }
}

/* ========================================
   Layout Components
   ======================================== */
.main-content-wrapper {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.container {
    max-width: 1320px;
}

/* ========================================
   Form Styles
   ======================================== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-control::placeholder {
    color: #f0f0f0 !important;
    opacity: 1 !important;
}

.form-select option:first-child {
    color: #f0f0f0 !important;
}

.form-control:not(textarea) {
    min-height: 48px !important;
    max-height: 48px !important;
}

textarea.form-control {
    height: auto;
    min-height: 48px;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ========================================
   Button Styles
   ======================================== */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-save {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #b91c1c;
    color: white;
}

.btn-info {
    background: #0ea5e9;
    color: white;
    border: none;
}

.btn-info:hover {
    background: #0284c7;
    color: white;
}

/* ========================================
   Card Styles
   ======================================== */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Table Styles
   ======================================== */
.table {
    font-size: 0.95rem;
}

.table thead th {
    background: #e5e7eb;
    color: #374151;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-color: var(--border-light);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(107, 114, 128, 0.05);
}

/* ========================================
   Loading Components
   ======================================== */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

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

/* ========================================
   Alert Styles
   ======================================== */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border-left: 4px solid #10b981;
}

/* ========================================
   Validation Styles
   ======================================== */
.text-danger {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    display: block !important;
    width: 100% !important;
}

.input-group + .invalid-feedback {
    display: block !important;
    width: 100% !important;
}

/* ========================================
   Icon Styles
   ======================================== */
.icon-prefix {
    margin-right: 0.5rem;
    display: inline-block !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

/* ========================================
   Section Title
   ======================================== */
.section-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid;
    border-color: var(--primary-color);
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    height: 3px;
    width: 60px;
    background: var(--primary-color);
}

/* ========================================
   Select2 Styling - Grey Theme
   ======================================== */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 2px solid #9ca3af !important;
    border-radius: 8px !important;
    padding: 0 !important;
    background-color: #f3f4f6 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    color: #374151 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 1rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: -2px !important;
    border-color: #6b7280 transparent transparent transparent !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #6b7280 !important;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1) !important;
    background-color: #e5e7eb !important;
}

.select2-container {
    width: 100% !important;
}

/* Select2 Bootstrap 5 Theme */
.select2-container--bootstrap-5 .select2-selection--single {
    height: 48px !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    border: 2px solid #9ca3af !important;
    border-radius: 8px !important;
    background-color: #f3f4f6 !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: calc(48px - 0.75rem - 4px) !important;
    color: #374151 !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

/* Select2 Dropdown Menu */
.select2-dropdown {
    border: 5px solid #d1d5db !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Select2 Search Box */
.select2-search--dropdown {
    padding: 8px !important;
    background-color: #f9fafb !important;
    border-bottom: 2px solid #e5e7eb !important;
}

.select2-search--dropdown .select2-search__field {
    padding: 8px 12px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.select2-search--dropdown .select2-search__field:focus {
    outline: none !important;
    border-color: #9ca3af !important;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.1) !important;
    background-color: #f9fafb !important;
}

.select2-search--dropdown .select2-search__field::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* Select2 Results */
.select2-results {
    background-color: #ffffff !important;
    padding: 4px 0 !important;
}

.select2-results__option {
    color: #374151 !important;
    padding: 8px 12px !important;
    transition: background-color 0.15s ease !important;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #e5e7eb !important;
    color: #111827 !important;
}

.select2-results__option[aria-selected=true] {
    background-color: #d1d5db !important;
    color: #111827 !important;
    font-weight: 600 !important;
}

/* ========================================
   Pagination Styles
   ======================================== */
.pagination .page-link {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

.pagination .page-item.active .page-link {
    background-color: #0284c7;
    border-color: #0284c7;
    color: white;
}

.pagination .page-link i {
    font-size: 0.75rem !important;
    line-height: 1;
}

.pagination .page-link svg {
    width: 0.75rem !important;
    height: 0.75rem !important;
}

/* ========================================
   Overflow Fixes
   ======================================== */
.col-md-6, .col-md-3, .col-md-2 {
    overflow: visible !important;
}

.row {
    overflow: visible !important;
}

/* ========================================
   Modal Z-Index Fixes
   ======================================== */
/* Fix Modal Z-Index to be above navbar */

/* Bootstrap Modal Backdrop */
.modal-backdrop {
    z-index: 1000000 !important; /* Higher than navbar (999999) */
}

/* Bootstrap Modal */
.modal {
    z-index: 1000001 !important; /* Higher than modal backdrop */
}

/* Bootstrap Modal Dialog */
.modal-dialog {
    z-index: 1000002 !important; /* Ensure dialog is above modal */
}

/* Select2 dropdowns in modals */
.select2-container--open {
    z-index: 1000003 !important; /* Higher than modal dialog */
}

/* Tooltips in modals */
.tooltip {
    z-index: 1000004 !important; /* Higher than select2 */
}

/* Tooltips specifically in search modal - even higher z-index */
#searchDataModal ~ .tooltip,
.custom-modal ~ .tooltip,
body.modal-open .tooltip,
.custom-modal.show ~ .tooltip {
    z-index: 1100000 !important;
}

/* Force tooltips to always be on top when any modal is visible */
body:has(.custom-modal.show) .tooltip,
body:has(#confirmationModal.show) .tooltip {
    z-index: 1100001 !important;
}

/* Hide all tooltip arrows for cleaner look */
.tooltip .tooltip-arrow {
    display: none !important;
}

/* Remove padding for arrows on all tooltips */
.tooltip.bs-tooltip-top,
.tooltip.bs-tooltip-bottom,
.tooltip.bs-tooltip-start,
.tooltip.bs-tooltip-end {
    padding: 0;
}

/* Date picker in modals */
.flatpickr-calendar {
    z-index: 1000005 !important; /* Higher than tooltips */
}

/* Ensure navbar stays at its z-index but modals are above */
.navbar {
    z-index: 999999 !important; /* Keep navbar z-index as is */
}

/* Custom modal styles if any */
.custom-modal {
    z-index: 1000001 !important;
}

.custom-modal-overlay {
    z-index: 1000000 !important;
}

.custom-modal-dialog {
    z-index: 1000002 !important;
}

/* Confirmation modal specific */
#confirmationModal {
    z-index: 1000010 !important; /* Higher than other modals for confirmation */
}

#confirmationModal .modal-backdrop {
    z-index: 1000009 !important;
}

#confirmationModal .modal-dialog {
    z-index: 1000011 !important;
}

#confirmationModal .modal-content {
    z-index: 1000012 !important;
}

/* Location modal specific */
#locationModal {
    z-index: 1000001 !important;
}

/* Delete location modal */
#deleteLocationModal {
    z-index: 1000001 !important;
}

/* Validation alert modal */
#validationAlertModal {
    z-index: 1000001 !important;
}

/* Info modal */
#infoModal {
    z-index: 1000001 !important;
}

/* Search data modal */
#searchDataModal {
    z-index: 1000001 !important;
}

/* Any future modals will automatically get higher z-index */
.modal:not([id]) {
    z-index: 1000001 !important;
}

/* Force all modal backdrops to proper z-index */
.modal-backdrop.show {
    z-index: 1000000 !important;
}

/* Fix scrollbar issues when modal is open */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
    /* Fix for zoom causing extra space */
    max-height: 100vh !important;
}

/* Override Bootstrap's default modal-open styles */
.modal-open {
    overflow: hidden !important;
}

/* Ensure modal backdrop covers entire screen */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* ========================================
   Time Sync Warning
   ======================================== */
.time-sync-warning {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.time-sync-warning ul {
    font-size: 0.9rem;
}

.time-sync-warning .small-text {
    font-size: 0.85rem;
}

/* ========================================
   Toast Container
   ======================================== */
.toast-container-top {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem;
    z-index: 11;
}

/* ========================================
   Loading Spinner Styles
   ======================================== */
#global-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.loading-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

/* ========================================
   Drag and Drop File Upload
   ======================================== */
.drop-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-area:hover {
    border-color: #007bff;
    background-color: #e7f3ff;
}

.drop-area.highlight {
    border-color: #007bff;
    background-color: #e7f3ff;
    border-width: 3px;
    position: relative;
    z-index: 10;
}

.drop-area::after {
    display: none !important;
}

.drop-area i {
    color: #6c757d;
}

.drop-area.highlight i {
    color: #007bff;
}

.file-item {
    position: relative;
}

.file-remove {
    cursor: pointer;
}

.file-size {
    color: #6c757d;
    font-size: 0.9em;
}

.file-error {
    background-color: #fff3cd;
}

.file-error td {
    color: #856404;
}

/* ========================================
   Flatpickr Datepicker Wrapper
   ======================================== */
.custom-flatpickr-wrapper {
    position: relative !important;
}

.custom-flatpickr-wrapper .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
}

.custom-flatpickr-wrapper .flatpickr-calendar {
    position: absolute !important;
    z-index: 9999 !important;
    background: white !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    left: 0 !important;
}
    /* ===============================================
       GLOBAL SELECT2 Z-INDEX FIX
       Ensures all Select2 dropdowns appear above form elements
       =============================================== */

    /* Base z-index hierarchy:
       - Normal form elements: 1-10
       - Fixed headers/navbars: 1000-1040
       - Select2 dropdowns: 1050-1070
       - Modals: 1055
       - Select2 in modals: 1080-1100
       - Tooltips/Popovers: 1070
    */

    /* ===============================================
       1. REGULAR FORM SELECT2 (Non-Modal)
       =============================================== */

    /* Ensure all Select2 containers have proper z-index */
    .select2-container {
        z-index: 1050 !important;
    }

    /* Select2 dropdown should be above all form elements */
    .select2-dropdown {
        z-index: 9999 !important;
    }

    /* When Select2 is open */
    .select2-container--open .select2-dropdown {
        z-index: 9999 !important;
    }

    /* Specific fix for all Select2 dropdowns with dropdownParent */
    /* Containers should NOT have high z-index to avoid overlapping issues */
    #search-cedent-container,
    #cedent-select-container,
    #broker-select-container,
    #period-select-container,
    #insurer-select-container,
    #source-select-container,
    #currency-select-container,
    #basis-select-container,
    #treaty_basis-select-container,
    #business_type-select-container,
    #koc-select-container,
    #cob-select-container {
        position: relative !important;
        overflow: visible !important;
        /* No z-index on containers - only on dropdowns */
    }

    /* All dropdowns should have the same high z-index */
    #search-cedent-container .select2-dropdown,
    #cedent-select-container .select2-dropdown,
    #broker-select-container .select2-dropdown,
    #period-select-container .select2-dropdown,
    #insurer-select-container .select2-dropdown,
    #source-select-container .select2-dropdown,
    #currency-select-container .select2-dropdown,
    #basis-select-container .select2-dropdown,
    #treaty_basis-select-container .select2-dropdown,
    #business_type-select-container .select2-dropdown,
    #koc-select-container .select2-dropdown,
    #cob-select-container .select2-dropdown {
        z-index: 999999 !important;
        position: absolute !important;
    }

    #search-cedent-container .select2-container--open .select2-dropdown,
    #cedent-select-container .select2-container--open .select2-dropdown,
    #broker-select-container .select2-container--open .select2-dropdown,
    #period-select-container .select2-container--open .select2-dropdown,
    #insurer-select-container .select2-container--open .select2-dropdown,
    #source-select-container .select2-container--open .select2-dropdown,
    #currency-select-container .select2-container--open .select2-dropdown,
    #basis-select-container .select2-container--open .select2-dropdown,
    #treaty_basis-select-container .select2-container--open .select2-dropdown,
    #business_type-select-container .select2-container--open .select2-dropdown,
    #koc-select-container .select2-container--open .select2-dropdown,
    #cob-select-container .select2-container--open .select2-dropdown {
        z-index: 999999 !important;
        position: absolute !important;
    }

    /* Bootstrap 5 theme specific */
    .select2-container--bootstrap-5 .select2-dropdown {
        z-index: 9999 !important;
    }

    .select2-container--bootstrap-5.select2-container--open .select2-dropdown {
        z-index: 9999 !important;
    }

    /* Default theme specific */
    .select2-container--default.select2-container--open .select2-dropdown {
        z-index: 9999 !important;
    }

    /* ===============================================
       2. SELECT2 IN MODALS
       =============================================== */

    /* Bootstrap modal has z-index 1055, so Select2 in modal must be higher */
    .modal .select2-container {
        z-index: 1056 !important;
    }

    .modal .select2-dropdown {
        z-index: 1080 !important;
    }

    .modal .select2-container--open .select2-dropdown {
        z-index: 1080 !important;
    }

    /* Specific modal IDs for facultative forms */
    #searchDataModal .select2-container,
    #locationModal .select2-container {
        z-index: 1056 !important;
    }

    #searchDataModal .select2-dropdown,
    #locationModal .select2-dropdown {
        z-index: 1080 !important;
    }

    #searchDataModal .select2-container--open .select2-dropdown,
    #locationModal .select2-container--open .select2-dropdown {
        z-index: 1080 !important;
    }

    /* ===============================================
       3. SELECT2 IN TABLES (Property Engineering)
       =============================================== */

    /* Interest Insured table Select2 */
    #interest-insured-table .select2-container {
        z-index: 1051 !important;
    }

    #interest-insured-table .select2-dropdown {
        z-index: 1052 !important;
    }

    #interest-insured-table .select2-container--open .select2-dropdown {
        z-index: 1053 !important;
    }

    /* Extended Coverage table Select2 */
    #location-extended-covers-table .select2-container {
        z-index: 1051 !important;
    }

    #location-extended-covers-table .select2-dropdown {
        z-index: 1052 !important;
    }

    #location-extended-covers-table .select2-container--open .select2-dropdown {
        z-index: 1053 !important;
    }

    /* ===============================================
       4. SELECT2 IN MODAL TABLES
       =============================================== */

    /* When tables are inside modals */
    .modal #interest-insured-table .select2-container,
    .modal #location-extended-covers-table .select2-container {
        z-index: 1057 !important;
    }

    .modal #interest-insured-table .select2-dropdown,
    .modal #location-extended-covers-table .select2-dropdown {
        z-index: 1081 !important;
    }

    .modal #interest-insured-table .select2-container--open .select2-dropdown,
    .modal #location-extended-covers-table .select2-container--open .select2-dropdown {
        z-index: 1081 !important;
    }

    /* ===============================================
       5. SPECIAL CASES
       =============================================== */

    /* Google Maps autocomplete (if used with Select2) */
    .pac-container {
        z-index: 10000 !important;
    }

    /* When modal is open, ensure background Select2s are below modal backdrop */
    body.modal-open .select2-container {
        z-index: 1 !important;
    }

    body.modal-open .select2-dropdown {
        z-index: 1 !important;
    }

    /* But keep modal's Select2 on top */
    body.modal-open .modal .select2-container {
        z-index: 1056 !important;
    }

    body.modal-open .modal .select2-dropdown {
        z-index: 1080 !important;
    }

    body.modal-open .modal .select2-container--open .select2-dropdown {
        z-index: 1080 !important;
    }

    /* ===============================================
       6. OVERFLOW FIXES
       =============================================== */

    /* Ensure parent containers don't clip dropdowns */
    .tab-content,
    .tab-pane,
    .card-body,
    .modal-body,
    .main-container,
    .content-container,
    .form-container,
    #general-data,
    #insured-data {
        overflow: visible !important;
    }

    /* Other container settings now handled by the group selector above */

    /* Ensure all parent divs allow overflow */
    .row,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-12 {
        overflow: visible !important;
    }

    /* Table cells should allow overflow for Select2 */
    table td {
        position: relative !important;
        overflow: visible !important;
    }

    /* ===============================================
       7. SELECT2 SEARCH BOX IN DROPDOWN
       =============================================== */

    /* Ensure search box inside dropdown is accessible */
    .select2-search--dropdown {
        z-index: inherit !important;
    }

    .select2-search--dropdown .select2-search__field {
        z-index: inherit !important;
    }

    /* ===============================================
       8. MULTIPLE SELECT2 (if used)
       =============================================== */

    .select2-container--default .select2-selection--multiple {
        min-height: 38px !important;
    }

    .select2-container--bootstrap-5 .select2-selection--multiple {
        min-height: 38px !important;
    }

    /* ===============================================
       9. FIXES FOR SPECIFIC BROWSERS
       =============================================== */

    /* Safari specific fix */
    @media not all and (min-resolution:.001dpcm) {
        @supports (-webkit-appearance:none) {
            .select2-dropdown {
                z-index: 1052 !important;
            }

            .modal .select2-dropdown {
                z-index: 1080 !important;
            }
        }
    }

    /* Firefox specific fix */
    @-moz-document url-prefix() {
        .select2-dropdown {
            z-index: 1052 !important;
        }

        .modal .select2-dropdown {
            z-index: 1080 !important;
        }
    }

    /* ===============================================
       10. DROPDOWNPARENT SPECIFIC FIXES
       =============================================== */

    /* When using dropdownParent, ensure dropdown is above everything */
    [id$="-select-container"] .select2-dropdown {
        z-index: 99999 !important;
    }

    [id$="-select-container"] .select2-container--open .select2-dropdown {
        z-index: 99999 !important;
    }

    /* Ensure Select2 container within parent has proper stacking */
    [id$="-select-container"] .select2-container {
        z-index: auto !important;
    }

    /* ===============================================
       11. RESPONSIVE FIXES
       =============================================== */

    @media (max-width: 768px) {
        /* On mobile, ensure Select2 dropdowns are even higher */
        .select2-dropdown {
            z-index: 1054 !important;
        }

        .modal .select2-dropdown {
            z-index: 1082 !important;
        }
    }
