/* Back office (managers). Uses the site's colours from styles.css; fallbacks for older browsers via compat.js. */
body.bo { background: #f3f1ee; color: var(--ink); margin: 0; }
.bo-app { display: flex; min-height: 100vh; }
body.bo [hidden] { display: none !important; }
.bo-nav { width: 210px; flex-shrink: 0; background: #1b1918; color: #e9e5df; padding: 18px 10px; display: flex; flex-direction: column; }
.bo-nav > * + * { margin-top: 4px; }
.bo-brand { font: 600 19px var(--head); letter-spacing: .04em; padding: 4px 10px 16px; }
.bo-brand small { display: block; font: 400 12px var(--body); letter-spacing: 0; color: #9c958d; }
.bo-nav button { font: inherit; text-align: left; padding: 11px 12px; border-radius: 8px; border: 0; background: transparent; color: #e9e5df; cursor: pointer; }
.bo-nav button.on { background: rgba(255, 255, 255, .1); font-weight: 600; }
.bo-soon { font-size: 12px; color: #8a837b; padding: 14px 12px; line-height: 1.4; }
.bo-who { margin-top: auto !important; font-size: 12px; color: #9c958d; padding: 10px 12px; word-break: break-all; }
.bo-out { color: #d9b1b9 !important; }
.bo-main { flex: 1; min-width: 0; padding: 24px; }
.bo-main h1 { font: 600 26px var(--head); text-transform: uppercase; margin: 0 0 4px; }
.bo-sub { color: var(--muted); margin: 0 0 18px; max-width: 70ch; }
.bo-bar { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.bo-bar > * { margin: 0 8px 8px 0; }
.bo-btn { font: inherit; font-weight: 600; padding: 9px 14px; border-radius: 8px; border: 1px solid #d8d3cc; background: #fff; color: var(--ink); cursor: pointer; }
.bo-btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.bo-btn.danger { color: var(--red); }
.bo-btn:disabled { opacity: .5; cursor: default; }
.bo-cats { display: flex; flex-wrap: wrap; margin-bottom: 12px; }
.bo-cats button { font: inherit; font-size: 14px; padding: 7px 12px; margin: 0 6px 6px 0; border-radius: 999px; border: 1px solid #d8d3cc; background: #fff; color: var(--ink); cursor: pointer; }
.bo-cats button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.bo-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2ddd6; border-radius: 12px; overflow: hidden; }
.bo-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px; border-bottom: 1px solid #e2ddd6; }
.bo-table td { padding: 10px; border-bottom: 1px solid #eee9e3; vertical-align: middle; }
.bo-table tr.row { cursor: pointer; }
.bo-table tr.row:hover td { background: #faf8f5; }
.bo-thumb { width: 64px; height: 48px; border-radius: 6px; background: #ece8e2; object-fit: cover; display: block; }
.bo-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bo-desc { color: var(--muted); font-size: 13px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.pill.on { background: #e5f3ea; color: #1b7a3d; }
.pill.part { background: #fdf1df; color: #a15c00; }
.pill.changed { background: #e9eefb; color: #2b4aa8; }
.bo-drawer-bg { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .35); z-index: 40; }
.bo-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%; background: #fff; z-index: 41; padding: 22px; overflow-y: auto; box-shadow: -8px 0 24px rgba(0, 0, 0, .15); }
.bo-drawer h2 { font: 600 22px var(--head); text-transform: uppercase; margin: 0 0 14px; }
.bo-f { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.bo-f span { font-weight: 400; color: var(--muted); }
.bo-f input, .bo-f select, .bo-f textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 5px; font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid #d8d3cc; border-radius: 8px; }
.bo-row2 { display: flex; }
.bo-row2 > * { flex: 1; min-width: 0; }
.bo-row2 > * + * { margin-left: 10px; }
.bo-where > div, .bo-avail > div { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border: 1px solid #e2ddd6; border-radius: 8px; margin-bottom: 6px; background: #fff; }
.bo-seg { display: inline-flex; border: 1px solid #d8d3cc; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.bo-seg button { font: inherit; font-size: 13px; padding: 6px 11px; border: 0; background: #fff; color: var(--ink); cursor: pointer; }
.bo-seg button.on { background: var(--ink); color: #fff; }
.bo-seg button.on.out { background: var(--red); }
.bo-note { font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.bo-err { color: var(--red); font-weight: 600; min-height: 20px; }
.bo-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 8px; font-weight: 600; z-index: 50; }
.staff-login { max-width: 400px; margin: 8vh auto; background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.staff-login h2 { font: 600 26px var(--head); text-transform: uppercase; }
.staff-login .f { display: block; text-align: left; font-weight: 600; margin-bottom: 12px; }
.staff-login .f input { display: block; width: 100%; box-sizing: border-box; margin-top: 5px; font: inherit; padding: 10px; border: 1px solid #d8d3cc; border-radius: 8px; }
.staff-login .err { color: var(--red); min-height: 20px; margin-bottom: 8px; }
.bo-photo { margin-bottom: 16px; }
.bo-photo-frame { width: 100%; max-width: 360px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #ece8e2; display: flex; align-items: center; justify-content: center; }
.bo-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bo-nophoto { color: var(--muted); font-size: 14px; }
label.bo-btn { display: inline-block; }
.bo-hours { display: grid; gap: 6px; }
.bo-day { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.bo-daychk { width: 120px; font-weight: 400; display: flex; align-items: center; gap: 6px; }
.bo-day input[type=time] { font: inherit; padding: 6px 8px; border: 1px solid #d8d3cc; border-radius: 8px; }
.bo-day input[type=time]:disabled { opacity: .4; }
.bo-to { color: var(--muted); font-size: 13px; }
.bo-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.bo-split > * { flex: 1 1 300px; min-width: 0; }
.bo-card { background: #fff; border: 1px solid #e2ddd6; border-radius: 12px; padding: 18px; }
.rc { background: #fff; width: 300px; max-width: 100%; padding: 18px 14px 24px; font: 13px/1.45 ui-monospace, Consolas, monospace; color: #111; box-shadow: 0 2px 12px rgba(0,0,0,.12); border-radius: 2px; }
.rc-c { text-align: center; }
.rc-title { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.rc-big { font-weight: 700; font-size: 15px; }
.rc-rule { border-top: 1px dashed #999; margin: 8px 0; }
.rc-l { display: flex; justify-content: space-between; gap: 8px; }
.rc-opt { color: #555; padding-left: 14px; }
.rc-strap { font-weight: 700; margin: 8px 0; }
.bo-h2 { font: 600 20px var(--head); text-transform: uppercase; margin: 28px 0 4px; }
.bo-pinform { display: flex; align-items: center; flex-wrap: wrap; }
.bo-pinform input { width: 130px; font: inherit; padding: 8px 10px; border: 1px solid #d8d3cc; border-radius: 8px; margin-right: 8px; }
.bo-avail > div { flex-wrap: wrap; }
.bo-empty { color: var(--muted); padding: 20px 0; }
@media (max-width: 760px) {
  .bo-app { display: block; }
  .bo-nav { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .bo-brand, .bo-soon, .bo-who { display: none; }
  .bo-main { padding: 16px; }
  .bo-table .hide-s { display: none; }
}

/* Noodle Club screen */
.tk-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.tk-tile { flex: 1 1 150px; padding: 12px 14px; border: 1px solid #e2ddd6; border-radius: 12px; background: #fff; }
.tk-tile span { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tk-tile b { display: block; font: 600 26px var(--head); }
.tk-tile.main { background: var(--ink); color: #fff; border-color: var(--ink); }
.tk-tile.main span { color: #bbb; }
.bo-search { flex: 1 1 260px; font: inherit; padding: 9px 10px; border: 1px solid #d8d3cc; border-radius: 8px; }
.club-done { background: #e5f3ea; color: #1b7a3d; padding: 12px; border-radius: 10px; font-weight: 600; }
