main > .container {
    padding: 70px 15px 20px;
}

.main-header{
    padding: 9px 10px 10px !important;
}

.overflow-hidden{
    overflow: hidden;
}

.cursor-pointer{
    cursor: pointer;
}

.form-control{
    min-width: 100px;
}

.lh-1{
    line-height: 1;
}
img{
    background-color: #efefef;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

.breadcrumb{
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.text-ellipsis,
.control-label,
.breadcrumb-item
{
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.text-ellipsis.line-2{
    -webkit-line-clamp: 2;
    line-height: normal;
}
.flex-1{
    flex: 1;
}
.gap-5{
    gap: 5px;
}
.gap-10{
    gap: 10px;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view {
    border-radius: 10px;
}
.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}
.has-error .form-control{
    border-color: #dc3545 !important;
}

.card-body table.table tr td:last-child{
    white-space: nowrap;
}
.page-attendance .card-body table.table tr th:first-child, .page-attendance .card-body table.table tr td:first-child,
.page-branch.action-index .card-body table.table tr th:first-child, .page-branch.action-index .card-body table.table tr td:first-child,
.page-user.action-index .card-body table.table tr th:first-child, .page-user.action-index .card-body table.table tr td:first-child,
.page-salary .card-body table.table tr th:first-child, .page-salary .card-body table.table tr td:first-child,
.page-position.action-index .card-body table.table tr th:first-child, .page-position.action-index .card-body table.table tr td:first-child,
.page-attendance-log .card-body table.table tr th:first-child, .page-attendance-log .card-body table.table tr td:first-child,
.page-action-log .card-body table.table tr th:first-child, .page-action-log .card-body table.table tr td:first-child,
.page-roles .card-body table.table tr th:first-child, .page-roles .card-body table.table tr td:first-child,
.page-permission .card-body table.table tr th:first-child, .page-permission .card-body table.table tr td:first-child,
.page-company.action-index .card-body table.table tr th:first-child, .page-company.action-index .card-body table.table tr td:first-child
{
    width: 50px;
}
.brand-link .brand-image{
    margin-top: 0 !important;
}

.has-error .help-block{
    color: red;
}
.custom-tag{
    background: #ededed;
    border: 1px solid #ddd;
    margin: 2px;
    display: inline-block;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
}

.layout-navbar-fixed .wrapper .content-wrapper{
    /*margin-top: calc(2.2rem + 1px) !important;*/
}

.pagination{
    margin: 20px;
}
.sm-circle{
    width: 6px;
    margin-top: -2px;
    margin-left: 5px;
    height: 6px;
    display: inline-block;
    position: absolute;
    top: 50%;
    border-radius: 4px;
    cursor: pointer;
}
.select2-container{
    min-width: 150px;
}
.select2-container .select2-selection--multiple .select2-selection__rendered{
    white-space: normal !important;
}
.select2-container--krajee-bs4 .select2-selection--multiple{
    /*max-width: 600px;*/
}
.select2-search.select2-search--inline{
    width: 0 !important;
    overflow: hidden;
}

.highlight{
    background: yellow;
}

.alert-primary {
    color: #004085 !important;
    background-color: #cce5ff !important;
    border-color: #b8daff !important;
}
.alert-danger{
    color: #721c24 !important;
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
}
.alert-warning {
    color: #856404 !important;
    background-color: #fff3cd !important;
    border-color: #ffeeba !important;
}
.alert-success {
    color: #155724 !important;
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
}
.alert-info {
    color: #0c5460 !important;
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
}

.grayscale{
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: gray;
}

table.table thead{
    position: sticky;
    z-index: 1;
    top: 58px;
    background: #fff;
}
table.table thead tr,
table.table tr.filters,
.header-bg
{
    background: #f4f6f9;
}
table.table thead td,
table.table thead th
{
    border: 0;
}
table.table tr {
    background: #fff;
    position: relative;
}

.mCSB_inside>.mCSB_container{
    margin-right: 0 !important;
}

.scroll-content-block{
    overflow: hidden;
}
.scroll-content{
    height: 100%;
}
.scroll-content table tr:first-child td{
    border-top: 0 !important;
}
.empty-text::before{
    line-height: 1;
    content: "\f129";
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    border: 1.5px solid #dee2e6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 10px;
    color: #959b9c;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}
.empty-text{
    /*height: 100%;*/
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    flex-direction: column;
    text-align: center;
    color: #959b9c;
}
.small-box{
    overflow: hidden;
}

.custom-file-upload {
    background-color: #17a2b8;
    color: white;
    cursor: pointer;
    border-radius: 30px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    position: absolute;
    bottom: 0;
    right: 0;
}
.custom-file-upload:hover {
    background-color: #0c7f92;
}
#upload_form .loading{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    display: flex;
    border-radius: 50%;
    bottom: 0;
    margin: auto;
    background: rgba(0, 0, 0, 0.5);
}

.mCSB_scrollTools{ width: 3px !important; }
.mCSB_scrollTools .mCSB_draggerRail{ display: none !important; }
.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ width: 3px !important; background: rgba(0,0,0,0.25) !important; border-radius: 0 !important; }
.mCSB_1_scrollbar .mCSB_dragger .mCSB_draggerRail{ width: 3px !important; background: none !important; }

.empty{
    text-align: center;
}

.dt-buttons{
    text-align: right;
    padding: 7px 10px 0;
}
.dt-button{
    padding: 5px 10px;
    border: 0;
    color: #fff;
}
.dt-button.buttons-excel{
    background: #009e43;
}
.dt-button.buttons-print{
    background: #007bff;
}

.bordered-item{
    border-bottom: 1px solid #dee2e6 !important;
}
.bordered-item:last-child{
    border-bottom: 0 !important;
}

@media only screen and (max-width: 1200px) {
    .grid-view{
        overflow-x: auto;
    }
    .card-body{
        /*padding: 10px !important;*/
    }
    .list-group-item > div{
        display: inline-block !important;
    }
    .select2-custom-width{
        width: 200px !important;
    }
}

@media only screen and (min-width: 768px) {
    table.table-with-action tr th:last-child,
    table.table-with-action tr.filters td:last-child
    {
        display: none;
    }
    table.table-with-action tr{
        height: 55px;
    }
    table.table-with-action tr td.action-cell {
        position: absolute;
        right: 0;
        padding-right: 12px !important;
        top: 1px;
        bottom: 1px;
        background: #ffffff;
        border: 0;
        background: linear-gradient(270deg, rgba(255, 255, 255, 1) 80%, rgba(255, 255, 255, 0) 100%);
        display: none;
        padding-left: 70px;
        gap: 3px;
        align-items: center;
    }
    table.table-with-action tr:hover td.action-cell {
        display: flex;
        text-align: right;
    }
}

@media only screen and (max-width: 991px) {
}

.rotate{
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.br-20{
    border-radius: 20px !important;
}

.table td, .table th{
    vertical-align: middle !important;
}

/*Item*/
.item-block .cover{
    border-radius: 20px;
    background-color: #fff;
    height: 200px;
    padding: 10px;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.item-block .logo{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: -75px auto 50px;
    position: relative;
    background: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.item-block .field-restaurant-logo_image .help-block{
    white-space: nowrap;
    position: absolute;
    margin-top: 20px;
}
.item-block .form-control{
    border-radius: 20px;
    border: 0;
    padding: 30px 20px;
    font-size: 25px;
}
.item-block button[type="submit"]{
    border-radius: 30px;
}
.custom-icon-block{
    width: 30px;
    text-align: center;
    display: inline-block;
}