/* Budget Panel Styles */

.budget-modal {
    background-color: var(--bg-primary, #ffffff);
    width: 90%;
    max-width: 800px;
    height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.budget-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-secondary, #f8f9fa);
}

.budget-header h2 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary, #333);
}

.budget-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: var(--bg-primary, #ffffff);
}

.budget-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color, #e0e0e0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-secondary, #f8f9fa);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary, #666);
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-primary, #333);
}

/* Supplier Section */
.budget-supplier-section {
    margin-bottom: 2rem;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    overflow: hidden;
}

.budget-supplier-header {
    padding: 1rem;
    background-color: var(--bg-tertiary, #f0f2f5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.supplier-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.supplier-logo-small {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.supplier-icon-placeholder {
    font-size: 1.5rem;
}

.budget-supplier-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

/* Items Table */
.budget-items-table {
    width: 100%;
    border-collapse: collapse;
}

.budget-items-table th,
.budget-items-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.budget-items-table th {
    background-color: var(--bg-secondary, #f8f9fa);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary, #555);
}

.budget-items-table tr:last-child td {
    border-bottom: none;
}

.item-name-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-icon {
    font-size: 1.2rem;
}

/* Totals */
.budget-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.budget-totals span:first-child {
    font-size: 0.9rem;
    color: var(--text-secondary, #666);
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color, #007bff);
}

/* Empty State */
.empty-budget {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary, #666);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
