/* ==============================================
   1. إعدادات عامة
   ============================================== */
html, body, h1, h2, h3, h4, h5, h6, p, a, td, th, input, select, textarea {
    font-family: 'din-next-lt', 'Almarai', 'Tajawal', sans-serif !important;
    direction: rtl;
    letter-spacing: 0px;
}

/* Restore Icon Fonts */
.fa, .fas, .far, .fab {
    font-family: FontAwesome !important;
}

[class^="icon-"], [class*=" icon-"] {
    font-family: 'simple-line-icons' !important;
}
body, html {
    overflow-x: hidden;
}
h6 {
    font-weight: bold;
}
#map, #map1 {
    height: 60%;
}
@media screen and (max-width: 800px) {
    .menuBtn {
        font-size: 10px !important;
        padding: 9px !important;
    }
}


/* ==============================================
   2. جداول النظام العادية (.app-table)
   ============================================== */
.app-table,
.app-table th,
.app-table td {
    text-align: center;
    vertical-align: middle !important;
}
.app-table th {
    background-color: #f4f5f7;
    color: #3d4051;
    font-weight: bold;
    white-space: nowrap;
    border-bottom: 2px solid #c8ccd0 !important;
    padding: 10px 14px;
}
.app-table td {
    padding: 9px 12px;
    border-color: #e5e9ec !important;
}
.app-table tbody tr:hover {
    background-color: #f0f7ff;
    transition: background-color 0.15s ease;
}
.app-table .btn {
    margin: 1px;
    padding: 3px 9px;
    font-size: 12px;
}


/* ==============================================
   3. جداول التقارير — انحناءات فقط، بلا حدود داخلية
   (.unified-table-card  و  table.muqaym-table-v2)
   ============================================== */

/* --- 3.1 الحاوية الخارجية --- */
.unified-table-card {
    border: 1.5px solid #f39c12 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    margin-bottom: 25px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    padding: 0 !important;
}

/* --- 3.2 الجدول: إطار خارجي منحنٍ فقط --- */
.unified-table-card table,
table.muqaym-table-v2 {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
}

/* --- 3.3 إزالة كل الحدود الداخلية (Bootstrap override) --- */
.unified-table-card table > * > tr > th,
.unified-table-card table > * > tr > td,
table.muqaym-table-v2 > * > tr > th,
table.muqaym-table-v2 > * > tr > td {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
}

/* --- 3.4 انحناء زوايا الخلايا الركنية --- */
.unified-table-card table tr:first-child > th:first-child,
.unified-table-card table tr:first-child > td:first-child,
table.muqaym-table-v2 tr:first-child > th:first-child,
table.muqaym-table-v2 tr:first-child > td:first-child {
    border-top-right-radius: 13px !important;
}
.unified-table-card table tr:first-child > th:last-child,
.unified-table-card table tr:first-child > td:last-child,
table.muqaym-table-v2 tr:first-child > th:last-child,
table.muqaym-table-v2 tr:first-child > td:last-child {
    border-top-left-radius: 13px !important;
}
.unified-table-card table tr:last-child > td:first-child,
table.muqaym-table-v2 tr:last-child > td:first-child {
    border-bottom-right-radius: 13px !important;
}
.unified-table-card table tr:last-child > td:last-child,
table.muqaym-table-v2 tr:last-child > td:last-child {
    border-bottom-left-radius: 13px !important;
}

/* --- 3.5 رأس الجدول البرتقالي --- */
.unified-table-card th,
.unified-table-card .header-row,
table.muqaym-table-v2 th {
    background-color: #f39c12 !important;
    color: #ffffff !important;
    padding: 12px !important;
    text-align: center !important;
    font-weight: bold !important;
}

/* --- 3.6 خلايا البيانات --- */
.unified-table-card td,
table.muqaym-table-v2 td {
    padding: 10px 15px !important;
    color: #333 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.unified-table-card tbody tr:nth-child(even),
table.muqaym-table-v2 tbody tr:nth-child(even) {
    background-color: #fafafa !important;
}

.fa, .fas, .far, .fab, [class^="icon-"], [class*=" icon-"] {
    font-family: FontAwesome, 'simple-line-icons' !important;
}

.fa:before, .fas:before, .far:before, .fab:before,
[class^="icon-"]:before, [class*=" icon-"]:before {
    font-family: FontAwesome, 'simple-line-icons' !important;
    display: inline-block !important;
    visibility: visible !important;
}

/* تثبيت الفوتر في أسفل صفحة الدخول */
body.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.login-page .page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}
body.login-page .page-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}
body.login-page .page-content {
    flex: 1;
}
body.login-page .page-prefooter {
    margin-top: auto;
}
