.recipe-page {
    width: 100%;
    max-width: none;
    margin: 0;
    min-width: 0;
}

.recipe-action-button {
    min-height: 2.5rem;
    border-radius: 10px;
}

.recipe-table-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.recipe-table-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.recipe-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.recipe-section-subtitle {
    margin-top: 0.2rem;
    font-size: 0.88rem;
    color: #6b7280;
}

.recipe-table {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.recipe-table .jans-table {
    gap: 0.5rem;
    min-width: 58rem;
}

.recipe-table .jans-table-header {
    top: 0;
}

.recipe-table .jans-table-header .jans-table-cell {
    min-height: 3rem;
    padding: 0.75rem 0.95rem;
    background: #f8fafc;
    border-color: #e5e7eb;
}

.recipe-table .jans-table-row .jans-table-cell {
    min-height: 4.05rem;
    padding: 0.95rem;
    border-color: #edf1f5;
    font-size: 0.9rem;
    line-height: 1.35;
}

.recipe-table .jans-table-row:nth-child(even) .jans-table-cell {
    background: #fbfcfd;
}

.recipe-table .jans-table-row:hover .jans-table-cell {
    border-color: #d1d5db;
    background: #f8fafc;
    box-shadow: none;
}

.recipe-col-name {
    flex: 2.6 1 18rem;
    min-width: 16rem;
    font-weight: 750;
    color: #111827;
}

.recipe-col-metric {
    flex: 0 0 7.4rem;
    text-align: right;
}

.recipe-col-actions {
    flex: 0 0 6.5rem;
    justify-content: flex-end;
}

.recipe-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}

.recipe-row-action {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.recipe-row-action:hover {
    background: #f8fafc;
    border-color: #9ca3af;
}

.recipe-row-action-danger {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff5f5;
}

.recipe-row-action-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.recipe-state-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.recipe-state-card-error {
    border-left: 4px solid #dc2626;
}

.recipe-state-card-loading {
    border-left: 4px solid #2563eb;
}

.recipe-state-card-empty {
    border-left: 4px solid #111827;
}

.recipe-state-icon {
    font-size: 1.4rem;
    color: #374151;
}

.recipe-state-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.recipe-state-text {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #4b5563;
}

.recipe-margin-badge {
    font-size: 0.76rem;
    line-height: 1;
    padding: 0.43rem 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5rem;
    font-weight: 750;
}

.recipe-col-portions,
.recipe-col-net,
.recipe-col-vat,
.recipe-col-gross,
.recipe-col-margin {
    display: none;
}

.margin-good {
    background: #dcfce7;
    color: #166534;
}

.margin-excellent {
    background: #dbeafe;
    color: #1d4ed8;
}

.margin-medium {
    background: #fef3c7;
    color: #92400e;
}

.margin-bad {
    background: #fee2e2;
    color: #b91c1c;
}

.label-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

@media (min-width: 768px) {
    .recipe-col-portions,
    .recipe-col-gross,
    .recipe-col-actions {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .recipe-col-net,
    .recipe-col-vat,
    .recipe-col-margin {
        display: flex;
    }
}

@media (min-width: 1280px) {
    .recipe-table .jans-table {
        min-width: 0;
    }

    .recipe-col-name {
        flex-basis: 22rem;
    }

    .recipe-col-metric {
        flex-basis: 8.2rem;
    }
}

@media (max-width: 767px) {
    .recipe-table-card.rz-card,
    .recipe-table-card.rz-variant-filled.rz-p-4 {
        padding: 0.85rem !important;
    }

    .recipe-table .jans-table {
        min-width: 100%;
    }

    .recipe-table .jans-table-row .jans-table-cell {
        min-height: 3.65rem;
        padding: 0.8rem;
    }

    .recipe-col-name {
        min-width: 0;
        flex-basis: auto;
    }
}
