/*Following is part of Colvis DataTables, to have a scrollable column dropdown */
div.dt-button-collection {
    max-height: 200px;
    overflow-y: auto;
}
.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 50px;
    height: 24px;
    background-color: #343a40;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
}
.toggle-switch .switch {
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s;
}
.toggle-switch.toggle-on .switch {
    transform: translateX(30px);
}
.toggle-switch.toggle-on {
    background-color: #007bff;
}
a.disabled {
  pointer-events: none;
  cursor: default;
}

/* todo, add a table-first-column-fixed-striped rather than single color*/
.table-first-column-fixed tbody td:first-child,
.table-first-column-fixed thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1050;
    background-color: var(--bs-table-striped-bg);
}


.warning-message {
        margin-top: 20px;
        padding: 10px;
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
        border-radius: 4px;
    }

.square-25px{
    width: 25px;
    height: 25px;
}

.square-20px{
    width: 20px;
    height: 20px;
}

.overflow-y-scroll{
        overflow-y: scroll !important;
}

.overflow-x-scroll{
        overflow-x: scroll !important;
}

.hide-scrollbar{
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.text-xs{
    font-size:.65rem;
}

td .data-bar-container {
    position: relative;
    width: 100%;
    height: 20px;
}

td .data-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    background-color: #1E90FF;
    transition: width 0.2s;
}

td .data-bar-text {
    position: relative;
    padding-left: 10px;
    color: white;
    font-size: 14px;
    white-space: nowrap;
}
