#viewItemSection {
    display: none;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    overflow: auto;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 5;
}


.viewDischargeSection__back {
    position: absolute;
    left: 0;
    top: 0;
    margin: 20px 0px 0px 20px;
    background: transparent;
    border: transparent;
    text-transform: capitalize;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: 500;
    font-size: 20px;
    transition: 0.2s;
    z-index: 4;
}

.viewDischargeSection__back ion-icon {
    transition: 0.2s;
}

.viewDischargeSection__back:hover {
    text-decoration: underline;
}

.viewDischargeSection__back:hover ion-icon {
    transform: translateX(-5px);
}

.squares {
    width: 390px;
    height: 100%;
    overflow: hidden;
    position: fixed;
}

.square--1 {
    width: 100%;
    height: 100%;
    rotate: 30deg;
    background: var(--green);
    position: absolute;
    top: 0;
    left: 0;
    margin-top: -51%;
    margin-left: -50%;
    z-index: 3;
}

.square--2 {
    width: 100%;
    height: 200%;
    rotate: 10deg;
    background: rgba(231, 231, 231, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    margin-top: -51%;
    margin-left: -51%;
    z-index: 1;
}

.square--3 {
    width: 100%;
    height: 200%;
    rotate: 327deg;
    background: var(--orange);
    position: absolute;
    bottom: 0;
    left: 0;
    margin-bottom: -153%;
    margin-left: -51%;
    z-index: 2;
}

.content {
    width: 100%;
    min-height: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 0px 60px 0px;
    top: 0;
    left: 0;
}


.itemSection__h2 {
    margin-bottom: 20px;
}
.itemSection__img {
    height: 150px;
}
.itemSection__itemName {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin: 20px 0px 10px 0px;
}
.itemSection__h3 {
    font-size: 23px;
    font-weight: 600;
    margin: 20px 0px 10px 0px;
}
.itemSection__p {
    font-size: 17px;
    font-weight: 500;
    margin: 5px 0px;
}
.itemSection__div {
    margin: 20px 0px;
    display: flex;
    align-items: center;
}
.itemSection__button {
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px 20px;
    border: solid 2px var(--clr);
    color: var(--clr);
    background: transparent;
    padding: 0px;
    width: 45px;
    font-size: 22px;
    aspect-ratio: 1/1;
    position: relative;
    transition: 0.2s;
}

.itemSection__button::after {
    position: absolute;
    font-size: 16px;
    white-space: nowrap;
    background: var(--clr);
    color: #fff;
    padding: 5px 15px;
    border-radius: 10px;
    transform: translateY(135%);
}

.itemSection__button:hover {
    color: #fff;
    background: var(--clr);
}


.itemSection__button.button--remove:hover::after {
    content: "Excluir item";
}

.itemSection__button.button--edit:hover:after {
    content: "Editar item";
}

#removeItemBackground {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    background: #000000a9;
    z-index: 6;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: 0.2s;
}

#removeItemBackground.active {
    opacity: 1;
}

.removeItem__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    padding: 40px 80px;
    max-width: 60%;
}
#removeItemQuestion {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 40px;
}
.removeItem__div {
    display: flex;
    align-items: center;
    margin: 0px;
    padding: 0px;
    justify-content: space-between;
}
#removeItemCancel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 20px;
    background: var(--black);
    border: solid 2px transparent;
    outline-width: 0px;
    border-radius: 10px;
    font-size: 22px;
    color: #fff;
    transition: 0.2s;
}
#removeItemCancel:hover {
    transform: scale(1.1);
}
#removeItemConfirm {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 20px;
    background: transparent;
    border: solid 2px #f00;
    outline-width: 0px;
    border-radius: 10px;
    font-size: 22px;
    color: #f00;
    transition: 0.2s;
}

#removeItemConfirm:hover {
    background: #f00;
    color: #fff;
    border: solid 2px transparent;
}

#updateItemSection {
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #0AD4B5 30.72%, rgba(255, 255, 255, 0.00) 30.73%), linear-gradient(45deg, #FF9700 23.23%, rgba(255, 255, 255, 0.00) 23.31%), linear-gradient(110deg, #F1F1F1 32.51%, #FFF 32.56%);
    z-index: 6;
    display: none;
    opacity: 0;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 40px 0px;
    transition: 0.2s;
}

#updateItemSection.active {
    opacity: 1;
}

#updateItemSection .main__form {
    height: auto;
}

#inStock:disabled {
    background: var(--gray);
}

#updateItemSection .main__form .form__h2 {
    margin-bottom: 20px;
}

.flex-div {
    display: flex;
    align-items: center;
}

.form__button {
    border: solid 2px transparent;
    transition: 0.2s;
}

#cancelUpdateItem.form__button {
    background: var(--black);
    margin-right: 40px;
}

#cancelUpdateItem.form__button:hover {
    transform: scale(1.05);
}

#updateItem.form__button:hover {
    border: solid 2px var(--green);
    background: transparent;
    color: var(--green);
}

#updateItem.form__button.loading:hover {
    border: solid 2px transparent;
    background: transparent;
    color: var(--green);
}

@media only screen and (max-width: 500px) {
    .squares {
        display: none;
    }

    .content {
        width: 100%;
        padding: 70px 20px 40px 20px;
    }
    .itemSection__p {
        text-align: center;
        margin: 10px 0px;
        width: 100%;
    }
    .flex-div {
        flex-direction: column-reverse;
    }
    #cancelUpdateItem.form__button {
        margin: 20px 0px 20px 0px;
    }
    #updateItem.form__button:hover {
        border: transparent;
        background: var(--green);
        color: var(--white);
        transform: scale(1.1);
    }
    .removeItem__card {
        max-width: none;
        width: 90vw;
        padding: 20px;
    }
    #removeItemQuestion {
        font-size: 16px;
        margin-bottom: 10px;
    }
    #removeItemCancel {
        font-size: 16px;
    }
    #removeItemConfirm {
        font-size: 16px;
    }
    .viewDischargeSection__back {
        color: var(--black);
    }
}