﻿@font-face {
    font-family: 'HonarStandardFont';
    src: url('honar-standard-font.woff') format('woff')
}

@font-face {
    font-family: 'HonarBoldFont';
    src: url('honar-standard-font_Bold.woff') format('woff')
}

body {
    padding: 0px;
    margin: 0px;
    direction: rtl;
    text-align: justify;
    font-family: 'HonarStandardFont';
    font-size: 10pt;
    
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

a {
    text-decoration: none;
}
.content {
    padding: 20px;
    padding-top: 80px;
    margin-top: 10px;
}

.login-logo {
    width: 140px !important;
    height: 140px !important;
    display: block;
    margin: 0 auto;
    padding: 3px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid rgba(13, 110, 253, .18);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

@media (max-width: 576px) {
    .login-logo {
        width: 115px !important;
        height: 115px !important;
    }
}


.login-input-group {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    direction: rtl;
}

.login-input-icon,
.login-password-toggle,
.login-input {
    height: 46px;
    border: 1px solid #ced4da;
    background-color: #fff;
}

.login-input-icon {
    width: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52606d;
    background-color: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.login-input {
    min-width: 0;
    flex: 1 1 auto;
    direction: rtl;
    text-align: right;
    border-right: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.login-input-end {
    border-radius: 8px 0 0 8px !important;
}

.login-password-toggle {
    width: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52606d;
    cursor: pointer;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    transition: color .2s, background-color .2s;
}

    .login-password-toggle:hover {
        color: #0d6efd;
        background-color: #f1f5fb;
    }

.login-input:focus {
    position: relative;
    z-index: 2;
    border-color: #86b7fe;
}

.login-input-group:focus-within .login-input-icon,
.login-input-group:focus-within .login-password-toggle,
.login-input-group:focus-within .login-input {
    border-color: #86b7fe;
}

.login-input-group:focus-within {
    border-radius: 8px;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}

.search-input-group .login-input-icon,
.search-input-group .login-input {
    height: 38px;
}

.search-input-group .login-input-icon {
    width: 42px;
    flex-basis: 42px;
    font-size: 1rem;
}

.search-input-group:focus-within {
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .15);
}



.report-hours-group {
    width: 100%;
    height: 44px;
    display: flex;
    flex-wrap: nowrap;
    direction: rtl;
    border-radius: 9px;
}

.report-hours-input,
.report-hours-unit {
    height: 44px;
    border: 1px solid #ced4da;
    background-color: #fff;
}

.report-hours-input {
    min-width: 0;
    flex: 1 1 auto;
    text-align: center;
    direction: ltr;
    border-left: 0;
    border-radius: 0 9px 9px 0 !important;
    box-shadow: none !important;
}

.report-hours-unit {
    min-width: 62px;
    flex: 0 0 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52606d;
    font-size: .82rem;
    font-weight: 600;
    border-radius: 9px 0 0 9px;
    background-color: #f8f9fa;
}

.report-hours-group:focus-within {
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}

    .report-hours-group:focus-within .report-hours-input,
    .report-hours-group:focus-within .report-hours-unit {
        border-color: #86b7fe;
    }

.report-hours-input:focus {
    position: relative;
    z-index: 2;
}

.report-hours-readonly {
    min-height: 44px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 9px;
    background-color: #f1f3f5;
}


/* رنگ‌های سرمه‌ای منو */
:root {
    --navy-primary: #06162f;
    --navy-secondary: #162631;
    --navy-light: #275c81;
    --navy-lighter: #355f92;
    --navy-hover: #5c92c0;
    --navy-gradient-start: #183863;
    --navy-gradient-end: #0d1b32;
}

/* استایل نوار ناوبری با گرادیانت سرمه‌ای */
.navbar {
    background: linear-gradient(135deg, var(--navy-gradient-start), var(--navy-gradient-end)) !important;
    box-shadow: 0 4px 20px rgba(26, 35, 126, 0.4);
    border-bottom: 3px solid #5c6bc0;
}

/* آیتم‌های منو */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 8px;
}

    .navbar-nav .nav-link:hover {
        background-color: rgba(92, 107, 192, 0.3);
        color: #ffffff !important;
    }

/* منوی کشویی با رنگ سرمه‌ای */
.dropdown-menu {
    border-top: 3px solid var(--navy-primary);
    box-shadow: 0 10px 40px rgba(26, 35, 126, 0.25);
}

.dropdown-item {
    color: #1a237e !important;
}

    .dropdown-item .bi {
        color: #3949ab;
    }

    .dropdown-item:hover {
        background-color: #e8eaf6;
        color: #0d1445 !important;
    }

        .dropdown-item:hover .bi {
            color: #1a237e;
        }

.dropdown-divider {
    border-color: #c5cae9;
}

/* دکمه کاربری */
.btn-light {
    color: #1a237e !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

    .btn-light .bi {
        color: #1a237e;
    }

    .btn-light:hover {
        border-color: #ffffff;
    }

/* دکمه ورود */
.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
}

    .btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: #ffffff;
    }

/* استایل فعال برای منو */
.navbar-nav .nav-link.active {
    background: rgba(92, 107, 192, 0.3);
    border-bottom: 2px solid #ffd54f;
    color: #ffffff !important;
}

    .navbar-nav .nav-link.active .bi {
        color: #ffd54f;
    }

/* تنظیمات ریسپانسیو - فقط منو */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(26, 35, 126, 0.95);
        border-top: 2px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
    }

    .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
    }

        .navbar-nav .nav-link:hover {
            background: rgba(92, 107, 192, 0.3);
        }

    .dropdown-menu {
        background: rgba(255, 255, 255, 0.08);
        border-top: none;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.85) !important;
    }

        .dropdown-item .bi {
            color: rgba(255, 255, 255, 0.6);
        }

        .dropdown-item:hover {
            background: rgba(92, 107, 192, 0.3);
            color: #ffffff !important;
        }

            .dropdown-item:hover .bi {
                color: #ffffff;
            }

    .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.15);
    }

    /* بخش کاربری در موبایل */
    .order-lg-3 {
        border-top: 2px solid rgba(255, 255, 255, 0.15);
    }

        .order-lg-3 .btn-light {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff !important;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

            .order-lg-3 .btn-light .bi {
                color: #ffffff;
            }

        .order-lg-3 .btn-outline-light {
            width: 100%;
            text-align: center;
            justify-content: center;
        }

        .order-lg-3 .dropdown-menu {
            background: #ffffff;
            border-top: 3px solid var(--navy-primary);
        }

        .order-lg-3 .dropdown-item {
            color: #1a237e !important;
        }

            .order-lg-3 .dropdown-item .bi {
                color: #3949ab;
            }

            .order-lg-3 .dropdown-item:hover {
                background: #e8eaf6;
                color: #0d1445 !important;
            }

                .order-lg-3 .dropdown-item:hover .bi {
                    color: #1a237e;
                }
}

/* انیمیشن برای منوی کشویی */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استایل برای Dropdown Toggle */
.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}


    .swal2-popup {
        direction: rtl;
        text-align: right;
        font-family: inherit;
    }

    .swal2-title,
    .swal2-html-container {
        text-align: center;
    }

    .swal2-toast {
        direction: rtl;
    }


    .validation-summary-valid {
        display: none;
    }

    .validation-summary-errors {
        display: block;
    }




    .activity-purchase {
        --activity-color: #2563eb;
        --activity-dark: #1d4ed8;
    }

    .activity-sale {
        --activity-color: #16a34a;
        --activity-dark: #15803d;
    }

    .activity-expense {
        --activity-color: #dc2626;
        --activity-dark: #b91c1c;
    }

    .activity-income {
        --activity-color: #0891b2;
        --activity-dark: #0e7490;
    }

    .activity-deposit {
        --activity-color: #7c3aed;
        --activity-dark: #6d28d9;
    }

    .activity-withdrawal {
        --activity-color: #d97706;
        --activity-dark: #b45309;
    }

    .activity-header {
        color: #fff;
        padding: 1.25rem;
        border-radius: .75rem;
        background: linear-gradient(135deg, var(--activity-color), var(--activity-dark));
        box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .12);
    }

    .activity-subtitle {
        opacity: .9;
    }

    .activity-card {
        border: 0;
        border-top: 3px solid var(--activity-color);
        box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .08);
    }

        .activity-card > .card-header {
            color: var(--activity-color);
            background-color: #fff;
            font-weight: 600;
        }

    .btn-activity {
        color: #fff;
        border-color: var(--activity-color);
        background-color: var(--activity-color);
    }

        .btn-activity:hover,
        .btn-activity:focus {
            color: #fff;
            border-color: var(--activity-dark);
            background-color: var(--activity-dark);
        }

    .activity-customer-receipt {
        --activity-color: #0f766e;
        --activity-dark: #115e59;
    }

    .activity-supplier-payment {
        --activity-color: #be123c;
        --activity-dark: #9f1239;
    }





    .btn-purple, .bg-purple {
        color: #fff;
        background-color: #6f42c1;
        border-color: #6f42c1;
    }

        .btn-purple:hover {
            color: #fff;
            background-color: #59359a;
            border-color: #59359a;
        }

    .btn-outline-purple {
        color: #6f42c1;
        border-color: #6f42c1;
    }

        .btn-outline-purple:hover {
            color: #fff;
            background-color: #6f42c1;
            border-color: #6f42c1;
        }


.footer {
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    background-color: #fff;
    border-top: 1px solid #e9ecef;
}

    .footer .container {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer a {
        color: #6c757d;
        text-decoration: none;
        transition: color .2s;
    }

        .footer a:hover {
            color: #0d6efd;
        }



.select2-container {
    direction: rtl;
    text-align: right;
}

.select2-container--default .select2-selection--single {
    height: 38px;
    border-color: #dee2e6;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 36px;
        padding-right: 12px;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px;
        left: 1px;
        right: auto;
    }

.select2-dropdown {
    direction: rtl;
    text-align: right;
}

.select2-search__field {
    direction: rtl;
    text-align: right;
}



.app-toast, .app-alert {
    direction: rtl;
    text-align: right;
}

.swal2-title, .swal2-html-container {
    direction: rtl;
    text-align: right;
}

.swal2-actions {
    direction: rtl;
}





.center-stat-card {
    min-height: 160px;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(32, 45, 64, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .center-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(32, 45, 64, .13);
    }

    .center-stat-card .card-body {
        min-height: 160px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

.center-stat-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 15px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 21px;
}

    .center-stat-icon i {
        line-height: 1;
        -webkit-text-stroke: .45px currentColor;
    }

.center-stat-title {
    margin-bottom: 8px;
    color: #64748b;
    font-size: .9rem;
    font-weight: 500;
}

.center-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

    .center-stat-value small {
        font-size: .82rem;
        font-weight: 700;
    }

/* کل مدارس */
.total-stat .center-stat-icon {
    color: #0d6efd;
    background: rgba(13, 110, 253, .14);
}

.total-stat .center-stat-value {
    color: #0d6efd;
}

/* مدارس پیوسته */
.continuous-stat .center-stat-icon {
    color: #198754;
    background: rgba(25, 135, 84, .14);
}

.continuous-stat .center-stat-value {
    color: #198754;
}

/* مدارس همکار */
.partner-stat .center-stat-icon {
    color: #dc3545;
    background: rgba(220, 53, 69, .14);
}

.partner-stat .center-stat-value {
    color: #dc3545;
}

@media (max-width: 767.98px) {
    .center-stat-card,
    .center-stat-card .card-body {
        min-height: 145px;
    }

    .center-stat-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 12px;
        font-size: 20px;
    }
}






/* یکسان‌سازی Select2 با فیلدهای Bootstrap */
.select2-container {
    width: 100% !important;
    direction: rtl;
}

    .select2-container .select2-selection--single {
        height: 38px !important;
        min-height: 38px !important;
        border: 1px solid #ced4da !important;
        border-radius: .375rem !important;
        background-color: #fff;
    }

        .select2-container .select2-selection--single .select2-selection__rendered {
            height: 36px !important;
            padding: 0 12px 0 34px !important;
            color: #212529;
            line-height: 36px !important;
            text-align: right;
        }

        .select2-container .select2-selection--single .select2-selection__placeholder {
            color: #6c757d;
        }

        .select2-container .select2-selection--single .select2-selection__arrow {
            width: 30px !important;
            height: 36px !important;
            top: 1px !important;
            right: auto !important;
            left: 2px !important;
        }

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .15);
}

.select2-dropdown {
    direction: rtl;
    text-align: right;
    border-color: #86b7fe;
}

.select2-search--dropdown .select2-search__field {
    height: 38px;
    direction: rtl;
    text-align: right;
    border: 1px solid #ced4da !important;
    border-radius: .375rem;
    outline: none;
}

/* Select2 چندانتخابی */
.select2-container .select2-selection--multiple {
    min-height: 38px !important;
    border: 1px solid #ced4da !important;
    border-radius: .375rem !important;
}

    .select2-container .select2-selection--multiple .select2-selection__rendered {
        min-height: 36px;
        padding: 2px 8px !important;
    }

    .select2-container .select2-selection--multiple .select2-search__field {
        height: 28px;
        margin: 2px 0;
        direction: rtl;
    }






.teacher-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 14px;
}

    .teacher-stats-grid .center-stat-card,
    .teacher-stats-grid .center-stat-card .card-body {
        min-height: 155px;
    }

.teacher-total-stat .center-stat-icon {
    color: #0d6efd;
    background: rgba(13, 110, 253, .14);
}

.teacher-total-stat .center-stat-value {
    color: #0d6efd;
}

.teacher-active-stat .center-stat-icon {
    color: #198754;
    background: rgba(25, 135, 84, .14);
}

.teacher-active-stat .center-stat-value {
    color: #198754;
}

.bachelor-stat .center-stat-icon {
    color: #0891b2;
    background: rgba(8, 145, 178, .14);
}

.bachelor-stat .center-stat-value {
    color: #0891b2;
}

.master-stat .center-stat-icon {
    color: #7c3aed;
    background: rgba(124, 58, 237, .13);
}

.master-stat .center-stat-value {
    color: #7c3aed;
}

.doctorate-stat .center-stat-icon {
    color: #ea580c;
    background: rgba(234, 88, 12, .14);
}

.doctorate-stat .center-stat-value {
    color: #ea580c;
}

.local-stat .center-stat-icon {
    color: #0f766e;
    background: rgba(15, 118, 110, .14);
}

.local-stat .center-stat-value {
    color: #0f766e;
}

.dispatched-stat .center-stat-icon {
    color: #dc3545;
    background: rgba(220, 53, 69, .14);
}

.dispatched-stat .center-stat-value {
    color: #dc3545;
}

@media (max-width: 576px) {
    .teacher-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

        .teacher-stats-grid .center-stat-card,
        .teacher-stats-grid .center-stat-card .card-body {
            min-height: 140px;
        }
}



.school-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.school-stat-card {
    min-height: 78px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 13px;
    background-color: #fff;
    box-shadow: 0 3px 14px rgba(35, 55, 80, .07);
}

.school-stat-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
}

    .school-stat-icon i {
        font-size: 1.15rem;
        -webkit-text-stroke: .3px;
    }

.school-stat-card span {
    display: block;
    color: #6c757d;
    font-size: .72rem;
}

.school-stat-card strong {
    display: block;
    margin-top: 2px;
    font-size: 1.05rem;
}

.school-teacher-card {
    border-radius: 15px;
}

.teacher-mobile-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 1.3rem;
    border-radius: 13px;
    background-color: #eaf2ff;
}

.school-action-button {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: .83rem;
}

.school-empty-icon {
    color: #9aa7b5;
    font-size: 3rem;
}

.school-stats-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 992px) {
    .school-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}



.mobile-form-card {
    overflow: hidden;
    border-radius: 16px;
}

.teacher-info-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
}

.teacher-info-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    color: #0d6efd;
    background: rgba(13, 110, 253, .12);
    border-radius: 13px;
    font-size: 22px;
}

.date-input-box {
    position: relative;
}

    .date-input-box > i {
        position: absolute;
        z-index: 3;
        top: 50%;
        right: 14px;
        color: #64748b;
        pointer-events: none;
        transform: translateY(-50%);
    }

    .date-input-box .form-control {
        height: 44px;
        padding-right: 42px;
        direction: rtl;
        cursor: pointer;
    }

.mobile-upload-box {
    min-height: 118px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #475569;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s, color .2s, background-color .2s;
}

    .mobile-upload-box:hover {
        color: #0d6efd;
        background: #f3f7ff;
        border-color: #0d6efd;
    }

    .mobile-upload-box > i {
        margin-bottom: 8px;
        color: #0d6efd;
        font-size: 28px;
        -webkit-text-stroke: .35px currentColor;
    }

.upload-title {
    font-weight: 700;
}

.upload-hint {
    margin-top: 4px;
    color: #64748b;
    font-size: .8rem;
}

.image-preview-box {
    text-align: center;
}

.image-preview {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.teacher-stay-card {
    overflow: hidden;
    border-radius: 14px;
}

.stay-mobile-row {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    border-radius: 10px;
}

@media (max-width: 575.98px) {
    .mobile-form-card {
        border-radius: 12px;
    }

        .mobile-form-card .btn-lg {
            min-height: 48px;
            font-size: 1rem;
        }

    .mobile-upload-box {
        min-height: 105px;
    }
}




.report-list-card {
    border-radius: 16px;
}

.report-value-box {
    height: 100%;
    padding: 12px 8px;
    text-align: center;
    border-radius: 12px;
    background-color: #f3f7ff;
}

.report-approved-box {
    background-color: #effaf3;
}

.report-value-box span,
.report-value-box small {
    display: block;
    color: #6c757d;
    font-size: .78rem;
}

.report-value-box strong {
    display: block;
    margin: 3px 0;
    font-size: 1.1rem;
}

.report-empty-icon {
    color: #9aa7b5;
    font-size: 3rem;
}

.report-summary-card {
    min-height: 118px;
    height: 100%;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 3px 16px rgba(35, 55, 80, .08);
}

    .report-summary-card i {
        font-size: 1.55rem;
        -webkit-text-stroke: .35px;
    }

    .report-summary-card span {
        color: #6c757d;
        font-size: .8rem;
    }

    .report-summary-card strong {
        font-size: 1rem;
    }

.monthly-days-list {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding-bottom: 90px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.day-report-card {
    display: grid;
    grid-template-columns: minmax(135px, 1fr) auto minmax(165px, .8fr);
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e4e9ef;
    border-radius: 14px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(35, 55, 80, .04);
}

.day-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-number {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    background-color: #eaf2ff;
}

.day-disabled {
    color: #7b8794;
    background-color: #f8f9fa;
}

    .day-disabled .day-number {
        color: #7b8794;
        background-color: #e9ecef;
    }

.mobile-save-bar {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    max-width: 650px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 30px rgba(35, 55, 80, .16);
    backdrop-filter: blur(8px);
}



@media (max-width: 575.98px) {
    .day-report-card {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 13px;
    }

    .day-hours {
        grid-column: 1 / -1;
    }

    .mobile-save-bar {
        bottom: 8px;
        border-radius: 13px;
    }

        .mobile-save-bar .btn {
            min-height: 44px;
        }
}





.contract-form-card,
.contract-mobile-card {
    border-radius: 16px;
}

    .contract-form-card .card-header {
        padding: 14px 18px;
        border-bottom: 1px solid #edf0f3;
        background-color: #f8fafc;
    }

        .contract-form-card .card-header h5 {
            font-size: 1rem;
            font-weight: 700;
        }

.contract-switch-box {
    min-height: 62px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background-color: #f8f9fa;
}

    .contract-switch-box .form-check-input {
        width: 2.8rem;
        height: 1.4rem;
        cursor: pointer;
    }

.contract-save-bar {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    max-width: 760px;
    margin: 22px auto 0;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 30px rgba(35, 55, 80, .16);
    backdrop-filter: blur(8px);
}

.contract-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.contract-stat-card {
    min-height: 92px;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 3px 16px rgba(35, 55, 80, .08);
}

.contract-stat-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
}

    .contract-stat-icon i {
        font-size: 1.3rem;
        -webkit-text-stroke: .3px;
    }

.contract-stat-card span {
    display: block;
    color: #6c757d;
    font-size: .78rem;
}

.contract-stat-card strong {
    display: block;
    margin-top: 3px;
    font-size: 1.15rem;
}

.contract-mobile-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

    .contract-mobile-info div {
        padding: 9px;
        border-radius: 10px;
        background-color: #f7f9fc;
    }

        .contract-mobile-info div:last-child {
            grid-column: 1 / -1;
        }

    .contract-mobile-info span {
        display: block;
        color: #6c757d;
        font-size: .72rem;
    }

    .contract-mobile-info strong {
        display: block;
        margin-top: 3px;
        font-size: .88rem;
    }

.contract-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

    .contract-details-grid > div {
        padding: 12px;
        border-radius: 11px;
        background-color: #f7f9fc;
    }

    .contract-details-grid span {
        display: block;
        margin-bottom: 4px;
        color: #6c757d;
        font-size: .76rem;
    }

    .contract-details-grid strong {
        font-size: .92rem;
    }

.contract-financial-card {
    padding: 20px;
    color: #243142;
    border-radius: 16px;
    background: linear-gradient(145deg, #f1f7ff, #ffffff);
    box-shadow: 0 3px 18px rgba(35, 55, 80, .09);
}

.contract-financial-row {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px dashed #d7dee8;
}

.contract-final-salary {
    margin-top: 17px;
    padding: 15px;
    text-align: center;
    border-radius: 13px;
    background-color: #e8f7ee;
}

    .contract-final-salary span {
        display: block;
        color: #477057;
        font-size: .8rem;
    }

    .contract-final-salary strong {
        display: block;
        margin-top: 5px;
        color: #146c43;
        font-size: 1.25rem;
    }

.contract-empty-icon {
    color: #9aa7b5;
    font-size: 3rem;
}

@media (max-width: 767.98px) {
    .contract-stats-grid {
        grid-template-columns: 1fr;
    }

    .contract-stat-card {
        min-height: 76px;
    }

    .contract-details-grid {
        grid-template-columns: 1fr;
    }

    .contract-save-bar {
        bottom: 8px;
    }

        .contract-save-bar .small {
            display: none;
        }

        .contract-save-bar .btn {
            width: 100%;
            min-height: 45px;
        }
}


.contract-termination-info {
    color: #842029;
    background-color: #f8d7da !important;
}

    .contract-termination-info span {
        color: #842029 !important;
    }





.admin-report-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-report-stat {
    min-height: 80px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 13px;
    background-color: #fff;
    box-shadow: 0 3px 14px rgba(35, 55, 80, .07);
}

.admin-report-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
}

    .admin-report-icon i {
        font-size: 1.15rem;
        -webkit-text-stroke: .3px;
    }

.admin-report-stat span {
    display: block;
    color: #6c757d;
    font-size: .73rem;
}

.admin-report-stat strong {
    display: block;
    margin-top: 2px;
    font-size: 1.05rem;
}

.admin-report-card {
    border-radius: 15px;
}

.admin-report-card-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

    .admin-report-card-info div {
        padding: 9px 5px;
        text-align: center;
        border-radius: 10px;
        background-color: #f7f9fc;
    }

    .admin-report-card-info span {
        display: block;
        color: #6c757d;
        font-size: .7rem;
    }

    .admin-report-card-info strong {
        display: block;
        margin-top: 3px;
        font-size: .84rem;
    }

@media (min-width: 768px) {
    .admin-report-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


.monthly-report-section,
.monthly-days-list {
    width: 100%;
    max-width: 950px;
    margin-right: auto;
    margin-left: auto;
}

.monthly-report-section,
.monthly-days-list {
    width: 100%;
    max-width: 950px;
    margin-right: auto;
    margin-left: auto;
}

.monthly-days-list {
    padding-bottom: 90px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.day-no-hours {
    border-color: #f1aeb5;
    background-color: #fffafa;
}

    .day-no-hours .day-number {
        color: #b02a37;
        background-color: #f8d7da;
    }

    .day-no-hours .day-title {
        color: #b02a37;
    }

.report-hours-empty {
    color: #842029 !important;
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.missing-report-card {
    overflow: hidden;
    border: 1px solid #f1aeb5;
}

    .missing-report-card .card-header {
        color: #842029;
        border-bottom: 1px solid #f1aeb5;
        background-color: #f8d7da;
    }

    .missing-report-card tbody tr {
        background-color: #fff8f8;
    }




.holiday-page-width {
    width: 100%;
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
}

.holiday-form-card,
.holiday-mobile-card {
    border-radius: 16px;
}

    .holiday-form-card .card-header {
        padding: 14px 18px;
        border-bottom: 1px solid #edf0f3;
        background-color: #f8fafc;
    }

        .holiday-form-card .card-header h5 {
            font-size: 1rem;
            font-weight: 700;
        }

.holiday-stats-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.holiday-stat-card {
    min-height: 88px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    background-color: #fff;
    box-shadow: 0 3px 15px rgba(35, 55, 80, .08);
}

.holiday-stat-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

    .holiday-stat-icon i {
        font-size: 1.25rem;
        -webkit-text-stroke: .3px;
    }

.holiday-stat-card span {
    display: block;
    color: #6c757d;
    font-size: .76rem;
}

.holiday-stat-card strong {
    display: block;
    margin-top: 2px;
    font-size: 1.1rem;
}

.holiday-center-box {
    padding: 10px 12px;
    color: #52606d;
    border-radius: 10px;
    background-color: #f7f9fc;
}

.holiday-empty-icon {
    color: #9aa7b5;
    font-size: 3rem;
}

@media (max-width: 575.98px) {
    .holiday-stats-grid {
        grid-template-columns: 1fr;
    }

    .holiday-stat-card {
        min-height: 74px;
    }
}





.payroll-page {
    max-width: 1400px;
    margin: 0 auto;
}

.payroll-details {
    max-width: 1050px;
    margin: 0 auto;
}

.payroll-stat {
    height: 100%;
    padding: 1.25rem;
    text-align: center;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(28, 39, 60, .07);
}

.payroll-stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 1.4rem;
    font-weight: 700;
}

.payroll-stat-title {
    color: #6c757d;
    font-size: .85rem;
    margin-bottom: .3rem;
}

.payroll-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #202938;
}

.payroll-panel {
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(28, 39, 60, .06);
    overflow: hidden;
}

.payroll-panel-header {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e9edf2;
}

.payroll-panel-body {
    padding: 1.25rem;
}

.payroll-search {
    display: flex;
    width: 100%;
    direction: rtl;
}

    .payroll-search input {
        min-width: 0;
        flex: 1;
        border-radius: 0 8px 8px 0;
        border-left: 0;
    }

    .payroll-search button {
        width: 46px;
        flex: 0 0 46px;
        border-radius: 8px 0 0 8px;
    }

.payroll-mobile-card {
    padding: 1rem;
    margin-bottom: .75rem;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(28, 39, 60, .06);
}

.payroll-mobile-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .4rem 0;
    border-bottom: 1px dashed #edf0f4;
}

    .payroll-mobile-row:last-child {
        border-bottom: 0;
    }

.payroll-label {
    color: #6c757d;
    font-size: .85rem;
}

.payroll-value {
    font-weight: 700;
    text-align: left;
}

.payroll-amount {
    color: #087f5b;
    font-size: 1.05rem;
    font-weight: 800;
}

.payroll-info-box {
    padding: 1rem;
    height: 100%;
    background: #f8fafc;
    border: 1px solid #e9edf2;
    border-radius: 12px;
}

.payroll-info-label {
    color: #6c757d;
    font-size: .82rem;
    margin-bottom: .25rem;
}

.payroll-info-value {
    color: #202938;
    font-weight: 700;
}

@media (max-width: 576px) {
    .payroll-stat {
        padding: .85rem .5rem;
        border-radius: 13px;
    }

    .payroll-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
        margin-bottom: .5rem;
    }

    .payroll-stat-title {
        font-size: .75rem;
    }

    .payroll-stat-value {
        font-size: 1rem;
    }

    .payroll-panel-body {
        padding: .85rem;
    }
}





.paylist-select-card {
    display: block;
    height: 100%;
    padding: 1rem;
    color: inherit;
    cursor: pointer;
    background: #fff;
    border: 2px solid #e6eaf0;
    border-radius: 14px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

    .paylist-select-card:hover {
        border-color: #a9c7f7;
        box-shadow: 0 6px 18px rgba(13, 110, 253, .1);
        transform: translateY(-2px);
    }

    .paylist-select-card.selected {
        border-color: #0d6efd;
        background: #f5f9ff;
        box-shadow: 0 6px 20px rgba(13, 110, 253, .14);
    }

    .paylist-select-card .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        margin: 0;
    }

.paylist-selection-bar {
    position: sticky;
    bottom: .75rem;
    z-index: 20;
    padding: .85rem 1rem;
    color: #fff;
    background: rgba(32, 41, 56, .96);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
}

.paylist-center-title {
    padding: .8rem 1rem;
    color: #174a7e;
    background: #eef6ff;
    border-right: 4px solid #0d6efd;
    border-radius: 8px;
}


.teacher-status-field {
    min-height: 38px;
    display: flex;
    align-items: center;
    background-color: #fff;
}

    .teacher-status-field .form-check {
        display: flex;
        align-items: center;
        gap: .5rem;
    }

.missing-report-scroll {
    max-height: 400px;
    overflow: auto;
}

    .missing-report-scroll thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background-color: #fff5f5;
        box-shadow: 0 1px 0 #dee2e6;
    }

    .missing-report-scroll tbody tr:last-child td {
        border-bottom: 0;
    }

@media (max-width: 576px) {
    .missing-report-scroll {
        max-height: 350px;
    }

        .missing-report-scroll table {
            min-width: 700px;
        }
}



.dashboard-financial-card {
    --financial-color: #6c757d;
    --financial-background: #f8f9fa;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--financial-color) 25%, transparent);
    border-top: 4px solid var(--financial-color);
    border-radius: 16px;
    background: var(--financial-background);
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.dashboard-financial-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: var(--financial-color);
    font-size: 1.15rem;
}

.dashboard-financial-card span,
.dashboard-financial-card small {
    display: block;
}

.dashboard-financial-card strong {
    display: inline-block;
    margin-top: .2rem;
    color: #212529;
    font-size: 1.2rem;
}

.dashboard-financial-card small {
    color: #6c757d;
}

.dashboard-financial-period {
    margin-top: .4rem;
    color: #6c757d;
    font-size: .72rem;
}

.financial-spring {
    --financial-color: #198754;
    --financial-background: #f0faf5;
}

.financial-summer {
    --financial-color: #d99a00;
    --financial-background: #fff9e8;
}

.financial-autumn {
    --financial-color: #d66a1f;
    --financial-background: #fff4ec;
}

.financial-winter {
    --financial-color: #0d6efd;
    --financial-background: #eef5ff;
}

.financial-year {
    --financial-color: #6f42c1;
    --financial-background: #f6f1ff;
}


.list-row-inactive > td {
    color: #999fa9 !important;
    background-color: #f3f4f6 !important;
}

.list-row-inactive .fw-semibold {
    color: #6c757d;
}

.list-row-inactive:hover > td {
    background-color: #e9ecef !important;
}

.list-row-inactive .btn {
    opacity: .8;
}



.message-dropdown {
    width: min(370px, calc(100vw - 24px));
    padding: 0;
    direction: rtl;
    text-align: right;
    overflow: hidden;
}

.message-dropdown-list {
    max-height: 330px;
    overflow-y: auto;
}

.message-dropdown-item {
    padding: .8rem 1rem;
    white-space: normal;
    border-bottom: 1px solid #edf0f3;
}

    .message-dropdown-item:last-child {
        border-bottom: 0;
    }

    .message-dropdown-item:hover {
        background: #f3f7ff;
    }

.message-dropdown-title {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #1f2937;
    font-size: .88rem;
    font-weight: 700;
}

.message-unread-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: #dc3545;
    border-radius: 50%;
}