* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
}

    a,
    p,
    li,
    input,
    textarea,
    span,
    div,
    html,
    body,
    html a {
        margin-bottom: 0;
        font-family: 'Kanit', sans-serif;
        font-size: 14px;
        letter-spacing: 0.5px;
    }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Kanit';
}

body {
    background-color: #f2f7ff;
}

a {
    text-decoration: unset;
}

    a:hover {
        text-decoration: unset;
        color: inherit;
    }

/* background color class */

.bg-c1c1c1 {
    background-color: #c1c1c1;
}

/* font color class */
.text-red {
    color: red;
}

.text-c0c2c1 {
    color: #c0c2c1;
}

.text-black {
    color: black;
}

.mx-500px {
    max-width: 500px;
}

.input-group {
    margin-bottom: 15px;
}

.form-control, .form-select {
    border-radius: 4px;
    border: 2px solid #d7d7d787;
    padding: 5px 11px;
    height: 45px;
    font-size: 16px;
}

textarea.form-control {
    height: auto;
    min-height: calc(1.5em + 80px);
}

.form-control:focus {
    box-shadow: 0 0 0 .15rem rgba(13,110,253,.25);
}

input[readonly], input[readonly]:focus {
    background-color: #ebebebb8;
    outline: unset;
    box-shadow: unset;
    border-color: #d7d7d787;
}

.choices__inner {
    max-height: 45px;
    border: 2px solid #d7d7d787;
    border-radius: 4px;
}

.form-group label, .form-check label {
    color: black;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.form-check, .form-check .custom-checkbox, .form-check-input {
    font-size: 16px;
}

.btn {
    padding-left: 35px;
    padding-right: 35px;
    font-size: 16px;
    background-color: #26b6eb;
    border-color: #26b6eb;
    color: white;
}

    .btn:hover {
        background-color: #45a4d2;
        border-color: #45a4d2;
        color: white;
    }

    .btn.btn-light-secondary {
        border-color: #898989;
        background-color: #898989;
        color: white;
    }

.btn-light-secondary:hover {
    background-color: #797778;
    border-color: #797778;
    color: white;
}

.btn.btn-success {
    background-color: #198754;
    border-color: #198754;
}

    .btn.btn-success:hover {
        background-color: #146c43;
        border-color: #146c43;
    }

.login {
    position: relative;
    background: url('../images/bg-login.jpg') center center / cover no-repeat;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    -webkit-box-pack: end;
    justify-content: flex-end;
    -webkit-box-align: center;
}

    .login:before {
        content: '';
        width: 100%;
        height: 100%;
        display: flex;
        background-color: rgba(0, 0, 0, 0.6);
        position: absolute;
        z-index: 1;
        top: 0px;
        left: 0px;
        right: inherit;
    }

    .login .content-wrapper {
        position: relative;
        max-width: 550px;
        right: 0;
        width: 100%;
        min-height: 100%;
        z-index: 2;
        overflow-y: auto;
    }

.login__form {
    padding: 70px 50px;
    width: 500px;
    z-index: 10;
    height: 100%;
    width: 100%;
}

    .login__form h1 {
        margin-bottom: 40px;
        font-size: 32px;
        font-family: 'Kanit-SemiBold';
    }


.login__image {
    padding: 0px;
}

.login__forgotpassowrd {
    text-align: center;
    color: #797778;
    display: block;
    padding-bottom: 10%;
    border-bottom: 1px solid #ddd;
    border-bottom-style: dashed;
}

div.login__forgotpassowrd {
    text-align: left;
}

    div.login__forgotpassowrd a {
        color: black;
        font-size: 16px;
        display: block;
    }

.login .login__submit {
    background-color: #c1c1c1;
    border-color: #c1c1c1;
    color: black;
    padding-left: 35px;
    padding-right: 35px;
    margin: 35px 0px 35px 0px !important;
}

    .login .login__submit:hover {
        background-color: #797778;
        color: white;
    }

.sidebar-wrapper {
    background-color: #8dd7fc;
}

    .sidebar-wrapper .sidebar-header {
        border-bottom: 1px solid #FFFFFF;
        padding: 1rem 0.5rem;
        background-color: #257cb2;
    }

#sidebar .logo {
    position: relative;
    align-items: center;
    display: flex;
}

.sidebar-wrapper .sidebar-header .logo:after {
    content: '';
    height: 50px;
    background-color: white;
    width: 1px;
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0%, -50%);
}

.sidebar-header__title {
    display: flex;
    align-items: center;
    padding-left: 10px;
}

    .sidebar-header__title span {
        color: white;
        font-size: 22px;
        font-weight: normal;
        font-family: Kanit-SemiBold;
    }

.sidebar-wrapper .sidebar-header .toggler {
    position: absolute;
    top: 12px;
    right: 12px;
}

    .sidebar-wrapper .sidebar-header .toggler a {
        font-size: 20px;
        color: white;
    }

.sidebard-authenby {
    padding: 1rem;
    border-bottom: 1px solid white;
    background-color: #257cb2;
}

    .sidebard-authenby span {
        font-size: 20px;
        color: white;
        ;
    }

.sidebar-wrapper .menu {
    padding: 0px;
    margin-top: 0px;
}

    .sidebar-wrapper .menu .sidebar-item {
        margin-top: 0px;
        border-bottom: 1px solid white;
    }

    .sidebar-wrapper .menu .sidebar-link {
        color: white;
        padding: 1rem;
        cursor: pointer;
    }

        .sidebar-wrapper .menu .sidebar-link:hover, .sidebar-wrapper .menu .active .sidebar-link {
            background-color: #45a4d2;
            border-radius: unset;
        }

        .sidebar-wrapper .menu .sidebar-link span {
            font-size: 18px;
            font-weight: normal;
            margin-left: 10px;
        }

        .sidebar-wrapper .menu .sidebar-link i, .sidebar-wrapper .menu .sidebar-link svg {
            color: white;
            display: flex;
            align-items: center;
            font-size: 16px;
        }

        .sidebar-wrapper .menu .sidebar-link > img {
            max-width: 16px;
        }

#main header {
    background-color: #257cb2;
}

    #main header .container-fluid {
        padding-left: 0;
    }

.navbar-expand {
    padding: 15px 20px;
}

    .navbar-expand a.burger-btn {
        color: white;
    }

        .navbar-expand a.burger-btn i {
            display: flex;
            align-items: center;
        }

.main__title {
    display: flex;
    align-items: center;
}

    .main__title svg.fa-user-plus {
        width: 24px;
        height: 24px;
        color: white;
    }

    .main__title span {
        font-size: 20px;
        color: white;
        padding-left: 15px;
    }

.notification {
    margin-right: 5%;
    position: relative;
    cursor: pointer;
}

#noti-count {
    position: absolute;
    background-color: red;
    color: white;
    border-radius: 20px;
    padding: 1px 4px;
    font-size: 10px;
    top: -5px;
    left: 8px;
}

#noti-list {
    list-style: none;
    padding: 0;
}

.noti-box {
    position: absolute;
    right: -20px;
    width: 300px;
    background-color: white;
    max-height: 300px;
    z-index: 20;
    top: 30px;
    border-radius: 10px;
}

    .noti-box:before {
        content: '';
        position: absolute;
        top: -14px;
        /* left: 0; */
        right: 21px;
        z-index: 200;
        border: solid 8px transparent;
        border-bottom-color: #737779;
    }

.noti-list-header {
    padding: 10px 15px;
    background-color: #737779;
    border-top-right-radius: 7px;
    border-top-left-radius: 7px;
    color: white;
}

    .noti-list-header span {
        font-size: 18px;
        font-family: 'Kanit-SemiBold';
    }

#noti-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    border-bottom-right-radius: 7px;
    border-bottom-left-radius: 7px;
    max-height: 250px;
    overflow: hidden;
    overflow-y: scroll;
}

    #noti-list li {
        padding: 10px 15px;
        border-bottom: 1px solid #ebebeb;
    }

        #noti-list li:last-of-type {
            border-bottom: none;
        }

.noti-detail-date {
    font-size: 10px;
    text-align: right;
    display: block;
    padding-top: 10px;
    /* font-family: sans-serif; */
    font-weight: bold;
    /* letter-spacing: 0; */
    color: #a9a7a7b5;
}

.notification svg {
    font-size: 20px;
    color: #ffc308;
}

#main #main-content {
    padding: 35px 20px;
}

section.page-header {
    margin-bottom: 25px;
}

.page-title h3 {
    font-size: 18px;
}

.dashboard-list .row .card .row {
    align-items: center;
}

.stats-icon {
    align-items: center;
    background-color: #000;
    border-radius: .5rem;
    display: flex;
    float: right;
    height: 3rem;
    justify-content: center;
    width: 5rem;
}

.dashboard h6 {
    color: black;
    font-weight: bold;
}

    .dashboard h6.title {
        font-size: 20px;
        font-weight: normal;
    }

.stats-icon.purple {
    background-color: #9694ff;
}

.stats-icon.blue {
    background-color: #57caeb;
}

.stats-icon.green {
    background-color: #5ddab4;
}

.stats-icon.red {
    background-color: #ff7976;
}

.breadcrumb {
    margin-bottom: 0px;
}

.breadcrumb-item {
    font-size: 18px;
    color: #8c8c8c;
}

    .breadcrumb-item.active {
        color: black
    }

.box-search .card-header {
    padding: 1rem;
    background-color: #8dd7fc;
    cursor: pointer;
}

.Header_filter:not(.active) {
    border-radius: 0.5rem;
}

.card .card-header h4 {
    margin-bottom: 0px;
    color: black;
    font-size: 18px;
    font-weight: normal;
}

span.icon-filter {
    color: black;
    position: absolute;
    right: 0;
    padding-right: 20px;
    top: 12px;
    bottom: 0;
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.input-group.date .input-group-addon {
    position: absolute;
    right: 0;
    z-index: 10;
    height: 100%;
}

.input-group-text {
    background-color: #26b6eb;
    border: unset;
    color: white;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 10px 15px;
    height: 100%;
    font-size: 16px;
}

.input-group.date input {
    border-top-right-radius: .375rem !important;
    border-bottom-right-radius: .375rem !important;
}

section {
    clear: both;
}

.action-management {
    margin-bottom: 2.2rem;
}

.table-list td img {
    max-width: 40px;
    margin: 0 auto;
    background-color: white;
    padding: 5px;
}

.table-list td span.alert {
    display: block;
    padding: 5px 10px;
    font-size: 12px;
    max-width: max-content;
    margin: 0 auto;
}

.dataTable-table td, .dataTable-table thead th, .table td, .table thead th {
    vertical-align: middle;
}

table.dataTable thead th {
    background-color: #8c8c8c;
    padding: 15px 15px;
}

table.dataTable > thead .sorting:before, table.dataTable > thead .sorting:after, table.dataTable > thead .sorting_asc:before, table.dataTable > thead .sorting_asc:after, table.dataTable > thead .sorting_desc:before, table.dataTable > thead .sorting_desc:after, table.dataTable > thead .sorting_asc_disabled:before, table.dataTable > thead .sorting_asc_disabled:after, table.dataTable > thead .sorting_desc_disabled:before, table.dataTable > thead .sorting_desc_disabled:after {
    bottom: 15px;
}

table.dataTable > thead > tr > th:not(.sorting_disabled), table.dataTable > thead > tr > td:not(.sorting_disabled) {
    padding-right: 20px;
}

tr.even td, tr.odd td {
    background-color: #f4f4f4;
}

a.view, a.edit, a.delete {
    color: white;
    border-radius: 4px;
    font-size: 12px;
    padding: 4px 15px;
    width: auto !important;
    height: auto;
    max-width: 25px;
}

a.view {
    background-color: green;
}

a.edit {
    background-color: #f1bb23;
}

a.delete {
    background-color: #ee2626;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    margin-top: 15px;
}

.page-item.active .page-link {
    background-color: #257cb2;
    border-color: #257cb2;
}

    .page-item.active .page-link:focus {
        box-shadow: none;
    }

section.box-form, .box-detail {
    background-color: #f4f4f4;
    padding: 30px 0px;
    border: 1px solid #d3d3d359;
}

    section.box-form .card, section.box-detail .card {
        max-width: 85%;
        margin: 0 auto;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

    .box-form .card-header, .box-detail .card-header {
        padding: 25px 20px;
        background-color: #8dd7fc;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

    .box-form .btn, .box-detail .btn {
        padding: 10px 30px;
        color: white;
    }

.btn-submit {
    background-color: #47c95c;
    border-color: #47c95c;
    margin-right: 20px;
}

    .btn-submit:hover {
        background-color: #47a356;
        border-color: #47a356;
    }

.box-form .form-control {
    position: relative;
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

.box-form .input-group .input-group-text {
    color: black;
    background-color: unset;
    position: absolute;
    right: 0;
    z-index: 10;
}

.choices__inner {
    background-color: white;
}

.choices[data-type*=select-one]:after {
    content: '';
    height: 16px;
    width: 12px;
    border: none;
    position: absolute;
    right: 11.5px;
    top: 50%;
    margin-top: -7.5px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right -2px center;
    background-size: 16px 12px;
}

#photo-filename, #upload-icon {
    cursor: pointer;
}

.preview-container {
    display: none;
    position: relative;
    margin-top: 20px;
}

#preview-image {
    max-width: 300px; /* Adjust size as needed */
    max-height: 300px; /* Adjust size as needed */
    border: 1px solid #ccc;
    border-radius: 5px;
}

#remove-image {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    padding: 3px 8px;
    color: black;
    border: 1px solid #ccc;
}

.modal-content {
    width: 550px;
    margin: 0 auto;
    border-radius: 10px;
    height: auto;
    background-color: transparent;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border: none;
}

.modal-header {
    padding: 0;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background-color: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.modal-icon {
    position: relative;
    z-index: 99;
    margin-top: -60px;
    margin-bottom: -50px;
    width: 100%;
}

    .modal-icon img {
        max-width: 80px;
    }

.modal-body {
    min-height: 100px;
    background-color: white;
    padding-top: 55px;
    border-radius: 10px 10px 0 0;
    position: relative;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.title-modal {
    font-size: 20px;
    text-align: center;
    padding: 25px 0 25px 0;
}

.modal .modal-footer {
    padding: 0px;
    text-align: center;
    border-top: 0;
    width: 100%;
}

.btn-fulidwidth {
    width: 100%;
    padding: 15px;
    background-color: #26b6eb;
    margin: 0;
    margin-top: 0;
    overflow: hidden;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    font-size: 20px;
    color: white;
    border: none;
}

label.title-txt {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.form-group .viewData {
    display: inline-block;
    font-weight: normal !important;
    border-bottom: 1px solid #607080;
    color: #607080 !important;
    width: 100%;
}

.box-detail .form-group {
    padding-right: 20px;
    padding-left: 0;
}

.box-detail .preview-image {
    text-align: center;
    position: relative;
    max-width: 150px;
    margin: 0 auto;
    padding: 0px;
}

.preview-image:before {
    box-shadow: inset 0px 0px 0px 100px #00000069;
    content: "";
    height: 100%;
    position: absolute;
    width: 100%;
}

.box-detail .preview-image img {
    max-width: 150px;
    margin: 0 auto;
    padding: 10px;
}

.add-row .svg-inline--fa.fa-w-14 {
    color: white;
    border: 1px solid;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    display: block;
    background: #20c997;
    float: right;
    padding: 2px;
    margin-bottom: 7px;
}

table .svg-inline--fa.fa-w-14.fa-minus {
    color: white;
    border: 1px solid;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    padding: 2px;
    background: #ff0000;
}

.qr-confirm {
    max-width: 200px;
    margin: 10px auto 0;
    padding: 0;
}

    .qr-confirm img {
        max-width: 100%;
    }

.box-detail span.icon-filter {
    right: 20px;
    top: 24px;
    bottom: unset;
    padding: 0;
}

.main__title .fa-user-edit {
    color: white;
    font-size: 20px;
}

section.box-form.forgotpassword .card {
    max-width: 40%;
}

.input-group a {
    color: black;
}

.box-detail .card-header h4.alert {
    font-size: 16px;
    padding: 7px 10px;
    color: white;
}

.timepicker-picker a.btn {
    background-color: unset;
    border: unset;
}

    .timepicker-picker a.btn:hover {
        color: black;
    }

#sidebar:not(.active) + #main .table-list .dataTables_scrollHeadInner, #sidebar:not(.active) + #main .table-list table {
    width: 100% !important;
}

input.form-control.has-addon.is-invalid {
    background-position: right calc(.375em + 2.1875rem) center;
}

.loading {
    background-color: #00000038;
    max-width: 100%;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    height: 100%;
    bottom: 0;
    overflow: hidden;
    right: 0;
}

    .loading img {
        max-width: 100px;
        position: absolute;
        /* z-index: 10000; */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

@media (min-width: 769px) {
    .mb-md-35px {
        margin-bottom: 35px;
    }

    #sidebar.active ~ #main {
        margin-left: 350px;
    }
}

@media (max-width:1024px) {
    .login .content-wrapper {
        right: unset;
        left: unset;
        margin: 0 auto;
        background-color: unset !important;
    }

    .login__form h1 {
        color: white
    }

    .login__forgotpassowrd a {
        color: white
    }

    .notification {
        margin-right: -0.5%;
    }

    div.login__forgotpassowrd a {
        color: white;
    }
}

@media (max-width:991px) {
    section.box-form.forgotpassword .card {
        max-width: 80%;
    }
}

@media (max-width:767px) {
    #main #main-content {
        padding: 20px;
    }

    .stats-icon {
        float: none;
        margin: 0 auto;
        margin-bottom: 10px;
    }

    .dashboard h6.title {
        font-size: 16px;
    }

    section.page-header {
        margin-bottom: 15px;
    }

    .breadcrumb-header {
        margin-bottom: 20px;
    }

    .breadcrumb-item {
        font-size: 16px;
    }

    .main__title img {
        max-width: 20px;
    }

    .main__title span {
        font-size: 18px;
        padding-left: 7px;
    }

    .card .card-header h4 {
        font-size: 16px;
    }

    .form-group label {
        font-size: 14px;
    }

    .box-form .btn, .box-detail, .btn {
        padding: 5px 20px;
        font-size: 14px;
    }

    .form-control, .form-select {
        height: 40px;
    }

    section.box-form, .box-detail {
        background-color: unset;
        padding: 0px;
        border: none;
    }

        section.box-form .card, section.box-detail .card {
            max-width: 100%;
        }

        .box-detail .form-group {
            padding-right: 0;
            padding-left: 0;
        }

        .box-detail .card-body > .row {
            padding: 0px 10px;
        }

        .box-detail .card-body .row > .col-12 > .row > .col-md-4, .box-detail .card-body .row > .col-12 > .row > .col-md-5 {
            padding: 0px;
        }

        section.box-form.forgotpassword .card {
            max-width: 100%;
        }

        .box-detail .card-header h4.alert {
            font-size: 14px;
        }
}

@media (max-width:395px) {
    .dashboard h6.title, .form-control, .form-select {
        font-size: 14px;
    }
}
