/* Shared CRUD modal shell (CrudModalsComponent, ObjectNotesModal, ObjectContactPersonsModal) */

.crud-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.crud-modal {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    min-width: 320px;
    max-width: 90vw;
    height: min(90vh, calc(100vh - 2rem));
    max-height: min(90vh, calc(100vh - 2rem));
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.crud-modal h4 {
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.crud-modal-body {
    overflow-y: auto;
    margin-top: 0.5rem;
    padding-right: 0.25rem;
    flex: 1 1 auto;
    min-height: 0;
}

.crud-modal-footer {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}
