/* ===== BUDGET-VERWALTUNG STYLES ===== */

.budget-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.budget-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.budget-group h5 {
    margin: 0 0 0.75rem 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.budget-info {
    margin-bottom: 1rem;
}

.budget-info p {
    margin: 0.25rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.budget-info strong {
    color: #495057;
}

.status-approved {
    color: #28a745;
    font-weight: 600;
}

.status-pending {
    color: #ffc107;
    font-weight: 600;
}

.status-rejected {
    color: #dc3545;
    font-weight: 600;
}

.budget-actions {
    margin-top: 0.75rem;
}

.budget-actions .btn {
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

/* Budget-Übersicht Tabelle */
.budget-overview {
    margin-top: 1rem;
}

.budget-overview table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.budget-overview th,
.budget-overview td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.budget-overview th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.budget-overview tr:hover {
    background-color: #f8f9fa;
}

/* Budget-Verbrauch Anzeige */
.budget-usage {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #e9ecef;
    border-radius: 6px;
}

.budget-usage h6 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 0.9rem;
}

.usage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.usage-item:last-child {
    border-bottom: none;
}

.usage-date {
    color: #6c757d;
    font-size: 0.85rem;
}

.usage-amount {
    font-weight: 600;
    color: #495057;
}

.usage-description {
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
}

/* Budget-Antrag Modal */
.budget-request-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.budget-request-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.budget-request-content h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.budget-request-form .form-group {
    margin-bottom: 1rem;
}

.budget-request-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #495057;
}

.budget-request-form input,
.budget-request-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

.budget-request-form textarea {
    resize: vertical;
    min-height: 80px;
}

.budget-request-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .budget-section {
        padding: 1rem;
    }
    
    .budget-group {
        padding: 0.75rem;
    }
    
    .budget-request-content {
        margin: 5% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .budget-request-actions {
        flex-direction: column;
    }
    
    .budget-request-actions .btn {
        width: 100%;
    }
}

/* Budget-Status Indikatoren */
.budget-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.budget-status-indicator.approved {
    background-color: #28a745;
}

.budget-status-indicator.pending {
    background-color: #ffc107;
}

.budget-status-indicator.rejected {
    background-color: #dc3545;
}

.budget-status-indicator.inactive {
    background-color: #6c757d;
}

/* Budget-Fortschrittsbalken */
.budget-progress {
    margin-top: 0.5rem;
}

.budget-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.budget-progress-fill {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.budget-progress-fill.warning {
    background-color: #ffc107;
}

.budget-progress-fill.danger {
    background-color: #dc3545;
}

.budget-progress-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
    text-align: right;
}
