/* custom.css */

.table-scroll-wrapper {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #ccc transparent;
}

.table-scroll-wrapper::-webkit-scrollbar {
    width: 6px;
}

.table-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 3px;
}

/* 🔥 Responsive table fix */
@media (max-width: 576px) {
    table thead {
        display: none;
    }

    table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 12px 15px;
        background: #f9f9f9;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 6px 0;
        border: none !important;
        border-bottom: 1px dashed #eee !important;
        font-size: 13px;
    }

    table tbody td:last-child {
        border-bottom: none !important;
    }

    /* Labels */
    table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
        flex-basis: 40%;
        flex-shrink: 0;
        text-align: left;
        white-space: nowrap;
        margin-right: 8px;
    }

    /* Values */
    table tbody td {
        word-break: normal;
        white-space: normal;
        overflow-wrap: anywhere;
        flex-basis: 60%;
        text-align: right;
    }

    td[data-label="Fund Description"] {
        text-align: left;
    }
}

/* 🔥 Top controls (Show + Search) */
.dataTables_length,
.dataTables_filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.dataTables_length select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2c2f36;
    color: #fff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.dataTables_filter input {
    padding: 6px 10px;
    border-radius: 6px 0 0 6px;
    border: 1px solid #444;
    background: #2c2f36;
    color: #fff;
    font-size: 14px;
    width: 220px;
    outline: none;
}

.dataTables_filter button {
    padding: 6px 12px;
    border-radius: 0 6px 6px 0;
    border: none;
    background: #0d6efd;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}
.dataTables_filter button:hover {
    background: #0b5ed7;
}
