.pill-alert {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #78350f;
}

.file-link {
  color: #0f766e;
  font-weight: 800;
  text-decoration-line: underline;
  text-underline-offset: 3px;
}

.file-link:hover {
  color: #134e4a;
}

.icon-button {
  display: inline-grid;
  min-width: 2.25rem;
  min-height: 2.25rem;
  place-items: center;
  cursor: pointer;
  border: 1px solid #e4e4e7;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #3f3f46;
}

.icon-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover {
  background: #f4f4f5;
}

.danger-button {
  color: #b91c1c;
}

.danger-button:hover {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.confirm-dialog {
  width: min(92vw, 28rem);
  border: 0;
  border-radius: 0.75rem;
  padding: 0;
  color: inherit;
  background: transparent;
}

.confirm-dialog::backdrop {
  background: rgba(24, 24, 27, 0.58);
  backdrop-filter: blur(4px);
}

.confirm-dialog-panel {
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(24, 24, 27, 0.22);
}

.record-list,
.timeline,
.compact-list {
  display: grid;
  gap: 0.75rem;
}

.compact-link {
  display: inline-flex;
  width: fit-content;
}

.record-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid #e4e4e7;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1rem;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.timeline-item {
  display: grid;
  grid-template-columns: 0.75rem 1fr;
  gap: 0.75rem;
}

.timeline-marker {
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #0f766e;
}

.timeline-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.file-preview {
  width: 100%;
  max-height: 12rem;
  object-fit: cover;
  border: 1px solid #e4e4e7;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.file-preview-frame {
  width: 100%;
  height: 12rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.metric {
  margin: 0.25rem 0 0;
  font-size: 2rem;
  font-weight: 750;
  line-height: 1;
}

.warning-card {
  border-color: #f59e0b;
  background: #fffbeb;
}

.notification-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid #e4e4e7;
  border-radius: 0.5rem;
  padding: 1rem;
}

.notification-row.unread {
  border-color: #0f766e;
  background: #f0fdfa;
}

.calendar-event.status-tentative {
  border-left: 0.35rem solid #f59e0b;
}

.calendar-event.status-scheduled {
  border-left: 0.35rem solid #0f766e;
}

.calendar-event.status-completed {
  border-left: 0.35rem solid #16a34a;
}

.calendar-event.status-canceled_by_customer,
.calendar-event.status-canceled_by_business,
.calendar-event.status-no_show {
  border-left: 0.35rem solid #dc2626;
}

@media print {
  .app-shell-sidebar,
  .topbar,
  .page-header .button,
  .app-form,
  .dashboard-actions {
    display: none !important;
  }

  .calendar-board,
  .calendar-day,
  .calendar-items {
    display: block;
  }

  .calendar-event {
    break-inside: avoid;
    border: 1px solid #111827;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 48rem) {
  .record-row {
    display: grid;
  }

  .record-actions {
    justify-content: flex-start;
  }
}

@media (prefers-color-scheme: dark) {
  .pill-alert {
    border-color: #92400e;
    background: #451a03;
    color: #fde68a;
  }

  .file-link {
    color: #5eead4;
  }

  .file-link:hover {
    color: #ccfbf1;
  }

  .icon-button {
    border-color: #3f3f46;
    background: #18181b;
    color: #d4d4d8;
  }

  .icon-button:hover {
    background: #27272a;
  }

  .danger-button {
    color: #fca5a5;
  }

  .danger-button:hover {
    border-color: #7f1d1d;
    background: #450a0a;
    color: #fecaca;
  }

  .confirm-dialog-panel {
    border-color: #3f3f46;
    background: #18181b;
  }

  .record-row {
    border-color: #27272a;
    background: #09090b;
  }

  .timeline-marker {
    background: #2dd4bf;
  }

  .file-preview,
  .file-preview-frame {
    border-color: #27272a;
  }

  .warning-card {
    border-color: #92400e;
    background: #451a03;
  }

  .notification-row {
    border-color: #27272a;
  }

  .notification-row.unread {
    border-color: #2dd4bf;
    background: #042f2e;
  }
}
