.amount-summary td {
  background: #f0f7f6;
  border-top: 2px solid var(--brand);
  font-weight: 800;
}

.amount-summary td:first-child { text-align: right; }
.amount-summary td:last-child { color: var(--brand); font-size: 16px; }
.profile-card { display: flex; flex-direction: column; }
.saved-records { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.saved-records h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.profile-record { padding: 12px 14px; background: #f7faf9; border: 1px solid #e3ecea; border-radius: 10px; margin-top: 9px; }
.record-summary > div { display: flex; align-items: center; gap: 8px; }
.profile-record p { margin: 5px 0 0; color: #526a67; white-space: normal; word-break: break-word; }
.record-tag { font-size: 11px; color: var(--brand); background: #dff2ee; border-radius: 12px; padding: 2px 7px; }
.record-actions { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.record-actions summary, .danger-btn { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px 11px; color: var(--brand); cursor: pointer; list-style: none; }
.record-actions summary::-webkit-details-marker { display: none; }
.danger-btn { color: var(--danger); }
.record-actions details[open] { width: 100%; }
.record-actions details[open] summary { width: max-content; margin-bottom: 10px; }
.record-edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.record-edit-form label { display: grid; gap: 4px; color: #536a67; font-size: 12px; font-weight: 600; }
.record-edit-form button { align-self: end; }
.order-note-cell { min-width: 180px; white-space: normal; }
.order-note-cell span { display: block; }
.order-info-card dl { margin: 0; }
.order-info-card dl div { padding: 9px 0; border-bottom: 1px solid #edf1f0; }
.order-info-card dl div:last-child { border-bottom: 0; }
.order-info-card dt { color: var(--muted); font-size: 12px; }
.order-info-card dd { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 600px) {
  .record-edit-form { grid-template-columns: 1fr; }
}
