:root {
    --main-color : #38414a !important;
    --main-red : #f35d5d !important;
    --bs-body-bg: #f5f7fb;
    --c-primary : #5671f0 !important;
    --black1 : #000000 !important;
}

body.authentication-bg {
    background: var(--bs-body-bg) !important;
    
}

.navbar-custom {
    background: var(--main-color);
}

.btn-danger {
    background: var(--main-red);
    border: 1px solid var(--main-red) !important;
}

.btn-danger {
    border: 1px solid var(--main-color);
}


.text-danger-50 {
    color: var(--main-color);
}

body[data-layout-mode=detached] .left-side-menu {
    margin-top: 0px;
    margin-bottom: 0px;
}

.left-side-menu {
    left: 0;
    width: 280px;
}

body[data-sidebar-size=condensed] .content-page {
    margin-left: 40px !important;
}

#sidebar-menu>ul>li>a:active, #sidebar-menu>ul>li>a:focus, #sidebar-menu>ul>li>a:hover {
    color: var(--main-color);
}

#sidebar-menu .menuitem-active>a {
    color: var(--main-color);
}

.mw-100 {min-width: 100px;}
.mw-150 {min-width: 150px;}
.mw-200 {min-width: 200px;}
.mw-250 {min-width: 250px;}

.mx-150 {max-width: 150px;}

.w5p {width: 5px;}
.w50p {width: 50px;}
.w60p {width: 60px;}
.w100p {width: 100px;}
.w120p {width: 120px;}
.w180p {width: 180px;}


.w30 {width: 30%;}
.w80 {width: 80%;}

.w70 {width: 70px;}

.ml-auto {margin-left: auto;}

.selectize-input::placeholder {
    color: #6c757d;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px !important;
}

.select2-selection--single {
    height: 35px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 5px !important;
}


.select2-container--default .select2-results__option[aria-disabled=true] {
    color: #f35d5d !important;
}

table thead tr {
    vertical-align: middle;
}

table tr td, 
table tr th {
    /* min-width: 80px; */
    vertical-align: middle;
    white-space: nowrap;
}

/* global settings font size */

table tr td, 
table tr th, 
.form-label, 
input, textarea, select {
    font-size: 12px;
}

label {
    font-size: 12px;
}

table .badge {
    font-size: 14px !important;
}

.btn {
    min-width: max-content;
}
/* table scroll */
/* width */
.table-responsive::-webkit-scrollbar {
    width: 5px;
    height: 10px;
}

/* Track */
.table-responsive::-webkit-scrollbar-track {
    background: transparent;
}

/* Handle */
.table-responsive::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #6c757d;
}

/* Handle on hover */
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #5671f0;
}


.form-unstyled {
    border: none;
    outline: none;
    background: none;
    padding: 0;
    font-size: 14px;
}

.form-unstyled.text-primary::placeholder {
    color: var(--c-primary) !important;
}

.form-unstyled.text-danger::placeholder {
    color: var(--main-color) !important;
}

.text-viewonly {
    color: var(--black1) !important;
    font-size: 12px;
}

.err-msg {
    margin-bottom: 0;
}

.tbl-is-leaf .deep:first-child {
    padding-left: 20px;
}

.w-min {
    width: min-content !important;
}

.minheight-dashboard-card {
    min-height: 274px;
}

.btn-lg {
    padding: 0.3rem .8rem !important;
}

table tbody tr:hover {
    background: rgba(67,191,229,.25)!important;
}

/* .Container-scroll
{
    overflow-y: auto;
}
.Content
{
    width: 300px;
}

.Flipped, .Flipped .Content
{
    transform:rotateX(180deg);
    -ms-transform:rotateX(180deg);
    -webkit-transform:rotateX(180deg);
}

.Container-scroll.table-responsive::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #5671f0;
} */

table tr td, 
table tr th, 
.form-label, 
input, textarea, select {
    font-size: 12px !important;
}

.submit-search
{
    margin-top: 30px;
    gap: 10px;
}

.card-body {
    padding: 1.1rem 1.1rem;
}

.header-title {
    margin-bottom: 5px !important;
    font-size: .95rem;
}

table .badge, .btn,
.page-title-box .breadcrumb {
    font-size: 12px !important;
}

.page-title {
    line-height: 60px;
}

.page-title-box .page-title {
    font-size: 1.1rem;
}

.selectize-input {
    min-height: calc(0.5em + 0.5rem + 1px);
    padding: 0.35rem 0.9rem;
}

.btn {
    padding: 0.2rem 0.6rem 0.1rem 0.6rem;
    margin-bottom: 0 !important;
}

.h3, h3 {
    font-size: 1.2rem;
}

.table>:not(caption)>*>* {
    padding: 0.1rem 0.5rem !important;
}

.form-control, .form-select {
    padding: 0.25rem 0.4rem;
    font-size: 12px !important;
}

.form-select {
    min-height: auto !important;
}

.select2-selection--single {
    height: 30px !important;
    font-size: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 29px !important;
}

#sidebar-menu>ul>li>a {
    font-size: 12px !important;
    padding: 8px 20px !important;
}

#sidebar-menu>ul>li>a i {
    font-size: 14px !important;
}

.nav-second-level li a {
    font-size: 12px !important;
}

.avatar-md {
    height: 2.5rem;
    width: 2.5rem;
}

.dropdown-toggle {
    font-size: 12px !important;
}

.page-link {
    padding: .3rem .55rem;
}

p {
    font-size: 12px;
    margin-bottom: 5px;
}

.filter-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}

.filter-wrapper .item-filter {
    width: 14%;
}

.filter-wrapper .item-filter2 {
    width: 12%;
}


.filter-submit-search
{
    margin-top: 16px;
    gap: 10px;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin: 5px 0;
}

.filter-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 10px;
    row-gap: 10px;
}

.filter-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 10px;
}


#frm-filter {
    position: sticky;
    background: #fff;
    width: 100%;
    top: 0;
    padding: 5px;
}

.card-custom {
    height: 800px;
    overflow-y: scroll;
}

/* table scroll */
/* width */
.card-custom::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Track */
.card-custom::-webkit-scrollbar-track {
    background: transparent;
}

/* Handle */
.card-custom::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #6c757d;
}

/* Handle on hover */
.card-custom::-webkit-scrollbar-thumb:hover {
    background: #5671f0;
}

/* UPDATE 30-5-24 */
#tooltip-container i {
    font-size: 28px;
    padding: 0 5px;
    cursor: pointer;
}

.badge {
    min-width: 75px;
    max-width: 75px;
}

.datepicker-dropdown {
    z-index: 999999 !important;
}

@media screen and (max-width:1441px) {
    .page-title-box .page-title {
        line-height: 50px;
    }
    
    .page-title-box .page-title-right {
        margin-top: 12px;
    }

    .navbar-custom {
        height: 50px;
    }

    .navbar-custom .button-menu-mobile,
    .navbar-custom .topnav-menu .nav-link {
        height: 50px;
        line-height: 50px;
    }

    .left-side-menu {
        top: 50px;
    }

    .content-page {
        margin-top: 50px;
    }
}

@media screen and (max-width:1024px) {
    .tab-lg-w100 {width: 100%;}

    .tab-w50 {width: 50% !important;}

    .filter-wrapper .item-filter,
    .filter-wrapper .item-filter2 {
        width: 26%;
    }
    
    .filter-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filter-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width:600px) {
    .filter-grid-4,
    .filter-grid-6 {
        grid-template-columns: repeat(1, 1fr);
    }

    .filter-wrapper .item-filter,
    .filter-wrapper .item-filter2 {
        width: 100%;
    }
    .filter-submit-search {
        margin-top: 0;
    }
}

@media screen and (max-width:460px) {

    .logo-sm {
        text-align: center !important;
    }

    .mob-w100 {width: 100% !important;}

    .mob-fwrap {flex-wrap: wrap;}
}