/* LAYOUT */
.navbar {
    height: var(--nav-height-mobile);
    width: 100%;
    background-color: var(--light-white);
    box-shadow: 0 1px 15px rgb(0 0 0 / 4%), 0 1px 6px rgb(0 0 0 / 4%);
    z-index: 4;
}

.tablet .navbar {
    height: var(--nav-height-tablet);
}

.desktop .navbar {
    height: var(--nav-height-desktop);
}

.navbar>div {
    display: flex;
}

.navbar .item {
    padding: 0 0.5rem;
    z-index: 1000;
}

.center {
    display: flex;
    width: 100%;
    height: calc(100% - var(--nav-height-mobile));
    position: absolute;
    top: var(--nav-height-mobile);
}

.tablet .center {
    display: flex;
    height: calc(100% - var(--nav-height-tablet));
    top: var(--nav-height-tablet);
}

.desktop .center {
    display: flex;
    height: calc(100% - var(--nav-height-desktop));
    top: var(--nav-height-desktop);
}

.sidebar {
    width: var(--sidebar-width-desktop);
    height: 100%;
    background: var(--light-white);
    box-shadow: 0 3px 30px rgb(0 0 0 / 10%), 0 3px 20px rgb(0 0 0 / 10%);
    padding: 0rem 0;
    transition: all .4s;
    display: flex;
    justify-content: center;
}

.mobile .sidebar {
    position: absolute;
    z-index: 3;
    left: -120px;
    box-shadow: unset;
}

.mobile .sidebar-open .sidebar {
    position: relative;
    left: 0px;
    box-shadow: 0 3px 30px rgb(0 0 0 / 10%), 0 3px 20px rgb(0 0 0 / 10%);
}

.mobile .sidebar-open main {
    position: absolute;
    z-index: 2;
    left: 0;

}

.sidebar.closed {
    left: -1* var(--sidebar-width-desktop);
}

.hamburger {
    display: none;
}

.mobile .hamburger {
    display: block;
}

/* FORM */


.has-float-label {
    display: block;
    position: relative;
}

.has-float-label>span:last-of-type,
.has-float-label label,
.has-float-label legend {
    position: absolute;
    cursor: text;
    font-size: 90%;
    opacity: 1;
    top: -0.48em;
    left: 0.75rem;
    z-index: 3;
    line-height: 1;
    padding: 0 1px;
    background: var(--white);
    padding: 0px 5px;
    width: auto;
}


.has-float-label>span,
.has-float-label label,
.has-float-label legend,
.has-top-label>span,
.has-top-label label,
.has-top-label legend {
    color: rgba(58, 58, 58, .7);
}

.float-label legend:after {
    content: " ";
    display: block;
    position: absolute;
    height: 5px;
    top: 3px;
    left: -0.2em;
    right: -0.2em;
    z-index: -1;
}

/* UI */

/* menu */
.menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-item {
    height: 6rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid var(--border-grey);
    justify-content: center;
    cursor: pointer;
    transition: all .3s;
}

.menu-item:hover,
.menu-item.active {
    color: var(--highlight);
}

.menu-item .icon {
    font-size: 2rem;
    line-height: 2rem;
}

.menu-item .text {
    display: flex;
    justify-content: center;
}

.menu-item .link {
    text-decoration: none;
}

/* dropdown */
.dropdown .box {
    position: absolute;
    top: 1.5rem;
    border: 1px solid var(--border-grey);
    border-radius: 0.5rem;
    right: 0px;
    min-width: 10rem;

    padding: 0.5rem 0;
    background: var(--white);
    display: none;
    z-index: 10001;
}

.dropdown .box.active {
    display: block;
}

.dropdown .icon {
    font-size: 1.4rem;
    margin: 0 5px;
    cursor: pointer;
}

.dropdown .item {
    padding: 0.25rem 1.5rem;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.dropdown .item.group {
    border-top: 1px solid var(--border-grey);
}

.dropdown .item:hover {
    background-color: var(--light-white);
}


/* modal */
.modal {
    background: var(--white);
    width: 50%;
    min-height: 12rem;
    max-height: 60%;
    height: auto;
    top: 20%;
    left: 25%;
    flex-direction: column;
    border-radius: 3px;
    box-shadow: 3px 4px 7px 4px #00000044;
}

.tablet .modal {
    width: 60%;
    top: 10%;
    left: 20%;
    max-height: 80%;
}

.mobile .modal {
    width: 80%;
    top: 6%;
    left: 10%;
    max-height: 88%;
}

.modal.active {
    display: flex;
}

.modal .header {
    min-height: 3rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-grey);
    padding: 0 1rem;
    background: var(--light-white);
}

.modal .content {
    min-height: 6rem;
    padding: 1rem;
    font-size: 1rem;
    height: 100%;
    overflow-x: auto;
}

.modal .footer {
    min-height: 3rem;
    background: var(--light-white);
    border-top: 1px solid var(--border-grey);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1rem;
}

.modal .footer button {
    margin-left: .5rem;
}

.modal .title {
    font-size: 1.2rem;
}

.modal .header .close {
    position: absolute;
    top: 4px;
    right: 4px;
}

.modal-back {
    background: #000000;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    opacity: 50%;
    display: none;
}

.modal-back.active {
    display: block;
}