/* Table wrapper for scrolling content */
.table-wrapper {
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #E0E6F1;
    border-radius: 8px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    margin: 0 auto;
}

/* Table styling */
.data-table {
    width: 100%;            /* Fill the table wrapper */
    border-collapse: collapse;
    user-select: none;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1.5rem;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    line-height: 15.6px;
    text-align: left;
    border-bottom: 1px solid #E0E6F1;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .data-table td, .data-table th {
        max-width: 50vw; /* Limit column width to 50% of the viewport */
    }

    /* Truncate long text inside table cells */
    .truncate-text {
        display: block;
        max-width: 100%; /* Ensures truncation applies inside cells */
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

.data-table th {
    background-color: #F7F9FA;
    color: #0051E3;
}

.first-column {
    background-color: #F9FAFE;
    text-align: center;
}

/* Fixed overlay */
.fixed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
    );
    z-index: 5;
}

/* Fully Centered Fixed Button */
.fixed-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1000;
    text-align: center;
    font-size: 14px;
    background-color: #16a249;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid #16a249;
    transition: all 0.2s ease-in-out;
    min-width: 250px;
}

.fixed-button:hover {
    background-color: #107535;
}

/* Table label */
.table-label {
    position: relative;
    padding: 0.75rem 1.25rem 0.5rem 1.25rem;
    display: inline-block;
    background-color: #fff;
    z-index: 2000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-left: 1px solid #E0E6F1;
    border-right: 1px solid #E0E6F1;
    border-bottom: none;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 15.6px;
    text-align: left;
}

.table-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5%;
    height: 3px;
    width: 99%;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(to right, #0C9D57, #1787E0);
}

/* Blurred text for Email and Phone columns */
.blurred-text {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    font-weight: bold;
    letter-spacing: 1px;
    filter: blur(5px);
}
