/* Main Invoice Container */
.invoice-container {
    width: 760px;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
    padding: 30px;
    padding-top: 0;
}

.invoice-page {margin-bottom: 20px;}

/* Header Section */
.invoice-header-table {
    width: 100%;
}

.invoice-from-section {
    width: 40%;
    float: left;
    padding-top: 15px;
}

.invoice-to-section {
    width: 60%;
    float: left;
}

/* Shop Logo */
.shop-logo {
    width: 190px;
    margin-top: 25px !important;
}

/* Payment Method */
.payment-method {
    font-size: 14px;
    color: #222;
    margin: 20px 0;
    display: inline-flex;
}

.payment-type {
    text-transform: uppercase;
}

/* Shop Information */
.shop-info {
    margin-top: 10px;
}

.section-title {
    font-size: 16px;
    line-height: 1.8;
    color: #222;
    font-weight: bold;
    margin: 5px 0;
}

.shop-detail {
    font-size: 16px;
    line-height: 1.8;
    color: #222;
    margin: 2px 0;
}

/* Invoice Title Bar */
.invoice-title-bar {
    background: #4DBC60;
    transform: skew(38deg);
    width: 100%;
    margin-left: 65px;
    padding: 20px 60px;
}

.invoice-main-title {
    font-size: 30px;
    color: #fff;
    transform: skew(-38deg);
    text-transform: uppercase;
    text-align: right;
    font-weight: bold;
    margin: 0;
}

/* Invoice Details Bar */
.invoice-details-bar {
    background: #fff;
    width: 72%;
    margin-left: 145px;
    padding: 12px 32px;
    margin-top: 6px;
}

.invoice-detail {
    font-size: 15px;
    color: #222;
    font-weight: bold;
    text-align: right;
    margin: 5px 0;
}

/* Customer Information */
.customer-info {
    padding-top: 20px;
}

.customer-detail {
    font-size: 16px;
    line-height: 1.8;
    color: #222;
    margin: 2px 0;
}

.text-right {
    text-align: right;
}

/* Products Table */
.products-table {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 0;
    border-collapse: collapse;
}

.table-header {
    background: #4DBC60 !important;
    color: #fff;
}

.table-header th {
    background: #4DBC60 !important;
    padding: 12px 8px;
    text-align: left;
    font-weight: bold;
}

.table-sl {
    width: 5%;
}

.table-product {
    width: 50%;
}

.table-price, .table-qty, .table-total {
    width: 15%;
}

/* Table Body */
.table-body {
    border-collapse: collapse;
}

.product-row {
    border-bottom: 1px solid #ddd;
}

.product-row td {
    padding: 10px 8px;
    vertical-align: middle;
}

.row-product {
    display: flex;
    align-items: center;
}

.product-image {
    height: 30px;
    margin-right: 10px;
}

/* Summary Table */
.summary-table {
    width: 300px;
    float: right;
    margin-bottom: 30px;
    border-collapse: collapse;
}

.summary-body {
    background: #f1f9f8;
}

.summary-row td {
    padding: 10px 8px;
}

.summary-label, .summary-value {
    padding: 8px;
}

.summary-total-row {
    background: #4DBC60;
    color: #fff;
}

.total-label, .total-value {
    background: #4DBC60 !important;
    color: #fff;
    padding: 10px 8px;
    font-weight: bold;
}

/* Terms Section */
.terms-section {
    overflow: hidden;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    clear: both;
}

.terms-title {
    font-style: italic;
    margin: 0 0 10px 0;
}

.terms-title a {
    color: #4DBC60;
    text-decoration: none;
}

.terms-note {
    text-align: center;
    font-style: italic;
    font-size: 15px;
    margin-top: 10px;
    color: #666;
}


.page-break-after {
    page-break-after: always;
}

@media print {
    .page-break-after {
        page-break-after: always;
    }
    
    .invoice-container {
        margin: 0;
        padding: 0;
    }
}

.page-break {
    display: none;
}
