/* Brainzie Meetflow base styling: a thin layer over team.core's component library
   (teamcore-components.css). It sets the page chrome the component CSS deliberately
   leaves to the host, and brands the generic tcc-* components with Brainzie colours. */

:root {
  --bm-ink: #18122B;
  --bm-muted: #6B6385;
  --bm-line: #ECE7F2;
  --bm-brand: #D81B72;
  --bm-brand-deep: #A8155A;
  --bm-paper: #FDFBFE;

  /* Brand the team.core buttons (the components read these). */
  --tcc-btn-primary-bg: #D81B72;
  --tcc-btn-primary-fg: #ffffff;
  --tcc-btn-primary-bg-hover: #A8155A;
  --tcc-btn-radius: 10px;
}

html, body { margin: 0; }
body { font-family: var(--tcc-font); color: var(--bm-ink); background: var(--bm-paper); }

/* Top navigation */
.bm-nav { display: flex; align-items: center; gap: 1.25rem; padding: 0.85rem 1.75rem; background: #fff; border-bottom: 1px solid var(--bm-line); }
.bm-nav__brand { font-weight: 700; color: var(--bm-brand-deep); margin-right: 0.5rem; text-decoration: none; font-size: 1.05rem; }
.bm-nav a { color: var(--bm-ink); text-decoration: none; font-weight: 500; }
.bm-nav a:hover { color: var(--bm-brand-deep); }
/* User-profile icon, pinned to the right of the bar. */
.bm-nav__profile { margin-left: auto; font-size: 1.25rem; line-height: 1; text-decoration: none; }

/* Page */
.bm-main { max-width: 64rem; margin: 0 auto; padding: 2rem 1.75rem; }

/* Always-visible (but unobtrusive) legal links, shown on every page below the content. */
.bm-legal { margin: 1.75rem auto 0.9rem; text-align: center; font-size: 0.82rem; color: var(--bm-muted); }
.bm-legal a { color: var(--bm-muted); text-decoration: none; }
.bm-legal a:hover { color: var(--bm-brand-deep); text-decoration: underline; }
.bm-legal__sep { margin: 0 0.5rem; opacity: 0.6; }
.bm-h1 { font-size: 1.6rem; margin: 0 0 0.25rem; }
.bm-intro { color: var(--bm-muted); margin: 0 0 1.5rem; }

/* Toolbar + input */
.bm-toolbar { display: flex; gap: 0.5rem; margin: 1rem 0; flex-wrap: wrap; }
.bm-input { padding: 0.5rem 0.7rem; border: 1px solid var(--bm-line); border-radius: 10px; font: inherit; min-width: 18rem; }
.bm-input:focus { outline: none; border-color: var(--bm-brand); }

/* Table */
.bm-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--bm-line); border-radius: 12px; overflow: hidden; }
.bm-table th, .bm-table td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--bm-line); }
.bm-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--bm-muted); background: #FAF7FC; }
.bm-table tr:last-child td { border-bottom: none; }

.bm-badge { margin-left: 0.5rem; font-size: 0.75rem; color: var(--bm-muted); font-style: italic; }
/* Entry-state badges (host accept/reject view): solid pills, not italic. */
.bm-badge--ok, .bm-badge--no, .bm-badge--wait, .bm-badge--pending { margin-left: 0; padding: 0.1rem 0.5rem; border-radius: 999px; font-style: normal; font-weight: 600; }
.bm-badge--ok { color: #0B6B3A; background: #E3F5EA; }
.bm-badge--no { color: #9A1B2F; background: #FBE6EA; }
.bm-badge--wait { color: #8A5A00; background: #FBF1DA; }
.bm-badge--pending { color: var(--bm-muted); background: var(--bm-line); }
.bm-empty, .bm-loading { color: var(--bm-muted); }

/* Meet create form */
.bm-create { background: #fff; border: 1px solid var(--bm-line); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1rem 0 1.75rem; }
.bm-h2 { font-size: 1.2rem; margin: 0 0 1rem; }
.bm-h3 { font-size: 1.02rem; margin: 0; }
.bm-h4 { font-size: 0.9rem; margin: 0; color: var(--bm-muted); }
.bm-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem 1rem; }
.bm-form-grid label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--bm-muted); }
.bm-form-grid .bm-input { min-width: 0; }
.bm-input--sm { min-width: 8rem; }
.bm-input--xs { min-width: 5rem; max-width: 6rem; }
.bm-form-grid--schedule { margin-top: 0.75rem; align-items: end; }

/* Grouped hire-window (start → end kept together) */
.bm-fieldset { border: 1px solid var(--bm-line); border-radius: 10px; padding: 0.5rem 0.9rem 0.8rem; margin: 0; }
.bm-fieldset legend { font-size: 0.8rem; color: var(--bm-muted); padding: 0 0.4rem; }
.bm-daterange { display: flex; align-items: end; gap: 0.6rem; }
.bm-daterange label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; color: var(--bm-muted); }
.bm-daterange__arrow { padding-bottom: 0.55rem; color: var(--bm-muted); }

.bm-sessions { margin: 1.25rem 0 0.5rem; }
.bm-sessions__head { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0; }
.bm-session { border: 1px solid var(--bm-line); border-radius: 10px; padding: 0.9rem 1rem; margin: 0.6rem 0; background: var(--bm-paper); }
.bm-events { margin-top: 0.75rem; }

/* Programme builder + wizard */
.bm-section-head { margin-top: 1.5rem; }
.bm-help { color: var(--bm-muted); font-size: 0.85rem; margin: 0.25rem 0 0.75rem; }
.bm-events-builder { margin: 0.5rem 0 0.75rem; }
.bm-field-block { max-width: 34rem; margin: 0.5rem 0 0.75rem; }
.bm-label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--bm-muted); }
.bm-ageasof { margin-top: 0.75rem; }

/* Collapsible sections */
.bm-section { border: 1px solid var(--bm-line); border-radius: 12px; padding: 0.4rem 1.1rem 1rem; margin: 0.75rem 0; background: #fff; }
.bm-section__head { cursor: pointer; font-weight: 700; color: var(--bm-brand-deep); padding: 0.6rem 0; font-size: 1.05rem; list-style: revert; }
.bm-section[open] > .bm-section__head { border-bottom: 1px solid var(--bm-line); margin-bottom: 0.75rem; }
.bm-eventgroup { align-items: center; flex-wrap: wrap; }
.bm-eventgroup__dists { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.bm-checkpill { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; border: 1px solid var(--bm-line); border-radius: 999px; padding: 0.2rem 0.6rem; cursor: pointer; }
.bm-running-order { margin: 0.5rem 0 0; padding-left: 1.4rem; }
.bm-running-order li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.2rem 0; border-bottom: 1px dashed var(--bm-line); }
.bm-running-order li:last-child { border-bottom: none; }
.bm-running-order__ctl { display: inline-flex; gap: 0.2rem; flex-shrink: 0; }
