﻿body {
    font-family: "Inter";
}

:root {
    --bb-header-color: #cbfbfb;
    --bb-header-bg: #e0fcfc; /*#702cf8*/ /*#F6C6CB, #F47920*/
    --bb-header-title: #F58634 --bb-dropdown-max-height: 500px;
}

.layout {
    --bb-layout-header-background: var(--bb-header-bg);
    --bb-layout-sidebar-banner-background: #cbfbfb;
    /*Màu backgroud title*/
    /* --bb-layout-sidebar-banner-background: var(--bb-header-bg);*/
    --bb-layout-header-color: var(--bb-header-color);
    /*Màu chữ title*/
    --bb-layout-title-color: var(--bb-header-title);
    --bb-layout-sidebar-width: 240px !important;
    --bb-layout-banner-font-size: 1.3rem !important;
    --bb-layout-headerbar-background: transparent !important;
    --bb-layout-header-height: 40px;
    --bb-layout-banner-logo-width: 35px;
}

    .layout:not(.has-footer) {
        --bb-layout-footer-height: 0px;
    }

.layout-header {
    border-bottom: 1px solid var(--bs-border-color);
}

    .layout-header .widget {
        margin-right: 2rem;
    }

.layout-banner {
    border-bottom: 1px solid var(--bs-border-color);
    background-color: var(--bb-layout-sidebar-banner-background);
}

.btn {
    /*Khoảng cách buttton và icon*/
    --bb-btn-label-margin-left: 10px !important;
}

/* .layout-banner .layout-logo {
        border: 1px solid var(--bb-header-color);
    }*/

.layout-side {
    border-right: 1px solid var(--bs-border-color);
}

.layout-footer {
    border-top: 1px solid var(--bs-border-color);
}

.dropdown-logout {
    --bb-logout-text-color: var(--bb-header-color);
    --bb-logout-text-max-width: 150px !important;
}

.logout-avatar {
    border-radius: 50%;
}

.dropdown-user img {
    border-radius: 50%;
}

.dropdown-menu {
    max-height: none;
}

.layout-drawer {
    padding: 6px;
    cursor: pointer;
}

.layout-header-bar {
    color: red !important;
}

.nav-link {
    padding: 4px;
    /*font-size:13px;*/
}


.widget {
    --bb-widget-toggle-color: var(--bb-header-color);
}

    .widget .dropdown-menu {
        --bs-dropdown-min-width: 16rem;
    }

    .widget .dropdown-body h3 {
        color: #666666;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .widget .dropdown-body h4 {
        color: #444444;
        font-size: 15px;
        margin: 0;
    }

    .widget .dropdown-body small {
        color: #999999;
        font-size: 10px;
        position: absolute;
        top: 0;
        right: 0;
    }

    .widget .dropdown-item {
        padding: 0.5rem 1rem;
        min-width: 100px;
    }

        .widget .dropdown-item > div:not(.progress):last-child {
            width: calc(100% - 40px);
        }

        .widget .dropdown-item.active,
        .widget .dropdown-item:active {
            color: inherit;
        }

        .widget .dropdown-item:not(:nth-of-type(odd)):active {
            background-color: inherit;
        }

    .widget .progress {
        height: 7px;
    }

.table-cell img {
    width: 46px;
    border-radius: var(--bs-border-radius);
}

.table-cell .progress {
    height: 6px;
    margin-top: .5rem;
}

.user-demo-address {
    margin-top: .25rem;
    font-size: 86%;
    color: #N0c4cc;
}

.table-users {
    height: calc(100% - 93px);
}

.cell-label {
    line-height: 35px;
}

.tabs {
    --bb-tabs-item-height: 25px !important;
}

.tabs-item .tabs-item-close {
    top: 0px !important;
    right: 0px;
}

.menu {
    --bb-menu-active-color: #ffdfdf;
    --bb-menu-bar-bg: #ffdfdf;
    --bb-menu-item-hover-bg: #ffdfdf;
    --bb-menu-item-hover-color: #000000;
}


.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #EE4D2D;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Đang tải...");
    }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@supports not selector(::-webkit-scrollbar) {
    .scroll {
        scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0);
        scrollbar-width: thin;
    }
}


/*Custom css*/
.valid-label {
    font-size: 0.7rem;
    color: red;
}

.box-button {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.btn-coupon {
    font-size: 0.8rem !important;
}

.lbl-custom-coupon {
    font-size: 0.8rem;
    white-space: nowrap;
    /*flex-shrink: 0;*/ /* Ngăn nhãn bị thu nhỏ */
    /*min-width: 80px;*/ /* Đặt chiều rộng tối thiểu */
}

.lbl-custom-title-coupon {
    font-size: 0.83rem;
}

@media (max-width: 1280px) {
    .lbl-custom-coupon {
        font-size: 0.7rem;
        /*white-space: nowrap;*/
    }
}


.default-tab {
    border: 1px solid #d7d7d7;
}

th {
    padding: 5px 10px;
}

/*td {
    padding: 0px 10px;
}*/

.header-combox-custom {
    padding: 5px 10px;
}

.content-combox-custom {
    padding: 0px 10px;
}


/*============ desktop view ============ */
@media all and (min-width: 992px) {

    .navbar .has-megamenu {
        position: static !important;
    }

    .navbar .megamenu {
        left: 0;
        right: 0;
        width: 75rem;
        margin-top: 2px;
        max-height: none;
    }
}

@media (max-width: 1280.98px) {
    .navbar .megamenu {
        left: 0;
        right: 0;
        width: 50rem;
        margin-top: 2px;
        max-height: 500px;
    }
}

/* ============ desktop view .end// ============ */


/* ============ mobile view ============ */
@media (max-width: 991px) {
    .navbar.fixed-top .navbar-collapse, .navbar.sticky-top .navbar-collapse {
        overflow-y: auto;
        max-height: 90vh;
        margin-top: 10px;
    }
}

/* ============ mobile view .end// ============ */


/*====CSS MEGA MENU====*/

.navbar-nav .nav-link.show {
    background-color: #389bdd;
    border-radius: 5px;
    color: unset;
}

.navbar-nav .nav-item {
    font-size: 14px;
    font-weight: 500;
    margin: 0 5px;
    transition: background-color 1s, border-radius 2s;
}

    .navbar-nav .nav-item:hover {
        background-color: #389bdd;
    }

    .navbar-nav .nav-item:hover {
        border-radius: 5px;
    }

/* ul.navbar-nav .nav-item:active {
		background-color: #f5bcbc;

	} */

.megamenu {
    padding: 1rem;
    background-color: #F8F9FA;
}

.dropdown-toggle::after {
    display: none !important
}

.col-megamenu .nav-link {
    padding: 4px;
    font-size: 13px;
}

.col-megamenu li {
    transition: background-color 0.5s linear;
}

    .col-megamenu li:hover {
        background-color: #d5e1ee;
    }

.col-megamenu a {
    text-decoration: none;
}


/*.dropdown-menu {
    display: block;
    transition: visibility .5s, opacity .5s;
    opacity: 0;
    visibility: hidden;
}

    .dropdown-menu.show {
        display: block;
        visibility: visible;
        opacity: 1;
    }

    .dropdown-menu li {
        line-height: 1.8;
    }*/

/*====END CSS MEGA MENU====*/
.smart-criteria {
    font-weight: 500;
    background-color: #ff6;
    color: #00f;
    margin-left: 5px;
}

.truncated-label {
    display: inline-block; /* Cần thiết để áp dụng text-overflow */
    max-width: 150px; /* Đặt chiều rộng tối đa phù hợp */
    white-space: nowrap; /* Ngăn nội dung xuống dòng */
    overflow: hidden; /* Ẩn phần nội dung tràn ra */
    text-overflow: ellipsis; /* Hiển thị dấu "..." */
    vertical-align: middle;
    cursor: pointer; /* Con trỏ hiển thị dạng tay khi hover */
}

.content-cbb {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
}

.label-item {
    width: 240px;
    font-size: 13px;
    font-weight: 500 !important;
}

    .label-item span {
        /* font-weight: 550 !important; */
        color: red
    }

/*.menu .menu-text {
    text-wrap: initial;
}
*/
