@font-face {
    font-family: 'iransansRegular';
    src: url('./media/fonts/iransans-regular.woff') format('woff');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

.table-factor * {
    direction: rtl !important;
    font-family: 'iransansRegular', 'Tahoma', 'Arial', sans-serif !important;
}

.bady-table-factor {
    padding: 2px;
    font-family: 'iransansRegular', 'Tahoma', 'Arial', sans-serif !important;
}

.table-factor {
    width: 100%;
    border-radius: 3px;
}

.table-factor .factor-title {
    width: 100%;
    font-family: 'iransansRegular', 'Tahoma', 'Arial', sans-serif !important;
}

.table-factor .factor-title .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #dfdfdf;
    padding: 1rem;
}

.table-factor .factor-title .top .item {
    display: flex;
    align-items: center;
}

.table-factor .factor-title .top .logo {
    min-width: 110px;
    display: flex;
    justify-content: flex-end;
}

.table-factor .factor-title .top .logo img {
    width: 100%;
    height: 100%;
    max-width: 80px;
    max-height: 80px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.table-factor .factor-title .top .title {
    width: 100%;
    display: flex;
    justify-content: center;
    font-family: 'iransansRegular', 'Tahoma', 'Arial', sans-serif !important;
}

.table-factor .factor-title .top .title h1 {
    font-family: 'iransansRegular', 'Tahoma', 'Arial', sans-serif !important;
    font-size: 17px !important;
}

.table-factor .factor-title .top .number {
    min-width: 110px;
    display: flex;
    gap: 3px;
}

.table-factor .factor-title .top .number span {
    font-family: 'iransansRegular', 'Tahoma', 'Arial', sans-serif !important;
    font-size: 14px;
    color: #494949;
}

.table-factor .factor-title .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    border-left: 1px solid #dfdfdf;
    border-right: 1px solid #dfdfdf;
}

.table-factor .factor-title .bottom h2 {
    min-width: 200px;
    font-family: 'iransansRegular', 'Tahoma', 'Arial', sans-serif !important;
    font-size: 14px !important;
    margin-top: 4px;
}

.table-factor .factor-title .bottom .buyer {
    width: 100%;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
}

.table-factor .factor-title .bottom .buyer .buyer-item {
    width: 100%;
}

.table-factor .factor-title .bottom .buyer .buyer-item:first-child {
    justify-content: flex-start;
}

.table-factor .factor-title .bottom .buyer .buyer-item:last-child {
    justify-content: flex-end;
}

.table-print {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 13px;
}

.table-factor .table-secondary tbody tr td {
    font-size: 8px !important;
}

.table-factor tbody tr td:first-child {
    border-right: 1px solid #dfdfdf !important;
}

.table-factor tbody tr td:last-child {
    border-left: 1px solid #dfdfdf !important;
}

.table-factor .table-secondary thead tr th {
    font-size: 12px !important;
}

@media print {
    html {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
        margin: 0;
        padding: 0;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .print-mode .table-print {
        display: none !important;
    }

    .print-mode body {
        font-family: 'iransansRegular', 'Tahoma', 'Arial', sans-serif !important;
    }

    .table-factor,
    .table-factor * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .table-print {
        display: none !important;
    }
}