/**
 * Modais de formulário — largura uniforme (referência: Ocorrências / Responder ao incidente).
 * Carregar por último no index.html para vencer regras globais (ex. agendamentos-styles).
 */
.modal-content.modal-oc-form {
    width: min(96vw, 1100px);
    max-width: min(96vw, 1100px);
    max-height: min(92vh, 920px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content.modal-oc-form .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Confirmações compactas mantêm largura reduzida */
.modal-content.modal-sm {
    width: min(92vw, 450px);
    max-width: min(92vw, 450px);
    max-height: min(90vh, 520px);
}

@media (max-width: 768px) {
    .modal-content.modal-oc-form {
        width: 100%;
        max-width: 100%;
        max-height: min(92vh, 920px);
    }

    .modal-content.modal-sm {
        width: 100%;
        max-width: 100%;
    }
}
