.bg-orb {
  background:
    radial-gradient(circle at 12% 15%, rgba(251, 191, 36, 0.2), transparent 34%),
    radial-gradient(circle at 88% 5%, rgba(249, 115, 22, 0.18), transparent 28%),
    radial-gradient(circle at 40% 100%, rgba(245, 158, 11, 0.16), transparent 36%),
    linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
}

.card-shell {
  border: 1px solid #fde68a;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 20px 45px -30px rgba(217, 119, 6, 0.35);
}

.halo-panel {
  border: 1px solid #d6deea;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 12px 24px -22px rgba(15, 23, 42, 0.72);
}

.halo-panel-compact {
  padding: 0.68rem;
}

.halo-panel-amber {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
}

.halo-list-card {
  border: 1px solid #d6e0eb;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 26px -24px rgba(15, 23, 42, 0.82);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.12s ease;
}

.halo-list-card:hover {
  border-color: #b8c5d6;
  box-shadow: 0 18px 28px -24px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.top-nav-scroll {
  scrollbar-width: thin;
}

.top-nav-scroll::-webkit-scrollbar {
  height: 0.35rem;
}

.top-nav-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.top-nav-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.6rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-size: 0.75rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  font-size: 0.875rem;
}

.data-table .tenant-summary-row td {
  border-bottom: 0;
  padding-bottom: 0.35rem;
}

.data-table .tenant-editor-row td {
  padding-top: 0.35rem;
}

.notification-logs-table {
  table-layout: auto;
}

.notification-logs-table th:nth-child(1) {
  width: 17%;
}

.notification-logs-table th:nth-child(2) {
  width: 35%;
}

.notification-logs-table th:nth-child(3) {
  width: 18%;
}

.notification-logs-table th:nth-child(4) {
  width: 30%;
}

.notification-logs-table td.log-col-time {
  font-variant-numeric: tabular-nums;
  color: #1f2937;
}

.notification-logs-table .notification-log-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  min-width: 0;
}

.notification-logs-table .notification-log-type-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 9999px;
  background: #64748b;
  flex: 0 0 auto;
}

.notification-logs-table .notification-log-type-text {
  min-width: 0;
  color: #1f2937;
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: normal;
}

.notification-logs-table .notification-log-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  padding: 0.12rem 0.56rem;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.notification-logs-table .notification-log-type-email .notification-log-type-dot {
  background: #f97316;
}

.notification-logs-table .notification-log-type-sms .notification-log-type-dot {
  background: #0f766e;
}

.notification-logs-table .notification-log-channel-email {
  border-color: #fdba74;
  background: #fff7ed;
  color: #c2410c;
}

.notification-logs-table .notification-log-channel-sms {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
}

.notification-logs-table .notification-log-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  max-width: 100%;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.notification-logs-table .notification-log-status-dot {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 9999px;
  background: currentColor;
  flex: 0 0 auto;
}

.notification-logs-table .notification-log-status-label {
  overflow-wrap: break-word;
  word-break: normal;
}

.notification-logs-table .notification-log-status-success {
  color: #166534;
}

.notification-logs-table .notification-log-status-failed {
  color: #9a3412;
}

.notification-logs-table .notification-log-status-skipped {
  color: #475569;
}

.notification-logs-table .notification-log-detail {
  display: block;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: normal;
}

.notification-logs-table .notification-log-detail-success {
  color: #166534;
}

.notification-logs-table .notification-log-detail-failed {
  color: #9a3412;
}

.appointment-time-panel {
  border: 1px solid #cdd7e4;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 92% -10%, rgba(249, 115, 22, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.appointment-date-input {
  min-height: 3.3rem;
  border-color: #b8c4d4;
  background: #fff;
  color: #0f172a;
  font-family: "Space Grotesk", ui-sans-serif, system-ui;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 20px -18px rgba(15, 23, 42, 0.9);
}

.appointment-date-input:focus {
  outline: none;
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.22);
}

.appointment-time-caption {
  align-items: center;
}

.appointment-time-hint {
  font-weight: 500;
  color: #64748b;
}

.appointment-selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #c2410c;
  box-shadow: 0 10px 18px -18px rgba(194, 65, 12, 0.95);
}

.appointment-selected-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.7;
}

.appointment-time-filters-shell {
  border-color: #d6deea;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.appointment-time-filter-title {
  margin-bottom: 0.55rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.time-range-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.time-range-filter-btn {
  min-height: 2.45rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #cfd8e3;
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.12s ease,
    box-shadow 0.16s ease;
}

.time-range-filter-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.time-range-filter-btn:active {
  transform: translateY(1px);
}

.time-range-filter-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

.time-range-filter-btn.is-active,
.time-range-filter-btn[data-active="true"] {
  border-color: #ea580c;
  background: linear-gradient(180deg, #f59e0b, #ea580c);
  color: #fff;
  box-shadow: 0 12px 20px -16px rgba(194, 65, 12, 0.95);
}

.appointment-slot-grid {
  margin-top: 0.65rem;
  padding-right: 0.22rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.appointment-slot-grid::-webkit-scrollbar {
  width: 0.42rem;
}

.appointment-slot-grid::-webkit-scrollbar-track {
  background: transparent;
}

.appointment-slot-grid::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background: #cbd5e1;
}

.appointment-slot {
  position: relative;
  width: 100%;
  min-height: 6rem;
  border: 1px solid #d2dbe6;
  border-radius: 0.95rem;
  background: #fff;
  padding: 0.72rem 0.72rem 0.68rem;
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
  text-align: left;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.12s ease;
}

.appointment-slot::before {
  content: "";
  position: absolute;
  left: 0.68rem;
  top: 0.74rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.35;
}

.appointment-slot:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px -22px rgba(15, 23, 42, 0.9);
}

.appointment-slot:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(14, 165, 233, 0.22),
    0 14px 24px -22px rgba(15, 23, 42, 0.95);
}

.appointment-slot-label {
  padding-left: 0.72rem;
  margin: 0;
  line-height: 1.12;
  font-family: "Space Grotesk", ui-sans-serif, system-ui;
  font-size: 1.08rem;
  font-weight: 700;
}

.appointment-slot-subtitle {
  padding-left: 0.72rem;
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  color: #475569;
}

.appointment-slot.availability-neutral {
  border-color: #cbd5e1;
  background: #fff;
  color: #334155;
}

.appointment-slot.availability-free {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  color: #065f46;
}

.appointment-slot.availability-partial {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
}

.appointment-slot.availability-busy {
  border-color: #fda4af;
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  color: #9f1239;
}

.appointment-slot.is-selected {
  border-color: transparent;
  color: #fff;
  box-shadow: 0 20px 30px -22px rgba(15, 23, 42, 0.95);
}

.appointment-slot.availability-neutral.is-selected {
  background: linear-gradient(150deg, #0f172a 0%, #334155 100%);
}

.appointment-slot.availability-free.is-selected {
  background: linear-gradient(150deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
}

.appointment-slot.availability-partial.is-selected {
  background: linear-gradient(150deg, #c2410c 0%, #f59e0b 100%);
}

.appointment-slot.availability-busy.is-selected {
  background: linear-gradient(150deg, #be123c 0%, #e11d48 100%);
}

.appointment-slot.is-selected::before {
  background: #fff;
  opacity: 0.4;
}

.appointment-slot.is-selected .appointment-slot-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.appointment-slot-legend {
  margin-top: 0.75rem;
  gap: 0.45rem;
}

.appointment-slot-legend-item {
  border-color: #d4dee9;
  background: #fff;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.22rem 0.64rem;
}

.appointment-slot-legend-dot {
  width: 0.58rem;
  height: 0.58rem;
}

.appointment-slot-legend-item.is-free {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.appointment-slot-legend-item.is-partial {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

.appointment-slot-legend-item.is-busy {
  border-color: #fda4af;
  background: #fff1f2;
  color: #9f1239;
}

.appointment-time-window-note {
  margin-top: 0.2rem;
  font-weight: 500;
  color: #64748b;
}

.appointment-slot-summary {
  border: 1px solid #cbd5e1;
  border-radius: 0.8rem;
  background: #f8fafc;
  padding: 0.62rem 0.75rem;
  color: #334155;
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.35;
}

.appointment-slot-summary.is-neutral {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.appointment-slot-summary.is-free {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.appointment-slot-summary.is-partial {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

.appointment-slot-summary.is-busy {
  border-color: #fda4af;
  background: #fff1f2;
  color: #9f1239;
}

@media (min-width: 640px) {
  .time-range-filter {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.appointments-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.appointments-list-stats {
  margin-top: 0.42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.appointments-list-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid #d6e0eb;
  border-radius: 9999px;
  background: #fff;
  padding: 0.14rem 0.62rem;
  color: #52627a;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.appointments-list-stat strong {
  color: #0f172a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.appointments-list-stat.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.appointments-list-stat.is-archived {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.appointments-list-stat.is-all {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.appointments-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.78rem;
  background: #fff;
  color: #334155;
  padding: 0.44rem 0.78rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.12s ease;
}

.appointments-filter-reset:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a;
}

.appointments-filter-reset:active {
  transform: translateY(1px);
}

.appointments-filter-reset:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.appointments-filter-reset:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.appointments-filters-shell {
  margin-top: 0.88rem;
  border: 1px solid #d6e0eb;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 4% -40%, rgba(14, 165, 233, 0.08), transparent 44%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 0.72rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.appointments-filters-grid {
  display: grid;
  gap: 0.62rem;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
  align-items: end;
}

.appointments-filter-field {
  min-width: 0;
}

.appointments-filter-label {
  display: block;
  margin-bottom: 0.34rem;
  color: #5f6f86;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appointments-filter-input {
  width: 100%;
  min-height: 2.62rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.78rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.91rem;
  padding: 0.5rem 0.72rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.appointments-filter-input::placeholder {
  color: #94a3b8;
}

.appointments-filter-input:focus {
  outline: none;
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
}

@media (max-width: 1180px) {
  .appointments-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointments-filter-field-search {
    grid-column: 1 / -1;
  }
}

.appointments-cards {
  display: grid;
  gap: 0.85rem;
}

.appointment-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d4deea;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 16px 28px -24px rgba(15, 23, 42, 0.9);
  padding: 0.9rem 1rem;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.12s ease;
}

.appointment-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0.18rem;
  background: linear-gradient(90deg, #14b8a6 0%, #f59e0b 55%, #e11d48 100%);
  opacity: 0.8;
}

.appointment-card:hover {
  border-color: #becbdb;
  box-shadow: 0 22px 36px -30px rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

.appointment-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.appointment-card-title {
  margin: 0;
  font-family: "Space Grotesk", ui-sans-serif, system-ui;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0b1324;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.appointment-card-subtitle {
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  color: #52627a;
  font-size: 0.82rem;
}

.appointment-card-subtitle strong {
  color: #1e293b;
  font-weight: 700;
}

.appointment-card-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.appointment-card-reminder {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #d8e2ee;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.2rem 0.5rem;
}

.appointment-card-reminder-label {
  color: #52627a;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.appointment-card .appointment-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.appointment-card .appointment-actions > a,
.appointment-card .appointment-actions > form > button {
  border-color: #c7d2e2;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px -18px rgba(15, 23, 42, 0.9);
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.12s ease;
}

.appointment-card .appointment-actions > a:hover,
.appointment-card .appointment-actions > form > button:hover {
  border-color: #94a3b8;
  background: #fff;
  box-shadow: 0 12px 20px -18px rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

.appointment-card .appointment-actions > form > button {
  border-color: #fda4af;
  color: #be123c;
  background: #fff1f2;
}

.appointment-card .appointment-actions > form > button:hover {
  border-color: #fb7185;
  background: #ffe4e6;
  color: #9f1239;
}

.appointment-card-meta {
  margin: 0.75rem 0 0;
  padding-top: 0.78rem;
  border-top: 1px solid #dbe5f0;
  display: grid;
  gap: 0.65rem 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appointment-card-item {
  min-width: 0;
}

.appointment-card-item dt {
  color: #5f6f86;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.appointment-card-item dd {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 0.96rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.customers-table {
  border-collapse: separate;
  border-spacing: 0 0.72rem;
}

.customers-table th {
  border-bottom: 0;
  padding-top: 0;
  padding-bottom: 0.28rem;
  color: #5b6c84;
}

.customers-table tbody tr.customer-row-card td {
  border-bottom: 0;
  padding: 0;
}

.customers-table tbody tr.customer-row-card td:first-child {
  padding-right: 0.45rem;
}

.customers-table tbody tr.customer-row-card td:last-child {
  padding-left: 0.45rem;
}

.customer-profile-card,
.customer-history-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 100%;
  border: 1px solid #d6e0eb;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 0.78rem;
  box-shadow: 0 14px 26px -24px rgba(15, 23, 42, 0.82);
}

.customer-profile-readonly {
  display: grid;
  align-content: start;
  gap: 0.72rem;
}

.customer-profile-readonly-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.72rem;
}

.customer-profile-readonly-grid {
  display: grid;
  gap: 0.42rem 0.72rem;
}

.customer-profile-readonly-item {
  color: #334155;
  font-size: 0.76rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.customer-profile-identity {
  min-width: 0;
}

.customer-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.72rem;
}

.customer-edit-trigger,
.customer-edit-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.72rem;
  background: #ffffff;
  color: #475569;
  transition: all 0.15s ease;
}

.customer-edit-trigger:hover,
.customer-edit-close:hover {
  border-color: #fdba74;
  background: #fff7ed;
  color: #9a3412;
}

.customer-edit-trigger:focus-visible,
.customer-edit-close:focus-visible {
  outline: 2px solid #d97706;
  outline-offset: 2px;
}

.customer-profile-card::before,
.customer-history-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  height: 0.15rem;
  border-radius: 9999px 9999px 0 0;
  opacity: 0.85;
  pointer-events: none;
}

.customer-profile-card::before {
  background: linear-gradient(90deg, #14b8a6 0%, #22c55e 100%);
}

.customer-history-card::before {
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
}

.customer-mobile-toggle {
  display: none;
}

.customer-mobile-toggle-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.customer-mobile-toggle-title {
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.customer-mobile-toggle-subtitle {
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.customer-mobile-toggle-icon {
  color: #64748b;
  flex: 0 0 auto;
  transition: transform 0.16s ease;
}

.customer-history-list {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.customer-history-list::-webkit-scrollbar {
  width: 0.42rem;
}

.customer-history-list::-webkit-scrollbar-track {
  background: transparent;
}

.customer-history-list::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background: #cbd5e1;
}

.appointments-table {
  min-width: 100%;
}

.appointments-table thead th {
  background: #fffdf7;
  border-bottom-width: 2px;
  border-bottom-color: #cbd5e1;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}

.appointments-table tbody td {
  padding-top: 0.82rem;
  padding-bottom: 0.82rem;
  vertical-align: middle;
}

.appointments-table tbody tr {
  transition: background-color 0.16s ease;
}

.appointments-table tbody tr:hover {
  background: #fff7ed;
}

.appointments-table .appt-col-duration,
.appointments-table .appt-col-price,
.appointments-table .appt-col-reminder,
.appointments-table .appt-col-actions {
  white-space: nowrap;
}

.appointments-table .appt-col-start,
.appointments-table .appt-col-end {
  white-space: normal;
}

.appointments-table tbody .appt-col-title {
  color: #1e293b;
  font-weight: 600;
}

.appointments-table .appt-col-title,
.appointments-table .appt-col-client,
.appointments-table .appt-col-service {
  overflow-wrap: anywhere;
}

.appointments-table .appt-col-actions {
  width: 1%;
  text-align: right;
}

.appointments-table .appointment-actions {
  justify-content: flex-end;
}

@media (min-width: 769px) {
  .custom-prices-table td {
    vertical-align: middle;
  }

  .custom-prices-table [data-custom-price-form] [data-save-status]:empty {
    display: none;
  }
}

@media (max-width: 768px) {
  .custom-prices-table {
    min-width: 34rem;
  }

  .custom-prices-table [data-custom-price-form] input[name="price"] {
    min-width: 5.75rem;
    min-height: 2.5rem;
    font-size: 1rem;
    padding: 0.5rem 0.72rem;
  }
}

.touch-target {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.1rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-muted {
  background: #e2e8f0;
  color: #334155;
}

.badge-warning {
  background: #ffedd5;
  color: #9a3412;
}

.status-pill {
  display: inline-flex;
  width: 1.5rem;
  height: 0.55rem;
  border-radius: 9999px;
}

.status-pill-success {
  background: #22c55e;
}

.status-pill-warning {
  background: #f59e0b;
}

.owner-hero {
  border: 1px solid #fcd34d;
  background:
    radial-gradient(circle at 90% -16%, rgba(251, 146, 60, 0.16), transparent 46%),
    linear-gradient(140deg, rgba(255, 251, 235, 0.94), rgba(255, 247, 237, 0.94));
  box-shadow: 0 18px 36px -28px rgba(194, 65, 12, 0.7);
}

.owner-hero-title {
  color: #0f172a;
  letter-spacing: 0.005em;
}

.owner-hero-copy {
  color: #64748b;
}

.owner-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.owner-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  height: 0.16rem;
  background: linear-gradient(90deg, #14b8a6 0%, #f59e0b 54%, #f97316 100%);
  opacity: 0.8;
  pointer-events: none;
}

.owner-card-title {
  color: #0f172a;
}

.owner-card-copy,
.owner-empty-state {
  color: #64748b;
}

.owner-field-label {
  display: block;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.owner-field-input,
.owner-field-select {
  margin-top: 0.35rem;
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.85rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.9rem;
  padding: 0.56rem 0.78rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 9px 18px -22px rgba(15, 23, 42, 0.86);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.owner-field-input::placeholder {
  color: #94a3b8;
}

.owner-field-input:focus,
.owner-field-select:focus {
  outline: none;
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
}

.owner-field-input-sm {
  min-height: 2.35rem;
  border-radius: 0.72rem;
  font-size: 0.78rem;
  padding: 0.42rem 0.64rem;
}

.owner-form-note {
  font-weight: 500;
  line-height: 1.45;
  color: #64748b;
}

.owner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.45rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.82rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.12s ease;
}

.owner-btn:hover {
  transform: translateY(-1px);
}

.owner-btn:active {
  transform: translateY(1px);
}

.owner-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.owner-btn:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

.owner-btn-block {
  width: 100%;
}

.owner-btn-primary {
  border-color: #ea580c;
  background: linear-gradient(180deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 14px 24px -18px rgba(194, 65, 12, 0.95);
}

.owner-btn-primary:hover {
  border-color: #c2410c;
  background: linear-gradient(180deg, #f59e0b 0%, #c2410c 100%);
}

.owner-btn-secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: #334155;
  box-shadow: 0 10px 20px -20px rgba(15, 23, 42, 0.88);
}

.owner-btn-secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a;
}

.owner-btn-warning {
  border-color: #fdba74;
  background: #fff7ed;
  color: #b45309;
}

.owner-btn-warning:hover {
  border-color: #fb923c;
  background: #ffedd5;
  color: #9a3412;
}

.owner-btn-danger {
  border-color: #fda4af;
  background: #fff1f2;
  color: #be123c;
}

.owner-btn-danger:hover {
  border-color: #fb7185;
  background: #ffe4e6;
  color: #9f1239;
}

.owner-btn-compact {
  min-height: 2.25rem;
  padding: 0.36rem 0.75rem;
  font-size: 0.76rem;
}

.owner-table {
  table-layout: fixed;
}

.owner-table thead th {
  background: #fffdf7;
  border-bottom-width: 2px;
  border-bottom-color: #cbd5e1;
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}

.owner-table tbody tr {
  transition: background-color 0.16s ease;
}

.owner-table tbody tr:hover {
  background: #fffaf0;
}

.owner-table td {
  color: #1f2937;
}

.owner-table td .font-mono {
  color: #52627a;
}

.security-audit-table th:nth-child(1) {
  width: 16%;
}

.security-audit-table th:nth-child(2) {
  width: 20%;
}

.security-audit-table th:nth-child(3) {
  width: 17%;
}

.security-audit-table th:nth-child(4) {
  width: 14%;
}

.security-audit-table th:nth-child(5) {
  width: 11%;
}

.security-audit-table th:nth-child(6) {
  width: 22%;
}

.security-audit-table th,
.security-audit-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.security-audit-table td.security-audit-col-time,
.security-audit-table td.security-audit-col-ip {
  font-variant-numeric: tabular-nums;
}

.owner-notification-errors-table {
  table-layout: fixed;
}

.owner-notification-errors-table th:nth-child(1) {
  width: 14%;
}

.owner-notification-errors-table th:nth-child(2) {
  width: 22%;
}

.owner-notification-errors-table th:nth-child(3) {
  width: 20%;
}

.owner-notification-errors-table th:nth-child(4) {
  width: 14%;
}

.owner-notification-errors-table th:nth-child(5) {
  width: 30%;
}

.owner-notification-errors-table td.log-col-time {
  white-space: nowrap;
}

.owner-notification-errors-table td.log-col-company,
.owner-notification-errors-table td.log-col-type,
.owner-notification-errors-table td.log-col-details {
  min-width: 0;
}

.owner-notification-errors-table .owner-notification-company-name {
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.owner-notification-errors-table .owner-notification-company-id {
  margin-top: 0.3rem;
  color: #64748b;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.owner-notification-errors-table .notification-log-type {
  align-items: flex-start;
  gap: 0.45rem 0.55rem;
}

.owner-notification-errors-table .notification-log-type-text {
  max-width: 24ch;
  line-height: 1.32;
}

.owner-notification-errors-table .notification-log-status {
  white-space: nowrap;
}

.owner-notification-errors-table .owner-notification-detail {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  min-width: 0;
}

.owner-notification-errors-table .owner-notification-detail-label {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 9999px;
  background: #fff7ed;
  color: #c2410c;
  padding: 0.14rem 0.62rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.owner-notification-errors-table .notification-log-detail {
  max-width: 52ch;
  color: #7c2d12;
  line-height: 1.5;
  text-wrap: pretty;
}

.owner-status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.owner-dashboard .badge {
  border: 1px solid transparent;
  padding: 0.14rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.owner-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  background: #f8fafc;
  color: #334155;
  padding: 0.16rem 0.62rem 0.16rem 0.32rem;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.owner-active-toggle input {
  flex: 0 0 auto;
}

.owner-inline-editor {
  border-color: #d6e0eb;
  background:
    radial-gradient(circle at 96% -12%, rgba(249, 115, 22, 0.1), transparent 48%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.owner-inline-form {
  gap: 0.55rem;
}

.owner-inline-label-text {
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.owner-inline-label .owner-field-input {
  margin-top: 0;
}

.owner-inline-status {
  min-height: 1.1rem;
  color: #64748b;
}

.owner-tenant-id {
  margin-top: 0.22rem;
}

.owner-user-actions {
  display: flex;
  justify-content: flex-end;
}

.owner-user-delete-form {
  display: inline-flex;
}

.owner-users-filters {
  margin-top: 0.78rem;
  border: 1px solid #d6e0eb;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 0.72rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.owner-users-filter-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-users-filter-actions {
  margin-top: 0.6rem;
  display: flex;
  justify-content: flex-end;
}

.owner-users-filters [data-owner-user-filter-search],
.owner-users-filters [data-owner-user-filter-tenant],
.owner-users-filters [data-owner-user-filter-status] {
  margin-top: 0;
  min-height: 2.55rem;
  border-radius: 0.78rem;
  font-size: 0.9rem;
  padding: 0.5rem 0.72rem;
}

.owner-users-filters [data-owner-user-filter-tenant],
.owner-users-filters [data-owner-user-filter-status] {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.68rem center;
  background-size: 0.88rem;
}

.owner-users-table {
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}

.owner-users-table thead th {
  border-bottom: 0;
  padding-top: 0;
  padding-bottom: 0.28rem;
  color: #5b6c84;
}

.owner-users-table td {
  overflow-wrap: anywhere;
}

.owner-users-table tbody tr.owner-user-row-card:hover {
  background: transparent;
}

.owner-users-table tbody.owner-users-tenant-group tr:hover {
  background: transparent;
}

.owner-users-table tbody.owner-users-tenant-group td {
  border: 0;
  padding: 0.58rem 0.52rem 0.42rem;
}

.owner-users-tenant-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #dbe5f0;
  border-radius: 0.86rem;
  background: #f8fafc;
  padding: 0.48rem 0.62rem;
}

.owner-users-tenant-copy {
  min-width: 0;
}

.owner-users-tenant-name {
  margin: 0;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

.owner-users-tenant-meta {
  margin: 0.16rem 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem 0.55rem;
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.25;
}

.owner-users-tenant-meta .owner-tenant-id {
  margin-top: 0;
}

.owner-users-table tbody[data-owner-user-group] tr.owner-user-summary-row td {
  border-bottom: 0;
  padding: 0.78rem 0.6rem 0.45rem;
  vertical-align: top;
  background: #fff;
  border-top: 1px solid #d6e0eb;
}

.owner-users-table tbody[data-owner-user-group] tr.owner-user-summary-row td:first-child {
  border-left: 1px solid #d6e0eb;
  border-top-left-radius: 1rem;
  padding-left: 0.72rem;
}

.owner-users-table tbody[data-owner-user-group] tr.owner-user-summary-row td:last-child {
  border-right: 1px solid #d6e0eb;
  border-top-right-radius: 1rem;
  padding-right: 0.72rem;
}

.owner-users-table tbody[data-owner-user-group] tr.owner-user-password-row td {
  border-top: 0;
  border-left: 1px solid #d6e0eb;
  border-right: 1px solid #d6e0eb;
  border-bottom: 1px solid #d6e0eb;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  background: #fff;
  padding: 0.45rem 0.72rem 0.72rem;
}

.owner-users-table tbody.owner-users-gap td {
  border: 0;
  padding: 0;
  height: 0.5rem;
  background: transparent;
}

.owner-user-password-shell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.owner-user-password-form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.owner-user-password-form .owner-field-input {
  margin-top: 0;
  flex: 1 1 14rem;
}

.owner-users-table tbody[data-owner-user-group]:hover tr.owner-user-summary-row td,
.owner-users-table tbody[data-owner-user-group]:hover tr.owner-user-password-row td {
  background: #fff7ed;
}

@media (max-width: 768px) {
  .owner-hero {
    padding: 0.85rem;
  }

  .owner-card {
    padding: 0.8rem;
  }

  .owner-table {
    min-width: 42rem;
  }

  .owner-users-table {
    min-width: 0;
  }

  .owner-users-table thead {
    display: none;
  }

  .owner-users-table tbody.owner-users-tenant-group {
    display: block;
    margin-top: 0.45rem;
  }

  .owner-users-table tbody.owner-users-tenant-group td {
    display: block;
    border: 0;
    padding: 0.35rem 0;
  }

  .owner-users-table tbody[data-owner-user-group] {
    display: block;
    margin-top: 0.55rem;
    border: 1px solid #d6e0eb;
    border-radius: 1rem;
    background: #fff;
    padding: 0.68rem;
  }

  .owner-users-table tbody[data-owner-user-group]:hover {
    background: #fff7ed;
  }

  .owner-users-table tbody[data-owner-user-group] tr {
    display: block;
  }

  .owner-users-table tbody[data-owner-user-group] tr.owner-user-summary-row td,
  .owner-users-table tbody[data-owner-user-group] tr.owner-user-password-row td {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }

  .owner-users-table tbody[data-owner-user-group] tr.owner-user-summary-row td + td {
    margin-top: 0.55rem;
  }

  .owner-users-table tbody[data-owner-user-group] tr.owner-user-summary-row td[data-cell-label]::before {
    content: attr(data-cell-label);
    display: block;
    margin-bottom: 0.2rem;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .owner-users-table tbody[data-owner-user-group] tr.owner-user-password-row td {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e2e8f0;
  }

  .owner-users-table tbody.owner-users-gap {
    display: none;
  }

  .owner-user-actions {
    justify-content: flex-start;
  }

  .owner-users-filters {
    padding: 0.62rem;
  }

  .owner-users-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .owner-users-filter-actions {
    justify-content: flex-start;
  }

  .owner-users-filter-actions .owner-btn {
    width: 100%;
  }

  .owner-users-tenant-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .owner-user-password-form {
    flex-direction: column;
    align-items: stretch;
  }

  .owner-user-password-form .owner-field-input {
    flex: 0 1 auto;
    width: 100%;
  }

  .owner-user-password-form .owner-btn {
    width: 100%;
    justify-content: center;
  }

  .owner-btn {
    min-height: 2.3rem;
  }

  .owner-btn-compact {
    min-height: 2.2rem;
  }
}

.halo-calendar .fc {
  --fc-border-color: #e2e8f0;
  --fc-page-bg-color: #fff;
  --fc-neutral-bg-color: #f8fafc;
  --fc-today-bg-color: rgba(245, 158, 11, 0.13);
  --fc-event-bg-color: #d97706;
  --fc-event-border-color: #d97706;
  --fc-event-text-color: #fff;
  border-radius: 1rem;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui;
}

.halo-calendar .fc .fc-toolbar.fc-header-toolbar {
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.halo-calendar .fc .fc-toolbar-title {
  font-family: "Space Grotesk", ui-sans-serif, system-ui;
  font-size: 1.1rem;
  font-weight: 600;
}

.halo-calendar .fc .fc-button-primary {
  background: #fff;
  border-color: #cbd5e1;
  color: #334155;
  box-shadow: none;
  font-weight: 600;
  text-transform: none;
}

.halo-calendar .fc .fc-button-primary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.halo-calendar .fc .fc-button-primary:disabled {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #94a3b8;
}

.halo-calendar .fc .fc-button-primary:not(:disabled).fc-button-active,
.halo-calendar .fc .fc-button-primary:not(:disabled):active {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

.halo-calendar .fc .fc-button {
  min-height: 2.35rem;
}

.halo-calendar .fc .fc-col-header-cell-cushion,
.halo-calendar .fc .fc-timegrid-slot-label-cushion {
  color: #334155;
  font-weight: 600;
}

.halo-calendar .fc .fc-event {
  border-radius: 0.55rem;
  box-shadow: 0 8px 18px -12px rgba(217, 119, 6, 0.65);
}

.halo-calendar .fc .fc-timegrid-slot-lane,
.halo-calendar .fc .fc-daygrid-day-frame {
  background: #ecfdf5;
}

.halo-calendar .fc .fc-bg-event.availability-partial {
  background: #fef3c7;
  opacity: 0.85;
}

.halo-calendar .fc .fc-bg-event.availability-busy {
  background: #fecaca;
  opacity: 0.9;
}

.halo-calendar .fc .fc-daygrid-event-dot {
  border-color: #d97706;
}

.calendar-status {
  margin-bottom: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #334155;
  padding: 0.5rem 0.75rem;
}

.calendar-status[data-state="success"] {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.calendar-status[data-state="danger"] {
  border-color: #fda4af;
  background: #fff1f2;
  color: #9f1239;
}

.calendar-status[data-state="neutral"] {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.halo-calendar .fc .fc-event.appointment-event {
  cursor: grab;
  font-weight: 600;
  box-shadow: 0 8px 20px -13px rgba(15, 23, 42, 0.58);
}

.halo-calendar .fc .fc-event .calendar-event-notes {
  margin-top: 0.16rem;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.halo-calendar .fc .fc-event.appointment-event.appointment-partial {
  color: #fff;
}

.halo-calendar .fc .fc-event.appointment-event.appointment-busy {
  color: #fff;
}

.halo-calendar .fc .fc-event.appointment-event.fc-event-dragging,
.halo-calendar .fc .fc-event.appointment-event.fc-event-resizing {
  cursor: grabbing;
  box-shadow: 0 14px 28px -18px rgba(15, 23, 42, 0.9);
}

.pull-refresh-indicator {
  position: fixed;
  left: 50%;
  top: 0.85rem;
  z-index: 55;
  transform: translate(-50%, calc(-100% - 0.5rem));
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px -22px rgba(15, 23, 42, 0.8);
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}

.pull-refresh-indicator[data-state="pulling"],
.pull-refresh-indicator[data-state="ready"],
.pull-refresh-indicator[data-state="refreshing"] {
  opacity: 1;
}

.pull-refresh-indicator[data-state="pulling"] {
  transform: translate(-50%, 0);
}

.pull-refresh-indicator[data-state="ready"] {
  transform: translate(-50%, 0.25rem);
  border-color: #fbbf24;
  background: #fffbeb;
  color: #b45309;
}

.pull-refresh-indicator[data-state="refreshing"] {
  transform: translate(-50%, 0.25rem);
  border-color: #fb923c;
  background: #fff7ed;
  color: #9a3412;
}

@media (max-width: 768px) {
  .mobile-touch-zone a,
  .mobile-touch-zone button,
  .mobile-touch-zone select,
  .mobile-touch-zone input[type="text"],
  .mobile-touch-zone input[type="search"],
  .mobile-touch-zone input[type="date"],
  .mobile-touch-zone input[type="email"],
  .mobile-touch-zone input[type="number"],
  .mobile-touch-zone textarea {
    min-height: 44px;
  }

  .appointment-sheet-backdrop {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    position: fixed;
    inset: 0;
    transition: opacity 0.2s ease;
    z-index: 70;
  }

  .appointment-sheet-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .appointment-form-sheet[data-sheet-enabled="true"] {
    position: fixed;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.5rem;
    max-height: calc(100vh - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100svh - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateY(calc(100% + 2rem));
    transition: transform 0.24s ease;
    z-index: 80;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .appointment-form-sheet[data-sheet-enabled="true"].is-open {
    transform: translateY(0);
  }

  .appointment-sheet-handle {
    width: 3.2rem;
    height: 0.28rem;
    border-radius: 9999px;
    background: #cbd5e1;
    margin: 0.1rem auto 0.7rem;
  }

  .appointments-mobile-list {
    padding-bottom: 5.5rem;
  }

  .appointments-mobile-fab {
    border-radius: 9999px;
    box-shadow: 0 20px 35px -23px rgba(234, 88, 12, 0.95);
    min-height: 52px;
    min-width: 52px;
    position: fixed;
    right: 1rem;
    bottom: calc(0.9rem + env(safe-area-inset-bottom));
    z-index: 65;
  }

  body.appointment-sheet-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .appointments-list-header {
    align-items: stretch;
    gap: 0.62rem;
  }

  .appointments-list-stats {
    margin-top: 0.35rem;
    gap: 0.35rem;
  }

  .appointments-list-stat {
    font-size: 0.68rem;
    padding: 0.12rem 0.52rem;
  }

  .appointments-filter-reset {
    width: 100%;
    min-height: 2.25rem;
  }

  .appointments-filters-shell {
    margin-top: 0.74rem;
    padding: 0.62rem;
  }

  .appointments-filters-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.52rem;
  }

  .appointments-filter-field-search {
    grid-column: auto;
  }

  .appointments-filter-label {
    margin-bottom: 0.25rem;
    font-size: 0.64rem;
  }

  .appointments-filter-input {
    min-height: 2.34rem;
    font-size: 0.88rem;
  }

  .appointments-cards {
    gap: 0.75rem;
  }

  .appointment-card {
    padding: 0.75rem 0.8rem;
  }

  .appointment-card:hover,
  .halo-list-card:hover {
    transform: none;
  }

  .appointment-card-header {
    flex-direction: column;
    gap: 0.6rem;
  }

  .appointment-card-title {
    font-size: 0.97rem;
  }

  .appointment-card-tools {
    justify-content: flex-start;
  }

  .appointment-card-meta {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .appointment-time-panel {
    padding: 0.82rem;
  }

  .appointment-date-input {
    min-height: 3rem;
    font-size: 1.08rem;
  }

  .time-range-filter-btn {
    min-height: 2.3rem;
    font-size: 0.76rem;
  }

  .appointment-slot {
    min-height: 5.4rem;
    padding: 0.62rem 0.62rem 0.58rem;
  }

  .appointment-slot-label {
    padding-left: 0.64rem;
    font-size: 1rem;
  }

  .appointment-slot-subtitle {
    padding-left: 0.64rem;
    font-size: 0.73rem;
  }

  .appointments-table {
    min-width: 100%;
  }

  .appointments-table thead,
  .notification-logs-table thead {
    display: none;
  }

  .appointments-table,
  .notification-logs-table,
  .appointments-table tbody,
  .notification-logs-table tbody,
  .appointments-table tr,
  .notification-logs-table tr,
  .appointments-table td,
  .notification-logs-table td {
    display: block;
    width: 100%;
  }

  .appointments-table tbody,
  .notification-logs-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .appointments-table tr,
  .notification-logs-table tr {
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 10px 22px -20px rgba(15, 23, 42, 0.7);
    padding: 0.65rem 0.75rem;
  }

  .appointments-table td,
  .notification-logs-table td {
    border-bottom: 1px dashed #e2e8f0;
    padding: 0.45rem 0;
    display: grid;
    grid-template-columns: minmax(5.5rem, 36%) minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
  }

  .appointments-table td::before,
  .notification-logs-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .appointments-table td:last-child,
  .notification-logs-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .notification-logs-table td.log-col-details {
    display: block;
    padding-top: 0.55rem;
  }

  .notification-logs-table td.log-col-details::before {
    display: block;
    margin-bottom: 0.25rem;
  }

  .notification-logs-table td.log-col-status {
    align-items: start;
  }

  .notification-logs-table .notification-log-status {
    justify-self: start;
    font-size: 0.86rem;
  }

  .notification-logs-table .notification-log-type-text {
    font-size: 0.83rem;
  }

  .notification-logs-table .notification-log-detail {
    font-size: 0.82rem;
  }

  .appointments-table .appt-col-start,
  .appointments-table .appt-col-end,
  .appointments-table .appt-col-duration,
  .appointments-table .appt-col-price,
  .appointments-table .appt-col-reminder,
  .appointments-table .appt-col-actions {
    white-space: normal;
  }

  .appointments-table td.appt-col-actions {
    display: block;
    padding-top: 0.55rem;
    width: 100%;
    text-align: left;
  }

  .appointments-table td.appt-col-actions::before {
    content: none;
  }

  .appointments-table td.appt-col-actions .appointment-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .customers-table thead {
    display: none;
  }

  .customers-table,
  .customers-table tbody,
  .customers-table tr,
  .customers-table td {
    display: block;
    width: 100%;
  }

  .customers-table tbody {
    display: grid;
    gap: 0.8rem;
  }

  .customers-table tbody tr.customer-row-card {
    display: grid;
    gap: 0.65rem;
  }

  .customer-mobile-toggle {
    display: flex;
    width: 100%;
    min-height: 2.85rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    border: 1px solid #d6e0eb;
    border-radius: 0.92rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px -22px rgba(15, 23, 42, 0.82);
    padding: 0.54rem 0.7rem;
    text-align: left;
  }

  .customer-mobile-toggle + [data-customer-collapse-content] {
    margin-top: 0.52rem;
  }

  .customer-row-card.is-mobile-collapsed .customer-mobile-toggle-icon {
    transform: rotate(-90deg);
  }

  .customer-row-card.is-mobile-collapsed [data-customer-collapse-content] {
    display: none !important;
  }

  .customers-table tbody tr.customer-row-card td:first-child,
  .customers-table tbody tr.customer-row-card td:last-child {
    padding: 0;
  }

  .customer-profile-card,
  .customer-history-card {
    height: auto;
    padding: 0.68rem;
  }

  .customer-edit-trigger,
  .customer-edit-close {
    width: 2.2rem;
    min-width: 2.2rem;
    height: 2.2rem;
  }
}

@media (max-width: 768px) {
  /* Custom mobile calendar navigation */
  .mobile-calendar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .mobile-calendar-title {
    margin: 0;
    color: #0f172a;
    font-family: "Space Grotesk", ui-sans-serif, system-ui;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
  }

  .mobile-calendar-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-cal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .mobile-cal-btn:active {
    transform: scale(0.96);
    background: #f8fafc;
  }

  .mobile-cal-btn i {
    width: 20px;
    height: 20px;
  }

  .mobile-calendar-view-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .mobile-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .mobile-view-btn:active {
    transform: scale(0.96);
  }

  .mobile-view-btn.active {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
  }

  /* Hide FullCalendar's built-in toolbar on mobile */
  .halo-calendar .fc .fc-toolbar {
    display: none;
  }

  .halo-calendar .fc .fc-daygrid-day-number {
    font-size: 0.78rem;
    padding: 0.2rem 0.3rem;
  }

  .halo-calendar .fc .fc-daygrid-event {
    font-size: 0.72rem;
  }

  .halo-calendar .fc .fc-timegrid-axis-cushion,
  .halo-calendar .fc .fc-col-header-cell-cushion {
    font-size: 0.7rem;
  }

  /* Better mobile timeGrid rendering */
  .halo-calendar .fc .fc-timegrid-slots {
    font-size: 0.7rem;
  }

  .halo-calendar .fc .fc-timegrid-slot {
    height: 3rem;
  }

  .halo-calendar .fc .fc-timegrid-slot-label-cushion {
    padding: 0.2rem 0.25rem;
  }

  .halo-calendar .fc .fc-timegrid-event {
    font-size: 0.7rem;
    padding: 0.2rem 0.3rem;
  }

  .halo-calendar .fc .fc-timegrid-col-frame {
    min-width: 100%;
  }

  /* Ensure proper scrolling for week views */
  .halo-calendar .fc .fc-scroller {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

.halo-toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 120;
  display: grid;
  gap: 0.5rem;
  width: min(24rem, calc(100vw - 2rem));
}

.halo-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 35px -28px rgba(15, 23, 42, 0.95);
  padding: 0.6rem 0.75rem;
  color: #0f172a;
  animation: halo-toast-enter 0.18s ease-out;
}

.halo-toast.is-closing {
  animation: halo-toast-leave 0.18s ease-in forwards;
}

.halo-toast-message {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}

.halo-toast-dismiss {
  min-height: 1.7rem;
  min-width: 1.7rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.halo-toast-dismiss:hover {
  background: rgba(15, 23, 42, 0.08);
}

.halo-toast-success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.halo-toast-error {
  border-color: #fda4af;
  background: #fff1f2;
  color: #9f1239;
}

.halo-toast-warning {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

.halo-toast-info {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}

@keyframes halo-toast-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes halo-toast-leave {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.calendar-loading-shell {
  position: relative;
  min-height: 30rem;
}

.calendar-skeleton {
  position: absolute;
  inset: 0;
  z-index: 10;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.9rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.calendar-skeleton.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.calendar-skeleton-toolbar {
  height: 2.2rem;
  width: min(17rem, 70%);
}

.calendar-skeleton-line {
  border-radius: 9999px;
  height: 0.8rem;
}

.calendar-skeleton-block {
  border-radius: 0.75rem;
  height: 3.3rem;
}

.calendar-skeleton-toolbar,
.calendar-skeleton-line,
.calendar-skeleton-block {
  background: linear-gradient(90deg, #e2e8f0 22%, #f8fafc 50%, #e2e8f0 78%);
  background-size: 200% 100%;
  animation: halo-skeleton-wave 1.2s ease-in-out infinite;
}

@keyframes halo-skeleton-wave {
  from {
    background-position: 100% 50%;
  }
  to {
    background-position: 0 50%;
  }
}

.appointment-submit-progress {
  width: min(24rem, 100%);
  border: 1px solid #fdba74;
  border-radius: 0.85rem;
  background: #fffbeb;
  padding: 0.5rem 0.65rem;
}

.appointment-submit-progress-track {
  height: 0.42rem;
  border-radius: 9999px;
  background: #fed7aa;
  overflow: hidden;
}

.appointment-submit-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316 0%, #d97706 100%);
  transition: width 0.22s ease;
}

.appointment-submit-progress-label {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9a3412;
}
