﻿.dark-style .bootstrap-select .dropdown-menu li a {
    color: #e0e0e0;
}
/* Light Mode Styles */
.bootstrap-select .dropdown-menu li a:hover {
    background-color: #f5f8ff;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border-left: 3px solid #5897fb;
}

.bootstrap-select .dropdown-menu li.selected a {
    background-color: #e0ebff;
    border-left: 3px solid #5897fb;
    color: #1d3557;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bootstrap-select .dropdown-menu li.active a {
    background-color: #e0ebff;
    border-left: 4px solid #5897fb;
    color: #1d3557;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Styles */
.dark-style .bootstrap-select .dropdown-menu li a:hover {
    background-color: #303c56;
    border-left: 3px solid #5897fb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.dark-style .bootstrap-select .dropdown-menu li.selected a {
    background-color: #394b66;
    border-left: 4px solid #5897fb;
    color: #ffffff;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dark-style .bootstrap-select .dropdown-menu li.active a {
    background-color: #394b66;
    border-left: 4px solid #5897fb;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Additional styling for better integration */
.bootstrap-select .dropdown-menu {
    /*padding: 3px 0;*/
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    font-size: 0.92em;
    z-index: 9999 !important;
}

.dark-style .bootstrap-select .dropdown-menu {
    background-color: #273045;
    border-color: #343f56;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.bootstrap-select .dropdown-menu li a {
    padding: 6px 10px;
    transition: all 0.2s ease;
    line-height: 1.3;
    margin: 1px 0;
}

.bootstrap-select .filter-option {
    display: flex;
    align-items: center;
}

.bootstrap-select .filter-option-inner-inner {
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bootstrap-select .dropdown-toggle::after {
    margin-left: 0.3em;
    font-size: 0.85em;
}

/* Style for the button itself */
.bootstrap-select .btn {
    border-radius: 4px;
    border: 1px solid #ced4da;
    background-color: #ffffff;
    padding: 4px 8px;
    line-height: 1.2;
    min-height: 28px;
    align-items: center;
}

.dark-style .bootstrap-select .btn {
    background-color: #273045;
    border-color: #343f56;
    color: #e0e0e0;
    min-height: 30px;
}

.bootstrap-select .btn:focus,
.bootstrap-select .btn:active {
    border-color: #5897fb;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(88, 151, 251, 0.25);
}

.select2-result__option:hover {
    background-color: #f5f8ff;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border-left: 3px solid #5897fb;
}

.dark-style .select2-result__option:hover {
    background-color: #303c56;
    border-left: 3px solid #5897fb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.select2-results__option--highlighted {
    background-color: #e0ebff;
    border-left: 4px solid #5897fb;
    color: #1d3557;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-style .select2-results__option--highlighted {
    background-color: #394b66;
    border-left: 4px solid #5897fb;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.bootstrap-select.bs-container .dropdown-menu {
    z-index: 1080;
}

.btn.dropdown-toggle.bs-placeholder.border-danger {
    border-color: red !important;
}


/* =========================
   dxTagBox – SelectBox style
   ========================= */

.dx-tagbox {
    display: block;
    width: 100%;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.4;
}

    /* Input */
    .dx-tagbox .dx-texteditor-input {
        padding: 0.469rem 0.735rem;
        font-size: 0.9375rem;
        font-weight: 400;
        line-height: 1.4;
        color: #677788;
        background-clip: padding-box;
        border: none;
        appearance: none;
    }

    /* Container */
    .dx-tagbox .dx-texteditor-container {
        border: 1px solid #d4d8dd;
        border-radius: 0.25rem;
        min-height: calc(1.4em + 0.938rem + 2px);
        background-color: #fff;
    }

    /* Focus */
    .dx-tagbox.dx-state-focused .dx-texteditor-container {
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    /* Hover */
    .dx-tagbox.dx-state-hover .dx-texteditor-container {
        border-color: #d4d8dd;
    }

    /* Disabled */
    .dx-tagbox.dx-state-disabled .dx-texteditor-container {
        background-color: #e9ecef;
        opacity: 1;
        border-color: #d4d8dd;
    }

    /* Dropdown button */
    .dx-tagbox .dx-dropdowneditor-button {
        border-left: none;
        background-color: transparent;
    }

    /* =========================
   Validation
   ========================= */

    /* Invalid */
    .dx-tagbox.dx-invalid .dx-texteditor-container {
        border-color: #dc3545;
    }

    .dx-tagbox.dx-invalid.dx-state-focused .dx-texteditor-container {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
    }

    /* Valid */
    .dx-tagbox.dx-valid .dx-texteditor-container {
        border-color: #198754;
    }

    .dx-tagbox.dx-valid.dx-state-focused .dx-texteditor-container {
        border-color: #198754;
        box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
    }

    /* =========================
   Selected Tags (chips)
   ========================= */

    .dx-tagbox .dx-tag {
        background-color: #e0ebff;
        color: #1d3557;
        font-weight: 500;
        border-radius: 0.2rem;
    }

    .dx-tagbox .dx-tag-remove-button {
        color: #5897fb;
    }

/* =========================
   Dropdown list items
   ========================= */

.dx-list-item.dx-state-hover,
.dx-list-item.dx-list-item-selected,
.dx-list-item.dx-state-focused {
    background-color: #e0ebff;
    border-left: 4px solid #5897fb;
    color: #1d3557;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



.dx-tagbox .dx-tag-container {
    flex-wrap: nowrap;
    overflow-x: auto;
}

.dx-tagbox,
.dx-tagbox .dx-texteditor-input,
.dx-tagbox .dx-tag {
    font-size: 0.875rem; /* same as Bootstrap form-control */
    line-height: 1.4;
}

    /* Reduce overall height */
    .dx-tagbox .dx-texteditor-container {
        min-height: calc(1.4em + 0.75rem + 2px);
        padding: 2px 6px;
    }

    /* Tag container alignment */
    .dx-tagbox .dx-tag-container {
        align-items: center;
        gap: 4px;
    }

    /* Individual tag (chip) */
    .dx-tagbox .dx-tag {
        padding: 2px 6px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        background-color: #e6efff;
        color: #1f3a8a;
        border-radius: 0.375rem;
        font-weight: 500;
    }

    /* Tag text */
    .dx-tagbox .dx-tag-content {
        line-height: 1;
        font-size: 14px;
        padding-right: 4px;
    }

    /* Remove (X) button */
    .dx-tagbox .dx-tag-remove-button {
        width: 14px;
        height: 14px;
        min-width: 14px;
        font-size: 12px;
        line-height: 1;
        opacity: 0.7;
    }

        .dx-tagbox .dx-tag-remove-button:hover {
            opacity: 1;
        }

    /* Keep single-line like SelectBox */
    .dx-tagbox .dx-tag-container {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .dx-tagbox .dx-texteditor-container {
        min-height: calc(1.4em + 0.75rem + 2px);
        padding: 2px 6px;
        display: flex;
        align-items: center;
    }

    .dx-tagbox .dx-texteditor-input {
        height: 28px;
        min-height: 100%;
        padding: 0 4px; /* no vertical padding */
        font-size: 0.875rem; /* Bootstrap-aligned */
        line-height: 1.4;
        color: #677788;
        display: flex;
        align-items: center; /* vertical centering */
        box-sizing: border-box;
    }

    .dx-tagbox.dx-editor-filled .dx-texteditor-input, .dx-tagbox.dx-editor-outlined .dx-texteditor-input, .dx-tagbox.dx-editor-underlined .dx-texteditor-input {
        height: 28px;
    }
/* =========================
   dxSelectBox
   ========================= */
.dx-selectbox {
    display: block;
    width: 100%;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.4;
}

    .dx-selectbox .dx-texteditor-input {
        padding: 0.469rem 0.735rem;
        font-size: 0.9375rem;
        font-weight: 400;
        line-height: 1.4;
        color: #677788;
        background-clip: padding-box;
        border: 1px solid #d4d8dd;
        appearance: none;
        -moz-appearance: none;
        -webkit-appearance: none;
        border-radius: 0.25rem;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        height: calc(1.4em + 0.938rem + 2px);
    }

    .dx-selectbox.dx-texteditor {
        border: none;
        background: transparent;
    }

    .dx-selectbox .dx-texteditor-container {
        border: 1px solid #d4d8dd;
        border-radius: 0.25rem;
    }

    .dx-selectbox.dx-state-focused .dx-texteditor-container {
        color: #677788;
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    .dx-selectbox.dx-state-hover .dx-texteditor-container {
        border-color: #d4d8dd;
    }

    .dx-selectbox.dx-state-disabled .dx-texteditor-container {
        background-color: #e9ecef;
        opacity: 1;
        border-color: #d4d8dd;
    }

    .dx-selectbox .dx-dropdowneditor-button {
        border-left: none;
        background-color: transparent;
    }

    .dx-selectbox.dx-invalid .dx-texteditor-container {
        border-color: #dc3545;
    }

    .dx-selectbox.dx-invalid.dx-state-focused .dx-texteditor-container {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
    }

    .dx-selectbox.dx-valid .dx-texteditor-container {
        border-color: #198754;
    }

    .dx-selectbox.dx-valid.dx-state-focused .dx-texteditor-container {
        border-color: #198754;
        box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
    }

.dx-list-item.dx-state-hover {
    background-color: #e0ebff;
    border-left: 4px solid #5897fb;
    color: #1d3557;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dx-list-item.dx-list-item-selected {
    background-color: #e0ebff;
    border-left: 4px solid #5897fb;
    color: #1d3557;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dx-list-item.dx-state-focused {
    background-color: #e0ebff;
    border-left: 4px solid #5897fb;
    color: #1d3557;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.form-control-sm + .select2-container .select2-selection--single {
    height: 28px !important;
    font-size: 0.875rem !important;
    border-radius: 0.25rem;
}

.form-control-sm + .select2-container .select2-selection__rendered {
    line-height: 28px !important;
    padding-left: 8px !important;
    padding-right: 24px !important;
}

.form-control-sm + .select2-container .select2-selection__arrow {
    height: 22px !important;
    right: 6px;
}

.select2-dropdown {
    font-size: 0.875rem !important;
}



.form-control-sm + .select2-container .select2-results__option {
    font-size: 0.875rem !important;
    padding: 6px 12px !important;
}


.form-control-sm + .bootstrap-select > .dropdown-toggle {
    font-size: 0.875rem !important;
    padding: 0.25rem 0.5rem !important;
    line-height: 1.5 !important;
    border-radius: 0.25rem !important;
}

.form-control-sm + .bootstrap-select .filter-option {
    display: flex !important;
    align-items: center !important;
}

.form-control-sm + .bootstrap-select .dropdown-toggle::after {
    margin-top: 0 !important;
}


.actions-btn{
    font-size:12px !important
}