.tDownload {
}

    .tDownload .a {
        text-decoration: none;
        color: black;
        cursor: default;
    }

        .tDownload .a:hover {
            cursor: pointer;
        }

/* Scrollable container */
.validation-container {
    max-height: 450px; /* Visible height */
    overflow: auto; /* Enable both X & Y scrolling */
    border: 1px solid #dcdcdc;
    background-color: #fafafa;
    /* Optional scrollbar styling */
    scrollbar-width: auto;
    scrollbar-color: rgba(0,0,0,0.1) #ffffff;
}

/* Table */
.validation-table {
    width: max-content; /* Enables horizontal scrolling */
    min-width: 100%; /* Prevents table from shrinking */
    border-collapse: collapse;
    font-size: 13px;
}

    /* Sticky header */
    .validation-table thead th {
        position: sticky;
        top: 0; /* Stick vertically */
        z-index: 2; /* Stay above table body */
        background-color: #f0f0f0; /* Solid background required */
        font-weight: 600;
        border: 1px solid #ccc;
        padding: 6px;
        white-space: nowrap; /* Prevent header wrapping */
    }

    /* Table body cells */
    .validation-table td {
        border: 1px solid #ccc;
        padding: 6px;
        white-space: nowrap; /* Keeps columns aligned */
    }

/* Highlight styles */
.field-mismatch {
    background-color: #fff3cd; /* yellow */
    color: #856404;
}
.field_duplicate {
    background-color: #ffff1a;
    color: #003300;
}
.field_postload_delta {
    background-color: #b3d9ff;
    color: #003300;
}
.field_preload_delta {
    background-color: #ffd11a;
    color: #003300;
}
.critical-mismatch {
    background-color: #dc3545; /* red */
    color: #ffffff;
    font-weight: bold;
}
.field_success {
    background-color: #00cc44;
    color: #ffffff;
}
.card-hover {
    position: relative;
    overflow: hidden;
}

    .card-hover::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.25); /* brightness level */
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
        pointer-events: none; /* IMPORTANT */
    }

    .card-hover:hover::after {
        opacity: 1;
    }


.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1040;
}

.video-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    z-index: 1050;
    overflow: hidden;
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-weight: 600;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.video-modal video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    background: black;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

    .video-wrapper iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

.video-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 12px;
    z-index: 1050;
    overflow: hidden;
}
