* {
    box-sizing: border-box;
}
@font-face {
    font-family: vazir;
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/Vazir-Thin.eot');
    src:
        url('../fonts/Vazir-Thin.woff') format('woff'),
        url('../fonts/Vazir-Thin.ttf') format('ttf'),
        url('../fonts/Vazir-Thin.woff2') format('woff2');
}
@font-face {
    font-family: vazir;
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/Vazir-Light.eot');
    src:
        url('../fonts/Vazir-Light.woff') format('woff'),
        url('../fonts/Vazir-Light.ttf') format('ttf'),
        url('../fonts/Vazir-Light.woff2') format('woff2');
}

@font-face {
    font-family: vazir;
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Vazir-Regular.eot');
    src:
        url('../fonts/Vazir-Regular.woff') format('woff'),
        url('../fonts/Vazir-Regular.ttf') format('ttf'),
        url('../fonts/Vazir-Regular.woff2') format('woff2');
}
@font-face {
    font-family: vazir;
    font-style: normal;
    font-weight: 950;
    src: url('../fonts/Vazir-Black.eot');
    src:
        url('../fonts/Vazir-Black.woff') format('woff'),
        url('../fonts/Vazir-Black.ttf') format('ttf'),
        url('../fonts/Vazir-Black.woff2') format('woff2');
}
.Loginbody {
    font-family: vazir;
    direction: rtl;
    text-rendering: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    min-height: 100vh;
    background: #f3f3f3;
    flex-direction: column;
    margin: 0;
}

.Loginmain {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    transition: transform 0.2s;
    width: 100%;
    max-width: 400px;
    min-width: 200px;
    text-align: center;
}

h1 {
    color: #5FB8D8;
    font-family: vazir;
}

h2 {
    color: #f01c00;
    font-family: vazir;
    font-size: 14px;
}

h3 {
    color: #000000;
    font-family: vazir;
    font-size: 16px;
}

h4 {
    color: #000000;
    font-family: vazir;
    font-size: 14px;
    margin: 1px 0px 0px 0px;
}

h5 {
    color: #000000;
    font-family: vazir;
    font-size: 12px;
    margin: 1px 0px 0px 0px;
}

label {
    display: block;
    font-family: vazir;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: right;
    color: #555;
    font-weight: bold;
}

input {
    display: block;
    font-family: vazir;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 5px;
}

input, button, select, textarea, option { font-family: vazir; }


input[type="radio"],
input[type="checkbox"]{
    display: inline-block;
    font-family: vazir;
    width: auto;
    margin: 0 5px 0 0;
    padding: 0;
}

.wrap {
    font-family: vazir;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Navbar container */
.navbar {
    overflow: hidden;
    top: 0;
    position: fixed;
    width: 100%;
    background-color: #006B8F;
    font-family: vazir;
}

/* Links inside the navbar */
.navbar a {
    float: right;
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-family: vazir;
}
.navbar .exitt {
    float: left;
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-family: vazir;
}

/* The dropdown container */
.dropdown {
    float: right;
    overflow: hidden;
    font-family: vazir;
}

/* Dropdown button */
.dropdown .dropbtn {
    font-family: vazir;
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit; /* Important for vertical align on mobile phones */
    margin: 0; /* Important for vertical align on mobile phones */
}

/* Add a red background color to navbar links on hover */
.navbar a:hover,
.dropdown:hover .dropbtn {
    font-family: vazir;
    background-color: red;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    font-family: vazir;
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    font-family: vazir;
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: right;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
    font-family: vazir;
    background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    font-family: vazir;
    display: block;
}

.main {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    padding: 0px 0px 0px 0px;
    transition: transform 0.2s;
    width: 98%;
    text-align: right;
    margin-top: 70px;
    margin-right: 1%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.my-DIVbox {
    border: 1px solid #ccc;   /* خط نازک خاکستري */
    border-radius: 8px;       /* گوشه‌هاي گرد */
    padding: 5px 10px 10px 10px;
    width: 90%;
    margin: 10px auto;           /* وسط‌چين افقي */
}

.my-DIVboxHIDDEN {
    border: 1px solid #E60000;   /* خط نازک خاکستري */
    border-radius: 8px;       /* گوشه‌هاي گرد */
    padding: 5px 10px 10px 10px;
    width: 90%;
    margin: 10 auto;           /* وسط‌چين افقي */
    display: none; /* اول مخفي */
}

.site-footer {
    position: static; /* مهم: نه fixed، نه absolute */
    align-self: flex-end; /* در محور افقيِ Flex سمت چپ بايستد */
    margin: 8px 10px 12px 10px; /* کمي فاصله از لبه? چپ و پايين */
    padding: 0px 20px;
    direction: ltr;
    clear: both;
    font-size: 11px;
}

html,
body {
    margin: 0px;
    padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    height: 97%;
    min-height: 97vh;
    display: flex;
    flex-direction: column;
    font-family: vazir;
    padding-top: var(--menu-h);
    grid-template-rows: auto 1fr auto; /* منو | main | فوتر */
}

button {
    padding: 15px;
    font-family: vazir;
    border-radius: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    border: none;
    color: white;
    cursor: pointer;
    background-color: #006B8F;
    width: 100%;
    font-size: 16px;
}

input[type="submit"]:disabled {
    background-color: #EDEDED;   /* خاکستري روشن */
    color: #A3A3A3;              /* متن خاکستري تيره */
    cursor: not-allowed;      /* موس به شکل ممنوع */
    opacity: 0.4;             /* کم‌رنگ‌تر */
}

input[type="submit"], .btn-gray {
    background: #006B8F;
    color: #FFFFFF;
    border: 1px solid #006B8F;
    padding: 8px 18px;
    margin: 3px 3px 3px 3px;
    font-size: 12px;
    text-decoration: none;
    font-family: vazir;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    width: auto;
    min-width: 150px;
    display: inline-block;
}

.btn-red {
    background: #A81600;
    color: #FFFFFF;
    border: 1px solid #BD0300;
    padding: 8px 18px;
    margin: 3px 3px 3px 3px;
    font-size: 12px;
    text-decoration: none;
    font-family: vazir;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    width: auto;
    min-width: 150px;
    display: inline-block;
}

input[type="submit"]:hover, .btn-gray:hover {
    background: #C7EAFA;
    color: #006B8F;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="submit"]:active, .btn-gray:active {
    background: #006B8F;
    box-shadow: none;
}

:root {
    --b: #DEDEDE;
    --head: #f5f5f5;
    --odd: #CEF1FD;
}

/* کانتينر جدول */
.table-wrap {
    font-family: vazir;
    border: 1px solid var(--b);
    border-radius: 12px;
    overflow: hidden;
    display: inline-block;
    max-width: 95%;
    margin: 20px auto; /* فاصله بالا و پايين + وسط‌چيني */
    display: block; /* باعث ميشه margin:auto جواب بده */
    text-align: center; /* فقط براي وسط قرار گرفتن خودش */
}

/* خود جدول */
.rtl-table {
    border-collapse: collapse;
    width: 100%;
    direction: rtl;
    table-layout: fixed;
    font: 13px;
    margin: 0 auto; /* وسط‌چين شدن جدول داخل wrap */
}

/* خانه‌ها */
.rtl-table th,
.rtl-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--b);
    vertical-align: middle;
    text-align: right;
    width: 100%;
}

/* هدر */
.rtl-table thead th {
    background: var(--head);
    font-weight: 700;
    text-align: center;
    width: 100%;
}

/* آخرين رديف */
.rtl-table tr:last-child td {
    border-bottom: none;
}

/* رنگ رديف‌هاي فرد */
.rtl-table tr.odd td {
    background: var(--odd);
}

/* ليبل و مقدار */
.label {
    color: #666;
    margin-left: 6px;
    white-space: nowrap;
}
.value {
    font-weight: 600;
}

.center-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
    font-size: clamp(16px, 5vw, 35px); /* فونت ريسپانسيو */
    padding: 20px;                     /* فاصله داخلي از متن */
    border: 2px solid #888;            /* خط دور کادر */
    border-radius: 15px;               /* گوشه‌هاي گرد */
    background: #f9f9f9;               /* پس‌زمينه کادر */
    text-align: center;                /* متن وسط */
}