
    /* Light mode styling */
    .select2-container--default .select2-selection--single {
        height: 42px !important;
        border: 1px solid #d1d5db !important;
        border-radius: 0.375rem !important;
        background-color: #ffffff !important;
        padding: 0 12px !important;
        display: flex !important;
        align-items: center !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #111827 !important;
        padding: 0 !important;
        line-height: normal !important;
    }

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

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 40px !important;
        right: 8px !important;
    }

    .select2-container--default.select2-container--focus .select2-selection--single {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5) !important;
    }

    .select2-dropdown {
        border: 1px solid #d1d5db !important;
        border-radius: 0.375rem !important;
        background-color: #ffffff !important;
    }

    .select2-container--default .select2-results__option {
        color: #111827 !important;
        background-color: #ffffff !important;
        padding: 8px 12px !important;
    }

    .select2-container--default .select2-results__option--highlighted[aria-selected] {
        background-color: #3b82f6 !important;
        color: #ffffff !important;
    }

    .select2-container--default .select2-results__option[aria-selected="true"] {
        background-color: #eff6ff !important;
        color: #1e40af !important;
    }

    .select2-search--dropdown .select2-search__field {
        border: 1px solid #d1d5db !important;
        border-radius: 0.375rem !important;
        background-color: #ffffff !important;
        color: #111827 !important;
        padding: 8px 12px !important;
    }

    /* Dark mode styling */
    .dark .select2-container--default .select2-selection--single {
        border-color: #4b5563 !important;
        background-color: #374151 !important;
    }

    .dark .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #f9fafb !important;
    }

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

    .dark .select2-container--default.select2-container--focus .select2-selection--single {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5) !important;
    }

    .dark .select2-dropdown {
        border-color: #4b5563 !important;
        background-color: #374151 !important;
    }

    .dark .select2-container--default .select2-results__option {
        color: #f9fafb !important;
        background-color: #374151 !important;
    }

    .dark .select2-container--default .select2-results__option--highlighted[aria-selected] {
        background-color: #3b82f6 !important;
        color: #ffffff !important;
    }

    .dark .select2-container--default .select2-results__option[aria-selected="true"] {
        background-color: #1f2937 !important;
        color: #60a5fa !important;
    }

    .dark .select2-search--dropdown .select2-search__field {
        border-color: #4b5563 !important;
        background-color: #1f2937 !important;
        color: #f9fafb !important;
    }

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

    /* Arrow styling for both modes */
    .select2-container--default .select2-selection--single .select2-selection__arrow b {
        border-color: #6b7280 transparent transparent transparent !important;
        border-style: solid !important;
        border-width: 5px 4px 0 4px !important;
        height: 0 !important;
        left: 50% !important;
        margin-left: -4px !important;
        margin-top: -2px !important;
        position: absolute !important;
        top: 50% !important;
        width: 0 !important;
    }

    .dark .select2-container--default .select2-selection--single .select2-selection__arrow b {
        border-color: #9ca3af transparent transparent transparent !important;
    }

    /* Open state arrow */
    .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
        border-color: transparent transparent #6b7280 transparent !important;
        border-width: 0 4px 5px 4px !important;
    }

    .dark .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
        border-color: transparent transparent #9ca3af transparent !important;
    }

    /* Multi-select styling - Light Mode */
    .select2-container--default .select2-selection--multiple {
        border: 1px solid #d1d5db !important;
        border-radius: 0.375rem !important;
        background-color: #ffffff !important;
        min-height: 42px !important;
        padding: 4px 8px !important;
    }

    .select2-container--default.select2-container--focus .select2-selection--multiple {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5) !important;
    }

    .select2-container--default .select2-selection--multiple .select2-selection__choice {
        background-color: #3b82f6 !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 9999px !important;
        padding: 6px 8px 6px 12px !important;
        margin: 2px !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        max-width: none !important;
        width: auto !important;
        float: left !important;
        height: auto !important;
        min-height: 28px !important;
    }

    .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
        color: #ffffff !important;
        font-weight: normal !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 16px !important;
        height: 16px !important;
        line-height: 1 !important;
        background-color: rgba(255, 255, 255, 0.2) !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
        position: relative !important;
        top: 0 !important;
        vertical-align: middle !important;
    }

    .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
        background-color: rgba(255, 255, 255, 0.3) !important;
        transform: scale(1.1) !important;
        transition: all 0.2s ease !important;
    }

    /* Multi-select styling - Dark Mode */
    .dark .select2-container--default .select2-selection--multiple {
        border-color: #4b5563 !important;
        background-color: #374151 !important;
    }

    .dark .select2-container--default.select2-container--focus .select2-selection--multiple {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5) !important;
    }

    .dark .select2-container--default .select2-selection--multiple .select2-selection__choice {
        background-color: #3b82f6 !important;
        color: #ffffff !important;
    }

    .dark .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
        color: #ffffff !important;
        border-right-color: rgba(255, 255, 255, 0.3) !important;
    }

    .dark .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
        background-color: rgba(255, 255, 255, 0.2) !important;
    }

    /* Search field styling in multi-select */
    .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
        background-color: transparent !important;
        border: none !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: 32px !important;
        outline: none !important;
    }

    .dark .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
        color: #f9fafb !important;
    }

    .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
        color: #6b7280 !important;
    }

    .dark .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
        color: #9ca3af !important;
    }

    /* Ensure proper spacing and alignment */
    .select2-container {
        width: 100% !important;
    }


    /* Pagination styling */
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 0.5rem 0.75rem !important;
        margin-left: 0.25rem !important;
        margin-right: 0.25rem !important;
        border: 1px solid #d1d5db !important;
        border-radius: 0.375rem !important;
        background: white !important;
        color: #374151 !important;
        transition: all 0.15s ease-in-out !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background: #f3f4f6 !important;
        border-color: #9ca3af !important;
        color: #111827 !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
        background: #3b82f6 !important;
        border-color: #3b82f6 !important;
        color: white !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
        background: #f9fafb !important;
        border-color: #e5e7eb !important;
        color: #9ca3af !important;
        cursor: not-allowed !important;
    }

    /* Dark mode pagination styling */
    .dark .dataTables_wrapper .dataTables_length,
    .dark .dataTables_wrapper .dataTables_filter,
    .dark .dataTables_wrapper .dataTables_info,
    .dark .dataTables_wrapper .dataTables_processing,
    .dark .dataTables_wrapper .dataTables_paginate {
        color: #e2e8f0 !important;
    }

    .dark .dataTables_wrapper .dataTables_paginate .paginate_button {
        background: #374151 !important;
        border-color: #4b5563 !important;
        color: #e2e8f0 !important;
    }

    .dark .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background: #4b5563 !important;
        border-color: #6b7280 !important;
        color: #ffffff !important;
    }

    .dark .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    .dark .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
        background: #3b82f6 !important;
        border-color: #3b82f6 !important;
        color: #ffffff !important;
    }

    .dark .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
    .dark .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
        background: #1f2937 !important;
        border-color: #374151 !important;
        color: #6b7280 !important;
    }

    .dark .dataTables_wrapper .dataTables_length select,
    .dark .dataTables_wrapper .dataTables_filter input {
        background-color: #374151 !important;
        color: #e2e8f0 !important;
        border-color: #4b5563 !important;
    }

[x-cloak] { display: none !important; }
