/* css for top bar */
body.content-layout-fixed > header,
.top-bar-fixed {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    z-index: 998;
}
body.content-layout-fixed > nav.wapper-footer-nav,
.tab-bar-fixed {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    z-index: 999;
}
body.content-layout-fixed > #wrapper,
.content-fixed {
    position: fixed;
    left: 0px;
    right: 0px;
    z-index: 997;
    overflow-y: auto;
    scrollbar-width: thin;
}

.wapper-top-bar {
    background-color: var(--nav-bg-color);
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding-bottom: 10px;
    gap: 16px;
    min-height: 86px;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.wapper-top-bar .topb-item {
    white-space: nowrap;
}

.wapper-top-bar * {
    color: var(--nav-text-color);
    font-weight: var(--nav-fontweight);
}

.wapper-top-bar .btn,
.btn-custom-css {
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    border-width: 0 0 0 0 !important;
    -moz-box-shadow: 0px 0px 0px 0 rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 0px 0px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 0px 0 rgba(0, 0, 0, 0.2);
    padding: 0px 0px;
}
.wapper-top-bar .center-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
}

.wapper-top-bar .right-title {
    justify-content: flex-end;
    width: auto;
    max-width: 75px;
}

.wapper-top-bar .left-title-icon {
    justify-content: flex-start;
    width: auto;
    max-width: 75px;
}
.wapper-top-bar .left-title-icon .l-label {
    margin-left: -15px;
}
body.page-familys .wapper-top-bar .left-title-icon .left-icon,
body.page-groups .wapper-top-bar .left-title-icon .left-icon {
    margin-top: -3px;
}
body.page-familys .wapper-top-bar .left-title-icon .l-label,
body.page-groups .wapper-top-bar .left-title-icon .l-label {
    margin-left: 0px;
}

.wapper-top-bar .c-label,
.wapper-top-bar .l-label,
.wapper-top-bar .r-label {
    font-size: var(--fsize-medium-under);
    line-height: var(--line-height-22);
}

.wapper-top-bar .left-title-icon,
.wapper-top-bar .left-title-icon a {
    display: flex;
    flex-direction: row;
    margin-left: 10px;
    align-items: center;
    padding: 0px;
    margin-left: 8px;
}

.wapper-top-bar .right-title {
    margin-right: 15px;
    width: unset;
    height: unset;
}

/* css for bottom sidebar */
.wapper-bottom-nav {
    background-color: var(--sidebar-bg-color);
    color: var(--sidebar-text-color);
    position: fixed;
    bottom: 0;
    width: 100vw;
    z-index: 999;
}
.wapper-bottom-nav:before {
    display: block;
    width: 100%;
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    height: 0px;
    content: " ";
    border-top: 1px solid var(--sidebar-border-color);
}

.wapper-bottom-nav .item-add {
    margin-top: -25px;
}

.wapper-bottom-nav .item-add .item-icon img {
    width: 85px;
    height: 85px;
}

.wapper-bottom-nav .list-btn {
    display: flex;
    flex-flow: nowrap;
    position: relative;
    z-index: 1000;
}
.wapper-bottom-nav .list-btn .active {
    position: relative;
}
.wapper-bottom-nav .list-btn .active:before {
    position: relative;
    border-top: 2px solid var(--sidebar-border-active-color);
    content: " ";
    display: block;
    width: 100%;
    top: -11px;
}

.wapper-bottom-nav .list-btn .link-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
}

.wapper-bottom-nav a .item-label {
    color: var(--sidebar-text-color);
}

.wapper-bottom-nav .active .item-label{
    color: var(--sidebar-text-color-active) !important;
}

.wapper-bottom-nav .item-rectangle-box {
    position: fixed;
    bottom: 47px;
    left: 50vw;
    z-index: -1;
    width: 86px;
    height: 86px;
    background-color: var(--sidebar-bg-color);
    transform: translate(-50%, 50%);
}

.wapper-bottom-nav .item-border-circle {
    border-radius: 100px;
    position: fixed;
    bottom: 60px;
    left: 50vw;
    z-index: -2;
    width: 86px;
    height: 86px;
    background-color: var(--sidebar-bg-color);
    border: 1px solid var(--sidebar-border-color);
    transform: translate(-50%, 50%);
}


/* css for nav tabs */
.tabs-wapper {
    position: relative;
    top: 0;
    background-color: var(--tabs-bg-color) !important;
}
.tabs-wapper:after {
    border-bottom: 1px dashed var(--tabs-border-color-active) !important;
    position: absolute;
    width: 100vw;
    bottom: -1px;
    z-index: -1;
}

.bg-tabs {
    background-color: var(--tabs-bg-color);
    position: absolute;
    min-height: 52px;
    width: 100vw;
    top: -8px;
    z-index: -1;
}

.nav-customer {
    padding-bottom: 3px;
    display: flex;
    border: unset;
    box-shadow: unset;
    padding-bottom: 0px;
}

.nav-customer li:first-child{
    margin-left: 5px;
}

.nav-customer li:last-child{
    margin-right: 5px;
}

.nav-customer .nav-link{
    color: var(--nav-text-color);
    font-weight: var(--nav-fontweight);
}

.nav-customer>li {
    flex: 1;
    border-radius: 12px 12px 0px 0px;
    text-align: center;
    background-color: var(--tabs-bg-item-color);
}

.nav-customer>li.active{
    background-color: var(--tabs-bg-color-active);
}

.nav-customer>li:hover {
    background-color: var(--tabs-bg-color-active);
}

.nav-customer>li>a:hover {
    background-color: var(--tabs-bg-color-active)!important;
    color: var(--tabs-text-color-active)!important;
    border: 1px dashed var(--tabs-border-color-active)!important;
    border-bottom: unset!important;
}
.nav-customer>li>.nav-link:focus,
.nav-customer>li>.nav-link:hover,
.nav-customer>li>.nav-link:hover li {
    background-color: var(--tabs-bg-color-active)!important;
    color: var(--tabs-text-color-active)!important;
}

.nav-customer .nav-link{
    border: 1px dashed var(--tabs-border-color);
    border-radius: 12px 12px 0px 0px;
    text-align: center;
    color: var(--tabs-text-color);
    font-weight: var(--nav-fontweight);
    margin: 5px 5px 0 5px;
    border-bottom: unset;
}

.nav-customer .nav-item.show .nav-link, .nav-customer .nav-link.active{
    color: var(--tabs-text-color-active);
    border-radius: 12px 12px 0px 0px;
    border: 1px dashed var(--tabs-border-color-active);
    border-bottom: unset;
    background-color: var(--tabs-bg-color-active);
    font-weight: var(--nav-fontweight);
}

.nav-customer .nav-link.active{
    position: relative;
}

.nav-customer .nav-link.active::before{
    content: "";
    width: 100%;
    height: 2px;
    background-color: var(--tabs-bg-color-active);
    position: absolute;
    bottom: -5px;
    left: 0;
    z-index: 1;
}

.border-tabs{
    border-bottom: 1px dashed var(--tabs-border-color-active)!important;
    position: absolute;
    width: 100vw;
    bottom: -2px;
    z-index: -1;
}

@media screen and (max-width: 430px) {
    .wapper-bottom-nav a .item-label {
        font-size: var(--fsize-small);
    }
}
