.ck-editor__editable,
textarea {
    min-height: 150px;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.c-sidebar-brand .c-sidebar-brand-full:hover {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
}

/* RTL Support - when locale is Arabic (dir="rtl" on html) */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .sidebar,
[dir="rtl"] .c-sidebar {
    right: 0;
    left: auto;
}

[dir="rtl"] .c-wrapper {
    direction: rtl;
}

[dir="rtl"] .c-header-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .c-header .ml-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* RTL: push .c-wrapper (main content) when fixed sidebar is showing - single margin, not .c-body */
@media (min-width: 992px) {
    [dir="rtl"] .c-sidebar.c-sidebar-lg-show:not(.c-sidebar-right).c-sidebar-fixed ~ .c-wrapper,
    [dir="rtl"] .c-sidebar.c-sidebar-show:not(.c-sidebar-right).c-sidebar-fixed ~ .c-wrapper {
        margin-right: 256px;
    }
}

@media (max-width: 991.98px) {
    [dir="rtl"] .c-sidebar.c-sidebar-fixed ~ .c-wrapper {
        margin-right: 0;
    }
}

[dir="rtl"] .c-sidebar-nav-link {
    text-align: right;
}

[dir="rtl"] .c-sidebar-nav-icon {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .c-sidebar-nav-dropdown-toggle::after {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .dropdown-menu-right {
    right: auto !important;
    left: 0 !important;
}

[dir="rtl"] .dropdown-menu-left {
    left: auto !important;
    right: 0 !important;
}

[dir="rtl"] .text-left {
    text-align: right !important;
}

[dir="rtl"] .text-right {
    text-align: left !important;
}

[dir="rtl"] .ml-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .mr-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

[dir="rtl"] .mr-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .ml-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .mfs-3 { margin-left: 0 !important; margin-right: 1rem !important; }
[dir="rtl"] .mfe-auto { margin-right: 0 !important; margin-left: auto !important; }

[dir="rtl"] .form-control,
[dir="rtl"] .form-group label,
[dir="rtl"] .card-header,
[dir="rtl"] .table {
    text-align: right;
}

[dir="rtl"] .c-header-toggler.d-md-down-none {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .navbar-nav,
[dir="rtl"] .c-sidebar-nav {
    padding-right: 0;
    padding-left: 0;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-switcher .dropdown-toggle {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.language-switcher .dropdown-toggle:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.language-switcher .dropdown-menu {
    min-width: 150px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.language-switcher .dropdown-item {
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher .dropdown-item:hover {
    background-color: #f8f9fa;
}

.language-switcher .dropdown-item.active {
    background-color: #007bff;
    color: white;
}

.language-switcher .dropdown-item.active:hover {
    background-color: #0056b3;
}

/* RTL Language Switcher */
[dir="rtl"] .language-switcher .dropdown-menu {
    left: auto;
    right: 0;
}

[dir="rtl"] .language-switcher .dropdown-item {
    text-align: right;
    flex-direction: row-reverse;
}
