﻿.checklist-editor-dialog {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checklist-editor-dialog .dialog-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checklist-editor-dialog .dialog-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.checklist-editor-dialog .dialog-copy {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.ai-format-prompt-input,
.ai-format-editor,
.checklist-title-input,
.checklist-richtext {
    width: 100%;
}

.ai-format-prompt-input {
    min-height: 120px;
}

.ai-format-editor,
.checklist-richtext {
    min-height: 200px;
}

.ai-format-action,
.richtext-action {
    margin-top: 0.5rem;
}

.recipe-translation-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipe-translation-panel__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recipe-translation-panel__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.recipe-translation-panel__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.recipe-translation-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.recipe-translation-status--completed {
    background: #dcfce7;
    color: #166534;
}

.recipe-translation-status--failed {
    background: #fee2e2;
    color: #991b1b;
}

.recipe-translation-status--outdated {
    background: #fef3c7;
    color: #92400e;
}

.recipe-translation-status--pending,
.recipe-translation-status--progress {
    background: #dbeafe;
    color: #1d4ed8;
}

.recipe-translation-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipe-translation-editor {
    width: 100%;
}

.recipe-translation-preview__section,
.recipe-translation-status-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
    border: 1px solid #dbe3ef;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.recipe-translation-preview__label,
.recipe-translation-status-card__title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
}

.recipe-translation-preview__body {
    color: #0f172a;
    line-height: 1.65;
}

.recipe-translation-preview__body p:first-child {
    margin-top: 0;
}

.recipe-translation-preview__body p:last-child {
    margin-bottom: 0;
}

.recipe-translation-status-card__copy {
    color: #475569;
    line-height: 1.6;
}

.recipe-translation-debug {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #cbd5e1;
}

.recipe-translation-debug__label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7c2d12;
}

.recipe-translation-debug__content {
    margin: 0;
    padding: 0.85rem;
    border-radius: 0.85rem;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

@media (min-width: 768px) {
    .recipe-translation-panel__header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .recipe-translation-panel__title-row {
        justify-content: flex-start;
    }
}

/* =========================================
   Modern Card + Table + KPI Design
   ========================================= */



/* ---------- GENERIC CARD ---------- */
.card-block {
    background: #fff;
    border: 1px solid #e3e6e8;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

/* ---------- SELF COST BLOCK ---------- */
.self-cost-container {
    composes: card-block;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.self-cost-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.self-cost-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #005e9e;
}

/* ---------- TABLE ---------- */
.self-cost-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

    .self-cost-table-wrapper table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.92rem;
    }

    .self-cost-table-wrapper th {
        text-align: left;
        font-weight: 600;
        background: #f7f7f7;
        padding: 0.5rem;
        border-bottom: 1px solid #ddd;
    }

    .self-cost-table-wrapper td {
        padding: 0.5rem;
        border-bottom: 1px solid #eee;
    }

    .self-cost-table-wrapper tr:last-child td {
        border-bottom: none;
    }

/* ---------- PRICING CARD ---------- */
.recipe-pricing-card {
    composes: card-block;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Input Grid (2 columns desktop → 1 column mobile) */
.pricing-card__inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1rem 2rem;
}

.pricing-portion-row {
    display: grid;
    grid-template-columns: minmax(220px, 320px);
    gap: 1rem;
}

.pricing-per-portion-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pricing-price-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pricing-card__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* ---------- KPI Block ---------- */
.pricing-card__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

/* KPI Card */
.pricing-pill {
    background: #f4f7fa;
    border: 1px solid #dbe2e6;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pill-label {
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
}

.pill-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2a2a2a;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
    .pricing-card__inputs {
        grid-template-columns: 1fr;
    }

    .pricing-portion-row,
    .pricing-price-row {
        grid-template-columns: 1fr;
    }

    .self-cost-price {
        font-size: 1.05rem;
    }
}


/* =========================================
   Self Cost Table - Modern Spacing
   ========================================= */

.self-cost-table-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 0.5rem;
}

    .self-cost-table-wrapper table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 6px; /* Abstand zwischen Zeilen */
        font-size: 0.95rem;
    }

    .self-cost-table-wrapper thead tr th {
        background: #f3f5f7;
        padding: 0.75rem 1rem;
        font-weight: 600;
        color: #444;
        border-bottom: 1px solid #e0e4e7;
    }

    .self-cost-table-wrapper tbody tr {
        background: #ffffff;
        border-radius: 6px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

        .self-cost-table-wrapper tbody tr td {
            padding: 0.65rem 1rem;
            border-top: 1px solid #eef0f2;
        }

            .self-cost-table-wrapper tbody tr td:first-child {
                border-left: 1px solid #eef0f2;
                border-radius: 6px 0 0 6px;
            }

            .self-cost-table-wrapper tbody tr td:last-child {
                border-right: 1px solid #eef0f2;
                border-radius: 0 6px 6px 0;
            }

        .self-cost-table-wrapper tbody tr:last-child td {
            font-weight: 700;
        }

@media (max-width: 768px) {
    .self-cost-table-wrapper table {
        font-size: 0.85rem;
    }

.self-cost-table-wrapper tbody tr td {
            padding: 0.5rem 0.75rem;
        }
}

.rz-progressbar-label {
    color: transparent;
}

.ai-emoji-options {
    margin-top: 0.75rem;
}

.ai-alert {
    margin-bottom: 0.75rem;
}

.pricing-threshold-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pricing-threshold-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pricing-threshold-button {
    flex: 1 1 220px;
    min-height: 48px;
    text-align: left;
    justify-content: flex-start;
    white-space: normal;
    line-height: 1.25;
    border-radius: 10px;
}

.pricing-threshold-label {
    font-size: 0.82rem;
    font-weight: 700;
}

.pricing-threshold-value {
    font-size: 0.95rem;
    font-weight: 700;
}

.recipe-missing-data-fullwidth-row {
    width: 100%;
}

.recipe-missing-data-fullwidth-button {
    width: 100%;
    justify-content: center;
}

.pricing-formula-hint {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.35;
}

.pricing-portion-row {
    align-items: end;
}

.pricing-portion-formula {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.35;
    align-self: center;
    padding-bottom: 0.2rem;
}

.pricing-netto-input input,
.pricing-netto-input .rz-inputtext {
    font-weight: 700;
}

:root {
    --recipe-editor-space-1: 8px;
    --recipe-editor-space-2: 12px;
    --recipe-editor-space-3: 16px;
    --recipe-editor-space-4: 24px;
    --recipe-editor-radius: 12px;
    --recipe-editor-radius-sm: 10px;
    --recipe-editor-border: #dbe3ec;
    --recipe-editor-surface: #ffffff;
    --recipe-editor-surface-alt: #f8fafc;
    --recipe-editor-surface-muted: #eef4ff;
    --recipe-editor-text: #0f172a;
    --recipe-editor-text-muted: #475569;
    --recipe-editor-primary: #2563eb;
    --recipe-editor-primary-hover: #1d4ed8;
    --recipe-editor-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.checklist-editor-dialog {
    min-height: 100dvh;
    padding: 0 var(--recipe-editor-space-4) var(--recipe-editor-space-4);
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

@media (max-width: 992px) 
{
    .checklist-editor-dialog {
        min-height: 100dvh;
        padding: 0 5px;
        background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    }

}

    .recipe-editor-header {
        position: sticky;
        top: 0px;
        z-index: 20;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        padding: 0.75rem 0.9rem;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--recipe-editor-border);
    }

    @media (max-width: 992px) {
        .recipe-editor-header {
            position: sticky;
            top: 0px;
            z-index: 20;
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
            padding: 0.75rem 0.9rem;
            background: rgba(255, 255, 255, 0.94);
            backdrop-filter: blur(14px);
            border-bottom: 1px solid var(--recipe-editor-border);
        }
    }

    .recipe-editor-header__title {
        margin: 0;
        font-size: clamp(1.05rem, 2.4vw, 1.65rem);
        line-height: 1.1;
        color: var(--recipe-editor-text);
    }

    .recipe-editor-header__meta,
    .recipe-editor-header__actions,
    .recipe-editor-header__toggle {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.55rem;
    }

    .recipe-editor-header__actions {
        flex-wrap: nowrap;
    }

        .recipe-editor-header__actions .rz-button {
            flex: 1 1 0;
            min-width: 0;
            min-height: 2.35rem;
            padding: 0.35rem 0.7rem;
            font-size: 0.88rem;
        }

    .recipe-editor-switch {
        appearance: none;
        border: 1px solid #d7e2f0;
        border-radius: 999px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        color: var(--recipe-editor-text);
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        min-height: 2.35rem;
        padding: 0.35rem 0.75rem 0.35rem 0.45rem;
        cursor: pointer;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
        transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }

        .recipe-editor-switch:hover,
        .recipe-editor-switch:focus-visible {
            border-color: #93c5fd;
            box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
            outline: none;
        }

        .recipe-editor-switch.is-active {
            border-color: #2563eb;
            background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
        }

    .recipe-editor-switch__track {
        position: relative;
        width: 2.35rem;
        height: 1.35rem;
        border-radius: 999px;
        background: #cbd5e1;
        flex: 0 0 auto;
        transition: background 0.18s ease;
    }

    .recipe-editor-switch.is-active .recipe-editor-switch__track {
        background: #2563eb;
    }

    .recipe-editor-switch__thumb {
        position: absolute;
        top: 0.16rem;
        left: 0.16rem;
        width: 1.03rem;
        height: 1.03rem;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
        transition: transform 0.18s ease;
    }

    .recipe-editor-switch.is-active .recipe-editor-switch__thumb {
        transform: translateX(0.98rem);
    }

    .recipe-editor-switch__label {
        font-size: 0.84rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .recipe-composer-layout {
        display: flex;
        flex-direction: column;
        gap: var(--recipe-editor-space-4);
    }

    .recipe-composer-main {
        display: flex;
        flex-direction: column;
        gap: var(--recipe-editor-space-4);
    }

    .recipe-composer-row {
        margin: 0;
    }

    .recipe-compact-status {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--recipe-editor-space-2);
        padding: 12px 16px;
        margin-top: 0;
        border: 1px solid #fed7aa;
        border-radius: var(--recipe-editor-radius-sm);
        background: #fff7ed;
    }

    .recipe-compact-status__text {
        color: #9a3412;
        font-weight: 600;
    }

    .recipe-kpi-bar {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.45rem;
        min-width: 0;
    }

    .recipe-kpi-layout {
        display: flex;
        flex-direction: column;
        gap: var(--recipe-editor-space-3);
    }

    .recipe-kpi-bar__item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.15rem;
        flex: 1 1 0;
        min-width: 0;
        padding: clamp(0.45rem, 1.3vw, 0.75rem) clamp(0.42rem, 1.4vw, 0.85rem);
        border: 1px solid var(--recipe-editor-border);
        border-radius: var(--recipe-editor-radius-sm);
        background: var(--recipe-editor-surface);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
        overflow: hidden;
    }

    .recipe-kpi-bar__item--attention {
        border-color: #fdba74;
        background: #fff7ed;
    }

    .recipe-kpi-bar__item--action {
        justify-content: center;
        min-width: 180px;
    }

    .recipe-kpi-actions-card {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--recipe-editor-space-2);
        padding: 16px;
        border: 1px solid var(--recipe-editor-border);
        border-radius: var(--recipe-editor-radius-sm);
        background: var(--recipe-editor-surface);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    }

    .recipe-kpi-actions-card .rz-button {
        min-width: 0;
    }

    .recipe-kpi-bar__label,
    .recipe-kpi-bar__subvalue {
        color: var(--recipe-editor-text-muted);
        font-size: clamp(0.62rem, 1.25vw, 0.8rem);
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .recipe-kpi-bar__value {
        font-weight: 700;
        color: var(--recipe-editor-text);
        font-variant-numeric: tabular-nums;
        font-size: clamp(0.76rem, 1.7vw, 1.02rem);
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .recipe-section-card,
    .recipe-import-status-card,
    .recipe-data-completeness,
    .recipe-derived-sidebar__card {
        background: var(--recipe-editor-surface);
        border: 1px solid var(--recipe-editor-border);
        border-radius: var(--recipe-editor-radius);
        box-shadow: var(--recipe-editor-shadow);
    }

        .recipe-section-card .rz-fieldset-content {
            padding: 20px 24px 24px;
        }

        .recipe-section-card > legend,
        .recipe-section-card .rz-fieldset-legend {
            font-weight: 700;
            color: var(--recipe-editor-text);
        }

    .recipe-import-status-card,
    .recipe-data-completeness,
    .recipe-derived-sidebar__card {
        padding: 20px 24px;
    }

    .recipe-import-status-card__header,
    .recipe-import-status-card__items,
    .recipe-data-completeness__grid,
    .recipe-derived-sidebar__metrics,
    .recipe-derived-sidebar__actions {
        display: flex;
        flex-direction: column;
        gap: var(--recipe-editor-space-2);
    }

    .recipe-import-status-card__summary,
    .recipe-import-status-card__notice,
    .recipe-data-completeness__label,
    .recipe-derived-sidebar__label,
    .recipe-derived-sidebar__subvalue {
        color: var(--recipe-editor-text-muted);
    }

    .recipe-import-status-card__items,
    .recipe-data-completeness__grid {
        gap: var(--recipe-editor-space-3);
    }

    .recipe-import-status-card__item,
    .recipe-data-completeness__metric,
    .recipe-derived-sidebar__metric {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 12px 14px;
        border-radius: var(--recipe-editor-radius-sm);
        background: var(--recipe-editor-surface-alt);
    }

    .recipe-data-completeness__metric--attention,
    .checklist-item-missing-product {
        background: #fff7ed;
        border: 1px solid #fdba74;
    }

    .recipe-derived-sidebar__value,
    .recipe-data-completeness__value,
    .recipe-import-status-card__value {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--recipe-editor-text);
        font-variant-numeric: tabular-nums;
    }

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

    .recipe-top-actions-primary {
        min-width: 15rem;
    }

    .recipe-secondary-actions-menu {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.85rem;
        border: 1px solid #dbe2e8;
        border-radius: 14px;
        background: #f8fafc;
    }

    .richtext-action {
        opacity: 0.9;
    }

    .group-inline-create {
        display: flex;
        width: 100%;
    }

    .group-inline-create-input,
    .group-inline-add-input {
        width: 100%;
    }

    .group-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .checklist-editor-dialog .property-accordion {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .checklist-editor-dialog .property-accordion__header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .checklist-editor-dialog .property-accordion__toggle {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        min-width: 0;
        padding: 0.75rem 0.9rem;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #ffffff;
        color: #0f172a;
        font-weight: 700;
        text-align: left;
        appearance: none;
        cursor: pointer;
    }

        .checklist-editor-dialog .property-accordion__toggle:hover {
            border-color: #cbd5e1;
            background: #f8fafc;
        }

        .checklist-editor-dialog .property-accordion__toggle:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
        }

    .checklist-editor-dialog .property-accordion__title {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .checklist-editor-dialog .property-accordion__chevron {
        flex: 0 0 auto;
        font-size: 1rem;
        transform: rotate(0deg);
        transition: transform 140ms ease;
    }

    .checklist-editor-dialog .property-accordion__toggle[aria-expanded="true"] .property-accordion__chevron {
        transform: rotate(180deg);
    }

    .checklist-editor-dialog .property-accordion__content {
        width: 100%;
        padding-top: 0.25rem;
    }

    .checklist-group-accordion__delete {
        flex: 0 0 auto;
    }

    .checklist-group-accordion__editor {
        padding-bottom: 0.9rem;
    }

    .recipe-media-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .recipe-media-layout__capture,
    .recipe-media-layout__youtube,
    .recipe-media-layout__gallery {
        width: 100%;
    }

    .recipe-media-panel,
    .recipe-media-gallery__header {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.95rem 1rem;
        border: 1px solid #dbe3ec;
        border-radius: 14px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }

    .recipe-media-panel__title,
    .recipe-media-gallery__title {
        font-size: 0.96rem;
        font-weight: 800;
        color: #0f172a;
    }

    .recipe-media-panel__copy,
    .recipe-media-gallery__copy {
        color: #475569;
        line-height: 1.45;
    }

    .recipe-media-panel__input {
        width: 100%;
    }

    .youtube-input {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0.2rem;
    }

    .media-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.85rem;
    }

    .media-item-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        width: 100%;
        max-width: 100%;
        padding: 0.75rem;
        border: 1px solid #dbe3ec;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    }

    .media-item {
        width: 100%;
        max-width: 100%;
        min-height: 160px;
        object-fit: cover;
        border-radius: 12px;
        background: #e2e8f0;
    }

    @media (min-width: 768px) {
        .youtube-input {
            flex-direction: row;
            align-items: center;
        }

        .recipe-media-layout__gallery .media-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (min-width: 1100px) {
        .recipe-media-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
            gap: 1rem;
        }

        .recipe-media-layout__gallery {
            grid-column: 1 / -1;
        }

            .recipe-media-layout__gallery .media-list {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
    }

    .group-card,
    section.group-card,
    .group-container > section {
        padding: 20px;
        border-radius: var(--recipe-editor-radius);
        background: var(--recipe-editor-surface);
        box-shadow: var(--recipe-editor-shadow);
        border: 1px solid var(--recipe-editor-border) !important;
    }

    .group-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding-bottom: 0.9rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .group-name-inline-input {
        flex: 1 1 auto;
    }

    .group-name-inline-input__control {
        width: 100%;
    }

    .group-content {
        display: flex;
        flex-direction: column;
        gap: 0.9rem;
        padding-top: 0.9rem;
    }

    .group-inline-add {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .group-inline-suggestions {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.4rem;
        border: 1px solid #dbe2e8;
        border-radius: 12px;
        background: #ffffff;
    }

    .group-inline-suggestion {
        display: flex;
        width: 100%;
        padding: 0.65rem 0.75rem;
        border: none;
        border-radius: 10px;
        background: #eff6ff;
        color: #0f172a;
        text-align: left;
    }

        .group-inline-suggestion:hover {
            background: #dbeafe;
        }

    .group-inline-suggestion-name {
        font-weight: 600;
    }

    .item-list {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .checklist-item {
        display: flex;
        align-items: flex-start;
        gap: var(--recipe-editor-space-2);
        padding: 14px 16px;
        border: 1px solid var(--recipe-editor-border);
        border-left: 4px solid transparent;
        border-radius: var(--recipe-editor-radius-sm);
        background: var(--recipe-editor-surface);
    }

    .recipe-item-row--linked {
        background: linear-gradient(180deg, #dcfce7 0%, #c7f9d8 100%) !important;
        border-color: #86efac;
        border-left-color: #16a34a;
        box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.22);
    }

    .recipe-item-row--manual {
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border-left-color: #94a3b8;
    }

    .checklist-item-missing-product {
        border-left-color: #f97316;
    }

    .item-inline-row {
        display: flex;
        flex-wrap: wrap;
        column-gap: 0.6rem;
        row-gap: 0.6rem;
        width: 100%;
        align-items: flex-start;
    }

    .floating-inline-field {
        position: relative;
        min-width: 0;
    }

        .floating-inline-field.has-value {
            padding-top: 0.8rem;
        }

    .floating-inline-field__label {
        position: absolute;
        top: 0.08rem;
        left: 0;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #64748b;
        opacity: 0;
        transform: translateY(0.2rem);
        pointer-events: none;
        transition: opacity 0.16s ease, transform 0.16s ease;
    }

    .floating-inline-field.has-value .floating-inline-field__label {
        opacity: 1;
        transform: translateY(0);
    }

    .floating-inline-field__control {
        width: 100%;
    }

        .item-inline-input .rz-inputtext,
        .item-inline-input input,
        .item-inline-input .rz-dropdown,
        .floating-inline-field__control .rz-inputtext,
        .floating-inline-field__control input,
        .floating-inline-field__control .rz-dropdown,
        .group-inline-create-input .rz-inputtext,
        .group-inline-create-input input,
        .group-inline-add-input .rz-inputtext,
        .group-inline-add-input input,
        .group-name-inline-input .rz-inputtext,
        .group-name-inline-input input,
        .group-name-inline-input__control .rz-inputtext,
        .group-name-inline-input__control input {
            border: none;
            border-bottom: 1px solid #cbd5e1;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
            padding-left: 0;
            padding-right: 0;
        }

    .item-inline-name {
        order: 1;
        flex: 1 1 calc(100% - 2.95rem);
        width: 100%;
        font-size: 1rem;
        font-weight: 600;
        align-self: stretch;
    }

    .item-inline-quantity,
    .item-inline-unit,
    .item-inline-note {
        width: 100%;
    }

    .item-inline-quantity {
        order: 2;
        flex: 1 1 calc(100% - 6rem);
    }

    .item-inline-unit {
        order: 3;
        flex: 0 0 5.4rem;
    }

    .item-inline-note {
        order: 4;
        flex: 1 1 100%;
    }

    .item-inline-delete {
        order: 5;
        align-self: stretch;
        justify-self: end;
        width: 2.35rem;
        min-width: 2.35rem;
        height: 2.5rem;
        padding: 0;
        margin-top: 0.8rem;
    }

    .item-inline-name .recipe-link-search__input {
        min-height: 2.5rem;
    }

    .recipe-link-search {
        position: relative;
        width: 100%;
    }

    .recipe-link-search__input {
        width: 100%;
    }

    .recipe-link-search__menu {
        position: absolute;
        top: calc(100% + 0.2rem);
        left: 0;
        right: 0;
        z-index: 30;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        padding: 0.35rem;
        border: 1px solid #dbe2e8;
        border-radius: 0.8rem;
        background: #fff;
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
        max-height: 16rem;
        overflow-y: auto;
    }

    .recipe-link-search__option {
        width: 100%;
        border: none;
        background: transparent;
        border-radius: 0.6rem;
        padding: 0.6rem 0.7rem;
        text-align: left;
        color: #0f172a;
        font-size: 0.95rem;
        cursor: pointer;
    }

    .recipe-link-search__option:hover,
    .recipe-link-search__option:focus-visible {
        background: #e2e8f0;
        outline: none;
    }

    .floating-inline-field.has-value .rz-inputtext,
    .floating-inline-field.has-value input,
    .floating-inline-field.has-value .rz-dropdown,
    .floating-inline-field.has-value .rz-numeric-input {
        padding-top: 0.25rem;
    }

    @media (min-width: 992px) {
        .recipe-editor-header {
            display: flex;
            align-items: center;
            gap: var(--recipe-editor-space-2);
            padding: var(--recipe-editor-space-3) var(--recipe-editor-space-4);
            flex-direction: row;
        }

        .recipe-composer-main {
            min-width: 0;
        }

        .item-inline-row {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            gap: 12px;
        }

        .item-inline-name {
            order: 1;
            flex: 3.2 1 360px;
            min-width: 0;
        }

        .item-inline-quantity {
            order: 2;
            flex: 1 1 100px;
            min-width: 0;
        }

        .item-inline-unit {
            order: 3;
            flex: 0 0 110px;
            min-width: 0;
        }

        .item-inline-note {
            order: 4;
            flex: 1.6 1 220px;
            min-width: 0;
        }

        .item-inline-delete {
            order: 5;
            margin-left: 0;
        }

        .recipe-kpi-layout {
            display: flex;
            grid-template-columns: minmax(0, 1fr) 280px;
            
        }

        .recipe-editor-header__actions .rz-button {
            flex: 0 0 auto;
            min-width: 8.5rem;
            font-size: 0.92rem;
        }

        .recipe-editor-switch__label {
            font-size: 0.88rem;
        }
    }

    @media (max-width: 1240px) {
        .recipe-kpi-actions-card .rz-button {
            width: 2.5rem;
            min-width: 2.5rem;
            padding-inline: 0;
            justify-content: center;
        }

        .recipe-kpi-actions-card .rz-button .rz-button-text {
            display: none;
        }

        .recipe-kpi-actions-card .rz-button .rz-button-icon-left {
            margin-right: 0;
        }
    }

/* Recipe editor tab shell: clean light B2B SaaS theme */
.checklist-editor-dialog .recipe-editor-tabs {
    display: block;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-nav {
    padding: 0 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    gap: 0.25rem;
    overflow-x: auto;
}

.checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-nav li a,
.checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-nav li .rz-tabview-title {
    color: #4b5563;
    font-size: 0.92rem;
    font-weight: 700;
}

.checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-nav li.rz-tabview-selected a,
.checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-nav li.rz-tabview-selected .rz-tabview-title {
    color: #2563eb;
}

.checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-nav li.rz-tabview-selected {
    border-bottom: 2px solid #2563eb;
}

.checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-panels,
.checklist-editor-dialog .recipe-editor-tabs .rz-tabview-panel {
    background: #f8fafc;
}

.checklist-editor-dialog .recipe-editor-tabs .rz-tabview-panel {
    padding: 1rem;
}

.checklist-editor-dialog .recipe-editor-tabs .recipe-composer-row {
    margin: 0 0 1rem;
}

.checklist-editor-dialog .recipe-editor-tabs .recipe-section-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.recipe-editor-action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 1rem 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.recipe-editor-action-panel__title {
    margin: 0 0 0.25rem;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
}

.recipe-editor-action-panel p,
.recipe-editor-action-panel__hint {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .checklist-editor-dialog .recipe-editor-tabs > .rz-tabview-nav {
        padding: 0 0.75rem;
    }

    .checklist-editor-dialog .recipe-editor-tabs .rz-tabview-panel {
        padding: 0.75rem;
    }

    .recipe-editor-action-panel {
        align-items: stretch;
        flex-direction: column;
        margin-inline: 0;
    }
}
