* {
    box-sizing: border-box;
}

.invoice-wrapper {
    padding: 30px;
    background: #f1f5f9;
}

.invoice-preview {
    max-width: 1200px;
    margin: auto;
    background: #fff;
    padding: 30px;
}

/* HEADER */
.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 20px;
}

.invoice-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invoice-logo {
    width: 50px;
    height: auto;
}

.invoice-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.invoice-date {
    font-size: 14px;
    color: #475569;
}

/* FROM TO */
.invoice-from-to {
    display: grid;
    grid-template-columns: 1fr 1fr 260px;
    gap: 30px;
    padding: 25px 0;
    border-bottom: 1px solid #e5e7eb;
}

.invoice-col {
    font-size: 14px;
}

.invoice-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 700;
}

.invoice-company {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1f2937;
}

.invoice-text {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 8px;
}

.invoice-meta {
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
}

.invoice-meta div {
    margin-bottom: 4px;
}

/* TABLE */
.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.invoice-table thead {
    background: #f8fafc;
}

.invoice-table th {
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

.invoice-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
}

.invoice-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.invoice-table .text-right {
    text-align: right;
}

/* FOOTER */
.invoice-footer {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 30px;
}

.section-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 14px;
}

.payment-icons {
    margin-bottom: 15px;
}

.payment-icons i {
    font-size: 28px;
    margin-right: 10px;
    color: #1e293b;
}

.payment-note {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-top: 10px;
}

/* SUMMARY */
.invoice-summary {
    border: 1px solid #e5e7eb;
    padding: 20px;
    background: #f8fafc;
}

.summary-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #475569;
}

.summary-row span:first-child {
    color: #64748b;
}

.summary-row span:last-child {
    color: #1f2937;
    font-weight: 600;
}

.summary-row.total {
    font-size: 16px;
    font-weight: 700;
    border-top: 2px solid #1f2937;
    border-bottom: none;
    margin-top: 10px;
    padding-top: 12px;
    color: #1f2937;
}

.summary-row.total span {
    color: #1f2937;
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .invoice-wrapper {
        padding: 15px;
    }

    .invoice-preview {
        padding: 20px;
    }

    .invoice-from-to {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .invoice-footer {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .invoice-table {
        font-size: 12px;
    }

    .invoice-table th,
    .invoice-table td {
        padding: 8px 6px;
    }
}

