/* =========================================================
   FHI ADMIN SCHEDULING — BLUE HEADERS, WHITE CARDS
   ========================================================= */

:root {
  --fhi-blue: #191970;
  --border-light: #e5e7eb;
  --bg-page: #f5f7fb;
  --text-dark: #0f172a;
  --text-muted: #64748b;
}

/* =========================
   TOP LAYOUT (matches navy structure)
   ========================= */

.topLayout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: stretch;
}

/* Ensure cards fill column height */
.topLayout .card {
  height: 100%;
}

/* Mobile fallback */
@media (max-width: 900px) {
  .topLayout {
    grid-template-columns: 1fr;
  }
}

/* ---------- GLOBAL ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-dark);
}

/* ---------- LAYOUT ---------- */
.wrap {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 18px 30px;
}

/* =========================
   TOP ROW LAYOUT (LOCKED)
   ========================= */

.topLayout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: stretch;
}

/* Make both cards fill height */
.topLayout .card {
  height: 100%;
}

/* Mobile stack */
@media (max-width: 900px) {
  .topLayout {
    grid-template-columns: 1fr;
  }
}

/* GRID CONTAINERS MUST BE WHITE */
.grid2 > div {
  background: #ffffff;
  border-radius: 14px;
}

/* ---------- CARDS ---------- */
.card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
}

/* ---------- HEADERS (ONLY PLACE BLUE IS ALLOWED) ---------- */
.cardTitle,
.calendarTop {
  background: var(--fhi-blue);
  color: #ffffff;
  padding: 14px 16px;
  font-weight: 800;
}

.calendarTop {
  display: flex;
  flex-direction: column;   /* STACK them vertically */
  justify-content: center;
  align-items: center;
  gap: 8px;                 /* vertical spacing between rows */
}

#activeInspector {
  font-size: 13px;
  opacity: 0.9;
}



/* ---------- CARD CONTENT ---------- */
.cardBody {
  padding: 16px;
  background: #ffffff;
}

/* ---------- SECTIONS ---------- */
.sectionTitle {
  font-weight: 800;
  margin: 16px 0 8px;
  color: var(--fhi-blue);
}

/* Section header with action button (Add Client / Add Agent) */
.sectionTitleRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

/* Smaller button for inline section actions */
.btn.small {
  padding: 4px 10px;
  font-size: 12px;
}

/* Repeatable blocks (future clone targets) */
.repeatBlock {
  margin-top: 8px;
}

.sectionBox {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px;
}

/* ---------- FORM ---------- */
.lbl {
  font-weight: 700;
  font-size: 13px;
  color: var(--fhi-blue);
  margin-bottom: 6px;
}

.field {
  margin-bottom: 14px;
}

.inp {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-dark);
}

/* ---------- SMALL INPUTS (template dropdowns) ---------- */
.inp.small {
  padding: 6px 10px;
  font-size: 12px;
  height: 30px;
  width: auto;
  min-width: 160px;
}


/* ---------- BUTTONS ---------- */
.btn {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--fhi-blue);
  background: #ffffff;
  color: var(--fhi-blue);
  font-weight: 800;
  cursor: pointer;
}

.btn:hover {
  background: var(--fhi-blue);
  color: #ffffff;
}

/* ---------- CALENDAR ---------- */
.calendarCard { margin-top: 18px; }

.calCell {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 6px;
}

/* HARD LOCK: top layout must stay side-by-side */
.topLayout {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr !important;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1100px) {
  .topLayout {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- CALENDAR GRID ---------- */
.calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.calHead {
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
}

.calEmpty {
  height: 48px;
}

.calCell {
  height: 48px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #ffffff;
}

/* ---------- DAY LIST ---------- */
.dayList {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dayRow {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #ffffff;
}

.dayLabel {
  font-weight: 700;
}

.dayMeta {
  color: var(--text-muted);
  font-size: 12px;
}

