/* owner.html — dashboard. See /DESIGN.md section 5. */

.owner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

main.container {
  padding-bottom: var(--space-12);
}

.tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tab {
  flex: 1;
  min-height: 44px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-level-1);
  background: var(--surface-primary);
  border-radius: var(--radius-sm);
  font-size: var(--text-body-sm-size);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.tab.is-active {
  color: var(--accent-primary);
  border-color: transparent;
  background: var(--accent-subtle-bg);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.section-header .btn {
  width: auto;
  padding-inline: var(--space-4);
  min-height: 44px;
}

.qr-thumb {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  align-self: center;
  background: #ffffff;
}

.vehicle-card__head,
.device-row__head,
.request-row__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

/* .request-row__head is a real <button> (accordion trigger — see DESIGN.md "Request List
   Item"), not a <div>; reset native button chrome so it reads identically to the plain
   header rows on vehicle/device cards, and move the card's own padding onto the two direct
   children so the button doesn't visually clip to text width. The row's existing
   `gap: var(--space-3)` (from the shared .vehicle-card/.device-row/.request-row rule)
   still provides the vertical space between the head button and the response slot. */
.request-row {
  padding: 0;
}

button.request-row__head {
  width: 100%;
  background: none;
  border: none;
  margin: 0;
  padding: var(--space-4) var(--space-4) 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.request-row > .response-slot {
  padding: 0 var(--space-4) var(--space-4);
}

.request-row__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.request-row__chevron {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  transition: transform var(--duration-standard) var(--ease-in-out);
  flex-shrink: 0;
}

button.request-row__head[aria-expanded="true"] .request-row__chevron {
  transform: rotate(180deg);
}

.password-field {
  position: relative;
}

/* Reserve room so typed text never runs under the absolutely positioned toggle button. */
.password-field input {
  padding-right: 80px;
}

.password-toggle {
  position: absolute;
  right: var(--space-1);
  top: 26px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-body-sm-size);
  font-weight: 600;
  min-height: 44px;
  min-width: 44px;
  padding-inline: var(--space-2);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--text-primary);
}

.password-toggle[aria-pressed="true"] {
  color: var(--accent-primary);
}

.response-panel {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-3);
  margin-top: var(--space-1);
}

.btn.is-armed {
  background: var(--status-error-bg);
  color: var(--status-error);
  border-color: var(--status-error);
}
