:root {
    --bs-font-sans-serif: 'Roboto', sans-serif;
    --bs-body-font-family: 'Roboto', sans-serif;
}

/********loading********/
@-webkit-keyframes outerRotate1 {
    0% {
        transform: translate(-50%, -50%) rotate(0);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@-moz-keyframes outerRotate1 {
    0% {
        transform: translate(-50%, -50%) rotate(0);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@-o-keyframes outerRotate1 {
    0% {
        transform: translate(-50%, -50%) rotate(0);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes outerRotate1 {
    0% {
        transform: translate(-50%, -50%) rotate(0);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@-webkit-keyframes outerRotate2 {
    0% {
        transform: translate(-50%, -50%) rotate(0);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@-moz-keyframes outerRotate2 {
    0% {
        transform: translate(-50%, -50%) rotate(0);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@-o-keyframes outerRotate2 {
    0% {
        transform: translate(-50%, -50%) rotate(0);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes outerRotate2 {
    0% {
        transform: translate(-50%, -50%) rotate(0);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@-webkit-keyframes textColour {
    0% {
        color: #fff;
    }

    100% {
        color: #f04c46;
    }
}

@-moz-keyframes textColour {
    0% {
        color: #fff;
    }

    100% {
        color: #f04c46;
    }
}

@-o-keyframes textColour {
    0% {
        color: #fff;
    }

    100% {
        color: #f04c46;
    }
}

@keyframes textColour {
    0% {
        color: #fff;
    }

    100% {
        color: #f04c46;
    }
}

.loading-group {
    background: #222;
    opacity: 0.7;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
}

.e-loadholder {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-51%, -50%);
    -moz-transform: translate(-51%, -50%);
    -ms-transform: translate(-51%, -50%);
    -o-transform: translate(-51%, -50%);
    transform: translate(-51%, -50%);
    width: 240px;
    height: 240px;
    border: 5px solid #b93b2d;
    border-radius: 120px;
    box-sizing: border-box;
}

.e-loadholder:after {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-51%, -50%);
    -moz-transform: translate(-51%, -50%);
    -ms-transform: translate(-51%, -50%);
    -o-transform: translate(-51%, -50%);
    transform: translate(-51%, -50%);
    content: " ";
    display: block;
    background: #222;
    transform-origin: center;
    z-index: 0;
}

.e-loadholder:after {
    width: 100px;
    height: 200%;
    -webkit-animation: outerRotate2 30s infinite linear;
    -moz-animation: outerRotate2 30s infinite linear;
    -o-animation: outerRotate2 30s infinite linear;
    animation: outerRotate2 30s infinite linear;
}

.e-loadholder .m-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-51%, -50%);
    -moz-transform: translate(-51%, -50%);
    -ms-transform: translate(-51%, -50%);
    -o-transform: translate(-51%, -50%);
    transform: translate(-51%, -50%);
    width: 200px;
    height: 200px;
    color: #888;
    text-align: center;
    border: 5px solid #d7685b;
    border-radius: 100px;
    box-sizing: border-box;
    z-index: 20;
    text-transform: uppercase;
}

.e-loadholder .m-loader:after {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-51%, -50%);
    -moz-transform: translate(-51%, -50%);
    -ms-transform: translate(-51%, -50%);
    -o-transform: translate(-51%, -50%);
    transform: translate(-51%, -50%);
    content: " ";
    display: block;
    background: #222;
    transform-origin: center;
    z-index: -1;
}

.e-loadholder .m-loader:after {
    width: 100px;
    height: 106%;
    -webkit-animation: outerRotate1 15s infinite linear;
    -moz-animation: outerRotate1 15s infinite linear;
    -o-animation: outerRotate1 15s infinite linear;
    animation: outerRotate1 15s infinite linear;
}

.e-loadholder .m-loader .e-text {
    font-size: 14px;
    font-size: 1.4rem;
    line-height: 130px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-51%, -50%);
    -moz-transform: translate(-51%, -50%);
    -ms-transform: translate(-51%, -50%);
    -o-transform: translate(-51%, -50%);
    transform: translate(-51%, -50%);
    -webkit-animation: textColour 1s alternate linear infinite;
    -moz-animation: textColour 1s alternate linear infinite;
    -o-animation: textColour 1s alternate linear infinite;
    animation: textColour 1s alternate linear infinite;
    display: block;
    width: 140px;
    height: 140px;
    text-align: center;
    border: 5px solid #e18e84;
    border-radius: 70px;
    box-sizing: border-box;
    z-index: 20;
}

.e-loadholder .m-loader .e-text:before, .e-loadholder .m-loader .e-text:after {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-51%, -50%);
    -moz-transform: translate(-51%, -50%);
    -ms-transform: translate(-51%, -50%);
    -o-transform: translate(-51%, -50%);
    transform: translate(-51%, -50%);
    content: " ";
    display: block;
    background: #222;
    transform-origin: center;
    z-index: -1;
}

.e-loadholder .m-loader .e-text:before {
    width: 110%;
    height: 40px;
    -webkit-animation: outerRotate2 3.5s infinite linear;
    -moz-animation: outerRotate2 3.5s infinite linear;
    -o-animation: outerRotate2 3.5s infinite linear;
    animation: outerRotate2 3.5s infinite linear;
}

.e-loadholder .m-loader .e-text:after {
    width: 40px;
    height: 110%;
    -webkit-animation: outerRotate1 8s infinite linear;
    -moz-animation: outerRotate1 8s infinite linear;
    -o-animation: outerRotate1 8s infinite linear;
    animation: outerRotate1 8s infinite linear;
}

#particleCanvas-White {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-51%, -50%);
    -moz-transform: translate(-51%, -50%);
    -ms-transform: translate(-51%, -50%);
    -o-transform: translate(-51%, -50%);
    transform: translate(-51%, -50%);
    width: 100%;
    height: 50%;
    opacity: 0.1;
}

#particleCanvas-Blue {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-51%, -50%);
    -moz-transform: translate(-51%, -50%);
    -ms-transform: translate(-51%, -50%);
    -o-transform: translate(-51%, -50%);
    transform: translate(-51%, -50%);
    width: 300px;
    height: 300px;
}
/** end loading */

/** start login */
.login-container {
    height: 100vh;
}
.login-container .left-side {
    background: url('/static/assets/img/login_cbmos.png') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container .right-side {
    background-color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.login-container .login-element {
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 280px;
    height: auto;
    z-index: 1;
    opacity: 0.9;
}
.login-container .form-container {
    width: 80%;
    max-width: 400px;
    background: #fff;
    padding: 30px;
    border-radius: 16px; /* Bo tròn góc */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Hiệu ứng bóng */
    position: relative;
    z-index: 2;
}
.login-container .form-control {
    border-radius: 8px;
}
.login-container .btn-primary {
    width: 100%;
    border-radius: 8px;
}
.login-container .form-label {
  display: inline-block;
  text-align: left;
  float: left;
}
.fs-8 {
    font-size: 12px;
}
label.error {
    color: red;
    font-size: 12px;
    text-align: left;
    display: block;
}
.login-container .footer {
    font-size: 12px;
    color: gray;
    position: absolute;
    bottom: 10px;  /* Dính xuống đáy */
    width: 100%;
    display: flex;
    justify-content: space-between; /* Căn trái - phải */
    padding: 0 20px;
    text-transform: uppercase;
}
.login-container .footer-right a {
    color: gray;
    text-decoration: none;
    margin-left: 15px; /* Giãn cách giữa các link */
}

.login-container .footer-right a:hover {
    text-decoration: underline;
}
.login-container .input-password {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}
.login-container .toggle-password {
    position: absolute;
    top: 52%;
    right: 15px; /* Căn lề phải */
    transform: translateY(-50%);
    cursor: pointer;
}
.login-container .otp-input {
  text-align: center;
}
.login-container .form-check-input:checked {
    background-color: #E0004D;
    border-color: #E0004D;
}
.login-container .form-check-input:focus {
    border-color: #E0004D;
    box-shadow: 0 0 0 0.25rem rgba(224, 0, 77, 0.25);
}
/* Khi màn hình nhỏ, ẩn cột trái */
@media (max-width: 768px) {
    .login-container .left-side {
        display: none;
    }

    /* Ảnh sẽ trở thành hình nền của cột phải */
    .login-container .right-side {
        background: url('/static/assets/img/login_cbmos.png') no-repeat center center;
        background-size: cover;
        padding: 20px;
    }
    .login-container .footer-left, .login-container .footer-right a {
        color: #fff;
    }
}
/** end login */

.navbar-nav .brand-image {
    max-height: 30px;
}

@media (min-width: 992px) {
    .sidebar-expand-lg.layout-fixed .app-sidebar {
        top: 100px;
        height: calc(100vh - 156.8px);
        bottom: 56.8px;
    }
}

.system-nav-link{
    color: white !important;
    font-size: 15px;
}

.system-nav-link:hover {
    background-color: #3366FF; /* Slightly lighter shade of #0052FF */
    color: white;
    border-radius: 5px;
}

.system-nav-link.active {
    background-color: #3366FF;
    color: white;
    border-radius: 5px;
}

.nav-link-function {
    color: black !important;
    text-transform: uppercase;
}

.nav-link-function:hover {
    background-color: rgb(230, 230, 230); 
    color: white;
}

.nav-link-function.active {
    color: #0052FF !important;
    border-bottom: 3px solid #0052FF;
}

.app-header-content{
    position: sticky;
    top: 56.8px;
    left: auto;
    right: auto;
    z-index: 1029; /* Ensure it stays above other elements */
}

.app-sidebar {
    box-shadow: none !important;
    border-right: 1px solid #ddd; /* Add a right border */
}

.nav-link-feature p{
    white-space: normal !important;
}

.nav-link-feature.active{
    background-color: #fff !important;
    color: #18181B !important;
}

/** fix tạm chờ Long áp dụng header */
.ant-card-body {
    padding-top: 16px !important;
}
td.ant-table-cell .ant-image {
    width: auto !important;
    height: auto !important;
}
td.ant-table-cell .ant-image-img {
    max-height: 100px;
}

#order-detail .nav-tabs > li.active > a, #profile-detail .nav-tabs > li.active > a {
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
    /* color: #001eff; */
    font-weight: 700;
    border-bottom: 3px solid #f59a23;
}

#myTab {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    padding-left: 0;
    margin-bottom: 0;
}

#myTab .nav-item {
    list-style: none;
}

#myTab .nav-item a {
    display: block;
    color: #6b7280;
    padding: 8px 24px;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s;
}

#myTab .nav-item.active a,
#myTab .nav-item a.active,
#myTab .nav-item a:hover {
    color: #222;
    border-top: 3px solid #ffb300;
    font-weight: 600;
    background: #fff;
}

.form-group {
    margin-bottom: 1rem !important;
}

td .img-responsive, .modal-body .img-responsive {
    max-width: 200px;
    max-height: 200px;
}
.btn-file .progress {
    display: none;
}