/*
==========
Style for sale.
==========
*/

#sale .container__input__sale{
    width: 100%;
    height: 40px;
    min-height: 40px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    background-color: var(--white-color);
    border: 1px solid var(--dark-color);
    border-radius: 5px;
    color: var(--dark-color);
    position: relative;
}

#sale .container__input__sale .icon{
    width: 20px;
    height: 20px;
}

#sale .container__input__sale .icon svg{
    width: 100%;
    height: 100%;
    fill: var(--dark-color);
}

#sale .container__input__sale .input__text{
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    background: none;
    color: var(--dark-color);
}

/*
==========
Styles for columns in form buy.
==========
*/

#sale .container__inputs__sale{
    width: 100%;
    height: auto;
    display: flex;
    gap: 1em;
}
#sale .container__inputs__sale .container__input__sale{
    width: 50%;
    height: 40px;
    min-height: 40px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    background-color: var(--white-color);
    border: 1px solid var(--dark-color);
    border-radius: 5px;
    color: var(--dark-color);
}

#sale .container__inputs__sale .container__input__sale .icon{
    width: 20px;
    height: 20px;
}

#sale .container__inputs__sale .container__input__sale .icon svg{
    width: 100%;
    height: 100%;
    fill: var(--dark-color);
}

#sale .container__inputs__sale .container__input__sale .input__text{
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    background: none;
    color: var(--dark-color);
}

#sale .view__content__data__sale .line{
    width: 100%;
    height: 0;
    border-top: 1px solid var(--dark-color);
    margin-top: 1em;
    margin-bottom: 1em;
}

#sale .view__data__container .view__content__data__sale{
    width: calc(100% - 1em);
    height: auto;
    display: flex;
    flex-direction: column;
    gap: .3em;
}

#sale .data__container{
    width: 100%;
    height: auto;
    display: flex;
    gap: 1em;
}

.view__content__data__sale__summary{
    width: 100%;
    height: auto;
    display: flex;
    gap: 1em;
    justify-content: flex-end;
}

#total-pay-sale{
    color: var(--green-color);
}

/*
==========
Autocomplete client.
==========
*/

.suggestions{
    display: none;
    position: absolute;
    top: calc(100% + 5px); 
    left: 0;
    width: 100%;
    background: var(--white-color);
    border: 1px solid var(--dark-color);
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    max-height: 300px; 
    overflow-y: auto;  
    z-index: 1000;
}

.suggestions div{
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--silver-color);
}

.suggestions div:last-child{
    border-bottom: none;
}

.suggestions div:hover{
    background: var(--silver-color);
}