/* Hera — System Administrator controls (public/estate.js): section switches,
   the device list and backup health. Uses the app's colour variables.
   THIS FILE IS IDENTICAL IN hera-demo AND hera-leighton-house. */

.est-block { margin-top:24px; }
.est-home { padding:6px 16px; margin-bottom:12px; }
.est-homename { display:block; padding:12px 0 4px; font-size:16px; }
.est-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border-top:1px solid var(--line-soft); }
.est-row:first-child { border-top:0; }
.est-row b { display:block; font-size:14.5px; }
.est-row .muted { display:block; font-size:13px; max-width:62ch; }
.est-note { margin:4px 0 0; font-size:13px; }
.est-note a { text-decoration:underline; }

/* an on/off switch: 48px tall touch target, state shown by position and colour */
.est-switch { flex:none; width:52px; height:30px; border-radius:999px; border:0; padding:0; background:var(--line); position:relative; cursor:pointer; transition:background .15s ease; }
.est-switch::before { content:""; position:absolute; inset:-9px -4px; }
.est-switch i { position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .15s ease; }
.est-switch.on { background:var(--given); }
.est-switch.on i { transform:translateX(22px); }
.est-switch:disabled { opacity:.6; }
.est-switch:focus-visible { outline:3px solid var(--ink-faint); outline-offset:2px; }

.est-head { margin-top:8px; }
.est-head .section-title { margin:0; }
.est-check { display:inline-flex; align-items:center; gap:6px; font-size:13px; text-transform:none; letter-spacing:0; font-weight:500; color:var(--ink-soft); margin:0; }
.est-check input { width:16px; height:16px; }
.est-dev { align-items:flex-start; }
.est-devmain { min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
.est-devmain > .muted { flex:1 0 100%; font-size:13px; }
.est-form { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:10px 14px; margin-bottom:10px; }
.est-form label { display:flex; flex-direction:column; gap:4px; }
.est-wide { grid-column:1 / -1; }
.est-lost { font-size:13px; margin-bottom:10px; }

.est-health { margin:12px 0; }
.est-checks { list-style:none; margin:10px 0 12px; padding:0; display:grid; gap:8px; }
.est-checks li { display:grid; grid-template-columns:12px 1fr; gap:10px; align-items:start; font-size:13.5px; }
.est-checks i { width:10px; height:10px; border-radius:50%; margin-top:5px; background:var(--given); }
.est-checks li.warn i { background:var(--due); }
.est-checks li.bad i { background:var(--alert); }

.est-blocked { max-width:520px; margin:18vh auto 0; padding:24px; font-family:inherit; }
.est-blocked b { font-size:20px; }

/* numbers with a bar behind them (falls, trends and other reports) */
.in-bar { position:relative; min-width:74px; }
.in-bar i { position:absolute; left:6px; top:50%; height:60%; transform:translateY(-50%); background:var(--given-soft, rgba(90,140,110,.22)); border-radius:4px; min-width:2px; }
.in-bar span { position:relative; }

@media (prefers-reduced-motion:reduce) { .est-switch, .est-switch i { transition:none; } }
.est-access { margin:0 0 14px; }
.est-access .est-row { padding-top:0; }
.est-access #est-approve-all { margin-top:10px; }
.est-access code { font-size:12px; }
.est-devbtns { gap:6px; flex-wrap:wrap; justify-content:flex-end; align-items:center; }
.est-devbtns .btn { margin:0; }
