.datatableContainer {
    background-color: white;
    width: 100%;
}
.dataTable {
    border: 1px solid gainsboro;
    border-collapse: collapse;
    width: 100%;
    min-width: max-content; /* allows horizontal scroll */
}

.dataTable th,
.dataTable td {
    font-size: 0.8rem;
    border-bottom: 1px solid gainsboro !important;
}

.dataTable thead tr {
    background-color: rgb(215, 227, 245);
}

.dataTable tbody tr td {
    background-color: white;
    color: gray;
    font-weight: 400;
}

.dataTable tbody tr:hover {
    background-color: rgb(245, 245, 247) !important;
}

.datatableContainer .top {
    color: gray;
    font-size: 0.8rem;
    font-weight: 350;
    margin-bottom: 0.25rem;
}
.datatableContainer .top .dataTables_filter input {
    padding: 0.25rem 0.5rem;
    border: 1px solid gainsboro;
    font-size: 0.8rem;
    border-radius: 3px;
    font-weight: 450;
    color: gray;
    width: 15rem; 
    outline: none;
}
.datatableContainer .top .dataTables_length select {
    padding: 0.25rem 0.5rem;
    border: 1px solid gainsboro;
    font-size: 0.8rem;
    border-radius: 3px;
    font-weight: 450;
    color: gray;
    width: 4rem; 
    outline: none;
}
.datatableContainer .top .dt-buttons button {
    padding: 0.25rem 0.4rem;
    margin: 0;
    border: none;
    font-size: 0.75rem;
    border-radius: 3px;
    font-weight: 350;
    color: gray;
    background-color: #f9e9e9;
    outline: none;
}
.datatableContainer .top .dt-buttons button:hover {
    background-color: #f8bdbd !important; 
    color: black !important;
    border: none !important;
}
.datatableContainer .bottom {
    color: gray;
    font-size: 0.8rem;
    font-weight: 350;
    margin-top: 0.25rem;
}



.last-column {
    text-align: center;
    width: 5rem;
}
.action-dot {
    cursor: pointer;
    position: relative;
    width: 2rem;
    margin: auto;
    font-size: 1rem;
}
.menu-box {
    display: none;
    position: absolute;
    top: 100%; 
    left: -50%;
    background-color: white;
    border: 1px solid gainsboro;
    box-shadow: var(--default-boxshadow);
    z-index: 999;
    padding: 0;
    width: 8rem;
    font-weight: 500;
} 
.menu-box ul {
    list-style: none;
}
.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.menu-item a {
    width: 100% !important;
    padding: 0.25rem 0.5rem;
    color: black;
    font-size: 0.9rem;
    font-family: "Montserrat",sans-serif;
    text-decoration: none;
}
.menu-item a:hover {
    background-color: rgb(235, 248, 241);
    font-weight: 600;
}
.status-text {
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    display: inline-block;
    padding: 0.25rem 0.35rem;
    font-size: 0.75rem;
}
table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
    margin-right: .5em;
    display: inline-block;
    color: white;
    background-color: cornflowerblue;
    padding: 0 0.35rem 0 0.35rem;
    border-radius: 25px;
    border: 2px solid gainsboro;
    font-weight: 600;
    content: "+";
}
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th.dtr-control:before {
    background-color: orangered;
    padding: 0 0.45rem 0 0.45rem;
    content: "-";
}


@media screen and (max-width: 767px) {
    .datatableContainer .top {
        flex-direction: column;
    }
    .datatableContainer .bottom {
        flex-direction: column;
    }
    .datatableContainer .top .dataTables_filter, .datatableContainer .top .dataTables_length, .datatableContainer .top .dt-buttons {
        text-align: center;
        margin: 0.25rem 0;
    }
    .datatableContainer .bottom .dataTables-info, .datatableContainer .top .dataTables-paginate {
        text-align: center;
        margin: 0.25rem 0;
    }
}
@media screen and (min-width: 768px) {
    .datatableContainer .top {
        flex-direction: row;
    }
    .datatableContainer .bottom {
        flex-direction: row;
    }
    .datatableContainer .top .dataTables_filter, .datatableContainer .top .dataTables_length, .datatableContainer .top .dt-buttons {
        width: 100%;
        margin: auto;
    }
    .datatableContainer .bottom .dataTables-info, .datatableContainer .top .dataTables-paginate {
        width: 100%;
        margin: auto;
    }
}