.data_table {
    margin: auto;
    border-radius: 15px;
    border: none;
    border-collapse: collapse;
    width: 70%;
    background-color: white;
    font-family: "Montserrat", sans-serif !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.data_table td, .data_table th {
    text-align: center;
    padding: 12px;
    min-width: 100px;
    font-family: "Montserrat", sans-serif !important;
}

.data_table td {
    border: 1px solid #ececec;
}

.data_table thead th {
    color: #ffffff;
    background: #9C6; /* #ab1db0 */
    border: none;
    text-transform: uppercase;
}

.data_table tr:nth-child(even) {
    background: #f2f2f2;
}

.data_table tr:nth-child(odd) {
    background: #ffffff;
}

.data_table tbody tr:hover {
    background: rgba(132, 200, 68, 0.25); /* Light blue hover effect */
    transition: 0.3s ease-in-out;
}

.custom_td {
    max-width: 150px;
    word-wrap: break-word;
}

.custom_td_id {
    max-width: 100px;
    word-wrap: break-word;
}

/* Mobile styles */
@media (max-width: 767px) {
    .data_table {
        display: block;
        width: 100%;
        margin-bottom: 40px;
        border-radius: 15px;
    }

    .table-wrapper:before {
        content: "Swipe to scroll >>";
        display: block;
        text-align: right;
        color: white;
        padding-bottom: 10px;
        font-family: "Montserrat", sans-serif !important;
    }

    .data_table thead, .data_table tbody, .data_table thead th {
        display: block;
    }

    .data_table thead {
        float: left;
    }

    .data_table tbody {
        width: auto;
        position: relative;
        overflow-x: auto;
    }

    .data_table td, .data_table th {
        padding: 12px;
        height: 90px;
        vertical-align: middle;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        width: 200px;
        text-overflow: ellipsis;
    }

    .data_table tbody tr {
        display: table-cell;
    }

    .data_table tbody td {
        display: block;
        text-align: center;
    }

    .data_table td.status-cell {
        height: auto; /* remove fixed 90px */
        min-height: 200px; /* give room for 2–3 buttons + labels */
        overflow-y: visible; /* no inner scrolling */
        overflow-x: hidden;
        white-space: normal; /* allow wrapping if needed */
    }

    .data_table th.status-head {
        height: auto;
        min-height: 200px;
    }

    .custom_td_id {
        max-width: 150px;
        word-wrap: break-word;
    }
}

/* Floating effect */
.frame {
    width: 575px;
    height: 505px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .frame {
        width: 75%;
        height: 505px;
        border-radius: 15px;
    }
}