﻿@import "https://fonts.googleapis.com/css2?family=Marcellus&display=swap";
@import "https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;0,700;1,400;1,700&display=swap";
@import "https://fonts.googleapis.com/css?family=Nunito:400,700,900";
@import "https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css";
@import "https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.css";
@import "https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.18/css/bootstrap-select.min.css";
@import "/css/toast.min.css";

:root {
    --grid-item-width: 400px;
}

html {
    font-size: 14px;
    position: relative;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    position: relative;
    width: 100%;
    height: 100%;
    background: #F1F4F8;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    white-space: nowrap;
    background: var(--white);
}

.main-body {
    flex: 1;
}

footer {
    white-space: nowrap;
}

i.fas.middle{
    display:flex;
    align-items: center;
    justify-content: center;
}

.bg-lightgrey{
    background-color: lightgrey;
}

.full-screen {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}
.full-screen-relative {
    width:100%;
    height:100%;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.logo {
    height: 60px;
    width: auto;
}

    .logo img {
        height: 100%;
        margin: auto;
    }

.icon {
    font-size: 132%;
}

.icon-label{
    width:20px;
}

.mid-form {
    width: 100%;
    max-width: 500px;
    max-height: 100%;
    overflow: hidden;
}

.full-form {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.nav-tabs{
    border: 0;
}
    .nav-tabs.center{
        align-items: center;
        justify-content: center;
    }
    .nav-tabs .nav-link {
        font-weight: bold;
        color: var(--secondary);
        background-color: transparent;
    }
        .nav-tabs .nav-link.active {
            border: 0;
            font-size: 120%;
            border-bottom: 3px solid var(--custom,var(--primary));
            color: unset;
            background-color: transparent;
        }


.notvisible{
    opacity:0;
}

.overlay:after,
.backdrop:after,
.busy:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: .5;
    z-index: 9;
}

.backdrop > *{
    z-index:10;
}

.busy:after {
    z-index: 99999;
}
.busy:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
    border-radius: 50%;
    animation: spinner .6s linear infinite;
    z-index: 999999;
    border: 2px solid #f6f;
    border-top-color: #0e0;
    border-right-color: #0dd;
    border-bottom-color: #f90;
}
@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}


/*modal panel*/

.modal-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 99999;
    
}
    


/*edit form*/
.edit-title {
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edit-form {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

    .edit-form .card-body {
        overflow-x: hidden;
        overflow-y: auto;
    }

/*summernote*/
.note-editor {
    border-radius: 4px;
    min-width: 300px;
}

.note-toolbar {
    background: var(--light);
    border-bottom: 1px solid rgba(0,0,0,.2);
}

.note-modal .modal-header {
    flex-direction: row-reverse;
}

/*flex-form*/
.flex-form-row {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}


.flex-form-input {
    flex: 1;
    width: auto;
    max-width: 500px;
    min-width: 200px;
}

.grid-row .flex-form-input {
    max-width: none !important;
    min-width: auto !important;
}
.grid-row .flex-form-input {
    max-width: none !important;
    min-width: auto !important;
}

.flex-form-input-max {
    flex: 1;
    width: auto;
}

.flex-form-validation {
    color: var(--danger);
    font-size: 75%;
    width: 100%;
}

.flex-form-label {
    font-weight: bold;
}

.flex-form.top-label .flex-form-label, .flex-form.top-label .flex-form-input, flex-form.top-label .flex-form-input-max, .flex-form.top-label .flex-form-validation {
    width: 100% !important;
}

.flex-form-image {
    max-width: 400px;
    max-height: 400px;
    width: 100%;
}

/*flex-container, grid container*/
.flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

    .flex-item {
        flex: 1;
        min-width: min(var(--grid-item-width) , 100%);
        background: var(--white);
    }

    .flex-auto-added{
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

.grid-container {
    display: inline-grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--grid-item-width), 1fr));
    gap: 20px;
    overflow-x: hidden;
}
    .grid-container.fitted {
        grid-template-columns: repeat(auto-fit, minmax(var(--grid-item-width), 1fr));
    }


.grid-item {
    display: inline-block;
    background: var(--white);
}
    .grid-item * {
        overflow: hidden;
    }

    .grid-item .crud-item-actions, .flex-item .crud-item-actions {
        border-top: 1px solid #ced4da;
        position: sticky;
        top: 100%;
        bottom: 0;
    }

.crud-table .crud-item-actions {
    gap: 10px;
}


.grid-item-info, .flex-item-info {
    position: absolute;
    top: 0;
    right: 0;
}



.pager-list{
    border: 0 !important;
    width: 50px;
    background-color: transparent;
    cursor: pointer;
}
.pager-icon{
    font-size: 120%;
}

/*crud table*/
.crud-table td {
    max-width:400px;
    
}
.crud-table * {
    overflow: hidden;
}


/*file uploader*/
.file-uploader {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

    .file-uploader img{
        height: 80px;
        cursor: pointer;
    }

/*sortable*/
.sortable > *:hover {
    cursor: grab;
}

.sortable > *.ui-sortable-helper {
    cursor: grabbing;
}


/*sidebar*/
.main-menu {
    z-index: 100;
    min-width: 300px;
    max-width: 300px;
}

@media (max-width: 767.98px) {
    .main-menu:not(.show){
        display:none !important;
    }
    .main-menu {
        max-width: none;
        min-height: 100%;
    }
    main {
        flex-direction: column;
    }
}

.main-menu .nav-link {
    font-weight: 700;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}



/*navbar*/
.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem; 
}

.navbar .navbar-toggler {
    right: 1rem;
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}


/*scrollbar*/
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }



/*errorpage*/

#errorpage {
    position: relative;
    height: 100vh;
    background: #fff;
}

    #errorpage .errorpage {
        position: absolute;
        left: 50%;
        top: 50%;
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

.errorpage {
    max-width: 560px;
    width: 100%;
    padding-left: 160px;
    line-height: 1.1;
}

    .errorpage .errorpage-icon {
        position: absolute;
        left: 0;
        top: 0;
        display: inline-block;
        width: 140px;
        height: 140px;
        background-image: url('../images/emoji.png');
        background-size: cover;
    }

        .errorpage .errorpage-icon:before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            -webkit-transform: scale(2.4);
            -ms-transform: scale(2.4);
            transform: scale(2.4);
            border-radius: 50%;
            background-color: #f2f5f8;
            z-index: -1;
        }

    .errorpage h1 {
        font-size: 65px;
        font-weight: 700;
        margin-top: 0px;
        margin-bottom: 10px;
        color: #151723;
        text-transform: uppercase;
    }

    .errorpage h2 {
        font-size: 21px;
        font-weight: 400;
        margin: 0;
        text-transform: uppercase;
        color: #151723;
    }

    .errorpage p {
        color: #999fa5;
        font-weight: 400;
    }

    .errorpage a {
        font-family: 'Nunito', sans-serif;
        display: inline-block;
        font-weight: 700;
        border-radius: 40px;
        text-decoration: none;
        color: #388dbc;
    }

@media only screen and (max-width: 767px) {
    .errorpage .errorpage-icon {
        width: 110px;
        height: 110px;
    }

    .errorpage {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 110px;
    }
}


/*tree*/
.tree-item{
    display: flex;
    flex-direction: column-reverse;
}
.tree-icon {
    transition: all .4s;
}
.tree-item > .tree-item-body.show ~ .tree-item-header > .tree-icon{
    transform: rotate(90deg);
}
.tree-item-header.bg-custom *{
    color: white !important;
}

/*calendar*/
.calendar-day-name {
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    flex: 1;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    overflow: hidden;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 4px;
    overflow: hidden;
    width: calc(100% / 7) !important;
}

.calendar-day {
    min-height: 50px;
    font-size: 80%;
    width: 100%;
}

.date-picker {
    max-width: 200px;
}

@media (max-width: 768px) {
    .calendar {
        display: block !important;
    }

    .calendar-day {
        margin-bottom: 4px;
    }
}
.bg-disable {
    background-color: #e9ecef !important
}
.vl {
    border-left: 2px solid;
    height: 30px;
}
.dropdown-menu{
    max-width:100%;
}
