.appointment-center {
  --appointment-navy: #10263f;
  --appointment-navy-soft: #1d3c60;
  --appointment-teal: #0f9889;
  --appointment-teal-dark: #08776d;
  --appointment-mint: #e9faf6;
  --appointment-blue: #2468d9;
  --appointment-orange: #c86b18;
  --appointment-red: #c83e4d;
  --appointment-border: #dce5ee;
  --appointment-muted: #60738a;
  --appointment-surface: #ffffff;
  --appointment-page: #f5f8fb;
  color: var(--appointment-navy);
  display: grid;
  gap: 16px;
  min-width: 0;
}

.appointment-center *,
.appointment-center *::before,
.appointment-center *::after {
  box-sizing: border-box;
}

.appointment-hero {
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(67, 214, 190, 0.24), transparent 24%),
    linear-gradient(135deg, var(--appointment-navy), var(--appointment-navy-soft));
  border-radius: 20px;
  box-shadow: 0 16px 35px rgba(16, 38, 63, 0.14);
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 150px;
  overflow: hidden;
  padding: 28px 32px;
  position: relative;
}

.appointment-hero h1,
.appointment-panel h2,
.appointment-modal h2,
.appointment-detail h3,
.appointment-detail h4,
.appointment-history h4 {
  margin: 0;
}

.appointment-hero h1 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.appointment-hero p {
  color: rgba(255, 255, 255, 0.82);
  margin: 10px 0 0;
}

.appointment-eyebrow {
  color: #55e0cb;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.appointment-hero__tools {
  display: grid;
  gap: 12px;
  justify-items: end;
  min-width: min(100%, 430px);
}

.appointment-hero .appointment-create-link {
  background: #fff !important;
  border-color: #fff !important;
  color: #0b6d64 !important;
  min-width: 140px;
  text-decoration: none;
}

.appointment-hero__summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  min-width: min(100%, 430px);
}

.appointment-hero__summary span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  display: grid;
  font-size: 12px;
  gap: 3px;
  padding: 15px;
}

.appointment-hero__summary strong {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.appointment-view-tabs {
  align-items: center;
  background: #e9eff5;
  border-radius: 14px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 5px;
  scrollbar-width: thin;
}

.appointment-tab {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #50647c;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 9px 18px;
}

.appointment-tab:hover,
.appointment-tab:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  color: var(--appointment-navy);
  outline: none;
}

.appointment-tab.is-active {
  background: var(--appointment-surface);
  box-shadow: 0 4px 14px rgba(16, 38, 63, 0.1);
  color: var(--appointment-teal-dark);
}

.appointment-filter {
  align-items: end;
  background: var(--appointment-surface);
  border: 1px solid var(--appointment-border);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 2fr) repeat(5, minmax(120px, 1fr)) auto;
  padding: 15px;
}

.appointment-field {
  color: var(--appointment-muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  min-width: 0;
}

.appointment-field input,
.appointment-field select,
.appointment-field textarea,
.appointment-page-size select,
.appointment-schedule-row input,
.appointment-settings-store select {
  background: #fff;
  border: 1px solid #cfdbe7;
  border-radius: 9px;
  color: var(--appointment-navy);
  font: inherit;
  min-height: 42px;
  min-width: 0;
  padding: 8px 10px;
  width: 100%;
}

.appointment-field textarea {
  min-height: 90px;
  resize: vertical;
}

.appointment-field input:focus,
.appointment-field select:focus,
.appointment-field textarea:focus,
.appointment-page-size select:focus,
.appointment-schedule-row input:focus {
  border-color: var(--appointment-teal);
  box-shadow: 0 0 0 3px rgba(15, 152, 137, 0.12);
  outline: none;
}

.appointment-field--full {
  grid-column: 1 / -1;
}

.appointment-filter__actions,
.appointment-form-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.appointment-button {
  align-items: center;
  background: #fff;
  border: 1px solid #cfdbe7;
  border-radius: 10px;
  color: var(--appointment-navy);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.appointment-button:hover:not(:disabled) {
  box-shadow: 0 6px 14px rgba(16, 38, 63, 0.12);
  transform: translateY(-1px);
}

.appointment-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 152, 137, 0.22);
  outline: none;
}

.appointment-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.appointment-button--primary {
  background: var(--appointment-teal);
  border-color: var(--appointment-teal);
  color: #fff;
}

.appointment-button--primary:hover:not(:disabled) {
  background: var(--appointment-teal-dark);
}

.appointment-button--ghost {
  background: #f5f8fb;
}

.appointment-button--danger {
  background: #fff2f3;
  border-color: #f1b3b9;
  color: var(--appointment-red);
}

.appointment-button--warning {
  background: #fff8eb;
  border-color: #f3d2a9;
  color: #a95512;
}

.appointment-center .appointment-button--primary,
.appointment-modal .appointment-button--primary {
  background: #0f9889 !important;
  border-color: #0f9889 !important;
  color: #fff !important;
}

.appointment-center .appointment-button--ghost,
.appointment-modal .appointment-button--ghost {
  background: #f5f8fb !important;
  border-color: #cfdbe7 !important;
  color: #10263f !important;
}

.appointment-center .appointment-button--warning,
.appointment-modal .appointment-button--warning {
  background: #fff1d6 !important;
  border-color: #d98b2b !important;
  color: #733407 !important;
}

.appointment-center .appointment-button--danger,
.appointment-modal .appointment-button--danger {
  background: #fff0f1 !important;
  border-color: #d9535f !important;
  color: #9d1521 !important;
}

.appointment-center .appointment-button:disabled,
.appointment-modal .appointment-button:disabled {
  background: #e5ebf1 !important;
  border-color: #c9d4df !important;
  color: #53667a !important;
  opacity: 1;
}

.appointment-button--small {
  min-height: 34px;
  padding: 6px 10px;
}

.appointment-feedback {
  border-radius: 10px;
  display: none;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 13px;
}

.appointment-feedback:not(:empty) {
  display: block;
}

.appointment-feedback--loading {
  background: #edf5ff;
  color: #275c9c;
}

.appointment-feedback--success {
  background: #e9faf6;
  color: #08776d;
}

.appointment-feedback--error {
  background: #fff0f1;
  color: #b62f3d;
}

.appointment-is-busy .appointment-workspace {
  opacity: 0.62;
  pointer-events: none;
}

.appointment-workspace {
  min-width: 0;
  transition: opacity 0.15s ease;
}

.appointment-panel {
  background: var(--appointment-surface);
  border: 1px solid var(--appointment-border);
  border-radius: 17px;
  box-shadow: 0 10px 30px rgba(28, 57, 88, 0.06);
  min-width: 0;
  overflow: hidden;
}

.appointment-panel__header {
  align-items: center;
  border-bottom: 1px solid var(--appointment-border);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 17px 19px;
}

.appointment-panel__header h2 {
  font-size: 20px;
}

.appointment-panel__header p {
  color: var(--appointment-muted);
  font-size: 13px;
  margin: 5px 0 0;
}

.appointment-page-size {
  align-items: center;
  color: var(--appointment-muted);
  display: flex;
  flex: 0 0 auto;
  font-size: 13px;
  gap: 6px;
}

.appointment-page-size select {
  min-height: 34px;
  padding: 4px 24px 4px 8px;
  width: auto;
}

.appointment-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.appointment-table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.appointment-table th,
.appointment-table td {
  border-bottom: 1px solid #e8eef4;
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

.appointment-table th {
  background: #f5f8fb;
  color: #53687f;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.appointment-table td {
  font-size: 13px;
}

.appointment-table td strong,
.appointment-table td span,
.appointment-table td small,
.appointment-table td a {
  display: block;
}

.appointment-table td small,
.appointment-table td span {
  color: var(--appointment-muted);
  margin-top: 4px;
}

.appointment-table td a {
  color: var(--appointment-teal-dark);
  font-weight: 800;
  margin-top: 4px;
  text-decoration: none;
}

.appointment-row:hover td {
  background: #fbfdfd;
}

.appointment-source {
  color: var(--appointment-navy) !important;
  font-weight: 850;
}

.appointment-status {
  background: #edf2f6;
  border-radius: 999px;
  color: #53687f;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 8px 10px;
  white-space: nowrap;
}

.appointment-status--pending,
.appointment-status--requested {
  background: #fff2e4;
  color: #a85213;
}

.appointment-status--confirmed {
  background: #e9f2ff;
  color: #235ca7;
}

.appointment-status--arrived {
  background: #e6faf3;
  color: #087a61;
}

.appointment-status--converted {
  background: #e8f9f5;
  color: #08776d;
}

.appointment-status--cancelled,
.appointment-status--canceled,
.appointment-status--no_show {
  background: #fff0f1;
  color: #b93643;
}

.appointment-pagination {
  align-items: center;
  color: var(--appointment-muted);
  display: flex;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 17px;
}

.appointment-pagination > div {
  display: flex;
  gap: 7px;
}

.appointment-empty,
.appointment-modal-loading {
  color: var(--appointment-muted);
  padding: 48px 24px;
  text-align: center;
}

.appointment-empty strong {
  color: var(--appointment-navy);
  font-size: 19px;
}

.appointment-empty p {
  margin: 7px 0 0;
}

.appointment-calendar-toolbar {
  text-align: center;
}

.appointment-calendar-weekdays,
.appointment-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.appointment-calendar-weekdays span {
  background: #f5f8fb;
  color: #60738a;
  font-size: 12px;
  font-weight: 900;
  padding: 9px;
  text-align: center;
}

.appointment-calendar-day {
  border-right: 1px solid #e5edf3;
  border-top: 1px solid #e5edf3;
  min-height: 145px;
  padding: 8px;
}

.appointment-calendar-day:nth-child(7n) {
  border-right: 0;
}

.appointment-calendar-day--outside {
  background: #f8fafc;
}

.appointment-calendar-day.is-today {
  background: #f0fbf8;
  box-shadow: inset 0 0 0 2px rgba(15, 152, 137, 0.32);
}

.appointment-calendar-day__number {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.appointment-calendar-day__number span {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.appointment-calendar-day.is-today .appointment-calendar-day__number span {
  background: var(--appointment-teal);
  border-radius: 50%;
  color: #fff;
}

.appointment-calendar-day__number small,
.appointment-calendar-more {
  color: var(--appointment-muted);
  font-size: 10px;
}

.appointment-calendar-day__items {
  display: grid;
  gap: 4px;
  margin-top: 5px;
}

.appointment-calendar-item {
  background: #eef4fb;
  border: 0;
  border-left: 3px solid #7398c4;
  border-radius: 6px;
  color: var(--appointment-navy);
  cursor: pointer;
  display: grid;
  font: inherit;
  font-size: 11px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
  padding: 5px;
  text-align: left;
}

.appointment-calendar-item time {
  color: var(--appointment-muted);
  font-size: 10px;
}

.appointment-calendar-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-calendar-item--pending,
.appointment-calendar-item--requested {
  background: #fff4e9;
  border-left-color: #e58b32;
}

.appointment-calendar-item--confirmed {
  background: #ebf3ff;
  border-left-color: #4c83cf;
}

.appointment-calendar-item--arrived,
.appointment-calendar-item--converted {
  background: #e8faf5;
  border-left-color: #17a58f;
}

.appointment-calendar-item--cancelled,
.appointment-calendar-item--no_show {
  background: #fff1f2;
  border-left-color: #d65864;
  opacity: 0.75;
}

.appointment-modal-open {
  overflow: hidden;
}

.appointment-modal {
  inset: 0;
  position: fixed;
  z-index: 10050;
}

.appointment-modal__backdrop {
  background: rgba(9, 23, 39, 0.62);
  inset: 0;
  position: absolute;
}

.appointment-modal__dialog {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  left: 50%;
  max-height: calc(100vh - 42px);
  max-width: min(720px, calc(100vw - 28px));
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.appointment-modal__dialog--wide {
  max-width: min(1040px, calc(100vw - 28px));
}

.appointment-modal__header {
  align-items: flex-start;
  border-bottom: 1px solid var(--appointment-border, #dce5ee);
  display: flex;
  justify-content: space-between;
  padding: 18px 21px;
}

.appointment-modal__header h2 {
  color: #10263f;
  font-size: 22px;
}

.appointment-modal__close {
  align-items: center;
  background: #edf2f6;
  border: 0;
  border-radius: 9px;
  color: #4d6177;
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.appointment-modal__body {
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding: 20px;
}

.appointment-detail {
  display: grid;
  gap: 17px;
}

.appointment-detail__lead {
  align-items: center;
  background: #f3f8fb;
  border-radius: 14px;
  display: flex;
  gap: 15px;
  justify-content: space-between;
  padding: 16px;
}

.appointment-detail__lead h3 {
  font-size: 23px;
  margin-top: 8px;
}

.appointment-detail__lead p {
  color: #60738a;
  margin: 5px 0 0;
}

.appointment-detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appointment-detail-card {
  border: 1px solid #dce5ee;
  border-radius: 13px;
  padding: 15px;
}

.appointment-detail-card--wide {
  grid-column: 1 / -1;
}

.appointment-detail-card h4,
.appointment-history h4,
.appointment-detail-actions h4 {
  color: #10263f;
  font-size: 15px;
  margin: 0 0 12px;
}

.appointment-detail-card p {
  color: #40556c;
  line-height: 1.65;
  margin: 7px 0 0;
  white-space: pre-wrap;
}

.appointment-original-text {
  background: #fff9ea;
  border-left: 4px solid #e2a539;
  border-radius: 7px;
  padding: 11px;
}

.appointment-attachment-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.appointment-attachment {
  background: #f7fafc;
  border: 1px solid #dce5ee;
  border-radius: 11px;
  min-width: 0;
  overflow: hidden;
}

.appointment-attachment__preview {
  aspect-ratio: 4 / 3;
  background: #e8eef4;
  display: block;
  overflow: hidden;
}

.appointment-attachment__preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.appointment-attachment__placeholder {
  align-items: center;
  color: #60738a;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
}

.appointment-attachment__meta {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 10px;
}

.appointment-attachment__name {
  color: #243b53;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.appointment-attachment__size {
  color: #718295;
  display: block;
  font-size: 11px;
  margin-top: 3px;
}

.appointment-attachment__download {
  color: #087f72;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
}

.appointment-detail-pair {
  align-items: start;
  border-bottom: 1px dashed #dfe7ee;
  display: grid;
  gap: 9px;
  grid-template-columns: 84px minmax(0, 1fr);
  padding: 8px 0;
}

.appointment-detail-pair:last-child {
  border-bottom: 0;
}

.appointment-detail-pair span {
  color: #6b7d90;
  font-size: 12px;
}

.appointment-detail-pair strong,
.appointment-detail-pair a {
  color: #10263f;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.appointment-detail-actions {
  background: #eaf9f5;
  border: 1px solid #bce8dd;
  border-radius: 13px;
  padding: 15px;
}

.appointment-detail-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.appointment-history {
  border-top: 1px solid #dce5ee;
  padding-top: 15px;
}

.appointment-history ol {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.appointment-history li {
  border-left: 2px solid #b9d8d3;
  margin-left: 8px;
  padding: 0 0 16px 18px;
  position: relative;
}

.appointment-history li::before {
  background: #0f9889;
  border: 3px solid #e9faf6;
  border-radius: 50%;
  content: '';
  height: 12px;
  left: -7px;
  position: absolute;
  top: 3px;
  width: 12px;
}

.appointment-history li span,
.appointment-muted {
  color: #6a7c8e;
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.appointment-history li p {
  color: #40556c;
  margin: 5px 0 0;
}

.appointment-action-form {
  display: grid;
  gap: 18px;
}

.appointment-confirm-card {
  background: #f3f8fb;
  border-radius: 12px;
  padding: 15px;
}

.appointment-confirm-card p {
  color: #60738a;
  margin: 6px 0 0;
}

.appointment-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appointment-settings-store {
  min-width: 220px;
}

.appointment-settings-panel form {
  padding: 18px;
}

.appointment-settings-general {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.appointment-switch {
  align-items: center;
  background: #f3f8fb;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  font-weight: 850;
  gap: 9px;
  min-height: 42px;
  padding: 8px 11px;
}

.appointment-switch input {
  accent-color: #0f9889;
  height: 18px;
  width: 18px;
}

.appointment-schedule-table {
  border: 1px solid #dce5ee;
  border-radius: 13px;
  margin: 18px 0;
  overflow: hidden;
}

.appointment-schedule-row {
  align-items: center;
  border-top: 1px solid #e4ebf1;
  display: grid;
  gap: 10px;
  grid-template-columns: 1.3fr repeat(4, minmax(100px, 1fr));
  padding: 9px;
}

.appointment-schedule-row:first-child {
  border-top: 0;
}

.appointment-schedule-row--head {
  background: #f4f7fa;
  color: #60738a;
  font-size: 12px;
  font-weight: 900;
}

.appointment-schedule-row input {
  min-height: 38px;
}

.appointment-report-cards {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  padding: 17px;
}

.appointment-report-card {
  background: #f3f8fb;
  border: 1px solid #e0e8ef;
  border-radius: 13px;
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 14px;
}

.appointment-report-card span {
  color: #60738a;
  font-size: 12px;
  font-weight: 850;
}

.appointment-report-card strong {
  color: #10263f;
  font-size: 23px;
  overflow-wrap: anywhere;
}

.appointment-table-empty {
  color: #60738a;
  padding: 38px !important;
  text-align: center !important;
}

@media (max-width: 1280px) {
  .appointment-filter {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  .appointment-field--search {
    grid-column: span 2;
  }

  .appointment-settings-general,
  .appointment-report-cards {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
}

@media (max-width: 900px) {
  .appointment-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }

  .appointment-hero__summary {
    min-width: 0;
  }

  .appointment-hero__tools {
    justify-items: stretch;
    min-width: 0;
  }

  .appointment-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointment-field--search {
    grid-column: 1 / -1;
  }

  .appointment-filter__actions {
    grid-column: 1 / -1;
  }

  .appointment-calendar-day {
    min-height: 105px;
    padding: 4px;
  }

  .appointment-calendar-item {
    display: block;
    padding: 5px;
  }

  .appointment-calendar-item time {
    display: block;
  }

  .appointment-calendar-item span {
    display: none;
  }

  .appointment-settings-general {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointment-schedule-row {
    grid-template-columns: 1.2fr repeat(4, minmax(85px, 1fr));
    min-width: 650px;
  }

  .appointment-schedule-table {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .appointment-center {
    gap: 11px;
  }

  .appointment-hero {
    border-radius: 15px;
    min-height: 0;
    padding: 18px;
  }

  .appointment-hero__summary {
    grid-template-columns: 1fr;
  }

  .appointment-hero__summary span {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
  }

  .appointment-filter {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .appointment-field--search,
  .appointment-filter__actions {
    grid-column: auto;
  }

  .appointment-filter__actions .appointment-button {
    flex: 1;
  }

  .appointment-panel__header,
  .appointment-calendar-toolbar,
  .appointment-detail__lead {
    align-items: stretch;
    flex-direction: column;
  }

  .appointment-calendar-toolbar .appointment-button {
    width: 100%;
  }

  .appointment-table {
    min-width: 0;
  }

  .appointment-table thead {
    display: none;
  }

  .appointment-table tbody,
  .appointment-table tr,
  .appointment-table td {
    display: block;
    width: 100%;
  }

  .appointment-table tr {
    border-bottom: 7px solid #f0f4f7;
    padding: 8px 11px;
  }

  .appointment-table td {
    align-items: start;
    border: 0;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 7px 0;
  }

  .appointment-table td::before {
    color: #718295;
    content: attr(data-label);
    font-size: 11px;
    font-weight: 900;
    padding-top: 2px;
  }

  .appointment-table td:last-child .appointment-button {
    width: 100%;
  }

  .appointment-funnel-table {
    min-width: 760px;
  }

  .appointment-funnel-table thead {
    display: table-header-group;
  }

  .appointment-funnel-table tbody {
    display: table-row-group;
  }

  .appointment-funnel-table tr {
    border: 0;
    display: table-row;
    padding: 0;
  }

  .appointment-funnel-table td {
    display: table-cell;
    padding: 12px;
    width: auto;
  }

  .appointment-funnel-table td::before {
    display: none;
  }

  .appointment-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .appointment-pagination > div .appointment-button {
    flex: 1;
  }

  .appointment-calendar-weekdays,
  .appointment-calendar-grid {
    min-width: 560px;
  }

  .appointment-calendar-panel {
    overflow-x: auto;
  }

  .appointment-modal__dialog {
    border-radius: 15px 15px 0 0;
    bottom: 0;
    left: 0;
    max-height: 94vh;
    max-width: 100%;
    top: auto;
    transform: none;
  }

  .appointment-modal__body {
    max-height: calc(94vh - 78px);
    padding: 15px;
  }

  .appointment-detail-grid,
  .appointment-form-grid,
  .appointment-settings-general,
  .appointment-report-cards {
    grid-template-columns: 1fr;
  }

  .appointment-detail-card--wide,
  .appointment-field--full {
    grid-column: auto;
  }

  .appointment-detail-pair {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .appointment-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .appointment-form-actions .appointment-button {
    width: 100%;
  }

  .appointment-settings-store {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .appointment-button,
  .appointment-workspace {
    transition: none;
  }
}
