:root {
    --tabs-panel-color: #212529;
}

.gwt-TabPanel {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--tabs-panel-color);
    width: 100%;
    height: 100%;
}

.gwt-TabBar {
    border-bottom: 2px solid var(--light-gray-border) !important;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    background: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.gwt-TabBarItem {
    padding: 0.5rem 1rem !important;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem !important;
    border-top-right-radius: 0.25rem !important;
    margin-bottom: -1px;
    background-color: transparent !important;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    text-decoration: none;
    color: var(--bs-nav-link-color) !important;
    margin-left: 0 !important;
    font-size: 1rem;
    text-align: inherit !important;
    font-weight: 500 !important;
}

.gwt-TabBarItem img:hover {
    filter: unset;
}

.gwt-TabBarItem .img-btn:hover {
    background-color: unset;
}

.gwt-TabBarItem:hover img {
    filter: brightness(0);
}

.gwt-TabBarItem:hover {
    background-color: #f4f5f5 !important;
}

.gwt-TabBarItem-selected {
    background-color: var(--selection-gray-background-color) !important;
    border-bottom: 2px solid black;
    cursor: pointer !important;
    color: black !important;
}

.gwt-TabBarItem-selected:hover {
    background-color: #d3d3d3 !important;
    border-bottom: 2px solid black;
}

.gwt-TabBarItem-selected img {
    filter: brightness(0);
}

.gwt-TabBarFirst, .gwt-TabBarRest {
    display: none;
}

.gwt-TabPanelBottom {
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
    overflow: auto !important;
    border-width: 0 !important;
    height: 100%;
    /*    scrollbar-width: thin;*/
    /*    scrollbar-color: #afb3b7 transparent;*/
}

.gwt-TabPanelBottom::-webkit-scrollbar {
    width: 5px;
    background: transparent;
}

.gwt-TabPanelBottom::-webkit-scrollbar-thumb {
    background: var(--gray-scrollbar-color);
    border-radius: 5px;
    margin-left: -15px;
}

.gwt-TabPanelBottom::-webkit-scrollbar-button {
    display: block;
    height: 5px;
    border-color: transparent transparent var(--gray-scrollbar-color) transparent;
}

.gwt-TabPanelBottom:hover::-webkit-scrollbar-thumb,
.gwt-TabPanelBottom:active::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
}

.gwt-PopupPanelGlass {
    z-index: 5000;
    transition: all 0.3s ease-out;
}

.gwt-PopupPanelGlass.show {
    opacity: 0.4;
}

.com-google-gwt-resources-client-CommonResources-InlineBlockStyle-inlineBlock {
    height: 100%;
}

.com-google-gwt-user-cellview-client-CellList-Style-cellListSelectedItem {
    background-color: var(--sidebar-background-hover) !important;
    color: white !important;
}

.main-table .com-google-gwt-user-client-ui-CustomScrollPanel-Style-customScrollPanel {
    background-color: white;
}

.gwt-RootLayoutPanel {
    overflow: hidden;
}

.gwt-CheckBox > input {
    cursor: pointer;
}

.com-google-gwt-user-client-ui-NativeVerticalScrollbar-UiStyle-viewport {
    transform: scaleX(0.75);
}

.gwt-TabBarItem-disabled {
    cursor: help !important;
}

.com-google-gwt-user-client-ui-CustomScrollPanel-Style-customScrollPanel tr:not([__gwt_row]) {
    border-bottom: none !important;
}
