html,
body {
    height: 100%;
    width: 100%;
    max-height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

body>header {
    flex-shrink: auto;
}

body>main {
    flex-shrink: auto;
    flex-grow: auto;
    overflow: auto;
}

body>footer {
    flex-shrink: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100%);
}

#user-avatar {
    width: 1.8rem;
    height: 1.8rem;
    object-fit: scale-down;
    object-position: center center;
}

#user-img-profile {
    width: 100%;
    height: auto;
    max-height: 20vh;
    object-fit: scale-down;
    object-position: center center;
}

.body-wrapper .main-wrapper .page-wrapper .content-wrapper {
    min-height: calc(100vh - 84px - 62px) !important;
}

.bg-secondary {
    background-color: var(--bs-gray-500)!important;
}

.navbar-brand>img {
    height: 2em;
}

.fc-button-group {
    background-color: aquamarine;
}

#id_title, #id_start_date, #id_end_date {
    height: 2rem !important;
    text-align: center;
    vertical-align: middle;
    align-items: center;
    align-content: center;
    display: inline-block;
    justify-content: space-between ;
    text-decoration: none;
    padding: 0;
    background-position: right .5rem center;
    background-size: 0 0;
    border-radius: 5px;
    border: 1px solid #6a899b75;
}


/* loader */

body.loading {
    overflow: hidden;
}

#pre-loader {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    backdrop-filter: brightness(.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.lds-default {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-default div {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: lds-default 1.2s linear infinite;
}

.lds-default div:nth-child(1) {
    animation-delay: 0s;
    top: 37px;
    left: 66px;
}

.lds-default div:nth-child(2) {
    animation-delay: -0.1s;
    top: 22px;
    left: 62px;
}

.lds-default div:nth-child(3) {
    animation-delay: -0.2s;
    top: 11px;
    left: 52px;
}

.lds-default div:nth-child(4) {
    animation-delay: -0.3s;
    top: 7px;
    left: 37px;
}

.lds-default div:nth-child(5) {
    animation-delay: -0.4s;
    top: 11px;
    left: 22px;
}

.lds-default div:nth-child(6) {
    animation-delay: -0.5s;
    top: 22px;
    left: 11px;
}

.lds-default div:nth-child(7) {
    animation-delay: -0.6s;
    top: 37px;
    left: 7px;
}

.lds-default div:nth-child(8) {
    animation-delay: -0.7s;
    top: 52px;
    left: 11px;
}

.lds-default div:nth-child(9) {
    animation-delay: -0.8s;
    top: 62px;
    left: 22px;
}

.lds-default div:nth-child(10) {
    animation-delay: -0.9s;
    top: 66px;
    left: 37px;
}

.lds-default div:nth-child(11) {
    animation-delay: -1s;
    top: 62px;
    left: 52px;
}

.lds-default div:nth-child(12) {
    animation-delay: -1.1s;
    top: 52px;
    left: 62px;
}

@keyframes lds-default {
    0%,
    20%,
    80%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}
/* #pre-loader {
    border: 6px solid #e5e5e5;
    border-radius: 50%;
    border-top-color: #439f8d;
    position: absolute;
    top: 50%;
    left: calc(50% - 32px);
    width: 55px;
    height: 55px;
    z-index: 1;
    animation: pre-loader 2s;
    animation-fill-mode: forwards;
}

@keyframes pre-loader {
    to {
        transform: rotate(360deg);
        opacity: 0;
    }
} */


img#post-banner-mgt {
    width: 100%;
    max-height: 40vh;
    object-fit: scale-down;
    object-position: center center;
}

img.post-banner {
    height: 21vh;
    width: 100%;
    object-fit: scale-down;
    object-position: center center;
}

.truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


#user-avatar-modal {
    width: 100%;
    height: 15vh;
    object-fit: scale-down;
    object-position: center center;
}

.nav-item.active a.nav-link {
    font-weight: bolder !important;
    color: #050505;
}

.summary-card {
    border-left-width: 5px !important;
    border-left-style: solid;
}

.clip-text {
    position: fixed;
    top: 0;
}

.tools {
    margin-top: 10px;
    margin-left: 13px;
    margin-right: 13px;
}

/* Pagination */
#event-list_filter, #employee-list_filter, #post-list_filter,#item-list_filter {
    display: none;
}

#event-list_length, #employee-list_length, #post-list_length, #item-list_length {
    margin-bottom: -30px;
}
#event-list_paginate, #employee-list_paginate, #post-list_paginate,#item-list_paginate {
    margin-top: -30px;
}


.dt-buttons {
    float: right !important;
    margin-bottom: 10px !important;
}


.dataTables_paginate {
    font-size:  14px !important;
}
.dataTables_filter {
    font-size:  14px !important;
}
.dataTables_info {
    font-size:  14px !important;
    vertical-align: middle !important;
    align-items: center !important;
    align-content: center !important;
}
.dataTables_length {
    font-size:  14px !important;
    vertical-align: middle !important;
    align-items: center !important;
    align-content: center !important;
}
.page-item.active .page-link {
    /*columns: #fff;
    background-color: gray;
    color: #fff;*/
    background:-moz-linear-gradient(blue);
    z-index: auto !important;
    padding: 2px 10px;
    border-radius: 50%;
}
/* .pagination > li > a {
    background-color: #6c757d;
    color: #a9a9a9
} */
/* .pagination > li > a:focus,
.pagination > li > a:hover,
.pagination > span > a:focus,
.pagination > span > a:hover {
    background-color: #6c757d;
    color: #a9a9a9
} */
/* Select 2 customize*/
.select2-selection--multiple {
    background-color: white;
    border: 1px solid #6a899b75;
    border-radius: 4px;
    cursor: text;
    padding-bottom: 5px;
    padding-right: 5px;
    position: relative;
    height: 2.4rem;
}
.select2-container {
    box-sizing: border-box;
    display: block;
    margin: 0;
    position: relative;
}
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #6a899b75;
    border-radius: 4px;
    height: 2.4rem;
}
/* form control - select*/
.form-select .form-control {
    font-size: 13px;
    height: 2.4rem;
}
.form-select:focus, .form-control:focus {
        -webkit-box-shadow: none;
        box-shadow: none;
        border-color: #6a899b75;
        -webkit-box-shadow: inset 0 0 0 1px #6a899b75;
        box-shadow: inset 0 0 0 1px #6a899b75;
}
.btn-secondary {
    background-color: #6a899b75;
}
#inout {
    font-size: 18px !important; 
    vertical-align: middle !important;
    text-align: center !important;
    margin-right: 20px;
}
#logo {
    margin-left: 20px;
}


#card-login {
    width: 450px;
}
.login-border {
    border-top: .5rem solid grey;
    border-bottom: .5rem solid grey;
    border-radius: 20px;
}

/* Material UI */

.md-group {
    position:relative;
    margin-bottom:22px;
}
.md-input, .md-select {
    width:100%;
    height:48px;
    padding:14px 12px 6px 12px;
    border:none;
    border-bottom:2px solid #bbb;
    background:transparent;
    outline:none;
    font-size:15px;
    transition:.25s;
}
.md-input:focus, .md-select:focus {
    border-color:#1976d2;
}
.md-label {
    position:absolute;
    top:14px;
    left:12px;
    color:#777;
    font-size:15px;
    pointer-events:none;
    transition:.25s;
}
.md-input:focus + .md-label,
.md-select:focus + .md-label,
.md-input:not(:placeholder-shown) + .md-label {
    top:-8px;
    font-size:12px;
    color:#1976d2;
}
.md-select + .md-label {
    top:-8px;
    font-size:12px;
    color:#777;
}
.md-input[type="date"] {
    color:#444 !important;
}
.md-input[type=date]:focus + .md-label {
    color:#1976d2 !important;
}
.inline-add-btn {
    font-size:12px;
    color:#1976d2;
    cursor:pointer;
    margin-top:4px;
    display:block;
}

/* Responsive (1199) */

@media(max-width: 1199px) {
    .table thead {
        display: none;
    }
    .table,
    .table tbody,
    .table tr,
    .table td {
        display: block;
    }
    .table tr {
        margin-bottom: 15px;
        border: 1px solid #111;
        border-radius: 3px;
        align-items: center !important;
    }
    .table td {
        text-align: right !important;
        padding-left: 35% !important;
        position: relative;
        border: 1px solid transparent;
    }
    /* .table td>img {
        text-align: center !important;
        position: relative;
    } */
    .table td::before {
        content: attr(label);
        position: absolute;
        left: 0;
        width: 40%;
        padding-left: 15px;
        font-size: 13px;
        font-weight: bold;
        text-align: left;
        align-items: center !important;
    }
    .table>thead>tr:first-child {
        display: none;
        margin-top: 5px;
    }

    .dataTables_empty.px-2.py-1 {
        text-align: center !important;
    }
   
    #responsive-border {
        border: 1px solid #a9a9a9
    }
    #top-table {
        background-color: #111;
        color: #fff;
    }
    #number {
        display: none;
    }
    .container-fluid {
        margin-left: 0px !important;
    }
    #filter-event {
        display: none;
    }
    #filter-item {
        display: none;
    }
    #btn-export {
    display: none;
    }
    .navbar-brand>img {
        height: 1.5em;
    }
    .nav-item.active a.nav-link {
        font-size: 13px;
    }
    .nav-item {
        font-size: 13px;
    }
    .pagination > li > a {
        background-color: #fff !important;
        color: #111;
        font-size: 13px;
    } 
    .page-item.active .page-link {
        columns: #fff;
        background-color: #6c757d !important;
        color: #fff;
        z-index: auto !important;
        padding: 2px 10px;
        border-radius: 5px;
    }
    #inout {
        font-size: 16px !important; 
        vertical-align: middle !important;
        float: right !important;
        margin-top: .3rem;
        margin-right: 1.5rem;
    }
    #navbarNav {
        margin-left: 1.5rem;
    }
    #msg {
        font-size: 13px;
    }
    #menu {
        font-size: 15px;
    }
}

/* Responsive (575) */

@media(max-width: 575px) {
    .redirect-msg {
        padding: 6px;
    }

    .txt-sm {
        font-size: 12px !important;
    }
    
    #card-login {
        width: 100%;
    }
    #title {
        font-size: 15px;
    }
    #username {
        font-size: 13px;
        height: 2rem;
    }
    #password {
        font-size: 13px;
        height: 2rem;
    }
    #btn-login {
        width: 60px !important;
        font-size: 9px !important;
        align-items: center;
    }
    #water-logo {
        font-size: 10px;
    }
    
    .dt-buttons {
        margin-bottom: 10px !important;
        font-size: 12px !important;
        justify-content: center !important;
        text-align: center !important;
        align-items: center !important;
        align-content: center !important;
        display: none;
    }
    
    #inventory_paginate {
        margin-top: -10px !important;
        font-size:  12px !important;
    }
    #stock_paginate {
        margin-top: -10px !important;
        font-size:  12px !important;
    }
    .dataTables_paginate {
        margin-top: -10px !important;
        font-size:  12px !important;
    }
    .dataTables_filter {
        font-size:  12px !important;
    }
    
    #tab_title {
        font-size: 15px !important;
        font-weight: bold !important;
    }
    .dataTables_info {
        display: none !important;
    }
    .dataTables_length {
        display: none !important;
    }
    .form-select {
        font-size: 11px;
    }
    .form-control {
        font-size: 11px;
    }
    .select2-selection, .select2-selection--single {
        font-size: 11px;
    }
    .form-label {
        font-size: 12px;
    }
    .control-label {
        font-size: 12px;
    }
    .card-title {
        font-size: 14px;
    }
    .btn {
        font-size: 11px !important;
    }
    .tools {
        font-size: 14px !important;
    }
    #modal-title {
        font-size: 13px !important;
    }
    #modal-body {
        font-size: 13px !important;
    }
    #add_new {
        font-size: 11px !important;
    }
    #individual_product {
        font-size: 13px;
    }
    #submit, #confirm, #cancel {
        font-size: 10px !important;
    }
    #footer {
        font-size: 13px;
    }
    
    .navbar-brand>img {
        height: 1em;
    }
    .nav-item.active a.nav-link {
        font-size: 12px;
    }
    .nav-item {
        font-size: 12px;
    }
    .pagination > li > a {
        background-color: #fff !important;
        color: #111;
        font-size: 12px;
    } 
    .page-item.active .page-link {
        columns: #fff;
        background-color: #6c757d !important;
        color: #fff;
        padding: 2px 10px;
        border-radius: 50%;
    }
    #inout {
        font-size: 14px !important; 
        vertical-align: middle !important;
        float: right !important;
        margin-top: .3rem;
    }
    #msg {
        font-size: 12px;
    }
    .btn-close {
        font-size: 9px;
    }
    .dataTables_empty.px-2.py-1 {
        font-size: 12px;
        text-align: center !important;
    }
    #menu {
        font-size: 14px;
    }
}