
/* Geral para steps */

@scope (.stepper_content_responsive.convenio) {

    h2 {
        margin-top: 1rem;
        margin-bottom: 2rem;
        font-size: 1.2rem;
        font-weight: bold;
        color: rgb(41, 89, 176, 1) !important;
    }

    .dropdown {
        width: 80%;
    }

}

.basic_card {
    margin-top: 1rem;
    width: 80%;
    padding: 0.5rem;
    max-height: 16rem;
    overflow-y: auto;
}

.basic_card h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-left: 5px;
    margin-bottom: 0.7rem;
}


/* ===== Card com titulo ===== */

/* ====== Base do card ====== */
.card_with_title {
    position: relative;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card_with_title.first {
    margin-top: 10px;
}


/* ====== Título na borda ====== */
.card_with_title > .card_with_title-title {
    position: absolute;
    top: -12px;
    left: 15px;
    background-color: #fff;
    padding: 0 10px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    transition: color 0.2s;
}

/* ====== Conteúdo interno ====== */
.card_with_title > .card_with_title-content {
    margin-top: 5px;
}

/* ====== Destaque automático ao focar em elementos internos ======
   Quando qualquer input, textarea, select ou elemento com foco
   estiver dentro do card, aplica o estilo de destaque */
.card_with_title:focus-within {
    border-color: rgb(41, 89, 176, 1);
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.3);
}

.card_with_title:focus-within > .card_with_title-title {
    color: rgb(41, 89, 176, 1);
}



/* Promotor */

.info_area {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

@scope (.info_area) {
    .input-group-text {
        width: 15%;
    }
}


/* Rubricas */

.rubricas_form {
    padding: 0.5rem;
    display: flex;
    flex-direction: row;
}

.rubricas_form > .form-label {
    display: flex;
    width: 20%;
    font-weight: bold;
    align-items: center;
    margin: 0;
}

.rubricas_form > .form-label label {
    margin: 0;
}

.rubricas_form > .form-label.inner label {
    margin-left: 30px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.rubricas_form > .form-field {
    width: 50%;
}

.rubricas_form .mandatory {
    color: red;
    margin-left: 3px;
    vertical-align: top;
}


/* Enviar */

.btn-enviar {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 22px;
    border-radius: 10px;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.btn-enviar:hover {
    background: linear-gradient(90deg, #218838 0%, #17a589 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.btn-enviar:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}



/* MOBILE */

@media (max-width: 768px) {

    .basic_card {
        width: 100%;
    }

    .info_area {
        overflow-y: auto;
    }

    @scope (.info_area) {
        .input-group-text {
            width: 35%;
        }
    }

    .mantine-Modal-root[data-type="hundred_pct_in_mobile"] {
        --modal-size: 100% !important;
    }

    .rubricas_form {
        flex-direction: column;
    }

    .rubricas_form > .form-label {
        width: 100%;
    }

    .rubricas_form > .form-label label {
        margin-bottom: 10px;
    }

    .rubricas_form > .form-label.inner label {
        margin-left: 0px;
    }

    .rubricas_form > .form-field {
        width: 100%;
    }

}
