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

@page {
    size: A4 portrait;
    margin: 0;
}

* {
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

html,
body {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 0;
    direction: rtl;
    background: #fff;
    font-family: "IRANSans";
}

.page {
    width: 210mm;
    min-height: 297mm;
    padding: 2mm;
}

/* header */

.header {
    position: relative;
    height: 18mm;
    margin-bottom: 4mm;
}

.logo {
    position: absolute;
    right: 0;
    top: 0;
    height: 15mm;
}

.header h1 {
    margin: 0;
    text-align: center;
    font-size: 18px;
    line-height: 15mm;
}

/* table */

.invoice {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    .invoice th,
    .invoice td {
        border: 1px solid #c6c6c6;
        padding: 4px;
        vertical-align: middle;
    }

.info-row {
    font-size: 9px;
}

.info-cell {
    padding: 2mm;
}

.info-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    line-height: 1.8;
}

.factor-box {
    width: 35mm;
    font-size: 9px;
    line-height: 2;
    padding: 2mm;
}

.table-head th {
    background: #e1e4e8;
    font-size: 8px;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}

.product td {
    font-size: 9px;
}

.summary td {
    font-size: 9px;
}

.t-right {
    text-align: right !important;
}

.t-left {
    text-align: left !important;
}

.validity {
    text-align: right !important;
    font-size: 9px;
    padding: 3mm !important;
}

.description-cell {
    height: 25mm;
}

.description-box {
    text-align: right;
    position: relative;
    min-height: 20mm;
}

.description-title {
    font-size: 10px;
    font-weight: bold;
}

.description-text {
    margin-top: 5px;
    font-size: 9px;
    line-height: 1.8;
}

.sign-row td {
    height: 20mm;
}

.sign-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.stamp {
    width: 15mm;
    height: 15mm;
}

.sign-text {
    font-size: 10px;
}

.summary-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 9px;
}
.vertical-row {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-90deg);
    white-space: nowrap;
}