/*
IranYekanX fonts are considered a proprietary software. To gain information about the laws 
regarding the use of these fonts, please visit www.fontiran.com
---------------------------------------------------------------------
This set of fonts are used in this project under the license: W416D5ZS
---------------------------------------------------------------------
*/

@font-face {
    font-family: 'IRANYekanXVF';
    src: url('../fonts/yekan/IRANYekanXVF.woff') format('woff-variations'),
    /* will be the standard and works in Safari now */
    url('../fonts/yekan/IRANYekanXVF.woff') format('woff');
    /* for the other supporting browsers */
    font-weight: 100 1000;
    font-display: fallback;

}

.ltr
{
    direction: ltr;
}
.farsi_digits {
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02"
}
.main-logo
{
    max-width: 256px;
    max-height: 256px;
}
html,
body {
    background: #E9EEF1;
    font-size: 13px;
    font-family: IRANYekanXVF, sans-serif;
    color: #646464;
}

select optgroup,
select option
{
    font-family: IRANYekanXVF, sans-serif;
}
.invoice-wrapper {
    padding: 50px 0;
}
.text-left
{
    text-align: left !important;
}
.text-right
{
    text-align: right !important;
}

.text-center
{
    text-align: center !important;
}
.invoice {
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    -o-border-radius: 4px;
    -ms-border-radius: 4px;
    background: #fff;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) , 0 50px 30px 10px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) , 0 50px 30px 10px rgba(0, 0, 0, 0.05);
    -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) , 0 50px 30px 10px rgba(0, 0, 0, 0.05);
    -o-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) , 0 50px 30px 10px rgba(0, 0, 0, 0.05);
    -ms-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) , 0 50px 30px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}
.invoice-header {
    padding: 15px;
    background: #03A9F4;
    color: #fff;
    text-align: center;
}
.invoice-header h1 {
    font-size: 16px;
}
.invoice-body {
    padding: 15px;
    overflow: auto;
    height: auto;
}
.invoice-heading {
    width: 100%;
    border-collapse: collapse;
}
.invoice-heading .logo {
    width: 64px;
    height: 64px;
    background: #e8eced;
    border-radius: 64px;
    -moz-border-radius: 64px;
    -webkit-border-radius: 64px;
    -o-border-radius: 64px;
    -ms-border-radius: 64px;
    padding: 8px;
    display: inline-block;
    vertical-align: top;
    margin-left: 16px;
}
.invoice-heading .heading-text {
    display: inline-block;
    height: auto;
}
.invoice-heading h2 {
    line-height: 1.5em;
    color: #000;
    display: inline-block;

    font-size: 2em;
    letter-spacing: -1px;
}
.invoice-heading h3 {
    line-height: 1em;
    display: inline-block;
    font-size: 16px;
    font-weight: 300;
}
.invoice-fast-pay {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid #cfe8d8;
    border-radius: 12px;
    background: linear-gradient(135deg, #f3fff7 0%, #ffffff 52%, #eef8ff 100%);
    box-shadow: 0 12px 28px rgba(10, 95, 54, .08);
}
.invoice-fast-pay-summary {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.invoice-fast-pay-summary span {
    color: #198754;
    font-size: 15px;
    font-weight: 700;
}
.invoice-fast-pay-summary strong {
    display: block;
    color: #111827;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.55;
}
.invoice-fast-pay-summary strong small {
    color: #4b5563;
    font-size: 16px;
    font-weight: 700;
}
.invoice-fast-pay-summary em {
    color: #6b7280;
    font-style: normal;
    font-size: 14px;
}
.invoice-fast-pay-action {
    flex: 0 0 330px;
}
.invoice-fast-pay-action label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 700;
}
.invoice-fast-pay-select {
    height: 44px;
    margin-bottom: 10px;
}
.invoice-fast-pay-button {
    min-height: 62px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #16a34a 0%, #0f7a3d 100%) !important;
    box-shadow: 0 12px 24px rgba(22, 163, 74, .24);
    font-size: 18px;
    font-weight: 850;
}
.invoice-fast-pay-button small {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 650;
}
.invoice-pay-note {
    display: block;
    margin-top: 8px;
    color: #b45309;
    line-height: 1.8;
    text-align: center;
}
.invoice-manual-pay-form {
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
}
.invoice .invoice-table {
    margin: 15px 0;
}
.invoice-table thead small {
    color: #03A9F4;
}
.invoice-table th.t,
.invoice-table td.t {
    border-right: 2px #ced4da solid;
}
.invoice-table th.n,
.invoice-table td.n {
    padding: 0;
    text-align: center;
    width: 1.5em;
    font-size: 14px;
    min-width: 1em;
    font-weight: bold;
    vertical-align: middle;
}
.invoice-table td,
.invoice-table th {
    /*  white-space: nowrap;*/
}
.invoice-table td.n.l {
    width: auto;
    text-align: left;
    padding: 0 8px;
}
.invoice-table tfoot th {
    /*  border-top: 2px #ced4da solid !important;*/
}
.p-h1
{
    font-family: IRANYekanXVF, sans-serif;
}
.table-borderless tbody+tbody, .table-borderless td, .table-borderless th, .table-borderless thead th {
    border: 0;
}

table.invoice-info-table
{
    float: right;
}

table.invoice-info-table td
{
    padding: 5px 5px 5px 5px;
}
table.invoice-table-front th,
table.invoice-table-front td
{
    padding: 4px !important;
}

@media screen and (min-width: 600px)
{

    .invoice-table-front .w-30
    {
        width: 30%;
    }

    .invoice-table-front .w-20
    {
        width: 20%;
    }
    .invoice-table-front .w-15
    {
        width: 15%;
    }
    .invoice-table-front .w-10
    {
        width: 10%;
    }
    .invoice-table-front .w-5
    {
        width: 5%;
    }
}

.invoice-table-front .td-title,
.invoice-details-title
{
    display: none;
}

.inv-footer-tbl th
{
    text-align: center;
}
@media screen and (max-width: 600px)
{
    .invoice-wrapper {
        padding: 8px 0 18px;
    }
    .invoice {
        border-radius: 0;
        box-shadow: none;
    }
    .invoice-header {
        padding: 8px 10px;
    }
    .invoice-header h1 {
        margin: 0;
        font-size: 12px;
        line-height: 1.7;
    }
    .invoice-body {
        padding: 8px;
        overflow: visible;
    }
    .invoice-fast-pay {
        display: block;
        margin-bottom: 12px;
        padding: 12px;
        border-radius: 10px;
    }
    .invoice-fast-pay-summary {
        text-align: center;
        margin-bottom: 10px;
    }
    .invoice-fast-pay-summary strong {
        font-size: 28px;
        line-height: 1.45;
    }
    .invoice-fast-pay-action {
        width: 100%;
    }
    .invoice-fast-pay-button {
        min-height: 60px;
        font-size: 17px;
    }
    .invoice-heading .logo {
        width: 46px;
        height: 46px;
        padding: 5px;
        margin-left: 8px;
    }
    .invoice-heading h2 {
        font-size: 18px;
        margin-bottom: 0;
    }
    .invoice-heading h3 {
        font-size: 13px;
    }
    .invoice-heading .heading-text > div {
        display: none;
    }
    .inv-footer-tbl th
    {
        text-align: right;
    }
    table.invoice-info-table
    {
        float: right;
    }

    .invoice-table-front
    {
        border: none;

    }
    .invoice-table-front thead
    {
        display: none;
    }
    .invoice-table-front .td-title
    {
        display: contents !important;

    }

    .invoice-table-front td {
        text-align: right !important;
    }

    .invoice-table-front td,
    .invoice-table-front th
    {
        width: 100%;
        display: block;
        padding: .35rem;
        border:  none;

    }

    .invoice-table-front tr
    {
        display: block;
        border:  1px solid #dee2e6;
        margin-top: 5px;
        border-radius: 10px;
    }

    .invoice-table-front th.tf-total
    {
        text-align: center !important;
    }

    .invoice-details-title{
        display: block;
        text-align: center;
    }
}
