/* Bereich admin – ergänzt site.css. Keine Inline-Styles (CSP). */

.admin-tabs { margin-bottom: 1.25rem; }

/* Kacheln als Links */
.stat.stat-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.stat.stat-link:hover { border-color: #b3cfee; box-shadow: var(--shadow); color: inherit; }

.admin-links { list-style: none; margin: 0 0 1rem; padding: 0; }
.admin-links li { padding: .3rem 0; border-bottom: 1px dashed var(--c-border); }
.admin-links li:last-child { border-bottom: 0; }

.admin-inline-form { align-items: flex-end; }
.admin-inline-form .checkbox { align-self: center; margin-bottom: .45rem; }

.admin-actions > form { margin: 0; }
.admin-actions > * + * { margin-top: .5rem; }

.membership-table .select { min-width: 12rem; }
.membership-table td { vertical-align: middle; }

.template-table td, .price-table td, .stage-table td { vertical-align: middle; }
.template-table .input { min-width: 18rem; }
.price-table .input { min-width: 16rem; }

.row-inactive td { color: var(--c-muted); background: #fafbfc; }
.row-inactive .input { color: var(--c-muted); }
.row-failed td { background: #fff8f7; }

.price-input-wrap { display: inline-flex; align-items: center; gap: .3rem; }
.price-table .input.input-price { min-width: 0; width: 7.5rem; text-align: right; font-variant-numeric: tabular-nums; }

.stage-table .hint { display: inline-block; margin-left: .4rem; }

.audit-table td { font-size: .9rem; }
.audit-details summary { cursor: pointer; color: var(--c-primary); }
.audit-details pre {
    margin: .35rem 0 0; padding: .5rem; max-width: 34rem; max-height: 16rem; overflow: auto;
    background: #f8fafc; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    white-space: pre-wrap; word-break: break-word;
}

@media (max-width: 900px) {
    .template-table .input, .price-table .input { min-width: 10rem; }
}
