:root {
    --theme1color: rgba(41, 77, 160, 1);
    --theme2color: rgba(170, 196, 255, 1);
    --theme3color: rgba(255, 255, 255, 1);
    --text1color: rgba(0, 0, 0, 1);
    --text2color: rgba(255, 255, 255, 1);

    --border1-color: rgba(218, 218, 218, 1);

    --font-size1: 1.125rem;
    --header-height: 5vw;
    --header-padding: clamp(64px, var(--header-height), 100%);
}

::placeholder {
    color: gray;
    opacity: 0.5;
}

label,
span,
.text-style,
.bootbox-body,
h6 {
    color: var(--text1color);
    text-align: left;
    font-weight: 400;
    line-height: normal;
    font-stretch: normal;
}

label,
span,
.text-style,
.bootbox-body {
    font-size: var(--font-size1);
}

.h7 {
    font-size: 0.875rem;
}

p {
    font-size: var(--font-size1);
    font-weight: 100;
    color: rgba(73, 73, 73, 0.863);
}

/* textarea set font. */
.form-control {
    font-size: var(--font-size1) !important;
    font-weight: 400 !important;
}

.header-text-style,
h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 1);
    line-height: normal;
    font-stretch: normal;
}

#main-wrapper[data-layout='horizontal'].desktop-background,
#desktop1.desktop-background {
    background-color: rgba(243, 243, 243, 1);
}

#main-wrapper[data-layout='vertical'][data-sidebartype='overlay'] .topbar .top-navbar .navbar-header {
    width: 20vw;
}

.custom-header,
.custom-header .top-navbar {
    height: var(--header-height);
    min-height: 64px;
}

.logo-icon {
    margin-right: 0px !important;
}

.logo-icon img {
    height: calc(var(--header-height) - 2px);
    min-height: 62px;
}

.logo-text img {
    height: calc(var(--header-height) - 10px);
    min-height: 30px;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--theme1color);
    color: var(--theme3color);
}

.alert.anouncement-bar {
    background-color: var(--theme1color);
    color: var(--theme3color);
    font-size: 0.9vw;
    text-align: left;
    font-weight: 400;
    line-height: normal;
    font-stretch: normal;
    margin-bottom: 0;
}

.menu-group {
    overflow: hidden;
    overflow-y: scroll;
    padding-top: var(--header-padding);
}

#main-wrapper[data-layout=vertical][data-sidebartype=overlay].show-sidebar .left-sidebar.menu-group {
    left: auto;
    right: 0;
}

#main-wrapper[data-layout=vertical][data-sidebartype=overlay] .left-sidebar.menu-group {
    left: auto;
    right: -400px;
}

#main-wrapper[data-layout='vertical'][data-header-position='fixed'] #desktop1.page-wrapper {
    padding-top: var(--header-padding);
}

.color0,
.btn.btn1 span {
    color: var(--theme3color) !important;
}

.color1 {
    color: var(--theme1color) !important;
}

.border-color1 {
    border-color: var(--theme1color) !important;
}

.bg-color1,
.footer {
    background-color: var(--theme1color) !important;
}

.color2 {
    color: rgba(255, 247, 241, 1) !important;
}

.bg-color2 {
    background-color: rgba(255, 247, 241, 1) !important;
}

.parsley-errors-list {
    color: red;
}

.left-sidebar.menu-group,
.left-sidebar.menu-group #sidebarnav {
    width: 400px;
    background-color: var(--theme3color) !important;
}

.left-sidebar.menu-group .sidebar-item span {
    color: rgba(0, 0, 0, 1);
    font-size: var(--font-size1);
    text-align: left;
    font-weight: 400;
    line-height: normal;
    font-stretch: normal;
}

.sidebar-item:hover,
.sidebar-item:hover span,
.sidebar-item:hover i {
    color: var(--theme3color) !important;
    background-color: var(--theme1color);
}

.left-sidebar.menu-group .sidebar-nav ul .sidebar-item .sidebar-link i {
    color: var(--theme1color);
}

.page-wrapper.desktop-background .container-fluid {
    padding-top: 20px;
    padding-left: 5vw;
    padding-right: 5vw;
}

.footer-text {
    padding: 10px;
}

.footer {
    color: var(--theme3color);
    font-size: 0.9vw;
    line-height: normal;
    font-stretch: normal;
    font-weight: 400;
}

.text-12 {
    color: var(--text1color);
    font-size: 0.5em;
    line-height: normal;
    font-stretch: normal;
}

.footer {
    font-weight: 400;
}

.btn.btnb,
.btn.btn1,
.btn.btn2,
.btn.btn3,
.btn.bootbox-cancel,
.btn.bootbox-accept,
.btn-danger {
    border-radius: 5px;
    font-style: Light;
    text-align: center;
    font-weight: 300;
    line-height: normal;
    font-stretch: normal;
    text-decoration: none;
    height: auto;
    font-size: var(--font-size1);
}

.btn.btn1,
.btn.bootbox-accept {
    color: var(--theme3color);
    background: var(--theme1color);
    border-color: var(--theme1color);
}

.btn.btn2,
.btn.bootbox-cancel {
    color: var(--theme3color);
    background: rgba(189, 189, 189, 1);
    border-color: rgba(189, 189, 189, 1);
}

.btn.btn3 {
    color: var(--text2color);
    border-color: var(--theme2color);
    background-color: var(--theme2color);
}

.btn-img-only {
    border: 0;
}

input.form-check-input.form-radio-box,
input.form-check-input.form-check-box {
    width: 24px;
    height: 24px;
    border-radius: 0%;
}

input.form-check-input.form-radio-box:checked,
.form-check-input:checked {
    background-color: var(--theme1color);
    border-color: var(--theme1color);
}

label.form-check-label.text-style {
    padding-left: 10px;
    padding-top: 5px;
}

div.card {
    border-radius: 20px;
}

.card-50 {
    width: 50%;
}

div.card.card-table {
    border-color: rgba(238, 238, 238, 1);
    border-style: solid;
    border-width: 1px;
    border-radius: 20px;
}

/* .post-stat {
    position: static !important;
} */

/*======= select style ======*/
.multi-select1 select,
.multi-select1 .multiselect-dropdown {
    min-height: 40px;
    width: 100%;
    border-color: var(--border1-color);
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;

    display: flex;
    align-items: center;
}

.multi-select1 .multiselect-dropdown span.placeholder {
    color: var(--text1color);
    background-color: transparent;
    font-size: var(--font-size1);
    text-align: left;
    font-weight: 400;
    line-height: normal;
    font-stretch: normal;
    opacity: 1;
}

.multi-select1 .multiselect-dropdown span.optext,
.multi-select1 .multiselect-dropdown span.placeholder {
    margin-right: 2em;
}

.multi-select1 .optdel {
    display: none;
}

.multi-select1 .multiselect-dropdown span.optext {
    background-color: #ffffff;
}

.multi-select1 .optext {
    font-size: var(--font-size1);
    font-weight: 400;
    line-height: normal;
    font-stretch: normal;
}

.select1 select,
.select1 {
    padding: 2px 5px 0px 5px;
    min-height: 40px;
    width: 100%;
    border-color: var(--border1-color);
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;

    color: var(--text1color);
    background-color: transparent;
    font-size: var(--font-size1);
    text-align: left;
    font-weight: 400;
    line-height: normal;
    font-stretch: normal;
    opacity: 1;

    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position-x: calc(100% - 10px);
    background-position-y: center;
}

/* this code is on header.tpl.html */
/* .multi-select1 select,
.multi-select1 .multiselect-dropdown {
  background-image: url("{{ .CTX.ResourceURL `resource/main/image/public/dropdown-arrow.svg` }}");
} */

/*===========================*/

/*======= datatable style ======*/
table.table1>thead {
    background-color: rgba(243, 243, 243, 1);
}

table.table1>tbody {
    background-color: #ffffff;
}

table.table1>thead>tr>th,
table.table1>tbody>tr>td {
    border: 0;
}

.table1 div.dataTables_scrollBody {
    border-left: 0px solid !important;
}

table.table1>thead>tr>th {
    color: rgba(0, 0, 0, 1);
    font-size: var(--font-size1);
    font-style: Regular;
    text-align: center;
    font-weight: 400;
    line-height: normal;
    font-stretch: normal;
    text-decoration: none;
}

table.table1>tbody>tr>td {
    color: rgba(43, 43, 43, 1);
    font-size: var(--font-size1);
    font-style: Light;
    text-align: left;
    font-weight: 300;
    line-height: normal;
    font-stretch: normal;
    text-decoration: none;
}

/* pagging style */
.table1 li.paginate_button.page-item {
    padding-right: 7px;
}

.table1 div.dataTables_paginate.paging_numbers {
    display: flex !important;
    justify-content: center !important;

}

.table1 .page-item .page-link {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    font-stretch: normal;
    text-align: center;
}

.table1 .page-item.active .page-link {
    background-color: var(--theme1color);
    border-color: var(--theme1color);
}

.table1 .page-item .page-link,
.table1 .page-item.disabled .page-link {
    color: var(--theme3color);
    background-color: rgba(189, 189, 189, 1);
    border-color: rgba(189, 189, 189, 1);
}


.table1 .page-item:first-child .page-link {
    border-radius: 5px;
}

.table1 .page-item:first-child .page-link,
.table1 .page-item:last-child .page-link {
    border-radius: 5px;
}

/*filter search*/
.table1 .full-length-search label,
.table1 .full-length-search input[type=search] {
    width: 100% !important;
}

.table1 .full-length-search input[type=search] {
    margin: 0;
}

.table1 .dataTables_filter input[type=search] {
    width: 260px;
    height: 40px;
    display: flex;
    align-items: flex-start;
    border-color: var(--border1-color);
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;

    font-size: var(--font-size1);
    text-align: left;
    font-weight: 400;
    line-height: normal;
    font-stretch: normal;
}

.table1 .dataTables_filter input[type=search]::placeholder {
    color: rgba(212, 212, 212, 1);
    font-family: Arial, FontAwesome;
    border-color: var(--border1-color);
}

/*============================*/


/*======= datepicker style ======*/
.date .input1 {
    height: 40px;
    border-right: none;
}

.date .input-group-append {
    border: solid;
    border-color: var(--border1-color);
    border-style: solid;
    border-width: 1px;
    border-left: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-right: 0px;
    padding-right: 1%;
}

.date .input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--theme1color);
    text-align: center;
    white-space: nowrap;
    background-color: white;
    border: 1px solid white;
    border-radius: 10px;
}

/*===============================*/

div.modal-content.modal-c,
.bootbox .modal-content {
    border-radius: 20px;
}

.t-center {
    text-align: center;
}

div.modal-header {
    border-bottom: 0px;
}

div.modal-footer {
    border-top: 0px;
}

input.input1,
.input1 {
    border-color: var(--border1-color);
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.input1::placeholder {
    /* color: var(--text1color); */
    font-size: var(--font-size1);
    text-align: left;
    font-weight: 400;
    line-height: normal;
    font-stretch: normal;
    opacity: 1;
}

.input1 {
    font-size: var(--font-size1);
    text-align: left;
    font-weight: 400;
    line-height: normal;
    font-stretch: normal;
}

.input-group.input-group-over:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.input-group.input-group-over>:last-child {
    height: 100%;
    position: absolute;
    z-index: 10;
    right: 0;
}

.radio-box input[type=radio]:checked {
    --bs-form-check-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='50' fill='rgba(41, 77, 160, 1)' /%3E%3C/svg%3E");
}

.radio-box input[type=radio] {
    margin: 0;
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 0;
    background-color: transparent;
    border-color: rgba(189, 189, 189, 1);
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.83);
    z-index: 51;
    overflow-y: scroll;
}

.overlay .close {
    position: fixed;
    right: 20px;
}

.new-select2 {
    height: 40px;
    color: #3e5569;
    line-height: 40px;
    border-radius: 10px;
    border-color: var(--border1-color);
    border-width: 1px;
}

.new-border {
    border-radius: 10px;
    border-color: #8080803d;
}

.parsley-errors-list {
    margin-bottom: 0;
}

.nav-link.pro-pic {
    display: flex;
    align-items: center;
}

.btnicon:hover {
    cursor: pointer;
}

.star-color {
    color: #f7ca4c;
}

.bg-g-color {
    background-color: #e9ecef;
}

.loader {
    border: 16px solid #f3f3f3;
    /* Light grey */
    border-top: 16px solid var(--theme1color);
    /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

.loader-center {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.70);
    z-index: 50;
    align-items: center;
    display: flex;
    justify-content: center;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}