@font-face {
    font-family: "IRNazanin";
    src: url('/Helper/Quotation/Tanzin/IRNazanin.ttf') format('truetype');
    font-style: normal;
}
@font-face {
    font-family: "IRNazanin";
    src: url('/Helper/Quotation/Tanzin/IRNazaninBold.ttf') format('truetype');
    font-style: normal;
}
@font-face {
    font-family: "IRNazanin";
    src: url('/Helper/Quotation/Tanzin/fonts/IRNazaninIranic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "IRNazanin";
    src: url('/Helper/Quotation/Tanzin/fonts/B-NAZANIN.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@page {
    margin: 0;
}

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

    html, body {
      margin: 0;
      padding: 0;
      width: 210mm;
      height: 297mm;
      font-family: "IRNazanin";
      background: #fff;
      direction: rtl;
      color: #000;
      font-size: 15px;
      font-weight: bold;
    }

    .page {
      position: relative;
      width: 100%;
      height: 100%;
      padding: 22mm 10mm 22mm 10mm;
      display: flex;
      flex-direction: column;
    }

    /* نوار بالایی شامل مقدار کد مشتری */
    .top-code {
        margin-right: 20.5%;
        text-align: right;
        margin-bottom: 4mm;
        font-size: 15px;
    }

    /* بخش اطلاعات مشتری */
    .customer-info {
      display: flex;
      justify-content: space-between;
      margin-bottom: 3mm;
      font-size: 15px;
    }

    .customer-info div {
      width: 32%;
      text-align: left;
      white-space: nowrap;
    }
    .customer-info .name {
        width: 28%;
    }
    .customer-info div:last-child {
      transform: translateY(3mm);
    }

    /* آدرس */
    .address {
      margin-top: 4mm;
      text-align: justify;
      line-height: 1.6;
      padding-bottom: 2mm;
      font-size: 14px;
      padding-right: 3mm;
    }

    .table {
        width:100%;
        border-collapse: collapse;
        border: 2px solid;
        table-layout: auto;
        margin-top: 0;
        font-size: 15px;
    }

    /* تیتر جدول */
    .table-title {
      text-align: center;
      border: 1px solid #000;
      background-color: #5d0e62;
      color: #fff;
      padding: 6px 0;
      margin-top: 5mm;
    }

    th, td {
        border: 1px solid #000;
        text-align: center;
        padding: 4px;
        vertical-align: middle;
        height: 25px;
    }

    thead th, td {
        height: 6mm;
    }
    tbody tr.empty-row td {
        height: 8.4mm;
    }
    tbody tr.summary td {
        height: 8mm;
    }
    th, td {
      padding: 0;
      margin: 0;
      line-height: 1.4;
    }
    
    .table-subtitle {
        background-color: #cac0d8;
    }

    .col-1 { 
        width: 5%;
        padding: 6px 0;
        margin: 0;
        rotate: -90deg;
    }
    .col-2 { width: 13%; }
    .col-3 { width: 33%; }
    .col-4 { width: 10%; }
    .col-5 { width: 7%; }
    .col-6 { width: 13%; }
    .col-7 { width: 19%; }

    .empty-row td {
      height: 30px;
    }

    .empty-row .ob-det {
        font-size: 14px;
        text-align: right;
    }
    .empty-row .ob-tot {
        text-align: right;
        padding-right: 20px;
    }
    .ob-total {
        width: 100%;
        text-align: right;
        font-size: 14px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        border: none;
        vertical-align: middle;
    }

    /* بخش جمع مبالغ */
    .summary td {
      font-weight: bold;
      text-align: right;
      padding: 0 8px;
    }

    .summary .label {
      text-align: center;
    }

    /* .summary .value {
      text-align: center;
    } */

    .summary .text-blue {
        color: #081F5C;
    }
