/** Custom colors **/
.bg-secondary {
    background-color: #203647 !important;
}

a.bg-secondary:hover, a.bg-secondary:focus,
button.bg-secondary:hover,
button.bg-secondary:focus {
    background-color: #12232E !important;
}

[class*="sidebar-dark-"] {
    background-color: #203647;
}

.navbar-dark {
    background-color: #12232E;
}

/** Flag icons for English**/
.flag-icon-en {
    background-image: url(../img/flags/4x3/en.svg);
}

.flag-icon-en.flag-icon-squared {
    background-image: url(../img/flags/1x1/en.svg);
}

.flag-icon {
    border-radius: 3px;
    background-size: cover;
}

/** user menu navbar **/
.user-header {
    border-radius: .25em .25em 0 0;
}

.navbar-nav > .user-menu .user-image {
    margin-top: -8px;
}

.brand-image {
    opacity: 1!important;
}

.text-sm .content-header {
    padding-bottom: 5px;
}

.text-sm .content-header h1 {
    font-size: 1.2rem;
}

/** container div for shortURL links in table rows **/
.short_url_cnt, .short_url_cnt .btn-app-custom {
	line-height: 22px;
	vertical-align: middle;
    align-items: center;
}

.short_url_cnt .btn-app-custom {
	height: 22px;
    width: 22px;
}

.short_url_cnt .btn-app-custom i {
    margin-top: -4px;
}


/** Custom login styles **/
.login-22 .form-section,
.login-22 .login-inner-form .btn-md,
.login-22 .flag-icon {
    box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
}

.login-22 .form-section,
.login-22 .login-inner-form .form-box input,
.login-22 .login-inner-form .btn-md,
.login-22 .btn-section {
    border-radius: .25em!important;
}

.login-22 .form-section {
    padding-top: 20px;
}

.login-22 .extra-login {
    float: left;
    width: 100%;
    text-align: center;
    position: relative;
    margin-bottom: 15px;
}

.login-22 .extra-login::before {
    position: absolute;
    left: 0;
    top: 14px;
    width: 100%;
    height: 1px;
    background: #d8dcdc;
    content: "";
}

.login-22 .extra-login > span {
    width: auto;
    float: none;
    display: inline-block;
    background: #fff;
    padding: 1px 20px;
    z-index: 1;
    position: relative;
    font-size: 14px;
    color: #afafaf;
}

.login-22 .bg-img {
    background-image: url(../auth/img/bg-login.jpg);
}

.login-22 .logo img {
    height: 22px;
}

.login-22 a.flags {
    font-size: 18px;
}

.login-22 .form-control.is-invalid {
    border-color: red;
}

.login-22 .invalid-feedback {
    font-size: .75rem;
}

.login-inner-form .btn-md {
    text-transform: uppercase;
}

.login-22 .social-box {
    bottom: 20px;
    position: absolute;
    right: 65px;
}

.login-22 .social-box ul {
    margin: 0;
    padding: 0;
}

.login-22 .social-box .social-list li {
    font-size: 13px;
    display: inline-block;
    color: lightgrey;
}

.login-22 .social-box .social-list li a {
    margin: 0 0 5px 30px;
    font-size: 13px;
    display: inline-block;
    color: #fff;
    text-decoration: none;
    width: auto;
    height: auto;
    border-radius: 5%;
}

.login-22 .social-box .social-list li:first-child a:first-child {
    margin-left: 0;
}

.login-22 .social-box .social-list li a:hover {
    text-decoration: underline;
    color: #fff;
}

.login-22 .social-list a {
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    display: inline-block;
    font-size: 15px;
    color: rgb(255, 255, 255);
    margin: 0 2px 2px 0;
    border-radius: 5%;
}

.login-22 .login-inner-form .btn-theme {
    background: #203647;
}

.login-22 .login-inner-form .btn-theme:hover {
    background: #12232E;
}

/** pagination **/
.pagination {
    display: inline-flex;
}

/** no opacity **/
.no-opacity {
    opacity: 1!important;
}

/** control sidebar wide **/
.control-sidebar-wide, .control-sidebar-wide::before {
    right: -400px;
    width: 400px;
}

.control-sidebar-wide.control-sidebar-open.control-sidebar-push .content-wrapper,
.control-sidebar-wide.control-sidebar-open.control-sidebar-push .main-footer, .control-sidebar-wide.control-sidebar-open.control-sidebar-push-slide .content-wrapper,
.control-sidebar-wide.control-sidebar-open.control-sidebar-push-slide .main-footer {
  margin-right: 400px;
}

.control-sidebar-wide.control-sidebar-slide-open.control-sidebar-push .content-wrapper,
.control-sidebar-wide.control-sidebar-slide-open.control-sidebar-push .main-footer, .control-sidebar-wide.control-sidebar-slide-open.control-sidebar-push-slide .content-wrapper,
.control-sidebar-wide.control-sidebar-slide-open.control-sidebar-push-slide .main-footer {
  margin-right: 400px;
}

/** control sidebar fullheight **/
.control-sidebar-fullheight {
    top:0;
    bottom: 0;
}

/** fixed header for tables **/
thead.fixedThead {
    position: absolute;
    top: 0;
    display: none;
    left: auto;
    z-index:999!important;
    border-left: 0px;
    left:0px!important
}

thead.fixedThead tr th:hover {
    cursor: default!important
}

.table-responsive {
	position: relative;
}

.table-larb th:last-of-type,
.table-larb td:last-of-type {
    border-right: none;
}

.table-larb td:first-of-type,
.table-larb th:first-of-type {
    border-left: none;
}

.table-larb td,
.table-larb th {
    border-right: solid 1px #e0e0e0;
    border-left: solid 1px #e0e0e0;
}

.table-larb th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

table .form-check {
    padding-left: 0.6rem;
}

.table td.fit,
.table th.fit {
    white-space: nowrap;
    width: 1%;
    padding: .3rem!important;
}

.table-active {
    background-color: #c9e5f5!important;
}

/** custom file input **/
.input-group-sm .custom-file-label, .input-group-sm  .custom-file-input, .input-group-sm .custom-file{
    height: calc(1.8125rem + 2px);
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

.input-group-sm .custom-file-label::after {
    height: 1.8125rem;
    padding: .25rem .5rem;
}

/** force display grid property */
.display-inline-flex {
    display: inline-flex!important;
    padding-top:50px!important;
    padding-bottom: 50px!important;
}

/** datatables customizations for info row **/
.is-dt-col div.dataTables_filter {
    text-align: left!important;
}

.is-dt-col div.dataTables_info {
    text-align: center!important;
    padding-top: 0.55em!important;
}

.is-dt-col div.dataTables_filter label {
    margin-bottom: 0!important;
}

.is-dt-col div.dataTables_paginate ul.pagination {
    margin: 0 !important;
}

table.dataTable {
    margin-bottom: 0!important;
}

/** custom select height **/
select.custom-select.form-control-sm {
    height: calc(1.8125rem + 2px);
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

/** help text in form **/
.help-text {
    font-size: 80%;
}

/** Custom styles for buttons **/
.btn {
    text-transform: uppercase;
}

.btn-icon-only i{
    font-size: 14px;
    padding: 3px 6px;
}

.btn-xs {
    padding: .15rem .4rem;
}

.btn-no-border {
    border-color:transparent;
    background-color: transparent;
}

.btn-no-border:hover {
    border-color:transparent;
}

/** button app custom **/
.btn-app-custom {
    border-color: transparent;
    background-color: transparent;
    margin: 0;
    height: 28px;
    width: 28px;
    padding: 0px;
    min-width: 0;
}

.nav-link.btn-app-custom {
    padding: 5px!important;
    height: 28px!important;
    margin-right: 5px;
    margin-top:3px
}

.nav-link.btn-app-custom > .fas {
    font-size: 16px!important;
}

.sticky-toolbar .btn-app-custom {
    padding: 8px;
}

.btn-app-custom:hover {
    border-color: transparent;
    background-color: lightgrey;
}

.btn-app-custom > .fas {
    font-size: 16px;
    line-height: 26px;
}

.btn-app-custom > .badge {
    left: -3px;
    right: auto;
    top:-5px
}

.text-sm .btn-xs{
    font-size: .75rem !important;
    margin: -.75rem 0;
}

.dropdown-toggle-custom::after {
    content: none!important;
}

.form-control.is-invalid + .select2-container--default .select2-selection--single {
    border-color: #dc3545;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    font-size: 1rem;
    margin-top: -2px;
}

.select2-container--default {
    font-size: .875rem !important;
}



/** sticky toolbar **/
.sticky-toolbar {
    padding: 5px;
    position: fixed;
    top: 35%;
    right: 0;
    list-style: none;
    margin: 0;
    z-index: 50;
    background: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    border-top-left-radius: .25em;
    border-bottom-left-radius: .25em;
}

/** Custom card styles **/
.card-body-rounded .card-body {
    border-radius: .25em;
}

.card-header.is-sticky {
    background-color: white;
}

.text-sm .card-title {
    padding-top:6px;
}

/** set z-index for sticky elements **/
.is-sticky {
    z-index: 3;
}

/** rounded border **/
.dropdown-menu a:first-of-type {
    border-radius: .25em .25em 0 0;
}

.dropdown-menu a:last-of-type,
.user-footer {
    border-radius: 0 0 .25em .25em;
}

.user-menu .dropdown-menu,
.user-menu .dropdown-menu a {
    border-radius: .25em!important;
}

.text-sm .nav-compact .nav-link > p > .badge.right {
    top: .6rem
}

/** custom label **/
.custom-control-label {
    font-weight: normal !important;
    padding-top: 1.5px;
}

.text-sm .form-label{
    line-height: 34px;
    margin-bottom:0;
}

/** custom auto width for dropdown menu **/
.dropdown-menu-auto-width {
    width: max-content;
    max-width: max-content;
}

/** custom icheck **/
[class*="icheck-"] {
    margin-top: 0px !important;
}

.text-sm label.checkbox-label {
    line-height: 21px;
}

/** select2 workarounds **/
.select2 {
    width: 100%!important;
}

.select2-container *:focus {
    outline: none;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0px;
}

.text-sm .select2-container--default .select2-selection--single .select2-selection__arrow, select.form-control-sm ~ .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 1px;
}

select.form-control-sm ~ .select2-container--default {
    line-height: 1;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: #131313;
    padding-top: 2px;
    padding-bottom: 2px;
}
.form-control.custom-select.is-invalid, .was-validated .form-control.custom-select:invalid {
    background-image: none;
}

/** disabled open row link **/
.open_row_disabled, .open_row_disabled:hover, .open_row_disabled i {
    cursor: default;
    color: lightgray;
}

/** modal overlay **/
.modal-dialog .overlay {
    background-color:#fff;
}

/** translate a **/
a.translate {
    align-items: center;
    display: flex;
}

/** textarea height **/
textarea.form-control {
    min-height: 120px;
}

/** summernote **/
.note-toolbar {
    margin: 0 !important;
    padding: 0 0 5px 5px !important;
}

.note-editor.note-frame {
    border: 1px solid #ced4da;
}

.note-editor {
    box-shadow: none;
}

.note-toolbar .note-para .note-dropdown-menu {
    z-index: 10000;
}

.nav-item-impersonate {
    padding-top: 2px;
    padding-right: 6px;
}

/** menu builder **/
.dd {
    max-width: none;
}

.dd3-handle {
    text-indent: -1px;
    width: 30px;
    height: 30px;
    background: #e0e0e0;
}

.dd3-handle:before {
    content: '';
}

.dd3-handle i {
    margin-top: 0px;
}

.item-edit, .item-close, .item-delete, .dd3-content:hover, .dd3-handle:hover {
    color: #3c8dbc;
    font-weight: bold;
}

.item-edit:hover, .item-close:hover, .item-delete:hover {
    text-decoration: underline;
}

.item-settings {
    z-index:2;
}

.dd3-content {
    height: 30px;
    line-height: 20px;
    padding: 5px 10px 5px 40px;
    background: #f2f2f2;
}

.dd3-content:hover {
    color:inherit;
}

.dd-item > button {
    font-size: 14px;
    color: red;
    height: 18px;
}

.star-checked {
	color: orange;
}

.star-unchecked {
	color: lightslategray;
}

/** draggable div in table row **/
.draggable {
    text-align: center;
    padding: 5px;
}

.draggable:hover {
    cursor: move;
    color: red;
}

/** cancel capital letter on breadcrumb **/
.breadcrumb-item.text-capitalize {
    text-transform: none !important;
}

/** step wizard customizations **/
.sw .toolbar {
    padding: 1.5rem!important;
    padding-top: 0!important;
}

.card .sw-theme-default>.nav .nav-link.active {
    color: #3c8dbc!important;
    cursor: pointer;
}

.card .sw-theme-default > .nav .nav-link.active::after {
    background: #3c8dbc !important;
}

.sw-theme-default .toolbar>.btn {
    box-shadow: 0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23)!important;
    background-color: #3c8dbc!important;
    border: 1px solid #3c8dbc!important;
    text-transform: uppercase!important;
}

.sw-theme-default .toolbar>.btn:hover {
    background-color: #2b6c92!important;
    border-color: #2b6c92!important;
}

.min-w-100 {
    min-width: 100px!important;
}

.min-w-200 {
    min-width: 200px!important;
}

.max-content-w {
    min-width: max-content;
    width: max-content;
}

/** custom duallistbox styles **/
.bootstrap-duallistbox-container select {
    border: 1px solid #ced4da;
    border-radius: .25rem;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    box-shadow: inset 0 0 0 transparent;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

/** JSTree **/
.jstree-proton .jstree-clicked {
    background: #b9daf5!important;
}

/** Fullcalendar **/
.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 0;
}

.fc .fc-toolbar-title {
    font-size: 1.25em;
}

/** Custom preloader **/
.larb-preloader {
    display: -ms-flexbox;
    display: flex;
    background-color:#12232E;
    height: 100vh;
    width: 100%;
    transition: height 200ms linear;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    color: #fff;
}

.larb-preloader svg{
    width: 100px;
    height: 100px;
    margin: 20px;
    display:inline-block;
}

/** Gantt **/
.gantt_layout_root{
    height: 600px;
}

.gantt_add {
    display: none !important;
}

.fab.x-tiny {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    max-width: 24px;
    min-height: 24px;
    max-height: 24px;
    line-height: 24px;
    margin-top: 0px;
}

.fab.x-tiny i {
    font-size: 8px !important;
}

/** FLowchart plugin customizations **/
#flowchart,
#modalFlowchart{
    min-height: 350px;
    color: #333 !important;
    border-radius: 5px;
    background-color: whitesmoke;
    resize: vertical;
    overflow-x: scroll
}

.flowchart-operator-title{
    background-color: #3C8DBC !important;
    color: white;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.flowchart-operator{
    border-radius: 3px;
}

/** Custom rules for login based on module name **/
img.logo-huayitravel {
    height: 50px!important;
    padding-bottom: 15px!important;
}

div.info-huayitravel {
    display: none;
}

img.logo-sicurproget {
    height: 150px!important;
}

div.info-sicurproget {
    display: none;
}

/** Custom user-dropdown height **/
.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
    height: auto;
}

/** Custom shadow **/
.larb-shadow {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.4)!important;
}

.larb-shadow:hover {
    box-shadow: 0 0 1px rgba(0,0,0,.125),0 1px 3px rgba(0,0,0,.2)!important;
}

/** Custom badge **/
.badge-larb {
    display: block;
    width: 100%;
    text-transform: uppercase;
    color: white;
    font-size: 1.25rem!important;
    font-weight: 600;
    letter-spacing: 0.2em;
}

/** Custom red background **/
.bg-danger-light, .bg-danger-light > a {
    background-color: #eb5e6b !important;
    color: #fff !important;
}

/** Custom large font size **/
.fs-xx {
    font-size: xx-large;
}

.fs-xxx {
    font-size: xxx-large;
}

/** Custom info-box size **/
.is-checkbox-btn, .is-radio-btn {
    min-height: auto;
    padding: 0.35rem;
}

.is-checkbox-btn .info-box-icon,
.is-radio-btn .info-box-icon {
    width: 40px;
}

/** media queries **/
@media screen and (max-width: 767px) {
    .is-dt-col div.dataTables_paginate {
        text-align: right!important;
    }

    .is-dt-col div.dataTables_info {
        text-align: left!important;
    }
}

@media (max-width: 575.98px) {
    .text-sm label.checkbox-label {
        line-height: 34px;
    }

    .fc-toolbar {
        -ms-flex-direction: row;
        flex-direction: row;
    }

    /** control sidebar wide **/
    .control-sidebar-wide, .control-sidebar-wide::before {
        width: 100%;
    }
}
