/* Administration */

.admin-page-header {
    margin-bottom: 1.75rem;
}

.admin-catalog-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-catalog-header h2 {
    margin-bottom: 0.45rem;
    font-size: 1.55rem;
}

.admin-catalog-header p {
    max-width: 46rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.admin-entry-count {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.button-danger-secondary:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.admin-empty-state {
    border: 1px dashed var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 720px) {.admin-catalog-header {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Wareneinsatz und Rezeptkalkulation */

.costing-card {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: clamp(1.1rem, 3vw, 1.6rem);
    background:
        linear-gradient(
            135deg,
            rgba(201, 159, 82, 0.08),
            rgba(25, 28, 31, 0.15)
        ),
        var(--surface);
}

.costing-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.costing-header h2 {
    margin: 0;
    font-size: 1.35rem;
}

.costing-summary-grid {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0.75rem;
}

.costing-total {
    min-width: 9.5rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 0.75rem 0.9rem;
    background: var(--surface-soft);
    text-align: right;
}

.costing-total span {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.costing-total strong {
    color: var(--accent);
    font-size: 1.35rem;
}

.costing-component-list {
    display: grid;
    gap: 0.55rem;
}

.costing-component-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
}

.costing-component-row:last-child {
    border-bottom: 0;
}

.costing-component-row > div {
    display: grid;
    gap: 0.15rem;
}

.costing-component-row > div span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.costing-component-price {
    flex: 0 0 auto;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.costing-incomplete {
    color: var(--warning, #d8aa57);
}

.costing-warning {
    margin-top: 1rem;
    border: 1px solid rgba(216, 170, 87, 0.45);
    border-radius: 0.75rem;
    padding: 0.9rem;
    background: rgba(216, 170, 87, 0.08);
}

.costing-warning > strong {
    display: block;
    margin-bottom: 0.5rem;
}

.costing-warning ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 1.2rem;
}

.costing-warning li {
    padding-left: 0.15rem;
}

.costing-warning li a {
    display: inline-block;
    margin-left: 0.4rem;
    color: var(--accent);
    font-weight: 700;
}

.costing-note {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

@media (max-width: 700px) {.costing-header {
        flex-direction: column;
    }

    .costing-summary-grid {
        width: 100%;
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .costing-total {
        width: 100%;
        min-width: 0;
        text-align: left;
    }
}

@media (max-width: 480px) {.costing-summary-grid {
        grid-template-columns: 1fr;
    }

    .costing-component-row {
        align-items: flex-start;
    }
}

