/* CUSTOM CSS - MODAL */


.modal-background-secondary {
    background-color: var(--modalSecondaryBackgroundColor) !important;
}

div.custom-modal-background {
    position: fixed;
    top: 0px;
    left: 0px;
    height: 100vh;
    width: 100vw;
    background-color: var(--defaultBackgroundColor);
    visibility: hidden;
    opacity: 0;
    transition: 0.4s;
    z-index: 9995;
}

div.custom-modal-background.background-black {
    background-color: #000;
}

div.custom-modal-background.background-secondary {
    background-color: var(--modalSecondaryBackgroundColor);
}



div.custom-modal-background.secondary {
    z-index: 9997;
}


div.custom-modal-background.active {
    transition: 0.4s;
    opacity: 0.5;
    visibility: visible;
}


div.custom-modal {
    position: fixed;
    top: 5%;
    left: 30%;
    width: 40%;
    max-height: calc(100% - 10%);
    overflow-y: auto;
    background-color: var(--defaultBackgroundColor);
    border-radius: var(--defaultBorderRadius);
    z-index: 9996;
    box-shadow: var(--defaultBoxShadow);
    visibility: hidden;
    opacity: 0;
    transition: 0.4s;
    transform: scale(0);
}

.modal-adicionar-rateio {
    max-width: 90%;
    max-height: 100%;

}

div.modal_servicos,
div.modal_produtos,
div.modal_estornos,
div.modal_transferencias {
    padding: 5px 10px 5px 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;

}




.modal_servico {
    height: auto;
    background: white;
    border-radius: 8px;
    max-width: 90%;
    max-height: 100%;
    overflow: auto;
}



div.custom-modal.full-height {
    height: calc(100% - 10%);
}

div.custom-modal.background-secondary {
    background-color: var(--modalSecondaryBackgroundColor);
}


div.custom-modal.secondary {
    z-index: 9998;
}

div.custom-modal.sm {
    left: 35%;
    width: 30%;
}


div.custom-modal.md {
    left: 20%;
    width: 60%;
}


div.custom-modal.lg {
    left: 10%;
    width: 80%;
}

div.custom-modal.active {
    visibility: visible;
    opacity: 1;
    transition: 0.4s;
    transform: scale(1);
}


/* div.custom-modal.centralized {
    max-width: 960px;
    left: 0;
    margin: 0px 50%;
    transform: scale(1) translateX(-50%);
} */


div.custom-modal>span.title {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px;
    color: var(--modalColor);
}

div.custom-modal>span.title.title-border {
    border-bottom: 1px solid var(--dividerColor);
}

div.custom-modal.title-capitalized>span.title>span.title-text {
    text-transform: capitalize;
}


div.custom-modal i.icon.custommodal-close {
    width: 24px;
    height: 24px;
    font-size: 14px;
    color: var(--modalColor);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--defaultBorderRadius);
    transition: 0.2s;
    opacity: 0.6;
    cursor: pointer;
    padding: 4px;
    padding-top: 5px;
}

div.custom-modal span.icon.custommodal-close {
    font-size: 24px;
    color: var(--primaryTextColor);
    transition: 0.2s;
    opacity: 0.6;
    cursor: pointer;
}


div.custom-modal i.icon.custommodal-close:hover,
div.custom-modal span.icon.custommodal-close:hover {
    transition: 0.2s;
    opacity: 1;
    transform: scale(1.2);
}


div.custom-modal>div.content-produto,
div.custom-modal>div.content-estorno,
div.custom-modal>div.content-servico,
div.custom-modal>div.content-transferencias {
    width: 100%;
    height: 100%;
    padding: 12px 24px 12px 24px;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

div.custom-modal>div.content {
    width: 100%;
    padding: 0px 24px 12px 24px;
    overflow-x: hidden;
}

.col-12.btn-add {
    padding: 12px 0px;
    text-align: right;
}


#modal_pagamentos {
    top: 0;
    padding: 15px;
    width: 440px;
    height: 100%;
    max-height: 100%;
    border-radius: var(--defaultBorderRadius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

div.custom-modal>div.footer-lanca {
    justify-content: stretch;
    width: 100%;
    padding: 24px;
    margin: 0px;
    padding: 0px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-top: 1px solid #ccc;
    /* opcional: separador */
}


div.custom-modal>div.content>span.item,
div.custom-modal>div.footer>span.item {
    width: calc(100% - 24px);
    height: 48px;
    margin: 4px 12px;
    border-radius: var(--defaultBorderRadius);
    padding: 0px 16px;
    font-size: 16px;
    color: var(--modalColor);
    transition: 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

div.custom-modal>div.content>span.item.pulse,
div.custom-modal>div.footer>span.item.pulse {
    background-color: var(--modalContentItemPulseBackgroundColor);
}

div.custom-modal>div.content>span.item>span.indicator,
div.custom-modal>div.footer>span.item>span.indicator {
    position: absolute;
    right: 16px;
}


div.custom-modal.right-align>div.footer>span.item,
div.custom-modal.left-align>div.footer>span.item {
    margin: 0px;
}


div.custom-modal>div.content>span.item>i.icon,
div.custom-modal>div.footer>span.item>i.icon {
    font-size: 16px;
    width: 24px;
    color: var(--modalColor);
    margin-right: 12px;
    opacity: 0.8;
    transition: 0.2s;
}


div.custom-modal>div.content>span.item>span.icon,
div.custom-modal>div.footer>span.item>span.icon {
    font-size: 24px;
    width: 24px;
    color: var(--modalColor);
    margin-right: 12px;
    opacity: 0.8;
    transition: 0.2s;
}


div.custom-modal>div.content>span.item:hover,
div.custom-modal>div.footer>span.item:hover {
    background-color: var(--modalContentItemBackgroundColorHover);
    transition: 0.2s;
}


div.custom-modal>div.content span.divider {
    width: calc(100% - 24px);
    height: 1px;
    margin: 12px;
    background-color: var(--modalDividerBackgroundColor);
    display: block;
}

div.custom-modal>div.content span.divider.full {
    width: 100%;
    margin-left: 0px;
    margin-right: 0px;
}

div.custom-modal>div.footer {
    width: 100%;
    padding: 12px 24px;
    display: flex;
    align-items: center;
}

div.custom-modal>div.footer.footer-border {
    border-top: 1px solid var(--dividerColor);
}


div.custom-modal>div.footer.auto-adjust-items {
    display: inline-flex;
}


div.custom-modal>div.footer>div.form-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
}


div.custom-modal>div.footer>div.form-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: var(--defaultBorderRadius);
    height: 42px;
}


div.custom-modal>div.footer>div.form-actions .form-action-btn-group {
    display: flex;
    gap: 12px;
}


/* div.custom-modal > div.footer.auto-adjust-items button {
    width: 100%;
}


div.custom-modal > div.footer button {
    border: none;
    border-radius: var(--defaultBorderRadius);
    padding: 8px 14px 8px 10px;
    text-transform: uppercase;
    height: 100%;
    font-size: 13px;
    color: rgba(255, 255, 255, 1);
    transition: 0.4s;
    cursor: pointer;
    opacity: 0.8;
    margin: 0px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
}


div.custom-modal > div.footer button > i.icon {
    opacity: 1;
    transition: 0.4s;
    font-size: 10px;
    margin-right: 8px;
    margin-top: 3px;
}


div.custom-modal > div.footer button:hover,
div.custom-modal > div.footer button:focus {
    opacity: 1;
    transition: 0.4s;
}


div.custom-modal > div.footer button:hover > i.icon,
div.custom-modal > div.footer button:focus > i.icon {
    opacity: 0.9;
    transition: 0.4s;
}


div.custom-modal > div.footer button:disabled {
    background-color: rgba(0, 0, 0, 0.3) !important;
    cursor: not-allowed;
    transition: 0.2s;
}


div.custom-modal > div.footer button:disabled > i.icon {
    opacity: 1;
} */



/* RESPONSIVIDADE */
/* TELA MEDIA */
@media only screen and (max-width: 993px) {
    div.custom-modal {
        width: 70%;
        left: 15%;
    }


    div.custom-modal.sm {
        width: 70%;
        left: 15%;
    }


    div.custom-modal.md {
        width: 80%;
        left: 10%;
    }


    div.custom-modal.lg {
        width: 90%;
        left: 5%;
    }

    .modal_produtos .footer {
        position: sticky;
        bottom: 0;
        background-color: var(--defaultBackgroundColor);
        /* Ajuste conforme o tema */
        padding: 16px;
        z-index: 10;
        border-top: 1px solid #ddd;
    }
}

/* TELA PEQUENA */
@media only screen and (max-width: 600px) {

    div.custom-modal,
    div.custom-modal.sm,
    div.custom-modal.md,
    div.custom-modal.lg {
        width: 90%;
        left: 5%;
    }


    div.custom-modal>div.footer button {
        padding: 8px 12px 8px 12px;
    }


    div.custom-modal>div.footer button>i.icon {
        display: none;
    }
}




/* MODAL ALINHADO LATERALMENTE */
div.custom-modal.right-align,
div.custom-modal.left-align {
    text-align: left;
    top: 0px;
    width: 440px;
    height: 100%;
    max-height: 100%;
    border-radius: var(--defaultBorderRadius);
    overflow-y: hidden;
    transform: none;
}


div.custom-modal.md.right-align,
div.custom-modal.md.left-align {
    width: 540px;
    max-width: 70%;
}


div.custom-modal.lg.right-align,
div.custom-modal.lg.left-align {
    width: 720px;
    max-width: 80%;
}


div.custom-modal.right-align {
    left: unset;
    right: -100% !important;
}


div.custom-modal.left-align {
    left: -100% !important;
    right: unset;
}


div.custom-modal.right-align.active {
    right: 0px !important;
    transition: 0.4s;
}


div.custom-modal.left-align.active {
    left: 0px !important;
    transition: 0.4s;
}


div.custom-modal.full-height>div.content,
div.custom-modal.right-align>div.content,
div.custom-modal.left-align>div.content {
    height: calc(100% - 76px - 70px);
}

div.custom-modal.full-height>div.content.without-footer,
div.custom-modal.right-align>div.content.without-footer,
div.custom-modal.left-align>div.content.without-footer {
    height: calc(100% - 76px);
}


div.custom-modal.right-align>div.footer,
div.custom-modal.left-align>div.footer {
    height: 60px;
}

div.custom-modal>div.content::-webkit-scrollbar-track {
    background-color: var(--scrollbarBackgroundColor);
}

div.custom-modal>div.content::-webkit-scrollbar {
    height: 10px;
    width: 10px;
    background: var(--scrollbarBackgroundColor);
}

div.custom-modal>div.content::-webkit-scrollbar-thumb {
    background: var(--scrollbarThumbBackgroundColor);
}



/* RESPONSIVIDADE */
/* TELA MEDIA */
@media only screen and (max-width: 1440px) {

    div.custom-modal.right-align,
    div.custom-modal.left-align {
        width: 360px;
    }


    div.custom-modal.md.right-align,
    div.custom-modal.md.left-align {
        width: 70%;
    }


    div.custom-modal.lg.right-align,
    div.custom-modal.lg.left-align {
        width: 80%;
    }
}

/* TELA PEQUENA */
@media only screen and (max-width: 540px) {
    div.custom-modal.right-align,
    div.custom-modal.left-align,

    div.custom-modal.md.right-align,
    div.custom-modal.md.left-align,

    div.custom-modal.lg.right-align,
    div.custom-modal.lg.left-align {
        width: 90%;
    }
}





/* MODAL ALINHADO NO RODAPÉ */
div.custom-modal.bottom-align {
    left: 0;
    top: unset !important;
    bottom: -100%;
    width: 100%;
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}


div.custom-modal.bottom-align.active {
    transition: 0.4s;
    bottom: 0;
}


/* div.custom-modal.bottom-align > div.content {
    max-height: calc(70vh - 44px - 46px);
}


div.custom-modal.bottom-align > div.content.without-footer {
    max-height: calc(70vh - 44px);
} */



/* RESPONSIVIDADE */
/* TELA MEDIA */
@media only screen and (max-width: 1440px) {
    div.custom-modal.bottom {
        width: 100%;
    }
}

/* TELA PEQUENA */
@media only screen and (max-width: 540px) {
    div.custom-modal.bottom {
        width: 100%;
    }
}






/* MODAL COM IMAGEM DE PERFIL E DO EMPREENDIMENTO */
div.custom-modal.with-picturebox i.icon.custommodal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 99;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6) !important;
}


div.custom-modal.with-picturebox>div.content {
    padding-top: 60px;
}


div.custom-modal.with-picturebox.full-height>div.content,
div.custom-modal.with-picturebox.right-align>div.content,
div.custom-modal.with-picturebox.left-align>div.content {
    height: calc(100% - 140px - 58px);
}


div.custom-modal.with-picturebox>div.picturebox {
    position: relative;
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--primaryColor);
    box-shadow: var(--defaultBoxShadow);
}

div.custom-modal.with-picturebox>div.picturebox>div.picture {
    width: 140px;
    height: 140px;
    position: absolute;
    left: calc(50% - 70px);
    top: 40px;
    background-color: var(--modalSecondaryBackgroundColor);
    border: 3px solid var(--modalSecondaryBackgroundColor);
    box-shadow: var(--defaultBoxShadow);
    border-radius: var(--defaultBorderRadius);
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: 600;
    padding-top: 1px;
    color: var(--headerColor);
    background-position: center;
    background-size: cover;
    z-index: 98;
}