.invoice-modal-content {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #374151;
}

.invoice-header-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.header-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.header-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    font-weight: 600;
}

.header-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
}

.header-value.link {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.header-value.link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.invoice-type {
    background-color: #dbeafe;
    color: #1e40af;
}

.items-table-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.custom-table th {
    background-color: #f3f4f6;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.custom-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.col-right {
    text-align: right;
}

.col-center {
    text-align: center;
}

.product-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #6b7280;
    font-size: 0.8rem;
}

.product-name {
    font-weight: 500;
    color: #111827;
    display: block;
}

.summary-section {
    display: flex;
    justify-content: flex-end;
}

.summary-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    width: 100%;
    max-width: 350px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.summary-row.discount {
    color: #dc2626;
}

.summary-row.final {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #d1d5db;
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
    margin-bottom: 0;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: #6b7280;
    gap: 1rem;
}