.preparazioni-hub {
    max-width: 56rem;
    margin: 0 auto;
}

.prep-hub-search-wrap .form-control {
    font-size: 1.1rem;
}

.prep-hub-filters {
    align-items: flex-end;
}

.prep-hub-sort-wrap {
    min-width: 11rem;
}

.prep-hub-sort {
    font-size: 0.95rem;
}

.prep-hub-sort-label {
    white-space: nowrap;
}

.prep-hub-list {
    max-height: min(32rem, 55vh);
    overflow-y: auto;
}

.prep-hub-list.prep-hub-list-collapsed {
    max-height: 6.5rem;
}

.prep-hub-ricetta .monitor-ricetta-card {
    background: #fff;
    border: 1px solid var(--monitor-border, #e5e7eb);
    border-radius: 1rem;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    max-height: none;
    overflow: visible;
}

.prep-hub-ricetta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.35rem;
}

.prep-hub-ricetta-head .monitor-ricetta-titolo {
    flex: 1 1 12rem;
    min-width: 0;
}

.prep-hub-porzioni-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.prep-hub-porzioni-label {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #334155;
    line-height: 1.1;
}

.prep-hub-porzioni-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--monitor-border, #e5e7eb);
    border-radius: 0.65rem;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.prep-hub-porzioni-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    padding: 0.45rem 0.65rem;
    border: none;
    background: #f8fafc;
    color: #334155;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.prep-hub-porzioni-btn:hover {
    background: #eef2f7;
}

.prep-hub-porzioni-btn:active {
    background: #e2e8f0;
}

.prep-hub-porzioni-val {
    display: block;
    width: 3.25rem;
    min-width: 3.25rem;
    padding: 0.35rem 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    border: none;
    border-left: 1px solid var(--monitor-border, #e5e7eb);
    border-right: 1px solid var(--monitor-border, #e5e7eb);
    border-radius: 0;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}

.prep-hub-porzioni-val:focus {
    outline: none;
    background: #f8fafc;
    box-shadow: inset 0 0 0 2px #93c5fd;
}

.prep-hub-porzioni-val::-webkit-outer-spin-button,
.prep-hub-porzioni-val::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.prep-hub-costo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin: 0.5rem 0 1rem;
}

.prep-hub-costo-porzione {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.45rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--hc-success-bg, #ecfdf5);
    border: 1px solid #a7f3d0;
    color: var(--hc-success, #2d7d46);
    font-weight: 700;
    font-size: 1rem;
}

.prep-hub-modifica-link {
    font-size: 0.8rem;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
}

.prep-hub-modifica-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.prep-hub-ricetta-body {
    margin: 0;
    max-height: none;
    overflow: visible;
}

.prep-hub-azioni {
    grid-template-columns: repeat(3, 1fr);
    margin: 0 0 1rem;
}

.prep-hub-azione-ingredienti {
    border-color: #c4b5fd;
    background: #f5f3ff;
    color: #6d28d9;
}

@media (max-width: 768px) {
    .prep-hub-azioni {
        grid-template-columns: 1fr;
    }
}

.prep-hub-etichetta-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.prep-hub-copie {
    max-width: 5rem;
    align-self: center;
}

.prep-hub-copie-label {
    text-align: center;
    margin-bottom: 0;
}

.prep-hub-ingredienti-panel {
    margin-top: 0.25rem;
}

.prep-hub-ingredienti-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.prep-hub-ingredienti-titolo {
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1 1 auto;
    text-align: center;
}

.prep-hub-ricetta .monitor-ricetta-body {
    max-height: none;
    overflow: visible;
}

.prep-hub-ingredienti-body {
    max-height: min(28rem, 50vh);
    overflow-y: auto;
}

.prep-hub-card-selected {
    border-color: var(--hc-success, #2d7d46);
    background: var(--hc-success-bg, #ecfdf5);
    box-shadow: 0 0 0 2px rgba(45, 125, 70, 0.15);
}

.prep-hub-toolbar .badge {
    font-size: 0.75rem;
}
