/* Admin panel conversion helpers — rl panel.css covers the layout; these replace inline styles
   (the app's CSP forbids style="" attributes). Loaded after rl css and bridge.css. */

/* bar charts: heights in 5% steps, alternate colours */
.bar-chart.chart-gap { margin-bottom: 34px; }
.bar-chart .bar.h-0 { height: 3%; } .bar-chart .bar.h-5 { height: 5%; } .bar-chart .bar.h-10 { height: 10%; } .bar-chart .bar.h-15 { height: 15%; } .bar-chart .bar.h-20 { height: 20%; }
.bar-chart .bar.h-25 { height: 25%; } .bar-chart .bar.h-30 { height: 30%; } .bar-chart .bar.h-35 { height: 35%; } .bar-chart .bar.h-40 { height: 40%; } .bar-chart .bar.h-45 { height: 45%; }
.bar-chart .bar.h-50 { height: 50%; } .bar-chart .bar.h-55 { height: 55%; } .bar-chart .bar.h-60 { height: 60%; } .bar-chart .bar.h-65 { height: 65%; } .bar-chart .bar.h-70 { height: 70%; }
.bar-chart .bar.h-75 { height: 75%; } .bar-chart .bar.h-80 { height: 80%; } .bar-chart .bar.h-85 { height: 85%; } .bar-chart .bar.h-90 { height: 90%; } .bar-chart .bar.h-95 { height: 95%; } .bar-chart .bar.h-100 { height: 100%; }
.bar-chart .bar.bar-sky { background: linear-gradient(to top, var(--sky), #8fb3d6); }
.bar-chart .bar.bar-forest { background: linear-gradient(to top, var(--forest), #4f7a6c); }
.bar-chart .bar.bar-rose { background: linear-gradient(to top, #8f3a33, var(--rose)); }
.chart-label { margin-top: 4px; }
.admin-data > summary { cursor: pointer; }

/* icons & tones */
.li-ico.ok, .ki.ok { background: var(--forest-soft); color: var(--forest); }
.li-ico.bad, .ki.bad { background: var(--rose-soft); color: var(--danger); }
.li-ico.gold-ico, .ki.gold-ico { background: var(--gold-soft); color: var(--gold-deep); }
.li-ico.plain { background: transparent; color: var(--muted); }
.text-danger { color: var(--danger) !important; }
.text-gold { color: var(--gold-deep) !important; }
.text-soft { color: var(--ink-soft) !important; }
.fw-600 { font-weight: 600; }
.is-overdue { color: var(--danger); font-weight: 600; }
.is-dim { opacity: .6; }

/* key/value rows on detail pages */
.mini-stat b.kv-val { font-size: .95rem; font-family: var(--font-body); }
.mini-stat b.kv-val.kv-right { text-align: right; }

/* small bits */
.nowrap { white-space: nowrap; }
.code-xs { font-size: .72rem; }
.admin-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.d-inline { display: inline; }
.inline-form { display: inline; }
.flex-row { display: flex; gap: 6px; align-items: center; }
.select-sm { padding: 6px 8px; min-width: 150px; }
.thumb-sm { width: 56px; height: 40px; border-radius: 8px; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.person-head { gap: 14px; align-items: center; margin-bottom: 12px; }
.cover-preview { width: 100%; border-radius: 12px; margin-bottom: 10px; }
.tpl-thumb { border-radius: 12px; margin-bottom: 14px; }
.fieldset-plain { border: 0; padding: 0; margin: 0; }
.checklist.tight { padding-top: 4px; }
.savebar { position: sticky; bottom: 12px; display: flex; gap: 14px; align-items: center; }
.search-wide { min-width: 320px; flex: 1; }
.form-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.wrap-row { flex-wrap: wrap; gap: 10px; }
.meta-row { gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.section-title { font-size: 1.25rem; }
.guide-area > summary { cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.guide-area > summary::-webkit-details-marker { display: none; }
.guide-area > summary h3 { margin: 0; }
.guide-area > summary p { margin: 4px 0 0; }
.guide-faq > summary { cursor: pointer; }
@media (max-width: 900px) { .form-grid.grid-3, .form-grid.grid-2 { grid-template-columns: 1fr; } }
