﻿/************* SETUP FONT - START *************/
/* be-vietnam-pro-200 - latin_vietnamese */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/be-vietnam-pro-v11-latin_vietnamese-200.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* be-vietnam-pro-200italic - latin_vietnamese */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Be Vietnam Pro';
    font-style: italic;
    font-weight: 200;
    src: url('../fonts/be-vietnam-pro-v11-latin_vietnamese-200italic.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* be-vietnam-pro-300 - latin_vietnamese */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/be-vietnam-pro-v11-latin_vietnamese-300.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* be-vietnam-pro-300italic - latin_vietnamese */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Be Vietnam Pro';
    font-style: italic;
    font-weight: 300;
    src: url('../fonts/be-vietnam-pro-v11-latin_vietnamese-300italic.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* be-vietnam-pro-regular - latin_vietnamese */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/be-vietnam-pro-v11-latin_vietnamese-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* be-vietnam-pro-italic - latin_vietnamese */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Be Vietnam Pro';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/be-vietnam-pro-v11-latin_vietnamese-italic.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* be-vietnam-pro-500 - latin_vietnamese */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/be-vietnam-pro-v11-latin_vietnamese-500.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* be-vietnam-pro-500italic - latin_vietnamese */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Be Vietnam Pro';
    font-style: italic;
    font-weight: 500;
    src: url('../fonts/be-vietnam-pro-v11-latin_vietnamese-500italic.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* be-vietnam-pro-600 - latin_vietnamese */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/be-vietnam-pro-v11-latin_vietnamese-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* be-vietnam-pro-600italic - latin_vietnamese */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Be Vietnam Pro';
    font-style: italic;
    font-weight: 600;
    src: url('../fonts/be-vietnam-pro-v11-latin_vietnamese-600italic.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* be-vietnam-pro-700 - latin_vietnamese */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/be-vietnam-pro-v11-latin_vietnamese-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* be-vietnam-pro-700italic - latin_vietnamese */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Be Vietnam Pro';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/be-vietnam-pro-v11-latin_vietnamese-700italic.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* be-vietnam-pro-800 - latin_vietnamese */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/be-vietnam-pro-v11-latin_vietnamese-800.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* be-vietnam-pro-800italic - latin_vietnamese */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Be Vietnam Pro';
    font-style: italic;
    font-weight: 800;
    src: url('../fonts/be-vietnam-pro-v11-latin_vietnamese-800italic.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/************* SETUP FONT - END *************/

:root {
    /* 🎨 Màu chính */
    --color-primary-blue: #1E377E;
    --color-blue-light: #294F9B;
    --color-blue-dark: #0B2156;
    /* 🌟 Màu phụ - Vàng */
    --color-secondary-yellow: #ECB14E;
    --color-yellow-light: #EDC66E;
    --color-yellow-dark: #E2A248;
    /* 💖 Màu phụ - Hồng */
    --color-secondary-pink: #F5C1B3;
    --color-pink-light: #F7E0DB;
    --color-pink-dark: #E29D98;
    /* 🧱 Màu nền */
    --color-background: #EDEDE8;
    --color-background-light: #F5F5F2;
    /* 🔘 Màu nút */
    --color-button-red: #DB2E24;
    --color-button-green: #378711;
    /* 🔗 Màu liên kết */
    --color-link-text: #317AE8;
}

/************* GENERAL - START *************/
body {
    font-family: Be Vietnam Pro;
    font-size: 14px;
    background-color: #f6f7fa;
}

#attachment-list-ul a {
    display: inline-block; /* hoặc block nếu cần */
    white-space: nowrap; /* không xuống dòng */
    overflow: hidden; /* ẩn phần vượt quá */
    text-overflow: ellipsis; /* hiện dấu ... */
    max-width: 200px;
    font-size: 12px;
}

.myadmin-dd-empty .dd-list .dd-handle {
    height: 100%;
    cursor: grab;
}

.sortable-handle {
    height: 100%;
    cursor: grab;
}

[class*='-button'] {
    cursor: pointer;
}

.myadmin-dd-empty .dd-list .dd-handle::before {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 0;
    height: 100%;
}

[type="checkbox"].checkbox-fix + label {
    height: 18px;
}

.sortable-placeholder {
    height: 3rem;
    width: 100%;
    background-color: lightyellow;
    border: 2px dashed #c9b900;
}

.hiddenfile {
    display: none;
}

.upload-image {
    height: 10rem;
    width: 10rem;
    object-fit: cover;
}

.select2 {
    width: 100% !important;
}


hr.hr-text {
    position: relative;
    border: none;
    height: 1px;
    background: #999;
}

hr.hr-text::before {
    content: attr(data-content);
    display: inline-block;
    background: #fff;
    font-size: 0.85rem;
    border-radius: 30rem;
    padding: 0.2rem 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


#toast-container > .toast-success {
    background-color: #1b4c43;
    color: white;
}

#toast-container > .toast-error {
    background-color: #d22d3d;
    color: white;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: solid #e6edef 1px;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #e6edef;
}

/*#toast-container > .toast-warning {
    background-color: #e2c636;
    color: white;
}*/

.note-btn.dropdown-toggle:after {
    content: none;
}

.page-wrapper.compact-wrapper .page-body-wrapper header.main-nav {
    top: 60px;
}

.page-main-header {
    height: 60px;
}

.main-header-right > div {
    height: 60px;
}

.page-main-header .left-menu-header {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.page-main-header .nav-right {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.page-main-header .nav-right .nav-menus {
    height: 60px;
}

.page-main-header .main-header-right .left-menu-header {
    padding: 24px 24px;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgb(81 107 170 / 0.10);
}

.hover-bg-white:hover {
    background-color: #FFF !important;
}

.hover-bg-light:hover {
    background-color: #ddeaf7 !important;
}

.page-wrapper .page-body-wrapper .page-body {
    min-height: calc(100vh - 128px);
}

.modal-dialog {
    overflow-y: initial !important
}

.modal-body {
    max-height: 74vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.table-sticky {
    overflow: auto;
    max-height: 69vh;
}

.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.table-sticky th {
    background: #ffffff;
}

.fa.fa-outline {
    color: transparent;
    -webkit-text-stroke-width: medium;
    -webkit-text-stroke-color: black;
}

.hover-text-primary:hover {
    color: #0d6efd !important
}

.hover-bg-white:hover {
    background-color: #FFF !important;
}

.hover-bg-light:hover {
    background-color: #ddeaf7 !important;
}

.text-a {
    color: #394a7d
}


.select2-container .select2-selection--single {
    height: auto !important;
    min-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 22px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 25px;
}


.selection .select2-selection {
    font-family: 'Be Vietnam Pro';
}

div.dataTables_wrapper {
    font-family: 'Be Vietnam Pro';
}

.modal-open {
    overflow: hidden;
}

.page-wrapper.compact-wrapper .page-body-wrapper .page-body {
    padding-top: 0px;
}

.page-wrapper .page-body-wrapper .page-body {
    min-height: calc(95vh - 73px);
    margin-top: 76px;
}

.footer {
    position: fixed;
    width: calc(100% - 260px);
}

.page-wrapper.compact-wrapper .page-body-wrapper header.main-nav.close_icon ~ footer {
    margin-left: 0px;
    width: 100%;
}

.page-wrapper.compact-wrapper .page-body-wrapper header.main-nav.close_icon ~ .page-body .bottom-action-card {
    width: calc(100% - 2.5rem);
    left: 1.25rem;
}

.card.has-bottom-action-card {
    min-height: 86vh;
    margin-bottom: 5rem;
}

/*.bottom-action-card {
    position: fixed;
    bottom: 0.25rem;
    width: calc(100% - 290px - 2.5rem);
    transition-duration: 500ms;
}*/
.bottom-action-card {
    position: fixed;
    bottom: 0.25rem;
    left: calc(290px + 1.25rem);
    width: calc(100% - 290px - 2.5rem);
    transition-duration: 500ms;
}

.bottom-action-card .card-body {
    padding: 0.5rem 2rem;
}


.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    margin-top: 0.25rem;
}

.select2-selection__choice {
    margin: 0.25rem;
}

.select2-selection__choice div {
    display: flex;
}

.select2-search__field {
    height: 100%;
    margin-bottom: 0px;
}

.rounded-16 {
    border-radius: 16px !important;
}

.modal-open {
    padding-right: 0 !important;
    overflow: hidden;
}

.flatpickr > .form-control[readonly] {
    background-color: #fff;
}

.flatpickr.form-control[readonly] {
    background-color: #fff;
}

.upload-box {
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 180px; /* Đảm bảo chiều cao đồng nhất */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .upload-box:hover {
        background-color: #f8f9fa; /* Màu nền khi hover */
    }

/* Style cho tiêu đề section */
.section-title {
    color: var(--primary); /* Sử dụng biến màu primary nếu có */
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); /* Thay bằng màu shadow tương ứng */
}

/************* OTHER - END *************/
