/* Shared styles for the /committee/ app. Plain CSS, no framework, no
   relation to the public site's assets/css/style.css — its own Sylvara
   brand palette: white canvas, navy sidebar, forest primary actions. */

:root {
  /* This app is light-only, and says so.

     WITHOUT this declaration, Chrome's "Auto dark theme for web contents" and
     Samsung Internet's dark mode algorithmically re-colour the page — that
     behaviour targets sites that never declared a scheme, which was every page
     here. Mostly it just looks wrong, but it BREAKS the QR codes: the white
     quiet zone gets darkened and the modules can come back polarity-inverted,
     and a decoder needs dark-on-light with a clean quiet zone. A member with
     phone dark mode on could not be scanned in.

     Declaring a scheme opts the whole app out. Do not remove this to add a dark
     theme — build one with real tokens instead, and keep .qr-surface exempt. */
  color-scheme: light;

  /* Sylvara brand palette — primitives. Everything else in this file reads
     color through the --c-* aliases below, never these directly, so a
     future re-theme only ever touches this one block. */
  --sylvara-navy: #243354;    /* primary text, nav, headers */
  --sylvara-olive: #B9BE4A;   /* small accents/active states only — loud, use sparingly */
  --sylvara-forest: #456824;  /* success, "on duty" badges, primary buttons */
  --sylvara-umber: #342220;   /* body text / dark base */
  --sylvara-rust: #965539;    /* secondary accent, dividers */
  --sylvara-peach: #EE9E6D;   /* hover states, warm tint surfaces */
  --sylvara-cream: #FCDD8B;   /* card/light backgrounds */

  /* Semantic colors — distinct from the brand palette above on purpose,
     so alerts/badges never get confused with decorative accent usage. */
  --sylvara-error: #B3261E;   /* destructive actions, error alerts */
  --sylvara-warning: #C68A1E; /* warning alerts, caution states */
  --sylvara-info: #3E7CB1;    /* informational alerts */

  /* Semantic aliases — pure white page canvas. Elevated/card surfaces get a
     faint warm-white tint (not pure white) so they actually read as a
     surface against the page instead of vanishing into it — the previous
     all-#FFFFFF version left every card/input/row with nothing but an
     18%-opacity border to define it, which is why it read flat. */
  --c-bg: #FFFFFF;
  --c-bg-elevated: #FBF6EA;
  --c-bg-card: #FBF6EA;
  --c-border: rgba(150, 85, 57, 0.25);   /* rust-tinted, bumped up from 0.18 for definition */
  --c-text: var(--sylvara-umber);
  --c-text-muted: rgba(52, 34, 32, 0.6);
  --c-accent: var(--sylvara-forest);
  --c-accent-hover: #374f1d;             /* forest, deepened for hover/press */
  --c-warn: var(--sylvara-warning);
  --c-danger: var(--sylvara-error);
  --radius: 10px;
  --sidebar-w: 236px;

  /* Type scale — four sizes, four weights, each level a deliberate pairing
     rather than font-size alone driving hierarchy. */
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --fs-caption: 12px; /* table headers, uppercase labels */
  --fs-small: 13px;   /* muted secondary text, form labels, subtitles */
  --fs-body: 15px;    /* default body / UI text */
  --fs-h3: 16px;      /* card headers */
  --fs-h2: 18px;      /* in-page section headers */
  --fs-h1: 28px;      /* page-level titles */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  background-color: var(--c-bg);
  color: var(--c-text);
}

a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-hover); }

/* ---------- Typography ---------- */
h1, h2, h3 { color: var(--sylvara-navy); line-height: 1.25; }
h1 { margin: 0; font-size: var(--fs-h1); font-weight: var(--fw-extrabold); }
h2 { margin: 0 0 14px; font-size: var(--fs-h2); font-weight: var(--fw-bold); }
h3 { margin: 0; font-size: var(--fs-h3); font-weight: var(--fw-semibold); }

/* ---------- Sidebar navigation ---------- */
/* Fixed left rail rather than a top bar — Permissions.NAV_ITEMS runs to 15
   entries for elevated roles, which wraps a horizontal bar into a messy
   multi-row stack. A vertical list scales to any length instead. The
   sidebar is position:fixed (out of normal flow); body's margin-left
   (set above) reserves its width instead of wrapping both in a flex shell,
   so no HTML restructuring was needed on any of the 15 pages. */
.committee-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  z-index: 100;
  background: var(--sylvara-navy);
  display: flex;
  flex-direction: column;
}

.committee-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.committee-sidebar-brand img { height: 26px; }
.committee-sidebar-brand:hover { color: #fff; }
.committee-sidebar-close { display: none; }

.committee-nav-links {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.committee-nav-links::-webkit-scrollbar { width: 6px; }
.committee-nav-links::-webkit-scrollbar-track { background: transparent; }
.committee-nav-links::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 3px; }
.committee-nav-links::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

.committee-nav-links a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  margin: 1px 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
}
.committee-nav-links a i { font-size: 15px; width: 17px; text-align: center; opacity: 0.85; }
.committee-nav-links a:hover { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.9); }
.committee-nav-links a.active { background: rgba(255, 255, 255, 0.09); color: #fff; font-weight: 600; }
.committee-nav-links a.active i { opacity: 1; }
.committee-nav-links a.active::before {
  /* olive is reserved for exactly this: a small, loud active-state marker */
  content: "";
  position: absolute;
  left: -10px; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sylvara-olive);
}

.committee-sidebar-foot {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.committee-user-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.committee-user-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--sylvara-peach); color: var(--sylvara-navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12.5px;
}
.committee-user-meta { min-width: 0; }
.committee-user-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.committee-user-role { font-size: 11.5px; color: rgba(255, 255, 255, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.committee-logout-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12.5px; font-weight: 600;
  padding: 7px; border-radius: 7px; cursor: pointer;
}
.committee-logout-btn:hover { background: rgba(238, 158, 109, 0.16); border-color: var(--sylvara-peach); color: #fff; }

.committee-topbar-mobile { display: none; }
.committee-scrim { display: none; }

/* ---------- Layout ---------- */
.committee-main {
  max-width: 1200px;
  margin: 0 auto;
  margin-left: var(--sidebar-w); /* room for the fixed sidebar — scoped here, not body, so login.html (no sidebar) isn't pushed too */
  padding: 32px 20px 60px;
}

/* Mobile: the sidebar becomes an overlay drawer. This block MUST come after
   the .committee-main base rule above — both selectors have equal
   specificity, so if the base rule came later it would win and re-apply the
   236px margin on phones (content shifted sideways next to a blank gutter,
   which is exactly the bug this ordering fixes). */
@media (max-width: 860px) {
  .committee-main { margin-left: 0; }

  .committee-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18);
  }
  .committee-sidebar.open { transform: translateX(0); }

  .committee-scrim.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(36, 51, 84, 0.35);
    z-index: 90;
  }

  .committee-topbar-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 80;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
  }
  .committee-topbar-mobile img { height: 24px; }
  .committee-topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .committee-topbar-brand:hover { text-decoration: none; }
  .committee-topbar-title { font-weight: 700; font-size: 14px; color: var(--sylvara-navy); }
  .committee-nav-toggle {
    background: none; border: none; color: var(--sylvara-navy);
    font-size: 21px; padding: 2px; cursor: pointer; line-height: 1;
  }
  .committee-sidebar-close {
    display: block;
    margin-left: auto; background: none; border: none; color: rgba(255, 255, 255, 0.7);
    font-size: 20px; cursor: pointer; line-height: 1;
  }
}

.committee-eyebrow {
  display: inline-block;
  margin: 0 0 10px; padding: 3px 10px;
  font-size: var(--fs-caption); font-weight: var(--fw-semibold);
  letter-spacing: .02em;
  color: var(--sylvara-umber);
  background: var(--sylvara-cream);
  border-radius: 100px;
}
.committee-page-title { margin: 0 0 4px; font-size: var(--fs-h1); font-weight: var(--fw-extrabold); }
.committee-page-subtitle { margin: 0 0 28px; color: var(--c-text-muted); font-size: var(--fs-small); font-weight: var(--fw-medium); }

/* Section groups (dashboard categories, and reused by any page stacking
   multiple committee-card tables/forms vertically). */
.committee-section { margin-bottom: 40px; }
.committee-section:last-child { margin-bottom: 0; }

/* ---------- Cards / grid ---------- */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.committee-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(52, 34, 32, 0.05);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.committee-card:hover { border-color: var(--sylvara-peach); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(52, 34, 32, 0.10); }

.committee-card i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-size: 19px;
  color: var(--c-accent);
  background: rgba(69, 104, 36, 0.10);
  border-radius: 9px;
}
.committee-card p { margin: 0; font-size: 13px; color: var(--c-text-muted); }

/* Dashboard category tints — same 7 brand colors, applied per section so the
   grid isn't 15 identical green icons in a row. */
.committee-card--division i { color: var(--sylvara-rust); background: rgba(150, 85, 57, 0.10); }
.committee-card--events i { color: var(--sylvara-umber); background: rgba(238, 158, 109, 0.22); }
.committee-card--admin i { color: var(--sylvara-navy); background: rgba(36, 51, 84, 0.08); }

/* ---------- Forms ---------- */
.committee-form-group { margin-bottom: 16px; }
.searchable-select-wrapper { width: 100%; }
.committee-form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--c-text-muted);
}
.committee-input,
.committee-select,
.committee-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: var(--c-bg-elevated);
  color: var(--c-text);
  font-family: inherit;
  font-size: 14px;
}
.committee-input:focus,
.committee-select:focus,
.committee-textarea:focus {
  outline: none;
  border-color: var(--c-accent);
}

.committee-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: none;
  background: var(--c-accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.committee-btn:hover { background: var(--c-accent-hover); }
.committee-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.committee-btn-secondary { background: transparent; border: 1px solid var(--c-border); color: var(--c-text); }
.committee-btn-secondary:hover { background: rgba(238, 158, 109, 0.12); border-color: var(--sylvara-peach); }
.committee-btn-danger { background: var(--c-danger); color: #fff; }
.committee-btn-danger:hover { background: #8f1e17; }
.committee-btn-sm { padding: 6px 12px; font-size: var(--fs-small); }

/* ---------- Alerts ---------- */
.committee-alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.committee-alert-error { background: rgba(179, 38, 30, 0.08); border-color: var(--c-danger); color: var(--c-danger); }
.committee-alert-success { background: rgba(69, 104, 36, 0.08); border-color: var(--c-accent); color: var(--c-accent); }
.committee-alert-warning { background: rgba(198, 138, 30, 0.10); border-color: var(--c-warn); color: var(--c-warn); }
.committee-alert-info { background: rgba(62, 124, 177, 0.08); border-color: var(--sylvara-info); color: var(--sylvara-info); }

/* ---------- Badges ---------- */
.committee-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(150, 85, 57, 0.06);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
}
.committee-badge-accent { background: rgba(69, 104, 36, 0.10); border-color: var(--c-accent); color: var(--c-accent); }
.committee-badge-warn { background: rgba(198, 138, 30, 0.12); border-color: var(--c-warn); color: var(--c-warn); }
.committee-badge-danger { background: rgba(179, 38, 30, 0.10); border-color: var(--c-danger); color: var(--c-danger); }

/* ---------- QR surfaces ---------- */
/* Wrap every rendered QR in this. It is belt-and-braces on top of the
   color-scheme declaration at the top of the file: a QR is the one thing in
   this app that stops WORKING rather than merely looking wrong when a browser,
   OS or extension re-colours it, so it refuses each recolouring mechanism
   explicitly rather than trusting one opt-out to hold everywhere.

   The white background is not decoration — it is the quiet zone the decoder
   needs. Keep the padding. */
.qr-surface {
  background: #FFFFFF;
  color-scheme: light only;
  forced-color-adjust: none;   /* Windows High Contrast / forced-colors */
  -webkit-filter: none;
  filter: none;
  padding: 12px;
  border-radius: 8px;
  line-height: 0;
}
/* qrcodejs emits a <canvas>, falling back to an <img> — cover both. */
.qr-surface img,
.qr-surface canvas {
  -webkit-filter: none;
  filter: none;
  forced-color-adjust: none;
  max-width: 100%;
}

/* ---------- Table ---------- */
.committee-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.committee-table th, .committee-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
}
.committee-table th { color: var(--c-text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; border-bottom-color: var(--sylvara-rust); }
.committee-table tbody tr:hover { background: rgba(150, 85, 57, 0.04); }

/* ---------- Auth pages ---------- */
.committee-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.committee-auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 36px 30px;
  box-shadow: 0 1px 3px rgba(52, 34, 32, 0.06), 0 12px 32px rgba(52, 34, 32, 0.08);
}

.committee-auth-logo { display: flex; justify-content: center; margin-bottom: 20px; }
.committee-auth-logo img { height: 48px; }

.committee-auth-card h1 { font-size: 20px; text-align: center; margin: 0 0 4px; }
.committee-auth-card .committee-page-subtitle { text-align: center; margin-bottom: 24px; }

.committee-spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  color: var(--c-text-muted);
}
.committee-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: committee-spin 0.7s linear infinite;
}
@keyframes committee-spin { to { transform: rotate(360deg); } }

/* ---------- Toasts ---------- */
/* Replaces window.alert/showAlert() and the old coordinator-only
   #checkout-toast-container — one system for every "fire and forget"
   message in the app. See js/committee-ui.js: showToast(). */
.committee-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  max-width: 360px;
}
.committee-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-text-muted);
  color: var(--c-text);
  padding: 12px 14px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(52, 34, 32, 0.14);
  font-size: var(--fs-small);
  animation: committee-toast-in 0.2s ease;
}
.committee-toast-message { flex: 1; }
.committee-toast-success { border-left-color: var(--c-accent); }
.committee-toast-error { border-left-color: var(--c-danger); }
.committee-toast-warning { border-left-color: var(--c-warn); }
.committee-toast-out { animation: committee-toast-out 0.15s ease forwards; }
.committee-toast-close {
  background: none;
  border: none;
  color: var(--c-text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}
.committee-toast-close:hover { color: var(--c-text); }
@keyframes committee-toast-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes committee-toast-out {
  to { transform: translateX(12px); opacity: 0; }
}

/* ---------- Confirm / prompt dialog ---------- */
/* Replaces window.confirm/window.prompt. See js/committee-ui.js: showConfirm(), showPrompt(). */
.committee-dialog {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg-card);
  color: var(--c-text);
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 1px 3px rgba(52, 34, 32, 0.06), 0 16px 40px rgba(52, 34, 32, 0.16);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease, overlay 0.15s ease allow-discrete, display 0.15s ease allow-discrete;
}
.committee-dialog[open] { opacity: 1; transform: translateY(0); }
@starting-style {
  .committee-dialog[open] { opacity: 0; transform: translateY(8px); }
}
.committee-dialog::backdrop { background: rgba(52, 34, 32, 0); transition: background 0.15s ease allow-discrete; }
.committee-dialog[open]::backdrop { background: rgba(52, 34, 32, 0.35); }
.committee-dialog-message { margin: 0 0 16px; font-size: var(--fs-body); line-height: 1.5; }
.committee-dialog-input { margin-bottom: 16px; }
.committee-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Wider variant for pages with their own multi-field dialogs (borrow forms,
   record-detail popups) rather than the plain confirm/prompt above. */
.committee-dialog-wide { max-width: 480px; }
.committee-dialog h2 { margin-bottom: 4px; }
.committee-dialog-subtitle { margin: 0 0 18px; font-size: var(--fs-small); color: var(--c-text-muted); }
.committee-detail-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: var(--fs-body); margin-bottom: 18px; }
.committee-detail-grid dt { color: var(--c-text-muted); font-size: var(--fs-small); }
.committee-detail-grid dd { margin: 0; font-weight: var(--fw-semibold); }

/* ---------------------------------------------------------------------------
   Notification bell (js/notifications-ui.js)
   Floating rather than in the sidebar: the sidebar collapses on mobile, and an
   unread count you can only see after opening a menu is not a notification.
--------------------------------------------------------------------------- */
#notif-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 900; }

#notif-bell {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 22px;
  background: var(--c-primary, #0c0129); color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  display: flex; align-items: center; justify-content: center;
}
#notif-bell:hover { filter: brightness(1.15); }

#notif-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 10px; background: #d92d20; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
}

#notif-panel {
  position: absolute; right: 0; bottom: 62px; width: min(340px, calc(100vw - 36px));
  max-height: min(460px, 70vh); overflow-y: auto;
  background: var(--c-surface, #fff); color: var(--c-text, #14121f);
  border-radius: 14px; box-shadow: 0 10px 34px rgba(0, 0, 0, .22);
}
#notif-panel[hidden] { display: none; }

.notif-panel-head {
  padding: 13px 16px; font-weight: 700; font-size: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.notif-item {
  display: block; padding: 12px 16px; text-decoration: none; color: inherit;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.notif-item:hover { background: rgba(0, 0, 0, .035); }
.notif-unread { border-left: 3px solid var(--c-accent, #4338ca); }
.notif-item-title { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.notif-item-body { font-size: 12.5px; opacity: .82; line-height: 1.45; }
.notif-item-time { font-size: 11px; opacity: .55; margin-top: 5px; }

.notif-empty { padding: 26px 16px; text-align: center; font-size: 13px; opacity: .6; }

.notif-push-row {
  display: block; width: 100%; padding: 12px 16px; border: none;
  border-top: 1px solid rgba(0, 0, 0, .08); background: none; cursor: pointer;
  font: inherit; font-size: 12.5px; text-align: left; color: var(--c-accent, #4338ca);
}
.notif-push-row:hover { background: rgba(0, 0, 0, .035); }
.notif-push-muted { color: inherit; opacity: .7; cursor: default; line-height: 1.5; }

/* searchable-select.js marks the box when the typed text matches no option.
   The underlying <select> is cleared at that moment, so this is the only
   on-screen sign that nothing is selected — without it the input looks
   perfectly normal while holding a name the form will refuse. */
.searchable-select-wrapper input.searchable-no-match {
  border-color: #b3261e;
  background: #fff5f5;
}

/* Version stamp in the sidebar foot — deliberately quiet. */
#committee-version {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.35);
}

/* Shown when version.json disagrees with the APP_VERSION this page loaded,
   i.e. a deploy happened while the tab was open. Fixed to the bottom so it
   cannot be scrolled past, and it stays until acted on. */
/* Install prompt.
   Same fixed-bottom shape as the update banner so the two read as one family,
   in the accent green rather than navy — this one is an offer, not a warning.
   They never appear together; nav.js removes this one if the update bar shows. */
#committee-install-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 16px; background: #2f5d50; color: #fff;
  font-size: 13px; box-shadow: 0 -2px 12px rgba(0,0,0,.18);
}
#committee-install-banner span { max-width: 60ch; }
#committee-install-banner #committee-install-go {
  background: #fff; color: #2f5d50; border: 0;
  border-radius: 999px; padding: 6px 16px; font-family: inherit;
  font-weight: 700; font-size: 12px; cursor: pointer; flex: none;
}
/* Deliberately quiet next to Install, but a real 32px target — a dismiss you
   have to aim at is a dismiss that gets mis-tapped into an install. */
#committee-install-banner #committee-install-no {
  background: transparent; color: #fff; border: 0; opacity: .75;
  font-size: 20px; line-height: 1; cursor: pointer; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
}
#committee-install-banner #committee-install-no:hover { opacity: 1; background: rgba(255,255,255,.14); }

/* Sidebar entry. Sits above the version stamp in the foot. */
#committee-install-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  margin-bottom: 10px; padding: 9px 12px;
  background: transparent; color: inherit;
  border: 1.5px solid currentColor; border-radius: 10px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; opacity: .85;
}
#committee-install-btn:hover { opacity: 1; }

/* The iOS install steps are multi-line; every other dialog message is one
   sentence, so this changes nothing that already exists. */
.committee-dialog-message { white-space: pre-line; }

#committee-update-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 18px; background: var(--sylvara-navy, #243354); color: #fff;
  font-size: 13px; box-shadow: 0 -2px 12px rgba(0,0,0,.18);
}
#committee-update-banner button {
  background: #fff; color: var(--sylvara-navy, #243354); border: 0;
  border-radius: 999px; padding: 6px 16px; font-family: inherit;
  font-weight: 700; font-size: 12px; cursor: pointer;
}
