:root {
    --dt-bg-color: #ffffff;
    --dt-bg-opacity: 1;
}

.dt-af1942b6-container {
    background-color: rgba(var(--dt-bg-color), var(--dt-bg-opacity));
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.dt-af1942b6-search-wrapper {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
}

.dt-af1942b6-search-input {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.dt-af1942b6-search-input:focus {
    border-color: #3a3a3a;
}

.dt-af1942b6-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.dt-af1942b6-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dt-af1942b6-table th, 
.dt-af1942b6-table td {
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.dt-col-align-left { text-align: left; }
.dt-col-align-center { text-align: center; }
.dt-col-align-right { text-align: right; }

.dt-sortable {
    cursor: pointer;
    user-select: none;
}

.dt-af1942b6-header-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dt-af1942b6-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dt-af1942b6-sort-icon {
    font-size: 11px;
    opacity: 0.6;
}

/* Styled CTA Button inside Table Cell */
.dt-af1942b6-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Pagination */
.dt-af1942b6-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.dt-af1942b6-page-btn {
    background: #f4f4f4;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.dt-af1942b6-page-btn:hover:not(:disabled) {
    background: #e9e9e9;
}

.dt-af1942b6-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dt-af1942b6-page-info {
    font-size: 14px;
    font-weight: bold;
}

/* Responsive Modes */
@media (max-width: 767px) {
    .dt-af1942b6-mobile-scroll .dt-af1942b6-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dt-af1942b6-mobile-stack .dt-af1942b6-table, 
    .dt-af1942b6-mobile-stack .dt-af1942b6-table thead, 
    .dt-af1942b6-mobile-stack .dt-af1942b6-table tbody, 
    .dt-af1942b6-mobile-stack .dt-af1942b6-table th, 
    .dt-af1942b6-mobile-stack .dt-af1942b6-table tr, 
    .dt-af1942b6-mobile-stack .dt-af1942b6-table td {
        display: block;
    }

    .dt-af1942b6-mobile-stack .dt-af1942b6-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .dt-af1942b6-mobile-stack .dt-af1942b6-table tr {
        border: 1px solid #ccc;
        border-radius: 6px;
        margin-bottom: 15px;
        background-color: var(--dt-bg-color);
        padding: 10px;
    }

    .dt-af1942b6-mobile-stack .dt-af1942b6-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50% !important;
        text-align: right !important;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-height: 40px;
    }

    .dt-af1942b6-mobile-stack .dt-af1942b6-table td:last-child {
        border-bottom: 0;
    }

    .dt-af1942b6-mobile-stack .dt-af1942b6-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
}
