﻿.template-2-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

.template-2-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #2563eb;
}

.template-2-company-info {
    flex: 1;
}

.template-2-company-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.template-2-company-name {
    font-size: 28px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 8px;
}

.template-2-company-details {
    color: #6b7280;
    font-size: 14px;
}

.template-2-invoice-info {
    text-align: right;
    flex-shrink: 0;
}

.template-2-invoice-title {
    font-size: 36px;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 10px;
}

.template-2-invoice-number {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 5px;
}

.template-2-invoice-date {
    font-size: 14px;
    color: #6b7280;
}

.template-2-billing-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 40px;
}

.template-2-billing-info {
    flex: 1;
}

.template-2-billing-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.template-2-client-name {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.template-2-address-line {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 3px;
}

.template-2-items-section {
    margin-bottom: 30px;
}

.template-2-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.template-2-table-header {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
}

    .template-2-table-header th {
        padding: 15px 12px;
        text-align: left;
        font-weight: 600;
        font-size: 14px;
    }

        .template-2-table-header th:last-child {
            text-align: right;
        }

.template-2-items-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

    .template-2-items-table tbody tr:last-child {
        border-bottom: none;
    }

    .template-2-items-table tbody tr:hover {
        background-color: #f9fafb;
    }

.template-2-items-table td {
    padding: 12px;
    font-size: 14px;
}

    .template-2-items-table td:last-child {
        text-align: right;
        font-weight: 600;
    }

.template-2-totals-section {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.template-2-totals-table {
    width: 300px;
    border-collapse: collapse;
}

    .template-2-totals-table tr {
        border-bottom: 1px solid #e5e7eb;
    }

        .template-2-totals-table tr:last-child {
            border-bottom: 3px solid #2563eb;
            background: linear-gradient(135deg, #f8fafc, #f1f5f9);
        }

    .template-2-totals-table td {
        padding: 12px 15px;
        font-size: 14px;
    }

        .template-2-totals-table td:first-child {
            font-weight: 600;
            color: #374151;
        }

        .template-2-totals-table td:last-child {
            text-align: right;
            font-weight: 600;
        }

.template-2-total-amount {
    font-size: 18px !important;
    color: #1e40af !important;
    font-weight: 700 !important;
}

.template-2-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #6b7280;
    font-size: 12px;
}

@media print {
    .template-2-container {
        padding: 20px;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .template-2-header {
        flex-direction: column;
        gap: 20px;
    }

    .template-2-invoice-info {
        text-align: left;
    }

    .template-2-billing-section {
        flex-direction: column;
        gap: 20px;
    }

    .template-2-totals-section {
        justify-content: stretch;
    }

    .template-2-totals-table {
        width: 100%;
    }
}
