/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/**
 * Invoice Template Styles
 */
.zc-moneta-invoice {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.5;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.invoice-container {
    max-width: 800px;
    margin: 40px auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* Invoice Header */
.invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.invoice-title h1 {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.invoice-number {
    font-size: 18px;
    font-weight: bold;
    color: #3498db;
}

.invoice-meta {
    text-align: right;
}

.invoice-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.invoice-dates {
    font-size: 14px;
}

.invoice-dates .label {
    font-weight: bold;
    margin-right: 5px;
}

/* Business Info */
.invoice-business-info {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.business-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.business-additional-info,
.business-address {
    margin-bottom: 10px;
}

.business-tax-id {
    font-weight: bold;
}

/* Invoice Items */
.invoice-items {
    margin-bottom: 30px;
}

.invoice-items h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.items-table th,
.items-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.items-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.items-table .item-total,
.items-table .payment-total {
    text-align: right;
    font-weight: bold;
}

.items-table .item-price,
.items-table .payment-price {
    text-align: right;
}

.items-table .quantity-type {
    font-size: 12px;
    color: #777;
    margin-left: 5px;
}

/* Table Footer */
.items-table tfoot tr {
    background-color: #f9f9f9;
}

.items-table tfoot td {
    padding: 12px 15px;
}

.subtotal-label,
.payments-total-label,
.total-label {
    text-align: right;
    font-weight: bold;
}

.subtotal-value,
.payments-total-value,
.total-value {
    text-align: right;
    font-weight: bold;
}

.total-row {
    font-size: 18px;
    background-color: #f0f0f0 !important;
}

.payments-header td {
    background-color: #f0f0f0;
    font-weight: bold;
    text-align: center;
}

/* Payment Info */
.invoice-payment-info,
.invoice-principal-issuer {
    margin-bottom: 30px;
}

.invoice-payment-info h2,
.invoice-principal-issuer h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.payment-info-content {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.principal-issuer-name {
    font-weight: bold;
    font-size: 16px;
}

/* Footer */
.invoice-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #777;
}

/* Print Button */
.invoice-actions {
    margin-top: 30px;
    text-align: center;
}

.print-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.print-button:hover {
    background-color: #2980b9;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .invoice-container {
        margin: 20px;
        padding: 20px;
    }
    
    .invoice-header {
        flex-direction: column;
    }
    
    .invoice-meta {
        text-align: left;
        margin-top: 20px;
    }
    
    .items-table {
        font-size: 14px;
    }
    
    .items-table th,
    .items-table td {
        padding: 8px;
    }
}

/* Language Switcher Styles */
.language-switcher {
    margin-top: 15px;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    text-align: center;
}

.language-switcher-label {
    font-weight: bold;
    margin-right: 10px;
    color: #2c3e50;
}

.language-link {
    color: #3498db;
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 3px;
    transition: background-color 0.2s, color 0.2s;
}

.language-link:hover {
    background-color: #3498db;
    color: white;
}

.current-language {
    font-weight: bold;
    color: #2c3e50;
    padding: 2px 5px;
}

.language-separator {
    color: #666;
    margin: 0 5px;
}

/* Print-specific hiding */
@media print {
    .language-switcher {
        display: none !important;
    }
}