/*
* common 
*/
::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    font-size: .875rem !important;
}

::-moz-placeholder {
    /* Firefox 19+ */
    font-size: .875rem !important;
}

:-ms-input-placeholder {
    /* IE 10+ */
    font-size: .875rem !important;
}

:-moz-placeholder {
    /* Firefox 18- */
    font-size: .875rem !important;
}

.cursor-pointer {
    cursor: pointer;
}

.user-panel img {
    height: 2.1rem;
    width: 2.1rem;
}

/*
* custom button text color background 
*/
.btn-gray-clear {
    color: #fff;
    background-color: #595959;
    border-color: #595959;
    box-shadow: none;
}

.btn-gray-clear:hover {
    color: #fff;
    background-color: #545454;
    border-color: #545454;
}

.btn-download-primary {
    color: #fff;
    background-color: #7434a4;
    border-color: #7434a4;
    box-shadow: none;
}

.btn-download-primary:hover {
    color: #fff;
    background-color: #5c3c9c;
    border-color: #5c3c9c;
}

.btn-admin-primary {
    color: #fff;
    background-color: #376092;
    border-color: #376092;
    box-shadow: none;
}

.btn-admin-primary:hover {
    color: #fff;
    background-color: #2c4e78;
    border-color: #2c4e78;
}

.btn-admin-blue {
    color: #fff;
    background-color: #558fd5;
    border-color: #558fd5;
    box-shadow: none;
}

.btn-admin-blue:hover {
    color: #fff;
    background-color: #497cba;
    border-color: #497cba;
}

.btn-outline-admin-primary {
    color: #376092;
    border-color: #376092;
}

.btn-outline-admin-primary:hover {
    color: #fff;
    background-color: #376092;
    border-color: #376092;
}

.text-color-admin {
    color: #376092;
}

.sidebar-dark-admin .nav-sidebar>.nav-item>.nav-link.active,
.sidebar-light-admin .nav-sidebar>.nav-item>.nav-link.active {
    background-color: #376092;
    color: #fff;
}

.btn-green-primary {
    color: #fff;
    background-color: #77933c;
    border-color: #77933c;
    box-shadow: none;
}

.btn-green-primary:hover {
    color: #fff;
    background-color: #728c3b;
    border-color: #728c3b;
}

.btn-school-green {
    color: #fff;
    background-color: #83a832;
    border-color: #83a832;
    box-shadow: none;
}

.btn-school-green:hover {
    color: #fff;
    background-color: #7ea32e;
    border-color: #7ea32e;
}

.btn-outline-school-primary {
    color: #77933c;
    border-color: #77933c;
}

.btn-outline-school-primary:hover {
    color: #fff;
    background-color: #77933c;
    border-color: #77933c;
}

.text-color-green {
    color: #77933c;
}

.text-color-green:hover {
    color: #83a832;
}

.sidebar-dark-school .nav-sidebar>.nav-item>.nav-link.active,
.sidebar-light-school .nav-sidebar>.nav-item>.nav-link.active {
    background-color: #77933c;
    color: #fff;
}

.btn-customer-yellow {
    color: #000;
    background-color: #fcc304;
    border-color: #fcc304;
    box-shadow: none;
}

.btn-trainer-primary {
    color: #fff;
    background-color: #e46c0a;
    border-color: #e46c0a;
    box-shadow: none;
}

.btn-trainer-primary:hover {
    color: #fff;
    background-color: #de6909;
    border-color: #de6909;
}

.btn-trainer-orange {
    color: #fff;
    background-color: #f79646;
    border-color: #f79646;
    box-shadow: none;
}

.btn-trainer-orange:hover {
    color: #fff;
    background-color: #eb8e42;
    border-color: #eb8e42;
}

.btn-outline-trainer-primary {
    color: #e46c0a;
    border-color: #e46c0a;
}

.btn-outline-trainer-primary:hover {
    color: #fff;
    background-color: #e46c0a;
    border-color: #e46c0a;
}

.text-color-trainer {
    color: #e46c0a;
}

.sidebar-dark-trainer .nav-sidebar>.nav-item>.nav-link.active,
.sidebar-dark-trainer .nav-sidebar>.nav-item>.nav-link.active {
    background-color: #e46c0a;
    color: #fff;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #376092;
}

.researcher-dropdown-menu .dropdown-item:active {
    background-color: #77933c;
}

.page-link {
    color: #376092;
}

/*
* custom background color
*/
.bg-green-1 {
    background-color: #ebf1de !important;
}

.bg-green-2 {
    background-color: #c3d69b !important;
}

.bg-green-3 {
    background-color: #77933c !important;
}

.bg-orange-1 {
    background-color: #fdeada !important;
}

.bg-orange-2 {
    background-color: #fac090 !important;
}

.bg-orange-3 {
    background-color: #e46c0a !important;
}

.bg-blue-1 {
    background-color: #dce6f2 !important;
}

.bg-blue-2 {
    background-color: #95b3d7 !important;
}

.bg-blue-3 {
    background-color: #376092 !important;
}

.bg-gray-1 {
    background-color: #f2f2f2 !important;
}

.bg-gray-2 {
    background-color: #bfbfbf !important;
}

.bg-gray-3 {
    background-color: #595959 !important;
}

.bg-gray-4 {
    background-color: #545454 !important;
}

.bg-gray-5 {
    background-color: #7f7f7f !important;
}

.bg-black-1 {
    background-color: #404040 !important;
}

/*
* css for login, forgot, recover page
*/
.logo-custom {
    top: 5px;
    left: 16px;
}

.logo-custom img {
    width: 44px;
}

.logo-custom span,
.login-logo,
.register-logo {
    font-size: 1.5rem;
}

.logo-custom span {
    color: #376092;
}

/*
* css for upload button
*/
.upload-btn-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.upload-image-preview {
    height: 250px;
    width: 162.5px;
    background-color: #d9d9d9;
    border-radius: 0.75rem;
}

.btn-upload-image {
    width: 100px;
    margin: -50px auto 0;
}

.btn-wider-upload-image {
    width: 110px;
}

/*
* input checkbox login
*/
.login-box .form-check-input {
    margin-top: .35rem;
}

/*
* fix form select invalid
*/
.form-control.is-invalid,
.was-validated .form-control:invalid {
    background-position: right calc(.85em + .1875rem) center;
}

/*
* fix button upload product
*/
@media screen and (min-width: 1200px) and (max-width: 1320px) {
    .btn-wider-upload-image {
        width: auto;
    }
}

/*
* fix rating plugin outline
*/
.rating-container .rating-stars:focus {
    outline: none;
}

/*
* chat message
*/
.table-chat-list,
.direct-chat-wrapper {
    height: 450px;
}

.table-chat-list .active {
    background-color: #c3d69b !important;
    cursor: pointer;
}

.direct-chat-body {
    height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.direct-chat-wrapper .direct-chat-messages {
    height: auto;
    width: 100%;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box
}

.direct-chat-body .direct-chat-text {
    margin: 0;
    word-wrap: break-word;
    max-width: 100%;
    text-align: left;
    white-space: pre-line;
}

.direct-chat-body .right>.direct-chat-text {
    background-color: #77933c;
    border-color: #77933c;
    color: #fff;
}

.direct-chat-body .right>.direct-chat-text::after,
.direct-chat-body .right>.direct-chat-text::before {
    border-left-color: #77933c;
}

.direct-chat-msg.right {
    text-align: right;
}

.direct-chat-infos .direct-chat-timestamp,
.direct-chat-infos .direct-chat-name {
    font-size: .75rem;
}

.direct-chat-date {
    font-size: .875rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #d2d6de;
    line-height: 0.1em;
    margin: 10px 0 20px;
}

.direct-chat-date span {
    background: #fff;
    padding: 0 10px;
}

.chat-box-msg-wrapper {
    position: relative;
    flex-shrink: 0;
    display: flex;
    padding-top: 10px;
    margin-top: auto;
}

.chat-box-input {
    min-height: 100%;
    width: 100%;
    overflow-y: auto;
    padding: 2px 75px 2px 5px;
    border: 1px solid #d2d6de;
    resize: none;
}

.chat-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.chat-mask span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.chat-box-input::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.chat-box-input {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.chat-box-input:focus-visible {
    outline: none;
}

.chat-box-msg-wrapper .btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

/*
* time select in Small devices (landscape phones, 576px and up)
*/
.period .datetimepicker-input,
.time-select .datetimepicker-input {
    border-top-left-radius: .25rem !important;
    border-bottom-left-radius: .25rem !important;
}

@media (min-width: 576px) {

    .period .datetimepicker-input,
    .time-select .datetimepicker-input {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }
}

/*error message*/
.error-message {
    display: block;
    width: 100%;
    margin-top: .25rem;
    margin-left: .5rem;
    font-size: 80%;
    color: #dc3545;
}

/* loading overlay*/
#process-overlay {
    background: #ffffff;
    color: #666666;
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 5000;
    top: 0;
    left: 0;
    float: left;
    text-align: center;
    padding-top: 25%;
    opacity: .80;
}

.process-loading {
    margin: 0 auto;
    height: 64px;
    width: 64px;
    animation: rotate-process 0.8s infinite linear;
    border: 5px solid #666666;
    border-right-color: transparent;
    border-radius: 50%;
}

@keyframes rotate-process {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*calendar daterangepicker*/
.daterangepicker .calendar-table table thead tr:nth-child(2) th:first-child,
.daterangepicker td:first-child,
.daterangepicker td:first-child:hover {
    color: #dc3545;
}

.daterangepicker .calendar-table table thead tr:nth-child(2) th:last-child,
.daterangepicker td:last-child,
.daterangepicker td:last-child:hover {
    color: #357ebd;
}

.daterangepicker td.today,
.daterangepicker td.today:hover {
    background-color: #eee;
}

.daterangepicker td.today.active,
.daterangepicker td.today.active:hover,
.daterangepicker td:first-child.active,
.daterangepicker td:first-child.active:hover,
.daterangepicker td:last-child.active,
.daterangepicker td:last-child.active:hover {
    background-color: #357ebd;
    color: #fff;
}

.admin-sidebar .nav-sidebar>.nav-item>.nav-link.active {
    background-color: #376092 !important;
    color: #fff !important;
}

.research-sidebar .nav-sidebar>.nav-item>.nav-link.active {
    background-color: #77933c !important;
    color: #fff !important;
}

.admin-navbar .navbar-nav .nav-link i::before {
    color: #376092;
}

.research-navbar .navbar-nav .nav-link i::before {
    color: #77933c;
}

.login-box .admin-login {
    background-color: #dcecf8;
    padding: 30px;
    border-radius: 30px;
}

.login-box .researcher-login {
    background-color: #e8f4dc;
    padding: 30px;
    border-radius: 30px;
}

.admin-login-page {
    background-color: #a0c4e4;
}

.researcher-login-page {
    background-color: #b0d48c;
}

/* Chrome, Safari, Edge, Opera */
.customer-action input::-webkit-outer-spin-button,
.customer-action input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.customer-action input[type=number] {
    -moz-appearance: textfield;
}

.score::placeholder {
    color: #28a745;
    opacity: 1;
    /* Firefox */
}

.score:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #28a745;
}

.score::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #28a745;
}

#process-overlay {
    background: #ffffff;
    color: #666666;
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 5000;
    top: 0;
    left: 0;
    float: left;
    text-align: center;
    padding-top: 25%;
    opacity: .80;
}

.process-loading {
    margin: 0 auto;
    height: 64px;
    width: 64px;
    animation: rotate-process 0.8s infinite linear;
    border: 5px solid #666666;
    border-right-color: transparent;
    border-radius: 50%;
}

@keyframes rotate-process {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media only screen and (min-width: 768px) {
    .download-pattern-block {
        display: flex;
        align-items: flex-end;
        justify-content: end;
    }
}

.play-pause-button {
    width: 30px;
    height: 30px;
    text-align: center;
    font-size: 15px;
    cursor: pointer;
    border: none;
    background: #f8f8f8;
}

#play-range {
    padding: 0 !important;
    height: unset !important;
    margin-left: 10px;
}

.play-group {
    border: 1px solid silver;
    border-radius: 3px;
}

#frm-update-comment {
    width: 100%;
}

.alert-dismissible .close {
    top: unset;
    bottom: 2px;
}

.text-sm .btn-big-download {
    font-size: 1.5rem !important;
    padding: 1rem 2rem !important;
    border-radius: 1rem !important;
}

.tracking-result-container {
    margin: auto;
    background-color: #73c6d9;
    border-radius: 10px;
    padding: 10px;
}

.tracking-result-title {
    background-color: #00a5bf;
    color: white;
    border-radius: 10px;
    padding: 10px;
    font-weight: bold;
    width: 180px;
    text-align: center;
    margin: auto;
}

.break-all {
    word-break: break-all;
}

/* 19/09/19 add */
@media (min-width: 768px) {
    /*
    STICKY ROW
    Normal css box-shadow works for the header as it is a single html element
    */
    tr.sticky {
        position: sticky;
        top: 0;
        z-index: 1;
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
    }

    /*
    STICKY COLUMN
    Avoid undesirable overlapping shadows by creating a faux shadow on the ::after psudo-element instead of using the css box-shadow property.
    */

    th.sticky,
    td.sticky {
        position: sticky;
        left: 0;
        background: #fff;
    }

    th.sticky::after,
    td.sticky::after {
        content: "";
        position: absolute;
        right: -6px;
        top: 0;
        bottom: -1px;
        width: 5px;
        border-left: 1px solid #dee2e6;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
    }

    th.sticky::before,
    td.sticky::before {
        content: "";
        position: absolute;
        left: -6px;
        top: 0;
        bottom: -1px;
        width: 5px;
        border-right: 1px solid #dee2e6;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 100%);
    }
}

.tongue-image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
    width: 100%;
}

.tongue-image-container img {
    display: block;
    width: 100%;
    height: auto;
}

/* Style for td containing both tongue image and condition table */
/* Ensure tongue-image-container is at top and condition-table-container is at bottom */
.tongue-image-container {
    flex-shrink: 0;
}

.condition-table-container {
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
    margin-top: 10px;
}

.grid-overlay {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    border: 2px dashed red;
}

/* dashed lines */
.image-line {
    position: absolute;
    pointer-events: none;
}

.vline {
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed red;
    transform: translateX(-50%);
}

.hline {
    left: 0;
    right: 0;
    height: 0;
    border-top: 2px dashed red;
    transform: translateY(-50%);
}

.v1 {
    left: 33.3333%;
}

.v2 {
    left: 66.6666%;
}

.h1 {
    top: 33.3333%;
}

.h2 {
    top: 66.6666%;
}

/* number in grid */
.grid-number {
    position: absolute;
    color: red;
    font-size: 18px;
    font-weight: bold;
}

/* position number in grid */
.n1 {
    top: 0;
    left: 0;
}

.n2 {
    top: 0;
    left: 33.3333%;
}

.n3 {
    top: 0;
    left: 66.6666%;
}

.n4 {
    top: 33.3333%;
    left: 0;
}

.n5 {
    top: 33.3333%;
    left: 33.3333%;
}

.n6 {
    top: 33.3333%;
    left: 66.6666%;
}

.n7 {
    top: 66.6666%;
    left: 0;
}

.n8 {
    top: 66.6666%;
    left: 33.3333%;
}

.n9 {
    top: 66.6666%;
    left: 66.6666%;
}

/* move number into grid */
.grid-number {
    transform: translate(5px, 5px);
}

.bg-green-5 {
    background-color: #DFECD7;
}

.table-diagnosis td,
.table-diagnosis th {
    border: 1px solid #c9c9c9;
}

.table-diagnosis table tr:first-child td {
    border-top: 0;
}
.table-diagnosis table tr td:last-child {
    border-right: 0;
}
.table-diagnosis table tr:last-child td {
    border-bottom: 0;
}

.table-results {
    border: none !important;
    font-size: 24px !important;
}

.table-results th,
.table-results td {
    border: 2px solid #5b8e9f !important;
    color: #5b8e9f !important;
    vertical-align: middle !important;
    font-size: 24px !important;
}

.table-results thead th,
.table-results tbody th {
    border: 2px solid #5b8e9f !important;
    color: #5b8e9f !important;
    vertical-align: middle !important;
    font-size: 24px !important;
}

.table-results td {
    height: 40px !important;
    line-height: 1.2 !important;
    font-size: 24px !important;
}