body {
    background-color: #eee !important;
}

.form-group {
    margin-bottom: 1rem;
}

.control-label {
    font-weight: 600;
}

.help-block {
    color: red;
}

.no-padding-side {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.padding-tb-05 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.padding-tb-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.padding-b-0 {
    padding-bottom: 0 !important;
}

.padding-t-0 {
    padding-top: 0 !important;
}

.margin-b-0 {
    margin-bottom: 0 !important;
}

.margin-tb-05 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.margin-tb-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.content-full-width {
    padding: 0;
    width: 100%;
}

.menu-content {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.row-map {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.custom-text-summary {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* number of lines to show */
    -webkit-box-orient: vertical;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

.custom-menu {
    background-color: #f3f3f3;
    border-bottom: #1778F9 3px solid;
}

.custom-nav-link {
    margin-bottom: 0;
    margin-top: 0;
    border-radius: 0;
    color: black;
    padding: 10px 15px;
}

.custom-nav-link.active {
    background-color: #1778F9;
    color: #ffffff;
}

.custom-nav-link:hover {
    background-color: #1778F9;
    color: #ffffff;
}

.content-header-top {
    height: 40px;
    background-color: #1778F9;
}

.display-5 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.25;
}

.display-6 {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.25;
}

.banner-block-list {
    display: flex;
    flex-direction: column;
    padding: 0px;
    margin-top: 2px;
    border-left: 1px solid rgba(0, 0, 0, 0.0705882);
}

/* line 1005, demo/static/demo/css/main.scss */
.banner-block-list .banner-block {
    overflow: hidden;
    border-bottom: solid 1px rgba(255, 255, 255, 0.27);
    border-bottom-style: dashed;
    background-color: #1677F8;
    vertical-align: middle;
    /*background-image: url(http://demo.interface.club/limitless/assets/images/bg.png);*/
    /*background-repeat: repeat;*/
}

.banner-block-list .banner-block .icon {
    position: absolute;
    right: 10px;
    color: rgba(14, 14, 14, 0.06);
    bottom: 5px;
}

/* line 1018, demo/static/demo/css/main.scss */
.banner-block-list .banner-block .icon i {
    font-size: 45px;
}

/* line 1022, demo/static/demo/css/main.scss */
.banner-block-list .banner-block .heading {
    padding: 15px;
    color: white;
    font-weight: 900;
    font-size: 15px;
    /*font-family: 'Montserrat';*/
}

/* line 1031, demo/static/demo/css/main.scss */
.banner-block-list .banner-block .heading a {
    color: white;
}

/* line 1036, demo/static/demo/css/main.scss */
.banner-block-list .banner-block:last-child {
    border-bottom: none;
}

/* line 1039, demo/static/demo/css/main.scss */
.banner-block-list .banner-dichvucong {
    background-color: #3F93DF;
}

/* line 1042, demo/static/demo/css/main.scss */
.banner-block-list .banner-phattriencn {
    background-color: #3F93DF;
}

/* line 1045, demo/static/demo/css/main.scss */
.banner-block-list .banner-nckh {
    background-color: #3F93DF;
}

/* line 1048, demo/static/demo/css/main.scss */
.banner-block-list .banner-doimoisangtao {
    background-color: #3F93DF;
}

@media (max-width: 768px) {

    /* line 1054, demo/static/demo/css/main.scss */
    .banner-block-list {
        padding-left: 0px;
    }
}

.clickable {
    width: 100%;
    height: 100%;
    /*Important:*/
    position: relative;
    margin-bottom: 0px;
}

.link-spanner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.btn-options {
    width: 2rem;
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

.select2-selection--multiple {
    height: 38px;
}

.select2-search__field {
    padding: .375rem .75rem !important;
    font-size: 1rem !important;
    font-weight: 400;
    line-height: 1.5 !important;
    margin: 0 !important;
    height: 36px !important;
}

.nav-main-submenu {
    width: max-content !important;
}

.nav-main-submenu .nav-main-link {
    font-size: 1rem;
    color: rgb(12, 40, 77);
}

.select2-selection--single {
    padding-right: 2rem !important;
}

.text-right {
    text-align: right !important;
}

.kv-editor-container .note-editable {
    font-family: Nunito !important;
    font-size: 1rem !important;
}

.block-themed>.block-header .block-content {
    border: 1px solid #0665d0 !important;
}

.block-content>p {
    margin-bottom: 0rem;
}

.block-rounded-dost {
    border-radius: var(--bs-border-radius-lg) !important;
}

.block-rounded-dost>.block-header {
    border-top-left-radius: var(--bs-border-radius-lg) !important;
    border-top-right-radius: var(--bs-border-radius-lg) !important;
}

.block-rounded-dost:not(:has(.block-header))>.block-content:first-child {
    border-radius: var(--bs-border-radius-lg) !important;
}

.block-rounded-dost>.block-content:last-child {
    border-bottom-left-radius: var(--bs-border-radius-lg) !important;
    border-bottom-right-radius: var(--bs-border-radius-lg) !important;
}

.block-rounded-dost>div:last-child {
    border-bottom-left-radius: var(--bs-border-radius-lg) !important;
    border-bottom-right-radius: var(--bs-border-radius-lg) !important;
}

.block-rounded-dost>.block-content:last-child>div {
    border-bottom-left-radius: var(--bs-border-radius-lg) !important;
    border-bottom-right-radius: var(--bs-border-radius-lg) !important;
}

.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.global-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Loader kiểu progress bar */
.loader {
    width: 120px;
    height: 22px;
    border-radius: 20px;
    color: #940000;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.loader::before {
    content: "";
    position: absolute;
    margin: 2px;
    inset: 0 100% 0 0;
    border-radius: inherit;
    background: currentColor;
    animation: l6 2s infinite;
}

@keyframes l6 {
    100% {
        inset: 0;
    }
}

.loading-text {
    margin-top: 1rem;
    font-weight: 500;
    color: #940000;
    font-family: 'Nunito', sans-serif;
    animation: fadeText 1.6s ease-in-out infinite alternate;
}

@keyframes fadeText {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}

/* Lớp phủ Loading */
.custom-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    /* Nền trắng đục */
    z-index: 100;
    display: none;
    /* Mặc định ẩn */
    justify-content: center;
    align-items: center;
    flex-direction: column;

    /* Hiệu ứng mờ dần */
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Class để kích hoạt hiệu ứng mờ */
.custom-loader.fade-out {
    opacity: 0;
}

/* Spinner xoay */
.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #cf0000;
    /* Màu đỏ chủ đạo */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* NQ57 */

#page-container {
    background-color: #e2e2e2 !important;
}

.header-hcmc {
    background-color: #fff !important;
}

.header-brand a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-hcmc {
    height: 44px;
    width: auto;
    display: block;
}

.text-hcmc {
    color: #940000 !important;
}

.btn-hcmc,
.btn-hcmc:hover,
.btn-hcmc:active {
    color: #FFFFFF !important;
    background-color: #940000 !important;
    border: 1px solid #940000 !important;
}

.content-header {
    height: 3.5rem !important;
}

.header-title {
    color: #940000;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .header-title {
        font-size: 13px;
    }

    .logo-hcmc {
        height: 40px;
    }
}

.bg-hcmc {
    color: white !important;
    background-color: #940000 !important;
}

.bg-hcmc-chart {
    color: #940000 !important;
    background-color: #cccccc !important;
}

.active>.page-link-hcmc {
    color: #ffffff !important;
    border-color: #940000 !important;
    background-color: #940000 !important;
}

.breadcrumb-item-hcmc>a {
    color: #940000 !important;
}

.select2-results__option {
    white-space: normal !important;
    line-height: 1.4em;
}

.select2-container--krajee-bs5 .select2-results__option--highlighted[aria-selected] {
    background-color: #940000 !important;
    color: #fff;
}

.select2-container .select2-dropdown .select2-search__field:focus {
    border-color: #9f6868 !important;
    box-shadow: 0 0 0 .25rem rgba(148, 0, 0, .25) !important;
    outline: 0;
}

.select2-container--krajee-bs5:not(.select2-container--disabled) .select2-dropdown {
    border-color: #9f6868 !important;
    box-shadow: 0 0 0 .25rem rgba(148, 0, 0, .25) !important;
}

.select2-container--krajee-bs5 .select2-results__option.select2-results__option--selected,
.select2-container--krajee-bs5 .select2-results__option[aria-selected=true] {
    color: #940000 !important;
    background-color: #ffdcdc !important;
}

.select2-container--krajee-bs5.select2-container--open:not(.select2-container--disabled) .select2-selection,
.select2-container--krajee-bs5:not(.select2-container--disabled) .select2-selection:focus {
    border-color: #9f6868 !important;
    box-shadow: 0 0 0 .25rem rgba(148, 0, 0, .25) !important;
}

.form-control:focus {
    border-color: #9f6868 !important;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(148, 0, 0, .25) !important;
}

.table-responsive .text-truncate-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    /* hiển thị 3 dòng */
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: calc(1.4em * 3);
    text-align: justify;
    white-space: normal;
    word-break: break-word;
    cursor: pointer;
    /* gợi ý người dùng có thể click */
    transition: max-height 0.3s ease;
}

/* Khi mở rộng */
.table-responsive .text-truncate-3.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
}

/* Dấu “…” cuối nếu muốn */
.table-responsive .text-truncate-3::after {
    content: '';
}

/* Có thể thêm hiệu ứng hover nhẹ */
.table-responsive .text-truncate-3:hover {
    background: rgba(0, 0, 0, 0.02);
}

.bg-none {
    color: #585858;
    background-color: #dadada;
}

.progress {
    background-color: #dadada;
}

.select2-selection__clear {
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
}

.table-responsive.table-header-sticky table {
    table-layout: fixed;
    width: 100%;
    border: 1px solid #940000;
    border-top: none;
}

.table-responsive.table-header-sticky {
    position: relative;
    /* max-height: 500px; */
    /* tuỳ chỉnh nếu muốn */
    overflow-y: auto;
}

/* Sticky header */
.table-responsive.table-header-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    /* cao hơn pseudo-element td */
    background: #940000;
    /* màu nền chắn nội dung bên dưới */
    text-align: center;
    vertical-align: middle;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 15px;
    line-height: 1.5;
}

/* Tuỳ chọn: làm đẹp thêm */
.table-responsive.table-header-sticky thead th {
    text-align: center !important;
    vertical-align: middle !important;
    border: none;
}

.table-responsive.table-header-sticky td {
    border: 1px solid #940000;
}

.table-responsive.table-header-sticky td::after {
    position: static;
    /* hoặc remove position: absolute nếu có */
}

.btn-block-option,
.btn-block-option:active,
.btn-block-option:hover {
    color: #ffffff;
}

.text-justify {
    text-align: justify;
}

.responsive-heading {
    display: flex;
    /* Kích hoạt Flexbox */
    flex-wrap: wrap;
    /* Cho phép các cụm xuống dòng khi hẹp */
    justify-content: center;
    /* Căn giữa các cụm (cả khi ở 1 hay 2 dòng) */
    text-align: center;
    /* Đảm bảo chữ bên trong mỗi cụm cũng được căn giữa */
}

/* Tùy chọn: Nếu bạn muốn cụm "CỦA BAN CHỈ ĐẠO..." không bao giờ bị vỡ */
.responsive-heading span:last-child {
    white-space: nowrap;
}

.btn-xs {
    --bs-btn-padding-y: 0.15rem;
    --bs-btn-padding-x: 0.3rem;
    --bs-btn-font-size: 0.8rem;
    --bs-btn-border-radius: var(--bs-border-radius-sm)
}

.col-right-bordered:first-child {
    border-right: 2px solid rgba(148, 0, 0, 0.6);
}

.text-truncate-3 {
    display: grid;
    grid-template-rows: 0fr;
    /* Mặc định là đóng */
    transition: grid-template-rows 0.3s ease-out;
    overflow: hidden;
}

.text-truncate-3 .inner-content {
    min-height: 4.2em;
    /* Chiều cao khi đóng */
    overflow: hidden;
    /* Ẩn phần thừa */
}

/* Khi có class expanded */
.text-truncate-3.expanded {
    grid-template-rows: 1fr;
    /* Mở bung ra hoàn toàn (auto height) */
}