.table-scroll-wrapper {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px;
    width: 100%;
}


/* Custom table info / utils row*/
.table-header-header {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    margin-bottom: 1rem;
}
    .table-header-header .table-info {
        border-radius: 8px;
        /*height: 2rem;*/
        /*font-size: large;*/
    }
    .table-header-header .table-utils {
        margin-left: auto;
    }



/* For the more button & dropdown */
.btn-in-row {
    cursor: pointer;
    padding: 0;
}

.dropdown-menu {
    position: absolute;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px;
    border-radius: var(--border-radius);
    /* width: auto; */
    right: 0;
    /* transform: translateX(100%); */
}

.dropdown-menu button {
    display: block;
    width: 100%;
    padding: 5px 10px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-menu button:hover {
    background-color: #f0f0f0;
}

.no-results-cell {
    text-align: center;
    padding: 0.75rem;
}

/*.dropdown-panel {*/
/*    position: absolute;*/
/*    background-color: white;*/
/*    border: 1px solid #ddd;*/
/*    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);*/
/*    padding: 10px;*/
/*    margin-top: 10px;*/
/*    z-index: 1000;*/
/*}*/

.dropdown-panel ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.dropdown-panel ul li {
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-panel ul li:hover {
    background-color: #f1f1f1;
}

.table-page-buttons {
    display: flex;
    align-self: center;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.table-1 {
    width: 100%; /* Full-width */
    max-width: 100%;
    border-collapse: collapse; /* Collapse borders */
    box-sizing: border-box;
    text-align: left;
    overflow-x: hidden;
    overflow-y: visible;
    /*box-shadow: 0px 2px 8px 0px rgba(47, 45, 46, 0.05);*/
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    table-layout: auto;
    height: fit-content;

    thead {
        background-color: var(--beige-200);
        color: var(--beige-700);
        border-radius: 8px;
        height: 2rem;
    }

    /* Style table headers */
    th {
        /* padding: 0.75rem 2rem;  */
        /*padding: 0 1rem;*/
        font-size: var(--font-size-text-md);
        color: var(--text-color-light);
    }

    table th, table td {
        overflow: hidden; /* Hide overflow content */
        text-overflow: ellipsis; /* Add ellipsis for overflow text */
        white-space: nowrap; /* Prevent text from wrapping */
    }

    /* Way to give header a border radius */
    thead th:first-child {
        border-radius: var(--border-radius) 0 0 0;
    }
    thead th:last-child {
        border-radius: 0 var(--border-radius) 0 0;
    }

    /* Style table cells */
    td {
        font-size: var(--font-size-text-md);
        background-color: var(--beige-50);
        height: 100%;
    }

    tr {
        border-bottom: 1.5px solid var(--beige-100);
        height: 100%;
    }

    tr:last-child {
        border-bottom: none;
        height: 100%;
        
        td:first-child {
            border-bottom-left-radius: var(--border-radius);
        }
        td:last-child {
            border-bottom-right-radius: var(--border-radius);
        }
    }
    
    tr:last-child td {
        border-bottom: none;
    }

    /*tr:first-of-type {*/
    /*    border-bottom: none;*/
    /*}*/
}


.table-2-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    background-color: var(--white, white);
    border-radius: var(--border-radius);
    border: 1px solid var(--beige-200);
    padding: 0.5rem 1rem;
}


.table-2 {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse; /* Collapse borders */
    box-sizing: border-box;
    text-align: left;
    overflow: hidden;
    border-radius: var(--border-radius);
    table-layout: auto;
    height: fit-content;

    thead {
        border-radius: 8px;
        height: 2rem;
    }

    /* Style table headers */
    th {
        padding: 0.5rem 1rem 0.5rem 0rem;
        font-size: var(--font-size-text-md);
        color: var(--font-color-secondary);
        font-weight: var(--font-weight-light);
    }

    thead th:first-child {
        border-radius: 10px 0 0 0;
    }
    thead th:last-child {
        border-radius: 0 10px 0 0;
    }

    td {
        padding: 0.5rem 1rem 0.5rem 0rem;
        font-size: var(--font-size-text-md);
        height: 100%;
    }
    
    td:first-child {
        vertical-align: top;
    }

    tr {
        border-bottom: 1px solid var(--beige-100);
        height: 100%;
    }
    
    tr:last-of-type {
        border-bottom: none;
    }

    .cell-input {
        height: 2.25rem;
        width: 8rem;
        max-width: 100%;
        border-radius: 0.625rem;
        background: var(--beige-100, #F9F6F3);
        border: none;
        padding: 0.38rem 0.6rem;
    }
}