﻿body {
    margin: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: Helvetica neue, roboto;
    background-repeat: repeat-x;
    background-color: #075e93;
}

/*Headers*/
header.main-layout-header {
    height: 60px;
    padding: 5px;
    background-color: white;
    color: black;
    font-size: 20px;
    position: fixed;
    z-index: 1;
}

/*Mains*/
main.main-layout-main {
    flex: 1;
    overflow: hidden;
    overflow-y: auto;
    z-index: 0;
    margin-top: 66px;
    margin-bottom: 30px;
}

/*Footers*/
footer.main-layout-footer {
    height: 30px;
    background-color: beige;
    position: fixed;
    left: 0px;
    bottom: 0px;
    width: 100%;
}

/*Divs*/
div.main-layout-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

div.room-container,
div.warehouse-pro-container {
    display: flex;
    position: relative;
    height: 100%;
}

div.login-container {
    display: table;
    position: relative;
    top: 30%;
    left: 50%;
    bottom: 30%;
    transform: translate(-50%, 0);
}

div.login-container-tab {
    overflow: hidden;
    display: inline-flex;
}

div.room-menu-container {
    height: 100%;
    width: 100%;
}

div.forget-password-container,
div.reset-password-container {
    height: 100%;
    width: 100%;
    display: flex;
}

div.login-container-footer {
    text-align: left;
    margin: 50px 0 0 0;
}

div.room-menu-container,
div.warehouse-pro-menu-container {
    float: left;
    width: auto;
    height: 100%; /* Make the child element take the full height of the parent */
    /*background-color: white;*/
}

div.warehouse-pro-submenu-container {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f1f1f1;
    width: 100%;
}

div.warehouse-pro-submenu-container-active {
    display: grid;
    margin: 0px 5px 5px 20px;
}

div.items-nomenclatures-wrapper,
div.partners-nomenclatures-wrapper,
div.locations-nomenclatures-wrapper,
div.users-nomenclatures-wrapper,
div.minors-nomenclatures-wrapper {
    display: flex;
    overflow: auto;
    height: calc(100% - 40px);
    width: calc(100% - 80px);
    background-color: white;
    padding: 20px 40px;
}

div.operation-wrapper {
    display: grid;
    grid-template-rows: min-content 100% min-content;
    height: calc(100% - 40px);
    width: calc(100% - 80px);
    background-color: white;
    padding: 20px 40px;
    /*display: flex;
    flex-direction: column;
    height: calc(100% - 40px);
    width: calc(100% - 80px);
    background-color: white;
    padding: 20px 40px;*/
}
/*div.minors-nomenclatures-wrapper {
    height: calc(100% - 40px);
    width: calc(100% - 80px);
    background-color: white;
    padding: 20px 40px;
}*/
aside.items-nomenclature-groups,
aside.partners-nomenclature-groups,
aside.locations-nomenclature-groups,
aside.users-nomenclature-groups {
    border: 2px solid;
    border-radius: 10px;
    height: calc(100% - 4px);
    min-width: 300px;
    margin-right: 10px;
    float: left;
}

div.items-nomenclature-container,
div.partners-nomenclature-container,
div.locations-nomenclature-container,
div.users-nomenclature-container,
div.minors-nomenclature-container {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    min-height: min-content; /* needs vendor prefixes */
    max-width: 100%;
    height: 100%;
}

div.operation-header-container {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    min-height: min-content; /* needs vendor prefixes */
    max-width: 100%;
}

div.items-nomenclature-groups-commands,
div.partners-nomenclature-groups-commands,
div.locations-nomenclature-groups-commands,
div.users-nomenclature-groups-commands {
    display: flex;
    /*min-width: min-content;*/
}

div.items-nomenclature-groups,
div.partners-nomenclature-groups,
div.locations-nomenclature-groups,
div.users-nomenclature-groups {
    display: none;
    border: 2px solid;
    border-radius: 10px;
    height: 100%;
    min-width: 300px;
    margin-right: 10px;
}

div.operation-header-actors {
    /*border: 2px solid;
    border-radius: 10px;
    height: 100%;*/
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 5px;
    min-width: 300px;
}

div.items-nomenclature-commands,
div.partners-nomenclature-commands,
div.locations-nomenclature-commands,
div.users-nomenclature-commands,
div.minors-nomenclature-commands,
div.operation-header-details {
    border-bottom: 2px solid;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    min-width: 500px;
}

    div.items-nomenclature-commands > div,
    div.items-nomenclature-commands > button,
    div.partners-nomenclature-commands > div,
    div.partners-nomenclature-commands > button,
    div.locations-nomenclature-commands > div,
    div.locations-nomenclature-commands > button,
    div.users-nomenclature-commands > div,
    div.users-nomenclature-commands > button,
    div.minors-nomenclature-commands > div,
    div.minors-nomenclature-commands > button {
        margin: 5px;
        flex: 1;
        flex-grow: 1;
        flex-basis: 150px;
        min-width: 150px;
    }

div.items-nomenclature-collection,
div.partners-nomenclature-collection,
div.locations-nomenclature-collection,
div.users-nomenclature-collection,
div.minors-nomenclature-collection {
    flex: 1;
    flex-basis: 500px;
    min-width: 500px;
    margin-top: 10px;
    width: 100%;
}

div.operation-collection {
    /*flex: 1;
    flex-basis: 500px;*/
    min-width: 500px;
    margin-top: 10px;
    /*width: calc(100% - 80px);*/
}

form.items-nomenclature-item-edit,
form.items-nomenclature-group-edit,
form.partners-nomenclature-partner-edit,
form.partners-nomenclature-group-edit,
form.locations-nomenclature-location-edit,
form.locations-nomenclature-group-edit,
form.users-nomenclature-user-edit,
form.users-nomenclature-group-edit {
    width: 100%;
    height: 100%;
}

div.items-nomenclature-item-edit,
div.items-nomenclature-group-edit,
div.partners-nomenclature-partner-edit,
div.partners-nomenclature-group-edit,
div.partners-nomenclature-partner-edit-significant-date,
div.locations-nomenclature-location-edit,
div.locations-nomenclature-group-edit,
div.users-nomenclature-user-edit,
div.users-nomenclature-group-edit {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 5px;
}

div.items-nomenclature-item-edit-component-container,
div.items-nomenclature-group-edit-component-container,
div.partners-nomenclature-partner-edit-component-container,
div.partners-nomenclature-group-edit-component-container,
div.locations-nomenclature-location-edit-component-container,
div.locations-nomenclature-group-edit-component-container,
div.users-nomenclature-user-edit-component-container,
div.users-nomenclature-group-edit-component-container,
div.operation-header-actor-container {
    display: flex;
    /*flex: 1;*/
    flex-wrap: wrap;
    flex-basis: 320px;
    /*max-width: 340px;*/
}

div.items-nomenclature-item-edit-component-container-grid {
    display: flex;
    flex-wrap: wrap;
    flex-basis: 700px;
}

div.partners-nomenclature-partner-edit-component-container-significant-date {
    display: grid;
    width: 100%;
}

div.partners-nomenclature-partner-edit-component-calendar {
    display: flex;
    max-width: 200px;
    margin-right: 10px;
}

div.items-nomenclature-item-edit-component-container-price-groups {
    display: flex;
    flex-wrap: wrap;
    flex-basis: 100%;
}

div.icon-container {
    display: inline-flex;
    float: left;
}

img.icon-nomenclature {
    max-height: 90px;
    vertical-align: central;
    align-self: center;
    margin-right: 5px;
}

div.icon-container-commands {
    align-self: center;
    display: grid;
}

label.button-imitation-image-load,
button.image-load {
    background-color: var(--rz-primary);
    color: var(--rz-on-primary);
    border: none;
    border-radius: var(--rz-button-border-radius);
    outline: none;
    background-position: center;
    transition: background-size 0.8s, opacity 0.8s;
    cursor: pointer;
    font-size: 12px;
    width: 100%;
    padding: 5px;
    margin: 3px;
}

label.items-nomenclature-item-edit-component,
label.items-nomenclature-group-edit-component,
label.partners-nomenclature-partner-edit-component,
label.partners-nomenclature-group-edit-component,
label.locations-nomenclature-location-edit-component,
label.locations-nomenclature-group-edit-component,
label.users-nomenclature-user-edit-component,
label.users-nomenclature-group-edit-component,
label.operation-header-actor {
    flex: 1;
    flex-grow: 2;
    min-width: 90px;
    text-align: right;
    align-self: center;
    margin-right: 10px;
}


input.items-nomenclature-item-edit-component,
div.items-nomenclature-item-edit-component,
input.items-nomenclature-group-edit-component,
div.items-nomenclature-group-edit-component,
input.partners-nomenclature-partner-edit-component,
div.partners-nomenclature-partner-edit-component,
input.partners-nomenclature-group-edit-component,
div.partners-nomenclature-group-edit-component,
input.locations-nomenclature-location-edit-component,
div.locations-nomenclature-location-edit-component,
input.locations-nomenclature-group-edit-component,
div.locations-nomenclature-group-edit-component,
input.users-nomenclature-user-edit-component,
div.users-nomenclature-user-edit-component,
input.users-nomenclature-group-edit-component,
div.users-nomenclature-group-edit-component {
    flex: 1;
    flex-grow: 3;
    min-width: 150px;
    width: 100%;
    align-self: center;
}

/*input.items-nomenclature-item-edit-component-price-group-name {
    display: flex;
    flex-wrap: wrap;
    flex-basis: 300px;
    margin: 10px 0;
}

button.items-nomenclature-item-edit-component-price-group-name-ok {
    margin: 10px 0;
}*/

label.items-nomenclature-item-edit-grid-component {
    flex: 1;
    flex-grow: 1;
    min-width: 90px;
    text-align: right;
    align-self: center;
    margin-right: 10px;
}

textarea.items-nomenclature-item-edit-grid-component {
    flex-grow: 3;
    resize: vertical;
}

button.items-nomenclature-item-edit-component {
    margin: 10px 0;
}

/*button.items-nomenclature-item-edit-component-price-group-new-name {
    margin: 10px 10px 10px 0;
}*/

button.partners_nomenclature-partner-edit-component-calendar {
    margin: 10px 0;
    float: left;
}

div.nomenclatures-actions-container,
div.operation-actions-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

button.nomenclatures-actions-component,
button.operation-actions-component {
    margin: 25px;
    min-width: 200px;
}

li.rz-dropdown-item {
    text-align: left !important;
}

div.validation-message {
    flex: inherit;
    text-align: right;
}

.invalid {
    border-color: red !important;
}

.price-groups-data-grid,
.vat-groups-data-grid,
.currencies-data-grid,
.attributes-data-grid {
    --rz-grid-header-background-color: #4073ff;
    --rz-grid-frozen-cell-background-color: #4073ff;
    --rz-grid-header-color: white;
    /*--rz-grid-header-font-size: 12px;*/
    --rz-grid-stripe-odd-background-color: #EEEEEE;
    --rz-grid-stripe-background-color: #FFFFFF;
    /* --rz-grid-cell-font-size: 14px;*/
    --rz-grid-cell-padding: 0px 5px;
    /*width: calc(100vw - 20px);*/
}

@media only screen and (max-width: 1200px) {
    aside.items-nomenclature-groups,
    aside.partners-nomenclature-groups,
    aside.locations-nomenclature-groups,
    aside.users-nomenclature-groups {
        display: none;
    }

    div.items-nomenclature-groups,
    div.partners-nomenclature-groups,
    div.locations-nomenclature-groups,
    div.users-nomenclature-groups {
        display: block;
        max-height: 300px;
    }

    div.items-nomenclature-commands,
    div.partners-nomenclature-commands,
    div.locations-nomenclature-commands,
    div.users-nomenclature-commands {
        min-width: 200px;
    }
}

/*@media only screen and (max-width: 800px){
    div.items-nomenclature-item-edit,
    div.items-nomenclature-group-edit,
    div.users-nomenclature-user-edit,
    div.users-nomenclature-group-edit {
        width: 100%;
    }
}*/

@media only screen and (max-width: 635px) {
    div.items-nomenclature-item-edit-component > label,
    div.locations-nomenclature-location-edit-component > label,
    div.users-nomenclature-user-edit-component > label {
        text-align: left;
    }
}

div.room-content-container {
    flex: 1;
    float: right;
    /* min-width: 80%;
    width: auto;*/
    height: 100%; /* Make the child element take the full height of the parent */
    background-color: white;
    display: table;
    padding: 20px 40px;
}

div.warehouse-pro-content {
    /*flex: 1;
    float: right;*/
    /* min-width: 80%;
    width: auto;*/
    /*height: 100%;*/ /* Make the child element take the full height of the parent */
    /*background-color: white;*/
    display: contents;
    /*padding: 20px 40px;*/
}

div.main-layout-profile-locked-container {
    max-width: 500px;
    position: relative;
    top: 50%;
    left: 50%;
    background-color: #e65656;
    color: #ffffff;
    font-family: 'Open Sans', Arial, sans-serif;
    border-radius: 15px;
    transform: translate(-50%, -50%);
}

div.main-layout-profile-locked-content {
    margin-left: 165px;
}

div.password-strength-visualizer-container > div {
    height: 3px;
    background-color: lightgrey;
    float: left;
    width: 24%;
    margin: 0 1px;
}

div.password-weak > div:first-child {
    background-color: #EB1010;
}

div.password-medium > div:first-child,
div.password-medium > div:nth-child(2) {
    background-color: #FFAC00;
}

div.password-strong > div:first-child,
div.password-strong > div:nth-child(2),
div.password-strong > div:nth-child(3) {
    background-color: #9BC158;
}

div.password-verystrong > div {
    background-color: #02B502;
}

div.password-strength-container {
    display: inline-block;
    width: 100%;
    margin-top: 5px;
}

.rz-tooltip-content {
    max-width: 250px;
    white-space: normal !important;
    background-color: white !important;
    color: black !important;
    text-align: left;
}

/*Links*/
a.main-layout-header-link {
    margin: 2px;
}

/*Images*/
img.main-layout-header-company-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 30%;
    content: url(https://ecommercebg.com/app/uploads/2019/04/Microinvest_logo.png);
}

img.main-layout-profile-locked-icon {
    content: url(https://api.icons8.com/download/470f346b94b35f372dcd2165be630167d6519272/Color/PNG/144/Very_Basic/lock-144.png);
    float: left;
    width: 144px;
}

/*Forms*/
form.login-form,
form.signup-form,
form.user-room-form,
form.company-room-form {
    border: 3px solid #f1f1f1;
    padding: 16px;
    background-color: white;
}

form.forget-password-form, form.reset-password-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 25px;
    min-width: 350px;
}

/*Inputs*/
input.login-input,
input.signup-input,
input.forget-password-input,
input.user-room-input,
input.company-room-input,
input.reset-password-input {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

input.content-numeric {
    text-align: right;
}
/*Selects*/
select.company-room-select {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/*Spans*/
span.login-container-footer-span {
    float: right;
    vertical-align: middle;
}

/*Labels*/
label.login-label,
label.signup-label,
label.forget-password-label,
label.user-room-label,
label.company-room-label,
label.reset-password-label {
    display: inline-block;
    text-align: right;
    float: left;
}

label.login-container-footer-label {
    vertical-align: middle;
}

label.password-strength-label {
    color: lightgrey;
    float: inline-end;
    margin-right: 3px;
}

label.password-weak {
    color: #EB1010;
}

label.password-medium {
    color: #FFAC00;
}

label.password-strong {
    color: #9BC158;
}

label.password-verystrong {
    color: #02B502;
}

i.password-strength-icon {
    float: inline-end;
}

/*Buttons*/
button.login-tab-button {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    min-width: 200px;
    float: left;
    cursor: pointer;
    padding: 10px;
    transition: 0.3s;
    color: black;
    font-size: 25px;
    font-weight: 900;
}

    button.login-tab-button:hover {
        background-color: #ddd;
    }

button.login-tab-button-active {
    background-color: #ccc;
}

button.room-menu-button,
button.warehouse-pro-menu-item {
    width: 200px;
    height: 50px;
    display: block;
    background-color: white;
    margin: 5px;
}

button.warehouse-pro-menu-item-active {
    margin: 5px 5px 0px 5px;
    background-color: #555;
}

button.warehouse-pro-menu-item:hover {
    background-color: #777;
}

button.warehouse-pro-submenu-item {
    height: 50px;
    display: block;
    background-color: white;
}

    button.warehouse-pro-submenu-item:hover {
        background-color: #777;
    }

button.warehouse-pro-submenu-item-active {
    background-color: antiquewhite;
}

button.login-button-submit,
button.signup-button-submit,
button.user-room-button-submit,
button.company-room-button-submit,
button.forget-password-button-submit,
button.reset-password-button-submit {
    background-color: #04AA6D;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

    button.login-button-submit:hover,
    button.user-room-button-submit:hover,
    button.company-room-button-submit:hover,
    button.forget-password-button-submit:hover,
    button.reset-password-button-submit:hover {
        opacity: 0.8;
    }

button.employee-owner-choice {
    width: 100%;
    background-color: #04AA6D;
    color: white;
}

button.employees-refresh {
    width: 200px;
    height: 50px;
    float: inline-end;
    margin-top: 10px;
    background-color: #04AA6D;
    color: white;
    border-radius: 4px;
    border-color: white;
    text-align: center;
}
/*Tables*/
table.employees-table {
    width: 100%;
    border: 1px solid;
}

    table.employees-table th {
        border: 1px solid;
    }

    table.employees-table td {
        border: 1px solid;
        text-align: left;
    }

tr.employ-in-process {
    color: gray;
}

/*Waiting visualizer*/
div.clock-loader-container {
    background-color: white;
    opacity: 0.5;
    display: flex;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

div.clock-loader {
    --c1: #673b14;
    --c2: #f8b13b;
    width: 40px;
    height: 80px;
    border-top: 4px solid var(--c1);
    border-bottom: 4px solid var(--c1);
    background: linear-gradient(90deg, var(--c1) 2px, var(--c2) 0 5px,var(--c1) 0) 50%/7px 8px no-repeat;
    display: grid;
    overflow: hidden;
    animation: l5-0 2s infinite linear;
}

    div.clock-loader::before,
    div.clock-loader::after {
        content: "";
        grid-area: 1/1;
        width: 75%;
        height: calc(50% - 4px);
        margin: 0 auto;
        border: 2px solid var(--c1);
        border-top: 0;
        box-sizing: content-box;
        border-radius: 0 0 40% 40%;
        -webkit-mask: linear-gradient(#000 0 0) bottom/4px 2px no-repeat, linear-gradient(#000 0 0);
        -webkit-mask-composite: destination-out;
        mask-composite: exclude;
        background: linear-gradient(var(--d,0deg),var(--c2) 50%,#0000 0) bottom /100% 205%, linear-gradient(var(--c2) 0 0) center/0 100%;
        background-repeat: no-repeat;
        animation: inherit;
        animation-name: l5-1;
    }

    div.clock-loader::after {
        transform-origin: 50% calc(100% + 2px);
        transform: scaleY(-1);
        --s: 3px;
        --d: 180deg;
    }

@keyframes l5-0 {
    80% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(0.5turn)
    }
}

@keyframes l5-1 {
    10%,70% {
        background-size: 100% 205%,var(--s,0) 100%
    }

    70%,100% {
        background-position: top,center
    }
}
