/* ══════════════════════════════════════════════════════
   Radzen DropDown — RTL & UX Overrides
   Loaded after Radzen material-base.css
   ══════════════════════════════════════════════════════ */

/* ── Dropdown container ── */
.rz-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    min-height: 38px;
    font-family: myFirstFont, serif;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.rz-dropdown:hover {
    border-color: #86b7fe;
}

.rz-dropdown.rz-state-focused {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* ── Dropdown panel (popup) ── */
.rz-dropdown-panel {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    margin-top: 2px;
    font-family: myFirstFont, serif;
}

/* ── Items list ── */
.rz-dropdown-items-wrapper {
    max-height: 280px;
}

/* ── Individual item ── */
.rz-multiselect-item,
.rz-dropdown-item {
    padding: 8px 14px;
    font-size: 0.875rem;
    line-height: 1.6;
    transition: background-color 0.12s;
    direction: rtl;
}

.rz-dropdown-item:hover,
.rz-multiselect-item:hover {
    background-color: #f0f4ff;
}

.rz-dropdown-item.rz-state-highlight,
.rz-multiselect-item.rz-state-highlight {
    background-color: #e8f0fe;
    color: #1a1a2e;
    font-weight: 500;
}

/* ── Checkbox spacing inside multi-select items ── */
.rz-multiselect-item .rz-chkbox,
.rz-dropdown-item .rz-chkbox {
    margin-left: 10px;
    margin-right: 0;
}

.rz-chkbox-box {
    width: 18px;
    height: 18px;
    border: 2px solid #adb5bd;
    border-radius: 3px;
    transition: all 0.15s;
}

.rz-chkbox-box.rz-state-active {
    background-color: #405189;
    border-color: #405189;
}

/* ── Select All row ── */
.rz-multiselect-header {
    padding: 8px 14px;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    direction: rtl;
}

.rz-multiselect-header .rz-chkbox {
    margin-left: 10px;
    margin-right: 0;
}

.rz-multiselect-header .rz-chkbox-label,
.rz-multiselect-header label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #405189;
    cursor: pointer;
}

/* ── Filter input inside dropdown ── */
.rz-dropdown-filter-container {
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
}

.rz-dropdown-filter {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-family: myFirstFont, serif;
    width: 100%;
    transition: border-color 0.15s;
}

.rz-dropdown-filter:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.12);
    outline: none;
}

/* ── Chips (selected items tags) ── */
.rz-chip {
    background-color: #e8f0fe;
    color: #1a1a2e;
    border: 1px solid #c5d5f0;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.78rem;
    margin: 2px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: rtl;
}

.rz-chip .rz-chip-remove-icon {
    margin-right: 6px;
    margin-left: 0;
    font-size: 0.7rem;
    opacity: 0.6;
    transition: opacity 0.15s;
    cursor: pointer;
}

.rz-chip .rz-chip-remove-icon:hover {
    opacity: 1;
}

/* ── Placeholder text ── */
.rz-dropdown .rz-placeholder {
    color: #999;
    font-size: 0.85rem;
}

/* ── Clear button ── */
.rz-dropdown-clear-icon {
    opacity: 0.5;
    transition: opacity 0.15s;
}

.rz-dropdown-clear-icon:hover {
    opacity: 1;
}

/* ── Selected items summary text ── */
.rz-dropdown-label {
    font-size: 0.875rem;
    direction: rtl;
}

/* ── Disabled state ── */
.rz-dropdown.rz-state-disabled {
    background-color: #e9ecef;
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Dropdown trigger arrow ── */
.rz-dropdown-trigger {
    width: 32px;
}

.rz-dropdown-trigger-icon {
    font-size: 0.75rem;
    color: #6c757d;
}

/* ── Empty message ── */
.rz-dropdown-empty-message {
    padding: 12px 14px;
    color: #999;
    font-size: 0.85rem;
    text-align: center;
}
