/* Invoice styles for web view */
.invoice-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.invoice-header {
    margin-bottom: 15px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.invoice-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
}

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

.total-label-header {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.total-amount-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

.company-logo {
    /* background-color: #000; */
    color: white;
    padding: 15px 20px;
    /* margin-bottom: 30px; */
    display: inline-block;
}

.company-name {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.company-subtitle {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.header-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    /* padding: 10px 15px; */
}

.info-column {
    flex: 1;
    background-color: #f5f5f5;
}

.info-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 3px;
}

.info-value {
    font-size: 0.95rem;
    color: #000;
}

.invoice-number-section {
    /* margin-top: 20px; */
    padding: 10px 0;
}

.invoice-number-label {
    font-size: 0.85rem;
    color: #000;
    margin-bottom: 5px;
}

.invoice-number-value {
    font-weight: bold;
    font-size: 1rem;
}

.addresses-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px 0;
}

.address-block {
    padding: 0;
}

.address-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
    font-size: 0.95rem;
}

.address-content {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #333;
}

.address-content strong {
    color: #000;
}

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

.items-table thead {
    background-color: #f5f5f5;
}

.items-table th,
.items-table td {
    padding: 5px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.items-table th {
    font-weight: 600;
    color: #000;
}

.items-table td {
    color: #333;
}

.items-table th.text-right,
.items-table td.text-right {
    text-align: right;
}

.items-table th.text-center,
.items-table td.text-center {
    text-align: center;
}

.totals-section {
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
}

.total-row {
    display: flex;
    justify-content: flex-end;
    padding: 8px 0;
    font-size: 0.9rem;
}

.total-label {
    width: 200px;
    text-align: right;
    padding-right: 30px;
    color: #333;
}

.total-value {
    width: 150px;
    text-align: right;
    font-weight: 600;
    color: #000;
}

.total-row.grand-total {
    font-size: 1.1rem;
    font-weight: bold;
    border-top: 2px solid #000;
    padding-top: 15px;
    margin-top: 10px;
}

.footer-section {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.8;
}

.page-number {
    text-align: center;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #999;
}

@media print {
    .invoice-container {
        box-shadow: none;
        padding: 0;
    }
}
