/* ---------------------------------------------------------------------------
 * Hospitality console styling.
 *
 * A separate stylesheet so it cannot collide with the main one, and so a
 * construction receptionist downloads rules that never match anything rather
 * than rules that might.
 *
 * Colours are inherited from the console's own custom properties wherever they
 * exist, with fallbacks, so this follows the existing dark theme instead of
 * declaring a second palette next to it.
 * ------------------------------------------------------------------------- */

.hosp-only.hidden { display: none !important; }

/* Count badge in the sidebar. */
.hosp-count {
  margin-left: auto;
  min-width: 1.4em;
  padding: 0 0.4em;
  border-radius: 999px;
  background: var(--accent, #6aa6ff);
  color: #0b0f14;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}
.hosp-count.hidden { display: none; }

.hosp-head h2 { margin: 0 0 0.25rem; }
.hosp-intro {
  margin: 0 0 1rem;
  max-width: 68ch;
  color: var(--muted, #9aa7b4);
  line-height: 1.5;
}

.hosp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.hosp-search {
  flex: 1 1 22rem;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border, #2a3240);
  background: var(--panel, #141a22);
  color: inherit;
  font: inherit;
}
.hosp-summary {
  color: var(--muted, #9aa7b4);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

/* Requests. */
.hosp-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
}
.hosp-card {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border, #2a3240);
  border-radius: 10px;
  background: var(--panel, #141a22);
}
.hosp-card.escalated { border-color: #c8553d; }
.hosp-card header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
}
.hosp-when {
  margin-left: auto;
  color: var(--muted, #9aa7b4);
  font-size: 0.8rem;
}
.hosp-contact {
  margin-bottom: 0.5rem;
  color: var(--muted, #9aa7b4);
  font-size: 0.9rem;
}

.hosp-pill {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hosp-pill.pending { background: #3a2f12; color: #e8c86a; }
.hosp-pill.captured { background: #14301f; color: #77c99a; }
.hosp-pill.emergency { background: #3a1714; color: #f0907f; }
.hosp-score {
  color: var(--muted, #9aa7b4);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.hosp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.4rem 0.9rem;
  margin: 0 0 0.5rem;
}
.hosp-facts dt {
  color: var(--muted, #9aa7b4);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hosp-facts dd { margin: 0; font-variant-numeric: tabular-nums; }

/* The one field on this screen with a safety consequence, so it does not sit
   in the grid with the seating preference. */
.hosp-allergy {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.6rem;
  border-left: 3px solid #e0a33e;
  border-radius: 4px;
  background: rgba(224, 163, 62, 0.09);
  line-height: 1.45;
}
.hosp-allergy span {
  display: block;
  color: #e0a33e;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hosp-summary-text {
  margin: 0.5rem 0 0;
  color: var(--muted, #9aa7b4);
  font-size: 0.9rem;
  line-height: 1.5;
}
.hosp-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed var(--border, #2a3240);
  border-radius: 10px;
  color: var(--muted, #9aa7b4);
  text-align: center;
}

/* Taking a booking by hand, and the FAQ reference. */
.hosp-booking {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border, #2a3240);
  border-radius: 10px;
  background: var(--panel, #141a22);
}
.hosp-booking summary { cursor: pointer; font-weight: 600; }
.hosp-note {
  margin: 0.6rem 0 0.9rem;
  max-width: 62ch;
  color: var(--muted, #9aa7b4);
  line-height: 1.5;
}
.hosp-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
}
.hosp-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted, #9aa7b4);
}
.hosp-form input,
.hosp-form select {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border, #2a3240);
  border-radius: 8px;
  background: var(--bg, #0e1319);
  color: var(--text, #e7edf3);
  font: inherit;
}
.hosp-form .hosp-wide { grid-column: 1 / -1; }
.hosp-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.hosp-msg { color: var(--muted, #9aa7b4); font-size: 0.9rem; }

.hosp-faq-list { display: grid; gap: 0.7rem; margin: 0; }
.hosp-faq-list dt { font-weight: 600; }
.hosp-faq-list dd {
  margin: 0.2rem 0 0;
  color: var(--muted, #9aa7b4);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .hosp-list { grid-template-columns: 1fr; }
  .hosp-when { margin-left: 0; }
}

/* --- Front of house summary, location filter, and their flags ----------- */

.hosp-overview { margin-bottom: 1.5rem; }
.hosp-overview-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}
.hosp-overview-head h2 { margin: 0; }

.hosp-location {
  margin-left: auto;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border, #2a3240);
  border-radius: 8px;
  background: var(--panel, #141a22);
  color: inherit;
  font: inherit;
}
/* In a toolbar it sits with the search box rather than pushed to the edge. */
.hosp-toolbar .hosp-location { margin-left: 0; flex: 0 0 auto; }

.hosp-overview-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}
.hosp-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border, #2a3240);
  border-radius: 10px;
  background: var(--panel, #141a22);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.hosp-stat.static { cursor: default; }
.hosp-stat:not(.static):hover { border-color: var(--accent, #6aa6ff); }
.hosp-stat:focus-visible { outline: 2px solid var(--accent, #6aa6ff); outline-offset: 2px; }
.hosp-stat-value {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hosp-stat-label { font-size: 0.85rem; }
.hosp-stat-note {
  color: var(--muted, #9aa7b4);
  font-size: 0.75rem;
}

.hosp-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.hosp-flag {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--panel, #141a22);
  border: 1px solid var(--border, #2a3240);
  color: var(--muted, #9aa7b4);
  font-size: 0.8rem;
}
.hosp-flag.urgent { border-color: #c8553d; color: #f0907f; }
.hosp-flag.allergy { border-color: #e0a33e; color: #e0a33e; }

.hosp-pill.nolocation { background: #24303a; color: #9aa7b4; }

@media (max-width: 720px) {
  .hosp-location { margin-left: 0; width: 100%; }
}
