html {
    width: 100%;
    height: 100%;
    background-color: #1e3952;
    overflow-x: hidden;
    font-family: 'Lato', sans-serif;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
}
.dashboard {
    width: 100%;
    display: flex;
    flex-direction: row;
}
.hide {
    display: none;
}

/***** Scrollbar *****/
::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-thumb {
    background-color: #6590c8;
    border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #cde;
}

.settings::-webkit-scrollbar {
    width: 7px;
}
.settings::-webkit-scrollbar-thumb {
    background-color: #f0f8ff;
    border-radius: 7px;
}
.settings::-webkit-scrollbar-thumb:hover {
    background-color: #6590c8;
}

/***** Login *****/
.login {
    margin: 40px auto;
    max-width: 400px;
    background-color: #334d66;
    padding: 20px;
    color: #cde;
    height: 230px;
    overflow: hidden;
    transition: height 0.5s ease;
    border-radius: 4px;
}
.login__header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.header-logo__large {
    height: 40px;
    justify-self: center;
}
.login__title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    overflow: hidden;
    margin: 0 0 20px;
}
.login__form {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
.login__form-container {
    display: flex;
    flex-direction: column;
    row-gap: 2px;
}
.login__form-input {
    color: #1e3952;
    font-size: 16px;
    background-color: #cde;
    padding: 3px 8px;
    border: 1px solid #cde;
    border-radius: 4px;
    transition: border-color 0.5s ease;
}
.button-login {
    margin-top: 10px;
    font-size: 17px;
    border-radius: 4px;
    border: 1px solid #cde;
    padding: 3px 15px 0 15px;
    background-color: transparent;
    color: #cde;
    cursor: pointer;
    font-weight: normal;
    text-align: center;
    height: 35px;
    transition: all 0.5s ease;
}
.button-login:hover {
    color: #6590c8 !important;
    border-color: #6590c8 !important;
    transition: all 0.1s ease;
}
.login__form-false {
    color: #ac4444;
    margin-top: 12px;
}
.login__form-register {
    font-size: 14px;
    color: #cde;
    text-decoration: underline #cde;
    transition: all 0.2s ease;
}
.login__form-register:hover {
    cursor: pointer;
    color: #6590c8;
    text-decoration: underline #6590c8;
    transition: all 0.2s ease;
}

/***** Navigation *****/
.navigation {
    height: 100vh;
    width: 50px;
    overflow: hidden;
    background-color: #0e2942;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    z-index: 1;
    transition: width 0.2s ease;
}
.navigation__item {
    display: grid;
    grid-template-columns: 50px 1fr;
    position: relative;
    justify-content: start;
    align-items: center;
    width: 100%;
    height: 50px;
    font-size: 17px;
    color: #6590c8;
}
.navigation__item:not(:first-child):hover {
    cursor: pointer;
    color: #cde;
}
.navigation__item:not(:first-child):hover svg {
    stroke: #cde;
}
.navigation__item:not(:first-child):hover path {
    fill: #cde;
}
.navigation__item-active {
    background-color: #1e3952;
    color: #cde;
}
.navigation__item-active:hover {
    cursor: default;
    color: #cde;
}
.navigation__item-active svg {
    stroke: #cde;
}
.navigation__item-active path,
.navigation__item-active:hover path {
    fill: #cde;
}
.navigation__item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    transform: translatex(-50%);
    height: 1px;
    width: 30px;
    border-radius: 2px;
    background-color: #6590c8;
    transition: all 0.2s ease;
}
.navigation__item-active::before {
    display: none;
}
.navigation__item-active + .navigation__item::before {
    display: none;
}
.navigation__item svg {
    justify-self: center;
}
.immo-icon {
    margin-right: -10px;
}
.navigation:hover {
    width: 150px;
    transition: width 0.2s ease;
}
.navigation:hover .navigation__item:not(:first-child)::before {
    left: 60px;
    width: 80px;
    transition: all 0.2s ease;
}

/***** Modules *****/
.tab {
    display: grid;
    padding: 40px;
    row-gap: 40px;
    background-color: #1e3952;
    position: absolute;
    overflow-y: auto;
    top: 0;
    left: 50px;
    bottom: 0;
    right: 0;
}
@media all and (min-width: 1000px) {
    .tab {
        grid-template-columns: 1fr 1fr;
        grid-gap: 40px;
    }
}
@media all and (min-width: 1400px) {
    .tab {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: 40px;
    }
}
.tab-hidden {
    display: none !important;
}

/***** Elements *****/
.element {
    padding: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #cde;
    border-radius: 10px;
    height: 465px;
    min-height: 465px;
}
@media all and (min-width: 1000px) {
    .element__large {
        height: calc(100vh - 80px);
        grid-column: 1/3;
    }
}
@media all and (min-width: 1400px) {
    .element__large {
        grid-column: 1/4;
    }
}
.element__header {
    display: flex;
    position: relative;
    background-color: #f0f8ff;
    justify-content: space-between;
    padding: 15px 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: rgba(33, 35, 38, 0.1) 0 10px 10px -10px;
}
.element__header-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    overflow: hidden;
    margin: 0;
    font-family: 'Lato', sans-serif;
    color: #0358a9;
}
.element__header-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.element__header-icons a {
    display: flex;
    text-decoration: none;
}
.element__header-icons svg {
    cursor: pointer;
}
.element__content {
    border: none;
    width: 100%;
    height: calc(100% - 64px);
    overflow-y: auto;
}

/***** Settings *****/
.tab-settings {
    display: flex;
    justify-content: center;
}
.settings {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}
.settings-user {
    grid-area: user;
}
.settings-module {
    grid-area: module;
}
.element__settings {
    display: grid;
    grid-template-columns: 1fr 0;
    grid-template-rows: min-content 1fr;
    grid-template-areas:
        "user overlay"
        "module overlay";
    row-gap: 40px;
    column-gap: 0;
    background-color: #334d66;
    padding: 20px;
    border-radius: 4px;
    height: fit-content;
    transition: grid-template-columns 0.1s linear;
}
.overlay {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    width: 0;
    background-color: #1e3952;
    grid-area: overlay;
    border-radius: 4px;
    overflow-x: hidden;
    height: fit-content;
    max-height: 970px;
    transition: all 0.1s linear;
}
.overlay-title {
    margin: 10px 10px 0 10px;
    color: #cde;
}
.overlay__content {
    margin: 0 10px 10px;
    display: flex;
    flex-direction: column;
}
.overlay__input {
    color: #1e3952;
    font-size: 16px;
    margin: 0 0 15px;
    background-color: #cde;
    padding: 3px 8px;
    border: none;
    border-radius: 4px;
}
.access-toggle {
    margin: -3px 0;
}
.access-toggle__input {
    display: block;
    height: 24px;
    width: 46px;
    margin: 0;
}
.access-toggle__input:hover {
    cursor: pointer;
}
.access-toggle__input::after {
    position: relative;
    bottom: 27px;
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 20px;
    background-color: #cde;
    content: '';
    float: left;
    margin-right: 5px;
    transition: margin 0.1s linear;
    box-shadow: 0 0 5px #cde;
}
.access-toggle__input:checked::after {
    left: 22px;
    transition: left 0.1s linear;
    background-color: #f0f8ff;
    box-shadow: 0 0 5px #0ff8ff;
}
.access-toggle__input:not(:checked)::after {
    left: 2px;
    transition: left 0.1s linear;
}
.access-toggle__input::before {
    width: 40px;
    height: 20px;
    border-radius: 20px;
    border: 2px solid #cde;
    display: inline-block;
    content: '';
    float: left;
    transition: background-color 0.1s linear;
    margin-bottom: 5px;
    margin-right: 15px;
    box-sizing: unset;
}
.access-toggle__input::before:hover {
    cursor: pointer;
}
.access-toggle__input:checked::before {
    background-color: #334d66;
    transition: background-color 0.1s linear;
}
.access-toggle__input:not(:checked)::before {
    background-color: #0e2942;
    transition: background-color 0.1s linear;
}
.access-toggle__label {
    position: relative;
    bottom: 23px;
    left: 50px;
    color: #cde;
    font-size: 14px;
}
.access-toggle__label:hover {
    cursor: pointer;
}
.button-save {
    background-color: transparent;
    border: none;
    font-size: 17px;
    color: #cde;
    cursor: pointer;
    font-weight: normal;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-self: end;
    column-gap: 5px;
    align-items: center;
}
.button-save:hover {
    cursor: pointer;
    color: #6590c8;
    transition: color 0.2s ease;
}
.button-save:hover path {
    fill: #6590c8;
    transition: fill 0.2s ease;
}
.button-logout {
    background-color: transparent;
    border: none;
    padding: 0;
    text-align: left;
}
.settings__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.settings__header span {
    width: 25px;
}
.settings__header-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    overflow: hidden;
    margin: 0;
    font-family: 'Lato', sans-serif;
    color: #cde;
}
.userlist .headrow {
    font-weight: bold;
    background-color: #334d66;
    border-radius: 4px;
    padding: 10px!important;
}
.userlist {
    background-color: #1e3952;
    padding: 10px;
    border-radius: 4px;
}
.userlist .list__row:not(.headrow):nth-of-type(odd) {
    border-radius: 4px;
    border-color: #334d66;
    border-style: solid;
    border-width: 1px;
}
.modulelist .list__row:not(.headrow):nth-of-type(odd) {
    border-radius: 4px;
    border-color: #4d6780!important;
    border-style: solid;
    border-width: 1px;
}
.list__row {
    padding: 5px 10px;
    display: grid;
    grid-column-gap: 5px;
    align-items: center;
    grid-template-columns: 120px 1fr 25px 25px;
    font-size: 14px;
    color: #cde;
}
.list__row a {
    text-decoration: underline #cde;
    color: #cde;
}
.list__row a:hover  {
    text-decoration: underline #6590c8;
    color: #6590c8;
}
.list__row a:hover svg {
    fill: #6590c8;
}
.list {
    display: flex;
    flex-direction: column;
}
.modulelist {
    margin: 0 10px;
    padding: 10px;
    background-color: #334d66;
    border-radius: 4px;
}
.modulelist .headrow {
    font-weight: bold;
    background-color: #4d6780;
    border-radius: 4px;
    padding: 10px!important;
}
.modules {
    background-color: #1e3952;
    border-radius: 4px;
}
.modules[open] .modules-name:after {
    transform: rotate(-90deg);
}
.modules__container {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.modules-name {
    display: flex;
    padding: 10px;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
    cursor: pointer;
    color: #cde;
}
.modules-name:after {
    content: "❯";
    color: #cde;
    float: right;
    display: block;
    font-weight: lighter;
    margin-right: 5px;
    transform: rotate(90deg);
}
.modulelist .list__row {
    grid-template-columns: 1fr 1fr 50px 25px 25px;
}
.list__row span {
    text-overflow: ellipsis;
    overflow: hidden;
}
.button-delete {
    background: transparent;
    border: none;
    color: #cde;
}
.button-edit:hover,
.button-delete:hover,
.button-revert:hover {
    cursor: pointer;
}
.button-edit:hover path {
    stroke: #6590c8;
    transition: stroke 0.1s ease;
}
.button-delete:hover svg {
    stroke: #ac4444;
    transition: stroke 0.1s ease;
}
.button-add {
    grid-column: 3/5;
    font-size: 17px;
    border-radius: 4px;
    border: 1px solid #cde;
    padding: 3px 15px 0 15px;
    color: #cde;
    cursor: pointer;
    font-weight: normal;
    text-align: center;
}
.modulelist .button-add {
    grid-column: 4/6;
}
.button-add:hover {
    color: #6590c8;
    border-color: #6590c8;
    transition: all 0.1s ease;
}
.button-revert {
    grid-column: 4/5;
    background-color: transparent;
    border: none;
    float: right;
}
.button-revert:hover path:last-child {
    fill: #6590c8;
    transition: fill 0.1s ease;
}
.module-remove {
    background-color: transparent;
    border: none;
    float: right;
    font-size: 17px;
    color: #cde;
    cursor: pointer;
    font-weight: normal;
    text-align: center;
    display: flex;
    flex-direction: row;
    column-gap: 5px;
    align-items: center;
}
.module-remove:hover {
    color: #ac4444;
    transition: color 0.1s ease;
}
.module-remove:hover svg {
    stroke: #ac4444;
    transition: stroke 0.1s ease;
}