/* PSC v2 Phase 7.5 — Editable Claim Form.
 *
 * Reads ONLY --bk-* semantic tokens. No raw hex. No new tokens introduced.
 * All buttons meet the 44px hit target rule; focus-visible ring uses the
 * Aesthetic Foundation gold accent. RTL-safe (no left/right offsets that
 * aren't logical).
 */

.cf-stage {
  padding: 1rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.cf-eyebrow {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bk-text-muted);
  font-weight: 600;
}

.cf-subtitle {
  font-size: .9rem;
  color: var(--bk-text);
  margin: .5rem 0 1.5rem;
}

/* ── Table ───────────────────────────────────────────────── */

.cf-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-sm);
  background: var(--bk-card);
}

.cf-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bk-card);
}

.cf-table th,
.cf-table td {
  padding: .65rem .75rem;
  text-align: start;
  font-size: .9rem;
  border-bottom: 1px solid var(--bk-border);
}

.cf-th {
  background: var(--bk-navy);
  color: var(--bk-card);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .75rem;
  position: sticky;
  top: 0;
  z-index: 1;
}

.cf-row:last-child td {
  border-bottom: none;
}

.cf-cell--readout {
  color: var(--bk-text);
}

.cf-cell--editable {
  background: var(--bk-gold-glow, var(--bk-card));
}

.cf-cell--computed {
  font-weight: 600;
  color: var(--bk-text);
}

.cf-cell--computed.is-negative {
  color: var(--bk-status-rejected, var(--bk-text));
}

.cf-cell--computed.is-positive {
  color: var(--bk-status-approved, var(--bk-text));
}

/* ── Input ──────────────────────────────────────────────── */

.cf-input {
  width: 100%;
  min-width: 5rem;
  padding: .4rem .55rem;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-sm);
  font: inherit;
  color: var(--bk-text);
  background: var(--bk-card);
}

.cf-input:focus {
  outline: none;
  border-color: var(--bk-gold);
}

.cf-input:focus-visible {
  outline: 2px solid var(--bk-gold);
  outline-offset: 2px;
}

.cf-input:disabled {
  background: var(--bk-border);
  color: var(--bk-text-muted);
  cursor: not-allowed;
}

/* ── Empty state ──────────────────────────────────────── */

.cf-empty {
  padding: 2rem;
  text-align: center;
  color: var(--bk-text-muted);
  background: var(--bk-card);
  border: 1px dashed var(--bk-border);
  border-radius: var(--bk-radius-sm);
}

/* ── Actions ──────────────────────────────────────────── */

.cf-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cf-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 1.25rem;
  border-radius: var(--bk-radius-sm);
  border: none;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .05s ease;
}

.cf-btn-primary {
  background: var(--bk-navy);
  color: var(--bk-card);
}

.cf-btn-primary:hover:not(:disabled) {
  background: var(--bk-navy-strong, var(--bk-navy));
}

.cf-btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.cf-btn-primary:disabled {
  background: var(--bk-text-muted);
  color: var(--bk-card);
  cursor: not-allowed;
  opacity: .7;
}

.cf-btn-outline {
  background: transparent;
  color: var(--bk-navy);
  border: 1px solid var(--bk-navy);
}

.cf-btn-outline:hover:not(:disabled) {
  background: var(--bk-navy);
  color: var(--bk-card);
}

.cf-btn-outline:active:not(:disabled) {
  transform: translateY(1px);
}

.cf-btn:focus-visible {
  outline: 2px solid var(--bk-gold);
  outline-offset: 2px;
}

/* ── Mobile ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .cf-stage {
    padding: .75rem 1rem;
  }
  .cf-actions {
    flex-direction: column-reverse;
  }
  .cf-btn {
    width: 100%;
  }
}
