/* Webbership back office: the screen blocks of the back-office shell (Page loads this after components.css).
   The shared atoms and molecules are in components.css; a class here belongs to one back-office screen. */
/* The back-office shell: the dark navigation strip and the main column. */
.w-bo { display: flex; flex-wrap: wrap; min-height: 100vh; }
.w-bo__nav { flex: 1 1 220px; max-width: 240px; background: var(--w-strip); color: var(--w-strip-ink); padding: var(--w-space-lg) var(--w-space-md); box-sizing: border-box; }
.w-bo__brand { display: flex; align-items: center; padding: var(--w-space-2xs) var(--w-space-sm) var(--w-space-lg); font-size: var(--w-text-sm); line-height: var(--w-leading-snug); }
.w-bo__brand small { color: var(--w-strip-ink-muted); }
.w-bo__link { display: block; min-height: var(--w-touch-min); line-height: var(--w-touch-min); padding: 0 var(--w-space-sm); border-radius: var(--w-radius-sm); color: var(--w-strip-ink); text-decoration: none; font-size: var(--w-text-sm); margin-bottom: var(--w-space-3xs); }
.w-bo__link--active { background: var(--w-accent); color: var(--w-on-accent); }
/* iOS 12 has no clamp(): it drops the second padding and keeps the first. Keep the clamp() line free of var(). */
.w-bo__main { flex: 999 1 600px; min-width: 0; padding: var(--w-space-2xl) var(--w-space-lg); padding: 24px clamp(16px, 3vw, 40px); box-sizing: border-box; }
.w-bo__user { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: var(--w-space-lg); padding: var(--w-space-md) var(--w-space-sm) 0; }
.w-bo__user small { color: var(--w-strip-ink-muted); }
.w-bo__signout { width: 100%; text-align: left; background: transparent; border: 0; font: inherit; font-size: var(--w-text-sm); cursor: pointer; padding: 0; }
/* Sign-in and café picker: the narrow column outside the shell (templ standalone). */
.w-auth { max-width: 420px; margin: 0 auto; padding: var(--w-space-4xl) var(--w-space-lg); }
.w-auth__brand { display: flex; align-items: center; margin-bottom: var(--w-space-2xl); font-size: var(--w-text-md); }
.w-choices { list-style: none; margin: 0 0 var(--w-space-lg); }
.w-choice { display: flex; align-items: center; justify-content: space-between; padding: var(--w-space-md) var(--w-pad-inset); border-top: 1px solid var(--w-hairline); }
.w-choice:first-child { border-top: 0; }
.w-signout { margin: 0; }
/* The component gallery (/_ui). */
.w-gallery { max-width: 1100px; margin: 0 auto; padding: var(--w-space-3xl) var(--w-space-lg); }
/* Device pairing: the QR code to scan. */
.w-pair { text-align: center; }
.w-pair__qr { display: block; margin: var(--w-space-sm) auto var(--w-space-lg); width: 320px; max-width: 100%; height: auto; image-rendering: pixelated; background: #fff; padding: var(--w-space-md); border-radius: var(--w-radius); }
/* Invoices: the standalone invoice's line rows, the outbox message. */
.w-inv-line { margin: var(--w-space-3xs) 0; }
.w-line-row { border: 0; border-top: 1px solid var(--w-hairline); padding: var(--w-space-md) 0 0; margin: 0 0 var(--w-space-sm); min-width: 0; }
.w-line-row:first-of-type { border-top: 0; padding-top: 0; }
.w-mail { white-space: pre-wrap; font: inherit; margin: 0; overflow-wrap: anywhere; }
/* Inventory counts: one card per item; the review's pairs. The entry row (w-count__form) is shared with the POS waste sheet and stays in components.css. */
.w-count { padding: var(--w-space-md) var(--w-space-lg); }
.w-count__head { display: flex; flex-wrap: wrap; align-items: baseline; }
.w-count__head .w-card__title { margin-right: var(--w-space-xs); }
.w-count__sum { flex: 1 0 100%; font-size: var(--w-text-sm); margin-top: var(--w-space-3xs); }
.w-count__entries { list-style: none; margin: var(--w-space-sm) 0 0; padding: 0; font-size: var(--w-text-sm); }
.w-count__entries li { display: flex; flex-wrap: wrap; align-items: center; }
.w-count__entries small { margin: 0 var(--w-space-sm) 0 var(--w-space-xs); }
.w-count__value { min-width: 90px; width: 110px; text-align: right; }
/* A flag's entry, and the entries a count keeps but does not count: greyed, struck through, apart. */
.w-count__what { margin: var(--w-space-3xs) 0 0; font-size: var(--w-text-sm); }
.w-count__excluded { color: var(--w-ink-muted); }
.w-count__excluded li { margin-bottom: var(--w-space-2xs); }
.w-count__gone { text-decoration: line-through; overflow-wrap: anywhere; }
.w-review { margin-top: var(--w-space-2xs); }
.w-count__head input[type="checkbox"] { width: 22px; height: 22px; vertical-align: middle; }
