﻿.reports-header .back-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1f3b73;
    margin-bottom: 20px;
}

.reports-header .back-link .material-icons {
    font-size: 1.5rem;
    margin-right: 10px;
    color: #397DFA;
}

.reports-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.reports-header .subtitle {
    margin-top: 5px;
}

.reports-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 30px;
    height: calc(100vh - 120px);
}

.report-list-panel {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    background: #f0f5ff;
    color: #555;
    border: 1px solid #dbe3ff;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background-color: #397DFA;
    color: white;
    border-color: #397DFA;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.filter-action-btn {
    padding: 10px 15px;
    background-color: #397DFA;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.filter-action-btn .material-icons {
    font-size: 1.2rem;
}

.filter-dropdown-container {
    position: relative;
    display: inline-block;
}

.filter-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 20px;
    width: 320px;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.filter-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f3b73;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.date-range-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range-container input[type="date"] {
    flex: 1;
    min-width: 0;

    font-size: 0.85rem;

}

.date-separator {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
    outline: none;
    border-color: #397DFA;
    background-color: white;
}

.clear-filters-btn {
    width: 100%;
    padding: 10px;
    background-color: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    background-color: #e0e0e0;
    color: #333;
}

.incident-queue-list {
    flex-grow: 1;
}

.report-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.report-item:hover {
    background-color: #f8faff;
}

.report-item.selected {
    background-color: #eef3ff;
    border-left: 4px solid #397DFA;
    padding-left: 6px;
}

.report-thumbnail {
    width: 50px;
    height: 50px;
    background-color: #eee;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.report-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-info h4 {
    font-size: 1rem;
    color: #1f3b73;
    font-weight: 600;
}

.report-info p {
    font-size: 0.85rem;
    color: #777;
}

.report-item .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: capitalize;
    margin-left: auto;
}

.report-item .badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.report-item .badge.validated {
    background-color: #d4edda;
    color: #155724;
}

.report-item .badge.rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.report-item .badge.resolved {
    background-color: #cce5ff;
    color: #004085;
}

.view-btn {
    display: none;
}

.report-detail-panel {
    background: #ffffff;
    border-radius: 16px;

    padding: 30px 30px 0 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);

    display: flex;
    flex-direction: column;
    overflow: hidden;

}


.scrollable-detail-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 30px;

}


.detail-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 5px;

}

.detail-header h2 {
    font-size: 1.6rem;
    color: #1f3b73;
    margin: 0;
}


.report-id-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #a0a0a0;
    margin-top: 0;

    margin-bottom: 20px;

}


.user-link {
    color: #397DFA;
    font-weight: 600;
    text-decoration: none;
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;

    flex-shrink: 0;

}

.action-bar button {
    padding: 10px 18px;

    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.95rem;

    border: none;
    color: white;

}

.action-bar button .material-icons {
    font-size: 18px;
    margin-right: 8px;

}

.action-btn-primary {
    background-color: #397DFA;
    color: white;
    border: none;
}

.action-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.action-btn-delete {
    background-color: #dc3545;
    color: white;
    border: none;
}

.action-btn-warning {
    background-color: #dc3545;
    color: white;
    border: none;
}

.action-btn-delete-perm {
    background-color: #D32F2F;
    color: white;
    border: none;
}

.media-placeholder {
    width: 100%;
    height: 300px;
    min-height: 250px;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f6fc;
    border-radius: 12px;
    margin-bottom: 25px;

    border: 1px solid #eee;

    padding: 0;

}

.media-placeholder img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}



.details-section {
    display: grid;

    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.incident-details h3,
.location-details h3 {
    font-size: 1.1rem;
    color: #1f3b73;
    margin-bottom: 10px;
}

.detail-group {
    display: grid;

    grid-template-columns: 80px 1fr;
    gap: 10px;

    margin-bottom: 20px;
}

.detail-group p {

    width: 80px;
    font-weight: 600;
    color: #555;
    margin: 0;
    padding: 0;
}

.detail-group .detail-value {
    color: #333;

    font-weight: 500;
    word-break: break-word;

}

.location-details p {
    word-break: break-word;
    white-space: pre-wrap;
    font-size: 0.95rem;
}

.location-details .map-placeholder {
    height: 120px;
    background-color: #eee;
    border-radius: 8px;
    margin-top: 10px;
}



.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 0 !important;
    padding: 0;
}

.modal-content {
    margin: 20px auto;
    margin-bottom: 20px;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
    background-color: #fefefe;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.modal-content input[type="text"],
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.modal-content textarea {
    resize: vertical;
}

.modal-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 20px;
    margin-bottom: 15px;
}

.modal-grid-container .grid-item {
    width: 100%;
}

.full-width-field {
    margin-bottom: 15px;
}


.modal-content button[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    background-color: #397DFA;
    color: white;
    transition: background-color 0.2s;
}

.modal-content button[type="submit"]:hover {
    background-color: #194389;
}

@media (max-width: 1200px) {
    .reports-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .report-detail-panel {
        height: auto;
    }
}

@media (max-width: 768px) {
    .details-section {
        grid-template-columns: 1fr;
    }

    .action-bar {
        flex-direction: column;
    }

    .action-bar button {
        width: 100%;
    }

    .modal-content {
        width: 90%;
        margin: 5% auto;
    }

    .modal-grid-container {
        grid-template-columns: 1fr;
    }
}