/* Visit Detail Shared Styles */

/* Layout with fixed indicator */
.visit-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  position: relative;
}

.visit-sections {
  display: grid;
  gap: 20px;
}

/* Fixed Indicator Panel */
.visit-indicator {
  position: sticky;
  top: 24px;
  height: fit-content;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(16, 16, 20, 0.1);
  box-shadow: 0 8px 24px rgba(16, 16, 20, 0.1);
}

.indicator-progress {
  font-size: 14px;
  font-weight: 700;
  color: var(--sea);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16, 16, 20, 0.1);
}

.indicator-nav {
  display: grid;
  gap: 4px;
}

.indicator-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: rgba(16, 16, 20, 0.7);
  text-decoration: none;
  transition: all 0.15s ease;
}

.indicator-item:hover {
  background: rgba(59, 126, 140, 0.08);
  color: var(--sea);
}

.indicator-item.active {
  background: rgba(59, 126, 140, 0.12);
  color: var(--sea);
  font-weight: 600;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(16, 16, 20, 0.25);
  flex-shrink: 0;
}

.indicator-item.complete .indicator-dot {
  background: #7aa060;
  border-color: #7aa060;
}

.indicator-item.ongoing .indicator-dot {
  background: #c8a03c;
  border-color: #c8a03c;
}

.indicator-item.na .indicator-dot {
  background: rgba(16, 16, 20, 0.15);
  border-color: rgba(16, 16, 20, 0.15);
  position: relative;
}

.indicator-item.na .indicator-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -1px;
  right: -1px;
  height: 2px;
  background: rgba(16, 16, 20, 0.4);
  transform: rotate(-45deg);
}

.indicator-divider {
  height: 1px;
  background: rgba(16, 16, 20, 0.1);
  margin: 8px 0;
}

/* Indicator Actions */
.indicator-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 16, 20, 0.1);
}

.indicator-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.indicator-btn.primary {
  background: #7aa060;
  color: white;
}

.indicator-btn.primary:hover {
  background: #6a9050;
}

.indicator-btn.secondary {
  background: rgba(16, 16, 20, 0.06);
  color: rgba(16, 16, 20, 0.7);
}

.indicator-btn.secondary:hover {
  background: rgba(16, 16, 20, 0.1);
}

.indicator-btn.danger {
  background: rgba(200, 80, 80, 0.1);
  color: #a03030;
}

.indicator-btn.danger:hover {
  background: rgba(200, 80, 80, 0.15);
}

.indicator-btn.warning {
  background: rgba(200, 150, 50, 0.1);
  color: #8b6914;
}

.indicator-btn.warning:hover {
  background: rgba(200, 150, 50, 0.15);
}

/* Section Cards */
.visit-section {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(16, 16, 20, 0.08);
  scroll-margin-top: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: rgba(16, 16, 20, 0.85);
}

.section-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-status.pending {
  background: rgba(200, 160, 60, 0.15);
  color: #8a6a20;
}

.section-status.complete {
  background: rgba(100, 140, 80, 0.15);
  color: #4a6a3a;
}

.section-status.ongoing {
  background: rgba(59, 126, 140, 0.15);
  color: #2a6a7a;
}

.section-status.na {
  background: rgba(16, 16, 20, 0.08);
  color: rgba(16, 16, 20, 0.5);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Process Step Layout */
.process-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border: 1px solid rgba(16, 16, 20, 0.1);
  border-radius: 10px;
  margin-bottom: 12px;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step.completed {
  background: rgba(100, 140, 80, 0.05);
  border-color: rgba(100, 140, 80, 0.2);
}

.process-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 16, 20, 0.08);
  color: rgba(16, 16, 20, 0.5);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.process-step.completed .process-step-number {
  background: rgba(100, 140, 80, 0.15);
  color: #5a8a4a;
}

.process-step-content {
  flex: 1;
}

.process-step-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(16, 16, 20, 0.85);
  margin-bottom: 2px;
}

.process-step-status {
  font-size: 12px;
  color: rgba(16, 16, 20, 0.5);
}

.process-step.completed .process-step-status {
  color: #5a8a4a;
}

.process-step-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.process-step-btn {
  padding: 6px 14px;
  border: 1px solid rgba(59, 126, 140, 0.3);
  border-radius: 999px;
  background: white;
  font-size: 11px;
  font-weight: 500;
  color: var(--sea);
  cursor: pointer;
  transition: all 0.15s ease;
}

.process-step-btn:hover {
  background: rgba(59, 126, 140, 0.08);
  border-color: var(--sea);
}

.process-step-btn.update {
  background: rgba(59, 126, 140, 0.08);
}

.process-step-history-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(16, 16, 20, 0.12);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 12px;
  color: rgba(16, 16, 20, 0.4);
  transition: all 0.15s ease;
}

.process-step-history-btn:hover {
  border-color: var(--sea);
  color: var(--sea);
  background: rgba(59, 126, 140, 0.05);
}

/* Step History Dropdown */
.step-history-dropdown {
  margin-top: 10px;
  padding: 12px;
  background: rgba(16, 16, 20, 0.02);
  border: 1px solid rgba(16, 16, 20, 0.08);
  border-radius: 8px;
}

.step-history-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(16, 16, 20, 0.06);
  font-size: 12px;
}

.step-history-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-history-entry:first-child {
  padding-top: 0;
}

.step-history-status {
  font-weight: 500;
  color: rgba(16, 16, 20, 0.8);
}

.step-history-meta {
  text-align: right;
  color: rgba(16, 16, 20, 0.5);
  font-size: 11px;
}

/* Info Cards */
.info-card {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(16, 16, 20, 0.08);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.info-block {
  background: rgba(59, 126, 140, 0.08);
  border-radius: 12px;
  padding: 12px;
}

.info-block.highlight {
  background: rgba(59, 126, 140, 0.18);
}

.info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(16, 16, 20, 0.5);
  margin-bottom: 4px;
}

.info-value {
  font-size: 14px;
  color: rgba(16, 16, 20, 0.9);
}

.info-value a {
  color: var(--sea);
}

/* Status Tags */
.status-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-tag.upcoming,
.status-tag.scheduled {
  background: rgba(73, 127, 163, 0.15);
  color: #2a5d7a;
}

.status-tag.draft {
  background: rgba(150, 130, 100, 0.15);
  color: #6a5a3a;
}

.status-tag.ongoing {
  background: rgba(59, 126, 140, 0.2);
  color: #1f4f58;
}

.status-tag.completed {
  background: rgba(100, 140, 80, 0.15);
  color: #4a6a3a;
}

.status-tag.cancelled {
  background: rgba(200, 80, 80, 0.15);
  color: #a03030;
}

.status-tag.noshow {
  background: rgba(200, 150, 50, 0.15);
  color: #8b6914;
}

.status-tag.achieved {
  background: rgba(100, 140, 80, 0.2);
  color: #4a6a3a;
}

.status-tag.not-achieved {
  background: rgba(200, 150, 50, 0.15);
  color: #8b6914;
}

/* Header */
.detail-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-title h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(16, 16, 20, 0.6);
  text-decoration: none;
  margin-bottom: 8px;
}

.back-link:hover {
  color: var(--sea);
}

/* Visit Info Summary */
.visit-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: rgba(59, 126, 140, 0.06);
  border-radius: 12px;
  font-size: 14px;
}

.visit-summary-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.visit-summary-label {
  color: rgba(16, 16, 20, 0.5);
}

.visit-summary-value {
  font-weight: 600;
  color: rgba(16, 16, 20, 0.9);
}

.visit-summary-divider {
  width: 1px;
  height: 20px;
  background: rgba(16, 16, 20, 0.15);
}

/* Notes Section */
.section-notes {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 16, 20, 0.08);
}

.section-notes-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: rgba(16, 16, 20, 0.04);
  font-size: 12px;
  font-weight: 500;
  color: rgba(16, 16, 20, 0.6);
  cursor: pointer;
  transition: all 0.15s ease;
}

.section-notes-toggle:hover {
  background: rgba(16, 16, 20, 0.08);
}

.section-notes-toggle.expanded {
  background: rgba(59, 126, 140, 0.1);
  color: var(--sea);
}

.notes-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(16, 16, 20, 0.1);
  font-size: 10px;
  font-weight: 600;
}

.section-notes-content {
  margin-top: 12px;
}

.section-notes-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.note-entry {
  padding: 12px 14px;
  background: rgba(16, 16, 20, 0.02);
  border-radius: 10px;
  border-left: 3px solid rgba(59, 126, 140, 0.4);
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.note-source {
  display: flex;
  align-items: center;
  gap: 6px;
}

.note-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.note-badge.clerk {
  background: rgba(59, 126, 140, 0.15);
  color: #2a6a7a;
}

.note-badge.therapist {
  background: rgba(150, 120, 180, 0.15);
  color: #6a5a8a;
}

.note-author {
  font-size: 12px;
  font-weight: 500;
  color: rgba(16, 16, 20, 0.8);
}

.note-timestamp {
  font-size: 11px;
  color: rgba(16, 16, 20, 0.5);
}

.note-content {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(16, 16, 20, 0.8);
}

.add-section-note {
  display: grid;
  gap: 8px;
}

.add-section-note textarea {
  padding: 10px 12px;
  border: 1px solid rgba(16, 16, 20, 0.15);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  min-height: 60px;
  resize: vertical;
}

.add-section-note textarea:focus {
  outline: none;
  border-color: rgba(59, 126, 140, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 126, 140, 0.1);
}

.add-section-note button {
  justify-self: start;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: var(--sea);
  color: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

/* Activity Timeline */
.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(16, 16, 20, 0.08);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-time {
  font-size: 11px;
  color: rgba(16, 16, 20, 0.5);
  min-width: 80px;
  line-height: 1.4;
}

.timeline-event {
  font-size: 13px;
  color: rgba(16, 16, 20, 0.8);
}

.timeline-actor {
  font-weight: 600;
}

/* Session Link Card */
.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(59, 126, 140, 0.08);
  border-radius: 10px;
  font-size: 14px;
}

.link-card a {
  color: var(--sea);
  font-weight: 600;
}

/* Outcome Section */
.outcome-card {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.outcome-card.achieved {
  background: rgba(100, 140, 80, 0.08);
  border: 1px solid rgba(100, 140, 80, 0.2);
}

.outcome-card.not-achieved {
  background: rgba(200, 150, 50, 0.08);
  border: 1px solid rgba(200, 150, 50, 0.2);
}

.outcome-card.pending {
  background: rgba(16, 16, 20, 0.03);
  border: 1px dashed rgba(16, 16, 20, 0.15);
}

.outcome-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.outcome-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
}

.outcome-card.achieved .outcome-icon {
  background: rgba(100, 140, 80, 0.15);
  color: #5a8a4a;
}

.outcome-card.not-achieved .outcome-icon {
  background: rgba(200, 150, 50, 0.15);
  color: #8b6914;
}

.outcome-card.pending .outcome-icon {
  background: rgba(16, 16, 20, 0.08);
  color: rgba(16, 16, 20, 0.4);
}

.outcome-info {
  flex: 1;
}

.outcome-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(16, 16, 20, 0.5);
}

.outcome-value {
  font-size: 14px;
  font-weight: 600;
  color: rgba(16, 16, 20, 0.85);
}

.outcome-actions {
  display: flex;
  gap: 8px;
}

/* Dialog Styles */
.visit-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  width: min(90vw, 400px);
  box-shadow: 0 24px 48px rgba(15, 24, 40, 0.2);
}

.visit-dialog::backdrop {
  background: rgba(20, 24, 30, 0.45);
}

.dialog-content {
  padding: 24px;
}

.dialog-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
}

.dialog-form {
  display: grid;
  gap: 14px;
}

.dialog-field {
  display: grid;
  gap: 6px;
}

.dialog-field label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(16, 16, 20, 0.7);
}

.dialog-field input,
.dialog-field select,
.dialog-field textarea {
  border-radius: 8px;
  border: 1px solid rgba(16, 16, 20, 0.15);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: white;
}

.dialog-field input:focus,
.dialog-field select:focus,
.dialog-field textarea:focus {
  outline: none;
  border-color: rgba(59, 126, 140, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 126, 140, 0.1);
}

.dialog-field textarea {
  min-height: 60px;
  resize: vertical;
}

.dialog-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.dialog-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.dialog-btn.primary {
  background: var(--sea);
  color: white;
}

.dialog-btn.secondary {
  background: rgba(16, 16, 20, 0.08);
  color: rgba(16, 16, 20, 0.7);
}

.dialog-btn.danger {
  background: rgba(200, 80, 80, 0.1);
  color: #a03030;
}

/* Cancelled/NoShow State Overlay */
.visit-section.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.cancelled-banner,
.noshow-banner {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cancelled-banner {
  background: rgba(200, 80, 80, 0.08);
  border: 1px solid rgba(200, 80, 80, 0.2);
}

.noshow-banner {
  background: rgba(200, 150, 50, 0.08);
  border: 1px solid rgba(200, 150, 50, 0.2);
}

.banner-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
}

.cancelled-banner .banner-icon {
  background: rgba(200, 80, 80, 0.15);
  color: #a03030;
}

.noshow-banner .banner-icon {
  background: rgba(200, 150, 50, 0.15);
  color: #8b6914;
}

.banner-info {
  flex: 1;
}

.banner-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(16, 16, 20, 0.85);
}

.banner-detail {
  font-size: 12px;
  color: rgba(16, 16, 20, 0.6);
}

/* Fee Calculation Card */
.fee-calculation-card {
  background: rgba(59, 126, 140, 0.04);
  border: 1px solid rgba(59, 126, 140, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.fee-calc-header {
  margin-bottom: 12px;
}

.fee-calc-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(16, 16, 20, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.fee-label {
  color: rgba(16, 16, 20, 0.7);
}

.fee-amount {
  font-weight: 600;
  color: rgba(16, 16, 20, 0.9);
}

.fee-amount.discount {
  color: #5a8a4a;
}

.fee-amount.highlight {
  color: var(--sea);
  font-size: 16px;
}

.fee-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(16, 16, 20, 0.4);
}

.fee-section-divider::before,
.fee-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(16, 16, 20, 0.1);
}

.insurance-coverage-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.insurance-coverage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(16, 16, 20, 0.08);
}

.insurance-coverage-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.insurance-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(16, 16, 20, 0.85);
}

.insurance-detail {
  font-size: 11px;
  color: rgba(16, 16, 20, 0.5);
}

.fee-totals {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 16, 20, 0.1);
}

.fee-row.subtotal {
  color: rgba(16, 16, 20, 0.6);
  font-size: 13px;
}

.fee-row.copay {
  font-size: 13px;
}

.fee-row.total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(16, 16, 20, 0.15);
}

.fee-row.insurance-claim {
  font-size: 13px;
  color: rgba(16, 16, 20, 0.6);
}

/* Fee Confirmation */
.fee-confirmation {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 16, 20, 0.1);
}

.fee-confirmation-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
}

.fee-confirmation-status.pending {
  background: rgba(200, 160, 60, 0.08);
  border: 1px dashed rgba(200, 160, 60, 0.3);
}

.fee-confirmation-status.confirmed {
  background: rgba(100, 140, 80, 0.08);
  border: 1px solid rgba(100, 140, 80, 0.2);
}

.fee-confirmation-status .confirmation-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 16px;
  flex-shrink: 0;
}

.fee-confirmation-status.pending .confirmation-icon {
  background: rgba(200, 160, 60, 0.15);
  color: #8a6a20;
}

.fee-confirmation-status.confirmed .confirmation-icon {
  background: rgba(100, 140, 80, 0.15);
  color: #5a8a4a;
}

.fee-confirmation-status .confirmation-info {
  flex: 1;
}

.fee-confirmation-status .confirmation-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(16, 16, 20, 0.5);
}

.fee-confirmation-status .confirmation-value {
  font-size: 14px;
  font-weight: 500;
  color: rgba(16, 16, 20, 0.85);
}

.fee-confirmation-status.pending .confirmation-value {
  color: #8a6a20;
}

.fee-confirmation-status.confirmed .confirmation-value {
  color: #5a8a4a;
}

.confirm-fees-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: var(--sea);
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.confirm-fees-btn:hover {
  background: #2a6a7a;
}

.confirm-fees-btn:disabled {
  background: rgba(16, 16, 20, 0.1);
  color: rgba(16, 16, 20, 0.4);
  cursor: not-allowed;
}

/* Payment Records */
.payment-records {
  margin-bottom: 16px;
}

.payment-records-header {
  margin-bottom: 12px;
}

.payment-records-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(16, 16, 20, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.payment-record {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: white;
  border: 1px solid rgba(16, 16, 20, 0.1);
  border-radius: 10px;
  margin-bottom: 8px;
}

.payment-record:last-child {
  margin-bottom: 0;
}

.payment-record-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.payment-record.client-fee .payment-record-icon {
  background: rgba(200, 160, 60, 0.15);
  color: #8a6a20;
}

.payment-record.insurance-claim .payment-record-icon {
  background: rgba(59, 126, 140, 0.15);
  color: var(--sea);
}

.payment-record-info {
  flex: 1;
}

.payment-record-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(16, 16, 20, 0.85);
}

.payment-record-detail {
  font-size: 12px;
  color: rgba(16, 16, 20, 0.5);
}

.payment-record-amount {
  font-size: 16px;
  font-weight: 600;
  color: rgba(16, 16, 20, 0.9);
}

.payment-record-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.payment-record-status.unpaid {
  background: rgba(200, 160, 60, 0.15);
  color: #8a6a20;
}

.payment-record-status.paid {
  background: rgba(100, 140, 80, 0.15);
  color: #4a6a3a;
}

.payment-record-status.pending {
  background: rgba(59, 126, 140, 0.15);
  color: #2a6a7a;
}

.payment-record-status.submitted {
  background: rgba(150, 120, 180, 0.15);
  color: #6a5a8a;
}

/* Payment Steps Section */
.payment-steps-section {
  margin-top: 16px;
}

.payment-steps-header {
  margin-bottom: 12px;
}

.payment-steps-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(16, 16, 20, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 900px) {
  .visit-layout {
    grid-template-columns: 1fr;
  }

  .visit-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    top: auto;
    z-index: 100;
    max-width: 220px;
  }
}
