/* Today board, Jobs and the crew app. Colours only through tokens.css (docs/BRAND.md). */

/* ---- Room chips: room colours mark rooms only, white text passes on all three ---------------- */

.room-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.room--premium { background: var(--room-premium); }
.room--superior { background: var(--room-superior); }
.room--deluxe { background: var(--room-deluxe); }
/* Standard (Zebra, Hippo) has no colour in the brand guide (v2): outlined in forest until it does. */
.room--standard { background: var(--linen); color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); }

/* ---- Status: a word and an icon, never colour alone -------------------------------------------- */

.status { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; color: var(--forest); }
.status--dirty { color: var(--alert); }
.status--job { font-size: 14px; white-space: nowrap; color: var(--ink); }
.icon { flex: none; }

.count {
  display: inline-block; min-width: 26px; padding: 0 8px;
  background: var(--linen); border: 1px solid var(--hair); border-radius: 999px;
  font: 700 14px var(--font-body); color: var(--ink); text-align: center;
  font-variant-numeric: tabular-nums;
}

.card--alert { background: var(--alert-bg); border-color: var(--alert); border-left: 4px solid var(--alert); }
.card--alert h2 { color: var(--alert); display: flex; align-items: center; gap: 8px; }

/* ---- Rows -------------------------------------------------------------------------------------- */

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); flex-wrap: wrap; }
.row:first-child { border-top: 0; padding-top: 0; }
.row__main { flex: 1 1 200px; min-width: 0; }
.row .small { margin-top: 2px; }
.time { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--forest); min-width: 52px; font-variant-numeric: tabular-nums; }
.tel { font-weight: 700; white-space: nowrap; min-height: var(--tap); display: inline-flex; align-items: center; }

/* ---- Today: the four rooms, then the lists --------------------------------------------------- */

.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.room-card { background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius-card); padding: 12px; display: grid; gap: 8px; }
.room-card p { margin: 0; }
.room-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.board { display: grid; gap: 0 16px; }

@container (min-width: 760px) {
  .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board { grid-template-columns: 1fr 1fr; }
}

/* ---- Jobs (office) ----------------------------------------------------------------------------- */

.job-head p { margin: 0 0 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.reports { list-style: none; margin: 0; padding: 0; }
.report { padding: 10px 0; border-top: 1px solid var(--hair); }
.report:first-child { border-top: 0; padding-top: 0; }
.report p { margin: 0 0 4px; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.photos img { width: 140px; height: 105px; object-fit: cover; border-radius: var(--radius-button); border: 1px solid var(--hair); }

/* ---- Crew: phone only, big targets, one main button pinned at the bottom ---------------------- */

.crew-group h2 { font-size: 20px; margin: 20px 0 8px; }
.crew-card {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius-card);
  padding: 14px; margin-bottom: 10px; min-height: 64px;
  color: var(--ink); text-decoration: none;
}
.crew-card__main { flex: 1 1 160px; display: grid; gap: 2px; }
.crew-card:hover { border-color: var(--gold); }

.outbox {
  margin: 12px 0 0; padding: 8px 12px; border-radius: var(--radius-button);
  background: var(--alert-bg); color: var(--alert); font-weight: 700;
}

.dock {
  position: sticky; bottom: 0;
  margin: 16px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--linen); border-top: 1px solid var(--hair);
}
.btn--big { width: 100%; min-height: 58px; font-size: 18px; background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn--big:hover { background: var(--forest-deep); }
.btn:disabled { opacity: 0.6; cursor: default; }

.crew-form .dock { margin-left: -16px; margin-right: -16px; }
.checklist { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.checklist legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.checklist .check { min-height: var(--tap); border-bottom: 1px solid var(--hair); }

/* On a crew phone the main button is always at the bottom of the screen, under the thumb. */
.is-crew .dock { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 5; }
.is-crew .screen { padding-bottom: 120px; }
