.table-container {
    max-height: calc(100vh - 300px);
    position: relative;
    overflow: auto;
}

.table-col-stick th:first-child {
    position: sticky;
    left: 0px;
}

.table-col-stick td:first-child {
    position: sticky;
    left: 0px;
}

/*.table-col-stick td:first-child:not(.companyHeading) {*/
/* Add your custom styles here */
/*background-color: var(--bs-gray-200);
    }*/


small {
    font-size: 0.75rem;
    line-height: 100%;
    color: var(--bs-body-color);
}

.cl-red {
    color: #ff0000 !important;
}

th.rotated {
    height: 85px;
    padding: 0 0 8px 0;
}

    th.rotated span.rotated {
        display: inline-block;
        transform: translateY(-20px) rotate(-90deg);
    }

[data-sortfield] {
    color: var(--bs-table-color-state,var(--bs-table-color-type,var(--bs-table-color)));
    opacity: 0.3;
}

    [data-sortfield].active {
        opacity: 1;
    }

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.btn {
    background-color: var(--bs-link-color);
}

    .btn:hover {
        background-color: var(--bs-link-hover-color);
    }

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

    .nav-scroller .nav {
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        margin-top: -1px;
        overflow-x: auto;
        text-align: center;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
    z-index: 1500;
}

    .bd-mode-toggle .dropdown-menu .active .bi {
        display: block !important;
    }


.bi {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: -.125em;
    fill: currentColor;
}

header small a {
    color: var(--bs-secondary-color) !important;
    text-decoration: none;
    cursor: default;
}

/*
 * Sidebar
 */

@media (min-width: 768px) {

    .sidebar {
        position: fixed;
        min-height: 100%;
    }

        .sidebar .offcanvas-lg {
            position: -webkit-sticky;
            position: sticky;
            top: 48px;
        }

    .navbar-search {
        display: block;
    }
}

.sidebar .nav-link {
    font-size: .875rem;
    font-weight: 500;
}

    .sidebar .nav-link.active {
        color: #2470dc;
    }

.sidebar-heading {
    font-size: .75rem;
}

/*
 * Navbar
 */

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .form-control {
    padding: .75rem 1rem;
}

table thead {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2;
}

    table thead::before {
        position: absolute;
        inset: 0;
        content: '';
        background-color: var(--bs-border-color);
        z-index: -1;
    }

tr.odd td {
    /*background-color: none;*/
}

[data-bs-theme=light] {
    color-scheme: light;
    --alt-gripp-color: #f2f2f2;
}

[data-bs-theme=dark] {
    color-scheme: dark;
    --alt-gripp-color: #323539;
}

tr.even td {
    background-color: var(--alt-gripp-color);
}

tr.even {
    overflow: hidden;
}

    tr.even td.companyHeading:after {
        background-color: var(--alt-gripp-color);
        height: 100%;
        width: 1600px;
        content: '';
        display: inline-block;
        position: absolute;
        right: -1600px;
        top: 0;
    }

.monthName {
    text-transform: capitalize;
}

.companyHeading {
    cursor: pointer;
    font-weight: 600;
}

.companyTitle::before {
    content: '+';
    color: var(--bs-emphasis-color);
    margin-right: 10px;
    width: 20px;
}

.companyHeading.open .companyTitle::before {
    content: '-';
}

.companyRow {
    display: none;
}

/* Customer distribution */
.table-cd {
    min-width: 1200px;
    table-layout: fixed;
}

td.mainemployee {
    font-weight: 600;
    background-color: rgba(var(--bs-emphasis-color-rgb), 0.2);
    box-shadow: none;
}
/* Customer distribution end */

