.record-detail-page {
  padding: 64px 0 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.record-detail-header {
  position: fixed;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 8px 16px;
  z-index: 25;
  transition: opacity 180ms ease;
}

.record-detail-title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.record-detail-back,
.record-detail-edit {
  background: transparent;
  border: none;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111827;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
}

.record-detail-back img {
  width: 18px;
  height: 18px;
}

.record-detail-header--hidden {
  opacity: 0;
  pointer-events: none;
}

.record-detail-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.record-detail-loading,
.record-detail-error {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.record-detail-card {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 20px 16px calc(24px + var(--nav-height) + env(safe-area-inset-bottom));

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.record-detail-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #cbb8ff 0%, #a88bff 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.record-detail-name {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

.record-detail-service {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #111827;
}

.record-detail-service-indicator {
  width: 4px;
  height: 14px;
  border-radius: 2px;
}

.record-detail-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 6px 0 10px;
}

.record-detail-action {
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #111827;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
}

.record-detail-action__icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: #111827;
  display: grid;
  place-items: center;
}

.record-detail-action__icon img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.record-detail-action--disabled {

  cursor: default;
}

.record-detail-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.record-detail-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.record-detail-row:last-child {
  border-bottom: none;
}

.record-detail-row__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

.record-detail-row__label img {
  width: 16px;
  height: 16px;
}

.record-detail-row__value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-align: right;
}

.record-detail-row--note {
  grid-template-columns: 1fr;
  align-items: flex-start;
}

.record-detail-row--note .record-detail-row__value {
  text-align: left;
  font-weight: 600;
}

.record-detail-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.record-detail-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
}

.record-detail-status--done .record-detail-status__dot {
  background: #22c55e;
}

.record-detail-status--pending .record-detail-status__dot {
  background: #94a3b8;
}

.record-detail-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}

.record-detail-btn {
  border: 1.5px solid #111827;
  border-radius: 16px;
  background: #fff;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
}

.record-detail-btn img {
  width: 18px;
  height: 18px;
}

.record-detail-btn--danger {
  border-color: #111827;
}
