/* body {
    font-family: "Kanit", "Poppins", sans-serif !important;
} */
.card-content.min-height {
    min-height: calc(95vh - 50px);
}
.row {
    margin-left: 0;
    margin-right: 0;
}

.contain-right-nav .box-user-nav p {
    color: var(--theme-main-color);
}

.title-page {
    background-color: var(--theme-second-color);
    font-size: 20px;
    color: white;
    padding: 15px;
    margin-bottom: 15px;
}

.btn.btn-nav-shortcut {
    width: 75px !important;
    margin-left: 1px;
    margin-right: 1px;
}

a.btn {
    cursor: pointer;
}

.no-sub-menu {
    background-image: none !important;
}


/* DataTable */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_desc_disabled:before {
    right: 1.3rem;
    content: none;
}

table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after {
    right: 0.5rem;
    content: none;
}

table.dataTable thead th {
    border-bottom: 0;
}

table.dataTable tfoot th {
    border-top: 0;
}

table.dataTable.no-footer {
    border-bottom: 0;
}

.paginate_button.current {
    color: blueviolet !important;
    background-color: var(--theme-main-color);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--theme-second-color) !important;
    border: 1px solid var(--theme-second-color);
    padding: 2px 10px !important;
    min-width: 29.7px;
    margin: 3px 3px;
}

/* .paginate_button.previous,
.paginate_button.next {
    min-width: 73px !important;
} */

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border: 1px solid var(--theme-second-color);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    color: white !important;
    background: var(--theme-second-color) !important;
    opacity: 0.5;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: white !important;
    border: 1px solid var(--theme-second-color);
    background: linear-gradient(to bottom,
            var(--theme-second-color) 0%,
            var(--theme-second-color) 100%);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(to bottom,
            var(--theme-second-color) 0%,
            var(--theme-second-color) 100%);
}

/* Table */
thead>tr {
    color: var(--theme-second-color);
}

.table>td {
    vertical-align: middle;
}

table.table td,
table.table th {
    text-align: left;
}

/* sweetAlart */
.swal2-container {
    z-index: 1700 !important;
}

/* Switch Toggle */
.switchToggle {
    display: inline-block;
    padding: 2px;
}

.switchToggle.disabled {
    pointer-events: none;
    opacity: 0.65;
}

.switchToggle input[type="checkbox"] {
    height: 0;
    width: 0;
    visibility: hidden;
    position: absolute;
}

.switchToggle label {
    cursor: pointer;
    text-indent: -9999px;
    width: 120px;
    max-width: 120px;
    height: 30px;
    background: var(--danger);
    display: block;
    border-radius: 100px;
    position: relative;
    margin: auto;
}

.switchToggle label:after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 90px;
    transition: 0.3s;
}

.switchToggle input:checked+label,
.switchToggle input:checked+input+label {
    background: var(--success);
}

.switchToggle input+label:before,
.switchToggle input+input+label:before {
    content: "ปิดใช้งาน";
    position: absolute;
    top: 3px;
    left: 23px;
    width: 100px;
    height: 26px;
    border-radius: 90px;
    transition: 0.3s;
    text-indent: 0;
    color: #fff;
    text-align: center;
}

.switchToggle input:checked+label:before,
.switchToggle input:checked+input+label:before {
    content: "เปิดใช้งาน";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 100px;
    height: 26px;
    border-radius: 90px;
    transition: 0.3s;
    text-indent: 0;
    color: #fff;
}

.switchToggle input:checked+label:after,
.switchToggle input:checked+input+label:after {
    left: calc(100% - 2px);
    transform: translateX(-100%);
}

.switchToggle label:active:after {
    width: 60px;
}

.toggle-switchArea {
    margin: 10px 0 10px 0;
}

/* Image-group */
div.image-group {
    display: flex;
    align-items: center;
    margin: 5px;
}

div.image-group>div>img {
    max-width: 100%;
    max-height: 100%;
}

div.image-group>div {
    text-align: center;
    width: 75px;
    height: 67.5px;
    border: 1px solid black;
    border-radius: 5px;
}

div.image-group>span {
    width: 150px;
    overflow-x: hidden;
    padding-left: 5px;
    padding-right: 5px;
    white-space: nowrap !important;
}

/* Datepicker */
.datepicker.form-control[readonly] {
    background-color: white;
}

input.datepicker {
    background-image: url("/theme/img/icons/icon-calendar.png");
    background-repeat: no-repeat;
    background-position: center right 10px;
    background-size: 25px auto;
    z-index: 999 !important;
    min-width: 120px;
}

/* Select2 */
.select2-selection__arrow {
    height: 100% !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 35px !important;
}


/* BUTTON */
.btn.btn-action {
    padding: 2px;
    font-size: 20px;
}

.btn-none,
.btn-none:hover {
    color: white;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.7;
}

.btn-none:hover {
    opacity: 1;
}

/* Utility */
label.required::after {
    content: '*';
    color: red;
}

.loading-page {
    display: flex;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 9999;
    height: 100vh;
    width: 100vw;
    background-color: rgb(000, 000, 000, 0.5);
}

.position-middle {
    position: absolute;
    top: 50%;
    left: 50%;
}

.flex-v-center {
    display: flex;
    align-items: center;
}

.cursor-pointer {
    cursor: pointer;
}

div.img-preview {
    width: 150px;
    height: 120px;
    border: 1px solid black;
    border-radius: 5px;
}

div.img-sm-preview>img.img-preview {
    object-fit: cover;
    width: 150px !important;
    height: 120px !important;
    border-radius: 5px;
}

div.img-lg-preview {
    text-align: center;
    width: 200px;
    height: 180px;
    border: 1px solid black;
    border-radius: 5px;
}

div.img-lg-preview>img.img-preview {
    object-fit: cover;
    width: 200px;
    height: 180px;
    border-radius: 5px;
}

img.img-preview {
    max-width: 100%;
    max-height: 100%;
}

.header-page-login {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.header-login {
    height: 50px;
}

.main-login {
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-direction: column;
}

.container-login-form {
    min-width: 350px;
    max-width: 410px;
    margin-left: 50%;
    margin-bottom: 10%;
}

.container-pick-form {
    min-height: calc(90vh - 70px);
    max-width: 75%;
    margin-right: 50%;
    margin-left: 5% !important;
}

.menu-open {
    width: 320px;
}

.no-padding {
    padding: 0px !important;
}

.no-margin {
    margin: 0px !important;
}

.border-bottom-cliniter {
    border-bottom: 1px solid #aaaaaa !important;
}

.border-left-cliniter-dental {
    border-left: 1px solid #aaaaaa !important;
}

.border-top-cliniter-dental:not(:first-child) {
    border-top: 1px solid #aaaaaa !important;
}

.main-dashboard {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-direction: column;
}

.is-active {
    color: var(--theme-second-color) !important;
}

.head-tb-regis th {
    background-color: var(--theme-main-color) !important;
    /* color: #000000 !important; */
    color: #ffffff !important;
}

td>input,
td>select {
    min-width: 100px;
}

.header-modal-inven {
    background-color: var(--theme-second-color) !important;
    color: #ffffff;
}

/* input[type=time] {
    background-image: url("/images/clock_input.png");
    background-repeat: no-repeat;
    background-position: center right 10px;
    background-size: 20px auto;
    z-index: 999 !important;
    min-width: 120px;
} */


.card-deck-product {
    border: 1px solid var(--theme-second-color);
    margin-left: 1px;
    margin-right: 1px;
    padding: 5px;
    border-radius: 5px;
    /* height: 100%; */
    height: 180px;
    padding-left: auto;
    text-align: left;
    overflow-y: scroll;
}

.card.card-product {
    min-width: 120px !important;
    max-width: 120px !important;
    width: 120px !important;
    height: 160px;
    margin-left: 5px !important;
    margin-right: 5px !important;
    margin-bottom: 10px !important;
}

div.image-product {
    width: 118px;
    height: 120px;
}

.image-product {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% 0%;
    border-top-right-radius: 0.25rem;
    border-top-left-radius: 0.25rem;
}

.btn-product-fav {
    position: absolute;
    top: 0px;
    right: 3px;
    color: var(--theme-second-color) !important;
}

.card-product-add {
    background-color: var(--theme-second-color);
    position: absolute;
    top: 120px;
    right: 0px;
    border-radius: 100%;
    height: 23px;
    width: 23px;
    text-align: center;
    padding-left: 3.5px;
    padding-right: 3.5px;
    color: white;
}

.card-product-detail {
    padding: 2px;
    height: 25px !important;
}

.card-product-name {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    padding-left: 0.25rem;
    color: #f1f1f1;
    width: 100%;
    color: white;
    font-size: 12px;
    max-height: 20px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-product-detail>p {
    font-size: 12px;
    margin-bottom: 0px;
}

.card-product-footter {
    font-size: 10px;
    text-align: center;
    background-color: rgb(231, 231, 231);
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.input-group-prepend.branch-prefix {
    height: 38px;
    border: 1px solid black;
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
}

.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label::before {
    background-color: rgba(242, 116, 5, .5);
}

.page-footer {
    /* position: absolute !important; */
    width: 100% !important;
    /* top: 100% !important; */
}

.card-content {
    -webkit-box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.3);
}

.ip-clinic {
    border: 1px solid #707070 !important;
}

.dataTable-custom.dataTable-custom-sm td,
table.table-custom-sm td {
    padding: 0.25rem;
    /* padding-top: 0.25rem; */
    /* padding-bottom: 0.25rem; */
}

.action-footer {
    position: fixed;
    bottom: 0px;
    width: 100%;
    max-width: calc(100vw - (var(--sidebar-width) + 30px));
    background-color: #fff;
    z-index: 11;
}

.sticky-top-bg-white {
    position: sticky;
    top: 0px;
    z-index: 10;
    background-color: white;
}

.max-height-content {
    max-height: calc(100vh - (var(--navbar-height) + 70px));
}
.max-height-content-body {
    max-height: calc(100vh - (var(--navbar-height) ));
}

.min-height-content {
    min-height: calc(100vh - (var(--navbar-height) + 70px));
}
.min-height-content-body {
    min-height: calc(100vh - (var(--navbar-height) ));
}

.height-content {
    height: calc(100vh - (var(--navbar-height) + 70px));
}
.height-content-body {
    height: calc(100vh - (var(--navbar-height) ));
}
.side-menu .side-menu-contain .side-menu-first {
    /* height: auto; */
    overflow-y: scroll;
    scrollbar-width: none;
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
}

.side-menu-first .ul-side-menu .li-side-menu .link-side-menu .link-img {
    box-shadow: none;
    background-position: 55% 55% !important;
    background-size: 220% 220% !important;
}

nav div.contain-right-nav a.active {
    background-color: var(--theme-second-color);
}

nav div.contain-right-nav a.active>i,
nav div.contain-right-nav a.active>span {
    color: white !important;
}
