/* TravelBooks v17 */

/* every asterisk in red */
.req-star { color: #d4202a; font-weight: 700; margin-left: 1px; }

/* HOME: 10% welcome + tiles · 80% bookings register · 10% kept for later */
.home17 { display: flex; flex-direction: column; min-height: calc(100vh - 120px); gap: 12px; }
.h17-top { flex: 0 0 auto; min-height: 9vh; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.h17-hello h1 { margin: 0; font-size: 22px; }
.h17-tiles { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.t17 { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--panel);
  color: var(--ink); text-decoration: none; cursor: pointer; font: inherit; text-align: left; min-width: 170px; }
.t17:hover { border-color: var(--accent); }
.t17n { font-size: 22px; font-weight: 700; min-width: 28px; text-align: center; color: var(--accent); }
.t17t { display: flex; flex-direction: column; line-height: 1.25; }
.t17t span { font-size: 12px; color: var(--muted); }
.t17.hot { border-color: var(--warn); background: var(--warn-soft); }
.t17.hot .t17n { color: var(--warn); }
.h17-main { flex: 1 1 auto; min-height: 76vh; display: flex; flex-direction: column; padding: 12px 14px; margin: 0; }
.h17-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.h17-find { flex: 0 1 340px; max-width: 340px; margin: 0; position: relative; }
.h17-find input { width: 100%; }
.h17-tabs { margin: 0 !important; }
#h17reg { flex: 1 1 auto; min-height: 0; }
#h17reg .scroll { max-height: calc(76vh - 130px); overflow: auto; }
.h17-spare { flex: 0 0 9vh; }

/* booking form: invoice details right under each booking */
#entry13 tr.det13 td { background: var(--accent-soft); padding: 6px 8px 10px; }
.det13box { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.det13box label.f { min-width: 190px; margin: 0; }
.det13box > span { align-self: center; }

/* register: actions first, on one line */
table.reg th.acts-h, table.reg td.acts { position: sticky; left: 0; z-index: 2; background: var(--panel); white-space: nowrap; }
table.reg thead th.acts-h { z-index: 3; }
table.reg td.acts .btn { margin-right: 3px; }

/* vendor statement: own / other ledgers */
table.t tr.grp td { background: var(--accent-soft); font-size: 12.5px; }

/* chat in the top bar */
.chattop { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; opacity: .92; }
.chattop:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.chattop svg { width: 18px; height: 18px; }
.chattop[hidden] { display: none; }
