.recipe-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
    gap: 1rem;
}

.recipe-summary-grid > div {
    min-width: 0;
}

.recipe-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.recipe-section-header > div {
    min-width: 0;
}

.recipe-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.recipe-form-actions-end {
    justify-content: flex-end;
}

@media (max-width: 639px) {
    .recipe-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .recipe-section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-section-header .btn {
        width: 100%;
    }

    .recipe-form-actions,
    .recipe-form-actions > div {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .recipe-form-actions .btn {
        width: 100%;
    }

    .custo-producao-item > div {
        grid-column: 1 / -1;
    }
}
