/* HMS-1281 — hotel portal notes thread with the organizer
   (app/views/hotel/notes/index.html.erb). NO FIGMA: hotel portal tool. */

.hotel-notes__title {
  margin: 0;
  font-size: var(--wa-font-size-2xl, 1.5rem);
  font-weight: var(--wa-font-weight-bold, 700);
  color: var(--wa-color-text-normal);
}

.hotel-notes__event {
  margin: var(--wa-space-2xs, 4px) 0 var(--wa-space-m, 1rem);
  color: var(--wa-color-text-quiet);
  font-size: var(--wa-font-size-s, 0.9375rem);
}

/* Subtle bordered card so the empty state reads as a state, not loose text. */
.hotel-notes__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wa-space-xs, 0.5rem);
  margin-block-end: var(--wa-space-xl, 2rem);
  padding: var(--wa-space-2xl, 2rem) var(--wa-space-m, 1rem);
  text-align: center;
  background: var(--wa-color-surface-lowered, var(--wa-color-surface-default));
  border: 1px solid var(--wa-color-neutral-border-quiet);
  border-radius: var(--wa-border-radius-m);
}

.hotel-notes__empty-icon {
  font-size: var(--wa-font-size-2xl, 1.5rem);
  color: var(--wa-color-text-quiet);
}

.hotel-notes__empty-heading {
  margin: 0;
  font-weight: var(--wa-font-weight-semibold, 600);
  color: var(--wa-color-text-normal);
}

.hotel-notes__empty-text {
  margin: 0;
  color: var(--wa-color-text-quiet);
  font-size: var(--wa-font-size-s, 0.9375rem);
}

/* Air between the thread (or empty card) and the compose form, then between
   the textarea and the submit. Web Awesome controls carry their own
   margin-block-start, which is zeroed so the flex gap is the only spacing. */
.hotel-notes__form-title {
  margin: var(--wa-space-xl, 2rem) 0 var(--wa-space-s, 0.75rem);
  font-size: var(--wa-font-size-l, 1.125rem);
  color: var(--wa-color-text-normal);
}

.hotel-notes__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--wa-space-m, 1rem);
}

.hotel-notes__form wa-select,
.hotel-notes__form wa-textarea {
  width: 100%;
  max-width: 40rem;
  margin-block-start: 0;
}

.hotel-notes__form wa-button {
  margin-block-start: var(--wa-space-xs, 0.5rem);
}

.hotel-notes__form wa-button::part(base) {
  padding: var(--wa-space-s, 0.75rem) var(--wa-space-l, 1.5rem);
}

/* HMS-1312 — the Room block options sat too close: more vertical air inside
   each option, and a quiet divider under "Whole hotel" so the catch-all
   reads distinct from the individual blocks. The admin notes mirror shares
   the .notes-block-select class so the two surfaces cannot drift. */
.notes-block-select wa-option {
  padding-block: 0.75em;
}
.notes-block-select wa-option[value=""] {
  margin-bottom: var(--wa-space-2xs, 4px);
  border-bottom: 1px solid var(--wa-color-neutral-border-quiet);
}

/* HMS-1284 — long notes wrap inside the cell instead of stretching the table.
   table-layout: fixed pins the table to the wrap's width (min-width: 0 undoes
   the shared .hotel-table-wrap table { min-width: max-content } rule), the
   Note column holds 45%, and overflow-wrap breaks even unbroken strings so no
   note can force horizontal scrolling — the cell grows vertically. pre-wrap
   keeps the newlines the author typed in the textarea. */
.hotel-notes__table-wrap .hotel-notes__table {
  min-width: 0;
  table-layout: fixed;
}

.hotel-notes__table .hotel-notes__note-col {
  width: 45%;
}

.hotel-notes__table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.hotel-notes__table td.hotel-notes__body {
  white-space: pre-wrap;
}
