/* appointmentdetailsmodal.css */

.appointment-details-modal.hidden {
  display: none !important;
}

.appointment-details-modal {
  position: fixed;
  inset: 0;
  z-index: 13050;
}

.appointment-details-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
}

.appointment-details-modal-shell {
  position: relative;
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  margin: 32px auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.appointment-details-modal-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid #e2e8f0;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
}

.appointment-details-heading {
  min-width: 0;
}

.appointment-details-modal-kicker {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c3aed;
}

.appointment-details-modal-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #0f172a;
}

.appointment-details-modal-subtitle {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
}

.appointment-details-delete-btn,
.appointment-details-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #334155;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.appointment-details-delete-btn:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

.appointment-details-modal-close {
  font-size: 24px;
}

.appointment-details-modal-close:hover {
  background: #f8fafc;
}

.appointment-details-modal-body {
  padding: 24px 26px 28px;
  overflow: auto;
  max-height: calc(100vh - 170px);
  background: #f8fafc;
}

.appointment-details-loading,
.appointment-details-error,
.appointment-details-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  padding: 22px;
  color: #475569;
}

.appointment-details-error-title {
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 6px;
}

.appointment-details-error-text {
  color: #475569;
}

.appointment-details-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.appointment-details-value-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
  min-width: 0;
}

.appointment-details-value-label {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.appointment-details-value-text {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}

.appointment-details-section {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
  margin-top: 14px;
}

.appointment-details-section-title {
  margin-bottom: 10px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 850;
}

.appointment-details-long-text {
  white-space: pre-wrap;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.appointment-details-mini-notes {
  display: grid;
  gap: 10px;
}

.appointment-details-mini-note {
  border: 1px solid #ede9fe;
  border-radius: 14px;
  background: #faf5ff;
  padding: 12px;
}

.appointment-details-mini-note-date {
  margin-bottom: 5px;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 800;
}

.appointment-details-mini-note-text {
  white-space: pre-wrap;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.appointment-details-documents {
  display: grid;
  gap: 10px;
}

.appointment-details-document-card {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #eff6ff;
  padding: 12px;
}

.appointment-details-document-name {
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 850;
}

.appointment-details-document-meta {
  margin-top: 5px;
  color: #475569;
  font-size: 12px;
}


.appointment-details-asset-group + .appointment-details-asset-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.appointment-details-asset-group-title {
  margin-bottom: 10px;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.appointment-details-recordings {
  display: grid;
  gap: 10px;
}

.appointment-details-recording-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
}

.appointment-details-recording-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
}

.appointment-details-recording-meta {
  margin-top: 5px;
  color: #475569;
  font-size: 12px;
}

.appointment-details-recording-details {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.appointment-details-recording-detail-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.appointment-details-recording-detail-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.appointment-details-recording-detail-value {
  color: #0f172a;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  word-break: break-word;
}

.appointment-details-recording-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 12px;
}

.appointment-details-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.appointment-details-footer {
  position: sticky;
  bottom: -28px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 18px -26px -28px;
  padding: 16px 26px;
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.appointment-details-footer-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

.appointment-details-footer-btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.appointment-details-footer-btn-secondary:hover {
  background: #cbd5e1;
}

.appointment-details-footer-btn-primary {
  background: #7c3aed;
  color: #ffffff;
}

.appointment-details-footer-btn-primary:hover {
  background: #6d28d9;
}

.timeline-card-appointment {
  cursor: pointer;
}

.timeline-card-appointment:hover {
  filter: brightness(0.99);
}

@media (max-width: 900px) {
  .appointment-details-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .appointment-details-modal-shell {
    width: calc(100vw - 24px);
    margin: 12px auto;
    max-height: calc(100vh - 24px);
  }

  .appointment-details-summary-grid,
  .appointment-details-record-grid {
    grid-template-columns: 1fr;
  }

  .appointment-details-recording-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.appointment-details-legacy-notice {
  border: 1px solid #fde68a;
  border-radius: 16px;
  background: #fffbeb;
  color: #92400e;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}
.appointment-details-inline-mini-notes {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
}

.appointment-details-inline-mini-notes-title {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.appointment-details-inline-mini-notes ul {
  margin: 0;
  padding-left: 20px;
}

.appointment-details-inline-mini-notes li {
  margin: 4px 0;
  color: #1f2937;
  line-height: 1.45;
}
