@font-face {
    font-family: 'Harmonia';
    src: url('../../assets/fonts/fonts/RV-Harmonia-Regular.eot');
    src: url('../../assets/fonts/RV-Harmonia-Regular.eot?#iefix') format('embedded-opentype'),
    url('../../assets/fonts/RV-Harmonia-Regular.woff') format('woff'),
    url('../../assets/fonts/RV-Harmonia-Regular.ttf') format('truetype'),
    url('../../assets/fonts/RV-Harmonia-Regular.svg#roboto_condensedregular') format('svg');
    font-weight: 400;
}
@font-face {
    font-family: 'Harmonia';
    src: url('../../assets/fonts/RV-Harmonia-SemiBold.eot');
    src: url('../../assets/fonts/RV-Harmonia-SemiBold.eot?#iefix') format('embedded-opentype'),
    url('../../assets/fonts/RV-Harmonia-SemiBold.woff') format('woff'),
    url('../../assets/fonts/RV-Harmonia-SemiBold.ttf') format('truetype'),
    url('../../assets/fonts/RV-Harmonia-SemiBold.svg#roboto_condensedregular') format('svg');
    font-weight: 500;
}
@font-face {
    font-family: 'Harmonia';
    src: url('../../assets/fonts/RV-Harmonia-Bold.eot');
    src: url('../../assets/fonts/RV-Harmonia-Bold.eot?#iefix') format('embedded-opentype'),
    url('../../assets/fonts/RV-Harmonia-Bold.woff') format('woff'),
    url('../../assets/fonts/RV-Harmonia-Bold.ttf') format('truetype'),
    url('../../assets/fonts/RV-Harmonia-Bold.svg#roboto_condensedregular') format('svg');
    font-weight: 600;
}

body{
    font-family: "Harmonia", sans-serif;
}

html, body{
    font-family: Harmonia, sans-serif;
}
.form-control{
    font-family: "Harmonia", sans-serif;
}

.tooltip, .popover, .btn, .btn.m-btn--custom, .m-portlet__head-text{
    font-family: "Harmonia", sans-serif;
}

.m-portlet .m-portlet__head .m-portlet__head-caption .m-portlet__head-title .m-portlet__head-text{
    font-family: "Harmonia", sans-serif;
}

.drop-down-custom
{
    top: 100%;
    text-align: left;
    display: none;
    position: absolute;
    z-index: 101;
    padding: 10px;
    border-radius: 4px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: block;
    box-shadow: 0px 0px 15px 1px rgba(69, 65, 78, 0.12);
    background: #fff;
    width: 400%;

}

.width-15{
    width: 15% !important;
}

.fa-phone{
    transform: rotate(90deg);
}

.kt-badge {
    padding: 0;
    margin: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    font-size: .8rem;
}
.kt-badge.kt-badge--success {
    color: #fff;
    background: #0abb87;
}
.kt-badge.kt-badge--info {
    color: #fff;
    background: #5578eb;
}
.kt-badge.kt-badge--inline {
    height: 0;
    width: auto;
    padding: .75rem .75rem;
    border-radius: 2px;
}
.kt-badge.kt-badge--warning {
    color: #111;
    background: #ffb822;
}
.kt-badge.kt-badge--danger {
    color: #fff;
    background: #fd397a;
}

.kt-badge--primary{
    color: #fff;
    background: #5867dd;
}

.kt-switch {
    display: inline-block;
    font-size: 1rem;
}

.kt-switch input:empty {
    margin-left: -999px;
    height: 0;
    width: 0;
    overflow: hidden;
    position: absolute;
    opacity: 0;
}

.kt-switch input:empty~span {
    display: inline-block;
    position: relative;
    float: left;
    width: 1px;
    text-indent: 0;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.kt-switch input:empty~span {
    line-height: 30px;
    margin: 2px 0;
    height: 30px;
    width: 57px;
    border-radius: 15px;
}


.kt-switch.kt-switch--sm input:empty~span {
    line-height: 24px;
    margin: 2px 0;
    height: 24px;
    width: 40px;
    border-radius: 12px;
}

.kt-switch input:empty~span:after, .kt-switch input:empty~span:before {
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    content: ' ';
    transition: all .1s ease-in;
}

.kt-switch input:empty~span:after, .kt-switch input:empty~span:before {
    width: 54px;
    border-radius: 15px;
}

.kt-switch input:empty~span:before {
    background-color: #e8ebf1;
}

.kt-switch input:checked~span:before {
    background-color: #e8ebf1;
}

.kt-switch.kt-switch--sm input:empty~span:after, .kt-switch.kt-switch--sm input:empty~span:before {
    width: 38px;
    border-radius: 12px;
}

.kt-switch input:empty~span:after {
    height: 24px;
    width: 24px;
    line-height: 26px;
    top: 3px;
    bottom: 3px;
    margin-left: 3px;
    font-size: .9em;
    text-align: center;
    vertical-align: middle;
}

.kt-switch input:checked~span:after {
    margin-left: 26px;
}

.kt-switch input:empty~span:after {
    color: #f8f9fb;
    background-color: #fff;
}

.kt-switch input:checked~span:after {
    background-color: #5d78ff;
    color: #fff;
}

.kt-switch.kt-switch--sm input:empty~span:after {
    height: 20px;
    width: 20px;
    line-height: 20px;
    top: 2px;
    bottom: 2px;
    margin-left: 2px;
    font-size: .8em;
    text-align: center;
    vertical-align: middle;
}

.kt-switch.kt-switch--sm input:checked~span:after {
    margin-left: 16px;
}

.kt-switch.kt-switch--icon input:empty~span:after {
    font-family: LineAwesome;
    text-decoration: inherit;
    text-rendering: optimizeLegibility;
    text-transform: none;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    content: "";
}

.kt-switch.kt-switch--icon input:checked~span:after {
    content: '\f17b';
}

.btn-label-warning{
    background-color: rgba(255,184,34,.1);
    color: #ffb822;
    cursor: text!important;
}
.btn.btn-label-success {
    background-color: rgba(10,187,135,.1);
    color: #0abb87;
    cursor: text!important;
}
.btn.btn-label-danger {
    background-color: rgba(253,57,122,.1);
    color: #fd397a;
    cursor: text!important;
}
.btn.btn-label-brand {
    background-color: rgba(93,120,255,.1);
    color: #5d78ff;
    cursor: text!important;
}

.btn-change--person{
    font-size: 11px;
    padding: 6px;
    background-color: #fff;
    border-radius: 2px;
    opacity: .8;
    position: absolute;
    top: 10px;
    right: 10px;
    visibility: hidden;
    cursor: pointer;
}
.btn-change--person:hover{
    opacity: 1;
}

tr:hover .btn-change--person{
    visibility: visible;
}

li.select2-results__option{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bootstrap-select .dropdown-toggle .filter-option-inner {
    text-overflow: ellipsis;
}

.btn.btn-clean.active, .btn.btn-clean:active, .btn.btn-clean:hover, .show>.btn.btn-clean {
    color: #5d78ff;
    background: #e5e7f4;
}
.btn.btn-clean {
    border-color: transparent;
    background: transparent;
    color: #93a2dd;
}

.daterangepicker.show-calendar .ranges{
    float: left;
    text-align: right;
}
.daterangepicker.dropdown-menu.ltr.opensright  .calendar.left,
.daterangepicker.dropdown-menu.ltr.opensright  .calendar.right
{
    display: block!important;
}
.m-topbar__userpic{
    padding: 0 8px;
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    height: 44px;
    cursor: pointer;
    border-radius: 4px;
}
.m-topbar__userpic:hover{
    transition: all .3s;
    background-color: rgba(77,89,149,.06);
}

.m-badge{
    white-space: nowrap;
}

.la-lg{
    font-size: 1.7rem !important;
    line-height: 1.7rem;
}

@media (max-width: 768px) {
    .m-portlet .m-portlet__head{
        padding: 1.2rem !important;
    }
    .m-portlet .m-portlet__body{
        padding: 1.2rem 1.2rem;
    }
}

.amac-thead-sticky{
    position: sticky;
    position: -webkit-sticky;
    top: -1px;
    z-index: 10;
}

.amac-close-large-img{
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, .6);
    padding: 5px 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 2px;
}

.amac-close-large-img:hover{
    background: #000;
    color: #fff;
    text-decoration: none;
}

.amac-display-image{
    display: block;
    width: 100%;
    height: 138px;
}

.amac-display-image img{
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.amac-collapsible {
    background-color: #777;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
}

.amac-collapsible:after {
    content: '\002B';
    color: white;
    font-weight: bold;
    float: right;
    margin-left: 5px;
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.amac-active:after {
    content: "\2212";
}

.amac-collapsible-content{
    max-height: 66px;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.amac-white-space-nowrap{
    white-space: nowrap;
}

.m-radio, .m-checkbox{
    padding: 2px 25px;
}

.amac-m-checkbox{
    padding-top: 7px;
}

.amac-m-checkbox span{
    top: 7px;
}

.amac-title-h5 label{
    padding: 0;
}

.amac-img-mb-slider{
    overflow-x: scroll;
    white-space: nowrap;
}

.amac-img-mb-slider img{
    cursor: pointer;
}

.amac-list-group-item{
    max-height: 130px;
}

.amac-image-slider{
    max-height: 86px;
}

.amac-list-group-item img, .amac-image-slider img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.amac-list-group-item i{
    position: absolute;
    top: 7px;
    right: 6px;
    padding: 5px;
    background: rgba(0, 0, 0, .6);
    color: #ffffff;
    border-radius: 2px;
}

.amac-list-group-item i:hover{
    background: rgba(0, 0, 0, .86);
}

@media (max-width: 768px) and (min-width: 500px) {
    .amac-list-group-item{
        max-height: 230px;
    }
}

@media (max-width: 768px) {
    .amac-w-25{
        width: 25% !important;
    }
}

@media (min-width: 992px){
    .amac-modal-xl {
        max-width: 800px;
    }
    .modal-amac-modal-xl {
        max-width: 800px;
    }
}

@media (min-width: 1200px){
    .amac-modal-xl {
        max-width: 1140px;
    }
    .modal-amac-modal-xl{
        max-width: 1140px;
    }
}

.lg-backdrop{
    z-index: 1050 !important;
}

.input-unset{
    width: unset;
    border: none;
    padding: 0;
    background-color: unset !important;
    height: unset;
    -webkit-appearance: unset;
    color: #575962;
    font-weight: bold;
}

.kt-badge.kt-badge--inline{
    padding: .9rem .75rem .75rem;
    line-height: .8rem;
}

.amac-alert-message{
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 999;
    max-width: 400px;
}

.amac-error-500 .m-error_description .br{
    display: block;
}

@media (max-width: 500px) {
    .amac-error-500{
        background-position: 80%;
    }

    .amac-error-500 .m-error_description .br{
        display: inline-block;
    }
}

@media (min-width: 769px) {
    .amac-w-md-unset{
        width: unset !important;
    }
}

.amac-portlet-head-click:hover{
    cursor: pointer;
}

.js_collapse{
    display: none;
}


.help_row .left i{
    font-size: 5rem;
}
.help_row .right{
}
.post_single{
    background: #fff;
}
.post-reaction-picker{
    backface-visibility: hidden;
    padding: 12px;
    text-align: center;
    color: #777;
    background-color: #f0f3f5;
    border-radius: 8px;
}
button.post-reaction{
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    width: 50px;
    height: 100%;
    display: inline-block;
    text-align: center;
    font-size: 32px;
}

.post-reaction-picker-selected button.post-reaction{
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}
.post-reaction-picker-selected  button.post-reaction-selected{
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
    -webkit-transform: scale(1.32);
    -ms-transform: scale(1.32);
    transform: scale(1.32);
}
.post-content{
    overflow: hidden;
}

.request-overlay {
    z-index: 9999;
    position: fixed; /*Important to cover the screen in case of scolling content*/
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-align: center;
    background: rgba(200,200,200,0.5) url('../img/load/ajax-loader.gif') no-repeat center; /*.gif file or just div with message etc. however you like*/
}
.color-origin{
    background-color: #FF5722!important;
}
.color-purple{
    background-color: #9C27B0!important;
}
.color-light-purple{
    background-color: #8B658B!important;
}
.color-bright-blue{
    background-color: #337ab7!important;
}
.color-light-blue{
    background-color: #4ebcda!important;
}
.color-black{
    background-color: #000000!important;
}
.color-light-red{
    background-color: #d9534f!important;
}
.color-green{
    background-color: #5cb85c!important;
}
.color-brown{
    background-color: #948228!important;
}
.color-finlandia{
    background-color: #5B6F5B!important;
}
.color-teal{
    background-color: #008080!important;
}

.even{
    background: #f9f9f9;
}
.amac-select-image-flex{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}
.amac-select-image-flex div:hover{
    border: 2px solid #ce0000f2;
    cursor: pointer;
}
.amac-select-image-flex .hover{
    border: 2px solid #ce0000f2;
}

.amac-select-image-flex div .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
}

.amac-select-image-flex div:hover .tooltiptext {
    visibility: visible;
}

.dropdown-menu {
    height: auto;
    max-height: 200px;
    overflow-x: hidden;
}

.daterangepicker.dropdown-menu {
    max-height: unset;
}

.form-sm .select2-selection__rendered {
    padding: .45rem .8rem !important;
}
.note-editor.note-frame .note-editing-area .note-editable {
    margin-top: 10px;
}

.m-timeline-1 .m-timeline-1__items .m-timeline-1__item.m-timeline-1__item--first {
    top: 0;
}

.m-timeline-1 .m-timeline-1__items .m-timeline-1__item.m-timeline-1__item--left .m-timeline-1__item-time{
    top: 3.5rem;
    z-index: 99;
}

.m-timeline-1 .m-timeline-1__items .m-timeline-1__item.m-timeline-1__item--right .m-timeline-1__item-time {
    left: unset;
    right: 1.5rem;
    top: 3.5rem;
    z-index: 99;
}

.m-timeline-1 .m-timeline-1__items .m-timeline-1__item.m-timeline-1__item--first+.m-timeline-1__item--right {
    top: 0;
}

.m-timeline-1 .m-timeline-1__items .m-timeline-1__item.m-timeline-1__item--right,
.m-timeline-1 .m-timeline-1__items .m-timeline-1__item.m-timeline-1__item--left {
    top: 0;
}

.m-timeline-1__item.m-timeline-1__item--left, .m-timeline-1__item.m-timeline-1__item--right {
    margin-bottom: 10px;
}
.pagination .page-link {
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -moz-justify-content: center;
    -ms-justify-content: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -moz-align-items: center;
    -ms-align-items: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    vertical-align: middle;
    height: 2.25rem;
    min-width: 2.25rem;
    vertical-align: middle;
    padding: 0.5rem;
    text-align: center;
    position: relative;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 400;
}

.select2-selection__rendered {
    height: 40px;
}

.outline-none {
    outline: none;
}

#change_password .la {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 20px;
    cursor: pointer;
}

.pagination .page-link i {
    font-size: 1rem;
    text-align: center;
    display: inline-block;
}

.page-item:last-child .page-link,
.page-item:first-child .page-link {
    border-radius: 50%;
}

.m-portlet__head .amac-tab-scroll::-webkit-scrollbar {
    height: 2px;
}
.m-portlet__head .amac-tab-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.m-portlet__head .amac-tab-scroll::-webkit-scrollbar-thumb {
    background: #888;
}
.bg-gray-report {
    background: #909090;
}
.m-portlet .m-portlet__head.report-head__content {
    height: auto;
    justify-content: center;
    color: #fff;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    border-bottom: 0;
}
.menu-head_report {
    list-style: none;
    display: flex;
    margin-bottom: 0;
    padding: 0;
}
.menu-head_report .menu-item_report a {
    padding: .5em 1.1em .4em;
    display: block;
    color: #fff;
}
.menu-head_report .menu-item_report a.disable {
    color: #dddddd;
}
.report-page_content {
    margin: 0 auto;
    padding: 15px 10px;
    min-height: 1022px;
    background: #fff;
    width: 100%;
}
.report-content .m-portlet__body {
    font-size: 14px;
}
.report-content .m-portlet__body .report_time p {
    margin-bottom: 7px;
}
.report_created-date {
    font-size: 12px;
}
.report-content .m-portlet__body .report_thead-primary {
    background-color: #2c2e3e;
    color: #fff;
}
.report-content .m-portlet__body .report_thead-second {
    background-color: #e8e7ca;
}
.report-content .m-portlet__body .page-number {
    position: absolute;
    bottom: 0;
    right: 10px;
}
.sortDateTimeOtherBox, .sortTimeList {
    visibility: hidden;
    opacity: 1;
    position: absolute;
    left: 100%;
    margin-left: 25px;
    width: 600px;
    padding: 20px 20px 5px;
    z-index: 99999999999;
    background: #fff;
    top: -198px;
    box-shadow: 0 5px 15px rgba(0,0,0,.25);
}
.sortTimeList ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
.sortTimeList ul li {
    line-height: 1.5;
    padding: 5px 0px;
}

.sortTimeList h3 {
    font-size: 15px;
}
.sortTime ul li {
    margin-bottom: 15px;
}
/* ul.nav.nav-tabs.m-tabs-line.m-tabs-line--primary.m-tabs-line--2x.amac-tab-scroll::-webkit-scrollbar{ */
    /* height: 10px; */
/* } */
/** CUSTOME BASE2 **/
.label{
    white-space: nowrap;
}
.card.card-custom  .card-body{
    font-family: "Harmonia", sans-serif;
}
.notification-dropdown-menu{
    max-height: max-content;
}

@media only screen and (max-width: 768px) {
    .dataTables_wrapper{
        max-width: 100%;
        overflow: scroll;
    }
    .d-md-block{
        display: block!important;
    }
}
/* Container flex-wrap cho nhiều card */
.rush-summary-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
  }
  
  /* Container cho các card */
.rush-summary-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
  }
  
  .rush-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Nhãn đơn gộp màu đỏ */
.rush-card:before {
    content: "ĐƠN GẤP";
    position: absolute;
    top: 10px;
    right: -35px;
    background-color: #e53935;
    color: white;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: 500;
    transform: rotate(45deg);
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.rush-card-header {
    display: flex;
    align-items: center;
    color: #0066cc;
}

.rush-card-header i {
    margin-right: 8px;
    font-size: 18px;
}

.rush-card-header span {
    font-size: 16px;
    font-weight: 500;
}

.rush-card-body {
    display: flex;
    gap: 24px;
    text-align: center;
}

.rush-card-body__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rush-card-body__value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.rush-card-body__label {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}
/* CSS cho TaskStatusCounter */
/* CSS cho TaskStatusCounter */
.task-status-counter {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
    width: 100%;
  }
  
  .counter-item {
    flex: 1;
    min-width: 260px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }
  
  .counter-header {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 14px;
    display: block;
  }
  
  .counter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }
  
  .counter-row:last-child {
    margin-bottom: 0;
  }
  
  .counter-label {
    font-size: 14px;
    color: #666;
  }
  
  .counter-value {
    font-weight: 600;
    font-size: 15px;
  }
  
  .counter-value.primary {
    color: #3b7adb;
    font-size: 16px;
  }
  
  .counter-value.success {
    color: #34c38f;
  }
  
  .counter-value.warning {
    color: #f1b44c;
  }
  
  .counter-value.danger {
    color: #ff5c75;
  }
  
  .late-label {
    color: #ff5c75;
    font-size: 13px;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .task-status-counter {
      flex-direction: column;
      gap: 12px;
    }
    
    .counter-item {
      width: 100%;
    }
  }