/**
 * ProdBy — neutral palette (body.vetbill).
 * Dashboard light theme: prodby-dashboard.css + body.vetbill.dashboard tokens below.
 * Typography: Inter only — neutral, minimal, readable (no display condensed face).
 */

body.vetbill {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  --vb-page: #f6f7f9;
  --vb-page-2: #eef0f4;
  --vb-surface: #ffffff;
  --vb-surface-2: #f3f4f6;
  --vb-text: #18181b;
  --vb-muted: #52525b;
  --vb-faint: #71717a;
  --vb-accent: #3f3f46;
  --vb-accent-deep: #18181b;
  --vb-accent-soft: rgba(24, 24, 27, 0.05);
  --vb-border: rgba(24, 24, 27, 0.08);
  --vb-border-strong: rgba(24, 24, 27, 0.14);
  --vb-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --vb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

body.vetbill .vetbill-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ——— Landing ——— */
body.vetbill.landing {
  --bg: var(--vb-page);
  --bg-elevated: var(--vb-surface);
  --bg-hover: var(--vb-surface-2);
  --border: var(--vb-border);
  --border-strong: var(--vb-border-strong);
  --text: var(--vb-text);
  --text-muted: var(--vb-muted);
  --text-faint: var(--vb-faint);
  --accent: var(--vb-accent-deep);
  --accent-hover: var(--vb-accent);
  --accent-2: var(--vb-muted);
  --shadow: var(--vb-shadow);
}

body.vetbill.landing::before {
  background:
    radial-gradient(ellipse 90% 65% at 15% -8%, rgba(255, 255, 255, 0.04), transparent 48%),
    radial-gradient(ellipse 70% 50% at 88% 12%, rgba(255, 255, 255, 0.03), transparent 45%),
    linear-gradient(180deg, #0c0c0e 0%, #09090b 48%, #070708 100%);
}

body.vetbill.landing .skip-link {
  background: #3f3f46;
  color: #fafafa;
}

body.vetbill.landing .landing-header-wrap {
  background: rgba(9, 9, 11, 0.88);
  border-bottom: 1px solid var(--vb-border);
  backdrop-filter: blur(14px);
}

body.vetbill.landing .landing-nav-primary a {
  color: var(--vb-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

body.vetbill.landing .landing-nav-primary a:hover {
  color: var(--vb-text);
}

body.vetbill.landing .landing-nav-login {
  color: var(--vb-muted);
}

body.vetbill.landing .btn-nav-primary {
  background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%) !important;
  color: #fafafa !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: var(--vb-shadow-sm);
}

body.vetbill.landing .btn-nav-primary:hover {
  filter: brightness(1.05);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

body.vetbill.landing .law-logo {
  color: var(--vb-text);
  font-weight: 600;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

body.vetbill .vetbill-brand-logo {
  display: block;
  height: auto;
}

body.vetbill .vetbill-brand-logo--wordmark {
  max-height: 36px;
  width: auto;
}

body.vetbill.landing .law-logo--footer .vetbill-brand-logo--wordmark {
  max-height: 46px;
}

body.vetbill .vetbill-brand-logo--icon {
  max-height: 34px;
  width: auto;
}

body.vetbill .dash-brand.law-logo .vetbill-brand-logo--icon {
  max-height: 38px;
}

body.vetbill .paywall-logo .vetbill-brand-logo--icon {
  max-height: 32px;
}

body.vetbill.landing.auth-standalone .vetbill-brand-logo--wordmark {
  max-height: 38px;
}

body.vetbill.auth-split {
  --bg: var(--vb-page);
  --bg-elevated: var(--vb-surface);
  --bg-hover: var(--vb-surface-2);
  --border: var(--vb-border);
  --border-strong: var(--vb-border-strong);
  --text: var(--vb-text);
  --text-muted: var(--vb-muted);
  --text-faint: var(--vb-faint);
  --accent: var(--vb-accent-deep);
  --accent-hover: var(--vb-accent);
}

body.vetbill.auth-split .auth-split__form-panel {
  background:
    radial-gradient(ellipse 90% 65% at 15% -8%, rgba(255, 255, 255, 0.04), transparent 48%),
    linear-gradient(180deg, #0c0c0e 0%, #09090b 48%, #070708 100%);
}

body.vetbill.auth-split .auth-split__logo .vetbill-brand-logo--icon {
  max-height: 40px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

body.vetbill.auth-split .auth-split__switch-btn {
  color: var(--vb-accent-deep);
}

body.vetbill.auth-split .auth-split__switch-btn:hover {
  color: var(--vb-accent);
}

body.vetbill.auth-split .auth-card--split .field input:focus {
  border-color: var(--vb-accent);
  box-shadow: 0 0 0 3px var(--vb-accent-soft);
}

body.vetbill.auth-split .auth-split__form-inner .auth-card--split {
  background: var(--vb-surface);
  border-color: var(--vb-border);
  box-shadow: var(--vb-shadow);
}

body.vetbill.auth-split .auth-split__title {
  color: var(--vb-text);
}

body.vetbill.auth-split .auth-split__lede {
  color: var(--vb-muted);
}

body.vetbill.auth-split .auth-split__form-inner .btn-google {
  background: var(--vb-surface-2);
  color: var(--vb-text);
}

body.vetbill.auth-split .auth-split__form-inner .btn-google {
  border-color: var(--vb-border);
}

body.vetbill.auth-split .auth-split__form-inner .btn-google:hover {
  border-color: var(--vb-border-strong);
}

body.vetbill.auth-split .auth-split__form-inner .field input {
  border-color: var(--vb-border-strong);
  background: var(--vb-surface-2);
  color: var(--vb-text);
}

body.vetbill.auth-split .auth-split__form-inner .field input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

body.vetbill.auth-split .auth-card--split .btn-primary {
  background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%) !important;
  color: #fafafa !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: var(--vb-shadow-sm);
}

body.vetbill.auth-split .auth-card--split .btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

body.vetbill.auth-split .auth-card--split .muted-hint a,
body.vetbill.auth-split .auth-split__form-inner .auth-forgot a:hover {
  color: var(--vb-accent-deep);
}

body.vetbill.auth-split .auth-card--split .field label {
  color: var(--vb-muted);
}

body.vetbill.auth-split .auth-card--split .muted-hint {
  color: var(--vb-faint);
  border-top-color: var(--vb-border);
}

body.vetbill.auth-split .auth-split__overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.52) 42%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

body.vetbill.landing .law-logo span {
  color: var(--vb-accent-deep);
}

body.vetbill.landing .landing-kicker {
  color: var(--vb-accent-deep);
  letter-spacing: 0.06em;
}

body.vetbill.landing .vetbill-kicker-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.vetbill.landing .landing-kicker-dot {
  background: var(--vb-accent);
}

body.vetbill.landing .landing-hero-title {
  color: var(--vb-text);
  max-width: min(32ch, 100%);
}

body.vetbill.landing .vetbill-hero-display {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.022em;
  max-width: min(36ch, 100%);
}

@media (min-width: 640px) {
  body.vetbill.landing .vetbill-hero-break {
    display: block;
  }
}

body.vetbill.landing .vetbill-hero-lede {
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  line-height: 1.65;
  max-width: 40rem;
  font-weight: 400;
}

body.vetbill.landing .landing-lede {
  color: var(--vb-muted);
}

body.vetbill.landing .landing-trust {
  border-top-color: var(--vb-border-strong);
}

body.vetbill.landing .landing-trust-mark {
  background: linear-gradient(90deg, var(--vb-accent-soft), transparent);
  height: 2px;
}

body.vetbill.landing .landing-trust-note {
  color: var(--vb-faint);
}

body.vetbill.landing .btn-outline {
  border: 2px solid var(--vb-border-strong);
  color: var(--vb-text);
  background: transparent;
}

body.vetbill.landing .btn-outline:hover {
  background: var(--vb-surface-2);
  border-color: var(--vb-accent-deep);
  color: var(--vb-text);
}

body.vetbill.landing .btn-primary {
  background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%) !important;
  color: #fafafa !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: var(--vb-shadow-sm);
}

body.vetbill.landing .btn-primary:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

body.vetbill.landing .auth-card {
  background: var(--vb-surface);
  border-color: var(--vb-border);
  box-shadow: var(--vb-shadow);
}

body.vetbill.landing .auth-tabs {
  background: var(--vb-surface-2);
  border-color: var(--vb-border);
}

body.vetbill.landing .auth-tab[aria-selected="true"] {
  background: var(--vb-surface);
  color: var(--vb-text);
  box-shadow: var(--vb-shadow-sm);
}

body.vetbill.landing .auth-tab {
  color: var(--vb-muted);
}

body.vetbill.landing .field label {
  color: var(--vb-muted);
}

body.vetbill.landing .field input {
  background: var(--vb-surface-2);
  border-color: var(--vb-border-strong);
  color: var(--vb-text);
}

body.vetbill.landing .muted-hint {
  color: var(--vb-faint);
}

body.vetbill.landing .btn-google {
  background: var(--vb-surface-2);
  border-color: var(--vb-border-strong);
  color: var(--vb-text);
}

body.vetbill.landing .landing-tier-band {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(82, 82, 91, 0.08) 100%);
  border-top: 1px solid var(--vb-border);
  border-bottom: 1px solid var(--vb-border);
}

body.vetbill.landing .landing-tier-label {
  color: var(--vb-accent-deep);
}

body.vetbill.landing .landing-tier-price-line {
  color: var(--vb-text);
}

body.vetbill.landing .landing-tier-meta {
  color: var(--vb-muted);
}

body.vetbill.landing .landing-section--surface {
  background: rgba(255, 255, 255, 0.03);
}

body.vetbill.landing .landing-eyebrow {
  color: var(--vb-accent-deep);
}

body.vetbill.landing .vetbill-eyebrow-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.95;
}

body.vetbill.landing .landing-section-title {
  color: var(--vb-text);
}

body.vetbill.landing .vetbill-section-display {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: min(30ch, 100%);
}

body.vetbill.landing .vetbill-section-lede-wide {
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

body.vetbill.landing .vetbill-section-lede-tight {
  max-width: 34rem;
}

body.vetbill.landing .landing-section-lede {
  color: var(--vb-muted);
}

body.vetbill.landing .practice-card,
body.vetbill.landing .svc-card {
  background: var(--vb-surface);
  border-color: var(--vb-border);
  box-shadow: var(--vb-shadow-sm);
}

body.vetbill.landing .practice-card-title,
body.vetbill.landing .svc-card-title {
  color: var(--vb-text);
}

body.vetbill.landing .practice-card p,
body.vetbill.landing .svc-card p {
  color: var(--vb-muted);
}

body.vetbill.landing .proof-card {
  background: var(--vb-surface);
  border: 1px solid var(--vb-border);
}

body.vetbill.landing .proof-metric {
  color: var(--vb-accent-deep);
}

body.vetbill.landing .landing-roadmap {
  background: var(--vb-surface);
  border-color: var(--vb-border);
}

body.vetbill.landing .landing-cta-band {
  background: linear-gradient(135deg, #27272a 0%, #18181b 100%);
}

body.vetbill.landing .landing-footer-wide {
  border-top: 1px solid var(--vb-border);
  background: rgba(0, 0, 0, 0.35);
}

body.vetbill.landing .landing-footer-heading {
  color: var(--vb-text);
}

body.vetbill.landing .landing-footer-links a {
  color: var(--vb-muted);
}

body.vetbill.landing .landing-footer-links a:hover {
  color: var(--vb-accent-deep);
}

body.vetbill.landing .landing-footer-bar {
  color: var(--vb-faint);
}

body.vetbill.landing .landing-footer-legal a {
  color: var(--vb-muted);
}

body.vetbill.landing .landing-footer-legal a:hover {
  color: var(--vb-accent-deep);
}

body.vetbill.legal-standalone .legal-doc__body a,
body.vetbill.legal-standalone .legal-doc__nav a {
  color: var(--vb-accent-deep);
}

body.vetbill.landing .muted-hint a {
  color: var(--vb-accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* VetBill-only landing sections */
body.vetbill.landing .vetbill-section--soft {
  background: rgba(255, 255, 255, 0.03) !important;
}

body.vetbill.landing .vetbill-bento {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

body.vetbill.landing .vetbill-bento--single {
  max-width: 42rem;
  margin-top: 8px;
}

body.vetbill.landing .vetbill-bento__card--hero {
  padding: 28px 26px;
}

body.vetbill.landing .vetbill-feature-focus {
  max-width: 52rem;
}

body.vetbill.landing .vetbill-feature-split {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  body.vetbill.landing .vetbill-feature-split {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
    gap: 36px 40px;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  body.vetbill.landing .vetbill-feature-split {
    grid-template-columns: minmax(0, 1fr) minmax(480px, 620px);
    gap: 40px 48px;
  }

  body.vetbill.landing .landing-showcase__carousel--compact .landing-showcase__viewport {
    --landing-carousel-h: clamp(360px, 52vw, 620px);
  }
}

body.vetbill.landing .vetbill-feature-split__copy {
  min-width: 0;
}

body.vetbill.landing .vetbill-feature-split__visual {
  min-width: 0;
  width: 100%;
}

body.vetbill.landing .landing-showcase--compact.landing-showcase--inline {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

body.vetbill.landing .landing-showcase__eyebrow--compact {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vb-faint);
}

body.vetbill.landing .landing-showcase__carousel--compact {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--vb-border);
  box-shadow: var(--vb-shadow);
  background: var(--vb-surface);
}

body.vetbill.landing .landing-showcase__carousel--compact .landing-showcase__viewport {
  --landing-carousel-h: clamp(320px, 48vw, 560px);
  height: var(--landing-carousel-h);
  min-height: var(--landing-carousel-h);
  background: var(--vb-surface-2);
  border-radius: 16px 16px 0 0;
}

body.vetbill.landing .landing-showcase__carousel--compact .landing-showcase__photo {
  object-fit: cover;
  object-position: center;
}

body.vetbill.landing .landing-showcase__carousel--compact .landing-showcase__controls {
  position: relative;
  padding: 10px 12px 12px;
  background: var(--vb-surface);
  border-top: 1px solid var(--vb-border);
  justify-content: center;
  gap: 10px;
}

body.vetbill.landing .landing-showcase__carousel--compact .landing-showcase__btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--vb-border);
  background: var(--vb-surface-2);
  color: var(--vb-text);
  font-size: 18px;
  line-height: 1;
}

body.vetbill.landing .landing-showcase__carousel--compact .landing-showcase__btn:hover {
  background: var(--vb-accent-soft);
  border-color: var(--vb-accent-deep);
  color: var(--vb-accent-deep);
}

body.vetbill.landing .landing-showcase__carousel--compact .landing-showcase__dot {
  background: var(--vb-border-strong);
}

body.vetbill.landing .landing-showcase__carousel--compact .landing-showcase__dot.is-active {
  background: var(--vb-accent-deep);
}

@media (max-width: 899px) {
  body.vetbill.landing .vetbill-feature-split__visual {
    max-width: none;
    width: 100%;
  }

  body.vetbill.landing .landing-showcase__carousel--compact .landing-showcase__viewport {
    --landing-carousel-h: clamp(260px, 62vw, 440px);
  }
}

body.vetbill.landing .vetbill-checklist--pain {
  margin: 0 0 22px;
  max-width: 40rem;
}

body.vetbill.landing .vetbill-checklist--pain li {
  font-size: 15px;
  line-height: 1.55;
  padding-left: 1.35rem;
  margin-bottom: 12px;
}

/* Example SMS preview */
body.vetbill.landing .vetbill-sms-preview {
  margin: 18px 0 16px;
  max-width: 24rem;
}

body.vetbill.landing .vetbill-sms-preview__label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vb-faint);
}

body.vetbill.landing .vetbill-sms-preview__bubble {
  --vb-sms-bubble-bg: #27272a;
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-left: 10px;
  padding: 13px 16px 14px;
  border-radius: 22px 22px 22px 0;
  background: var(--vb-sms-bubble-bg);
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

body.vetbill.landing .vetbill-sms-preview__bubble::after {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: var(--vb-sms-bubble-bg);
  border-bottom-right-radius: 14px 12px;
}

body.vetbill.landing .vetbill-sms-preview__bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--vb-text);
}

body.vetbill.landing .vetbill-sms-preview__link {
  color: var(--vb-accent-deep);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(212, 212, 216, 0.35);
  text-underline-offset: 2px;
}

body.vetbill.landing .vetbill-sms-preview__note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--vb-muted);
  line-height: 1.45;
}

/* Landing plan cards */
body.vetbill.landing .vetbill-landing-plans__lede {
  max-width: 36rem;
  margin-bottom: 24px;
}

body.vetbill.landing .vetbill-landing-plans__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  max-width: 720px;
}

body.vetbill.landing .vetbill-landing-plans__grid--solo {
  max-width: 26rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  body.vetbill.landing .vetbill-landing-plans__grid:not(.vetbill-landing-plans__grid--solo) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: none;
  }
}

body.vetbill.landing .vetbill-landing-plan {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border-radius: 14px;
  background: var(--vb-surface);
  border: 1px solid var(--vb-border);
  box-shadow: var(--vb-shadow-sm);
  min-width: 0;
}

body.vetbill.landing .vetbill-landing-plan--featured {
  border-color: rgba(63, 63, 70, 0.38);
  box-shadow:
    var(--vb-shadow-sm),
    0 0 0 1px rgba(82, 82, 91, 0.12);
}

body.vetbill.landing .vetbill-landing-plan__name {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vb-faint);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.vetbill.landing .vetbill-landing-plan__badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vb-accent-deep);
  background: var(--vb-accent-soft);
  border-radius: 999px;
}

body.vetbill.landing .vetbill-landing-plan__price {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--vb-accent-deep);
  line-height: 1.1;
}

body.vetbill.landing .vetbill-landing-plan__list {
  flex: 1;
  margin: 0 0 18px;
  padding-left: 1.1rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--vb-muted);
}

body.vetbill.landing .vetbill-landing-plan__list li {
  margin-bottom: 6px;
}

body.vetbill.landing .vetbill-landing-plan__list li:last-child {
  margin-bottom: 0;
}

body.vetbill.landing .vetbill-landing-plan__btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

body.vetbill.landing .vetbill-landing-plans__foot {
  margin: 20px 0 0;
  max-width: 36rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--vb-muted);
}

@media (min-width: 880px) {
  body.vetbill.landing .vetbill-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  body.vetbill.landing .vetbill-bento__card--wide {
    grid-column: 1 / -1;
  }
}

body.vetbill.landing .vetbill-bento__card {
  background: var(--vb-surface);
  border: 1px solid var(--vb-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--vb-shadow-sm);
}

body.vetbill.landing .vetbill-bento__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--vb-text);
  letter-spacing: -0.015em;
}

body.vetbill.landing .vetbill-bento__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--vb-muted);
}

body.vetbill.landing .vetbill-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 520px;
}

body.vetbill.landing .vetbill-steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

body.vetbill.landing .vetbill-steps__n {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--vb-accent-deep);
  background: var(--vb-accent-soft);
  border: 1px solid var(--vb-border);
}

body.vetbill.landing .vetbill-steps__body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--vb-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

body.vetbill.landing .vetbill-steps__body span {
  font-size: 14px;
  color: var(--vb-muted);
  line-height: 1.55;
}

body.vetbill.landing .vetbill-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

body.vetbill.landing .vetbill-metric {
  background: var(--vb-surface);
  border: 1px solid var(--vb-border);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  text-align: center;
  box-shadow: var(--vb-shadow-sm);
}

body.vetbill.landing .vetbill-metric__val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: var(--vb-accent-deep);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

body.vetbill.landing .vetbill-metric__cap {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--vb-muted);
  line-height: 1.4;
}

body.vetbill.landing .vetbill-trust-list {
  margin: 28px 0 0;
  padding-left: 1.2rem;
  color: var(--vb-muted);
  font-size: 14px;
  line-height: 1.65;
}

body.vetbill.landing .vetbill-trust-list li + li {
  margin-top: 8px;
}

body.vetbill.landing .vetbill-split .landing-checklist li {
  color: var(--vb-muted);
}

body.vetbill.landing .vetbill-aside-card {
  background: var(--vb-surface);
  border: 1px solid var(--vb-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--vb-shadow-sm);
  align-self: start;
}

body.vetbill.landing .vetbill-aside-card__quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--vb-text);
  letter-spacing: -0.01em;
}

body.vetbill.landing .vetbill-aside-card__cite {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--vb-faint);
  font-style: normal;
}

body.vetbill.landing .vetbill-cta-band .landing-cta-text {
  opacity: 0.94;
}

body.vetbill.landing .vetbill-footer .law-logo {
  color: var(--vb-text);
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

/* ——— Dashboard + paywall ——— */
body.vetbill.dashboard {
  --vb-page: #f6f7f9;
  --vb-page-2: #eef0f4;
  --vb-surface: #ffffff;
  --vb-surface-2: #f3f4f6;
  --vb-text: #18181b;
  --vb-muted: #52525b;
  --vb-faint: #71717a;
  --vb-accent: #3f3f46;
  --vb-accent-deep: #18181b;
  --vb-accent-soft: rgba(24, 24, 27, 0.05);
  --vb-border: rgba(24, 24, 27, 0.08);
  --vb-border-strong: rgba(24, 24, 27, 0.14);
  --bg: var(--vb-page);
  --bg-elevated: var(--vb-surface);
  --bg-hover: var(--vb-surface-2);
  --border: var(--vb-border);
  --border-strong: var(--vb-border-strong);
  --text: var(--vb-text);
  --text-muted: var(--vb-muted);
  --text-faint: var(--vb-faint);
  --accent: var(--vb-accent-deep);
  --accent-hover: var(--vb-accent);
  background: var(--vb-page);
  color: var(--vb-text);
}

body.vetbill.dashboard::before {
  background: linear-gradient(180deg, #fafafb 0%, #f0f1f4 100%);
}

body.vetbill .dash-sidebar {
  background: #ffffff;
  border-right-color: var(--vb-border);
}

body.vetbill .dash-nav a {
  color: var(--vb-muted);
}

body.vetbill .dash-nav a:hover {
  background: var(--vb-accent-soft);
  color: var(--vb-text);
}

body.vetbill .dash-nav a.active {
  background: #18181b;
  color: #fafafa;
  border-left: none;
  font-weight: 600;
}

body.vetbill .dash-user {
  background: var(--vb-surface);
  border-color: var(--vb-border);
}

body.vetbill .dash-user-avatar--placeholder {
  background: var(--vb-accent-soft);
  color: var(--vb-accent-deep);
}

body.vetbill .dash-user-email {
  color: var(--vb-faint);
}

body.vetbill .dash-user .btn-logout {
  background: #ffffff;
  color: var(--vb-text);
  border: 1px solid var(--vb-border-strong);
}

body.vetbill .dash-user .btn-logout:hover {
  background: var(--vb-surface-2);
  filter: none;
}

body.vetbill .dash-top {
  border-bottom-color: var(--vb-border);
}

body.vetbill .dash-top h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--vb-text);
}

body.vetbill .dash-top p,
body.vetbill .dash-panel-lede {
  color: var(--vb-muted);
}

body.vetbill .dash-panel,
body.vetbill .stat-card {
  background: var(--vb-surface);
  border-color: var(--vb-border);
  box-shadow: var(--vb-shadow-sm);
}

body.vetbill .dash-panel h2 {
  color: var(--vb-accent-deep);
}

body.vetbill .stat-card:hover {
  border-color: rgba(82, 82, 91, 0.35);
}

body.vetbill .profile-form .field label,
body.vetbill .dash-settings-dl dt {
  color: var(--vb-muted);
}

body.vetbill .profile-form input,
body.vetbill .dash-settings input,
body.vetbill .dash-settings textarea {
  background: #fff;
  border-color: var(--vb-border-strong);
  color: #18181b;
}

body.vetbill .admin-table-wrap {
  border-color: var(--vb-border);
}

body.vetbill .admin-table th {
  background: var(--vb-surface-2);
  color: var(--vb-muted);
}

body.vetbill .admin-table td {
  border-color: var(--vb-border);
  color: var(--vb-text);
}

body.vetbill .admin-table tbody tr:hover td {
  background: rgba(82, 82, 91, 0.06);
}

body.vetbill .admin-preregister-form {
  margin: 0 0 1.25rem;
}

body.vetbill .admin-preregister-field__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

body.vetbill .admin-preregister-field__row input[type="email"] {
  flex: 1 1 16rem;
  min-width: 12rem;
}

body.vetbill .admin-preregister-table-wrap {
  margin-bottom: 1.25rem;
}

body.vetbill .admin-inline-form {
  margin: 0;
}

body.vetbill .alert-success {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

body.vetbill .alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.22);
}

body.vetbill .btn-primary {
  background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%);
  color: #fafafa !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.vetbill .btn-outline {
  border-color: var(--vb-border-strong);
  color: var(--vb-text);
  background: transparent;
}

body.vetbill .btn-outline:hover {
  background: var(--vb-accent-soft);
  border-color: var(--vb-accent);
}

/* Paywall — light chrome + readable plan cards (avoid dark SEOLaw card + dark VetBill text) */
body.vetbill.dashboard.paywall {
  background: var(--vb-page);
  color: var(--vb-text);
}

body.vetbill.dashboard.paywall::before {
  background:
    radial-gradient(ellipse 80% 55% at 10% -10%, rgba(255, 255, 255, 0.2), transparent 50%),
    linear-gradient(180deg, var(--vb-page) 0%, var(--vb-page-2) 100%);
}

body.vetbill.paywall .paywall-shell {
  background: transparent;
}

body.vetbill.paywall .paywall-header {
  border-bottom-color: var(--vb-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

body.vetbill.paywall .paywall-main {
  padding: 28px 20px 56px;
}

body.vetbill.paywall .paywall-layout--vetbill {
  max-width: 920px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  body.vetbill.paywall .paywall-layout--vetbill {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 4px;
  }
}

body.vetbill.paywall .paywall-intro {
  padding-top: 0;
  max-width: 40rem;
}

body.vetbill.paywall .paywall-intro .paywall-title {
  max-width: none;
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 14px;
}

body.vetbill.paywall .paywall-intro .paywall-lede {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

body.vetbill.paywall .paywall-intro-list {
  margin-bottom: 18px;
}

body.vetbill.paywall .paywall-checkout-stack {
  max-width: 100%;
  width: 100%;
}

body.vetbill.paywall .paywall-tier-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

body.vetbill.paywall .paywall-tier-grid--solo {
  max-width: 26rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  body.vetbill.paywall .paywall-tier-grid:not(.paywall-tier-grid--solo) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
  }
}

body.vetbill.paywall .paywall-signout-btn {
  color: var(--vb-muted);
  border-color: var(--vb-border-strong);
}

body.vetbill.paywall .paywall-signout-btn:hover {
  color: var(--vb-text);
  border-color: var(--vb-accent-deep);
  background: var(--vb-accent-soft);
}

body.vetbill.paywall .paywall-intro .paywall-eyebrow {
  color: var(--vb-accent-deep);
  margin-bottom: 12px;
}

body.vetbill.paywall .paywall-intro .paywall-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--vb-text);
}

body.vetbill.paywall .paywall-intro .paywall-lede,
body.vetbill.paywall .paywall-intro-list li {
  color: var(--vb-muted);
}

body.vetbill.paywall .paywall-intro-list li strong {
  color: var(--vb-text);
}

body.vetbill.paywall .paywall-intro-list li::before {
  background: var(--vb-accent-deep);
}

body.vetbill.paywall .paywall-microcopy {
  color: var(--vb-muted);
}

body.vetbill.paywall .paywall-microcopy strong {
  color: var(--vb-text);
}

body.vetbill.paywall .paywall-microcopy--plans {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--vb-muted);
}

body.vetbill.paywall .paywall-tier-card {
  background: var(--vb-surface);
  border-color: var(--vb-border);
  box-shadow: var(--vb-shadow-sm);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

body.vetbill.paywall .paywall-tier-card--featured {
  border-color: rgba(63, 63, 70, 0.38);
  box-shadow:
    var(--vb-shadow-sm),
    0 0 0 1px rgba(82, 82, 91, 0.14);
}

body.vetbill.paywall .paywall-tier-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 20px 24px;
}

body.vetbill.paywall .paywall-plan-name {
  color: var(--vb-faint);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.vetbill.paywall .paywall-tier-ribbon {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vb-accent-deep);
  background: var(--vb-accent-soft);
  border-radius: 999px;
  vertical-align: middle;
}

body.vetbill.paywall .paywall-price-badge {
  color: var(--vb-accent-deep);
  font-size: clamp(1.75rem, 3.5vw, 2.15rem);
  margin-bottom: 12px;
}

body.vetbill.paywall .paywall-tier-features {
  flex: 1;
  margin: 0 0 14px;
  padding-left: 1rem;
  font-size: 13px;
  line-height: 1.55;
  color: var(--vb-muted);
}

body.vetbill.paywall .paywall-tier-features li {
  margin-bottom: 5px;
}

body.vetbill.paywall .paywall-plan-note {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--vb-faint);
  line-height: 1.45;
}

body.vetbill.paywall .paywall-paypal-wrap {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--vb-border);
  min-height: 118px;
}

body.vetbill.paywall .paywall-paypal {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

body.vetbill.paywall .paywall-paypal > div,
body.vetbill.paywall .paywall-paypal iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

body.vetbill.paywall .paywall-paypal iframe {
  border-radius: 8px !important;
}

body.vetbill.paywall .paywall-checkout-card {
  background: var(--vb-surface);
  border-color: var(--vb-border);
  box-shadow: var(--vb-shadow);
}

body.vetbill.paywall .paywall-placeholder-box {
  border-color: var(--vb-border-strong);
  background: var(--vb-surface-2);
}

body.vetbill.paywall .paywall-placeholder-box p,
body.vetbill.paywall .paywall-placeholder-sub {
  color: var(--vb-muted);
}

body.vetbill.paywall .paywall-placeholder-box strong {
  color: var(--vb-text);
}

body.vetbill.paywall .paywall-hint {
  color: var(--vb-muted);
}

body.vetbill.paywall .paywall-paypal-loading-bar {
  border-color: var(--vb-border);
  background: linear-gradient(
    105deg,
    var(--vb-surface-2) 0%,
    rgba(82, 82, 91, 0.14) 45%,
    var(--vb-surface-2) 100%
  );
}

body.vetbill.paywall .paywall-paypal-loading-text {
  color: var(--vb-muted);
}

body.vetbill .vetbill-dash-lede {
  color: var(--vb-muted);
}

body.vetbill .vetbill-dash-flash {
  margin-bottom: 18px;
}

body.vetbill .vetbill-dash-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 22px;
}

body.vetbill .vetbill-stat-card {
  background: var(--vb-surface);
  border: 1px solid var(--vb-border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  box-shadow: var(--vb-shadow-sm);
}

body.vetbill .vetbill-stat-card__label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vb-faint);
}

body.vetbill .vetbill-stat-card__value {
  margin: 10px 0 4px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--vb-text);
  line-height: 1.05;
}

body.vetbill .vetbill-stat-card__hint {
  margin: 0;
  font-size: 13px;
  color: var(--vb-muted);
  line-height: 1.45;
}

body.vetbill .vetbill-dash-roadmap {
  margin-bottom: 22px;
}

body.vetbill .vetbill-subpanel-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--vb-accent-deep);
  margin: 0 0 10px;
  font-size: 1rem;
}

body.vetbill .vetbill-roadmap-lede {
  margin: 0 0 16px;
  max-width: 52rem;
}

body.vetbill .vetbill-roadmap-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.vetbill .vetbill-roadmap-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--vb-border);
  background: var(--vb-surface-2);
  min-width: 140px;
}

body.vetbill .vetbill-roadmap-pill strong {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--vb-muted);
  font-weight: 600;
}

body.vetbill .vetbill-roadmap-pill span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--vb-text);
}

body.vetbill .vetbill-dash-split {
  display: grid;
  gap: 18px;
}

@media (min-width: 960px) {
  body.vetbill .vetbill-dash-split {
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    align-items: start;
  }
}

body.vetbill .vetbill-reminder-form-panel textarea {
  resize: vertical;
  min-height: 120px;
}

body.vetbill .vetbill-form-hint {
  margin: 0 0 16px;
}

body.vetbill .vetbill-reminder-form .form-footer {
  margin-top: 10px;
}

body.vetbill .vetbill-reminder-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

body.vetbill .vb-queue-intro {
  margin: 6px 0 12px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 52rem;
}

body.vetbill .vetbill-reminder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

body.vetbill .vetbill-reminder-table--compact {
  font-size: 12px;
}

body.vetbill .vetbill-reminder-table th,
body.vetbill .vetbill-reminder-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--vb-border);
  vertical-align: top;
}

body.vetbill .vetbill-reminder-table--compact th,
body.vetbill .vetbill-reminder-table--compact td {
  padding: 7px 10px;
  vertical-align: middle;
}

body.vetbill .vetbill-reminder-table--compact th {
  font-size: 10px;
}

body.vetbill .vetbill-reminder-table--compact .vetbill-pill {
  font-size: 10px;
  padding: 2px 8px;
}

body.vetbill .vetbill-reminder-col-actions {
  width: 1%;
  white-space: nowrap;
}

body.vetbill .vetbill-reminder-actions-cell {
  vertical-align: middle;
  min-width: 13.5rem;
}

body.vetbill .vetbill-reminder-summary-row td {
  border-bottom: none;
}

body.vetbill .vetbill-reminder-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vb-muted);
  font-weight: 600;
}

body.vetbill .vetbill-reminder-detail-row td {
  padding-top: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vb-border-strong);
  background: transparent;
}

body.vetbill .vetbill-reminder-detail-card {
  margin: 0 0 4px;
  padding: 16px 18px;
  background: var(--vb-surface);
  border: 1px solid var(--vb-border);
  border-radius: 12px;
  box-shadow: var(--vb-shadow-sm);
}

body.vetbill .vetbill-reminder-detail-card__head {
  margin: 0 0 14px;
}

body.vetbill .vetbill-reminder-kind-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vb-muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--vb-surface-2);
  border: 1px solid var(--vb-border);
}

body.vetbill .vetbill-reminder-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.vetbill .vetbill-reminder-panel__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--vb-muted);
  margin: 0 0 10px;
}

body.vetbill .vetbill-reminder-datetime-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
}

body.vetbill .vetbill-reminder-field-compact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

body.vetbill .vetbill-reminder-field-compact__lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--vb-muted);
}

body.vetbill .vetbill-reminder-panel__action {
  flex-shrink: 0;
  margin-bottom: 1px;
}

body.vetbill .vetbill-reminder-panel__footer--message {
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

body.vetbill .vetbill-reminder-edit-textarea--locked {
  cursor: default;
  background: var(--vb-surface-2);
  color: var(--vb-text);
}

body.vetbill .vetbill-reminder-msg-save-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.vetbill .vetbill-reminder-panel__footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

body.vetbill .vetbill-reminder-edit-textarea--queue {
  min-height: 8.75rem;
  max-width: 100%;
}

body.vetbill .vetbill-reminder-panel--message .vetbill-reminder-edit-form {
  max-width: 48rem;
}

body.vetbill .vetbill-reminder-invoice-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  max-width: 48rem;
}

body.vetbill .vetbill-queue-select--grow {
  flex: 1 1 16rem;
  min-width: min(100%, 14rem);
}

body.vetbill .vetbill-reminder-invoice-inline__btn {
  flex-shrink: 0;
}

body.vetbill .vetbill-reminder-hint-subtle {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

body.vetbill .vetbill-reminder-schedule-form--inline .vetbill-reminder-date-input,
body.vetbill .vetbill-reminder-schedule-form--inline .vetbill-reminder-time-input {
  width: auto;
  min-width: 9.5rem;
}

body.vetbill .vetbill-reminder-datetime-input,
body.vetbill .vetbill-reminder-date-input,
body.vetbill .vetbill-reminder-time-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 11px;
  font-family: inherit;
  font-size: 13px;
  color: var(--vb-text);
  background: var(--vb-surface-2);
  border: 1px solid var(--vb-border-strong);
  border-radius: 10px;
}

body.vetbill .vetbill-reminder-datetime-input:focus,
body.vetbill .vetbill-reminder-date-input:focus,
body.vetbill .vetbill-reminder-time-input:focus {
  outline: none;
  border-color: var(--vb-accent);
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.18);
}

body.vetbill .vetbill-queue-select {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 36px 8px 12px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
  color: var(--vb-text);
  background-color: var(--vb-surface-2);
  border: 1px solid var(--vb-border-strong);
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 14px;
  cursor: pointer;
}

body.vetbill .vetbill-queue-select:focus {
  outline: none;
  border-color: var(--vb-accent);
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.18);
}

body.vetbill .vetbill-reminder-attach-hint {
  margin: 8px 0 0;
  font-size: 12px;
}

body.vetbill .vetbill-reminder-attach-footer {
  margin-top: 10px;
}

body.vetbill .vetbill-reminder-actions--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

body.vetbill .vetbill-reminder-actions--compact .vetbill-reminder-actions__form {
  margin: 0;
}

body.vetbill .vetbill-reminder-actions--compact .vetbill-inline-form {
  display: inline-flex;
  margin: 0;
}

body.vetbill .vetbill-reminder-actions--compact .btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.25;
}

body.vetbill .vetbill-reminder-actions--compact.vetbill-reminder-actions--toolbar {
  flex-wrap: nowrap;
}

@media (max-width: 720px) {
  body.vetbill .vetbill-reminder-actions--compact.vetbill-reminder-actions--toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

body.vetbill .vb-appt-remind-heading {
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 8px;
}

body.vetbill .vb-appt-remind-datetime-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  body.vetbill .vb-appt-remind-datetime-row {
    grid-template-columns: 1fr;
  }
}

body.vetbill .vb-appt-remind-sub {
  font-size: 12px;
  font-weight: 500;
}

body.vetbill .vb-appt-remind-field input[type='date'],
body.vetbill .vb-appt-remind-field input[type='time'] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 11px;
  font-family: inherit;
  font-size: 13px;
  color: var(--vb-text);
  background: var(--vb-surface-2);
  border: 1px solid var(--vb-border-strong);
  border-radius: 10px;
}

body.vetbill .vb-appt-remind-field input[type='date']:focus,
body.vetbill .vb-appt-remind-field input[type='time']:focus {
  outline: none;
  border-color: var(--vb-accent);
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.18);
}

body.vetbill .vetbill-reminder-body-preview {
  margin: 0;
  color: var(--vb-muted);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

body.vetbill .vetbill-reminder-link {
  margin: 8px 0 0;
  font-size: 13px;
}

body.vetbill .vetbill-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.vetbill .vetbill-reminder-edit-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

body.vetbill .vetbill-reminder-edit-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 5.5rem;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  color: var(--vb-text);
  background: var(--vb-surface-2);
  border: 1px solid var(--vb-border-strong);
  border-radius: 10px;
  resize: vertical;
}

body.vetbill .vetbill-reminder-edit-textarea:focus {
  outline: none;
  border-color: var(--vb-accent);
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.18);
}

body.vetbill .vetbill-reminder-edit-footer {
  margin-top: 8px;
}

body.vetbill .vetbill-reminder-attach-field select {
  width: 100%;
  max-width: min(100%, 28rem);
  box-sizing: border-box;
}

body.vetbill .vetbill-reminder-processing-note {
  margin: 8px 0 0;
  font-size: 13px;
}

body.vetbill .vetbill-inline-form {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 6px;
}

body.vetbill .vetbill-btn-cancel {
  border-color: rgba(185, 28, 28, 0.35);
  color: #b91c1c;
}

body.vetbill .vetbill-btn-cancel:hover {
  background: rgba(185, 28, 28, 0.06);
}

body.vetbill .vetbill-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.vetbill .vetbill-pill--scheduled {
  background: rgba(82, 82, 91, 0.14);
  color: var(--vb-accent-deep);
}

body.vetbill .vetbill-pill--sent {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

body.vetbill .vetbill-pill--processing {
  background: rgba(234, 179, 8, 0.18);
  color: #a16207;
}

body.vetbill .vetbill-pill--failed {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

body.vetbill .vetbill-dash-checklist {
  color: var(--vb-muted);
}

body.vetbill .vetbill-invoice-page__header .vetbill-invoice-page__lede {
  max-width: 38rem;
}

body.vetbill .vetbill-invoice-card {
  border-radius: 14px;
  padding: 22px 24px 24px;
}

body.vetbill .vetbill-stripe-connect-panel.vetbill-invoice-card {
  background: linear-gradient(160deg, rgba(82, 82, 91, 0.09) 0%, var(--vb-surface) 42%, var(--vb-surface) 100%);
  border: 1px solid rgba(82, 82, 91, 0.22);
}

body.vetbill .vetbill-invoice-card__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--vb-accent-deep);
}

body.vetbill .vetbill-invoice-card__text {
  margin: 0;
  max-width: 40rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--vb-muted);
}

body.vetbill .vetbill-invoice-sheet .vetbill-invoice-card__text {
  max-width: none;
  margin-top: 14px;
  font-size: 14px;
}

body.vetbill .vetbill-invoice-card__text--success {
  color: var(--vb-text);
}

body.vetbill .vetbill-invoice-card__meta {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--vb-text);
}

body.vetbill .vetbill-invoice-card__meta-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vb-muted);
  margin-bottom: 4px;
}

body.vetbill .vetbill-invoice-primary-btn {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

body.vetbill .vetbill-stripe-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 14px;
}

body.vetbill .vetbill-stripe-disconnect-form {
  display: inline;
  margin: 0;
}

body.vetbill .vetbill-qb-connect-panel .vetbill-qb-sync-log {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--vb-border);
}

body.vetbill .vetbill-qb-sync-log__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vb-faint);
}

body.vetbill .vetbill-qb-sync-log__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

body.vetbill .vetbill-qb-sync-log__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--vb-muted);
}

body.vetbill .vetbill-qb-sync-log__type {
  font-weight: 600;
  color: var(--vb-text);
}

body.vetbill .vetbill-qb-sync-log__status {
  text-transform: capitalize;
}

body.vetbill .vetbill-qb-sync-log__error {
  color: #b42318;
  font-size: 12px;
}

body.vetbill .vetbill-qb-optional-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--vb-muted);
  background: rgba(148, 163, 184, 0.15);
  border-radius: 999px;
}

body.vetbill .vetbill-qb-logo {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

body.vetbill .vetbill-qb-logo--landing {
  width: 30px;
  height: 30px;
}

body.vetbill .vetbill-qb-logo--panel {
  width: 26px;
  height: 26px;
}

body.vetbill .vetbill-qb-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

body.vetbill .vetbill-qb-panel-head__title {
  margin: 0;
}

body.landing.vetbill .vetbill-qb-landing-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

body.landing.vetbill .vetbill-qb-landing-brand__copy .landing-eyebrow {
  margin-bottom: 8px;
}

body.landing.vetbill .vetbill-qb-landing-brand__copy .landing-section-title {
  margin-top: 0;
}

body.vetbill .vetbill-qb-intro {
  margin-top: 6px;
}

body.vetbill .vetbill-qb-features {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--vb-border);
}

body.vetbill .vetbill-qb-features__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vb-muted);
}

body.vetbill .vetbill-qb-features__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

body.vetbill .vetbill-qb-features__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: start;
  font-size: 14px;
  color: var(--vb-muted);
}

body.vetbill .vetbill-qb-features__item strong {
  display: block;
  color: var(--vb-text);
  font-weight: 600;
  margin-bottom: 2px;
}

body.vetbill .vetbill-qb-features__check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid var(--vb-border);
  background: rgba(148, 163, 184, 0.12);
}

body.vetbill .vetbill-qb-features__item--ready .vetbill-qb-features__check {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.15);
  box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.35);
}

body.vetbill .vetbill-qb-actions {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--vb-border);
}

body.vetbill .vetbill-qb-import-form {
  margin-top: 12px;
}

body.vetbill .vetbill-support-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

@media (min-width: 900px) {
  body.vetbill .vetbill-support-layout {
    grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
    gap: 20px;
  }
}

body.vetbill .vetbill-support-chat {
  max-width: none;
}

body.vetbill .vetbill-support-history__lede {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--vb-muted);
}

body.vetbill .vetbill-support-history__empty {
  margin: 0;
  font-size: 14px;
  color: var(--vb-faint);
}

body.vetbill .vetbill-support-history__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-height: min(70vh, 640px);
  overflow-y: auto;
  padding-right: 4px;
}

body.vetbill .vetbill-support-history__item {
  padding: 12px 14px;
  border: 1px solid var(--vb-border);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.6);
}

body.vetbill .vetbill-support-history__when {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--vb-faint);
}

body.vetbill .vetbill-support-history__subject {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vb-text);
}

body.vetbill .vetbill-support-history__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--vb-muted);
  word-break: break-word;
}

body.vetbill .vetbill-support-chat__header {
  margin-bottom: 16px;
}

body.vetbill .vetbill-support-chat__to {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--vb-muted);
}

body.vetbill .vetbill-support-form .field {
  margin-bottom: 14px;
}

body.vetbill .vetbill-support-form textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
}

body.vetbill .vetbill-support-form__meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--vb-faint);
}

body.landing.vetbill .vetbill-qb-landing-list {
  margin-top: 20px;
}

body.landing.vetbill .vetbill-landing-integrations__foot {
  margin-top: 18px;
  font-size: 14px;
  color: var(--vb-muted);
  max-width: 42rem;
}

body.vetbill .vetbill-invoice-form {
  display: grid;
  gap: 1.15rem;
  margin-top: 16px;
  max-width: 26rem;
}

body.vetbill .vetbill-invoice-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--vb-muted);
  margin-bottom: 6px;
}

body.vetbill .vetbill-invoice-field__optional {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(100, 116, 139, 0.95);
  font-size: 0.92em;
}

body.vetbill .vetbill-invoice-field input,
body.vetbill .vetbill-invoice-field textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid var(--vb-border-strong);
  padding: 8px 11px;
  font-size: 14px;
  line-height: 1.4;
  background: #fff;
  color: #18181b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.vetbill .vetbill-invoice-field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

body.vetbill .vetbill-invoice-field input::placeholder,
body.vetbill .vetbill-invoice-field textarea::placeholder {
  color: rgba(100, 116, 139, 0.85);
}

body.vetbill .vetbill-invoice-field input:focus,
body.vetbill .vetbill-invoice-field textarea:focus {
  outline: none;
  border-color: var(--vb-accent);
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.18);
}

body.vetbill .vetbill-invoice-field select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid var(--vb-border-strong);
  padding: 8px 2.25rem 8px 11px;
  font-size: 14px;
  line-height: 1.4;
  font-family: inherit;
  background-color: #fff;
  color: #18181b;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.vetbill .vetbill-invoice-field select:focus {
  outline: none;
  border-color: var(--vb-accent);
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.18);
}

body.vetbill .vetbill-invoice-form-footer {
  padding-top: 4px;
}

body.vetbill .vetbill-invoice-logo-preview-wrap {
  margin: 12px 0 16px;
}

body.vetbill .vetbill-invoice-logo-preview {
  display: block;
  max-height: 96px;
  width: auto;
  max-width: min(100%, 320px);
  object-fit: contain;
  border: 1px solid var(--vb-border);
  border-radius: 8px;
  padding: 10px;
  background: #fafafa;
}

body.vetbill .vetbill-invoice-logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.vetbill .vetbill-invoice-form .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ——— Simple invoice sheet (Stripe Checkout on connected account) ——— */
body.vetbill .vetbill-invoice-preview-wrap {
  margin-top: 28px;
}

body.vetbill .vetbill-invoice-sheet {
  background: #fff;
  border: 1px solid var(--vb-border);
  border-radius: 12px;
  padding: 28px 30px 22px;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

body.vetbill .vetbill-invoice-sheet__logo {
  display: block;
  max-height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 16px;
}

body.vetbill .vetbill-invoice-sheet__clinic {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--vb-text, #0f172a);
}

body.vetbill .vetbill-invoice-sheet__title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.vetbill .vetbill-invoice-sheet__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0 0 22px;
  padding: 0;
}

body.vetbill .vetbill-invoice-sheet__meta > div {
  margin: 0;
}

body.vetbill .vetbill-invoice-sheet__meta dt {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vb-muted);
  font-weight: 600;
}

body.vetbill .vetbill-invoice-sheet__meta dd {
  margin: 2px 0 0;
  font-size: 14px;
}

body.vetbill .vetbill-invoice-sheet__block {
  margin-bottom: 18px;
}

body.vetbill .vetbill-invoice-sheet__label {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vb-muted);
  font-weight: 600;
}

body.vetbill .vetbill-invoice-sheet__strong {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

body.vetbill .vetbill-invoice-sheet__amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--vb-border);
  border-bottom: 1px solid var(--vb-border);
}

body.vetbill .vetbill-invoice-sheet__amount {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.vetbill .vetbill-invoice-sheet__memo {
  margin-top: 18px;
}

body.vetbill .vetbill-invoice-sheet__memo--client {
  padding: 14px 16px;
  background: var(--vb-surface-2);
  border-radius: 10px;
  border: 1px solid var(--vb-border);
}

body.vetbill .vetbill-invoice-sheet__memo-heading {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--vb-text);
}

body.vetbill .vetbill-invoice-sheet__prose {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--vb-text);
}

body.vetbill .vetbill-invoice-sheet__memo .vetbill-invoice-sheet__prose:last-child {
  margin-bottom: 0;
}

body.vetbill .vetbill-invoice-sheet__memo p:last-child {
  margin-bottom: 0;
}

body.vetbill .vetbill-invoice-sheet__fineprint {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--vb-muted);
}

body.vetbill .vetbill-invoice-share-hint {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  max-width: 40rem;
}

body.vetbill .vetbill-invoice-recorded-paid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 18px 0 0;
  font-size: 13px;
}

body.vetbill .vetbill-invoice-recorded-paid__note {
  color: var(--vb-muted);
  flex: 1 1 12rem;
}

body.vetbill .vetbill-invoice-sheet__paid-line {
  margin: 12px 0 0;
  font-size: 12px;
}

body.vetbill .vetbill-invoice-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
}

body.vetbill .vetbill-invoice-sheet__actions-print {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

body.vetbill .print-only {
  display: none !important;
}

body.vetbill .vetbill-dash-top__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

body.vetbill .vetbill-dash-top__row--stack {
  align-items: flex-start;
}

body.vetbill .vetbill-dash-top__titles {
  flex: 1;
  min-width: min(100%, 260px);
}

body.vetbill .vetbill-dash-top__row--settings {
  align-items: flex-start;
}

body.vetbill .vb-sms-quota {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--vb-surface);
  border: 1px solid var(--vb-border);
  box-shadow: var(--vb-shadow-sm);
  font-size: 12px;
  line-height: 1.35;
  max-width: 100%;
  color: var(--vb-text);
}

body.vetbill .vb-sms-quota__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 600;
  color: var(--vb-faint);
}

body.vetbill .vb-sms-quota__value {
  font-weight: 600;
  font-size: 14px;
  color: var(--vb-accent-deep);
}

body.vetbill .vb-sms-quota__meta {
  font-size: 11px;
  color: var(--vb-muted);
  text-align: right;
  max-width: 14rem;
}

body.vetbill .vetbill-plans-intro-panel {
  margin-top: 10px;
}

body.vetbill .vetbill-plans-intro__checkout {
  margin-top: 18px;
}

body.vetbill .vetbill-plans-intro__checkout .paywall-checkout-stack {
  max-width: 920px;
}

body.vetbill .vetbill-plans-intro__continue {
  margin-top: 28px;
}

@media print {
  body.vetbill.vetbill-page-invoices aside.dash-sidebar {
    display: none !important;
  }

  body.vetbill.vetbill-page-invoices main.dash-main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }

  body.vetbill.vetbill-page-invoices .vetbill-dash-top,
  body.vetbill.vetbill-page-invoices .vetbill-dash-flash,
  body.vetbill.vetbill-page-invoices .vetbill-invoice-defaults,
  body.vetbill.vetbill-page-invoices .vetbill-invoice-build {
    display: none !important;
  }

  body.vetbill.vetbill-page-payment-gateways aside.dash-sidebar {
    display: none !important;
  }

  body.vetbill.vetbill-page-payment-gateways main.dash-main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }

  body.vetbill.vetbill-page-payment-gateways .vetbill-dash-top,
  body.vetbill.vetbill-page-payment-gateways .vetbill-dash-flash {
    display: none !important;
  }

  body.vetbill .vetbill-invoice-preview-wrap {
    margin-top: 0;
  }

  body.vetbill .vetbill-invoice-sheet {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    max-width: none;
    margin: 0;
  }

  body.vetbill .no-print {
    display: none !important;
  }

  body.vetbill .print-only {
    display: block !important;
  }
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-pub-inv-sheet.vetbill-invoice-sheet {
  background: var(--vb-inv-sheet-bg, #fff);
  border-color: var(--vb-inv-border, var(--vb-border));
  border-radius: var(--vb-inv-sheet-radius, 12px);
  box-shadow: var(--vb-inv-sheet-shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
  font-family: var(--vb-inv-font-body, inherit);
  font-weight: var(--vb-inv-body-weight, 400);
  font-size: var(--vb-inv-body-size, 15px);
  color: var(--vb-inv-body, var(--vb-text));
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__logo {
  max-height: var(--vb-inv-logo-max, 72px);
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__clinic {
  color: var(--vb-inv-heading, var(--vb-text));
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__title {
  font-family: var(--vb-inv-font-heading, inherit);
  font-weight: var(--vb-inv-heading-weight, 700);
  font-size: var(--vb-inv-title-size, 22px);
  color: var(--vb-inv-heading, var(--vb-text));
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__meta dd {
  color: var(--vb-inv-body, var(--vb-text));
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__label,
body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__meta dt {
  color: var(--vb-inv-label, var(--vb-muted));
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__strong {
  color: var(--vb-inv-heading, var(--vb-text));
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__amount {
  font-size: var(--vb-inv-amount-size, 22px);
  font-weight: var(--vb-inv-heading-weight, 700);
  color: var(--vb-inv-heading, var(--vb-text));
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__prose {
  color: var(--vb-inv-body, var(--vb-text));
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-pay-heading,
body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-pay-lede {
  color: var(--vb-inv-body, var(--vb-text));
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__fineprint {
  font-size: max(11px, calc(var(--vb-inv-body-size, 15px) * 0.78));
  color: var(--vb-inv-label, var(--vb-muted));
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .btn {
  font-family: var(--vb-inv-font-body, inherit);
}

/*
 * Themed invoices: neutralize dashboard invoice-sheet fixed px so template vars apply site-wide.
 */
body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__clinic {
  font-family: var(--vb-inv-font-heading, inherit);
  font-weight: var(--vb-inv-heading-weight, 600);
  font-size: 1em;
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__label,
body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__meta dt {
  font-size: max(9px, calc(var(--vb-inv-body-size, 15px) * 0.72));
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__meta dd {
  font-size: 1em;
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__strong {
  font-size: 1.07em;
  font-weight: var(--vb-inv-heading-weight, 600);
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__amount {
  letter-spacing: -0.02em;
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__prose {
  font-size: 1em;
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-invoice-sheet__memo-heading {
  font-size: max(11px, calc(var(--vb-inv-body-size, 15px) * 0.88));
  color: var(--vb-inv-heading, var(--vb-text));
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-pay-heading {
  font-family: var(--vb-inv-font-heading, inherit);
  font-weight: var(--vb-inv-heading-weight, 700);
  font-size: max(14px, calc(var(--vb-inv-body-size, 15px) * 1.05));
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-pay-lede,
body.vetbill.vetbill-pub-inv.vb-inv-themed .vetbill-pay-unavailable {
  font-size: 1em;
}

body.vetbill.vetbill-pub-inv.vb-inv-themed .btn-primary {
  background: linear-gradient(165deg, #38bdf8 0%, var(--vb-accent) 44%, var(--vb-accent-deep) 100%);
}

/* ——— Public invoice page (invoice.php) ——— */
body.vetbill.vetbill-pub-inv {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--vb-page) 0%, var(--vb-page-2) 100%);
}

.vetbill-pub-inv-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 28px) 48px;
}

.vetbill-pub-inv-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid var(--vb-border-strong);
  background: var(--vb-surface-2);
  color: var(--vb-text);
}

.vetbill-pub-inv-banner--warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(251, 191, 36, 0.12);
}

.vetbill-pub-inv-sheet.vetbill-invoice-sheet {
  margin-top: 0;
}

.vetbill-pub-inv-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 4px;
}

.vetbill-pub-inv-title.vetbill-invoice-sheet__title {
  margin: 0;
}

.vetbill-pub-inv-paid-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.vetbill-pub-inv-actions.vetbill-invoice-sheet__actions {
  margin-top: 28px;
}

/* Invoice page loads vetbill-theme only — define button chrome here */
body.vetbill.vetbill-pub-inv .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.2rem;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.2s ease,
    transform 0.14s ease,
    filter 0.18s ease,
    opacity 0.18s ease;
}

body.vetbill.vetbill-pub-inv .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.38);
}

body.vetbill.vetbill-pub-inv .btn-primary {
  border: none;
  color: #fff !important;
  background: linear-gradient(165deg, #38bdf8 0%, var(--vb-accent) 44%, var(--vb-accent-deep) 100%);
  box-shadow:
    0 2px 6px rgba(63, 63, 70, 0.28),
    0 8px 22px rgba(82, 82, 91, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.vetbill.vetbill-pub-inv .btn-primary:hover:not(:disabled) {
  filter: brightness(1.04);
  box-shadow:
    0 4px 12px rgba(63, 63, 70, 0.35),
    0 14px 28px rgba(82, 82, 91, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

body.vetbill.vetbill-pub-inv .btn-primary:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.98);
}

body.vetbill.vetbill-pub-inv .btn-primary:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.15);
  box-shadow: none;
}

body.vetbill.vetbill-pub-inv .btn-outline {
  border-color: var(--vb-border-strong);
  color: var(--vb-text);
  background: rgba(255, 255, 255, 0.72);
}

body.vetbill.vetbill-pub-inv .btn-outline:hover:not(:disabled) {
  background: var(--vb-accent-soft);
  border-color: var(--vb-accent);
  color: var(--vb-accent-deep);
}

body.vetbill.vetbill-pub-inv .btn-sm {
  padding: 0.48rem 0.85rem;
  font-size: 0.8125rem;
  border-radius: 9px;
}

@media print {
  body.vetbill.vetbill-pub-inv {
    background: #fff;
  }

  .vetbill-pub-inv-layout {
    padding: 0;
    max-width: none;
  }

  .vetbill-pub-inv-sheet.vetbill-invoice-sheet {
    box-shadow: none;
    border-radius: 0;
    border: none;
    padding: 0;
  }
}

/* ——— Invoice modal + list ——— */
body.vetbill .vetbill-inv-url-sample {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--vb-surface-2);
  border: 1px solid var(--vb-border);
  word-break: break-all;
}

body.vetbill .vetbill-invoice-build-actions {
  margin-top: 14px;
}

body.vetbill .vetbill-inv-field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--vb-muted);
  line-height: 1.45;
}

body.vetbill .vetbill-inv-table-wrap {
  margin-top: 12px;
}

body.vetbill .vetbill-inv-table-toolbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

body.vetbill .vetbill-inv-table-toolbar label {
  font-size: 13px;
  font-weight: 600;
  color: var(--vb-text, #1a1a2e);
}

body.vetbill .vetbill-inv-table-search {
  width: 100%;
  max-width: 22rem;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.35;
  border: 1px solid var(--vb-border, rgba(15, 23, 42, 0.12));
  border-radius: 8px;
  background: var(--vb-surface, #fff);
  color: inherit;
}

body.vetbill .vetbill-inv-table-search:focus {
  outline: 2px solid var(--vb-accent-ring, rgba(37, 99, 235, 0.35));
  outline-offset: 1px;
}

body.vetbill .vetbill-inv-table-search::placeholder {
  color: var(--vb-muted);
}

body.vetbill .vetbill-inv-table__link a {
  font-weight: 500;
  word-break: break-all;
}

body.vetbill .vetbill-inv-table__concept {
  max-width: 14rem;
  font-size: 13px;
  color: var(--vb-muted);
}

body.vetbill .vetbill-inv-table__amount {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}

body.vetbill .vetbill-inv-table__paid {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--vb-muted);
}

body.vetbill .vetbill-inv-table__actions {
  white-space: nowrap;
}

body.vetbill .vetbill-inv-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.vetbill .vetbill-inv-delete-form {
  display: inline;
  margin: 0;
}

body.vetbill .vetbill-inv-delete {
  color: var(--vb-muted);
  font-weight: 400;
  font-size: 12px;
  opacity: 0.78;
}

body.vetbill .vetbill-inv-delete:hover:not(:disabled) {
  color: var(--vb-text);
  opacity: 1;
  text-decoration: none;
}

body.vetbill .vetbill-inv-paid-note {
  margin: 0 0 12px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--vb-muted);
  background: var(--vb-surface-2);
  border-radius: 8px;
  border: 1px solid var(--vb-border);
}

body.vetbill .vetbill-inv-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vh, 48px) 16px;
  overflow-y: auto;
  box-sizing: border-box;
}

body.vetbill .vetbill-inv-modal[hidden] {
  display: none !important;
}

body.vetbill .vetbill-inv-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

body.vetbill .vetbill-inv-modal__panel {
  position: relative;
  width: min(100%, 480px);
  margin-top: 4vh;
  background: var(--vb-surface);
  border-radius: 14px;
  border: 1px solid var(--vb-border);
  box-shadow: var(--vb-shadow);
}

body.vetbill .vetbill-inv-modal__head {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--vb-border);
}

body.vetbill .vetbill-inv-modal__head-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.vetbill .vetbill-inv-modal__logo-wrap {
  display: flex;
  justify-content: center;
  padding-bottom: 2px;
}

body.vetbill .vetbill-inv-modal__logo {
  display: block;
  max-height: 52px;
  width: auto;
  max-width: min(100%, 240px);
  object-fit: contain;
}

body.vetbill .vetbill-inv-modal__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.vetbill .vetbill-inv-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

body.vetbill .vetbill-invoice-logo-empty {
  margin-top: 0;
  margin-bottom: 12px;
}

body.vetbill .vetbill-inv-modal__form {
  padding: 16px 18px 20px;
}

body.vetbill .vetbill-inv-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

body.vetbill .vetbill-inv-modal__form.vetbill-invoice-form {
  max-width: none;
  gap: 0;
  margin-top: 0;
}

body.vetbill .vetbill-inv-form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--vb-border);
}

body.vetbill .vetbill-inv-form-section:first-of-type {
  padding-top: 4px;
}

body.vetbill .vetbill-inv-form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 6px;
}

body.vetbill .vetbill-inv-form-section__title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--vb-muted);
}

body.vetbill .vetbill-inv-form-section__lede {
  margin: -6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--vb-muted);
}

body.vetbill .vetbill-inv-modal .vetbill-invoice-field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--vb-text);
}

body.vetbill .vetbill-inv-modal .vetbill-invoice-field--note textarea {
  min-height: 6.75rem;
  background: var(--vb-surface-2);
  border-color: var(--vb-border);
}

body.vetbill .vetbill-inv-modal .vetbill-invoice-field--note textarea:focus {
  background: #fff;
}

body.vetbill .vetbill-inv-modal .vetbill-invoice-field__control--amount {
  font-variant-numeric: tabular-nums;
}

/* ——— Embedded Stripe card fields (public invoice; Stripe Checkout–like density) ——— */
body.vetbill .vetbill-pay-wrap {
  margin-top: 16px;
  padding: 14px 14px 15px;
  border-radius: 8px;
  border: 1px solid #e6ebf1;
  background: #f6f9fc;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body.vetbill .vetbill-pay-heading {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #30313d;
}

body.vetbill .vetbill-pay-lede {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #697386;
  max-width: 38em;
}

body.vetbill .vetbill-pay-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body.vetbill .vetbill-pay-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.vetbill label.vetbill-pay-field {
  margin: 0;
  display: flex;
  flex-direction: column;
  cursor: text;
  min-width: 0;
}

body.vetbill .vetbill-pay-field--full {
  width: 100%;
}

body.vetbill .vetbill-pay-row--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 31%);
  gap: 10px;
  align-items: start;
}

@media (max-width: 380px) {
  body.vetbill .vetbill-pay-row--split {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

body.vetbill .vetbill-pay-label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #697386;
}

/* Stripe mounts inside each .vetbill-pay-element and toggles these classes */
body.vetbill .vetbill-pay-element {
  margin: 0;
  min-height: 40px;
  padding: 8px 11px;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid #e0e6eb;
  background: #fff;
  overflow: hidden;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

body.vetbill .vetbill-pay-element:hover {
  border-color: #cbd5e1;
}

body.vetbill .vetbill-pay-element.StripeElement--focus {
  outline: none;
  border-color: #0570de;
  background: #fff;
  box-shadow:
    0 0 0 1px #0570de,
    0 1px 1px rgba(0, 0, 0, 0.03),
    0 3px 6px rgba(48, 49, 61, 0.06);
}

body.vetbill .vetbill-pay-element.StripeElement--invalid {
  border-color: #df1b41;
  box-shadow: none;
}

body.vetbill .vetbill-pay-element iframe {
  vertical-align: middle;
}

body.vetbill .vetbill-pay-submit {
  align-self: stretch;
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  min-height: 40px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 5px;
}

/* Stripe-style primary (public invoice Pay) */
body.vetbill.vetbill-pub-inv .vetbill-pay-form .vetbill-pay-submit.btn-primary {
  border: none !important;
  color: #fff !important;
  background: #0570de !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transform: none;
  filter: none;
}

body.vetbill.vetbill-pub-inv .vetbill-pay-form .vetbill-pay-submit.btn-primary:hover:not(:disabled) {
  background: #005bb9 !important;
  filter: none;
  transform: none;
  box-shadow: 0 2px 6px rgba(0, 69, 138, 0.25);
}

body.vetbill.vetbill-pub-inv .vetbill-pay-form .vetbill-pay-submit.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.96);
}

body.vetbill .vetbill-pay-message {
  margin: 10px 0 0;
  font-size: 13px;
  color: #df1b41;
}

body.vetbill .vetbill-pay-unavailable {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--vb-border-strong);
  background: var(--vb-surface-2);
  font-size: 13px;
  line-height: 1.45;
  color: var(--vb-muted);
}

/* ——— VetBill dashboard (overview) ——— revenue ——— */
body.vetbill .vetbill-dash-sales {
  margin-bottom: 20px;
}

body.vetbill .vetbill-dash-sales__intro {
  margin: 6px 0 14px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 52rem;
}

body.vetbill .vetbill-dash-sales__intro code.vetbill-inv-url-sample {
  font-size: 12px;
}

body.vetbill .vetbill-dash-sales__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  body.vetbill .vetbill-dash-sales__stats {
    grid-template-columns: 1fr;
  }
}

body.vetbill .vetbill-dash-sales__stat {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--vb-border);
  background: rgba(255, 255, 255, 0.65);
}

body.vetbill .vetbill-dash-sales__stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vb-muted);
  margin-bottom: 6px;
}

body.vetbill .vetbill-dash-sales__stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--vb-text);
}

body.vetbill .vetbill-sales-chart__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vb-muted);
}

body.vetbill .vetbill-sales-chart__bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  min-height: 160px;
  padding: 8px 4px 4px;
  border-radius: 12px;
  border: 1px solid var(--vb-border);
  background: var(--vb-surface);
}

body.vetbill .vetbill-sales-chart__cell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--vb-muted);
}

body.vetbill .vetbill-sales-chart__track {
  width: 100%;
  max-width: 36px;
  height: 128px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

body.vetbill .vetbill-sales-chart__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

body.vetbill .vetbill-sales-chart__svg:not(.vetbill-sales-chart__svg--empty) {
  filter: drop-shadow(0 1px 2px rgba(82, 82, 91, 0.25));
}

body.vetbill .vetbill-sales-chart__svg--empty {
  filter: none;
}

body.vetbill .vetbill-sales-chart__svg rect.vetbill-sales-chart__bar {
  transition: opacity 0.15s ease;
  fill: rgba(82, 82, 91, 0.85);
}

body.vetbill .vetbill-sales-chart__track:hover rect.vetbill-sales-chart__bar:not(.vetbill-sales-chart__bar--empty) {
  opacity: 0.92;
}

body.vetbill .vetbill-sales-chart__svg rect.vetbill-sales-chart__bar--empty {
  fill: rgba(148, 163, 184, 0.35);
}

body.vetbill .vetbill-sales-chart__dow {
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.vetbill .vetbill-sales-chart__num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--vb-text);
}

body.vetbill .vetbill-dash-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 20px;
  align-items: start;
}

body.vetbill .vb-queue-panel--full {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 4px;
}

@media (max-width: 960px) {
  body.vetbill .vetbill-dash-layout {
    grid-template-columns: 1fr;
  }

  body.vetbill .vb-queue-panel--full {
    margin-top: 0;
  }
}

body.vetbill .vb-queue-panel--full .vb-queue-intro {
  max-width: none;
}

@media (max-width: 720px) {
  body.vetbill .vb-queue-panel--full .vetbill-reminder-table-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin-top: 10px;
    padding-bottom: 4px;
  }

  body.vetbill .vb-queue-panel--full .vetbill-reminder-table {
    min-width: 34rem;
  }

  body.vetbill .vetbill-reminder-actions-cell {
    min-width: 0;
  }

  body.vetbill .vetbill-reminder-table--compact th,
  body.vetbill .vetbill-reminder-table--compact td {
    padding: 8px 9px;
  }
}

body.vetbill .vetbill-dash-cal-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* ——— Dashboard appointment calendar ——— */
body.vetbill .vb-cal-panel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 1) 42%, rgba(243, 249, 253, 0.85) 100%);
  box-shadow:
    var(--vb-shadow-sm),
    0 0 0 1px rgba(82, 82, 91, 0.06);
}

body.vetbill .vb-cal-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--vb-accent) 0%, rgba(255, 255, 255, 0.85) 55%, var(--vb-accent-deep) 100%);
  opacity: 0.92;
  pointer-events: none;
}

body.vetbill .vb-cal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--vb-border);
}

body.vetbill .vb-cal-title {
  margin: 0;
  font-size: clamp(1.125rem, 2.8vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

body.vetbill .vb-cal-panel .vb-cal-head h2 {
  margin: 0;
}

body.vetbill .vb-cal-nav {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  padding: 4px;
  border-radius: 12px;
  background: var(--vb-surface-2);
  border: 1px solid var(--vb-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.vetbill .vb-cal-nav__btn {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--vb-muted) !important;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 10px 14px !important;
  border-radius: 9px !important;
  transition:
    background 0.14s ease,
    color 0.14s ease,
    box-shadow 0.14s ease;
}

body.vetbill .vb-cal-nav__btn:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--vb-text) !important;
}

body.vetbill .vb-cal-nav__btn:focus-visible {
  outline: 2px solid var(--vb-accent);
  outline-offset: 2px;
  z-index: 1;
}

body.vetbill .vb-cal-nav__btn--prev::before {
  content: "←";
  margin-right: 5px;
  opacity: 0.72;
  font-weight: 700;
}

body.vetbill .vb-cal-nav__btn--next::after {
  content: "→";
  margin-left: 5px;
  opacity: 0.72;
  font-weight: 700;
}

body.vetbill .vb-cal-toolbar {
  margin-bottom: 12px;
}

body.vetbill .vb-cal-jump-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--vb-border);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

body.vetbill .vb-cal-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
}

body.vetbill .vb-cal-jump-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vb-muted);
  flex: 1 1 8rem;
  min-width: min(100%, 9rem);
}

body.vetbill .vb-cal-jump-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--vb-border-strong);
  background: var(--vb-surface);
  color: var(--vb-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

body.vetbill .vb-cal-jump-field select:hover {
  border-color: rgba(82, 82, 91, 0.35);
}

body.vetbill .vb-cal-jump-field select:focus {
  outline: none;
  border-color: var(--vb-accent);
  box-shadow: 0 0 0 3px var(--vb-accent-soft);
}

body.vetbill .vb-cal-jump .btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding-left: 18px !important;
  padding-right: 18px !important;
  border-radius: 10px !important;
  font-weight: 600;
}

body.vetbill .vb-cal-hint {
  font-size: 13px;
  margin: 0 0 14px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(82, 82, 91, 0.06);
  border: 1px solid rgba(82, 82, 91, 0.12);
  color: var(--vb-muted);
}

body.vetbill .vb-cal-hint a {
  font-weight: 600;
  color: var(--vb-accent-deep);
}

body.vetbill .vb-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(3px, 1vw, 6px);
  margin-bottom: 8px;
  padding: 0 2px;
  font-size: clamp(10px, 2.5vw, 11px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vb-muted);
  text-align: center;
}

body.vetbill .vb-cal-weekdays__dow abbr {
  text-decoration: none;
  cursor: help;
  border-bottom: 1px dotted rgba(71, 85, 105, 0.35);
}

body.vetbill .vb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(4px, 1.2vw, 8px);
}

body.vetbill .vb-cal-cell {
  --vb-cal-cell-bg: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: clamp(3.25rem, 10vw, 4.5rem);
  padding: 7px 8px 6px;
  border-radius: 11px;
  border: 1px solid var(--vb-border);
  background: var(--vb-cal-cell-bg);
  font-size: 12px;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.vetbill .vb-cal-cell:hover {
    border-color: rgba(82, 82, 91, 0.28);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.96);
  }
}

body.vetbill .vb-cal-cell:focus-within {
  border-color: rgba(82, 82, 91, 0.45);
  box-shadow: 0 0 0 3px var(--vb-accent-soft);
}

body.vetbill .vb-cal-cell--weekend {
  --vb-cal-cell-bg: rgba(241, 249, 255, 0.72);
}

body.vetbill .vb-cal-cell--pad {
  border: none;
  background: transparent;
  min-height: 0;
  padding: 0;
  pointer-events: none;
}

body.vetbill .vb-cal-cell--pad:focus-within {
  box-shadow: none;
}

body.vetbill .vb-cal-cell--today {
  border-color: var(--vb-accent);
  box-shadow:
    0 0 0 1px rgba(82, 82, 91, 0.35),
    0 8px 22px rgba(82, 82, 91, 0.08);
}

body.vetbill .vb-cal-cell--pick {
  background: linear-gradient(145deg, rgba(82, 82, 91, 0.14), rgba(82, 82, 91, 0.06));
  border-color: rgba(82, 82, 91, 0.55);
}

body.vetbill .vb-cal-cell--pick.vb-cal-cell--today {
  border-color: var(--vb-accent-deep);
}

body.vetbill .vb-cal-cell--btn {
  cursor: pointer;
  font: inherit;
  text-align: center;
  width: 100%;
}

body.vetbill .vb-cal-day-num {
  display: block;
  font-weight: 700;
  font-size: clamp(12px, 2.8vw, 14px);
  font-variant-numeric: tabular-nums;
  color: var(--vb-text);
  line-height: 1.2;
}

body.vetbill .vb-cal-appt-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-top: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--vb-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

body.vetbill .vb-cal-appt-count-label {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--vb-muted);
  line-height: 1.2;
}

body.vetbill .vb-cal-cell--has-appts .vb-cal-day-num {
  color: var(--vb-accent-deep);
}

body.vetbill .vb-cal-day-modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: min(480px, calc(100vw - 24px));
  width: 100%;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

body.vetbill .vb-cal-day-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

body.vetbill .vb-cal-day-modal__inner {
  display: flex;
  flex-direction: column;
  max-height: min(80vh, 640px);
}

body.vetbill .vb-cal-day-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--vb-border);
}

body.vetbill .vb-cal-day-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

body.vetbill .vb-cal-day-modal__timeline-wrap {
  overflow: auto;
  padding: 12px 18px;
  flex: 1 1 auto;
  min-height: 0;
}

body.vetbill .vb-cal-day-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.vetbill .vb-cal-day-modal__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--vb-border);
  background: rgba(255, 255, 255, 0.9);
}

body.vetbill .vb-cal-day-modal__item--past {
  opacity: 0.55;
  background: rgba(241, 245, 249, 0.85);
}

body.vetbill .vb-cal-day-modal__item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.vetbill .vb-cal-day-modal__time {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--vb-accent-deep);
}

body.vetbill .vb-cal-day-modal__item--past .vb-cal-day-modal__time {
  color: var(--vb-muted);
}

body.vetbill .vb-cal-day-modal__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--vb-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.vetbill .vb-cal-day-modal__now-row {
  list-style: none;
  margin: 4px 0;
  padding: 0;
}

body.vetbill .vb-cal-day-modal__now-line {
  position: relative;
  display: flex;
  align-items: center;
  height: 2px;
  background: #ef4444;
  border-radius: 2px;
}

body.vetbill .vb-cal-day-modal__now-pill {
  flex-shrink: 0;
  margin: 0 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.vetbill .vb-cal-day-modal__empty {
  margin: 0;
  padding: 8px 18px 0;
}

body.vetbill .vb-cal-day-modal__foot {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--vb-border);
}

body.vetbill .vb-cal-day-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: -4px -4px 6px;
  padding: 6px 8px;
  font-weight: 700;
  font-size: clamp(12px, 2.8vw, 14px);
  font-variant-numeric: tabular-nums;
  color: var(--vb-text);
  text-decoration: none;
  border-radius: 8px;
  transition:
    color 0.12s ease,
    background 0.12s ease;
}

body.vetbill .vb-cal-day-link:hover {
  text-decoration: none;
  color: var(--vb-accent-deep);
  background: rgba(82, 82, 91, 0.08);
}

body.vetbill .vb-cal-day-link:focus-visible {
  outline: 2px solid var(--vb-accent-deep);
  outline-offset: 2px;
}

body.vetbill .vb-cal-cell--today .vb-cal-day-link {
  position: relative;
  color: var(--vb-accent-deep);
}

body.vetbill .vb-cal-cell--today .vb-cal-day-link::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  margin: 5px auto 0;
  border-radius: 50%;
  background: var(--vb-accent);
  box-shadow: 0 0 0 2px rgba(82, 82, 91, 0.22);
}

body.vetbill .vb-cal-daynum {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--vb-text);
}

body.vetbill .vb-cal-appts {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.vetbill .vb-cal-appt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  padding: 4px 6px 4px 8px;
  line-height: 1.25;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid transparent;
  transition: background 0.12s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.vetbill .vb-cal-appt:hover {
    background: rgba(15, 23, 42, 0.06);
    border-color: var(--vb-border);
  }
}

body.vetbill .vb-cal-appt:focus-within {
  border-color: rgba(82, 82, 91, 0.35);
  background: rgba(82, 82, 91, 0.06);
}

body.vetbill .vb-cal-appt-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(10px, 2.4vw, 12px);
  font-weight: 600;
  color: var(--vb-text);
}

body.vetbill .vb-cal-appt-id {
  font-size: 10px;
  font-weight: 600;
  color: var(--vb-muted);
  letter-spacing: 0.02em;
}

body.vetbill .vb-cal-appt-del {
  margin: 0;
  flex-shrink: 0;
}

body.vetbill .vb-cal-appt-del .btn {
  padding: 6px 8px !important;
  min-height: 32px;
  min-width: 32px;
  line-height: 1;
  font-size: 16px;
  border-radius: 8px !important;
  opacity: 0.55;
  transition: opacity 0.12s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.vetbill .vb-cal-appt-del .btn {
    opacity: 0;
  }

  body.vetbill .vb-cal-appt:hover .vb-cal-appt-del .btn,
  body.vetbill .vb-cal-appt:focus-within .vb-cal-appt-del .btn {
    opacity: 0.75;
  }

  body.vetbill .vb-cal-appt-del .btn:hover {
    opacity: 1 !important;
  }
}

body.vetbill .vb-cal-appt-del .btn:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  body.vetbill .vb-cal-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.vetbill .vb-cal-nav {
    width: 100%;
    order: 1;
  }

  body.vetbill .vb-cal-title {
    order: 0;
    text-align: center;
  }

  body.vetbill .vb-cal-nav__btn {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 12px;
  }

  body.vetbill .vb-cal-nav__btn--prev::before,
  body.vetbill .vb-cal-nav__btn--next::after {
    margin-right: 3px;
    margin-left: 3px;
  }

  body.vetbill .vb-cal-jump .btn.btn-outline {
    flex: 1 1 auto;
    justify-content: center;
    background: linear-gradient(135deg, var(--vb-accent) 0%, var(--vb-accent-deep) 100%) !important;
    color: #fff !important;
    border: none !important;
  }

  body.vetbill .vb-cal-jump .btn.btn-outline:hover {
    filter: brightness(1.05);
    color: #fff !important;
  }
}

@media (max-width: 400px) {
  body.vetbill .vb-cal-weekdays__dow abbr {
    font-size: 9px;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 540px) {
  body.vetbill .vb-cal-cell {
    min-height: clamp(3.25rem, 18vw, 4rem);
    padding: 5px 5px 4px;
    border-radius: 9px;
  }

  body.vetbill .vb-cal-grid {
    gap: 4px;
  }

  body.vetbill .vb-cal-weekdays {
    gap: 3px;
    margin-bottom: 6px;
  }

  body.vetbill .vb-cal-day-link {
    min-height: 32px;
    margin-bottom: 4px;
    font-size: 12px;
  }

  body.vetbill .vb-cal-appt-name {
    font-size: 10px;
  }

  body.vetbill .vb-cal-appt {
    padding: 3px 5px 3px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.vetbill .vb-cal-cell,
  body.vetbill .vb-cal-day-link,
  body.vetbill .vb-cal-nav__btn,
  body.vetbill .vb-cal-appt,
  body.vetbill .vb-cal-appt-del .btn {
    transition: none;
  }

  body.vetbill .vb-cal-cell:hover {
    transform: none;
  }
}

body.vetbill .vetbill-dash-simple-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.vetbill .vb-simple-form .vb-field-hint {
  margin: 6px 0 0;
  font-size: 12px;
}

body.vetbill .vb-client-empty {
  margin-top: 10px;
}

body.vetbill .vb-client-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--vb-border);
}

body.vetbill .vb-client-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--vb-border);
  font-size: 13px;
}

body.vetbill .vb-client-list__main {
  flex: 1;
  min-width: 0;
}

body.vetbill .vb-client-list__name {
  display: block;
  font-weight: 600;
  color: var(--vb-text);
}

body.vetbill .vb-client-list__phone {
  display: block;
  font-size: 12px;
  color: var(--vb-muted);
  margin-top: 2px;
}

body.vetbill .vb-client-del {
  margin: 0;
}

body.vetbill .vb-queue-meta {
  margin: 0 0 6px;
  font-size: 12px;
}

body.vetbill .vb-client-panel--compact .vb-client-dash-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

body.vetbill .vb-client-dash-link {
  font-weight: 600;
}

body.vetbill .vb-client-combobox-field .vb-client-combobox__hint {
  margin-top: 4px;
}

body.vetbill .vb-client-combobox__wrap {
  position: relative;
}

body.vetbill .vb-client-combobox__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--vb-text);
  background: var(--vb-surface);
  border: 1px solid var(--vb-border-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.vetbill .vb-client-combobox__input:focus {
  border-color: var(--vb-accent);
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.18);
}

body.vetbill .vb-client-combobox__list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: min(18rem, 42vh);
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid var(--vb-border);
  background: var(--vb-surface);
  box-shadow: var(--vb-shadow);
}

body.vetbill .vb-client-combobox__option {
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
}

body.vetbill .vb-client-combobox__option:hover,
body.vetbill .vb-client-combobox__option--active {
  background: var(--vb-surface-2);
}

body.vetbill .vb-client-combobox__main {
  display: block;
  font-weight: 600;
  color: var(--vb-text);
}

body.vetbill .vb-client-combobox__id {
  font-weight: 600;
  color: var(--vb-muted);
  font-size: 12px;
}

body.vetbill .vb-client-combobox__sub {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--vb-muted);
  line-height: 1.35;
  word-break: break-word;
}

body.vetbill .vb-client-combobox__status {
  padding: 10px 8px;
  font-size: 13px;
  color: var(--vb-muted);
}

body.vetbill .vetbill-clients-card {
  border-radius: 12px;
}

body.vetbill .vetbill-clients-card__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vb-accent);
}

body.vetbill .vetbill-clients-roster-toolbar {
  margin: 0 0 14px;
}

body.vetbill .vetbill-clients-roster-search-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--vb-muted);
  margin-bottom: 6px;
}

body.vetbill .vetbill-clients-roster-search-input {
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--vb-border-strong);
  border-radius: 10px;
  background: var(--vb-surface);
  color: var(--vb-text);
}

body.vetbill .vetbill-clients-roster-search-input:focus {
  outline: none;
  border-color: var(--vb-accent);
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.18);
}

body.vetbill .vetbill-clients-notes-field.field {
  margin-bottom: 16px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--vb-border);
  background: var(--vb-surface-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

body.vetbill .vetbill-clients-notes-field__label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vb-text);
}

body.vetbill .vetbill-clients-notes-field__hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--vb-muted);
}

body.vetbill .vetbill-clients-field-hint {
  margin: 4px 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--vb-muted);
}

body.vetbill .vetbill-clients-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

@media (max-width: 540px) {
  body.vetbill .vetbill-clients-inline-fields {
    grid-template-columns: 1fr;
  }
}

body.vetbill .vetbill-clients-roster__animal {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

body.vetbill .vetbill-clients-notes-field__control {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 6rem;
  margin: 0;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--vb-text);
  background: #fff;
  border: 1px solid var(--vb-border-strong);
  border-radius: 10px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.vetbill .vetbill-clients-notes-field__control:hover {
  border-color: rgba(100, 116, 139, 0.35);
}

body.vetbill .vetbill-clients-notes-field__control:focus {
  outline: none;
  border-color: var(--vb-accent);
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.18);
}

body.vetbill .vetbill-clients-notes-field__control::placeholder {
  color: rgba(100, 116, 139, 0.82);
}

body.vetbill .vetbill-clients-empty {
  margin: 12px 0 0;
  font-size: 14px;
}

body.vetbill .vetbill-clients-roster {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.vetbill .vetbill-clients-roster__item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--vb-border);
}

body.vetbill .vetbill-clients-roster__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.vetbill .vetbill-clients-roster__main {
  flex: 1;
  min-width: 200px;
}

body.vetbill .vetbill-clients-roster__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

body.vetbill .vetbill-clients-roster__name {
  display: inline;
  font-weight: 600;
  font-size: 15px;
}

body.vetbill .vetbill-clients-roster__cid {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--vb-muted);
  white-space: nowrap;
}

body.vetbill .vetbill-clients-roster__phone {
  display: block;
  font-size: 13px;
  color: var(--vb-muted);
  margin-top: 2px;
}

body.vetbill .vetbill-clients-roster__notes {
  margin: 8px 0 0;
  font-size: 13px;
}

body.vetbill .vetbill-clients-roster__inv {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
}

body.vetbill .vetbill-clients-roster__inv a {
  font-weight: 500;
  margin-right: 8px;
}

body.vetbill .vetbill-clients-roster__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.vetbill .vetbill-clients-attach-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

body.vetbill .vetbill-clients-attach-select {
  max-width: min(16rem, 100%);
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--vb-border);
  font-size: 12px;
  background: #fff;
}

body.vetbill .vetbill-clients-page__header .vetbill-dash-lede a {
  font-weight: 600;
}

body.vetbill .vetbill-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--vb-border);
}

body.vetbill .vetbill-pager--queue {
  margin-top: 12px;
}

body.vetbill .vetbill-pager__status {
  font-size: 13px;
}

body.vetbill .vetbill-pager__disabled {
  opacity: 0.45;
  pointer-events: none;
}

body.vetbill .vetbill-clients-roster__edit-panel {
  position: relative;
}

body.vetbill .vetbill-clients-roster__edit-summary {
  list-style: none;
  cursor: pointer;
}

body.vetbill .vetbill-clients-roster__edit-summary::-webkit-details-marker {
  display: none;
}

body.vetbill .vetbill-clients-roster__edit-body {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 4;
  margin-top: 6px;
  min-width: min(18rem, calc(100vw - 2rem));
  padding: 12px;
  background: #fff;
  border: 1px solid var(--vb-border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

body.vetbill .vetbill-clients-roster__edit-body .field {
  margin-bottom: 10px;
}

body.vetbill .vetbill-clients-roster__edit-footer {
  margin-top: 4px;
}

@media (max-width: 720px) {
  body.vetbill .vetbill-clients-roster__edit-body {
    right: auto;
    left: 0;
  }
}

body.vetbill .vetbill-clients-records-wrap {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

body.vetbill .vetbill-clients-records-panel {
  border: 1px solid var(--vb-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

body.vetbill .vetbill-clients-records-panel__summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vb-ink);
}

body.vetbill .vetbill-clients-records-panel__summary::-webkit-details-marker {
  display: none;
}

body.vetbill .vetbill-clients-records-panel__body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--vb-border);
}

body.vetbill .vetbill-clients-records-empty {
  margin: 10px 0 0;
  font-size: 13px;
}

body.vetbill .vetbill-clients-records-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

body.vetbill .vetbill-clients-records-list__item {
  padding: 10px;
  border: 1px solid var(--vb-border);
  border-radius: 8px;
  background: #fff;
}

body.vetbill .vetbill-clients-records-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

body.vetbill .vetbill-clients-records-list__date {
  font-size: 12px;
  color: var(--vb-muted);
}

body.vetbill .vetbill-clients-records-list__title {
  font-size: 14px;
}

body.vetbill .vetbill-clients-records-list__line {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

body.vetbill .vetbill-clients-records-list__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

body.vetbill .vetbill-clients-records-edit > summary {
  list-style: none;
}

body.vetbill .vetbill-clients-records-edit > summary::-webkit-details-marker {
  display: none;
}

body.vetbill .vetbill-clients-records-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--vb-border);
}

body.vetbill .vetbill-clients-records-form--add {
  margin-top: 10px;
}

body.vetbill .vetbill-clients-records-form__heading {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

body.vetbill .vetbill-clients-records-form .field {
  margin-bottom: 8px;
}

body.vetbill .vetbill-clients-records-form textarea,
body.vetbill .vetbill-clients-records-form input[type="date"],
body.vetbill .vetbill-clients-records-form input[type="text"] {
  width: 100%;
}

body.vetbill .vetbill-clients-records-edit .vetbill-clients-records-form {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--vb-border);
  border-radius: 8px;
  background: #fff;
}

body.vetbill .vetbill-clients-records-del {
  display: inline;
}

/* Invoice template designer */
body.vetbill.vetbill-page-invoice-templates .vetbill-inv-tpl-layout {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

@media (min-width: 960px) {
  body.vetbill.vetbill-page-invoice-templates .vetbill-inv-tpl-layout {
    grid-template-columns: 1fr minmax(260px, 320px);
    align-items: start;
  }
}

body.vetbill .vetbill-inv-tpl-default-form {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

body.vetbill .vetbill-inv-tpl-default-form .vb-dd--tpl-default {
  flex: 1 1 14rem;
  max-width: 22rem;
  min-width: min(100%, 12rem);
}

body.vetbill .vetbill-inv-tpl-colors-fieldset,
body.vetbill .vetbill-inv-tpl-fonts-fieldset {
  border: 1px solid var(--vb-border);
  border-radius: 14px;
  padding: 16px 18px 18px;
  margin: 0 0 18px;
  background: rgba(255, 255, 255, 0.72);
}

body.vetbill .vetbill-inv-tpl-colors-fieldset legend,
body.vetbill .vetbill-inv-tpl-fonts-fieldset legend {
  padding: 0 6px;
  font-weight: 700;
  font-size: 14px;
}

body.vetbill .vetbill-inv-tpl-fieldset-hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
}

body.vetbill .vetbill-inv-tpl-swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
  gap: 16px 14px;
  justify-items: center;
  align-items: start;
}

body.vetbill .vetbill-inv-tpl-swatch-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  width: 100%;
  max-width: 6.25rem;
}

body.vetbill .vetbill-inv-tpl-swatch {
  width: 4.5rem;
  height: 4.5rem;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  background: var(--vb-surface, #fff);
}

body.vetbill .vetbill-inv-tpl-swatch-input {
  display: block;
  width: 165%;
  height: 165%;
  margin: -32.5% 0 0 -32.5%;
  padding: 0;
  border: none;
  cursor: pointer;
  background: transparent;
}

body.vetbill .vetbill-inv-tpl-swatch-caption {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--vb-text);
}

body.vetbill .vetbill-inv-tpl-swatch-hex {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--vb-muted);
}

body.vetbill .vetbill-inv-tpl-font-section {
  margin-bottom: 20px;
}

body.vetbill .vetbill-inv-tpl-font-section:last-child {
  margin-bottom: 0;
}

body.vetbill .vetbill-inv-tpl-font-heading-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--vb-text);
}

body.vetbill .vetbill-inv-tpl-font-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin-bottom: 12px;
}

body.vetbill .vetbill-inv-tpl-font-field {
  flex: 1 1 200px;
  min-width: min(100%, 200px);
}

body.vetbill .vetbill-inv-tpl-font-field--weight {
  flex: 0 1 170px;
  min-width: 8.5rem;
}

body.vetbill .vetbill-inv-tpl-font-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--vb-muted);
}

body.vetbill .vb-dd {
  position: relative;
  width: 100%;
}

body.vetbill .vb-dd__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--vb-border-strong, rgba(15, 23, 42, 0.18));
  border-radius: 10px;
  background: var(--vb-surface, #fff);
  color: var(--vb-text);
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

body.vetbill .vb-dd__btn:hover {
  border-color: rgba(82, 82, 91, 0.45);
}

body.vetbill .vb-dd.is-open .vb-dd__btn,
body.vetbill .vb-dd__btn:focus-visible {
  outline: none;
  border-color: var(--vb-accent-deep);
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.28);
}

body.vetbill .vb-dd__btn-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.vetbill .vb-dd__btn-text--font {
  font-size: 16px;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}

body.vetbill .vb-dd__caret {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--vb-muted);
  margin-top: 2px;
  transition: transform 0.15s ease;
}

body.vetbill .vb-dd.is-open .vb-dd__caret {
  transform: rotate(180deg);
}

body.vetbill .vb-dd__panel {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;
  margin-top: 4px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--vb-border);
  background: var(--vb-surface, #fff);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.06);
}

body.vetbill .vb-dd__panel--scroll {
  max-height: min(60vh, 320px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.vetbill .vb-dd__panel--fonts .vb-dd__option--font {
  font-size: 17px;
  padding-top: 10px;
  padding-bottom: 10px;
}

body.vetbill .vb-dd__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--vb-text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.35;
}

body.vetbill .vb-dd__option:hover {
  background: rgba(82, 82, 91, 0.09);
}

body.vetbill .vb-dd__option:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(82, 82, 91, 0.45);
}

body.vetbill .vb-dd__option[aria-selected='true'] {
  background: rgba(82, 82, 91, 0.14);
  font-weight: 600;
}

/* Invoice template font presets — external stylesheet only (CSP: no inline style attributes). */
body.vetbill .vb-inv-font-wgt--400 {
  font-weight: 400;
}

body.vetbill .vb-inv-font-wgt--500 {
  font-weight: 500;
}

body.vetbill .vb-inv-font-wgt--600 {
  font-weight: 600;
}

body.vetbill .vb-inv-font-wgt--700 {
  font-weight: 700;
}

body.vetbill .vb-inv-font-preset--dm_sans {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

body.vetbill .vb-inv-font-preset--inter {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

body.vetbill .vb-inv-font-preset--fira_sans {
  font-family: "Fira Sans", ui-sans-serif, sans-serif;
}

body.vetbill .vb-inv-font-preset--plus_jakarta_sans {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

body.vetbill .vb-inv-font-preset--outfit {
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

body.vetbill .vb-inv-font-preset--manrope {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

body.vetbill .vb-inv-font-preset--montserrat {
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
}

body.vetbill .vb-inv-font-preset--space_grotesk {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

body.vetbill .vb-inv-font-preset--figtree {
  font-family: "Figtree", ui-sans-serif, system-ui, sans-serif;
}

body.vetbill .vb-inv-font-preset--work_sans {
  font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif;
}

body.vetbill .vb-inv-font-preset--ibm_plex_sans {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

body.vetbill .vb-inv-font-preset--karla {
  font-family: "Karla", ui-sans-serif, system-ui, sans-serif;
}

body.vetbill .vb-inv-font-preset--rubik {
  font-family: "Rubik", ui-sans-serif, system-ui, sans-serif;
}

body.vetbill .vb-inv-font-preset--lora {
  font-family: "Lora", Georgia, serif;
}

body.vetbill .vb-inv-font-preset--playfair {
  font-family: "Playfair Display", Georgia, serif;
}

body.vetbill .vb-inv-font-preset--source_serif {
  font-family: "Source Serif 4", Georgia, serif;
}

body.vetbill .vb-inv-font-preset--libre_baskerville {
  font-family: "Libre Baskerville", Georgia, serif;
}

body.vetbill .vb-inv-font-preset--ibm_plex_serif {
  font-family: "IBM Plex Serif", Georgia, serif;
}

body.vetbill .vb-inv-font-preset--fraunces {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
}

body.vetbill .vb-inv-font-preset--spectral {
  font-family: "Spectral", Georgia, serif;
}

body.vetbill .vb-inv-font-preset--system_ui {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.vetbill .vetbill-inv-tpl-four-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-bottom: 16px;
}

body.vetbill .vetbill-inv-tpl-preview-block {
  margin: 16px 0;
}

body.vetbill .vetbill-inv-tpl-preview-block > .vetbill-inv-tpl-preview-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--vb-muted);
}

body.vetbill .vetbill-inv-tpl-preview-root .vetbill-inv-tpl-preview-sheet.vetbill-invoice-sheet {
  margin: 0;
  max-width: none;
  background: var(--vb-inv-sheet-bg, #fff);
  border: 1px solid var(--vb-inv-border, var(--vb-border));
  border-radius: var(--vb-inv-sheet-radius, 12px);
  box-shadow: var(--vb-inv-sheet-shadow, none);
  font-family: var(--vb-inv-font-body, inherit);
  font-weight: var(--vb-inv-body-weight, 400);
  font-size: var(--vb-inv-body-size, 15px);
  color: var(--vb-inv-body, var(--vb-text));
}

body.vetbill .vetbill-inv-tpl-preview-root .vetbill-invoice-sheet__clinic {
  margin: 0 0 4px;
  font-family: var(--vb-inv-font-heading, inherit);
  font-weight: var(--vb-inv-heading-weight, 600);
  font-size: 1em;
  color: var(--vb-inv-heading, var(--vb-text));
}

body.vetbill .vetbill-inv-tpl-preview-root .vetbill-invoice-sheet__title {
  font-family: var(--vb-inv-font-heading, inherit);
  font-weight: var(--vb-inv-heading-weight, 700);
  font-size: var(--vb-inv-title-size, 22px);
  color: var(--vb-inv-heading, var(--vb-text));
}

body.vetbill .vetbill-inv-tpl-preview-root .vetbill-invoice-sheet__amount {
  font-size: var(--vb-inv-amount-size, 22px);
  font-weight: var(--vb-inv-heading-weight, 700);
  letter-spacing: -0.02em;
  color: var(--vb-inv-heading, var(--vb-text));
}

body.vetbill .vetbill-inv-tpl-preview-root .vetbill-invoice-sheet__label,
body.vetbill .vetbill-inv-tpl-preview-root .vetbill-invoice-sheet__meta dt {
  font-size: max(9px, calc(var(--vb-inv-body-size, 15px) * 0.72));
  color: var(--vb-inv-label, var(--vb-muted));
}

body.vetbill .vetbill-inv-tpl-preview-root .vetbill-invoice-sheet__meta dd {
  font-size: 1em;
  color: var(--vb-inv-body, var(--vb-text));
}

body.vetbill .vetbill-inv-tpl-preview-root .vetbill-invoice-sheet__strong {
  font-size: 1.07em;
  font-weight: var(--vb-inv-heading-weight, 600);
  color: var(--vb-inv-heading, var(--vb-text));
}

body.vetbill .vetbill-inv-tpl-saved-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.vetbill .vetbill-inv-tpl-saved-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--vb-border);
}

body.vetbill .vetbill-inv-tpl-saved-list__item:last-child {
  border-bottom: none;
}

body.vetbill .vetbill-inv-tpl-saved-list__actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.vetbill .vetbill-inv-tpl-saved-list__actions form {
  display: inline;
  margin: 0;
}

body.vetbill .vetbill-inv-tpl-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Messages — two-way SMS inbox */
body.vetbill .vetbill-messages-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 16px;
  height: calc(100vh - 220px);
  max-height: calc(100vh - 220px);
  min-height: 480px;
  align-items: stretch;
}

body.vetbill .vetbill-messages-sidebar,
body.vetbill .vetbill-messages-thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

body.vetbill .vetbill-messages-sidebar__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--vb-border);
}

body.vetbill .vetbill-messages-tabs {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 3px;
}

body.vetbill .vetbill-messages-tabs__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--vb-muted);
  text-decoration: none;
}

body.vetbill .vetbill-messages-tabs__link.is-active {
  background: rgba(139, 92, 246, 0.22);
  color: #fff;
}

body.vetbill .vetbill-messages-tabs__badge {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #8b5cf6;
  color: #fff;
  font-size: 0.6875rem;
  padding: 0 5px;
}

body.vetbill .vetbill-messages-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

body.vetbill .vetbill-messages-list__empty {
  padding: 24px 16px;
  color: var(--vb-muted);
  font-size: 0.875rem;
}

body.vetbill .vetbill-messages-list__item {
  border-bottom: 1px solid var(--vb-border);
}

body.vetbill .vetbill-messages-list__link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}

body.vetbill .vetbill-messages-list__item.is-active .vetbill-messages-list__link {
  background: rgba(139, 92, 246, 0.12);
}

body.vetbill .vetbill-messages-list__item.has-unread .vetbill-messages-list__name {
  font-weight: 700;
}

body.vetbill .vetbill-messages-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.25);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

body.vetbill .vetbill-messages-avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 0.9375rem;
}

body.vetbill .vetbill-messages-list__body {
  min-width: 0;
}

body.vetbill .vetbill-messages-list__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

body.vetbill .vetbill-messages-list__name {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.vetbill .vetbill-messages-list__time {
  font-size: 0.75rem;
  color: var(--vb-muted);
  white-space: nowrap;
}

body.vetbill .vetbill-messages-list__preview {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--vb-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.vetbill .vetbill-messages-list__unread {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #8b5cf6;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0 6px;
}

body.vetbill .vetbill-messages-thread__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--vb-border);
  flex-shrink: 0;
}

body.vetbill .vetbill-messages-thread__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.vetbill .vetbill-messages-thread__name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

body.vetbill .vetbill-messages-thread__phone {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  color: var(--vb-muted);
}

body.vetbill .vetbill-messages-thread__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.vetbill .vetbill-messages-thread__empty,
body.vetbill .vetbill-messages-thread__archived-note {
  padding: 32px 20px;
  color: var(--vb-muted);
}

body.vetbill .vetbill-messages-thread__search {
  flex-shrink: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--vb-border);
  background: rgba(255, 255, 255, 0.02);
}

body.vetbill .vetbill-messages-thread__search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.vetbill .vetbill-messages-thread__search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.vetbill .vetbill-messages-thread__search-input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--vb-border);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 0.875rem;
}

body.vetbill .vetbill-messages-thread__search-input:focus {
  outline: 2px solid rgba(139, 92, 246, 0.45);
  outline-offset: 1px;
}

body.vetbill .vetbill-messages-thread__search-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

body.vetbill .vetbill-messages-thread__search-count {
  font-size: 0.75rem;
  color: var(--vb-muted);
  white-space: nowrap;
  min-width: 4.5rem;
  text-align: center;
}

body.vetbill .vetbill-messages-bubbles {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  background: #c9d9e8;
}

body.vetbill.vetbill-page-messages .vb-msg--search-active .vb-msg__bubble {
  box-shadow: 0 0 0 2px #8b5cf6, 0 1px 3px rgba(15, 23, 42, 0.12);
}

body.vetbill.vetbill-page-messages .vb-msg__mark {
  background: rgba(250, 204, 21, 0.55);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* Chat rows — client left (grey), practice right (vivid) */
body.vetbill.vetbill-page-messages .vb-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(82%, 540px);
  width: fit-content;
  clear: both;
}

body.vetbill.vetbill-page-messages .vb-msg--client {
  align-self: flex-start;
  margin-right: auto;
  margin-left: 0;
}

body.vetbill.vetbill-page-messages .vb-msg--mine {
  align-self: flex-end;
  margin-left: auto;
  margin-right: 0;
}

body.vetbill.vetbill-page-messages .vb-msg__bubble {
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

/* Client — grey, left */
body.vetbill.vetbill-page-messages .vb-msg--client .vb-msg__bubble {
  background: #d1d5db !important;
  color: #111827 !important;
  border: 1px solid #9ca3af !important;
  border-bottom-left-radius: 5px;
}

/* Your practice — vivid purple, right */
body.vetbill.vetbill-page-messages .vb-msg--mine .vb-msg__bubble {
  background: linear-gradient(135deg, #d4d4d8 0%, #7e22ce 100%) !important;
  color: #ffffff !important;
  border: 1px solid #6b21a8 !important;
  border-bottom-right-radius: 5px;
  box-shadow: 0 3px 12px rgba(126, 34, 206, 0.45) !important;
}

body.vetbill.vetbill-page-messages .vb-msg--mine.vb-msg--pending .vb-msg__bubble {
  opacity: 0.88;
}

body.vetbill.vetbill-page-messages .vb-msg__time {
  font-size: 0.6875rem;
  color: #64748b;
  padding: 0 6px;
}

body.vetbill.vetbill-page-messages .vb-msg--client .vb-msg__time {
  text-align: left;
}

body.vetbill.vetbill-page-messages .vb-msg--mine .vb-msg__time {
  text-align: right;
}

/* Legacy class names (keep for any cached JS) */
body.vetbill .vetbill-messages-bubble {
  max-width: min(78%, 520px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.vetbill .vetbill-messages-bubble--inbound {
  align-self: flex-start;
  margin-right: auto;
}

body.vetbill .vetbill-messages-bubble--outbound {
  align-self: flex-end;
  margin-left: auto;
}

body.vetbill .vetbill-messages-bubble__text {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

body.vetbill .vetbill-messages-bubble--inbound .vetbill-messages-bubble__text {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-bottom-left-radius: 4px;
}

body.vetbill .vetbill-messages-bubble--outbound .vetbill-messages-bubble__text {
  background: #d4d4d8;
  color: #ffffff;
  border: 1px solid #0369a1;
  border-bottom-right-radius: 4px;
}

body.vetbill .vetbill-messages-bubble__time {
  font-size: 0.6875rem;
  color: var(--vb-faint);
  padding: 0 4px;
}

body.vetbill .vetbill-messages-bubble--outbound .vetbill-messages-bubble__time {
  text-align: right;
}

body.vetbill .vetbill-messages-compose {
  flex-shrink: 0;
  border-top: 1px solid var(--vb-border);
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.vetbill .vetbill-messages-compose textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border-radius: 8px;
  border: 1px solid var(--vb-border-strong);
  background: #ffffff;
  color: #18181b;
  padding: 8px 11px;
  font: inherit;
  font-size: 14px;
}

body.vetbill .vetbill-messages-compose__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.vetbill .vetbill-messages-compose__hint {
  margin: 0;
  font-size: 0.8125rem;
}

body.vetbill .vetbill-messages-modal {
  border: 1px solid var(--vb-border);
  border-radius: 16px;
  padding: 0;
  max-width: 440px;
  width: calc(100% - 32px);
  background: var(--vb-surface, #ffffff);
  color: var(--vb-text, #18181b);
}

body.vetbill .vetbill-messages-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

body.vetbill .vetbill-messages-modal__form {
  padding: 20px;
}

body.vetbill .vetbill-messages-modal__form .field {
  margin-bottom: 14px;
}

body.vetbill .vetbill-messages-modal__form .field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--vb-muted, rgba(255, 255, 255, 0.72));
}

body.vetbill .vetbill-messages-modal__form .field input[type="text"],
body.vetbill .vetbill-messages-modal__form .field input[type="tel"],
body.vetbill .vetbill-messages-modal__form .field textarea {
  width: 100%;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--vb-border-strong);
  background: #ffffff;
  color: #18181b;
  font: inherit;
  font-size: 14px;
}

body.vetbill .vetbill-messages-modal__form .vb-client-combobox__input {
  width: 100%;
}

body.vetbill .vetbill-messages-modal .vb-client-combobox__list {
  z-index: 20;
}

body.vetbill .vetbill-messages-modal__title {
  margin: 0 0 16px;
  font-size: 1.125rem;
}

body.vetbill .vetbill-messages-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

body.vetbill .vetbill-messages-back {
  display: none;
}

@media (max-width: 860px) {
  body.vetbill .vetbill-messages-layout {
    grid-template-columns: 1fr;
    height: calc(100vh - 180px);
    max-height: calc(100vh - 180px);
    min-height: 420px;
  }

  body.vetbill .vetbill-messages-layout.has-thread .vetbill-messages-sidebar {
    display: none;
  }

  body.vetbill .vetbill-messages-layout:not(.has-thread) .vetbill-messages-thread {
    display: none;
  }

  body.vetbill .vetbill-messages-back {
    display: inline-flex;
  }
}

/* Dedicated SMS number settings */
body.vetbill .vb-sms-number-options {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}

@media (min-width: 720px) {
  body.vetbill .vb-sms-number-options {
    grid-template-columns: 1fr 1fr;
  }
}

body.vetbill .vb-sms-number-option {
  border: 1px solid var(--vb-border, rgba(15, 23, 42, 0.12));
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.5);
}

body.vetbill .vb-sms-number-option.is-active {
  border-color: var(--vb-accent, #2563eb);
  box-shadow: 0 0 0 1px var(--vb-accent, #2563eb);
}

body.vetbill .vb-sms-number-option__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

body.vetbill .vb-sms-number-option__desc {
  margin: 0;
  color: var(--vb-muted, #64748b);
  font-size: 0.92rem;
  line-height: 1.45;
}

body.vetbill .vb-sms-number-assigned {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
}

body.vetbill .vb-sms-number-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

body.vetbill .vb-sms-number-search-input {
  flex: 1 1 140px;
  max-width: 200px;
}

body.vetbill .vb-sms-number-results {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.vetbill .vb-sms-number-results__btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--vb-border, rgba(15, 23, 42, 0.12));
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

body.vetbill .vb-sms-number-results__btn.is-selected,
body.vetbill .vb-sms-number-results__btn:hover {
  border-color: var(--vb-accent, #2563eb);
  background: rgba(37, 99, 235, 0.06);
}

body.vetbill .vb-sms-number-order-form {
  margin-top: 0.75rem;
}

body.vetbill .vb-sms-number-pick-label {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

body.vetbill .vb-sms-number-search-status--error {
  color: #b91c1c;
}

body.vetbill .vb-sms-number-paypal-wrap {
  margin-top: 0.75rem;
  max-width: 320px;
}
