/* رنگ‌بندی «آبی صنعتی» (MDM-PM-001 D-028)؛ رنگ‌های وضعیت اعتبار ثابت می‌مانند. */
@font-face {
    font-family: "Vazirmatn";
    src: url("../lib/vazirmatn/fonts/Vazirmatn[wght].woff2") format("woff2-variations"), url("../lib/vazirmatn/fonts/Vazirmatn[wght].woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --tblr-font-sans-serif: "Vazirmatn", system-ui, sans-serif;
    --tblr-primary: #1A6FD1;
    --tblr-primary-rgb: 26, 111, 209;
    --mdm-navy: #0F2A4A;
    --mdm-icon-gap: .45rem;
}

/* ارقام لاتین در نام‌ها و کدهای فنی دست نمی‌خورند (N2XCYRY، 1.5mm²)؛ عددهای شمارشی با Fa.Digits فارسی می‌شوند. */
body {
    font-family: var(--tblr-font-sans-serif);
}

/* آیکن‌های Font Awesome: فاصله‌ی یکسان با متن (قاعده‌ی ثابت پروژه)؛ در دکمه‌ی فقط‌آیکن فاصله صفر است. */
.fa-solid, .fa-regular, .fa-brands {
    margin-inline-end: var(--mdm-icon-gap);
}

.btn-icon > .fa-solid, .btn-icon > .fa-regular, .input-icon-addon > .fa-solid,
.nav-link-icon > .fa-solid, .me-0 {
    margin-inline-end: 0 !important;
}

.card-title > .fa-solid, .card-title > .fa-regular { color: var(--tblr-primary); }

.mdm-sidebar {
    background: var(--mdm-navy) !important;
}

.mdm-sidebar .nav-link-icon { color: #6FA8EA; }

.mdm-sidebar .nav-link.active,
.mdm-sidebar .nav-link:hover {
    background: rgba(26, 111, 209, .35);
    border-radius: 6px;
}

.mdm-sidebar .nav-link.active .nav-link-icon { color: #fff; }

.mdm-nav-head {
    font-size: .75rem;
    opacity: .6 !important;
    padding-block: .25rem !important;
}

.mdm-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
}

.mdm-brand .fa-certificate {
    font-size: 1.5rem;
    color: #6FA8EA;
}

.mdm-brand small {
    font-weight: 400;
    opacity: .75;
}

/* کدها و شماره‌های فنی چپ‌به‌راست و با ارقام لاتین */
.mdm-code {
    direction: ltr;
    unicode-bidi: isolate;
    font-family: ui-monospace, Consolas, monospace;
    font-size: .85em;
}

.mdm-when-dark { display: none; }
[data-bs-theme="dark"] .mdm-when-dark { display: inline; }
[data-bs-theme="dark"] .mdm-when-light { display: none; }

.mdm-guild { line-height: 1.8; }

.mdm-actor .form-control { width: 9.5rem; }
.mdm-local-search { width: 14rem; }

.table td, .table th { vertical-align: middle; }
.mdm-sort:hover { color: var(--tblr-primary) !important; }
.mdm-copy { opacity: .55; }
.mdm-copy:hover { opacity: 1; }
tr:hover .mdm-copy { opacity: 1; }

/* موبایل: نوار ابزار و جستجوها تمام‌عرض */
@media (max-width: 767.98px) {
    .mdm-local-search, .mdm-search { width: 100%; }
    .mdm-actor { width: 100%; }
    .mdm-actor .input-icon { flex-grow: 1; }
    .mdm-actor .form-control { width: 100%; }
    .mdm-toolbar .btn-list { width: 100%; justify-content: flex-start; }
}

/* چاپ زیبا: فقط عنوان، شرح و جدول؛ بدون منو، ابزار و ستون‌های عملیات */
@media print {
    @page { size: A4 landscape; margin: 12mm; }
    body { background: #fff !important; color: #000; font-size: 10pt; }
    .page-wrapper { margin: 0 !important; }
    .card { border: 0 !important; box-shadow: none !important; }
    .mdm-print-header { border-bottom: 2px solid #1A6FD1; margin-bottom: 8px; padding-bottom: 6px; }
    .mdm-print-header h2 { color: #0F2A4A; margin: 0 0 4px; }
    [data-noexport], .mdm-copy, .btn, .dropdown, form .btn { display: none !important; }
    table.mdm-list { font-size: 9pt; }
    table.mdm-list thead th { background: #1A6FD1 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    table.mdm-list tbody tr:nth-child(even) td { background: #F2F6FB !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    a { color: #000 !important; text-decoration: none !important; }
    .os-scrollbar { display: none !important; }
}
