/* Headsets tab — rental table, check-in / new-rental modals.
   Reuses the shared tokens (.btn, .modal-overlay, .field-input, .empty-row,
   .toast) from styles.css and the analytics classes from analytics.css;
   everything here is prefixed .hs- (plus .dh-hs- for the dashboard-home table). */

/* ─── Toolbar + sub-tabs (mirror .cc-subtab) ────────────────────────────────── */
.hs-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #ececec;
}
.hs-subtabs { display: flex; flex-wrap: wrap; gap: 4px; }
.hs-subtab {
  border: none; background: none; color: #777;
  padding: 7px 14px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.hs-subtab:hover { background: #f4f4f4; color: #333; }
.hs-subtab.active { background: #1c1c1c; color: #fff; }
.hs-actions-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.hs-panel.hidden { display: none; }

/* ─── Status / condition pills (mirror .cc-pill) ────────────────────────────── */
.hs-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
.hs-pill-ok   { background: #e6f4ec; color: #1f7a45; }
.hs-pill-out  { background: var(--gold-subtle, rgba(183,155,88,0.14)); color: var(--gold-dark, #9A8145); }
.hs-pill-inop { background: #fbe9e7; color: #B42318; }
.hs-pill-na   { background: #eee; color: #777; }
.hs-muted { color: #bbb; }

/* ─── Section heads ─────────────────────────────────────────────────────────── */
.hs-section-head {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #888;
  margin: 20px 0 8px; display: flex; align-items: center; gap: 8px;
}
.hs-section-head:first-child { margin-top: 0; }
.hs-section-n {
  background: #eee; color: #666; border-radius: 999px;
  font-size: 11px; padding: 1px 8px; letter-spacing: 0;
}

/* Awaiting-check-in callout — reuses the Dashboard tab's .dh-dnu banner card,
   with the functional .hs-table tucked inside it. */
.hs-awaiting-banner .hs-table { margin-bottom: 0; }

/* ─── Rental table ──────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.hs-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid #ececec; border-radius: 10px; overflow: hidden;
  margin-bottom: 8px; font-size: 14px;
}
.hs-table thead th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #999; padding: 10px 12px; border-bottom: 1px solid #ececec; white-space: nowrap;
}
.hs-table th.num, .hs-table td.num { text-align: right; }
.hs-table tbody td { padding: 11px 12px; border-bottom: 1px solid #f3f3f3; vertical-align: middle; color: #333; }
.hs-table tbody tr:last-child td { border-bottom: none; }
.hs-row { cursor: pointer; transition: background .1s; }
.hs-row:hover { background: #fafafa; }
.hs-row-awaiting { background: var(--gold-subtle, rgba(183,155,88,0.06)); }
.hs-row-awaiting:hover { background: var(--gold-subtle, rgba(183,155,88,0.12)); }
.hs-c-renter { min-width: 160px; }
.hs-renter-name { display: block; font-weight: 700; color: #1c1c1c; }
.hs-renter-sub { display: block; font-size: 12px; color: #999; }
.hs-c-action { text-align: right; white-space: nowrap; }

/* ─── Modals (check-in + new rental) ────────────────────────────────────────── */
.hs-form-dialog { max-width: 560px; }
.hs-form-meta { font-size: 13px; color: #888; margin: -6px 0 14px; }
.hs-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.hs-form-note { font-size: 12px; color: #888; margin: 12px 0 0; }

.hs-radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-radio {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid #e2e2e2; border-radius: 9px; padding: 8px 12px; cursor: pointer; font-size: 14px;
}
.hs-radio:has(input:checked) { border-color: var(--gold, #B79B58); background: var(--gold-subtle, rgba(183,155,88,0.08)); }
.hs-radio input { accent-color: var(--gold, #B79B58); }
.hs-form-dialog .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

.hs-actions { display: flex; align-items: center; gap: 8px; }
.hs-actions-spacer { flex: 1; }
.hs-danger { color: #B42318; }
.hs-danger:hover { background: #fbe9e7; }

.hs-an-note { font-size: 12px; color: #888; margin: 4px 0 12px; }

@media (max-width: 560px) {
  .hs-form-grid { grid-template-columns: 1fr; }
}

/* ─── Dashboard home table (rendered by dashboard-home.js) ───────────────────── */
.dh-hs { margin-bottom: 18px; }
.dh-hs-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid #e7d4a8; border-radius: 12px; overflow: hidden; font-size: 14px;
}
.dh-hs-table thead th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gold-dark, #9A8145); padding: 9px 12px;
  background: var(--gold-subtle, rgba(183,155,88,0.08)); border-bottom: 1px solid #e7d4a8; white-space: nowrap;
}
.dh-hs-table th.num, .dh-hs-table td.num { text-align: right; }
.dh-hs-row { cursor: pointer; transition: background .1s; }
.dh-hs-row:hover { background: var(--gold-subtle, rgba(183,155,88,0.08)); }
.dh-hs-table tbody td { padding: 10px 12px; border-bottom: 1px solid #f3eede; color: #333; }
.dh-hs-table tbody tr:last-child td { border-bottom: none; }
.dh-hs-name { font-weight: 700; color: #1c1c1c; }
.dh-hs-go { color: var(--gold-dark, #9A8145); font-weight: 700; font-size: 12px; white-space: nowrap; }
