.red {
    color: red;
}

.alert {
    margin-top: 1rem;
    margin-bottom: 0;
}

.modal-confirm {
    color: #636363;
    width: 400px;
}

.modal-confirm .modal-content {
    padding: 20px;
    border-radius: 5px;
    border: none;
    text-align: center;
    font-size: 14px;
}

.modal-confirm .modal-header {
    border-bottom: none;
    position: relative;
}

.modal-confirm h4 {
    text-align: center;
    font-size: 26px;
    margin: 30px 0 -10px;
}

.modal-confirm .close {
    position: absolute;
    top: -5px;
    right: -2px;
}

.modal-confirm .modal-body {
    color: #999;
}

.modal-confirm .modal-footer {
    border: none;
    text-align: center;
    border-radius: 5px;
    font-size: 13px;
    padding: 10px 15px 25px;
}

.modal-confirm .modal-footer a {
    color: #999;
}

.modal-confirm .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    z-index: 9;
    text-align: center;
    border: 3px solid #f15e5e;
}

.modal-confirm .icon-box i {
    color: #f15e5e;
    font-size: 46px;
    display: inline-block;
    margin-top: 13px;
}

.modal-confirm .btn {
    color: #fff;
    border-radius: 4px;
    /*background: #60c7c1;*/
    text-decoration: none;
    transition: all 0.4s;
    line-height: normal;
    min-width: 120px;
    border: none;
    min-height: 40px;
    border-radius: 3px;
    margin: 0 5px;
    outline: none !important;
}

.modal-confirm .btn-info {
    background: #c1c1c1;
}

.modal-confirm .btn-info:hover, .modal-confirm .btn-info:focus {
    background: #a8a8a8;
}

.modal-confirm .btn-danger {
    background: #f15e5e;
}

.modal-confirm .btn-danger:hover, .modal-confirm .btn-danger:focus {
    background: #ee3535;
}

.modal-confirm .modal-header, .modal-confirm .modal-footer {
    display: block;
}

.paginations {
    float: right;
}

.permission-item {
    background: #007bff;
    border: 1px solid #007bff;
    color: #fff;
    padding: 3px 5px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 6px;
    margin-right: 3px;
}

.select2-container--default .select2-selection--multiple.is-invalid {
    border: 1px solid red;
}

.select2-container--default .select2-selection--multiple.is-invalid .select2-selection__rendered {
    margin-top: -6px;
    margin-left: -12px;
}

@media all and (min-width: 768px) {
    .table-custom-sticky {
        max-height: 400px;
        overflow: scroll;
    }

    .th-sticky-top {
        top: -1px;
        position: -webkit-sticky;
        position: sticky;
        z-index: 1;
        background: #f8f9fa;
    }

    .th-sticky-left {
        position: -webkit-sticky;
        position: sticky;
        left: 0;
        z-index: 2;
        background: #f8f9fa;
    }

    .th-sticky-right {
        position: -webkit-sticky;
        position: sticky;
        right: -1px;
        z-index: 2;
        background: #f8f9fa;
        box-shadow: inset 1px 0 #dee2e6, inset -1px 0 #dee2e6;
    }
}

/*Loading ajax*/
#loading {
    background-color: white;
    position: fixed;
    display: block;
    top: 0;
    bottom: 0;
    z-index: 1000000;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    text-align: center;
}

#loading img {
    margin: auto;
    display: block;
    top: calc(50% - 100px);
    left: calc(50% - 45px);
    position: absolute;
    z-index: 999999;
}


.login-box {
    width: 100%;
}

@media (min-width: 769px) {
    .login-box {
        width: 400px;
    }
}

.select2 {
    width: 100%;
}

.sex-input .form-check {
    display: inline list-item;
}

.text-ellipsis {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.overflow-ellipsis {
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    text-overflow: ellipsis;
    white-space: normal;
}

.search-frm label {
    padding-top: 6px;
}

.sex-input {
    margin-top: 8px;
}

.font-awesome-5-free {
    font-family: 'Font Awesome 5 Free';
}

/*reset css*/
div, label {
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 1.5em;
    margin: 10px;
}

/****** Style Star Rating Widget *****/
#rating {
    border: none;
    float: left;
}

#rating > input {
    display: none;
}

/*ẩn input radio - vì chúng ta đã có label là GUI*/
#rating > label:before {
    margin: 5px;
    font-size: 1.25em;
    font-family: FontAwesome;
    display: inline-block;
    content: "\f005";
}

/*1 ngôi sao*/
#rating > .half:before {
    content: "\f089";
    position: absolute;
}

/*0.5 ngôi sao*/
#rating > label {
    color: #ddd;
    float: right;
}

/*float:right để lật ngược các ngôi sao lại đúng theo thứ tự trong thực tế*/
/*thêm màu cho sao đã chọn và các ngôi sao phía trước*/
#rating > input:checked ~ label,
#rating:not(:checked) > label:hover,
#rating:not(:checked) > label:hover ~ label {
    color: #FFD700;
}

/* Hover vào các sao phía trước ngôi sao đã chọn*/
#rating > input:checked + label:hover,
#rating > input:checked ~ label:hover,
#rating > label:hover ~ input:checked ~ label,
#rating > input:checked ~ label:hover ~ label {
    color: #FFED85;
}

#loading-icon {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    opacity: 0.5;
    background: black;
    display: none;
    z-index: 9999
}

.lds-default {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    top: 46%;
    left: 46%;
}

.lds-default div {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: lds-default 1.2s linear infinite;
}

.lds-default div:nth-child(1) {
    animation-delay: 0s;
    top: 37px;
    left: 66px;
}

.lds-default div:nth-child(2) {
    animation-delay: -0.1s;
    top: 22px;
    left: 62px;
}

.lds-default div:nth-child(3) {
    animation-delay: -0.2s;
    top: 11px;
    left: 52px;
}

.lds-default div:nth-child(4) {
    animation-delay: -0.3s;
    top: 7px;
    left: 37px;
}

.lds-default div:nth-child(5) {
    animation-delay: -0.4s;
    top: 11px;
    left: 22px;
}

.lds-default div:nth-child(6) {
    animation-delay: -0.5s;
    top: 22px;
    left: 11px;
}

.lds-default div:nth-child(7) {
    animation-delay: -0.6s;
    top: 37px;
    left: 7px;
}

.lds-default div:nth-child(8) {
    animation-delay: -0.7s;
    top: 52px;
    left: 11px;
}

.lds-default div:nth-child(9) {
    animation-delay: -0.8s;
    top: 62px;
    left: 22px;
}

.lds-default div:nth-child(10) {
    animation-delay: -0.9s;
    top: 66px;
    left: 37px;
}

.lds-default div:nth-child(11) {
    animation-delay: -1s;
    top: 62px;
    left: 52px;
}

.lds-default div:nth-child(12) {
    animation-delay: -1.1s;
    top: 52px;
    left: 62px;
}

@keyframes lds-default {
    0%, 20%, 80%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

.select2-container--default .select2-selection--single.is-invalid {
    border-color: #f86c6b;
}

.time-keeping .note span {
    padding: 5px 10px;
    margin-right: 5px;
    color: #fff;
    opacity: .8;
}

.time-keeping .note .normal {
    background: #0fff22ab;
    color: #333;
}

.time-keeping .note .holiday {
    background: #eea236;
}

.time-keeping .note .weekend {
    background: #007bff;
}

.time-keeping .note .not_time_keeping {
    background: #fff;
    color: #333;
}

.time-keeping .remote .image {
    display: inline-block;
    padding-right: 10px;
}

.time-keeping .remote .image img {
    width: 3rem;
    object-fit: cover;
    object-position: center;
    height: 3rem;
}

.time-keeping .remote .full-name {
    padding-right: 10px;
    font-size: 1.5rem;
    font-family: inherit;
    font-weight: 500;
    color: inherit;
}

.sort-column:before {
    right: 0;
    content: "\f0de";
    font-family: 'Font Awesome\ 5 Free';
    font-weight: 900;
    font-size: 1rem;
    position: absolute;
    opacity: 0.3;
}

.sort-column:after {
    content: "\f0dd";
    font-family: 'Font Awesome\ 5 Free';
    font-weight: 900;
    right: 0;
    font-size: 1rem;
    position: absolute;
    opacity: 0.3;
}

.sort-column {
    position: relative;
    float: left;
    width: 100%;
    color: #23282c;
}

.sort-column:hover {
    text-decoration: none;
}

.sort-by-desc:before {
    opacity: .3;
}

.sort-by-desc:after {
    opacity: 1;
}

.sort-by-asc:after {
    opacity: .3;
}

.sort-by-asc:before {
    opacity: 1;
}

.sort-column.disabled:before, .sort-column.disabled:after {
    content: "";
}

.sort-column.disabled {
    pointer-events: none;
    cursor: default;
}

.tabBlock {
    background-color: #57574f;
    border: solid 0px #FFA54F;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    max-width: 200px;
    width: 100%;
    overflow: hidden;
    display: block;
    padding: 0 20px 0 10px;
}

.clock {
    vertical-align: middle;
    font-family: Orbitron;
    font-size: 35px;
    font-weight: normal;
    color: #FFF;
    padding: 0 10px;
}

.clocklg {
    vertical-align: middle;
    font-family: Orbitron;
    font-size: 20px;
    font-weight: normal;
    color: #FFF;
    text-align: center;
}

#time-keeping .modal-confirm .icon-box {
    border: 3px solid #499b5c;
}

#time-keeping .modal-confirm .icon-box i {
    color: #28a745;
}

#time-keeping .modal-title {
    padding-top: 10px;
}

#time-keeping .icheck-success {
    padding-right: 10px;
}

#time-keeping h6 .time {
    font-weight: 600;
    font-size: 21px;
    color: #28a745;
}

#time-keeping .btn-success {
    background: #28a745;
}

.fc-today {
    background-color: inherit !important;
}

.fc-today.alert-info {
    color: #212529;
}

.sort-by-desc:before {
    opacity: .3;
}

.sort-by-desc:after {
    opacity: 1;
}

.sort-by-asc:after {
    opacity: .3;
}

.sort-by-asc:before {
    opacity: 1;
}

.note {
    margin-bottom: 0;
}

.tr-active {
    background-color: #e0a800a1;
}

.box-2-row {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.table-truncate thead th, .table-truncate tbody td {
    white-space: nowrap;
}

.projects .table-avatar img, .projects img.table-avatar {
    object-fit: cover;
    object-position: center;
    height: 2.5rem;
}

.custom-avatar {
    width: 2.5rem !important;
    object-fit: cover;
    object-position: center;
    height: 2.5rem !important;
}

.fullscreen {
    font-size: 30px;
    padding-top: 13px;
    padding-right: 16px;
    color: #ddd;
}

.fullscreen:hover {
    cursor: pointer;
    font-size: 35px;
    padding-top: 10px;
    padding-right: 13px;
    color: #333;
}

@-moz-document url-prefix() {
    .overflow-ellipsis {
        --lh: 1.4rem;
        --max-lines: 2;
        line-height: var(--lh);
        max-height: calc(var(--lh) * var(--max-lines));
    }
}

.select2-container--default .select2-selection--single.is-invalid {
    border-color: #f86c6b;
}

select.is-invalid + .select2-container--default .select2-selection {
    border-color: #f86c6b;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center right calc(.375em + .1875rem);
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.card-custom .form-group {
    display: flex;
    flex-direction: column;
}

.card-custom .form-group label {
    flex: 1;
}

.profile-user-img {
    object-fit: cover;
    object-position: center;
    width: 100px;
    height: 100px;
}

.min-width-120 {
    min-width: 120px;
}

.paginations ul.pagination {
    flex-wrap: wrap;
    margin-bottom: 0 !important;
}

.card-header::after {
    display: none;
}

.card-body {
    padding: 1rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.bg-first-shipment {
    background: #007bff14;
}

/*disable scrollbar*/
/*body.hidden-scrollbar {*/
/*    overflow: hidden;*/
/*}*/

body.hidden-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ===== Scrollbar CSS ===== */
/* Firefox */
nav.custom-scrollbar-sidebar, div.custom-scrollbar-sidebar {
    scrollbar-width: auto;
    scrollbar-color: #007bff;
}

/* Chrome, Edge, and Safari */
nav.custom-scrollbar-sidebar::-webkit-scrollbar {
    width: 3px;
}

nav.custom-scrollbar-sidebar::-webkit-scrollbar-track {
    background: #ffffff33;
}

nav.custom-scrollbar-sidebar::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 8px;
}

div.custom-scrollbar-sidebar::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

div.custom-scrollbar-sidebar::-webkit-scrollbar-thumb {
    background-color: #007bff;
}

div.custom-scrollbar-sidebar::-webkit-scrollbar-track {
    background: #0000001a;
}
/*custom css all*/
body {
    font-size: 0.9rem;
}
.table-responsive .table td, .table-responsive .table th {
    padding: 0.2rem 0.75rem !important;
}

.bg-counter-signed {
    color: #fff !important;
    background-color: #28a745;
}

.bg-net-invoice {
    background-color: #e0a800;
}

.bg-net-landed {
    color: #fff !important;
    background-color: #0069d9;
}

.min-height-300 {
    min-height: 300px;
}
