﻿body, .main-menu {
}

/* Menu uses Kufi */
html[dir="rtl"] .main-menu,
html[dir="rtl"] nav,
html[dir="rtl"] .menu-link,
html[dir="rtl"] .simplebar-content ul,
html[dir="rtl"] .simplebar-content li,
html[dir="rtl"] table th,
html[dir="rtl"] .menu-label {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

/* Body and other text uses Naskh (Amiri) */
html[dir="rtl"] body {
    font-family: 'Noto Naskh Arabic', serif !important;
}

h1, h2 , h3, h5, h6 {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

/* Optional tweaks */
html[dir="rtl"] .breadcrumb {
    direction: rtl;
    text-align: right;
}

.sidebar-menu .sidebar-list .sidebar-link .iconly-Arrow-Left-2 {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.sidebar-menu .sidebar-list .iconly-Arrow-Left-2 {
    transition: all 0.4s ease-in-out;
    transform: rotate(0deg) !important;
    font-size: 16px !important;
}
.sidebar-menu .sidebar-list .sidebar-link.active .iconly-Arrow-Left-2 {
    transform: rotate(-90deg) !important;
}

.sidebar-menu .sidebar-list h6, .sidebar-menu .sidebar-list .h6 {
    font-size: 14px !important;
}


.fc {
    font-family: 'Noto Naskh Arabic', serif;
}

table th {
    font-size: 0.7rem !important;
}
h2, .h2 {
    font-size: 1.3rem !important;
}

/* Reports */
.report-group-title {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.modal-title {
    font-family: 'Noto Kufi Arabic', sans-serif;
}


#viewHorizontal table {
    font-size: 0.72rem;
    border-collapse: separate;
    border-spacing: 0;
}
#viewHorizontal .horiz-label {
    left: unset;
    right: 0;
    border-left: none !important;
    border-right: none !important;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 0.7rem !important;
    font-weight: normal;
    box-shadow: -4px 0 8px -1px rgba(0,0,0,0.15);
}
#viewHorizontal td, #viewHorizontal th {
    width: 60px !important;
    max-width: 60px !important;
}

#viewHorizontal table {
    font-size: 0.72rem;
    border-collapse: separate;
    border-spacing: 0;
}

#viewHorizontal td,
#viewHorizontal th {
    border: 1px solid #dee2e6;
}

/* Fix double borders — collapse manually */
#viewHorizontal tr td + td,
#viewHorizontal tr th + th {
    border-left: none;
}

#viewHorizontal tr + tr td,
#viewHorizontal tr + tr th {
    border-top: none;
}