/* تعریف فونت IRAN-web */
@font-face {
    font-family: 'IRAN-web';
    src: url('../fonts/fonts/IRAN/IRANBold.eot');
    src: url('../fonts/fonts/IRAN/IRANBold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/fonts/IRAN/IRANBold.woff2') format('woff2'),
         url('../fonts/fonts/IRAN/IRANBold.woff') format('woff'),
         url('../fonts/fonts/IRAN/IRANBold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'IRAN-web';
    src: url('../fonts/fonts/IRAN/IRAN_SemiBold.eot');
    src: url('../fonts/fonts/IRAN/IRAN_SemiBold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/fonts/IRAN/IRAN_SemiBold.woff2') format('woff2'),
         url('../fonts/fonts/IRAN/IRAN_SemiBold.woff') format('woff'),
         url('../fonts/fonts/IRAN/IRAN_SemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'IRAN-web';
    src: url('../fonts/fonts/IRAN/IRANBlack.eot');
    src: url('../fonts/fonts/IRAN/IRANBlack.eot?#iefix') format('embedded-opentype'),
         url('../fonts/fonts/IRAN/IRANBlack.woff2') format('woff2'),
         url('../fonts/fonts/IRAN/IRANBlack.woff') format('woff'),
         url('../fonts/fonts/IRAN/IRANBlack.ttf') format('truetype');
    font-weight: 900;
}

@font-face {
    font-family: 'IRAN-web';
    src: url('../fonts/fonts/IRAN/IRAN.eot');
    src: url('../fonts/fonts/IRAN/IRAN.eot?#iefix') format('embedded-opentype'),
         url('../fonts/fonts/IRAN/IRAN.woff2') format('woff2'),
         url('../fonts/fonts/IRAN/IRAN.woff') format('woff'),
         url('../fonts/fonts/IRAN/IRAN.ttf') format('truetype');
    font-weight: 400;
}

/* تعریف فونت IRANSans */
@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/fonts/IRANSans/eot/IRANSansWeb_Black.eot');
    src: url('../fonts/fonts/IRANSans/eot/IRANSansWeb_Black.eot?#iefix') format('embedded-opentype'),
         url('../fonts/fonts/IRANSans/woff2/IRANSansWeb_Black.woff2') format('woff2'),
         url('../fonts/fonts/IRANSans/woff/IRANSansWeb_Black.woff') format('woff'),
         url('../fonts/fonts/IRANSans/ttf/IRANSansWeb_Black.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/fonts/IRANSans/eot/IRANSansWeb_Bold.eot');
    src: url('../fonts/fonts/IRANSans/eot/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/fonts/IRANSans/woff2/IRANSansWeb_Bold.woff2') format('woff2'),
         url('../fonts/fonts/IRANSans/woff/IRANSansWeb_Bold.woff') format('woff'),
         url('../fonts/fonts/IRANSans/ttf/IRANSansWeb_Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/fonts/IRANSans/eot/IRANSansWeb_Medium.eot');
    src: url('../fonts/fonts/IRANSans/eot/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'),
         url('../fonts/fonts/IRANSans/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
         url('../fonts/fonts/IRANSans/woff/IRANSansWeb_Medium.woff') format('woff'),
         url('../fonts/fonts/IRANSans/ttf/IRANSansWeb_Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/fonts/IRANSans/eot/IRANSansWeb_Light.eot');
    src: url('../fonts/fonts/IRANSans/eot/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/fonts/IRANSans/woff2/IRANSansWeb_Light.woff2') format('woff2'),
         url('../fonts/fonts/IRANSans/woff/IRANSansWeb_Light.woff') format('woff'),
         url('../fonts/fonts/IRANSans/ttf/IRANSansWeb_Light.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/fonts/IRANSans/eot/IRANSansWeb_UltraLight.eot');
    src: url('../fonts/fonts/IRANSans/eot/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'),
         url('../fonts/fonts/IRANSans/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'),
         url('../fonts/fonts/IRANSans/woff/IRANSansWeb_UltraLight.woff') format('woff'),
         url('../fonts/fonts/IRANSans/ttf/IRANSansWeb_UltraLight.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/fonts/IRANSans/eot/IRANSansWeb.eot');
    src: url('../fonts/fonts/IRANSans/eot/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
         url('../fonts/fonts/IRANSans/woff2/IRANSansWeb.woff2') format('woff2'),
         url('../fonts/fonts/IRANSans/woff/IRANSansWeb.woff') format('woff'),
         url('../fonts/fonts/IRANSans/ttf/IRANSansWeb.ttf') format('truetype');
}

/* استایل‌های عمومی */
body {
    font-family: 'IRAN-web', 'Montserrat', sans-serif;
    direction: rtl;
}

.form-check {
    float: right;
    padding-left: 10px;
}

.mb-3 {
    float: right;
    width: 100%;
}

.form-label {
    width: 100%;
    font-weight: bold;
}
.alert{
    position: fixed;
    top: 5px;
    right:40%;
}
.sidebar {
        width: 240px;
        min-height: 100vh;
        overflow-y: auto;
        transition: transform .2s ease;
    }
    .sidebar .nav-link {
        color: #1f2937;
        border-radius: 10px;
        padding: 8px 10px;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: background-color .15s ease, color .15s ease;
    }
    .sidebar .nav-link:hover {
        background: #e5e7eb;
        color: #0f172a;
    }
    .sidebar .nav-link.active {
        background: #0f172a;
        color: #e5e7eb;
        font-weight: 700;
    }
    .sidebar .section-title {
        font-size: 12px;
        color: #6b7280;
        margin: 6px 0 4px;
        padding-inline-start: 4px;
    }
    @media (max-width: 992px) {
        #sidebar {
            position: fixed;
            inset: 0 auto 0 0;
            z-index: 1050;
            transform: translateX(100%);
            background: #e2e8f0;
        }
        #sidebar.show { transform: translateX(0); }
    }
    .table-responsive {
        overflow-x: initial
    }

/* جدول‌ها: شبیه table-dark برای تمام thead ها */
/* جدول‌ها: هدر تیره برای همه thead ها */
.table thead,
thead {
    background-color: #212529 !important;
    color: #fff !important;
}
.table thead th,
thead th {
    background-color: #212529 !important;
    color: #fff !important;
    border-color: #343a40 !important;
}
.table {
    text-align: center;
}
