/* 26Booking – enterprise dark UI (26POS design system) */
:root {
  --pos-bg: #0B1020;
  --pos-card: #111827;
  --pos-surface: #1A2235;
  --pos-primary: #1677FF;
  --pos-primary-h: #0F5FD7;
  --pos-border: rgba(255, 255, 255, 0.08);
  --pos-text: #FFFFFF;
  --pos-muted: #94A3B8;
  --pos-success: #22C55E;
  --pos-warning: #F59E0B;
  --pos-danger: #EF4444;
  --pos-radius: 12px;
  --pos-radius-lg: 14px;
  --sidebar-width: 15rem;
  --topbar-height: 3.5rem;
  --shell-banner-height: 1.75rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --app-header-total: calc(var(--topbar-height) + var(--safe-top));
  --pwa-banners-height: 0px;
  --pos-select-chevron: 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='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

/* Scrollbar – во тон со dark UI */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 119, 255, 0.42) var(--pos-surface);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--pos-bg);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(22, 119, 255, 0.5), rgba(15, 95, 215, 0.38));
  border-radius: 999px;
  border: 2px solid var(--pos-bg);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(22, 119, 255, 0.72), rgba(15, 95, 215, 0.55));
}

*::-webkit-scrollbar-corner {
  background: var(--pos-bg);
}

body.app-shell {
  background: var(--pos-bg);
  color: var(--pos-text);
}

/* Topbar & sidebar */
.app-topbar {
  box-shadow: 0 1px 0 var(--pos-border);
  top: 0;
  padding-top: var(--safe-top);
  padding-left: max(1rem, var(--safe-left));
  padding-right: max(1rem, var(--safe-right));
  min-height: var(--app-header-total);
  height: auto;
}

.app-sidebar,
.app-sidebar-mobile {
  top: var(--app-header-total);
  height: calc(100dvh - var(--app-header-total));
  height: calc(100svh - var(--app-header-total));
  max-height: calc(100dvh - var(--app-header-total));
  max-height: calc(100svh - var(--app-header-total));
}

body.app-shell .app-main {
  padding-top: var(--app-header-total);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
  min-height: 100dvh;
  min-height: 100svh;
}

body.app-shell .app-main.app-main--with-banner {
  padding-top: calc(var(--app-header-total) + var(--shell-banner-height));
}

.app-shell-banner {
  top: var(--app-header-total);
  left: 0;
  right: 0;
  padding-left: max(1rem, var(--safe-left));
  padding-right: max(1rem, var(--safe-right));
}

.pwa-banners {
  position: fixed;
  top: var(--app-header-total);
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: max(0.75rem, var(--safe-left));
  padding-right: max(0.75rem, var(--safe-right));
}

.app-promo-banner {
  border-bottom: 1px solid var(--pos-border);
  background: linear-gradient(180deg, rgba(26, 34, 53, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: app-promo-in 0.28s ease-out;
}

.app-promo-banner--install {
  border-bottom-color: rgba(22, 119, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(22, 119, 255, 0.12);
}

.app-promo-banner--push {
  border-bottom-color: rgba(34, 197, 94, 0.22);
  box-shadow: inset 0 1px 0 rgba(34, 197, 94, 0.1);
}

.app-promo-banner__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.85rem;
  max-width: 80rem;
  margin: 0 auto;
}

.app-promo-banner__icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: rgba(22, 119, 255, 0.14);
  color: #93c5fd;
}

.app-promo-banner--push .app-promo-banner__icon {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.app-promo-banner__content {
  flex: 1 1 auto;
  min-width: 0;
}

.app-promo-banner__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pos-text);
  line-height: 1.3;
}

.app-promo-banner__text {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--pos-muted);
}

.app-promo-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.app-promo-banner__cta {
  border: none;
  border-radius: 0.55rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: var(--pos-primary);
  color: #fff;
  transition: background 0.15s ease;
}

.app-promo-banner__cta:hover {
  background: var(--pos-primary-h);
}

.app-promo-banner__cta--block {
  width: 100%;
  padding: 0.6rem 1rem;
  margin-top: 0.25rem;
}

.app-promo-banner__close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--pos-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.app-promo-banner__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--pos-text);
}

.app-promo-sheet {
  border-bottom: 1px solid rgba(22, 119, 255, 0.28);
  background: linear-gradient(180deg, rgba(22, 34, 58, 0.99) 0%, rgba(17, 24, 39, 0.99) 100%);
  animation: app-promo-in 0.28s ease-out;
}

.app-promo-sheet__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.9rem 0.85rem 1rem;
}

.app-promo-sheet__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.app-promo-sheet__icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: rgba(22, 119, 255, 0.14);
  color: #93c5fd;
}

.app-promo-sheet__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pos-text);
}

.app-promo-sheet__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--pos-muted);
}

.app-promo-sheet__steps {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  color: #cbd5e1;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.app-promo-sheet__steps li + li {
  margin-top: 0.35rem;
}

.app-toast-root {
  position: fixed;
  top: calc(var(--app-header-total) + var(--pwa-banners-height) + 0.5rem);
  left: max(0.75rem, var(--safe-left));
  right: max(0.75rem, var(--safe-right));
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 28rem;
  margin: 0 auto;
}

.app-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.85rem;
  border-radius: var(--pos-radius);
  border: 1px solid var(--pos-border);
  background: rgba(17, 24, 39, 0.97);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-toast__icon {
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.app-toast__body {
  flex: 1 1 auto;
  min-width: 0;
}

.app-toast__title {
  margin: 0 0 0.15rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pos-text);
}

.app-toast__message {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--pos-muted);
}

.app-toast__close {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--pos-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.app-toast__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--pos-text);
}

.app-toast--success {
  border-color: rgba(34, 197, 94, 0.35);
}

.app-toast--success .app-toast__icon {
  color: #86efac;
}

.app-toast--warning {
  border-color: rgba(245, 158, 11, 0.35);
}

.app-toast--warning .app-toast__icon {
  color: #fcd34d;
}

.app-toast--error {
  border-color: rgba(239, 68, 68, 0.35);
}

.app-toast--error .app-toast__icon {
  color: #fca5a5;
}

.app-toast--info {
  border-color: rgba(22, 119, 255, 0.35);
}

.app-toast--info .app-toast__icon {
  color: #93c5fd;
}

@keyframes app-promo-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .app-promo-banner__inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .app-promo-banner__actions {
    width: 100%;
    justify-content: flex-end;
    padding-left: 2.85rem;
  }

  .app-toast-root {
    max-width: none;
  }
}

.app-sidebar,
.app-sidebar-mobile {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(11, 16, 32, 0.98) 100%);
  border-color: var(--pos-border);
}

.app-sidebar {
  border-right: 1px solid var(--pos-border);
}

.app-sidebar-mobile {
  border-left: 1px solid var(--pos-border);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--pos-card);
}

.app-sidebar-scroll {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.app-sidebar-inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-sidebar-footer {
  flex-shrink: 0;
  padding: 0.75rem;
  padding-bottom: calc(0.75rem + var(--safe-bottom));
  border-top: 1px solid var(--pos-border);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92) 0%, rgba(11, 16, 32, 0.98) 100%);
}

.app-nav-link--logout {
  color: #fca5a5;
}

.app-nav-link--logout:hover {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.1);
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.65rem 0.875rem;
  border-radius: var(--pos-radius);
  color: var(--pos-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.app-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--pos-text);
}

.app-nav-link--active {
  background: rgba(22, 119, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.28);
}

.app-nav-divider {
  height: 1px;
  margin: 0.5rem 0.25rem;
  background: var(--pos-border);
}

.app-accordion {
  border: 1px solid var(--pos-border);
  border-radius: var(--pos-radius);
  background: var(--pos-card);
  overflow: hidden;
}

.app-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
  color: var(--pos-text);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.18s ease;
}

.app-accordion__trigger::-webkit-details-marker {
  display: none;
}

.app-accordion__trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.app-accordion__trigger-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.app-accordion__trigger-text small {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--pos-muted);
}

.app-accordion__chevron {
  flex-shrink: 0;
  color: var(--pos-muted);
  transition: transform 0.2s ease;
}

.app-accordion[open] .app-accordion__chevron {
  transform: rotate(180deg);
}

.app-accordion__body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--pos-border);
}

.app-subscription-card {
  display: block;
  padding: 0.75rem;
  border-radius: var(--pos-radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--pos-border);
  transition: background 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
}

.app-subscription-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(22, 119, 255, 0.35);
}

.app-subscription-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.app-subscription-card__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pos-muted);
}

.app-subscription-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
}

.app-subscription-badge--active {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.app-subscription-badge--trial {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

.app-subscription-badge--warning {
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
}

.app-subscription-badge--danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.app-subscription-card__meta {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.app-subscription-card__meta div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.app-subscription-card__meta dt {
  margin: 0;
  color: var(--pos-muted);
  font-weight: 500;
}

.app-subscription-card__meta dd {
  margin: 0;
  color: var(--pos-text);
  font-weight: 600;
  text-align: right;
}

.app-subscription-card__link {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(22, 119, 255, 0.9);
}

.app-subscription-details {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.app-subscription-details div {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pos-border);
}

.app-subscription-details div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.app-subscription-details dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pos-muted);
}

.app-subscription-details dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--pos-text);
}

.app-main {
  position: relative;
  background-color: var(--pos-bg);
}

.app-main::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(22, 119, 255, 0.08), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(22, 119, 255, 0.05), transparent 50%),
    var(--pos-bg);
  background-repeat: no-repeat;
  background-size: cover;
}

/* Cards & surfaces */
.app-card {
  background: var(--pos-card);
  border: 1px solid var(--pos-border);
  border-radius: var(--pos-radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.app-card-hover {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.app-card-hover:hover {
  border-color: rgba(22, 119, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.12), 0 12px 32px rgba(0, 0, 0, 0.28);
}

.app-stat-card {
  background: linear-gradient(145deg, rgba(26, 34, 53, 0.9), rgba(17, 24, 39, 0.95));
  border: 1px solid var(--pos-border);
  border-radius: var(--pos-radius-lg);
  padding: 1.25rem 1.35rem;
}

.app-page-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--pos-text);
}

.app-page-subtitle {
  font-size: 0.875rem;
  color: var(--pos-muted);
  margin-top: 0.25rem;
}

/* Buttons */
.app-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--pos-radius);
  background: var(--pos-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.app-btn-primary:hover {
  background: var(--pos-primary-h);
  box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.35), 0 8px 20px rgba(22, 119, 255, 0.22);
}

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

.app-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.app-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: var(--pos-radius);
  background: var(--pos-surface);
  color: var(--pos-text);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--pos-border);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.app-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.app-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  border-radius: var(--pos-radius);
  border: 1px solid var(--pos-border);
  color: var(--pos-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.app-btn-ghost:hover {
  color: var(--pos-text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.app-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  border-radius: var(--pos-radius);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(239, 68, 68, 0.08);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.app-btn-danger:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #fff;
}

.app-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  color: var(--pos-muted);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.app-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--pos-text);
}

.app-window-controls {
  padding-left: 0.25rem;
}

.app-window-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--pos-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-window-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--pos-text);
}

.app-window-btn--close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* Inputs */
.app-input,
.app-select,
.app-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--pos-radius);
  background-color: var(--pos-surface);
  border: 1px solid var(--pos-border);
  color: var(--pos-text);
  font-size: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

select,
.app-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
  cursor: pointer;
  min-height: 2.75rem;
  padding-right: 2.35rem;
  background-image: var(--pos-select-chevron);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

select:hover,
.app-select:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

select option,
.app-select option {
  background-color: var(--pos-card);
  color: var(--pos-text);
}

select option:checked,
.app-select option:checked {
  background-color: var(--pos-primary);
  color: #fff;
}

.app-input[type="date"],
.app-input[type="datetime-local"],
.app-input[type="time"],
body.app-shell input[type="date"],
body.app-shell input[type="datetime-local"],
body.app-shell input[type="time"],
body.app-booking-shell input[type="date"],
body.app-booking-shell input[type="datetime-local"],
body.app-booking-shell input[type="time"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  line-height: 1.25;
  box-sizing: border-box;
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
}

.app-input[type="date"]::-webkit-date-and-time-value,
body.app-shell input[type="date"]::-webkit-date-and-time-value,
body.app-booking-shell input[type="date"]::-webkit-date-and-time-value {
  display: block;
  min-width: 0;
  text-align: left;
}

.app-input[type="date"]::-webkit-datetime-edit,
body.app-shell input[type="date"]::-webkit-datetime-edit,
body.app-booking-shell input[type="date"]::-webkit-datetime-edit {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 1.35rem;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
}

.app-input[type="date"]::-webkit-datetime-edit-fields-wrapper,
body.app-shell input[type="date"]::-webkit-datetime-edit-fields-wrapper,
body.app-booking-shell input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  min-width: 0;
  max-width: 100%;
  padding: 0;
}

.app-input[type="date"]::-webkit-datetime-edit-year-field,
.app-input[type="date"]::-webkit-datetime-edit-month-field,
.app-input[type="date"]::-webkit-datetime-edit-day-field,
body.app-shell input[type="date"]::-webkit-datetime-edit-year-field,
body.app-shell input[type="date"]::-webkit-datetime-edit-month-field,
body.app-shell input[type="date"]::-webkit-datetime-edit-day-field,
body.app-booking-shell input[type="date"]::-webkit-datetime-edit-year-field,
body.app-booking-shell input[type="date"]::-webkit-datetime-edit-month-field,
body.app-booking-shell input[type="date"]::-webkit-datetime-edit-day-field {
  padding: 0;
}

.app-input[type="date"]::-webkit-calendar-picker-indicator,
body.app-shell input[type="date"]::-webkit-calendar-picker-indicator,
body.app-booking-shell input[type="date"]::-webkit-calendar-picker-indicator {
  flex-shrink: 0;
  margin-left: auto;
  cursor: pointer;
  filter: invert(0.85);
}

.app-date-field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.app-input::placeholder,
.app-textarea::placeholder { color: #64748b; }

.app-input:focus,
.app-select:focus,
.app-textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(22, 119, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.16);
}

.app-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--pos-muted);
}

/* Alerts */
.app-alert-success {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border-radius: var(--pos-radius);
  padding: 0.75rem 1rem;
}

.app-alert-danger {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-radius: var(--pos-radius);
  padding: 0.75rem 1rem;
}

/* Modal */
.app-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.app-dialog-root[hidden] {
  display: none !important;
}

.app-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.app-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--pos-card);
  border: 1px solid var(--pos-border);
  border-radius: var(--pos-radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  animation: app-dialog-in 0.2s ease-out;
}

.app-dialog__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.875rem;
  border-radius: 999px;
}

.app-dialog__icon--danger {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
}

.app-dialog__icon--warning {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

.app-dialog__icon--info {
  background: rgba(22, 119, 255, 0.14);
  color: #60a5fa;
}

.app-dialog__title {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.app-dialog__message {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--pos-muted);
}

.app-dialog__message.is-hidden {
  display: none;
}

.app-dialog__actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.625rem;
}

@media (min-width: 420px) {
  .app-dialog__actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.app-dialog__btn {
  flex: 1;
  min-height: 2.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--pos-radius);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.app-dialog__btn--secondary {
  background: var(--pos-surface);
  border-color: var(--pos-border);
  color: #e2e8f0;
}

.app-dialog__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.app-dialog__btn--primary {
  background: var(--pos-primary);
  color: #fff;
}

.app-dialog__btn--primary:hover {
  background: var(--pos-primary-h);
}

.app-dialog__btn--danger {
  background: #dc2626;
  color: #fff;
}

.app-dialog__btn--danger:hover {
  background: #b91c1c;
}

body.app-dialog-open {
  overflow: hidden;
}

@keyframes app-dialog-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.app-modal-backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.app-modal {
  background: var(--pos-card);
  border: 1px solid var(--pos-border);
  border-radius: var(--pos-radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.app-dialog-title--info {
  color: var(--pos-text);
}

.app-dialog-title--warning {
  color: #fcd34d;
}

.app-dialog-title--danger {
  color: #fca5a5;
}

/* POS */
.pos-search-wrap .select2-container { width: 100% !important; }

.pos-cart-panel {
  background: var(--pos-card);
  border: 1px solid var(--pos-border);
  border-radius: var(--pos-radius-lg);
  overflow: hidden;
}

.pos-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--pos-border);
  transition: background 0.15s ease;
}

.pos-cart-item:hover { background: rgba(255, 255, 255, 0.02); }

.pos-cart-item__content {
  min-width: 0;
  flex: 1;
}

.pos-cart-item__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pos-cart-item__name {
  color: #e2e8f0;
  font-weight: 500;
}

.pos-cart-item__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.pos-cart-item__price {
  color: var(--pos-primary);
  font-weight: 600;
}

.pos-cart-item__price-old {
  color: var(--pos-muted);
  font-size: 0.85rem;
  text-decoration: line-through;
}

.pos-discount-panel .app-input {
  min-height: 2.5rem;
}

.pos-search-item {
  padding: 0.15rem 0;
}

.pos-search-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pos-search-item__name {
  color: #f8fafc;
  font-weight: 500;
}

.pos-search-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
  color: var(--pos-muted);
  font-size: 0.8125rem;
}

.pos-tax-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.pos-tax-badge--А {
  border-color: rgba(22, 119, 255, 0.35);
  background: rgba(22, 119, 255, 0.14);
  color: #bfdbfe;
}

.pos-tax-badge--Б {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.pos-tax-badge--В {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}

.pos-tax-badge--Г {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.sale-row--storno {
  opacity: 0.72;
}

.sale-row--storno .sale-cell-storno {
  text-decoration: line-through;
  color: #94a3b8;
}

html:not(.is-electron) .electron-only {
  display: none !important;
}

.product-low-stock-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  font-size: 0.75rem;
  font-weight: 600;
}

.sale-storno-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 600;
}

.sale-payment-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.sale-payment-badge--cash {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.sale-payment-badge--card {
  border: 1px solid rgba(22, 119, 255, 0.35);
  background: rgba(22, 119, 255, 0.12);
  color: #93c5fd;
}

.sale-payment-badge--muted {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.pos-search-item__sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #93c5fd;
  font-size: 0.8125rem;
}

.pos-output {
  border-radius: var(--pos-radius-lg);
  border: 1px solid var(--pos-border);
  background: var(--pos-card);
  padding: 1rem;
  font-size: 0.875rem;
  white-space: pre-wrap;
  min-height: 3rem;
}

.pos-output--success { color: var(--pos-success); }
.pos-output--error { color: #fca5a5; }

/* Login */
.app-login-topbar {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.72), transparent);
  pointer-events: none;
}

.app-login-topbar .app-window-controls {
  pointer-events: auto;
}

.app-login-shell {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  background-color: var(--pos-bg);
  overflow-x: hidden;
}

.app-login-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 20% -10%, rgba(22, 119, 255, 0.18), transparent 60%),
    radial-gradient(700px 360px at 100% 100%, rgba(22, 119, 255, 0.08), transparent 55%),
    var(--pos-bg);
  background-repeat: no-repeat;
  background-size: cover;
}

.app-auth-container {
  width: 100%;
  margin: 0 auto;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

.app-auth-container--login {
  max-width: 28rem;
}

.app-auth-container--wide {
  max-width: 44rem;
}

@media (min-width: 640px) {
  .app-auth-container {
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.app-login-card {
  width: 100%;
  max-width: 100%;
  padding: 1.5rem;
  border-radius: var(--pos-radius-lg);
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--pos-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  box-sizing: border-box;
}

/* Auth form pages */
.app-form-page {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  background-color: var(--pos-bg);
  overflow-x: hidden;
}

.app-form-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 20% -10%, rgba(22, 119, 255, 0.12), transparent 60%),
    radial-gradient(700px 360px at 100% 100%, rgba(22, 119, 255, 0.06), transparent 55%),
    var(--pos-bg);
  background-repeat: no-repeat;
  background-size: cover;
}

.app-form-card {
  width: 100%;
  max-width: 100%;
  padding: 1.5rem;
  border-radius: var(--pos-radius-lg);
  background: var(--pos-card);
  border: 1px solid var(--pos-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .app-login-card,
  .app-form-card {
    padding: 2rem;
  }
}

/* Auth inputs – prevent iOS zoom + overflow */
.app-login-shell .app-input,
.app-login-shell .app-textarea,
.app-login-shell .app-select,
.app-form-page .app-input,
.app-form-page .app-textarea,
.app-form-page .app-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 16px;
}

.app-auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  text-align: center;
}

.app-auth-brand__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.app-auth-brand__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  word-break: break-word;
}

.app-auth-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--pos-muted);
}

.app-auth-footer--row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.75rem;
}

.app-plan-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
  border-radius: var(--pos-radius);
  border: 1px solid var(--pos-border);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.app-plan-option:hover {
  border-color: rgba(22, 119, 255, 0.4);
  background: rgba(255, 255, 255, 0.02);
}

.app-plan-option input[type="radio"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.app-plan-option__body {
  flex: 1;
  min-width: 0;
}

.app-plan-option__title {
  display: block;
  font-weight: 500;
  color: #fff;
  word-break: break-word;
}

.app-plan-option__price {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--pos-muted);
}

/* DataTables */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  color: var(--pos-muted);
  font-size: 0.8125rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background-color: var(--pos-surface);
  border: 1px solid var(--pos-border);
  color: var(--pos-text);
  border-radius: var(--pos-radius);
  padding: 0.5rem 2.1rem 0.5rem 0.75rem;
  min-height: 2.35rem;
  min-width: 4.25rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  cursor: pointer;
  background-image: var(--pos-select-chevron);
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dataTables_wrapper .dataTables_length select:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.dataTables_wrapper .dataTables_length select:focus {
  outline: none;
  border-color: rgba(22, 119, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.16);
}

.dataTables_wrapper .dataTables_length select option {
  background-color: var(--pos-card);
  color: var(--pos-text);
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--pos-muted);
}

.dataTables_wrapper table.dataTable {
  border-collapse: separate;
  border-spacing: 0;
}

.dataTables_wrapper table.dataTable thead th {
  background: var(--pos-surface);
  color: var(--pos-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--pos-border) !important;
}

.dataTables_wrapper table.dataTable tbody td {
  border-bottom: 1px solid var(--pos-border) !important;
  color: #e2e8f0;
  font-size: 0.875rem;
}

.dataTables_wrapper table.dataTable tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: var(--pos-muted) !important;
  border: 1px solid var(--pos-border) !important;
  background: var(--pos-surface) !important;
  border-radius: 10px !important;
  margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(22, 119, 255, 0.12) !important;
  border-color: rgba(22, 119, 255, 0.35) !important;
  color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--pos-primary) !important;
  border-color: var(--pos-primary) !important;
  color: #fff !important;
}

/* Select2 */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  background-color: var(--pos-surface) !important;
  border: 1px solid var(--pos-border) !important;
  color: var(--pos-text) !important;
  border-radius: var(--pos-radius) !important;
  min-height: 2.75rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--pos-text) !important;
  line-height: 2.5rem !important;
  padding-left: 0.75rem !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: rgba(22, 119, 255, 0.18) !important;
  color: #dbeafe !important;
  border: 1px solid rgba(22, 119, 255, 0.28) !important;
  border-radius: 8px !important;
}

.select2-dropdown {
  background-color: var(--pos-card) !important;
  border: 1px solid var(--pos-border) !important;
  border-radius: var(--pos-radius) !important;
  overflow: hidden;
}

.select2-results__option {
  background-color: transparent !important;
  color: #e2e8f0 !important;
  padding: 0.55rem 0.75rem !important;
}

.select2-results__option--highlighted {
  background-color: rgba(22, 119, 255, 0.16) !important;
  color: #fff !important;
}

.select2-search--dropdown .select2-search__field {
  background-color: var(--pos-surface) !important;
  color: var(--pos-text) !important;
  border: 1px solid var(--pos-border) !important;
  border-radius: 10px !important;
}

/* Shop switcher */
.app-shop-switch {
  min-width: 0;
}

.app-shop-select {
  min-width: 7.5rem;
  max-width: 12rem;
  padding: 0.45rem 1.75rem 0.45rem 0.65rem;
  border-radius: 10px;
  background-color: var(--pos-surface);
  border: 1px solid var(--pos-border);
  color: var(--pos-text);
  font-size: 0.8125rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  background-image: var(--pos-select-chevron);
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
}

.app-shop-select:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.app-shop-select:focus {
  outline: none;
  border-color: rgba(22, 119, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
}

.app-shop-badge {
  display: inline-flex;
  align-items: center;
  max-width: 10rem;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  background: var(--pos-surface);
  border: 1px solid var(--pos-border);
  color: var(--pos-text);
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .app-shop-select {
    min-width: 9rem;
    max-width: 14rem;
  }
}

/* Chart */
.chart-wrap canvas {
  display: block;
  max-width: 100%;
  border-radius: var(--pos-radius);
}

.sidebar-mobile { transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar-backdrop { transition: opacity 0.2s ease; }

@media (max-width: 768px) {
  .sidebar-desktop { display: none !important; }
}

/* Legacy page compatibility (pages not yet migrated to shell) */
.bg-zinc-900 { background-color: var(--pos-bg) !important; }
.bg-zinc-800, .bg-zinc-800\/60, .bg-zinc-800\/80 { background-color: var(--pos-card) !important; }
.bg-zinc-700, .bg-zinc-700\/30, .bg-zinc-700\/50 { background-color: var(--pos-surface) !important; }
.border-zinc-700, .border-zinc-700\/50, .border-zinc-600 { border-color: var(--pos-border) !important; }
.text-zinc-100, .text-zinc-200, .text-zinc-300 { color: #e2e8f0 !important; }
.text-zinc-400 { color: var(--pos-muted) !important; }
.text-amber-400 { color: var(--pos-primary) !important; }
.bg-amber-400 { background-color: var(--pos-primary) !important; color: #fff !important; }
.hover\:bg-amber-300:hover { background-color: var(--pos-primary-h) !important; }
.hover\:bg-amber-400:hover { background-color: var(--pos-primary) !important; color: #fff !important; }
.border-amber-400 { border-color: rgba(22, 119, 255, 0.45) !important; }
.accent-amber-400 { accent-color: var(--pos-primary); }

/* 26Booking – booking slots */
.app-business-logo {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: var(--pos-radius);
  background: var(--pos-surface);
  border: 1px solid var(--pos-border);
  padding: 0.3rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .app-business-logo {
    width: 4rem;
    height: 4rem;
    padding: 0.35rem;
  }
}

.app-business-logo--profile {
  width: 5rem;
  height: 5rem;
  padding: 0.45rem;
  border-radius: var(--pos-radius-lg);
}

.app-booking-card {
  border: 1px solid var(--pos-border);
  min-width: 0;
  max-width: 100%;
}

.booking-service-list {
  display: grid;
  gap: 0.625rem;
}

.booking-service-option {
  display: block;
  cursor: pointer;
}

.booking-service-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-service-option__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--pos-border);
  border-radius: var(--pos-radius);
  background: var(--pos-surface);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.booking-service-option__input:checked + .booking-service-option__body {
  border-color: rgba(22, 119, 255, 0.65);
  background: rgba(22, 119, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.18);
}

.booking-service-option__input:focus-visible + .booking-service-option__body {
  outline: none;
  border-color: rgba(22, 119, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.18);
}

.booking-service-option__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
}

.booking-service-option__price {
  font-size: 0.875rem;
  font-weight: 600;
  color: #93c5fd;
  white-space: nowrap;
}

.booking-service-summary {
  margin: 0.625rem 0 0;
  font-size: 0.8125rem;
  color: var(--pos-muted);
}

.booking-service-summary.is-hidden {
  display: none;
}

.app-booking-form {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-booking-form.is-loading {
  pointer-events: none;
}

.app-booking-form.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: rgba(11, 16, 32, 0.28);
  backdrop-filter: blur(1px);
}

.app-booking-field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-booking-field.is-disabled {
  opacity: 0.72;
}

.app-booking-field .app-input:disabled,
.app-booking-field .app-select:disabled,
.app-booking-field .app-textarea:disabled {
  opacity: 1;
  cursor: not-allowed;
  background-color: rgba(26, 34, 53, 0.72);
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr));
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 480px) {
  .booking-slots {
    grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr));
    gap: 0.625rem;
  }
}

.booking-slots--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1rem;
  border: 1px dashed var(--pos-border);
  border-radius: var(--pos-radius);
  background: rgba(255, 255, 255, 0.02);
}

.booking-slots__loading {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--pos-muted);
}

.booking-slots__spinner {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgba(148, 163, 184, 0.25);
  border-top-color: var(--pos-primary);
  border-radius: 999px;
  animation: booking-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes booking-spin {
  to {
    transform: rotate(360deg);
  }
}

.booking-slots__message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.875rem 0.25rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--pos-muted);
  text-align: center;
}

.booking-slots__message--error {
  color: #fca5a5;
}

.booking-slots__message--empty {
  color: var(--pos-muted);
}

.booking-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 0.5rem;
  border: 1px solid var(--pos-border);
  border-radius: var(--pos-radius);
  background: var(--pos-surface);
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.booking-slot:hover {
  border-color: rgba(22, 119, 255, 0.55);
  color: #fff;
}

.booking-slot:focus-visible {
  outline: none;
  border-color: rgba(22, 119, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.18);
}

.booking-slot.is-selected,
.slot-btn.selected {
  background-color: var(--pos-primary) !important;
  color: #fff !important;
  border-color: var(--pos-primary) !important;
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.22);
}

body.app-booking-shell .app-booking-form .app-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Legacy slot class */
.slot-btn.selected {
  background-color: var(--pos-primary) !important;
  color: #fff !important;
  border-color: var(--pos-primary) !important;
}

/* 26Booking – Tailwind page compatibility */
body.app-shell .bg-white,
body.app-shell .bg-white\/5 {
  background-color: var(--pos-card) !important;
}

body.app-shell .bg-slate-50,
body.app-shell .bg-slate-100,
body.app-login-shell .bg-slate-50 {
  background-color: transparent !important;
}

body.app-shell .bg-slate-900 {
  background-color: var(--pos-card) !important;
}

body.app-shell .border,
body.app-shell .border-slate-100,
body.app-shell .border-slate-200 {
  border-color: var(--pos-border) !important;
}

body.app-shell .text-slate-800,
body.app-shell .text-slate-700 {
  color: #e2e8f0 !important;
}

body.app-shell .text-slate-600,
body.app-shell .text-slate-500 {
  color: var(--pos-muted) !important;
}

body.app-shell .text-slate-400,
body.app-shell .text-slate-300 {
  color: #64748b !important;
}

body.app-shell .divide-slate-100 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--pos-border) !important;
}

.divide-pos-border > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--pos-border) !important;
}

body.app-shell .bg-indigo-600,
body.app-shell .bg-indigo-500,
body.app-booking-shell .bg-indigo-600 {
  background-color: var(--pos-primary) !important;
  color: #fff !important;
}

body.app-shell .hover\:bg-indigo-500:hover {
  background-color: var(--pos-primary-h) !important;
}

body.app-shell .text-indigo-600,
body.app-shell .text-indigo-700,
body.app-booking-shell .text-indigo-600 {
  color: #93c5fd !important;
}

body.app-shell .text-indigo-400 {
  color: rgba(22, 119, 255, 0.92) !important;
}

body.app-shell .bg-indigo-50 {
  background: rgba(22, 119, 255, 0.14) !important;
}

body.app-shell .bg-indigo-100 {
  background: rgba(22, 119, 255, 0.18) !important;
}

body.app-shell .text-indigo-700 {
  color: #bfdbfe !important;
}

body.app-shell .bg-green-50,
body.app-booking-shell .bg-green-50 {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1) !important;
}

body.app-shell .text-green-800,
body.app-shell .text-green-700,
body.app-booking-shell .text-green-800 {
  color: #86efac !important;
}

body.app-shell .bg-red-50,
body.app-booking-shell .bg-red-50 {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1) !important;
}

body.app-shell .text-red-800,
body.app-shell .text-red-700,
body.app-shell .text-red-600 {
  color: #fca5a5 !important;
}

body.app-shell .bg-red-100 {
  background: rgba(239, 68, 68, 0.18) !important;
}

body.app-shell .text-red-700 {
  color: #fca5a5 !important;
}

body.app-shell .bg-green-100 {
  background: rgba(34, 197, 94, 0.18) !important;
}

body.app-shell .text-green-700 {
  color: #86efac !important;
}

body.app-shell .bg-slate-100 {
  background: var(--pos-surface) !important;
}

body.app-shell .bg-yellow-100,
body.app-shell .bg-amber-100 {
  background: rgba(245, 158, 11, 0.18) !important;
}

body.app-shell .shadow-sm {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22) !important;
}

body.app-shell .from-slate-50,
body.app-shell .to-indigo-50 {
  --tw-gradient-from: transparent !important;
  --tw-gradient-to: transparent !important;
}

/* Auto-style form controls inside app shell */
body.app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
body.app-shell textarea,
body.app-shell select,
body.app-booking-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
body.app-booking-shell textarea,
body.app-booking-shell select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--pos-radius);
  background-color: var(--pos-surface);
  border: 1px solid var(--pos-border);
  color: var(--pos-text);
  font-size: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .app-input,
  .app-select,
  .app-textarea,
  body.app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
  body.app-shell textarea,
  body.app-shell select,
  body.app-booking-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
  body.app-booking-shell textarea,
  body.app-booking-shell select {
    font-size: 0.875rem;
  }
}

body.app-shell select,
body.app-booking-shell select {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  cursor: pointer;
  min-height: 2.75rem;
  padding-right: 2.35rem;
  background-image: var(--pos-select-chevron);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

body.app-shell input:focus,
body.app-shell textarea:focus,
body.app-shell select:focus,
body.app-booking-shell input:focus,
body.app-booking-shell textarea:focus,
body.app-booking-shell select:focus {
  outline: none;
  border-color: rgba(22, 119, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.16);
}

body.app-shell label,
body.app-booking-shell label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--pos-muted);
}

body.app-shell button[type="submit"]:not(.app-btn-secondary):not(.app-btn-ghost):not(.app-btn-danger):not(.slot-btn),
body.app-booking-shell button[type="submit"]:not(.slot-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: var(--pos-radius);
  background: var(--pos-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

body.app-shell button[type="submit"]:not(.app-btn-secondary):hover {
  background: var(--pos-primary-h);
}

.app-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--pos-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.app-brand-logo {
  display: block;
  height: 1.75rem;
  width: auto;
  max-width: 10.5rem;
  object-fit: contain;
}

.app-brand-logo--compact {
  height: 1.625rem;
  max-width: 9.5rem;
}

.app-brand-logo--auth {
  height: 2.25rem;
  max-width: 12.5rem;
}

@media (min-width: 640px) {
  .app-brand-logo--auth {
    height: 2.5rem;
    max-width: 14rem;
  }

  .app-brand-logo--compact {
    height: 1.75rem;
    max-width: 10.5rem;
  }
}

.app-booking-shell {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  background-color: var(--pos-bg);
  color: var(--pos-text);
  overflow-x: hidden;
}

.app-booking-shell main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.app-booking-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 20% -10%, rgba(22, 119, 255, 0.12), transparent 60%),
    radial-gradient(700px 360px at 100% 100%, rgba(22, 119, 255, 0.06), transparent 55%),
    var(--pos-bg);
  background-repeat: no-repeat;
  background-size: cover;
}

.app-booking-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(17, 24, 39, 0.92);
  border-bottom: 1px solid var(--pos-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: var(--safe-top);
  padding-left: max(0.75rem, var(--safe-left));
  padding-right: max(0.75rem, var(--safe-right));
}

.app-booking-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--topbar-height);
  max-width: 48rem;
  margin: 0 auto;
}

.app-booking-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.app-booking-topbar .app-locale-switch a {
  padding: 0.35rem 0.5rem;
}

.app-booking-menu {
  border-top: 1px solid var(--pos-border);
  background: rgba(17, 24, 39, 0.98);
  padding: 0.35rem 0.75rem 0.75rem;
  max-width: 48rem;
  margin: 0 auto;
}

.app-booking-menu.hidden {
  display: none;
}

.app-booking-menu__link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: var(--pos-text);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.app-booking-menu__link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.app-booking-menu__link--danger {
  color: #fca5a5;
}

.app-booking-menu__logout {
  margin: 0;
  padding: 0;
}

.app-booking-main {
  padding-top: calc(var(--topbar-height) + var(--safe-top));
  padding-left: max(1rem, var(--safe-left));
  padding-right: max(1rem, var(--safe-right));
  padding-bottom: max(1.5rem, var(--safe-bottom));
  min-height: 100dvh;
  min-height: 100svh;
}

.app-booking-main__inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
  width: 100%;
  min-width: 0;
}

body.app-booking-shell .pwa-banners {
  top: calc(var(--topbar-height) + var(--safe-top));
}

body.app-booking-shell .app-toast-root {
  top: calc(var(--topbar-height) + var(--safe-top) + var(--pwa-banners-height, 0px) + 0.5rem);
}

@media (min-width: 640px) {
  .app-booking-main__inner {
    padding-top: 1.5rem;
  }
}

.app-link {
  color: rgba(22, 119, 255, 0.92);
  font-weight: 600;
  text-decoration: none;
}

.app-link:hover {
  text-decoration: underline;
}

/* Business register – slug availability */
.slug-auto-hint {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--pos-muted);
}

.slug-auto-hint.is-hidden,
.slug-status.is-hidden,
.slug-suggestions.is-hidden {
  display: none !important;
}

.slug-field-wrap {
  position: relative;
}

.slug-status {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.slug-status--checking {
  color: var(--pos-muted);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--pos-border);
}

.slug-status--available {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
}

.slug-status--taken,
.slug-status--invalid {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
}

.slug-suggestions {
  margin-top: 0.65rem;
}

.slug-suggestions__title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pos-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.slug-suggestions__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slug-suggestion-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 119, 255, 0.35);
  background: rgba(22, 119, 255, 0.12);
  color: #93c5fd;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.slug-suggestion-chip:hover {
  background: rgba(22, 119, 255, 0.22);
  border-color: rgba(22, 119, 255, 0.55);
  transform: translateY(-1px);
}

.slug-input--available {
  border-color: rgba(34, 197, 94, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.12) !important;
}

.slug-input--taken {
  border-color: rgba(239, 68, 68, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12) !important;
}

.service-move-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.35);
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.service-move-btn:hover:not(:disabled) {
  background: rgba(22, 119, 255, 0.18);
  border-color: rgba(22, 119, 255, 0.45);
  color: #93c5fd;
}

.service-move-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Business profile – working hours */
.wh-preset-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 119, 255, 0.35);
  background: rgba(22, 119, 255, 0.1);
  color: #93c5fd;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.wh-preset-chip:hover {
  background: rgba(22, 119, 255, 0.2);
  border-color: rgba(22, 119, 255, 0.55);
  transform: translateY(-1px);
}

.wh-range-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

@media (min-width: 768px) {
  .wh-range-panel__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .wh-range-panel__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.wh-range-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.wh-range-field__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pos-muted);
}

.wh-range-closed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  font-size: 0.875rem;
  color: var(--pos-text);
}

.wh-apply-btn {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--pos-radius);
  background: var(--pos-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.wh-apply-btn:hover {
  background: var(--pos-primary-h);
}

.wh-range-field--action {
  justify-content: flex-end;
}

@media (min-width: 1024px) {
  .wh-range-field--closed,
  .wh-range-field--action {
    grid-column: span 1;
  }
}

.wh-days-grid {
  display: flex;
  flex-direction: column;
}

.wh-day-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 1fr) auto minmax(0, 1.6fr);
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--pos-border);
}

.wh-day-row:last-child {
  border-bottom: none;
}

.wh-day-row__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--pos-text);
}

.wh-day-row__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.wh-day-row__status input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--pos-primary);
}

.wh-day-status {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #86efac;
}

.wh-day-row--closed .wh-day-status {
  color: #fca5a5;
}

.wh-day-row__times {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.wh-day-row__times .app-input {
  flex: 1;
  min-width: 0;
}

.wh-day-row__sep {
  color: var(--pos-muted);
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.wh-day-row--closed .wh-day-row__times {
  opacity: 0.45;
}

.wh-day-row--closed .wh-day-row__times .app-input[readonly] {
  pointer-events: none;
}

@media (max-width: 639px) {
  .wh-day-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .wh-day-row__times {
    padding-left: 1.5rem;
  }
}

/* Business services */
.svc-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.svc-page__count {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--pos-border);
  background: rgba(26, 34, 53, 0.65);
  color: var(--pos-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.svc-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .svc-layout {
    grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr);
    align-items: start;
  }

  .svc-sidebar {
    position: sticky;
    top: 5.5rem;
  }
}

.svc-panel__head,
.svc-list__head {
  margin-bottom: 1rem;
}

.svc-panel__title,
.svc-list__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pos-text);
}

.svc-list__help {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--pos-muted);
  line-height: 1.45;
}

.svc-panel,
.svc-card,
.svc-empty {
  padding: 1rem;
}

@media (min-width: 640px) {
  .svc-panel,
  .svc-card,
  .svc-empty {
    padding: 1.25rem;
  }
}

.svc-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.svc-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.svc-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.svc-field--full {
  grid-column: 1 / -1;
}

.svc-field {
  min-width: 0;
}

.svc-list__items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.svc-card {
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.svc-card:hover {
  border-color: rgba(22, 119, 255, 0.22);
}

.svc-card--inactive {
  opacity: 0.82;
}

.svc-card__header {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.svc-order {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  padding: 0.35rem;
  border-radius: var(--pos-radius);
  border: 1px solid var(--pos-border);
  background: rgba(26, 34, 53, 0.55);
}

.svc-order__rank {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pos-muted);
  line-height: 1;
}

.svc-order__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.45rem;
  background: rgba(15, 23, 42, 0.45);
  color: #cbd5e1;
  font-size: 0.8125rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.svc-order__btn:hover:not(:disabled) {
  background: rgba(22, 119, 255, 0.18);
  border-color: rgba(22, 119, 255, 0.45);
  color: #93c5fd;
}

.svc-order__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.svc-card__summary {
  min-width: 0;
  flex: 1;
}

.svc-card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.svc-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pos-text);
  line-height: 1.3;
}

.svc-card__internal {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--pos-muted);
}

.svc-card__description {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.svc-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.svc-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--pos-border);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
}

.svc-meta-chip--price {
  border-color: rgba(22, 119, 255, 0.28);
  background: rgba(22, 119, 255, 0.1);
  color: #93c5fd;
}

.svc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.svc-badge--active {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.svc-badge--muted {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

.svc-card__details {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--pos-border);
}

.svc-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #93c5fd;
  list-style: none;
}

.svc-card__toggle::-webkit-details-marker {
  display: none;
}

.svc-card__toggle::before {
  content: '▸';
  display: inline-block;
  transition: transform 0.15s ease;
}

.svc-card__details[open] .svc-card__toggle::before {
  transform: rotate(90deg);
}

.svc-card__form {
  margin-top: 0.85rem;
}

.svc-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.svc-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--pos-text);
  cursor: pointer;
}

.svc-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--pos-primary);
}

.svc-card__delete {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(239, 68, 68, 0.22);
}

.svc-empty {
  text-align: center;
  padding: 2rem 1.25rem;
}

.svc-empty__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pos-text);
}

.svc-empty__hint {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--pos-muted);
}

@media (max-width: 639px) {
  .svc-form__grid {
    grid-template-columns: 1fr;
  }

  .svc-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .svc-card__actions .app-btn-primary {
    width: 100%;
  }
}

.svc-page .is-hidden {
  display: none !important;
}

.svc-toast-root {
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.svc-toast {
  padding: 0.75rem 1rem;
  border-radius: var(--pos-radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.svc-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.svc-toast--success {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(17, 24, 39, 0.96);
  color: #86efac;
}

.svc-toast--error {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(17, 24, 39, 0.96);
  color: #fca5a5;
}

.svc-card--moving {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.25), 0 10px 28px rgba(0, 0, 0, 0.28);
}

.svc-card--removing {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

[data-svc-submit].is-busy {
  opacity: 0.7;
  pointer-events: none;
}

/* Business calendar */
.cal-page .is-hidden {
  display: none !important;
}

.cal-page__header {
  margin-bottom: 1.25rem;
}

.cal-toolbar {
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.cal-toolbar__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .cal-toolbar__grid {
    grid-template-columns: minmax(10rem, 12rem) minmax(10rem, 14rem) minmax(0, 1fr);
    align-items: end;
  }
}

.cal-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.cal-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cal-service-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--pos-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8125rem;
  color: #cbd5e1;
  cursor: pointer;
}

.cal-service-chip:has(input:checked) {
  border-color: rgba(22, 119, 255, 0.45);
  background: rgba(22, 119, 255, 0.12);
  color: #93c5fd;
}

.cal-service-chip input {
  accent-color: var(--pos-primary);
}

.cal-section {
  margin-bottom: 1.25rem;
}

.cal-section__head {
  margin-bottom: 0.65rem;
}

.cal-section__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pos-text);
}

.cal-section__hint {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--pos-muted);
}

.cal-slots-card,
.cal-booked-card,
.cal-timeline-card,
.cal-empty-setup {
  padding: 1rem;
}

.cal-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cal-slots__loading,
.cal-slots__empty {
  width: 100%;
  padding: 1.25rem 0.5rem;
  text-align: center;
  color: var(--pos-muted);
  font-size: 0.875rem;
}

.cal-slot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--pos-radius);
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.cal-slot-btn:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.55);
  transform: translateY(-1px);
}

.cal-booked-list {
  display: flex;
  flex-direction: column;
}

.cal-booked-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--pos-border);
  width: 100%;
  text-align: left;
  border-left: none;
  border-right: none;
  border-top: none;
  background: transparent;
  color: inherit;
  font: inherit;
}

.cal-booked-item--clickable {
  cursor: pointer;
  transition: background 0.15s ease;
}

.cal-booked-item--clickable:hover {
  background: rgba(239, 68, 68, 0.06);
}

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

@media (max-width: 640px) {
  .cal-booked-item {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.35rem 0.75rem;
    align-items: center;
  }

  .cal-booked-item__time {
    grid-row: 1 / -1;
    align-self: start;
    padding-top: 0.1rem;
  }

  .cal-booked-item__body {
    grid-column: 2;
    min-width: 0;
  }

  .cal-booked-item__status {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.15rem;
  }
}

.cal-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cal-timeline-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: start;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: var(--pos-radius);
  border: 1px solid var(--pos-border);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.cal-timeline-row:hover {
  transform: translateY(-1px);
}

.cal-timeline-row--free {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.cal-timeline-row--free:hover {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.5);
}

.cal-timeline-row--busy {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.08) inset;
}

.cal-timeline-row--busy:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.65);
}

.cal-timeline-row__time {
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cal-timeline-row--free .cal-timeline-row__time {
  color: #86efac;
}

.cal-timeline-row--busy .cal-timeline-row__time {
  color: #fca5a5;
}

.cal-timeline-row__count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fecaca;
  line-height: 1.2;
}

.cal-timeline-row__content {
  min-width: 0;
}

.cal-timeline-row__free {
  font-size: 0.875rem;
  color: #86efac;
  font-weight: 600;
}

.cal-timeline-row__bookings {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cal-timeline-booking {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.cal-timeline-booking--clickable {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cal-timeline-booking--clickable:hover {
  border-color: rgba(22, 119, 255, 0.45);
  background: rgba(22, 119, 255, 0.08);
}

.cal-appointment-info__name {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.cal-appointment-info__meta {
  margin: 0.15rem 0;
  font-size: 0.875rem;
  color: var(--pos-muted);
}

.cal-reschedule-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.cal-slot-btn {
  border: 1px solid var(--pos-border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--pos-text);
  padding: 0.45rem 0.35rem;
  font-size: 0.8125rem;
  cursor: pointer;
}

.cal-slot-btn:hover,
.cal-slot-btn.is-selected {
  border-color: rgba(22, 119, 255, 0.55);
  background: rgba(22, 119, 255, 0.12);
}

.cal-slot-btn--busy {
  border-color: rgba(250, 173, 20, 0.45);
  background: rgba(250, 173, 20, 0.08);
}

.is-hidden {
  display: none !important;
}

.cal-timeline-booking__name {
  font-weight: 600;
  color: var(--pos-text);
  font-size: 0.875rem;
}

.cal-timeline-booking__phone,
.cal-timeline-booking__service {
  font-size: 0.75rem;
  color: var(--pos-muted);
}

@media (min-width: 641px) {
  .cal-timeline-row__bookings {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cal-timeline-booking {
    flex: 1 1 12rem;
  }
}

.cal-booked-item__time {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fca5a5;
  white-space: nowrap;
}

.cal-booked-item__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.cal-booked-item__customer {
  font-weight: 600;
  color: var(--pos-text);
}

.cal-booked-item__phone,
.cal-booked-item__service,
.cal-booked-item__meta {
  font-size: 0.8125rem;
  color: var(--pos-muted);
}

.cal-booked-item__meta {
  color: #93c5fd;
}

.cal-booked-item__status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--pos-border);
  color: #cbd5e1;
  white-space: nowrap;
}

.cal-admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-admin-badge--inline {
  margin-left: 0.35rem;
  vertical-align: middle;
}

.cal-dialog {
  width: min(32rem, calc(100vw - 2rem));
  border: 1px solid var(--pos-border);
  border-radius: var(--pos-radius-lg);
  padding: 0;
  background: var(--pos-card);
  color: var(--pos-text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.cal-dialog::backdrop {
  background: rgba(2, 6, 23, 0.72);
}

.cal-dialog__inner {
  padding: 1.1rem 1.25rem 1.25rem;
}

.cal-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cal-dialog__title {
  font-size: 1.05rem;
  font-weight: 600;
}

.cal-dialog__close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--pos-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.cal-dialog__slot {
  margin: 0.65rem 0 1rem;
  font-size: 0.875rem;
  color: #93c5fd;
}

.cal-field--search {
  position: relative;
}

.cal-field__hint {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  color: var(--pos-muted);
}

.cal-customer-search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.cal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.85rem 0;
}

.cal-suggestions {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 14rem;
  overflow: auto;
  margin-top: 0.65rem;
  padding: 0.35rem;
  border-radius: var(--pos-radius);
  border: 1px solid var(--pos-border);
  background: rgba(17, 24, 39, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.cal-suggestions.is-hidden {
  display: none;
}

.cal-suggestions__empty {
  padding: 0.85rem 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--pos-muted);
}

.cal-form-grid--selected .cal-selected-label {
  grid-column: 1 / -1;
  margin-bottom: -0.25rem;
}

.cal-suggestion {
  display: grid;
  gap: 0.1rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 0.55rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--pos-text);
}

.cal-suggestion:hover {
  background: rgba(22, 119, 255, 0.12);
}

.cal-suggestion__name {
  font-size: 0.875rem;
  font-weight: 600;
}

.cal-suggestion__meta,
.cal-suggestion__count {
  font-size: 0.75rem;
  color: var(--pos-muted);
}

.cal-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1rem;
}

@media (max-width: 639px) {
  .cal-customer-search-grid {
    grid-template-columns: 1fr;
  }

  .cal-form-grid {
    grid-template-columns: 1fr;
  }

  .cal-booked-item {
    grid-template-columns: 1fr;
  }
}

/* Customer appointments */
.appt-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.appt-page__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--pos-border);
  background: rgba(26, 34, 53, 0.65);
  color: var(--pos-muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.appt-book-bar {
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.appt-book-bar__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pos-muted);
  margin-bottom: 0.65rem;
}

.appt-book-bar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.appt-book-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 119, 255, 0.35);
  background: rgba(22, 119, 255, 0.1);
  color: #93c5fd;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.appt-book-chip:hover {
  background: rgba(22, 119, 255, 0.2);
  border-color: rgba(22, 119, 255, 0.55);
  transform: translateY(-1px);
}

.appt-section {
  margin-bottom: 1.5rem;
}

.appt-section__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pos-text);
  margin-bottom: 0.75rem;
}

.appt-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.appt-card {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .appt-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.appt-card__main {
  display: flex;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.appt-card__datetime {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-shrink: 0;
  min-width: 5.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--pos-radius);
  border: 1px solid var(--pos-border);
  background: rgba(26, 34, 53, 0.55);
  text-align: center;
}

.appt-card__date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pos-muted);
}

.appt-card__time {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pos-text);
  line-height: 1.25;
}

.appt-card__body {
  min-width: 0;
}

.appt-card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.appt-card__business {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pos-text);
}

.appt-card__service {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.appt-card__employee {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--pos-muted);
}

.appt-status {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.appt-status--confirmed {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.appt-status--pending {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

.appt-status--completed {
  border: 1px solid rgba(22, 119, 255, 0.35);
  background: rgba(22, 119, 255, 0.12);
  color: #93c5fd;
}

.appt-status--cancelled,
.appt-status--default {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

.appt-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.appt-action-form {
  display: inline-flex;
}

.appt-action-btn {
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem !important;
  font-size: 0.8125rem !important;
}

.appt-action-btn--danger {
  color: #fca5a5 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.appt-action-btn--danger:hover {
  color: #fecaca !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

.appt-cal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--pos-radius);
  border: 1px solid rgba(22, 119, 255, 0.35);
  background: rgba(22, 119, 255, 0.1);
  color: #93c5fd;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.appt-cal-btn:hover {
  background: rgba(22, 119, 255, 0.2);
  border-color: rgba(22, 119, 255, 0.55);
  transform: translateY(-1px);
  color: #bfdbfe;
}

.appt-cal-btn--primary {
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  background: var(--pos-primary);
  border-color: transparent;
  color: #fff;
}

.appt-cal-btn--primary:hover {
  background: var(--pos-primary-h);
  color: #fff;
}

.appt-cal-btn__icon {
  flex-shrink: 0;
}

.appt-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.appt-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: rgba(22, 119, 255, 0.1);
  color: #93c5fd;
}

.appt-empty__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pos-text);
}

.appt-empty__hint {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--pos-muted);
}

.appt-confirmed {
  max-width: 32rem;
  margin: 0 auto;
}

.appt-confirmed__card {
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.appt-confirmed__success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.appt-confirmed__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pos-text);
}

.appt-confirmed__message {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  color: var(--pos-muted);
}

.appt-confirmed__details {
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: var(--pos-radius);
  border: 1px solid var(--pos-border);
  background: rgba(26, 34, 53, 0.45);
  text-align: left;
}

.appt-confirmed__row {
  display: grid;
  grid-template-columns: minmax(5rem, 6.5rem) minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  padding: 0.35rem 0;
}

.appt-confirmed__row + .appt-confirmed__row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 0.25rem;
  padding-top: 0.6rem;
}

.appt-confirmed__row dt {
  font-size: 0.8125rem;
  color: var(--pos-muted);
}

.appt-confirmed__row dd {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pos-text);
}

.appt-confirmed__calendar-hint {
  font-size: 0.8125rem;
  color: var(--pos-muted);
  margin-bottom: 1rem;
}

.appt-confirmed__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .appt-confirmed__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.appt-confirmed__reminder {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--pos-muted);
}

/* Customer dashboard */
.cust-dash__header {
  margin-bottom: 1.25rem;
}

.cust-dash__stats {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .cust-dash__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cust-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cust-stat__label {
  font-size: 0.8125rem;
  color: var(--pos-muted);
}

.cust-stat__value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.cust-stat--accent {
  border-color: rgba(22, 119, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.12);
}

.cust-dash__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cust-dash__view-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: none;
}

.cust-dash__view-all:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.appt-empty--compact {
  padding: 1.5rem 1.15rem;
}

.appt-card--compact {
  padding: 0.85rem 1rem;
}

.appt-card--compact .appt-card__datetime {
  min-width: 4.75rem;
  padding: 0.45rem 0.55rem;
}

.appt-card--compact .appt-card__business {
  font-size: 0.9375rem;
}

.appt-card--compact .appt-card__service {
  font-size: 0.8125rem;
}

/* Billing (superadmin) */
.billing-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.billing-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.billing-status--ok {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.billing-status--off {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

.billing-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .billing-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.billing-panel__title {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.billing-panel__hint {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.billing-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.notif-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.notif-status {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.notif-status--ok {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.notif-status--warn {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.notif-status--off {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.notif-card {
  padding: 1.25rem;
}

.notif-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.notif-card__text,
.notif-card__hint,
.notif-card__success {
  color: var(--pos-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.notif-card__success {
  color: #86efac;
  margin-top: 1rem;
}

.notif-steps {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--pos-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.notif-actions {
  margin-bottom: 0.75rem;
}

.notif-card--settings {
  margin-top: 1rem;
}

.notif-settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.notif-settings-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--pos-text);
  cursor: pointer;
}

.notif-settings-check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--pos-primary);
}

.notif-settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 20rem;
}

.billing-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.billing-form__row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .billing-form__row {
    grid-template-columns: 1fr 1fr;
  }

  .billing-form__row--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.billing-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.billing-field__hint {
  font-size: 0.75rem;
  color: #64748b;
}

.billing-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.billing-webhook {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.billing-webhook__url {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #93c5fd;
  font-size: 0.8125rem;
  word-break: break-all;
}

.billing-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.billing-plans__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.billing-plan-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

@media (min-width: 900px) {
  .billing-plan-card {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.billing-plan-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.billing-plan-card__stripe {
  font-size: 0.75rem;
  font-weight: 600;
  color: #86efac;
}

.billing-plan-card__stripe--missing {
  color: #fbbf24;
}

.billing-plan-card__actions {
  margin-top: 0.5rem;
}

.billing-plan-card__side {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 10rem;
}

.billing-empty {
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Business subscription */
.sub-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 68rem;
}

@media (min-width: 768px) {
  .sub-page {
    gap: 1.75rem;
  }
}

.sub-page .app-card {
  padding: 1.25rem 1.35rem;
}

@media (min-width: 768px) {
  .sub-page .app-card {
    padding: 1.5rem 1.75rem;
  }
}

.sub-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0;
  padding-bottom: 0.25rem;
}

.sub-page__header .app-page-subtitle {
  margin-top: 0.35rem;
  line-height: 1.5;
}

.sub-page__badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.sub-page__badge--active {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
}

.sub-page__badge--inactive {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

.sub-page__badge--warn {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

.sub-notice {
  padding: 0.9rem 1.15rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0;
  border: 1px solid transparent;
}

.sub-notice--success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
}

.sub-notice--warn {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.28);
}

.sub-notice--info {
  color: #93c5fd;
  background: rgba(22, 119, 255, 0.1);
  border-color: rgba(22, 119, 255, 0.22);
}

.sub-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 1.125rem;
}

.sub-checkout {
  margin-bottom: 0;
}

.sub-checkout > .sub-section-title {
  margin-bottom: 1rem;
}

.sub-checkout__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .sub-checkout__grid {
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  }
}

.sub-checkout-card {
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(22, 119, 255, 0.08) 0%, rgba(15, 23, 42, 0.9) 45%);
  border: 1px solid rgba(22, 119, 255, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .sub-checkout-card {
    padding: 1.75rem 1.75rem 1.5rem;
  }
}

.sub-checkout-card--solo {
  max-width: 28rem;
  width: 100%;
}

.sub-checkout-card__top {
  margin-bottom: 0.875rem;
}

.sub-checkout-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.35rem;
}

.sub-checkout-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #93c5fd;
  margin: 0;
  line-height: 1.2;
}

.sub-checkout-card__desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 1.125rem;
}

.sub-checkout-card__features {
  list-style: none;
  margin: 0 0 1.375rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sub-checkout-card__features li {
  font-size: 0.8125rem;
  color: #cbd5e1;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.45;
}

.sub-checkout-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #1677ff;
  box-shadow: 0 0 8px rgba(22, 119, 255, 0.6);
}

.sub-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.15rem;
  border: none;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #1677ff 0%, #0f5fd7 100%);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.sub-pay-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.sub-pay-btn__icon {
  display: flex;
  opacity: 0.9;
}

.sub-checkout-card__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.875rem 0 0;
  padding-top: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
}

.sub-layout {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .sub-layout {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.sub-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.125rem;
}

.sub-panel__head .sub-section-title {
  margin-bottom: 0;
}

.sub-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #86efac;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.sub-panel .sub-status-card {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.sub-status-card__plan {
  margin-bottom: 1.125rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.sub-status-card__label {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.sub-status-card__name {
  display: block;
  font-size: 1.125rem;
  color: #f8fafc;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.sub-status-card__price {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #93c5fd;
}

.sub-status-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin: 0;
}

.sub-status-card__meta dt {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.sub-status-card__meta dd {
  font-size: 0.875rem;
  font-weight: 500;
  color: #e2e8f0;
  margin: 0;
}

.sub-card-visual {
  position: relative;
  padding: 1.35rem 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #1a1a2e 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  max-width: 20rem;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  margin-top: 0.25rem;
}

.sub-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(22, 119, 255, 0.15), transparent 55%);
  pointer-events: none;
}

.sub-card-visual__chip {
  width: 2.25rem;
  height: 1.65rem;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  opacity: 0.9;
}

.sub-card-visual__brand {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2e8f0;
}

.sub-card-visual__number {
  font-size: 1.15rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.sub-card-visual__footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.6875rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sub-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.25rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  color: #64748b;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
}

.sub-actions {
  margin-top: 1.375rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.sub-actions__primary {
  width: 100%;
}

.sub-actions__hint {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

.sub-plans-compact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sub-plans-compact__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  border-radius: 0.625rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.sub-plans-compact__item strong {
  display: block;
  color: #f1f5f9;
  font-size: 0.9375rem;
  margin-bottom: 0.15rem;
}

.sub-plans-compact__item span {
  font-size: 0.8125rem;
  color: #93c5fd;
}

.sub-invoices {
  margin-top: 0;
}

.sub-invoice-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sub-invoice-item {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
  border-radius: 0.625rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

@media (min-width: 640px) {
  .sub-invoice-item {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }
}

.sub-invoice-item__main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sub-invoice-item__number {
  font-size: 0.9375rem;
  color: #f1f5f9;
}

.sub-invoice-item__date {
  font-size: 0.75rem;
  color: #64748b;
}

.sub-invoice-item__side {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sub-invoice-item__amount {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e2e8f0;
}

.sub-invoice-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sub-invoice-item__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: none;
}

.sub-invoice-item__link:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.sub-invoices__empty {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.sub-alert {
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid transparent;
}

.sub-alert--warn {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.28);
}

/* Business customers */
.cust-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cust-page__count {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--pos-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8125rem;
  color: #93c5fd;
  white-space: nowrap;
}

.cust-toolbar {
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.cust-toolbar__form {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .cust-toolbar__form {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
  }
}

.cust-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.cust-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cust-table-card {
  overflow: hidden;
}

.cust-table-wrap {
  overflow-x: auto;
}

.cust-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.cust-table th,
.cust-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--pos-border);
}

.cust-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pos-muted);
  background: rgba(255, 255, 255, 0.02);
}

.cust-table tbody tr:last-child td {
  border-bottom: none;
}

.cust-table__name {
  font-weight: 600;
  color: var(--pos-text);
}

.cust-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--pos-muted);
}

/* Superadmin appointments table (light admin layout) */
.sa-appt-page {
  max-width: 100%;
}

.sa-appt-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.sa-appt-stat__label {
  font-size: 0.75rem;
  color: #64748b;
}

.sa-appt-stat__value {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.sa-appt-stat--pending .sa-appt-stat__value { color: #b45309; }
.sa-appt-stat--confirmed .sa-appt-stat__value { color: #15803d; }
.sa-appt-stat--completed .sa-appt-stat__value { color: #4338ca; }
.sa-appt-stat--cancelled .sa-appt-stat__value { color: #b91c1c; }

.sa-appt-table-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  overflow-x: auto;
}

.sa-appt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.sa-appt-table thead {
  background: #f8fafc;
  color: #64748b;
}

.sa-appt-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sa-appt-table td {
  padding: 0.9rem 1rem;
  border-top: 1px solid #f1f5f9;
  vertical-align: top;
}

.sa-appt-table tbody tr:hover {
  background: #f8fafc;
}

.sa-appt-table__when {
  min-width: 8.5rem;
}

.sa-appt-table__date {
  display: block;
  font-weight: 600;
  color: #0f172a;
}

.sa-appt-table__time {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.1rem;
}

.sa-appt-table__primary {
  display: block;
  font-weight: 600;
  color: #0f172a;
}

.sa-appt-table__secondary {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.1rem;
}

.sa-appt-table__link {
  color: #4f46e5;
  font-weight: 500;
  text-decoration: none;
}

.sa-appt-table__link:hover {
  text-decoration: underline;
}

.sa-appt-table__service {
  color: #334155;
  max-width: 14rem;
}

.sa-appt-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.sa-appt-status--pending { background: #fef3c7; color: #b45309; }
.sa-appt-status--confirmed { background: #dcfce7; color: #15803d; }
.sa-appt-status--cancelled { background: #fee2e2; color: #b91c1c; }
.sa-appt-status--completed { background: #e0e7ff; color: #4338ca; }
.sa-appt-status--default { background: #f1f5f9; color: #475569; }

.sa-appt-source {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.sa-appt-source--admin {
  background: #ede9fe;
  color: #6d28d9;
}

.sa-appt-source--online {
  background: #f1f5f9;
  color: #475569;
}

.sa-appt-empty {
  padding: 3rem 1.5rem;
  text-align: center;
}

.sa-appt-empty__title {
  color: #64748b;
  font-size: 0.9375rem;
}

