/* ==========================================================================
   Admin Global Select2 Stylesheet
   Standardized based on the Lead State Dropdown Reference Design
   ========================================================================== */

/* ── 0. Global Page Overflow Containment ── */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ── 1. General Container ── */
.select2.select2-container {
    width: 100% !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

/* The open floating dropdown container appended to body must never stretch page width and stay on top */
.select2-container--open {
    max-width: 100vw !important;
    box-sizing: border-box !important;
    z-index: 100050 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ── 2. Standard Form Dropdowns (Matches .form-control / .form-select) ── */
.select2-container--default .select2-selection--single {
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0 0.85rem !important;
    font-size: 0.8125rem !important;
    color: var(--secondary, #1e293b) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    position: relative !important;
    cursor: pointer !important;
}

/* Hover state */
.select2-container--default .select2-selection--single:hover {
    border-color: rgba(var(--primary-rgb, 249, 115, 22), 0.35) !important;
    background: #ffffff !important;
}

/* Focus / Open state */
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary, #f97316) !important;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 249, 115, 22), 0.08), 0 2px 8px rgba(var(--primary-rgb, 249, 115, 22), 0.06) !important;
    background: #ffffff !important;
}

/* Rendered Text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--secondary, #1e293b) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    line-height: 43px !important;
    padding-left: 0 !important;
    padding-right: 1.75rem !important;
    width: 100% !important;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* ── 3. Dropdown Chevron Arrow (Exact match to .form-select) ── */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    top: 0 !important;
    right: 0.75rem !important;
    bottom: 0 !important;
    width: 1.25rem !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    border: none !important;
}

/* Modern SVG Chevron */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    border: none !important;
    border-style: none !important;
    border-width: 0 !important;
    border-color: transparent !important;
    width: 1rem !important;
    height: 1rem !important;
    display: block !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 1rem !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Rotate arrow when open */
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    transform: rotate(180deg) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f97316' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
}

/* ── 4. Clear (×) Close Icon (Centered in circular badge) ── */
.select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    right: 2rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 3 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* ── 5. Compact Select2 Sizing (For Filters, Toolbars & Table Cells) ── */
.select2-container--sm .select2-selection--single,
.filter-select-sm+.select2-container .select2-selection--single,
.filter-select-md+.select2-container .select2-selection--single,
.dx-select+.select2-container .select2-selection--single,
.lead-select-sm+.select2-container .select2-selection--single,
.select-sm+.select2-container .select2-selection--single,
.crm-ops-select+.select2-container .select2-selection--single {
    min-height: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    padding: 0 0.55rem !important;
    font-size: 0.775rem !important;
}

.select2-container--sm .select2-selection--single .select2-selection__rendered,
.filter-select-sm+.select2-container .select2-selection--single .select2-selection__rendered,
.filter-select-md+.select2-container .select2-selection--single .select2-selection__rendered,
.dx-select+.select2-container .select2-selection--single .select2-selection__rendered,
.lead-select-sm+.select2-container .select2-selection--single .select2-selection__rendered,
.select-sm+.select2-container .select2-selection--single .select2-selection__rendered,
.crm-ops-select+.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
    font-size: 0.775rem !important;
    padding-left: 0 !important;
    padding-right: 1.35rem !important;
}

/* Dedicated padding & arrow margin for lead status select */
.lead-status-select+.select2-container .select2-selection--single {
    padding: 0 0.65rem !important;
    border-radius: 9px !important;
}

.lead-status-select+.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
    font-size: 0.78rem !important;
    padding-left: 0 !important;
    padding-right: 1.85rem !important;
    /* Proper margin so text never collides with right arrow */
}

.select2-container--sm .select2-selection--single .select2-selection__arrow,
.filter-select-sm+.select2-container .select2-selection--single .select2-selection__arrow,
.filter-select-md+.select2-container .select2-selection--single .select2-selection__arrow,
.dx-select+.select2-container .select2-selection--single .select2-selection__arrow,
.lead-select-sm+.select2-container .select2-selection--single .select2-selection__arrow,
.select-sm+.select2-container .select2-selection--single .select2-selection__arrow,
.crm-ops-select+.select2-container .select2-selection--single .select2-selection__arrow {
    right: 0.4rem !important;
}

/* Right arrow with proper margin from edge */
.lead-status-select+.select2-container .select2-selection--single .select2-selection__arrow {
    right: 0.65rem !important;
    width: 1rem !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--sm .select2-selection--single .select2-selection__arrow b,
.filter-select-sm+.select2-container .select2-selection--single .select2-selection__arrow b,
.filter-select-md+.select2-container .select2-selection--single .select2-selection__arrow b,
.dx-select+.select2-container .select2-selection--single .select2-selection__arrow b,
.lead-select-sm+.select2-container .select2-selection--single .select2-selection__arrow b,
.select-sm+.select2-container .select2-selection--single .select2-selection__arrow b,
.crm-ops-select+.select2-container .select2-selection--single .select2-selection__arrow b {
    width: 0.8rem !important;
    height: 0.8rem !important;
    background-size: 0.8rem !important;
}

.lead-status-select+.select2-container .select2-selection--single .select2-selection__arrow b {
    width: 0.85rem !important;
    height: 0.85rem !important;
    background-size: 0.85rem !important;
}

/* Hover color for status select right arrow */
.lead-status-select+.select2-container .select2-selection--single:hover .select2-selection__arrow b,
.crm-ops-select[name="lead_status_id"]+.select2-container .select2-selection--single:hover .select2-selection__arrow b,
select[name="lead_status_id"]+.select2-container .select2-selection--single:hover .select2-selection__arrow b {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f97316' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
}

/* Proper arrow margin and padding for Status Control in Unified Lead Controls */
.crm-ops-select[name="lead_status_id"]+.select2-container .select2-selection--single,
select[name="lead_status_id"]+.select2-container .select2-selection--single {
    padding: 0 0.65rem !important;
}

.crm-ops-select[name="lead_status_id"]+.select2-container .select2-selection--single .select2-selection__rendered,
select[name="lead_status_id"]+.select2-container .select2-selection--single .select2-selection__rendered {
    padding-right: 1.85rem !important;
}

.crm-ops-select[name="lead_status_id"]+.select2-container .select2-selection--single .select2-selection__arrow,
select[name="lead_status_id"]+.select2-container .select2-selection--single .select2-selection__arrow {
    right: 0.65rem !important;
    width: 1rem !important;
}

/* Never show clear icon on lead-status dropdown so it doesn't break arrow margin on hover */
.lead-status-select+.select2-container .select2-selection__clear,
select[name="lead_status_id"]+.select2-container .select2-selection__clear {
    display: none !important;
}

/* Explicit widths for filter & table dropdowns - generous room for full text */
.filter-select-sm+.select2-container {
    width: 155px !important;
}

.filter-select-md+.select2-container {
    width: 190px !important;
}

.lead-select-sm+.select2-container {
    width: 240px !important;
    min-width: 240px !important;
}

.lead-status-select+.select2-container {
    width: 168px !important;
    min-width: 168px !important;
}

.select-sm+.select2-container {
    width: 180px !important;
    min-width: 180px !important;
}

.wc-filter-bar .select2-container {
    min-width: 180px !important;
    width: auto !important;
    max-width: 260px !important;
}

.crm-ops-select+.select2-container {
    width: 100% !important;
    min-width: 100% !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
}

#input-status+.select2-container,
.lead-edit-mode-block .select2-container,
#emailTemplateSelect+.select2-container {
    width: 100% !important;
    min-width: 100% !important;
    display: block !important;
}

/* ── 6. Floating Dropdown Menu (Full-Width and Column Aligned) ── */
.select2-dropdown {
    border: 1.5px solid rgba(var(--primary-rgb, 249, 115, 22), 0.25) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.14), 0 8px 16px -2px rgba(0, 0, 0, 0.06) !important;
    background: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden !important;
    z-index: 100050 !important;
    box-sizing: border-box !important;
    display: block !important;
}

.select2-dropdown--below {
    margin-top: 4px !important;
}

.select2-dropdown--above {
    margin-top: -4px !important;
}

/* ── 7. Search Box Inside Dropdown ── */
.select2-search--dropdown {
    padding: 0.45rem 0.65rem 0.35rem !important;
    position: relative !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.select2-search--dropdown::after {
    content: '' !important;
    position: absolute !important;
    left: 1.25rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 13px !important;
    height: 13px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: 13px !important;
    pointer-events: none !important;
}

.select2-search--dropdown .select2-search__field {
    width: 100% !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0.45rem 0.65rem 0.45rem 2rem !important;
    font-size: 0.8rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #1e293b !important;
    outline: none !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary, #f97316) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 249, 115, 22), 0.15) !important;
}

/* ── 8. Results List & Option Items (Compact Space & Full Text Visible) ── */
.select2-results__options {
    max-height: 250px !important;
    padding: 0.25rem !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(var(--primary-rgb, 249, 115, 22), 0.2) transparent !important;
}

.select2-results__options::-webkit-scrollbar {
    width: 5px !important;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb, 249, 115, 22), 0.2) !important;
    border-radius: 6px !important;
}

.select2-results__option {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    margin: 1px 0 !important;
    color: #334155 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    cursor: pointer !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.35 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Hover / Highlighted */
.select2-container--default .select2-results__option--highlighted {
    background: rgba(var(--primary-rgb, 249, 115, 22), 0.08) !important;
    color: var(--primary, #f97316) !important;
    font-weight: 500 !important;
}

/* Currently Selected */
.select2-container--default .select2-results__option--selected {
    background: linear-gradient(135deg, var(--primary, #f97316), var(--primary-dark, #ea580c)) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.select2-container--default .select2-results__option--selected::after {
    content: '✓' !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: 0.25rem !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}


.select2-results__message {
    padding: 0.65rem !important;
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    text-align: center !important;
}

/* ── 9. Multi-Select Styling ── */
.select2-container--default .select2-selection--multiple {
    min-height: 44px !important;
    max-height: 80px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0.3rem 0.65rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.35rem !important;
    box-sizing: border-box !important;
}

.select2-container--default .select2-selection--multiple::-webkit-scrollbar {
    width: 4px !important;
}

.select2-container--default .select2-selection--multiple::-webkit-scrollbar-track {
    background: transparent !important;
}

.select2-container--default .select2-selection--multiple::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}

.select2-container--default .select2-selection--multiple::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--primary, #f97316) !important;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 249, 115, 22), 0.08) !important;
    background: white !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.35rem !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Tag / Chip layout: Name first on left, 'x' remove button on right */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    max-width: 100% !important;
    position: relative !important;
    padding: 0 6px 0 10px !important;
    background: rgba(var(--primary-rgb, 249, 115, 22), 0.1) !important;
    border: 1px solid rgba(var(--primary-rgb, 249, 115, 22), 0.25) !important;
    color: var(--primary, #f97316) !important;
    border-radius: 8px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    margin: 2px 4px 2px 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    cursor: default !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    order: 1 !important;
    float: none !important;
    padding: 0 4px 0 0 !important;
    line-height: 1 !important;
    cursor: default !important;
    white-space: nowrap !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: static !important;
    /* overrides select2.min.css absolute left:0 */
    float: none !important;
    order: 2 !important;
    /* Move 'x' to the right side of label */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    flex: 0 0 18px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(var(--primary-rgb, 249, 115, 22), 0.15) !important;
    color: var(--primary, #f97316) !important;
    padding: 0 !important;
    margin: 0 0 0 6px !important;
    cursor: pointer !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    z-index: 2 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-top: -1px !important;
    /* Optical vertical centering for &times; */
    pointer-events: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

/* Inline search field inside selection box */
.select2-container--default .select2-selection--multiple .select2-search--inline {
    flex: 1 1 120px !important;
    min-width: 120px !important;
    margin: 2px 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    width: 100% !important;
    min-width: 120px !important;
    height: 28px !important;
    line-height: 28px !important;
    font-size: 0.8125rem !important;
    font-family: inherit !important;
    color: var(--secondary, #1e293b) !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 4px !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Multi-select dropdown: Ensure full visibility and opacity for dropdown & options */
.select2-dropdown--multiple {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.select2-dropdown--multiple .select2-results__option {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Multi-select dropdown: Search field styling */
.select2-dropdown--multiple .select2-search--dropdown {
    padding: 0.45rem 0.65rem 0.35rem !important;
    position: relative !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: block !important;
}

.select2-dropdown--multiple .select2-search--dropdown .select2-search__field {
    width: 100% !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0.45rem 0.65rem 0.45rem 2.1rem !important;
    font-size: 0.8125rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #1e293b !important;
    outline: none !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.select2-dropdown--multiple .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary, #f97316) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 249, 115, 22), 0.12) !important;
}

/* ── 10. Disabled State ── */
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
    opacity: 0.75 !important;
}

/* ── 11. Lead Status Circle Formatting in Select2 ── */
.s2-status-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
    line-height: 1;
    max-width: 100%;
}

.s2-status-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.s2-status-circle-chip {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    margin-right: 4px;
    display: inline-block;
}

.s2-status-text {
    font-weight: 600;
    font-size: 0.775rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-results__option .s2-status-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 auto;
    min-width: 0;
}

.select2-results__option .s2-status-circle {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.select2-results__option .s2-status-text {
    font-weight: 500;
    font-size: 0.8125rem;
}

/* ── Multi-select Dropdown Action Bar (Select All Cities) ── */
.select2-city-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    user-select: none;
}

.select2-city-all-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    margin: 0;
    color: var(--primary, #f97316);
    font-weight: 600;
}

.select2-city-dropdown-cb {
    accent-color: var(--primary, #f97316);
    cursor: pointer;
    width: 14px;
    height: 14px;
    margin: 0;
}

.select2-city-count-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 7px;
    border-radius: 10px;
}

/* ── 12. All Selected Summary Mode (Single-line Compact Badge) ── */
.select2-container.is-all-selected-mode .select2-selection--multiple {
    max-height: 44px !important;
    overflow: hidden !important;
}

.select2-container.is-all-selected-mode .select2-selection__choice:not(.select2-selection__choice--all-summary) {
    display: none !important;
}

.select2-container.is-all-selected-mode .select2-search--inline {
    display: none !important;
}

.select2-selection__choice--all-summary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 8px 0 10px !important;
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 249, 115, 22), 0.14), rgba(var(--primary-rgb, 249, 115, 22), 0.06)) !important;
    border: 1.5px solid rgba(var(--primary-rgb, 249, 115, 22), 0.5) !important;
    color: var(--primary, #f97316) !important;
    border-radius: 8px !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    margin: 2px 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    cursor: default !important;
    user-select: none !important;
}

.select2-selection__choice--all-summary .all-summary-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.select2-selection__choice--all-summary .select2-all-summary-remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(var(--primary-rgb, 249, 115, 22), 0.18) !important;
    color: var(--primary, #f97316) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    padding: 0 !important;
    margin: 0 !important;
}

.select2-selection__choice--all-summary .select2-all-summary-remove:hover {
    background: var(--primary, #f97316) !important;
    color: #ffffff !important;
}