/* Forms and tables. */

.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; display: block; }
.field-help { font-size: var(--fs-sm); color: var(--muted); }
.hive .form-select,
.input {
  min-height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background-color: var(--surface);
  color: var(--text);
  font-size: var(--fs-base);
  padding: 8px 12px;
  width: 100%;
  font-family: inherit;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
textarea.input { min-height: 96px; line-height: 1.55; }
.hive .form-select:focus,
.input:focus {
  border-color: var(--ember-500);
  box-shadow: var(--focus-ring);
  outline: none;
}
.input::placeholder { color: #8A94A7; }
.input[aria-invalid="true"] { border-color: var(--danger); }

.field { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--sp-4); }

.search-input {
  display: flex; align-items: center; gap: var(--sp-2);
  height: 40px; padding: 0 var(--sp-3);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: var(--surface);
}
.search-input i { color: var(--muted); }
.search-input input { border: 0; outline: 0; flex: 1; min-width: 0; font: inherit; color: var(--text); background: transparent; }
.search-input:focus-within { border-color: var(--ember-500); box-shadow: var(--focus-ring); }

/* ---- Tables ---- */
.table-wrap { width: 100%; overflow-x: auto; }
.hive .table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: var(--surface-2);
  --bs-table-hover-bg: var(--surface-2);
  --bs-table-border-color: var(--border);
  margin: 0;
  font-size: 13.5px;
  vertical-align: middle;
}
.hive .table > thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.hive .table > tbody td { padding: 11px 16px; border-color: var(--border); }
.hive .table > tbody tr:last-child td { border-bottom: 0; }
.hive .card > .table, .hive .card > .table-responsive > .table, .hive .card > .table-wrap > .table { margin: 0; }
.hive .card > .table thead th:first-child, .hive .card > .table-responsive .table thead th:first-child { border-top-left-radius: var(--r-lg); }

/* Inline field groups and radio/checkbox cards */
.field-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.field-row .field.grow { flex: 1 1 200px; }
.check { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer; }
.check:has(input:checked) { border-color: var(--ember-500); background: var(--accent-soft); }
.check input { margin-top: 3px; accent-color: var(--ember-700); }
.check b { display: block; font-weight: 600; }
.check small { color: var(--muted); }
@media (min-width: 900px) { .table-wrap:has(.menu) { overflow: visible; } }
