﻿/* Override Bootstrap styles */
body {
    font-family: 'Arial', sans-serif !important; /* Sử dụng !important để đảm bảo ghi đè thành công */
}

th {
    vertical-align: middle;
}

.hint-error {
    border: 1px solid red;
}

/*.form-control:disabled, .form-control[readonly] {*/
/*    background-color: #f9f9f9;*/
/*    opacity: 1;*/
/*}*/

.cursor-help {
    cursor: help;
}

/* Custom Toastr CSS */
.custom-toast {
    background-color: white !important; /* Màu đỏ */
    color: #ED252F !important;
}

.custom-toast-error {
    background-color: #ED252F !important; /* Màu đỏ */
    color: white !important;
}

/* Các lớp khác như toast-info, toast-warning cũng có thể được thêm vào tương tự */


/*this code is important for css selected row, something wrong with BS5.3 and we cant style the tr table*/
tr.highlight-row td,
tr.highlight-row th {
    background-color: #F2FFE9 !important; /* Màu vàng nhạt, bạn có thể tùy chỉnh */
    font-weight: bold; /* Tùy chọn: làm chữ đậm */
}

/* Màu thay thế */
/*anh em ui, Motul có 1 rule quan trọng: "Không được dùng màu xanh lá, xanh dương, màu vàng", vì đây là màu của đối thủ ko đội trời chung với Motul*/
:root {
    --success-color: #ED252F;
    --primary-color: #ED252F;
    --warning-color: #2A3335;
}

/* Áp dụng màu mới */
.font-success, .text-success, .label-success, .badge-success, .b-success, .border-success {
    color: var(--success-color) !important;
}

.font-info, .text-info, .label-info, .badge-info, .b-info, .border-info {
    color: #007bff !important;
}

.bg-success, .btn-success, .table-success, .alert-success {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
}

.font-primary, .text-primary, .label-primary, .badge-primary, .b-primary, .border-primary {
    color: var(--primary-color) !important;
}

.bg-primary, .btn-primary, .table-primary, .alert-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.font-warning, .text-warning, .label-warning, .badge-warning, .b-warning, .border-warning {
    color: var(--warning-color) !important;
}

.bg-warning, .btn-warning, .table-warning, .alert-warning {
    background-color: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
}

/*!************* SETUP FONT - START *************!*/
/*!* be-vietnam-pro-200 - vietnamese_latin *!*/
/*@font-face {*/
/*    font-family: 'Be Vietnam Pro';*/
/*    font-style: normal;*/
/*    font-weight: 200;*/
/*    src: local(''), url('../fonts/be-vietnam-pro-v10-vietnamese_latin-200.woff2') format('woff2'), !* Chrome 26+, Opera 23+, Firefox 39+ *! url('../fonts/be-vietnam-pro-v10-vietnamese_latin-200.woff') format('woff'); !* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ *!*/
/*}*/

/*!* be-vietnam-pro-200italic - vietnamese_latin *!*/
/*@font-face {*/
/*    font-family: 'Be Vietnam Pro';*/
/*    font-style: italic;*/
/*    font-weight: 200;*/
/*    src: local(''), url('../fonts/be-vietnam-pro-v10-vietnamese_latin-200italic.woff2') format('woff2'), !* Chrome 26+, Opera 23+, Firefox 39+ *! url('../fonts/be-vietnam-pro-v10-vietnamese_latin-200italic.woff') format('woff'); !* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ *!*/
/*}*/

/*!* be-vietnam-pro-300italic - vietnamese_latin *!*/
/*@font-face {*/
/*    font-family: 'Be Vietnam Pro';*/
/*    font-style: italic;*/
/*    font-weight: 300;*/
/*    src: local(''), url('../fonts/be-vietnam-pro-v10-vietnamese_latin-300italic.woff2') format('woff2'), !* Chrome 26+, Opera 23+, Firefox 39+ *! url('../fonts/be-vietnam-pro-v10-vietnamese_latin-300italic.woff') format('woff'); !* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ *!*/
/*}*/

/*!* be-vietnam-pro-300 - vietnamese_latin *!*/
/*@font-face {*/
/*    font-family: 'Be Vietnam Pro';*/
/*    font-style: normal;*/
/*    font-weight: 300;*/
/*    src: local(''), url('../fonts/be-vietnam-pro-v10-vietnamese_latin-300.woff2') format('woff2'), !* Chrome 26+, Opera 23+, Firefox 39+ *! url('../fonts/be-vietnam-pro-v10-vietnamese_latin-300.woff') format('woff'); !* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ *!*/
/*}*/

/*!* be-vietnam-pro-regular - vietnamese_latin *!*/
/*@font-face {*/
/*    font-family: 'Be Vietnam Pro';*/
/*    font-style: normal;*/
/*    font-weight: 400;*/
/*    src: local(''), url('../fonts/be-vietnam-pro-v10-vietnamese_latin-regular.woff2') format('woff2'), !* Chrome 26+, Opera 23+, Firefox 39+ *! url('../fonts/be-vietnam-pro-v10-vietnamese_latin-regular.woff') format('woff'); !* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ *!*/
/*}*/

/*!* be-vietnam-pro-italic - vietnamese_latin *!*/
/*@font-face {*/
/*    font-family: 'Be Vietnam Pro';*/
/*    font-style: italic;*/
/*    font-weight: 400;*/
/*    src: local(''), url('../fonts/be-vietnam-pro-v10-vietnamese_latin-italic.woff2') format('woff2'), !* Chrome 26+, Opera 23+, Firefox 39+ *! url('../fonts/be-vietnam-pro-v10-vietnamese_latin-italic.woff') format('woff'); !* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ *!*/
/*}*/

/*!* be-vietnam-pro-500 - vietnamese_latin *!*/
/*@font-face {*/
/*    font-family: 'Be Vietnam Pro';*/
/*    font-style: normal;*/
/*    font-weight: 500;*/
/*    src: local(''), url('../fonts/be-vietnam-pro-v10-vietnamese_latin-500.woff2') format('woff2'), !* Chrome 26+, Opera 23+, Firefox 39+ *! url('../fonts/be-vietnam-pro-v10-vietnamese_latin-500.woff') format('woff'); !* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ *!*/
/*}*/

/*!* be-vietnam-pro-500italic - vietnamese_latin *!*/
/*@font-face {*/
/*    font-family: 'Be Vietnam Pro';*/
/*    font-style: italic;*/
/*    font-weight: 500;*/
/*    src: local(''), url('../fonts/be-vietnam-pro-v10-vietnamese_latin-500italic.woff2') format('woff2'), !* Chrome 26+, Opera 23+, Firefox 39+ *! url('../fonts/be-vietnam-pro-v10-vietnamese_latin-500italic.woff') format('woff'); !* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ *!*/
/*}*/

/*!* be-vietnam-pro-600 - vietnamese_latin *!*/
/*@font-face {*/
/*    font-family: 'Be Vietnam Pro';*/
/*    font-style: normal;*/
/*    font-weight: 600;*/
/*    src: local(''), url('../fonts/be-vietnam-pro-v10-vietnamese_latin-600.woff2') format('woff2'), !* Chrome 26+, Opera 23+, Firefox 39+ *! url('../fonts/be-vietnam-pro-v10-vietnamese_latin-600.woff') format('woff'); !* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ *!*/
/*}*/

/*!* be-vietnam-pro-600italic - vietnamese_latin *!*/
/*@font-face {*/
/*    font-family: 'Be Vietnam Pro';*/
/*    font-style: italic;*/
/*    font-weight: 600;*/
/*    src: local(''), url('../fonts/be-vietnam-pro-v10-vietnamese_latin-600italic.woff2') format('woff2'), !* Chrome 26+, Opera 23+, Firefox 39+ *! url('../fonts/be-vietnam-pro-v10-vietnamese_latin-600italic.woff') format('woff'); !* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ *!*/
/*}*/

/*!* be-vietnam-pro-800 - vietnamese_latin *!*/
/*@font-face {*/
/*    font-family: 'Be Vietnam Pro';*/
/*    font-style: normal;*/
/*    font-weight: 800;*/
/*    src: local(''), url('../fonts/be-vietnam-pro-v10-vietnamese_latin-800.woff2') format('woff2'), !* Chrome 26+, Opera 23+, Firefox 39+ *! url('../fonts/be-vietnam-pro-v10-vietnamese_latin-800.woff') format('woff'); !* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ *!*/
/*}*/

/*!* be-vietnam-pro-800italic - vietnamese_latin *!*/
/*@font-face {*/
/*    font-family: 'Be Vietnam Pro';*/
/*    font-style: italic;*/
/*    font-weight: 800;*/
/*    src: local(''), url('../fonts/be-vietnam-pro-v10-vietnamese_latin-800italic.woff2') format('woff2'), !* Chrome 26+, Opera 23+, Firefox 39+ *! url('../fonts/be-vietnam-pro-v10-vietnamese_latin-800italic.woff') format('woff'); !* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ *!*/
/*}*/

/*!* be-vietnam-pro-900 - vietnamese_latin *!*/
/*@font-face {*/
/*    font-family: 'Be Vietnam Pro';*/
/*    font-style: normal;*/
/*    font-weight: 900;*/
/*    src: local(''), url('../fonts/be-vietnam-pro-v10-vietnamese_latin-900.woff2') format('woff2'), !* Chrome 26+, Opera 23+, Firefox 39+ *! url('../fonts/be-vietnam-pro-v10-vietnamese_latin-900.woff') format('woff'); !* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ *!*/
/*}*/

/*!* be-vietnam-pro-900italic - vietnamese_latin *!*/
/*@font-face {*/
/*    font-family: 'Be Vietnam Pro';*/
/*    font-style: italic;*/
/*    font-weight: 900;*/
/*    src: local(''), url('../fonts/be-vietnam-pro-v10-vietnamese_latin-900italic.woff2') format('woff2'), !* Chrome 26+, Opera 23+, Firefox 39+ *! url('../fonts/be-vietnam-pro-v10-vietnamese_latin-900italic.woff') format('woff'); !* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ *!*/
/*}*/


/*!************* SETUP FONT - END *************!*/


/************* GENERAL - START *************/
/*body {*/
/*    font-family: Be Vietnam Pro;*/
/*    font-size: 14px;*/
/*    background-color: #f6f7fa;*/
/*}*/

.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;
}

::-webkit-input-placeholder {
    font-style: italic;
}

:-moz-placeholder {
    font-style: italic;
}

::-moz-placeholder {
    font-style: italic;
}

:-ms-input-placeholder {
    font-style: italic;
}

/*#toast-container > .toast-warning {
    background-color: #e2c636;
    color: white;

/*.note-editor .dropdown-toggle::after {
    all: unset
}

.note-editor .note-dropdown-menu {
    box-sizing: content-box
}

.note-editor .note-modal-footer {
    box-sizing: content-box
}*/
.note-btn.dropdown-toggle:after {
    content: none;
}

.page-wrapper.compact-wrapper .page-body-wrapper header.main-nav {
    top: 74px;
}

.bootstrap-tagsinput {
    margin: 0;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    line-height: 1.25;
    transition: border-color 0.15s ease-in-out;
}

.label-info {
    display: inline-block;
    background-color: #394a7d;
    padding: 10px;
    border-radius: 0.25rem;
    margin-bottom: 0.4em;
}

/*input {
    margin-bottom: 0.5em;
}
*/
.bootstrap-tagsinput .tag [data-role="remove"]:after {
    content: '\00d7';
}


.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;
}

.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;
}

.text-a {
    color: #ED252F
}

.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';*/
/*}*/

div.dataTables_wrapper {
    font-family: 'Arial', sans-serif !important;
}

.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);
    z-index: 1;
}

.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: 80vh;
    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;
}

.modal-open {
    padding-right: 0 !important;
    overflow: hidden;
}

.tempus-dominus-widget .toolbar {
    padding: 0;
    background-color: transparent;
    display: grid;
    color: inherit;
    border-radius: 0;
    margin-bottom: 0;
    margin-right: 0;
}

.tempus-dominus-widget .sec, .tempus-dominus-widget .min, .tempus-dominus-widget .hour {
    position: inherit;
    top: 0;
    left: 0;
    margin-top: 0;
    margin-left: 0;
}

.switch-md .switch {
    width: 40px;
    height: 24px;
    margin-top: 10px;
    margin-bottom: 0px;
}

.switch-md .switch .switch-state:before {
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
}

.switch-md input:checked + .switch-state:before {
    left: -8px;
}

.switch-state {
    -webkit-transition: .2s;
    transition: .2s;
}

.switch-state:before {
    -webkit-transition: .2s;
    transition: .2s;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    /*    color: rgba(0, 0, 0, 0);
    opacity: 1;
    display: block;
    background: url(https://mywildalberta.ca/images/GFX-MWA-Parks-Reservations.png) no-repeat;
    width: 20px;
    height: 20px;
    border-width: thin;*/
}

@media (min-width: 768px) {
    .card-title {
        min-height: 50px;
    }
}

.ui-datepicker-calendar {
    display: none;
}


.flatpickr > .form-control[readonly] {
    background-color: #fff;
}

.flatpickr.form-control[readonly] {
    background-color: #fff;
}


.context-sub-menu,
.context-menu {
    position: fixed;
    background: #fff;
    z-index: 9999999;
    width: 120px;
    margin: 0;
    padding: 5px 0;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    font-size: 12px;
}

.context-menu .context-menu-item {
    height: 30px;
    display: flex;
    align-items: center;
    padding: 6px 10px;
    cursor: pointer;
    position: relative;
    border-bottom: 1px solid #f2f2f2;
}

.context-menu .context-menu-item span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.context-menu-item:last-of-type {
    border-bottom: none;
}

.context-menu .context-menu-item:hover {
    background: #f2f2f2;
}

.context-menu .context-sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    width: 100px;
}

.context-menu .context-menu-item:hover > .context-sub-menu {
    display: block;
}

.context-menu.left .context-sub-menu {
    left: 0;
    transform: translateX(-100%);
}

.context-menu.top .context-sub-menu {
    top: 100%;
    transform: translateY(-100%);
}

.context-menu.left.top .context-sub-menu {
    transform: translate(-100%, -100%);
}

.new-record {
    background-color: #dff0d8 !important; /* Màu nền xanh nhạt */
    font-weight: bold;
}



/************* OTHER - END *************/
