/* ----- Custom CSS Notes ----- */
/* Use this file for custom animations, custom scrollbar styles, and one-off styles that Tailwind cannot easily cover. */

/* Four complete breed rows; native scroll containment also preserves touch scrolling. */
.breed-suggestion-list {
  max-height: 162px;
  padding-block: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgb(49 91 126 / 30%) transparent;
}
.breed-suggestion-list .breed-combobox-option {
  height: 40px;
  padding-block: 0;
  line-height: 40px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breed-suggestion-list .breed-combobox-option[aria-selected="true"] {
  background-color: #edf5fc;
}
.breed-suggestion-list::-webkit-scrollbar { width: 6px; }
.breed-suggestion-list::-webkit-scrollbar-thumb { background: rgb(49 91 126 / 30%); border-radius: 6px; }

/* Color uses the same four-row treatment in the top layer to escape modal clipping. */
.color-suggestion-list {
  position: fixed;
  inset: auto;
  z-index: 400;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-height: 162px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgb(49 91 126 / 30%) transparent;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  color: #334155;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%);
  font: inherit;
  font-size: 14px;
}
.color-suggestion-list.hidden { display: none; }
.color-combobox-option {
  box-sizing: border-box;
  height: 40px;
  padding: 0 16px;
  line-height: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.color-combobox-option:hover,
.color-combobox-option[aria-selected="true"] { background: #edf5fc; }
.color-suggestion-list::-webkit-scrollbar { width: 6px; }
.color-suggestion-list::-webkit-scrollbar-thumb { background: rgb(49 91 126 / 30%); border-radius: 6px; }

[x-cloak] {
  display: none !important;
}

/* Persistent security notice on the shared sign-in screen. */
.session-signout-alert {
  --signout-ink: #1e3a5f;
  --signout-border: #cbd5e1;
  --signout-surface: #f1f5f9;
  --signout-focus: #315b7e;
  position: relative;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--signout-border);
  border-radius: 16px;
  color: var(--signout-ink);
  background: var(--signout-surface);
  font-size: 14px;
  line-height: 1.5;
}
.session-signout-alert[hidden] { display: none; }
.session-signout-alert__content { min-width: 0; overflow-wrap: anywhere; }
.session-signout-alert h3 { margin: 0; padding: 0 24px 0 30px; font-size: 15px; font-weight: 700; }
.session-signout-alert p { margin: 8px 0 0; }
.session-signout-alert__icon { position: absolute; top: 16px; left: 16px; width: 22px; height: 22px; fill: currentColor; }
.session-signout-alert__dismiss {
  display: grid;
  place-items: center;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.session-signout-alert__dismiss svg { width: 18px; height: 18px; fill: currentColor; }
.session-signout-alert__dismiss:hover { background: var(--signout-border); }
.session-signout-alert__dismiss:focus-visible { outline: 2px solid var(--signout-focus); outline-offset: 2px; }

/* Transactions defines the shared record typography for admin history. */
.transactions-page,
.history-page {
  --admin-record-text-size: 14px;
  --admin-record-secondary-size: 12px;
  --admin-record-amount-size: 17px;
  --admin-record-button-size: 13px;
  --admin-record-emphasis-weight: 700;
}

/* ----- Brand Lockup ----- */
.brand-lockup {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  color: #155286;
  text-decoration: none;
}

.brand-lockup__mark {
  width: 3.35rem;
  height: auto;
  flex: 0 0 auto;
}

.brand-lockup__divider {
  width: 0.13rem;
  height: 3rem;
  flex: 0 0 auto;
  background: #155286;
}

.brand-lockup__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.22rem;
  line-height: 1;
}

.brand-lockup__name,
.brand-lockup__service {
  display: block;
  white-space: nowrap;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-lockup__name {
  font-size: 1.05rem;
  letter-spacing: 0.21rem;
}

.brand-lockup__service {
  background: #155286;
  color: #ffffff;
  font-size: 1.28rem;
  letter-spacing: 0.055rem;
  padding: 0.22rem 0.42rem 0.27rem;
}

@media (min-width: 1180px) {
  .brand-lockup {
    gap: 0.56rem;
  }

  .brand-lockup__mark {
    width: 3.65rem;
  }

  .brand-lockup__divider {
    height: 3.25rem;
  }

  .brand-lockup__name {
    font-size: 1.14rem;
    letter-spacing: 0.25rem;
  }

  .brand-lockup__service {
    font-size: 1.42rem;
    letter-spacing: 0.065rem;
    padding: 0.23rem 0.48rem 0.29rem;
  }
}

@media (max-width: 900px) {
  .brand-lockup {
    gap: 0.42rem;
  }

  .brand-lockup__mark {
    width: 3rem;
  }

  .brand-lockup__divider {
    width: 0.12rem;
    height: 2.68rem;
  }

  .brand-lockup__text {
    gap: 0.24rem;
  }

  .brand-lockup__name {
    font-size: 0.82rem;
    letter-spacing: 0.14rem;
  }

  .brand-lockup__service {
    font-size: 0.96rem;
    letter-spacing: 0.05rem;
    padding: 0.19rem 0.34rem 0.23rem;
  }
}

/* ----- Booking Form Controls ----- */
.booking-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 3rem;
}

.booking-select-icon {
  pointer-events: none;
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ----- Service Cards And Pricing ----- */
.service-card {
  align-items: flex-start;
}

.service-card__content {
  display: flex;
  min-height: 100%;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.service-card__pricing {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #d6e3ef;
}

.service-card__pricing-label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a7f9d;
}

.service-card__price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
}

.service-card__price-pill {
  border: 1px solid #c7daea;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fbfe 0%, #edf5fb 100%);
  padding: 0.75rem 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.service-card--selected {
  border-color: #315b7e;
  box-shadow:
    0 0 0 2px rgba(49, 91, 126, 0.16),
    0 10px 24px rgba(49, 91, 126, 0.08);
}

.service-option--selected {
  border-color: #315b7e !important;
  background: #edf5fc;
}

.service-card__price-pill--active {
  border-color: #315b7e;
  background: linear-gradient(180deg, #d7ebfb 0%, #c5def3 100%);
  box-shadow:
    0 0 0 2px rgba(49, 91, 126, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.service-card__price-size {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #63809a;
}

.service-card__price-value {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #244764;
}

.service-card__pricing-note {
  border: 1px solid #c7daea;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fbfe 0%, #edf5fb 100%);
  padding: 0.85rem 1rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: #244764;
}

/* ----- Sidebar Layout ----- */
body.client-sidebar-open {
  overflow: hidden;
}

html.customer-detail-modal-open,
body.customer-detail-modal-open {
  overflow: hidden;
}

/* Customer profiles keep identity and actions outside the scrolling body. */
.customer-profile-dialog { isolation: isolate; }
.customer-profile-header { flex-shrink: 0; }
.customer-profile-header h2,
.customer-profile-header h3 { overflow-wrap: anywhere; }
.customer-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 12px;
  color: white;
}
.customer-header-button:hover { background: rgb(255 255 255 / 15%); }
.customer-actions-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 224px;
  max-width: calc(100vw - 48px);
  padding: 4px;
  border: 1px solid #d7e3ef;
  border-radius: 12px;
  background: #fff;
  color: #315b7e;
  box-shadow: 0 8px 24px rgb(31 56 80 / 16%);
}
.customer-actions-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
.customer-actions-menu button:hover,
.customer-actions-menu button:focus-visible { background: #315b7e; color: #fff; }
.customer-actions-menu .customer-action-divider { border-top: 1px solid #d7e3ef; margin-top: 4px; }
.customer-profile-dialog button:focus-visible,
.customer-confirm-button:focus-visible,
[x-ref="confirmDialog"] button:focus-visible,
[x-ref="petDiscardDialog"] button:focus-visible,
[x-data="adminCustomers()"] [aria-pressed]:focus-visible,
[x-data="adminCustomers()"] [role="button"]:focus-visible {
  outline: 3px solid #315b7e;
  outline-offset: 3px;
}
.customer-profile-header button:focus-visible { outline-color: #fff; }
.customer-actions-menu button:focus-visible { outline-color: #315b7e; outline-offset: 1px; }
.customer-confirm-button { background-color: #315b7e; color: #fff; min-height: 44px; }
.customer-confirm-button:hover { background-color: #274b69; }
.customer-confirm-button:disabled,
[x-ref="confirmDialog"] button:disabled { cursor: not-allowed; opacity: .6; }
@media (max-width: 639px) {
  .customer-profile-header > div { gap: 12px; padding: 16px; }
  .customer-profile-header h2,
  .customer-profile-header h3 { font-size: 20px; }
}

.admin-sidebar-menu {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
}

.admin-sidebar-menu > :first-child,
.admin-sidebar-footer {
  flex: 0 0 auto;
}

.admin-sidebar-menu > nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgb(49 91 126 / 30%) transparent;
}

.admin-sidebar-menu > nav::-webkit-scrollbar {
  width: 5px;
}

.admin-sidebar-menu > nav::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar-menu > nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(49 91 126 / 30%);
}

.admin-sidebar-menu > nav::-webkit-scrollbar-thumb:hover {
  background: rgb(49 91 126 / 50%);
}

.admin-sidebar-menu nav a.bg-\[\#315b7e\]:hover {
  background-color: #315b7e;
}

.admin-sidebar-footer {
  margin-top: auto;
}

.admin-inventory-navigation > button:hover {
  background-color: rgb(255 255 255 / 40%);
}

.admin-inventory-navigation > button[aria-expanded="true"].bg-\[\#315b7e\]:hover {
  background-color: #315b7e;
}

.admin-inventory-submenu {
  margin: 6px 0 0 24px;
  padding-left: 12px;
  border-left: 1px solid rgb(49 91 126 / 22%);
}

.admin-inventory-submenu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 12px;
  color: #2f4b66;
  font-size: 14px;
  font-weight: 600;
}

.admin-inventory-submenu a:hover {
  background-color: rgb(255 255 255 / 30%);
}

.admin-inventory-submenu a[aria-current="page"] {
  background-color: rgb(255 255 255 / 65%);
  color: #1f3850;
  font-weight: 800;
}

.client-sidebar {
  overflow-y: auto;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
  z-index: 40;
}

.client-dashboard-main {
  transition: margin-left 0.24s ease;
}

.client-sidebar-toggle,
.client-sidebar-close,
.client-sidebar-backdrop {
  display: none;
}

@media (max-width: 1180px) {
  .client-sidebar {
    width: min(18rem, calc(100vw - 2.5rem));
    transform: translateX(-110%);
    box-shadow: none;
  }

  body.client-sidebar-open .client-sidebar {
    transform: translateX(0);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  }

  .client-dashboard-main {
    margin-left: 0 !important;
    width: 100%;
  }

  .client-dashboard-header {
    padding-left: 5rem;
  }

  .client-sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid #d6e3ef;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.96);
    color: #355c84;
    box-shadow: 0 14px 30px rgba(53, 92, 132, 0.18);
    transition:
      background-color 0.2s ease,
      transform 0.2s ease;
  }

  .client-sidebar-toggle:hover {
    background: #f8fbff;
    transform: translateY(-1px);
  }

  .client-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transition: background-color 0.2s ease;
  }

  .client-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.22);
  }

  .client-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.24s ease,
      visibility 0.24s ease;
  }

  body.client-sidebar-open .client-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* ----- Mobile Navigation And Sidebar ----- */
@media (max-width: 640px) {
  .brand-lockup__mark {
    width: 2.25rem;
  }

  .brand-lockup__divider {
    width: 0.1rem;
    height: 2.15rem;
  }

  .brand-lockup__text {
    gap: 0.2rem;
  }

  .brand-lockup__name {
    font-size: 0.48rem;
    letter-spacing: 0.065rem;
  }

  .brand-lockup__service {
    font-size: 0.55rem;
    letter-spacing: 0.025rem;
    padding: 0.13rem 0.22rem 0.16rem;
  }

  .client-dashboard-header {
    padding-left: 4.75rem;
    padding-right: 1rem;
  }

}

/* ----- Customer Tier Badges ----- */
.badge-returning { background-color: #d1fae5; color: #047857; }
.badge-new       { background-color: #e0f2fe; color: #0369a1; }

/* ----- Confirmation Modal Icons ----- */
.icon-bg-warn    { background-color: #fef3c7; }
.icon-bg-reactivate { background-color: #dbeafe; }
.icon-bg-success { background-color: #dcfce7; }
.icon-warn       { color: #b45309; }
.icon-reactivate { color: #2563eb; }
.icon-success    { color: #16a34a; }

/* ----- Availability Intake Confirmation ----- */
.admin-intake-dialog {
  width: calc(100% - 2rem);
  max-width: 24rem;
  max-height: calc(100dvh - 2rem);
  margin: auto;
}

.admin-intake-dialog::backdrop {
  background: rgb(15 23 42 / 50%);
}

/* ----- Admin Appointment Actions ----- */
.admin-appointment-action {
  display: inline-flex;
  min-width: 9rem;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 2rem;
  border: 1px solid transparent;
  line-height: 1.1;
}

.admin-appointment-action:disabled {
  cursor: not-allowed;
}

.admin-appointment-checkin-action {
  background-color: #315b7e;
  color: #ffffff;
}

.admin-appointment-checkin-action:hover:not(:disabled) {
  background-color: #284a67;
}

.admin-incoming-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
}

.admin-incoming-details-action {
  min-height: 2.55rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #bfd3e3;
  border-radius: 0.75rem;
  color: #315b7e;
  font-size: 0.875rem;
  font-weight: 600;
}

.admin-incoming-details-action:hover {
  background-color: #eff6ff;
}

.admin-incoming-cancel-action {
  min-height: 2.55rem;
  padding: 0.55rem 0.5rem;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
}

.admin-incoming-cancel-action:hover {
  text-decoration: underline;
}

.admin-incoming-details-action:focus-visible,
.admin-incoming-cancel-action:focus-visible {
  outline: 2px solid #315b7e;
  outline-offset: 2px;
}

.admin-confirm-checkin-button {
  background-color: #315b7e;
  color: #ffffff;
}

.admin-confirm-checkin-button:hover:not(:disabled) {
  background-color: #284a67;
}

.admin-confirm-warning-button {
  background-color: #d97706;
  color: #ffffff;
}

.admin-confirm-warning-button:hover:not(:disabled) {
  background-color: #b45309;
}

.admin-confirm-cancel-button {
  background-color: #ef4444;
  color: #ffffff;
}

.admin-confirm-cancel-button:hover:not(:disabled) {
  background-color: #dc2626;
}

.admin-action-confirm-icon-primary {
  background-color: #eaf4fb;
  color: #315b7e;
}

.admin-action-confirm-icon-warning {
  background-color: #fffbeb;
  color: #d97706;
}

.admin-action-confirm-icon-danger {
  background-color: #fef2f2;
  color: #ef4444;
}

.admin-action-confirm-footer {
  border-top: 0 !important;
  box-shadow: none;
  padding-top: 0.25rem;
  padding-bottom: 1.25rem;
}

/* ----- Client Notification Dropdown ----- */
.notif-client-dropdown {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.notif-client-dropdown .notif-list {
  max-height: 18rem;
  overflow-y: auto;
}

.notif-client-dropdown {
  width: min(24rem, calc(100vw - 1.5rem));
  max-height: min(32rem, calc(100dvh - 5rem));
}

.notif-client-dropdown .notif-list {
  min-height: 4rem;
  max-height: min(21rem, calc(100dvh - 13rem));
}

.client-notification-tab[aria-selected="true"] {
  border-color: var(--portal-primary);
  color: var(--portal-primary);
}

.client-notification-tab[aria-selected="false"] {
  border-color: transparent;
  color: var(--portal-muted);
}

.client-notification-tab[aria-selected="false"]:hover {
  color: var(--portal-primary-hover);
}

.client-notification-emphasis {
  color: var(--portal-text, #284764);
  font-weight: 700;
}

/* ----- Payment Modal And Receipt Layout ----- */
.payment-modal-card {
  max-width: min(48rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
}

.payment-modal-body {
  overflow-y: auto;
}

.receipt-modal-card {
  max-width: min(38rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
}

.receipt-modal-scroll {
  overflow-y: auto;
}

.receipt-modal-actions {
  flex: 0 0 auto;
}

.receipt-success-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  text-align: center;
  padding: 1.125rem 1.5rem 1rem;
}

.receipt-success-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #dcfce7;
  color: #15803d;
}

.receipt-success-title {
  margin-top: 0.6rem;
  color: #2f4b66;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.receipt-success-amount {
  margin-top: 0.4rem;
  color: #2f4b66;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.receipt-success-label {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.4;
}

.receipt-success-body {
  padding: 0 1.5rem 1.25rem;
}

.receipt-success-section {
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.receipt-success-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.receipt-success-section h5 {
  margin-bottom: 0.7rem;
  color: #2f4b66;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.receipt-success-details,
.receipt-success-pets {
  display: grid;
  gap: 0.55rem;
}

.receipt-success-details > div,
.receipt-success-service,
.receipt-success-subtotal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.4;
}

.receipt-success-details dd,
.receipt-success-service strong,
.receipt-success-subtotal strong {
  margin: 0;
  color: #2f4b66;
  font-weight: 700;
  text-align: right;
}

.receipt-success-details dt {
  flex-shrink: 0;
}

.receipt-success-details dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.payment-provider-id dd {
  min-width: 0;
  flex-shrink: 1;
  overflow-wrap: anywhere;
}

.payment-id-copy {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.35rem;
  padding: 0.25rem;
  color: #315d7d;
  border-radius: 0.35rem;
  cursor: pointer;
}

.payment-id-copy:hover { background: #e2ecf4; }
.payment-id-copy:focus-visible { outline: 2px solid #315d7d; outline-offset: 2px; }
.payment-id-copy svg { width: 1rem; height: 1rem; }

.receipt-success-service strong,
.receipt-success-subtotal strong {
  flex-shrink: 0;
}

.receipt-success-pet + .receipt-success-pet {
  padding-top: 0.7rem;
  border-top: 1px solid #e2e8f0;
}

.receipt-success-group-title,
.receipt-success-pet-name {
  margin-bottom: 0.35rem;
  color: #2f4b66;
  font-weight: 700;
}

.receipt-success-group-title {
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
}

.receipt-success-pet-name {
  font-size: 0.88rem;
}

.receipt-success-service + .receipt-success-service {
  margin-top: 0.35rem;
}

.receipt-success-subtotal {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
}

.receipt-success-group + .receipt-success-group,
.receipt-success-summary {
  margin-top: 1rem;
}

.receipt-success-summary {
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.receipt-success-reference {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.65rem;
  color: #64748b;
  font-size: 0.83rem;
}

.receipt-success-reference strong {
  color: #2f4b66;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.receipt-print-source {
  display: none;
}

.receipt-detail-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.receipt-count-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #ffffff;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.45rem 0.75rem;
}

.receipt-inner-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.9rem 1rem;
}

.receipt-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border-top: 1px solid #e2e8f0;
  padding: 0.75rem 0 0;
  font-size: 0.9rem;
}

.receipt-service-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.receipt-service-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
}

.receipt-service-subtotal strong {
  color: #16a34a;
  font-weight: 700;
}

.receipt-price,
.receipt-total-price {
  color: #16a34a;
  font-weight: 700;
}

.receipt-total-price {
  margin-top: 0.35rem;
  font-size: 1.45rem;
  line-height: 1;
}

.receipt-price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.receipt-total-row {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}

.receipt-payment-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.receipt-print-button {
  border-color: #cbd5e1;
  color: #475569;
}

/* ----- Payment Pet Service Lines ----- */
.payment-pet-card {
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.payment-pet-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
}

.payment-pet-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.payment-pet-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #e8f2fa;
  color: #315b7e;
}

.payment-pet-name {
  overflow: hidden;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-pet-meta {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.82rem;
}

.payment-size-select {
  display: grid;
  min-width: 9rem;
}

.payment-size-verified {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.4;
}

.payment-size-verified-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: #15803d;
}

.payment-size-select select {
  margin-top: 0.5rem;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 0.8rem;
  outline: none;
}

.payment-size-select select:focus,
.payment-price-input input:focus {
  border-color: #315b7e;
  box-shadow: 0 0 0 3px rgba(49, 91, 126, 0.16);
}

.payment-empty-lines {
  padding: 1rem;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
}

.payment-service-lines {
  border-top: 1px solid #e2e8f0;
}

.payment-service-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 10rem);
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
}

.payment-service-line + .payment-service-line {
  border-top: 1px solid #e2e8f0;
}

.payment-service-name {
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
}

.payment-service-description {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
}

.payment-service-hint {
  margin-top: 0.35rem;
  color: #315b7e;
  font-size: 0.76rem;
  font-weight: 700;
}

.payment-price-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
}

.payment-price-input span {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
}

.payment-price-input input {
  min-width: 0;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.7rem 0.75rem;
  outline: none;
}

.payment-price-input input::placeholder {
  color: #94a3b8;
}

.payment-pet-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.85rem 1rem;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
}

.payment-pet-subtotal strong {
  color: #2f4b66;
  font-weight: 700;
}

.payment-total-due {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 8px;
  border: 1px solid #c7def0;
  background: #e8f2fa;
  color: #2f4b66;
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.payment-total-due strong {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.payment-change-amount {
  font-weight: 700;
}

/* ----- Payment Modal Mobile Layout ----- */
@media (max-width: 640px) {
  .payment-modal-card,
  .receipt-modal-card {
    max-width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .payment-pet-card__header,
  .payment-service-line,
  .payment-pet-subtotal,
  .payment-total-due {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .payment-pet-card__header,
  .payment-pet-subtotal,
  .payment-total-due {
    flex-direction: column;
  }

  .payment-size-select {
    width: 100%;
  }
}

/* ----- Shared Print Defaults ----- */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html,
  body {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  body {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body > main,
  body[data-grooming-flow="single-page"] > [data-grooming-step="confirmed"] > main {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body > main > section,
  .booking-confirmed-actions {
    display: none !important;
  }

}

/* ----- Payment Action Buttons And Badges ----- */

/* ----- Pay Now Button ----- */
.btn-pay-now {
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
}
.btn-pay-now:hover {
  background-color: #dcfce7;
}

/* ----- Process Payment Button ----- */
.btn-process-payment {
  background-color: #16a34a;
  color: #ffffff;
}
.btn-process-payment:hover {
  background-color: #15803d;
}

/* ----- Release Button ----- */
.btn-release {
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
}
.btn-release:hover {
  background-color: #dcfce7;
}

/* ----- Confirm Payment Button ----- */
.btn-confirm-payment {
  background-color: #315b7e;
  color: #ffffff;
}
.btn-confirm-payment:hover {
  background-color: #284b69;
}

/* ----- Ready For Pickup Popup ----- */

.pickup-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: pickup-fade-in 0.3s ease;
}

.pickup-popup-overlay.hidden {
  display: none;
}

@keyframes pickup-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pickup-popup-card {
  background: #ffffff;
  border-radius: 2rem;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 3px solid #355c84;
  animation: pickup-card-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pickup-card-bounce {
  from { transform: scale(0.6) translateY(40px); opacity: 0; }
  to   { transform: scale(1) translateY(0);      opacity: 1; }
}

.pickup-paw-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: #dbe8f5;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  animation: pickup-pulse 1.4s ease-in-out infinite;
}

@keyframes pickup-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53, 92, 132, 0.35); }
  50%       { box-shadow: 0 0 0 18px rgba(53, 92, 132, 0); }
}

.pickup-paw-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: #355c84;
}

.pickup-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #2f4b66;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.pickup-subtitle {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.pickup-bounce-text {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #355c84;
  background: #edf5fc;
  border: 2px dashed #9bb7d2;
  border-radius: 1rem;
  padding: 0.6rem 1.2rem;
  margin-bottom: 1.5rem;
  animation: pickup-text-bounce 0.8s ease-in-out infinite alternate;
}

@keyframes pickup-text-bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}

.pickup-dismiss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: #355c84;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.pickup-dismiss-btn:hover {
  background: #2d4f73;
  transform: translateY(-1px);
}

/* ----- Pickup Action Button ----- */
.btn-pickup {
  background-color: #0e7490;
  color: #ffffff;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-pickup:hover {
  background-color: #0c6280;
}
.btn-pickup:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ----- Pickup Confirmation Modal ----- */
.pickup-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
}

.pickup-confirm-card {
  width: 100%;
  max-width: 24rem;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow: hidden;
}

.pickup-confirm-icon-wrap {
  margin: 0 auto 1rem;
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #ecfeff;
}

/* ----- Admin Grooming queue board ----- */
.grooming-booking-card {
  --grooming-accent: #315b7e;
  --grooming-tint: #eef5fb;
}
:is(.grooming-booking-card, .grooming-status)[data-tone="waiting"] { --grooming-accent: #926600; --grooming-tint: #fff8e8; }
:is(.grooming-booking-card, .grooming-status)[data-tone="progress"] { --grooming-accent: #315b7e; --grooming-tint: #eef5fb; }
:is(.grooming-booking-card, .grooming-status)[data-tone="payment"] { --grooming-accent: #15803d; --grooming-tint: #f0fdf4; }
:is(.grooming-booking-card, .grooming-status)[data-tone="pickup"] { --grooming-accent: #0e7490; --grooming-tint: #ecfeff; }
.grooming-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.grooming-tabs button { white-space: nowrap; }
.grooming-tabs button:focus-visible { outline: 2px solid #315b7e; outline-offset: -2px; }
.grooming-booking-card { min-width: 0; border: 1px solid #bfd3e3; border-radius: 20px; background: white; padding: 16px 20px; box-shadow: 0 1px 2px rgb(15 23 42 / 4%); }
.grooming-booking-main { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.grooming-queue-number { flex-shrink: 0; min-width: 40px; color: var(--grooming-accent); font-size: 26px; font-weight: 800; line-height: 32px; }
.grooming-booking-identity { flex: 1; min-width: 0; }
.grooming-booking-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.grooming-booking-identity h4 { color: #1f3850; font-size: 1.25rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.grooming-status { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 999px; background: var(--grooming-tint, #eef5fb); padding: 4px 10px; color: var(--grooming-accent, #315b7e); font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap; }
.grooming-contact { color: #64748b; font-size: .875rem; line-height: 1.5; }
.grooming-booking-meta { display: flex; flex-wrap: wrap; align-items: center; margin-top: 6px; color: #475569; font-size: .875rem; line-height: 1.5; gap: 4px 0; }
.grooming-booking-meta > span:not(:first-of-type)::before { content: '·'; display: inline-block; margin: 0 8px; color: #94a3b8; }
.grooming-note-flag { display: inline-flex; align-items: center; gap: 4px; color: #315b7e; font-size: 12px; font-weight: 600; }
.grooming-booking-actions, .grooming-stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.grooming-booking-actions { flex: 0 1 auto; min-width: 0; justify-content: flex-end; }
.grooming-incoming-pets { min-width: 0; margin-top: 10px; }
.grooming-incoming-card .grooming-booking-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(210px, .8fr); align-items: center; gap: 20px; }
.grooming-incoming-badges { display: flex; flex-wrap: wrap; gap: 6px; max-width: 160px; }
.grooming-incoming-badges .grooming-status { max-width: 100%; white-space: normal; }
.grooming-incoming-timing { display: grid; gap: 10px; min-width: 0; }
.grooming-incoming-timing > div { display: flex; align-items: flex-start; gap: 8px; }
.grooming-incoming-timing svg { flex: none; color: var(--grooming-accent); }
.grooming-incoming-timing dt { color: #64748b; font-size: .75rem; }
.grooming-incoming-timing dd { color: #2f4b66; font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.grooming-service { color: #315b7e; font-size: .875rem; line-height: 1.5; }
.grooming-appointment-time { color: #1f3850; font-size: 14px; font-weight: 600; }
.grooming-empty { border: 1px dashed #bfd3e3; border-radius: 20px; background: white; padding: 32px 16px; color: #2f4b66; font-weight: 600; text-align: center; }
.admin-queued-owner-action { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 11px; padding: 8px 14px; font-size: .875rem; font-weight: 600; line-height: 20px; white-space: nowrap; }
.admin-queued-owner-action:disabled { cursor: not-allowed; opacity: .5; }
.admin-queued-details-action { border-color: #bfd3e3; background: white; color: #315b7e; }
.admin-queued-details-action:hover { background: #eef5fb; }
.admin-queued-pets-panel { border-top: 1px solid #e2e8f0; margin-top: 12px; padding-top: 12px; }
.admin-queued-pet-list { display: grid; gap: 8px; }
.admin-queued-pet-card { overflow: visible; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; }
.admin-queued-pet-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 12px; }
.admin-queued-pet-queue { color: var(--grooming-accent); font-size: 16px; font-weight: 700; }
.admin-queued-pet-information { min-width: 0; }
.admin-queued-pet-information h5 { color: #1e293b; font-size: 1rem; font-weight: 700; line-height: 22px; overflow-wrap: anywhere; }
.admin-queued-pet-basic, .admin-queued-pet-services, .admin-queued-pet-timing { font-size: .875rem; line-height: 1.5; }
.admin-queued-pet-basic { color: #64748b; }
.admin-queued-pet-services { color: #315b7e; font-weight: 600; }
.admin-queued-pet-timing { color: #475569; font-weight: 500; }
.admin-queued-pet-actions { align-self: center; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-queued-pet-start, .admin-queued-pet-print, .admin-in-progress-pet-finish { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 6px; border: 1px solid #315b7e; border-radius: 11px; background: #315b7e; padding: 8px 14px; color: white; font-size: .875rem; font-weight: 600; line-height: 20px; white-space: nowrap; }
.admin-queued-pet-start:hover:not(:disabled), .admin-in-progress-pet-finish:hover:not(:disabled) { background: #284a67; }
.admin-queued-pet-start:disabled, .admin-in-progress-pet-finish:disabled { cursor: not-allowed; opacity: .5; }
.admin-queued-pet-print { border-color: #cbd5e1; background: white; color: #334155; }
.admin-queued-pet-print:hover { background: #f1f5f9; }
.grooming-pet-flags { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.grooming-details-dialog { display: flex; flex-direction: column; width: 100%; max-width: 768px; max-height: calc(100dvh - 32px); overflow: hidden; }
.grooming-details-dialog > :first-child { flex-shrink: 0; }
.grooming-details-reference { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; color: #fff; font-size: .875rem; }
.grooming-details-close { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; }
.grooming-details-body { font-size: .875rem; line-height: 1.5; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.grooming-visit-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; font-size: .875rem; line-height: 1.5; }
.grooming-visit-summary dt { color: #64748b; }
.grooming-visit-summary dd { color: #1f3850; font-weight: 600; overflow-wrap: anywhere; }
.grooming-details-pet { margin-bottom: 12px; border: 1px solid #d9e6f1; border-radius: 14px; background: #f8fafc; }
.grooming-details-pet summary { padding: 12px 16px; cursor: pointer; }
.grooming-details-pet summary > :first-child { font-size: 1rem; }
.grooming-details-pet summary > .grooming-contact { margin-left: 8px; }
.grooming-details-pet-body { border-top: 1px solid #e2e8f0; padding: 12px 16px; overflow-wrap: anywhere; }
:is(.grooming-booking-card, .grooming-details-dialog) :is(button, summary, input, textarea):focus-visible { outline: 2px solid #315b7e; outline-offset: 3px; }
.grooming-details-close:focus-visible { outline-color: white; }
.grooming-booking-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.grooming-booking-top > .grooming-booking-main { flex: 1 1 360px; }
.grooming-booking-top.is-expandable { cursor: pointer; }
.grooming-overflow { position: relative; flex-shrink: 0; }
.grooming-overflow-trigger, .grooming-disclosure-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; min-height: 40px; border-radius: 10px; color: #315b7e; }
.grooming-overflow-trigger:hover, .grooming-overflow-trigger[aria-expanded="true"], .grooming-disclosure-button:hover { background: #eef5fb; }
.grooming-disclosure-button { flex-shrink: 0; }
.grooming-disclosure-button svg { width: 20px; height: 20px; transition: transform .18s ease; }
.grooming-disclosure-button svg.is-expanded { transform: rotate(180deg); }
.grooming-overflow-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 10rem; max-width: calc(100vw - 32px); border: 1px solid #d9e6f1; border-radius: 12px; background: white; padding: 6px; box-shadow: 0 8px 24px rgb(15 23 42 / 12%); cursor: default; }
.grooming-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; border-radius: 6px; padding: 8px 12px; color: #315b7e; text-align: left; font-size: .875rem; font-weight: 500; }
.grooming-menu-item:hover, .grooming-menu-item:focus-visible { background: #eef5fb; }
.grooming-menu-danger { color: #b91c1c; }
.grooming-menu-danger.is-separated { margin-top: 4px; border-top: 1px solid #e2e8f0; border-radius: 0 0 6px 6px; padding-top: 12px; }
.grooming-menu-danger:hover, .grooming-menu-danger:focus-visible { background: #fef2f2; }
.grooming-pet-disclosure { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .18s ease, visibility 0s .18s; }
.grooming-pet-disclosure.is-expanded { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.grooming-pet-disclosure-inner { min-height: 0; overflow: hidden; }
.grooming-pet-disclosure.is-expanded > .grooming-pet-disclosure-inner { overflow: visible; }
.grooming-pet-service-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.grooming-selection-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; padding: 0; list-style: none; }
.grooming-selection-chip { display: inline-flex; align-items: center; border: 1px solid #9bb7d2; border-radius: 999px; background: #edf5fc; padding: 5px 10px; color: #2f4b66; font-size: .875rem; font-weight: 600; line-height: 1.4; }
.grooming-selection-chip--compact { padding: 2px 8px; font-size: .8125rem; }
.grooming-details-section + .grooming-details-section { margin-top: 16px; }
.grooming-details-section > h5, .grooming-details-section-label { margin-bottom: 8px; color: #64748b; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) {
  .grooming-pet-disclosure, .grooming-disclosure-button svg { transition: none; }
}
@media (max-width: 767px) {
  .grooming-tabs { display: flex; overflow-x: auto; }
  .grooming-tabs button { flex: 1 0 auto; min-width: 125px; }
  .grooming-booking-card { padding: 16px; }
  .grooming-booking-main { gap: 12px; }
  .grooming-incoming-card .grooming-booking-main { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .grooming-incoming-badges { max-width: none; }
  .grooming-incoming-timing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grooming-appointment-time { max-width: 128px; }
  .grooming-booking-actions { justify-content: flex-start; }
  .admin-queued-pet-main { grid-template-columns: auto minmax(0, 1fr); }
  .admin-queued-pet-actions { grid-column: 1 / -1; }
  .grooming-visit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grooming-details-body { padding: 16px; }
  .grooming-details-pet summary > .grooming-contact { display: block; margin-left: 0; }
}
@media (max-width: 374px) {
  .grooming-visit-summary { grid-template-columns: minmax(0, 1fr); }
}

/* ----- Missing Tailwind Utilities ----- */
.pl-9 { padding-left: 2.25rem; }

/* ----- Inventory Navigation Buttons ----- */
.inv-btn-stock-out {
  background-color: #d97706;
}
.inv-btn-stock-out:hover {
  background-color: #b45309;
}

/* ----- Inventory Undo-Create Button ----- */
.inv-undo-btn:hover {
  background-color: #fffbeb;
  color: #d97706;
}

/* ----- Inventory Filters ----- */
.inventory-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.inventory-search-field,
.inventory-select-field {
  position: relative;
  display: block;
  min-width: 0;
}

.inventory-search-icon {
  position: absolute;
  top: 50%;
  left: 1.125rem;
  z-index: 1;
  display: inline-flex;
  color: #94a3b8;
  pointer-events: none;
  transform: translateY(-50%);
}

.inventory-search-control,
.inventory-select-control {
  width: 100%;
  min-height: 3.125rem;
  border: 1px solid #d7e3ef;
  border-radius: 1.5rem;
  background: #ffffff;
  color: #1f3850;
  font-size: 0.875rem;
  line-height: 1.25rem;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inventory-search-control {
  padding: 0.75rem 1rem 0.75rem 3.25rem;
}

.inventory-search-control::placeholder {
  color: #94a3b8;
}

.inventory-select-control {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.75rem 2.75rem 0.75rem 1.25rem;
  cursor: pointer;
}

.inventory-select-chevron {
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 1rem;
  height: 1rem;
  color: #315b7e;
  pointer-events: none;
  transform: translateY(-50%);
}

.inventory-search-control:focus,
.inventory-select-control:focus {
  border-color: #7fa2c9;
  box-shadow: 0 0 0 3px rgba(127, 162, 201, 0.18);
}

@media (min-width: 768px) {
  .inventory-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1280px) {
  .inventory-filter-grid {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 15rem) minmax(12rem, 15rem);
  }

  .inventory-search-field {
    grid-column: auto;
  }
}

/* ----- Shared Portal Widget Theme ----- */
/* Reuses css/themes/portal.css tokens; opt in with .portal-theme. */
.portal-theme .pickup-popup-card { background: var(--portal-surface); border-color: var(--portal-border); }
.portal-theme .pickup-paw-ring { background: var(--portal-active); border-color: var(--portal-border); box-shadow: none; }
.portal-theme :is(.pickup-paw-icon, .pickup-title, .pickup-bounce-text) { color: var(--portal-primary); }
.portal-theme .pickup-subtitle { color: var(--portal-muted); }
.portal-theme .pickup-dismiss-btn { background: var(--portal-primary); box-shadow: var(--portal-shadow); }

/* Hide the browser's built-in password eye when a Phosphor toggle is present. */
.custom-password-input::-ms-reveal,
.custom-password-input::-ms-clear {
  display: none;
}

/* Admin Settings - Pricing */
.grooming-pricing, .grooming-pricing-overlay {
  --pricing-border: #dce7f4;
  --pricing-control-border: #c9d9e8;
  --pricing-ink: #2f4b66;
  --pricing-muted: #647e9f;
  --pricing-accent: #315b7e;
  --pricing-hover: #edf5fc;
  --pricing-header: #f7faff;
}
.grooming-pricing { min-width: 0; border: 1px solid var(--pricing-border); border-radius: 24px; background: white; padding: 20px; color: var(--pricing-ink); }
.grooming-pricing-heading { font-size: 18px; font-weight: 700; line-height: 26px; }
.grooming-pricing-subtext { margin-top: 4px; color: var(--pricing-muted); font-size: 12px; line-height: 18px; }
.grooming-pricing-notice { margin-top: 20px; border: 1px solid var(--pricing-control-border); border-radius: 10px; background: var(--pricing-hover); padding: 12px 14px; font-size: 12px; line-height: 18px; }
.grooming-pricing-section-heading { font-size: 14px; font-weight: 600; line-height: 20px; }
.grooming-pricing-table-wrap { margin-top: 10px; max-width: 100%; overflow-x: auto; border: 1px solid var(--pricing-border); border-radius: 12px; }
.grooming-pricing-table { width: 100%; min-width: 740px; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: 14px; line-height: 20px; }
.grooming-pricing-table--ala { min-width: 640px; }
.grooming-pricing-table th { background: var(--pricing-header); padding: 12px 16px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.grooming-pricing-table td { border-top: 1px solid var(--pricing-border); padding: 12px 16px; font-variant-numeric: tabular-nums; }
.grooming-pricing-table :is(th, td):first-child { width: 26%; white-space: nowrap; }
.grooming-pricing-table td:first-child { font-weight: 600; }
.grooming-pricing-table :is(th, td):last-child { width: 88px; }
.grooming-pricing-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; border: 1px solid var(--pricing-control-border); border-radius: 8px; background: white; padding: 7px 14px; color: var(--pricing-accent); font-size: 14px; line-height: 20px; white-space: nowrap; transition: background-color .15s; }
.grooming-pricing-button:hover { background: var(--pricing-hover); }
.grooming-pricing-button:active { background: var(--pricing-header); }
.grooming-pricing-button:disabled, .grooming-pricing-close:disabled { cursor: not-allowed; opacity: .5; }
.grooming-pricing-button--action { width: 132px; flex-shrink: 0; }
.grooming-pricing-button--primary { border-color: var(--pricing-accent); background: var(--pricing-accent); color: white; font-weight: 600; }
.grooming-pricing-button--primary:hover { background: #274a67; }
.grooming-pricing-button--primary:active { background: #1f3850; }
.grooming-pricing-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; overflow-y: auto; overscroll-behavior: contain; background: rgb(15 23 42 / 50%); padding: 16px; color: var(--pricing-ink); }
.grooming-pricing-dialog { width: 100%; max-width: 672px; overflow: hidden; border-radius: 24px; background: white; box-shadow: 0 24px 60px rgb(15 23 42 / 20%); }
.grooming-pricing-dialog form { display: flex; max-height: calc(100dvh - 32px); flex-direction: column; }
.grooming-pricing-modal-header { display: flex; flex-shrink: 0; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--pricing-border); padding: 24px; }
.grooming-pricing-modal-header h2 { font-size: 20px; font-weight: 700; line-height: 28px; overflow-wrap: anywhere; }
.grooming-pricing-modal-header p { margin-top: 6px; color: var(--pricing-muted); font-size: 14px; line-height: 20px; }
.grooming-pricing-close { display: inline-flex; width: 36px; height: 36px; flex-shrink: 0; align-items: center; justify-content: center; margin: -4px -8px 0 0; border-radius: 8px; color: var(--pricing-muted); }
.grooming-pricing-close:hover { background: var(--pricing-hover); color: var(--pricing-accent); }
.grooming-pricing-modal-body { position: relative; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 24px; }
.grooming-pricing-matrix-head { display: none; }
.grooming-pricing-matrix-row { display: grid; min-width: 0; gap: 14px; border-bottom: 1px solid var(--pricing-border); padding: 16px 0; font-size: 14px; line-height: 20px; }
.grooming-pricing-matrix-row:last-child { border-bottom: 0; }
.grooming-pricing-size { font-weight: 600; }
.grooming-pricing-field { min-width: 0; }
.grooming-pricing-field-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; }
.grooming-pricing-input-wrap { position: relative; }
.grooming-pricing-currency { position: absolute; top: 9px; left: 12px; color: var(--pricing-muted); pointer-events: none; }
.grooming-pricing-control { width: 100%; min-width: 0; height: 38px; border: 1px solid var(--pricing-control-border); border-radius: 8px; background: white; padding: 8px 10px; color: var(--pricing-ink); font-size: 14px; line-height: 20px; }
input.grooming-pricing-control { padding-left: 28px; }
.grooming-pricing-control[aria-invalid="true"] { border-color: #dc2626; }
.grooming-pricing-field-error { margin-top: 6px; color: #dc2626; font-size: 12px; line-height: 18px; }
.grooming-pricing-preview { color: var(--pricing-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.grooming-pricing-modal-footer { display: flex; flex-shrink: 0; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--pricing-border); padding: 16px 24px; }
:is(.grooming-pricing, .grooming-pricing-overlay) :is(button, input, select, [tabindex]):focus-visible { outline: 2px solid var(--pricing-accent); outline-offset: 3px; }
@media (min-width: 640px) {
  .grooming-pricing { padding: 24px; }
  .grooming-pricing-matrix-head, .grooming-pricing-matrix-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) minmax(0, 1.05fr); gap: 16px; }
  .grooming-pricing-matrix--package :is(.grooming-pricing-matrix-head, .grooming-pricing-matrix-row) { grid-template-columns: minmax(0, .95fr) minmax(0, 1.55fr) minmax(0, 1.3fr) minmax(0, 1.05fr); }
  .grooming-pricing-matrix-head { display: grid; border-bottom: 1px solid var(--pricing-border); padding: 8px 0; font-size: 12px; font-weight: 600; line-height: 20px; }
  .grooming-pricing-matrix-row { align-items: start; padding: 10px 0; }
  .grooming-pricing-size, .grooming-pricing-preview { padding-top: 9px; }
  .grooming-pricing-field-label:not(.grooming-pricing-field-label--visible) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
@media (max-width: 639px) {
  .grooming-pricing-modal-header, .grooming-pricing-modal-footer { padding: 16px; }
  .grooming-pricing-modal-body { padding: 0 16px; }
  .grooming-pricing-button, .grooming-pricing-close, .grooming-pricing-control { min-height: 44px; }
  .grooming-pricing-currency { top: 12px; }
}
