﻿/* budget.css */

/* Mention styles */
.mention-highlight {
    background-color: #e7f5ff;
    color: #1971c2;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
    cursor: pointer;
}

.mention-highlight:hover {
    background-color: #d0ebff;
    text-decoration: underline;
}

/* Main layout styles */
.budget-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

.budget-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

    .budget-header h1 {
        color: #343a40;
        font-weight: 600;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
    }

        .budget-header h1 i {
            margin-right: 12px;
            color: #28a745;
        }

    .budget-header .lead {
        color: #6c757d;
        font-size: 1.1rem;
    }

/* Dashboard card styles */
.budget-dashboard-cards {
    margin-bottom: 30px;
}

.budget-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

    .budget-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

.budget-card-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 15px;
}

.budget-card-title {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 600;
}

.budget-card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #343a40;
}

.budget-card-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Toolbar styles */
.budget-toolbar {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Budget item card styles */
.budget-item-card {
    border: none;
    border-left: 4px solid #dee2e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

    .budget-item-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .budget-item-card .card-title {
        font-weight: 600;
        margin-top: 15px;
        margin-bottom: 15px;
    }

.amount-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 5px;
}

.item-title-link {
    color: #343a40;
    text-decoration: none;
}

    .item-title-link:hover {
        color: #007bff;
        text-decoration: underline;
    }

/* Budget items grid */
.budget-items-grid {
    margin-left: -8px;
    margin-right: -8px;
}

    .budget-items-grid > div {
        padding-left: 8px;
        padding-right: 8px;
    }

/* Detail cards for item details */
.detail-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #007bff;
}

.detail-card-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.detail-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
}

/* Information group */
.detail-info-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.detail-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

    .detail-info-item strong {
        color: #495057;
    }

/* Comments styles */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #6c757d;
}

.comment-internal {
    background-color: #fff3cd;
    border-left-color: #ffc107;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    font-size: 0.9rem;
    color: #6c757d;
}

.comment-internal-badge {
    background-color: #ffc107;
    color: #212529;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Timeline styles for history */
.history-timeline {
    max-height: 400px;
    overflow-y: auto;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 10px;
        top: 10px;
        bottom: 0;
        width: 2px;
        background-color: #dee2e6;
    }

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #007bff;
    border: 3px solid white;
    box-shadow: 0 0 0 1px #dee2e6;
}

.timeline-content {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.timeline-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-details {
    font-size: 0.9rem;
}

.timeline-change {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
}

.timeline-old-value {
    color: #dc3545;
    text-decoration: line-through;
}

.timeline-new-value {
    color: #28a745;
}

/* Modal backdrop and dialog */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998; /* Erhöht, um über anderen Elementen zu sein */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    width: 500px;
    max-width: calc(100% - 30px);
    z-index: 9999; /* Erhöht, um über dem Backdrop zu sein */
}

<<<<<<< HEAD
/* Modal content styles - ensure solid background */
.modal-content {
    background-color: #ffffff !important;
    opacity: 1 !important;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #f8f9fa !important;
    opacity: 1 !important;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.modal-body {
    background-color: #ffffff !important;
    opacity: 1 !important;
    padding: 1rem;
}

.modal-footer {
    background-color: #f8f9fa !important;
    opacity: 1 !important;
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Sicherstellen, dass alle Elemente innerhalb des Modals auch nicht transparent sind */
.modal-backdrop .modal-dialog * {
    opacity: 1 !important;
}

/* Spezifische Styles für HaushaltUsers Modals */
.modal-backdrop .modal-dialog .modal-content,
.modal-backdrop .modal-dialog .modal-content .modal-header,
.modal-backdrop .modal-dialog .modal-content .modal-body,
.modal-backdrop .modal-dialog .modal-content .modal-footer {
    background-color: #ffffff !important;
    opacity: 1 !important;
}

=======
>>>>>>> parent of 76b79f8 (Fix transparent modal issue in budget user management by adding solid background styles)
/* Form actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Status colors */
.border-draft {
    border-left-color: #6c757d;
}

.border-submitted {
    border-left-color: #17a2b8;
}

.border-inreview {
    border-left-color: #007bff;
}

.border-approved {
    border-left-color: #28a745;
}

.border-rejected {
    border-left-color: #dc3545;
}

.border-inprogress, .border-ordered {
    border-left-color: #ffc107;
}

.border-delivered {
    border-left-color: #20c997;
}

.border-completed {
    border-left-color: #28a745;
}

.border-cancelled {
    border-left-color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .budget-toolbar .row {
        flex-direction: column;
    }

    .budget-toolbar .col-md-8,
    .budget-toolbar .col-md-4 {
        width: 100%;
        text-align: left;
    }

    .budget-toolbar .col-md-4 {
        margin-top: 15px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

        .form-actions button {
            width: 100%;
        }
}

/* Override site.css modal styles for HaushaltUsers page */
.budget-container .modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.budget-container .modal-dialog {
    position: relative !important;
    z-index: 10001 !important;
    width: 500px !important;
    max-width: calc(100% - 30px) !important;
}

.budget-container .modal-content {
    background-color: #ffffff !important;
    opacity: 1 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    overflow: visible !important;
}

/* Fix für durchsichtige Modals in der Benutzerverwaltung */
body .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

body .modal-dialog {
    background-color: transparent !important;
}

body .modal-content {
    background-color: white !important;
    opacity: 1 !important;
}

body .modal-header,
body .modal-body,
body .modal-footer {
    background-color: inherit !important;
    opacity: 1 !important;
}
