.m-aside-menu .m-menu__nav>.m-menu__item>.m-menu__link .m-menu__link-text{
    font-size: 1.2rem;
}
.m-aside-menu.m-aside-menu--skin-dark .m-menu__nav>.m-menu__section .m-menu__section-text{
    color: #6b729c;
}
.m-aside-menu.m-aside-menu--skin-dark .m-menu__nav>.m-menu__item>.m-menu__heading .m-menu__link-text, .m-aside-menu.m-aside-menu--skin-dark .m-menu__nav>.m-menu__item>.m-menu__link .m-menu__link-text{
    color: #bbbccf;
}
.amcharts-chart-div a {
  display: none !important;
}


[dir="rtl"] body, h1, h2, h3, h4, h5, h6, input, table, .m-content {
    font-family: 'Cairo','Tajawal', sans-serif !important;
}


.m-datatable.m-datatable--default>.m-datatable__table>.m-datatable__head .m-datatable__row>.m-datatable__cell, .m-datatable.m-datatable--default>.m-datatable__table>.m-datatable__body .m-datatable__row>.m-datatable__cell, .m-datatable.m-datatable--default>.m-datatable__table>.m-datatable__foot .m-datatable__row>.m-datatable__cell {

    font-size: 1.1rem;
}
[dir="rtl"] .form-control-label , .btn ,.form-control {

    font-size: 1.2rem;
}

/* [dir="rtl"] .m-aside-menu .m-menu__nav>.m-menu__item>.m-menu__link .m-menu__link-text{
    font-size: 1.6rem;
} */
[dir="rtl"] .m-aside-menu.m-aside-menu--skin-dark .m-menu__nav>.m-menu__section .m-menu__section-text{
    color: #6b729c;
}
[dir="rtl"] .m-aside-menu.m-aside-menu--skin-dark .m-menu__nav>.m-menu__item>.m-menu__heading .m-menu__link-text, .m-aside-menu.m-aside-menu--skin-dark .m-menu__nav>.m-menu__item>.m-menu__link .m-menu__link-text{
    color: #bbbccf;
}
[dir="rtl"] .amcharts-chart-div a {
  display: none !important;
}


/*language img & link */
.m-topbar__nav .m-nav__item .m-nav__link.lang-switch {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 6px !important;
    padding: 0 10px;
}

.m-topbar__nav .m-nav__item .m-nav__link.lang-switch img {
    height: 16px;
}

.m-topbar__nav .m-nav__item .m-nav__link.lang-switch span {
    font-size: 14px;
    line-height: 1;
}

/* When language is Arabic */
[dir="rtl"] .bootstrap-select .dropdown-toggle .filter-option-inner {
    text-align: right !important;
    direction: rtl !important;
}

/* When language is English */
[dir="ltr"] .bootstrap-select .dropdown-toggle .filter-option-inner {
    text-align: left !important;
    direction: ltr !important;
}

.modal .modal-content .modal-header .close {
    line-height: unset;
}

.m-alert__text {
    font-size: 1.3rem;  
}

[dir="rtl"] .swal2-popup #swal2-content {
    font-size: small;
}

[dir="rtl"] .swal2-popup .btn {

    font-size: initial;
}


/* Fixed Metronic checkbox orientation when RTL is enabled */
[dir="rtl"] .m-checkbox {
  padding-right: 25px !important;
  padding-left: 0 !important;
}

[dir="rtl"] .m-checkbox > span {
  right: 0 !important;
  left: auto !important;
}

[dir="rtl"] .m-checkbox input[type="checkbox"] + span:after {
  transform: rotate(45deg) scale(1) !important;
  right: 5px !important;
  left: auto !important;
}




/*  Fix alert arrow direction for RTL */
[dir="rtl"] .alert.m-alert--icon.m-alert--outline.m-alert--icon-solid .m-alert__icon span {
  top: 50%;
  margin-top: -6px;
  left: -6px;
  display: inline-block;
  width: 6px;
  height: 0;
  position: absolute;
  border: 0;
  border-right: 6px solid currentColor; /* Use text color as base */
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/*  Alert danger arrow color */
[dir="rtl"] .alert.m-alert--outline.m-alert--icon-solid.alert-danger .m-alert__icon span {
  border-right-color: #f4516c !important;
}

/*  Alert success arrow color */
[dir="rtl"] .alert.m-alert--outline.m-alert--icon-solid.alert-success .m-alert__icon span {
  border-right-color: #34bfa3 !important;
}

/*  Alert warning arrow color */
[dir="rtl"] .alert.m-alert--outline.m-alert--icon-solid.alert-warning .m-alert__icon span {
  border-right-color: #ffb822 !important;
}

/*  Alert info arrow color */
[dir="rtl"] .alert.m-alert--outline.m-alert--icon-solid.alert-info .m-alert__icon span {
  border-right-color: #36a3f7 !important;
}

/* [dir="rtl"] .btn.m-btn--custom{
  font-size: 1.5rem;
} */

































/* Tabs Styling */
.custom-tabs {
  border-bottom: none !important;
  display: flex;
  gap: 10px;
}
.custom-tabs .nav-link {
  font-weight: 600;
  color: #7a7a7a;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  transition: all 0.3s ease;
}
.custom-tabs .nav-link.active {
  background-color: #4b49ac;
  color: #fff !important;
}
.custom-tabs .nav-link:hover {
  background-color: #eae9f9;
  color: #4b49ac;
}

/* Cards */
.dashboard-card {
  border: none;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Progress Animation */
.animated-progress {
  height: 6px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f1f1f1;
  position: relative;
}
.animated-progress-bar {
  position: absolute;
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 1.4s ease-in-out;
}










.card {
    transition: all 0.3s ease;
    background-color: #fff;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

#departmentsPerformanceChart {
    width: 100% !important;
    height: 380px !important;
}
/* ==== Performance Table ==== */

.performance-header {
    background: linear-gradient(90deg, #eef3fb 0%, #f7f9fc 100%);
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.table {
    border-collapse: separate !important;
    border-spacing: 0 8px;
}

.table tbody tr {
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    border-radius: 10px;
}

.table tbody tr:hover {
    background-color: #f9fafc;
    transform: translateY(-1px);
}

.table tbody td {
    border: none;
    font-size: 15px;
    color: #333;
}

.table tbody td:first-child {
    color: #999;
    font-weight: 500;
}

.performance-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-up {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.badge-down {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.badge-neutral {
    background: linear-gradient(90deg, #9ca3af 0%, #6b7280 100%);
}

.performance-badge i {
    font-size: 13px;
    margin-inline-end: 5px;
}

.table-hover > tbody > tr:hover > * {
    background-color: transparent !important;
}

@media (max-width: 768px) {
    .performance-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
}

@media (max-width: 992px) {
    .col-lg-8, .col-lg-4 {
        width: 100%;
    }
}





/* === Scoped styles for performance section only === */
.performance-section .m-dropdown__toggle.btn {
    background-color: #f9fafb !important;
    color: #374151 !important;
    font-weight: 500;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    transition: all 0.2s ease-in-out;
}

.performance-section .m-dropdown__toggle.btn:hover {
    background-color: #eef2ff !important;
    color: #2563eb !important;
    border-color: #c7d2fe !important;
}

/* === Dropdown Wrapper === */
.performance-section .m-dropdown__wrapper {
    border-radius: 10px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
    width: 160px !important;
    border: none !important;
}

/* === Inner Container === */
.performance-section .m-dropdown__inner {
    border-radius: 10px !important;
    overflow: hidden;
}

/* === List Items === */
.performance-section .m-nav__item {
    font-size: 13px !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease-in-out;
}

.performance-section .m-nav__item:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

/* === Links === */
.performance-section .m-nav__link-text {
    color: #374151 !important;
    font-weight: 500;
}

.performance-section .m-nav__item:hover .m-nav__link-text {
    color: #2563eb !important;
}

/* === Hover Effect === */
.performance-section .m-nav__item:hover {
    background-color: #f3f4f6 !important;
}

/* === Dropdown Arrow === */
.performance-section .m-dropdown__arrow {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

/* === Reduce internal padding === */
.performance-section .m-dropdown__body {
    padding: 5px 0 !important;
}
