* {
    margin: 0;
    padding: 0
}

html {
    height: 100%
}

p {
    color: grey
}

.section-reports {
    background-color: #fff;
    min-height: 100vh;
}

.section-heading {
    color: #007bff;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
}

.card-report {
    padding: 20px;
    border-left: 1px solid #007bff;
}

.table-container th.asc, .table-container th.des {
    background-color: #f5f5f5;
}

.table-container th.asc:after {
    font-family: FontAwesome;
    font-weight: 900;
    content: "\f0de";
    float: right;
}

.table-container th.desc:after {
    font-family: FontAwesome;
    font-weight: 900;
    content: "\f0dd";
    float: right;
}

/* Estilos para a coluna de foto do enriquecimento */
.enrichment-thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.enrichment-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Ajuste para badges na coluna de foto */
td .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .enrichment-thumbnail {
        width: 40px !important;
        height: 40px !important;
    }
}

#imageZoomModal .modal-xl {
    max-width: 1200px;
}

#imageZoomModal .modal-body {
    padding: 2rem;
    background-color: #f8f9fa;
}

#imageViewer {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
}

#imageViewer img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

#imageViewer img:hover {
    transform: scale(1.02);
}

#prevBtn,
#nextBtn {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid #dee2e6 !important;
}

#prevBtn:hover,
#nextBtn:hover {
    opacity: 1;
    background-color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#imageThumbnails .img-thumbnail {
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    opacity: 0.7;
}

#imageThumbnails .img-thumbnail:hover {
    border-color: #007bff;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
    opacity: 1;
}

#imageThumbnails .img-thumbnail.active {
    border-color: #007bff;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0,123,255,0.5);
}

#imageZoomModal .modal-footer button i,
#imageZoomModal .modal-footer a i {
    margin-right: 5px;
}

#downloadImageBtn,
#downloadAllImagesBtn {
    transition: all 0.3s ease;
}

#downloadImageBtn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33,136,56,0.3);
}

#downloadAllImagesBtn:hover {
    background-color: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(19,132,150,0.3);
}

#imageZoomModal #productCode {
    font-size: 1.1rem;
    color: #007bff;
}

#imageZoomModal #productDescription {
    color: #6c757d;
}

@media (max-width: 768px) {
    #imageZoomModal .modal-xl {
        max-width: 95%;
        margin: 1rem auto;
    }

    #imageZoomModal .modal-body {
        padding: 1rem;
    }

    #imageThumbnails .img-thumbnail {
        width: 60px !important;
        height: 60px !important;
    }

    #imageZoomModal .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    #imageZoomModal .modal-footer > div {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    #imageZoomModal .modal-footer button,
    #imageZoomModal .modal-footer a {
        width: 100%;
    }
}
