:root {
    --gigneo-invoice-font-family: DejaVu Sans;
}

.gn-invoice-container {
    font-family: var(--gigneo-invoice-font-family), sans-serif;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding: 20px;
    background: #fff;
}

.gn-invoice-container :where(h1, h2, h3, h4, h5, h6){
    font-family: var(--gigneo-invoice-font-family), sans-serif;
}

.gn-invoice-header {
    width: 100%;
    display: inline-block;
}

.gn-invoice-title {
    font-size: 24px;
    font-weight: bold;
    color: #18181B;
    line-height: 36px;
    display: inline-block;
}

.gn-invoice-header img {
    float: right;
    height: 45px;
    clear: both;
}

.gn-invoice-details {
    width: 100%;
    margin-top: 20px;
    display: inline-block;
}

.gn-order-id,
.gn-date {
    margin-top: -4px;
}

.gn-invoice-details .gn-title {
    font-size: 13px;
    color: #71717A;
    line-height: 20px;
}

.gn-invoice-details .gn-amount {
    font-size: 13px;
    color: #18181B;
    line-height: 20px;
    margin: 0 0 0 5px;
}

.gn-invoice-billing {
    width: 100%;
    margin-top: 40px;
    padding-top: 20px;
    display: inline-block;
    box-sizing: border-box;
}

.gn-invoice-billing-from {
    display: inline-block;
    max-width: 45%;
    width: 45%;
    vertical-align: top;
}

.gn-invoice-billing-to {
    max-width: 45%;
    vertical-align: top;
    width: 45%;
    margin-left: -5px;
    padding-left: 10%;
    display: inline-block;
}

.gn-invoice-billing .gn-title {
    font-size: 11px;
    color: #5E6470;
    line-height: 14px;
}

.gn-invoice-billing .gn-name {
    font-size: 13px;
    margin: 4px 0 0;
    font-weight: bold;
    color: #1A1C21;
    line-height: 18px;
}

.gn-invoice-billing .gn-email,
.gn-invoice-billing .gn-country-state {
    font-size: 13px;
    margin: 2px 0 0;
    color: #5E6470;
    line-height: 18px;
}

.gn-invoice-table {
    width: 100%;
    margin: 20px 0 0;
    border-spacing: 0;
    table-layout: fixed;       
    border-collapse: collapse; 
}

.gn-invoice-table th {
    border: none;
    font-size: 14px;
    font-weight: bold;
    text-align: left;         
    color: #18181B;
    padding: 16px 8px;
    line-height: 20px;
    background: #FAFAFA;
    vertical-align: middle;
    -webkit-border-before: none !important;
            border-block-start: none !important;
}

.gn-invoice-table th:first-child {
    width: 50%;
    padding-left: 16px;
    border-radius: 8px 0 0 8px;
}

.gn-invoice-table th:nth-child(2) {
    width: 10%;
    text-align: right;
}

.gn-invoice-table th:nth-child(3) {
    width: 20%;
    text-align: right;
}

.gn-invoice-table th:last-child {
    width: 20%;
    text-align: right;
    padding-right: 16px;
    border-radius: 0 8px 8px 0;
}

.gn-invoice-table td {
    font-size: 12px;
    line-height: 18px;
    padding: 16px 8px;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #F4F4F5;
    background-color: #fff !important;
    vertical-align: middle;
}

.gn-invoice-table td:first-child {
    color: #27272A;
    text-align: left;
    padding-left: 16px;
}

.gn-invoice-table td:last-child {
    padding-right: 16px;
}

.gn-invoice-table td:nth-child(2),
.gn-invoice-table td:nth-child(3),
.gn-invoice-table td:last-child {
    opacity: 0.9;
    color: #3F3F46;
    text-align: right;
}

.gn-invoice-total-wrapper {
    width: 100%;
    margin: 30px 0 0;
    display: inline-block;
}

.gn-invoice-totals {
    width: 100%;
    display: block;
    margin-left: auto;
    max-width: 350px;
}

.gn-invoice-totals .gn-subtotal,
.gn-invoice-totals .gn-total {
    width: 100%;
    padding: 12px 0;
    display: inline-block;
}

.gn-invoice-totals .gn-total {
    border-top: 1px solid #F4F4F5;
}

.gn-invoice-totals .gn-subtotal .gn-title,
.gn-invoice-totals .gn-total .gn-title {
    font-size: 14px;
    font-weight: bold;
    color: #18181B;
    line-height: 20px;
}

.gn-invoice-totals .gn-subtotal .gn-amount,
.gn-invoice-totals .gn-total .gn-amount {
    float: right;
    opacity: 0.9;
    font-size: 14px;
    color: #3F3F46;
    line-height: 20px;
}

.gn-invoice-footer {
    margin-top: 36px;
    font-size: 15px;
    color: #18181B;
    line-height: 24px;
}

.gn-status-tag-fill, .gn-status-tag {
    gap: 5px;
    white-space: nowrap;
    font-weight: 400;
    font-style: normal;
    border-radius: 8px;
    background-color: #f7f7f7;
    border: 1px solid #ebebeb;
    font-size: 14px;
    padding: 1px 9px;
    line-height: 20px;
}


.gn-status-tag.gn-deliverable,
.gn-status-tag.gn-delivered,
.gn-status-tag.gn-success,
.gn-status-tag.gn-completed,
.gn-status-tag.gn-withdrawn,
.gn-status-tag.gn-publish{
    color: #17b26a;
    background-color: #17b26a0d;
    border-color: #17b26a66;
}

.gn-status-tag.gn-info {
    color: #2e90fa;
    background-color: #2e90fa1a;
    border-color: #2e90fa66;
}