.nav-pills .btn-tab {
    background-color: var(--bs-gray-200);
    color: var(--bs-gray-700);
}

.nav-pills .btn-tab.active {
    background-color: white;
    color: var(--bs-primary);
    border: .065em solid var(--bs-gray-400);
}

.btn-tab .btn-group {
    background-color: var(--bs-gray-200);
}

.col-vstretch {
    height: calc(100vh - 11.75em);
}

.overflow-vertical {
    overflow-y: auto;
}

.scrollable-accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);
    font-size: 1rem;
    color: var(--bs-accordion-btn-color);
    text-align: left;
    background-color: var(--bs-accordion-btn-bg);
    border: 0;
    overflow-anchor: none;
    transition: var(--bs-accordion-transition);
}

.scrollable-accordion-button:not(.collapsed)::before {
    background-image: var(--bs-accordion-btn-active-icon);
    transform: var(--bs-accordion-btn-icon-transform);
}

.scrollable-accordion-button::before {
    flex-shrink: 0;
    width: var(--bs-accordion-btn-icon-width);
    height: var(--bs-accordion-btn-icon-width);
    margin-left: auto;
    content: "";
    background-image: var(--bs-accordion-btn-icon);
    background-repeat: no-repeat;
    background-size: var(--bs-accordion-btn-icon-width);
    transition: var(--bs-accordion-btn-icon-transition);
}

.scrollable-accordion-button:hover {
    z-index: 2;
}

.scrollable-accordion-button:focus {
    z-index: 3;
    outline: 0;
}

.accordion-item {
    border-width: 0 0 0 10px !important;
    border-style: solid !important;
    border-color: transparent !important;
}

.accordion-item:has(.scrollable-accordion-button:not(.collapsed)) {
    border-color: var(--bs-primary) !important;
    transition: border-color 0.5s ease;
}

.accordion-item:has(.scrollable-accordion-button.collapsed) {
    border-color: transparent !important;
    transition: border-color 0.5s ease;
}

#sidebar {
    /* Subtract the navbar height so that we don't have unnecessary overflow */
    min-height: calc(100vh - 85px) !important;
}

.grade-A {
    color: #38AB8B;
}

.grade-B {
    color: #7CC99E;
}

.grade-C {
    color: #EFC549;
}

.grade-D {
    color: #F09843;
}

.grade-F {
    color: #D85858
}

.metric-detail:not(.show) {
    display: none!important;
}

.metric-button {
    border-style: solid;
    border-width: 0px 0px 0px 10px;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    position: relative;
    left: 0;
    transition: left 150ms ease-in;
}

.metric-button.active {
    left: 10px;
}

.metric-button > .metric-arrow {
    width: 20px;
    height: 20px;
    content: "";
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3E%3Cpath                     d='M1.646 4.646a.5.5 0 0 1 .808 0L8 10.293l5.646-5.647a.5.5 0 0 1 .908.908l-6.2 6.2a.5.5 0 0 1-.708 0l-6.15-6.25a.5.5 0 0 1.908-.908z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 150ms ease-in;
    display: inline-block;
    transform: rotate(90deg);
    vertical-align: middle;
}

.metric-button:not(.active) > .metric-arrow {
    transform: rotate(-90deg);
}

.metric-button.active > .metric-arrow {
    filter: invert(29%) sepia(99%) saturate(888%) hue-rotate(190deg) brightness(91%) contrast(92%);
}

.b-left {
    border-style: solid;
    border-width: 0 0 0 .1rem;
    border-color: var(--bs-border-color);
}

.dt-font-md {
    font-size: 14px;
}

.dt-font-sm {
    font-size: 12px;
}

.overflow-scroll::-webkit-scrollbar {
    display: none;
}

.content {
    width: 83.33%;
}

#sidebar .nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background: none !important;
}

#sidebar .nav-pills .nav-link.active::before {
    display: block;
    content: '\F22D';
    font-family: "bootstrap-icons";
    line-height: 2.25rem;
    width: 1.25rem;
    float: right;
    padding-left: 10px;
    background: linear-gradient(to left, #E2E3E3, #B2B2B2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor-link {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cursor-link:hover {
    transform: scale(1.05);
}

