/* Nur Einkauf & Kochplan: Teilen-Dialog, Vorrat, Rezeptwahl, manuelle Eingabe. Gemeinsames steht in /Intranet/komponenten.css. */

.row,
.add-row,
.actions {
    display: flex;
    gap: 10px;
}

.plan-prompt {
    margin-top: -12px;
    border-color: var(--accent);
}

.plan-prompt .hint {
    margin-bottom: 14px;
}

.plan-prompt select {
    flex: 1;
    min-width: 0;
}

.manual {
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
}

.manual summary {
    cursor: pointer;
}

.add-row {
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.add-row #add-name {
    flex: 1 1 200px;
}

.add-row #add-menge {
    width: 90px;
}

.add-row #add-einheit {
    width: 100px;
}

@media (max-width: 700px) {
    .add-row #add-menge,
    .add-row #add-einheit {
        width: calc(50% - 5px);
    }

    .add-row select,
    .add-row .btn {
        flex: 1 1 140px;
    }
}

.split .plan .day:first-child {
    margin-top: 0;
}

.pantry-section {
    margin-top: 40px;
}

.pantry-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0 40px;
    align-items: start;
}

.pantry-list .item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pantry-list .item-body {
    flex: 1;
    min-width: 0;
}

.pick-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) auto minmax(0, 1fr) auto;
    gap: 8px;
}

.pick-row select {
    min-width: 0;
}

@media (max-width: 700px) {
    .pick-row {
        grid-template-columns: 1fr;
    }
}

.modal .pantry-list {
    grid-template-columns: 1fr;
    margin-top: 6px;
}

.modal .pantry-list .item {
    padding-right: 0;
}

.modal .pick-row {
    grid-template-columns: 1fr;
}

.modal .manual {
    margin-top: 12px;
}

/* Vorrat: Vorschläge „Lohnt sich im Vorrat“ */
.pantry-tips-section {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.pantry-tips-title {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Geteiltes Rezept (Kurzbefehl „Ins Intranet“) */
.share-source {
    overflow-wrap: anywhere;
}

.share-sub {
    margin: 14px 0 8px;
    font-size: 14px;
}

.share-sub .hint {
    font-weight: 400;
}

.share-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.share-days .chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.share-days .chip:hover {
    border-color: var(--accent);
}

.share-days .chip.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
}

.share-options {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

@media (max-width: 480px) {
    .share-days {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Tabs: Abschnitte stehen einzeln, nicht mehr nebeneinander */
.tab-panel.pantry-section {
    margin-top: 0;
}

.tab-panel .plan .day:first-child {
    margin-top: 0;
}
