.employee-recipes-page {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.employee-recipes-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.employee-recipes-title-group {
    min-width: 0;
}

.employee-recipes-eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.employee-recipes-title-group h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.employee-recipes-title-group p {
    max-width: 42rem;
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
}

.employee-recipes-mode-tabs {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.employee-recipes-mode-tab {
    min-height: 2.25rem;
    padding: 0 0.85rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #4b5563;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 750;
    cursor: pointer;
}

.employee-recipes-mode-tab:hover {
    color: #1d4ed8;
    background: #eff6ff;
}

.employee-recipes-mode-tab.is-active {
    color: #1d4ed8;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #bfdbfe;
}

.employee-recipes-admin-panel {
    min-width: 0;
}

.employee-recipes-admin-panel .app-shell {
    width: 100%;
    padding: 0;
}

.employee-recipes-admin-panel .app-shell-ribbon {
    margin-top: 0;
}

.employee-recipes-filter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: none;
}

.employee-recipes-search {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.employee-recipes-filter-label {
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.employee-recipes-search-field {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 2.6rem;
    padding: 0 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f8fafc;
    color: #6b7280;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.employee-recipes-search-field:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.employee-recipes-search-field .material-symbols-outlined {
    flex: 0 0 auto;
    font-size: 1.15rem;
    color: #9ca3af;
}

.employee-recipes-search input {
    width: 100%;
    min-width: 0;
    min-height: 2.45rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    outline: none;
}

.employee-recipes-search input::placeholder {
    color: #9ca3af;
}

.employee-recipes-tags {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.employee-recipes-tags-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.employee-recipes-tags-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.employee-recipes-toggle-tags {
    display: none;
    border: 0;
    background: transparent;
    color: #2563eb;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
    padding: 0.1rem 0;
}

.employee-recipes-toggle-tags:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.employee-recipes-clear-tags {
    border: 0;
    background: transparent;
    color: #2563eb;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.1rem 0;
}

.employee-recipes-clear-tags:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.employee-recipes-tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    max-height: 2.45rem;
    overflow: hidden;
    position: relative;
    transition: max-height 0.2s ease;
}

.employee-recipes-tags:hover .employee-recipes-tag-list,
.employee-recipes-tags:focus-within .employee-recipes-tag-list,
.employee-recipes-tags.is-mobile-expanded .employee-recipes-tag-list {
    max-height: 18rem;
    overflow-y: auto;
}

.employee-recipes-tag {
    min-height: 2rem;
    max-width: 100%;
    padding: 0 0.72rem;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.employee-recipes-tag:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.employee-recipes-tag.is-selected {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1d4ed8;
}

.employee-recipes-tag-prefix {
    color: #60a5fa;
    font-weight: 800;
}

.employee-recipes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 43rem), 1fr));
    gap: 1rem;
    align-items: start;
}

.employee-recipes-result-summary {
    align-self: flex-start;
    margin-top: -0.15rem;
    padding: 0.32rem 0.62rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 750;
}

.employee-recipes-list .rezept-container {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.employee-recipes-list .rezept-container:hover {
    border-color: #cbd5e1;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.11);
}

.employee-recipes-list .rezept-seitenstreifen {
    min-width: 9rem;
    max-width: 10.5rem;
    padding: 1rem 0.85rem;
    border-right: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

.employee-recipes-list .recipe-card-tag,
.employee-recipes-list .recipe-card-tag-empty {
    border-color: #bfdbfe;
    background: #ffffff;
    color: #1e3a8a;
}

.employee-recipes-list .recipe-card-tag__prefix {
    color: #2563eb;
}

.employee-recipes-list .rezept-inhalt {
    padding: 1.35rem 1.45rem 1.45rem;
}

.employee-recipes-list .rezept-kopf {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e5e7eb;
}

.employee-recipes-list .rezept-kopf h1 {
    max-width: calc(100% - 7rem);
    color: #111827;
    font-size: clamp(1.15rem, 1.6vw, 1.55rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-transform: none;
}

.employee-recipes-list .kopf-trennung {
    display: none;
}

.employee-recipes-list .recipe-actions {
    position: static;
    flex: 0 0 auto;
    max-width: none;
    gap: 0.4rem;
}

.employee-recipes-list .recipe-edit-button.rz-button,
.employee-recipes-list .safety-button {
    min-width: 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #dbe4ee;
    background: #f8fafc;
    color: #334155;
    box-shadow: none;
}

.employee-recipes-list .recipe-edit-button.rz-button:hover,
.employee-recipes-list .recipe-edit-button.rz-button:focus,
.employee-recipes-list .safety-button:hover,
.employee-recipes-list .safety-button:focus {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: none;
}

.employee-recipes-list .rezept-spalten {
    display: grid;
    grid-template-columns: minmax(15rem, 0.9fr) minmax(18rem, 1.1fr);
    gap: 1.25rem;
    padding-top: 1rem;
}

.employee-recipes-list .rezept-links,
.employee-recipes-list .rezept-rechts {
    min-width: 0;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
}

.employee-recipes-list .rezept-links ul,
.employee-recipes-list .rezept-rechts ol {
    padding: 0;
}

.employee-recipes-list .ingredient-list {
    border-color: #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.employee-recipes-list .ingredient-item {
    min-height: 2rem;
    padding: 0.38rem 0.65rem;
    border-bottom: 1px solid #e5e7eb;
}

.employee-recipes-list .ingredient-item:last-child {
    border-bottom: 0;
}

.employee-recipes-list .ingredient-item:hover,
.employee-recipes-list .ingredient-item:focus-within {
    background: #eff6ff;
}

.employee-recipes-list .ingredient-item__meta {
    width: 100%;
    font-size: 0.86rem;
    color: #475569;
}

.employee-recipes-list .ingredient-item__product-name {
    color: #0f172a;
    font-weight: 650;
}

.employee-recipes-list .ingredient-item__product-quantity,
.employee-recipes-list .ingredient-item__quantity {
    min-width: 4.5rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 750;
}

.employee-recipes-list .rezept-rechts {
    padding: 0.85rem 0.95rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.employee-recipes-list .rezept-rechts p:first-child {
    margin-top: 0;
}

.employee-recipes-list .rezept-rechts p:last-child {
    margin-bottom: 0;
}

.employee-recipes-load-more {
    min-height: 1px;
    display: flex;
    justify-content: center;
    padding: 0.25rem 0 1rem;
}

.employee-recipes-load-more[aria-hidden="True"],
.employee-recipes-load-more[aria-hidden="true"] {
    padding: 0;
}

.employee-recipes-load-more-button {
    min-height: 2.35rem;
    padding: 0 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 750;
    cursor: pointer;
}

.employee-recipes-load-more-button:hover {
    border-color: #93c5fd;
    background: #dbeafe;
}

@media (min-width: 768px) {
    .employee-recipes-filter {
        grid-template-columns: minmax(20rem, 0.75fr) minmax(0, 1.25fr);
        align-items: start;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .employee-recipes-list .rezept-seitenstreifen {
        max-width: none;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .employee-recipes-list .rezept-spalten {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .employee-recipes-page-head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .employee-recipes-mode-tabs {
        width: 100%;
    }

    .employee-recipes-mode-tab {
        flex: 1 1 0;
    }

    .employee-recipes-filter {
        padding: 0.85rem;
        border-radius: 8px;
    }

    .employee-recipes-list {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .employee-recipes-list .rezept-container {
        border-radius: 14px;
        box-shadow: none;
    }

    .employee-recipes-list .rezept-inhalt {
        padding: 1rem;
    }

    .employee-recipes-list .rezept-kopf {
        flex-direction: column;
        gap: 0.75rem;
    }

    .employee-recipes-list .rezept-kopf h1 {
        max-width: none;
    }

    .employee-recipes-list .recipe-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .employee-recipes-list .rezept-spalten {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .employee-recipes-tags-head {
        align-items: flex-start;
        gap: 0.5rem;
    }

    .employee-recipes-tags-actions {
        justify-content: flex-end;
    }

    .employee-recipes-toggle-tags {
        display: inline-flex;
    }

    .employee-recipes-tags:not(.is-mobile-expanded):hover .employee-recipes-tag-list,
    .employee-recipes-tags:not(.is-mobile-expanded):focus-within .employee-recipes-tag-list {
        max-height: 2.35rem;
        overflow: hidden;
    }

    .employee-recipes-tag {
        min-height: 1.9rem;
        padding-inline: 0.62rem;
        font-size: 0.8rem;
    }
}
