/* تطبيق خط Cairo على كل النظام */

* {
    font-family: 'Cairo', sans-serif !important;
}

body,
html,
input,
textarea,
select,
button,
.form-control,
.btn,
.card,
.modal,
.dropdown-menu,
.nav,
.navbar,
.sidebar,
.table,
th,
td,
h1, h2, h3, h4, h5, h6,
p, span, div, a, label,
.page-title,
.breadcrumb,
.dash-sidebar,
.pc-sidebar,
.navbar-content,
.dash-header,
.page-header,
.card-header,
.card-body,
.modal-title,
.modal-body,
.form-label,
.input-group-text {
    font-family: 'Cairo', sans-serif !important;
}

/* تحسين المظهر العام */
body {
    font-weight: 400;
    letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.btn {
    font-weight: 600;
}

/* تحسين الجداول */
.table {
    font-size: 14px;
}

.table th {
    font-weight: 700;
}

/* تحسين النماذج */
.form-control,
.form-select {
    font-size: 14px;
}

label,
.form-label {
    font-weight: 600;
}

/* تحسين القوائم */
.dropdown-item {
    font-weight: 500;
}

/* تحسين البطاقات */
.card-title {
    font-weight: 700;
}

/* ========== Choices.js Dropdown Fixes ========== */

/* Make Choices container full width */
.choices {
    width: 100% !important;
    margin-bottom: 0 !important;
}

/* Inner container */
.choices__inner {
    width: 100% !important;
    min-height: 40px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    overflow: hidden !important;
}

/* Dropdown list - full width and proper display */
.choices__list--dropdown,
.choices__list[aria-expanded] {
    width: 100% !important;
    min-width: 100% !important;
    word-break: break-word !important;
    z-index: 9999 !important;
}

/* Dropdown items - prevent text cutoff */
.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: right !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

/* Selected item text */
.choices__list--single .choices__item {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: right !important;
}

/* Search input */
.choices__input {
    width: 100% !important;
    font-size: 14px !important;
    text-align: right !important;
}

/* Placeholder text */
.choices__placeholder {
    opacity: 0.6 !important;
    text-align: right !important;
}

/* Fix for modals - ensure dropdown appears above */
.modal .choices__list--dropdown {
    z-index: 10060 !important;
}

