/* ============================================
   Sorted Lists (with numbers from 1 to ...)
   ============================================ */

.report-list {
    list-style-type: decimal;
    margin-left: 1.5rem;
    padding-left: 0;
}

.report-list li {
    margin-bottom: 0.25rem;
}

/* ============================================
   Existing table styles (keep as you have them)
   ============================================ */

.report-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.5; background-color: #ffffff; border-radius: 0.5rem; overflow: hidden; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); }
.report-table thead tr { background-color: #E5E7EB; }
.report-table th { padding: 0.875rem 1rem; text-align: left; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #1F2937; border-bottom: 2px solid #9CA3AF; background-color: #E5E7EB; }
.report-table th:first-child { background-color: #E5E7EB; font-weight: 700; }
.report-table td { padding: 0.75rem 1rem; text-align: left; color: #374151; border-bottom: 1.5px solid #D1D5DB; vertical-align: top; }
.report-table td:first-child { font-weight: 600; background-color: #FAFAFA; }
.report-table tbody tr:hover { background-color: #F9FAFB; }
.report-table tbody tr:nth-child(even) { background-color: #FCFCFD; }
.table-container { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.25rem 0; border-radius: 0.5rem; border: 1px solid #E5E7EB; }
.table-container::-webkit-scrollbar { height: 8px; }
.table-container::-webkit-scrollbar-track { background: #E5E7EB; border-radius: 10px; }
.table-container::-webkit-scrollbar-thumb { background: #9CA3AF; border-radius: 10px; }
.table-container::-webkit-scrollbar-thumb:hover { background: #6B7280; }

/* ============================================
   Image & Lightbox Styles
   ============================================ */

/* Thumbnail styling */
.report-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
}

.report-image:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #9CA3AF;
}

/* Image caption */
.image-caption {
    text-align: center;
    font-size: 0.7rem;
    color: #6B7280;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Clickable cursor */
.clickable-image {
    cursor: pointer;
}

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

.lightbox-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Lightbox content container */
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Full-size image inside lightbox */
.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Close button using your SVG WebP icon */
.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 48px;
    height: 48px;
    background-image: url('../images/close-icon-svg.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* Fallback for close button if image fails */
.lightbox-close::after {
    content: "✕";
    display: none;
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

/* Responsive adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: -30px;
        right: -10px;
        width: 40px;
        height: 40px;
    }
    
    .report-image {
        max-width: 100%;
    }
}

@media print {
    .lightbox-overlay { display: none; }
    .clickable-image { cursor: default; }
    .report-image:hover { transform: none; box-shadow: none; }
}
