﻿@font-face {
    font-family: Tanha;
    src: url('../fonts/Tanha-FD.eot');
    src: url('../fonts/Tanha-FD.eot?#iefix') format('embedded-opentype'), url('../fonts/Tanha-FD.woff') format('woff'), url('../fonts/Tanha-FD.ttf') format('truetype');
    font-weight: 900;
}

input, select {
    text-align: right
}

* {
    font-family: 'B Yekan';
}

.byekan {
    font-family: 'B Yekan';
}

.bmitra {
    font-family: 'BMitra';
}
.document-content .text-center {
    margin-top: 10px;
}

@font-face {
    font-family: 'B Yekan';
    src: url('../fonts/BYekan.ttf') format('truetype'), url('../fonts/BYekan.woff') format('woff'), url('../fonts/BYekan.eot') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BMitra';
    src: url('../fonts/BMitra.ttf') format('truetype');
    font-weight: normal;
}

.text-xs {
    font-size: 0.65rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.text-7xl {
    font-size: 4.5rem;
    line-height: 1;
}

.text-8xl {
    font-size: 6rem;
    line-height: 1;
}

.text-9xl {
    font-size: 8rem;
    line-height: 1;
}


.rtl {
    direction: rtl
}

.ltr {
    direction: ltr
}
/*---------------------------------------
    Dashboard Theme V2
---------------------------------------*/

body {
    background: #f5f7fb;
}

/* Cards */
.block {
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: all .25s ease;
}

    .block:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(0,0,0,.12);
    }

/* Header */
.block-header {
    border-radius: 14px 14px 0 0;
}

/* Statistic Cards */
.bg-primary {
    background: linear-gradient(135deg,#2563eb,#4f8ef7) !important;
}

.bg-success {
    background: linear-gradient(135deg,#16a34a,#22c55e) !important;
}

.bg-warning {
    background: linear-gradient(135deg,#f59e0b,#fbbf24) !important;
}

.bg-danger {
    background: linear-gradient(135deg,#dc2626,#ef4444) !important;
}

.bg-info {
    background: linear-gradient(135deg,#0891b2,#06b6d4) !important;
}

/* icons */

.block .fa,
.block .fas,
.block .far {
    opacity: .18;
}

/* table */

.table {
    margin-bottom: 0;
}

/* menu animation */

.nav-main-link {
    transition: .25s;
}

    .nav-main-link:hover {
        background: #2563eb !important;
        color: white !important;
        border-radius: 8px;
        margin-left: 6px;
    }


.document-degree-label,
.document-date-label {
    font-weight: bolder;
    font-size: 12px;
    text-align: center;
}

.document-info-input {
    border: none;
    border-bottom: 2px dotted;
    text-align: center;
    font-weight: bolder;
    width: 100%;
    background: transparent;
}

.document-office-box {
    clear: both;
    width: 100%;
    text-align: center;
    padding-top: 10px;
}

.document-office-textarea {
    display: inline-block;
    width: 40%;
    min-height: 40px;
    border: 1px dotted #666;
    font-weight: bolder;
    font-size: 13px;
    padding: 4px;
    resize: vertical;
    text-align: center;
}
.document-file {
    position: relative;
}


/* ============================================================
   هدر مکتوب: جابه‌جایی عمودی متن اصلی + نام اداره ارسال‌کننده
   مقدار منفی = بالاتر ، مثبت = پایین‌تر  (۱ سانت در چاپ ≈ 53px)
   ============================================================ */
:root {
    --doc-header-shift: 0px; /* هدر دست نخورده */
    --doc-body-shift: -106px; /* متن اصلی مکتوب: ۲ سانت بالاتر */
}

.document-file > :not(.document-content):not(.doc-window):not(.doc-guides):not(.doc-header-clone) {
    transform: translateY(var(--doc-header-shift));
}

.document-file > .document-content {
    transform: translateY(var(--doc-body-shift));
}

/* نام اداره ارسال کننده: فونت Arial و حفظ خط‌های جدید (Enter) */
.document-office-textarea,
.document-office-box h4,
.document-office-box textarea {
    font-family: Arial, Helvetica, sans-serif !important;
}

.document-office-textarea,
.document-office-box h4 {
    white-space: pre-line;
}

/* ============================================================
   بلوک امضاها (طی مراحل): هر امضا با شماره‌ی ترتیب و تاریخ
   ترتیب: امضای اول از راست، سه امضا در هر ردیف
   ============================================================ */
.sign-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    direction: rtl;
    margin-top: 10px;
}

.sign-item {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    box-sizing: border-box;
    padding: 8px 6px;
    text-align: center;
    break-inside: avoid;
    page-break-inside: avoid;
}

    .sign-item .sign-step {
        display: inline-block;
        min-width: 28px;
        height: 28px;
        line-height: 24px;
        border: 2px solid #555;
        border-radius: 50%;
        font-family: 'B Yekan', Tahoma, sans-serif;
        font-weight: bold;
        font-size: 15px;
        color: #333;
        margin-bottom: 4px;
    }

    .sign-item .sign-comment {
        position: static;
        left: auto;
        top: auto;
        width: auto;
        font-size: 14px;
        margin: 0 auto 2px auto;
    }

    .sign-item img {
        display: block;
        margin: 0 auto;
        max-width: 100%;
        max-height: 110px;
    }

    .sign-item .sign-date {
        font-family: 'B Yekan', Tahoma, sans-serif;
        font-size: 12px;
        color: #444;
        margin-top: 2px;
        direction: ltr;
    }