/* WB-10 admin screens: login, Today, Appointments, appointment detail, new appointment, complete a job.
   Adds to style.css, wb7.css (.field) and wb9.css (.badge, .btn, .card, dl.facts, .skelrow, .err). Never restyles them.
   A part with data-a="<state> <state>" shows only in those states; admin.js does the switching. */
[hidden] { display: none !important; }
.content h1 { margin-top: 0; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.head .sub { color: var(--muted); margin: 0; }
.head .btn, .actions .btn, .btn.inline { display: inline-flex; width: auto; }
.btn[aria-disabled="true"] { opacity: .55; }
.btn.plain { border-color: var(--line); color: var(--text); }
.okbox { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--gold); border-radius: 10px; background: var(--surface); font-size: var(--fs-small); }
.warnbox { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--gold); border-radius: 10px; background: #2a2210; font-size: var(--fs-small); }
.helptxt { color: var(--muted); font-size: var(--fs-small); margin: 4px 0; }
.textprev { margin: 8px 0; padding: 10px 12px; border-left: 3px solid var(--gold); background: var(--surface); font-size: var(--fs-small); color: var(--text); }
.textprev b { display: block; color: var(--gold); margin-bottom: 2px; }

/* Login */
.loginbody { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.logincard { width: 420px; max-width: 100%; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.logincard .logo.small { padding: 0 0 8px; }
.logincard h1 { font-size: var(--fs-lead); margin: 8px 0 12px; }
.logincard .btn { width: 100%; margin-top: 12px; }
.logincard .sub { margin: 12px 0 0; text-align: center; font-size: var(--fs-small); }

/* Board and lists */
.group { margin: 20px 0 0; }
.group h2 { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.group h2 small { font-weight: 300; color: var(--muted); }
.job, .arow, .jhead { display: grid; grid-template-columns: 2.4fr 1.6fr 1.1fr 1.9fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.arow, .jhead.a { grid-template-columns: 1.3fr 2.3fr 1.5fr 1.1fr .8fr; }
.jhead { padding: 6px 0; font-size: var(--fs-small); color: var(--muted); }
.job b, .arow b { display: block; font-weight: 600; }
.job span, .arow span { display: block; color: var(--muted); font-size: var(--fs-small); }
.job a.tel, .arow a.tel { font-size: var(--fs-small); }
.job .go { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.job .go .btn { min-height: 44px; white-space: nowrap; }
.job .go .more, .arow .more { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
.rowerr { grid-column: 1 / -1; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.filters select, .filters input { min-height: 44px; padding: 8px 12px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.filters input { flex: 1; min-width: 200px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-left: auto; }
.seg a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; color: var(--text); text-decoration: none; }
.seg a.on { background: var(--gold); color: #1a1405; font-weight: 600; }
.skelrow.s { height: 52px; margin: 6px 0; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.cal .dow { font-size: var(--fs-small); color: var(--muted); padding: 4px; }
.cal a, .cal i { min-height: 76px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; font-style: normal; display: block; }
.cal i.out { background: transparent; border-color: #1f1b12; }
.cal .n { font-weight: 600; }
.cal small { display: block; color: var(--muted); }
.cal a.today { border-color: var(--gold-strong); box-shadow: 0 0 0 1px var(--gold-strong); }
.cal i.closed { color: var(--muted); }
.cal i.closed small { color: var(--muted); }
.cal a.full small { color: var(--gold-strong); }
.monthnav { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.monthnav b { font-size: var(--fs-lead); font-weight: 600; }

/* Detail, forms */
.cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.actions .btn { min-height: 48px; }
.panel { padding: 16px; background: var(--surface); border: 1px solid var(--gold); border-radius: 12px; margin: 12px 0; }
.panel h2 { margin-bottom: 4px; }
.wide { max-width: 560px; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; font-size: var(--fs-small); color: var(--muted); }
.steps span { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; }
.steps span.on { background: var(--gold); border-color: var(--gold); color: #1a1405; font-weight: 600; }
.opts { margin: 8px 0; }
.opts label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; margin: 6px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.opts label:has(input:checked) { border-color: var(--gold-strong); box-shadow: 0 0 0 1px var(--gold-strong); }
.opts input { width: 22px; height: 22px; accent-color: var(--gold); margin: 0; flex: none; }
.opts label.off { opacity: .55; }
.field textarea { width: 100%; min-height: 72px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.field .hint { margin: 4px 0 0; }
.field .err { margin-top: 4px; }
.file { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px dashed var(--gold); border-radius: 10px; }
.file span { flex: 1; word-break: break-all; }
.bar { height: 8px; border-radius: 4px; background: #26262b; overflow: hidden; margin: 8px 0; }
.bar i { display: block; height: 100%; width: 60%; background: var(--gold); }

/* Links inside a banner or warning are controls: 44px tall (WB-11 fix) */
.banner a, .warnbox a { display: inline-flex; align-items: center; min-height: 44px; }
