/* Shared Food Delivery typography contract for customer and admin shells. */
:root {
  --boonia-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --boonia-font-weight-regular: 400;
  --boonia-font-weight-medium: 500;
  --boonia-font-weight-semibold: 600;
  --boonia-font-weight-bold: 700;
}

body[data-boonia-shell="customer"],
body[data-boonia-shell="admin"],
body[data-boonia-shell="shop-admin"] {
  font-family: var(--boonia-font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body[data-boonia-shell="customer"] button,
body[data-boonia-shell="customer"] input,
body[data-boonia-shell="customer"] select,
body[data-boonia-shell="customer"] textarea,
body[data-boonia-shell="admin"] button,
body[data-boonia-shell="admin"] input,
body[data-boonia-shell="admin"] select,
body[data-boonia-shell="admin"] textarea,
body[data-boonia-shell="shop-admin"] button,
body[data-boonia-shell="shop-admin"] input,
body[data-boonia-shell="shop-admin"] select,
body[data-boonia-shell="shop-admin"] textarea {
  font-family: inherit;
}

body[data-boonia-shell="customer"] .font-black,
body[data-boonia-shell="customer"] .font-extrabold,
body[data-boonia-shell="admin"] .font-black,
body[data-boonia-shell="admin"] .font-extrabold,
body[data-boonia-shell="shop-admin"] .font-black,
body[data-boonia-shell="shop-admin"] .font-extrabold {
  font-weight: var(--boonia-font-weight-bold);
}

body[data-boonia-shell="customer"] .font-bold,
body[data-boonia-shell="admin"] .font-bold,
body[data-boonia-shell="shop-admin"] .font-bold {
  font-weight: var(--boonia-font-weight-semibold);
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* Keep the Food Delivery shell on one alignment boundary without affecting Shop. */
.boonia-admin-shell {
  --boonia-admin-sidebar-width: 17.5rem;
  --boonia-admin-sidebar-collapsed-width: 5rem;
  --boonia-admin-sidebar-inline-size: var(--boonia-admin-sidebar-width);
  --boonia-admin-content-max: 80rem;
  --boonia-admin-content-gutter: 1rem;
  --boonia-admin-content-gutter-sm: 1.5rem;
  --boonia-admin-content-gutter-lg: 2rem;
}

.boonia-admin-shell__layout {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr);
}

.boonia-admin-shell__content-column {
  min-width: 0;
}

.boonia-admin-shell__header-inner,
.boonia-admin-shell__content {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--boonia-admin-content-max);
  margin-inline: auto;
  padding-inline: var(--boonia-admin-content-gutter);
}

.boonia-admin-shell__header-inner {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.75rem;
}

.boonia-admin-shell__breadcrumb-slot {
  min-width: 0;
  flex: 1 1 auto;
  align-self: center;
}

.boonia-admin-shell__breadcrumb-slot [data-admin-shell-breadcrumbs] {
  min-width: 0;
  margin-block: 0;
}

.boonia-admin-sidebar__brand-logo {
  display: grid;
  width: 8.5rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
}

.boonia-admin-sidebar__brand-logo-asset {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.boonia-admin-sidebar__brand-logo--compact {
  display: none;
}

.boonia-admin-sidebar__brand-logo:focus-within {
  outline: 2px solid var(--boonia-admin-focus, #5dd3c5);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.boonia-admin-sidebar__collapse {
  display: none;
  width: var(--boonia-admin-control-height);
  min-width: var(--boonia-admin-control-height);
  min-height: var(--boonia-admin-control-height);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
}

.boonia-admin-sidebar__collapse:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.boonia-admin-sidebar__collapse:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--boonia-admin-focus) 60%, white);
  outline-offset: 2px;
}

.boonia-admin-sidebar__collapse [data-sidebar-collapse-icon] {
  width: 1rem;
  height: 1rem;
}

.boonia-admin-sidebar__collapse [data-sidebar-collapse-icon="collapsed"] {
  display: none;
}

.boonia-admin-shell__content {
  padding-block: 1.5rem;
}

.boonia-admin-sidebar__nav {
  min-width: 0;
}

.boonia-admin-sidebar {
  width: min(84vw, 20rem);
}

.boonia-admin-sidebar > div {
  min-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-overflow-scrolling: touch;
}

.boonia-admin-sidebar__group {
  display: grid;
  gap: 0.25rem;
}

.boonia-admin-sidebar__group + .boonia-admin-sidebar__group {
  margin-top: 1rem;
}

.boonia-admin-sidebar__group-label {
  margin: 0 0 0.2rem;
  padding-inline: 0.75rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: var(--boonia-admin-weight-bold);
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.boonia-admin-sidebar__link {
  min-width: 0;
}

.boonia-admin-profile-menu {
  z-index: 40;
}

.boonia-admin-profile-trigger {
  min-height: 2.75rem;
}

.boonia-admin-profile-trigger[aria-expanded="true"] {
  border-color: rgba(33, 134, 122, 0.3);
  background: #fff;
}

.boonia-admin-profile-trigger[aria-expanded="true"] [data-lucide="chevron-down"] {
  transform: rotate(180deg);
}

.boonia-admin-profile-panel {
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
}

.boonia-admin-profile-panel [role="menuitem"] {
  min-height: 2.75rem;
}

@media (min-width: 640px) {
  .boonia-admin-shell__header-inner,
  .boonia-admin-shell__content {
    padding-inline: var(--boonia-admin-content-gutter-sm);
  }
}

@media (min-width: 768px) {
  .boonia-admin-shell[data-sidebar-state="collapsed"],
  html[data-admin-sidebar-state="collapsed"] .boonia-admin-shell {
    --boonia-admin-sidebar-inline-size: var(--boonia-admin-sidebar-collapsed-width);
  }

  .boonia-admin-shell[data-sidebar-state="expanded"],
  html[data-admin-sidebar-state="expanded"] .boonia-admin-shell {
    --boonia-admin-sidebar-inline-size: var(--boonia-admin-sidebar-width);
  }

  .boonia-admin-shell__layout {
    grid-template-columns: var(--boonia-admin-sidebar-inline-size) minmax(0, 1fr);
  }

  .boonia-admin-sidebar {
    display: block;
    position: static;
    width: var(--boonia-admin-sidebar-inline-size);
    z-index: auto;
  }

  .boonia-admin-shell__header-inner,
  .boonia-admin-shell__content {
    padding-inline: var(--boonia-admin-content-gutter-lg);
  }

  .boonia-admin-shell__menu-slot {
    display: none;
  }

  .boonia-admin-sidebar__collapse {
    display: inline-flex;
  }
}

@media (min-width: 1200px) {
  .boonia-admin-shell {
    --boonia-admin-sidebar-inline-size: var(--boonia-admin-sidebar-width);
  }

  .boonia-admin-sidebar {
    width: var(--boonia-admin-sidebar-inline-size);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .boonia-admin-shell {
    --boonia-admin-sidebar-inline-size: var(--boonia-admin-sidebar-collapsed-width);
  }

  .boonia-admin-shell__layout,
  .boonia-admin-shell[data-sidebar-state="tablet-expanded"] .boonia-admin-shell__layout {
    grid-template-columns: var(--boonia-admin-sidebar-collapsed-width) minmax(0, 1fr);
  }

  html[data-admin-sidebar-state] .boonia-admin-shell,
  .boonia-admin-shell[data-sidebar-state="tablet-expanded"] {
    --boonia-admin-sidebar-inline-size: var(--boonia-admin-sidebar-collapsed-width);
  }

  .boonia-admin-shell[data-sidebar-state="tablet-expanded"] .boonia-admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    display: block;
    width: min(var(--boonia-admin-sidebar-width), 84vw);
    box-shadow: 1rem 0 2.5rem rgba(7, 29, 27, 0.2);
  }

  .boonia-admin-shell[data-sidebar-state="tablet-expanded"] .boonia-admin-shell__content-column {
    min-width: 0;
  }

  .boonia-admin-shell[data-sidebar-state="tablet-expanded"] .boonia-admin-sidebar__brand [data-admin-sidebar-close] {
    display: inline-flex;
  }

  .boonia-admin-shell[data-sidebar-state="tablet-expanded"] #adminSidebarOverlay {
    display: block;
    background: rgba(7, 29, 27, 0.52);
  }
}

@media (max-width: 1199px) {
  .boonia-admin-shell__header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
  }

  .boonia-admin-shell__menu-slot {
    grid-column: 1;
    grid-row: 1;
  }

  .boonia-admin-shell__breadcrumb-slot {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

}

@media (max-width: 767px) {
  .boonia-admin-shell__menu-slot {
    display: flex;
  }
}

@media (min-width: 768px) {
  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__brand {
    padding-inline: 0.75rem;
  }

  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__brand-row {
    flex-direction: column;
  }

  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__brand-logo--full {
    display: none;
  }

  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__brand-logo--compact {
    display: grid;
    width: 2.75rem;
    height: 2.25rem;
  }

  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__brand > p,
  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__brand > details,
  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__brand > a:not(:first-child) {
    display: none;
  }

  .boonia-admin-shell .boonia-admin-sidebar__brand [data-admin-sidebar-close] {
    display: none;
  }

  .boonia-admin-shell[data-sidebar-state="tablet-expanded"] .boonia-admin-sidebar__brand [data-admin-sidebar-close] {
    display: inline-flex;
  }

  .boonia-admin-shell[data-sidebar-state="tablet-expanded"] .boonia-admin-sidebar__brand [data-admin-sidebar-collapse] {
    display: none;
  }

  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__nav {
    padding-inline: 0.75rem;
  }

  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__group-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__link {
    position: relative;
    grid-template-columns: 1fr;
    justify-items: center;
    padding-inline: 0;
  }

  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__link > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__link:hover::after,
  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__link:focus-visible::after {
    position: absolute;
    top: 50%;
    left: calc(100% + 0.5rem);
    z-index: 60;
    display: block;
    transform: translateY(-50%);
    border-radius: 0.5rem;
    background: var(--boonia-admin-text, #0d1f1e);
    color: #ffffff;
    content: attr(data-sidebar-label);
    padding: 0.45rem 0.6rem;
    font-size: 0.75rem;
    font-weight: var(--boonia-admin-weight-semibold);
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
  }

  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__collapse [data-sidebar-collapse-icon="expanded"],
  .boonia-admin-shell[data-sidebar-state="expanded"] .boonia-admin-sidebar__collapse [data-sidebar-collapse-icon="collapsed"] {
    display: none;
  }

  .boonia-admin-shell[data-sidebar-state="collapsed"] .boonia-admin-sidebar__collapse [data-sidebar-collapse-icon="collapsed"],
  .boonia-admin-shell[data-sidebar-state="expanded"] .boonia-admin-sidebar__collapse [data-sidebar-collapse-icon="expanded"],
  .boonia-admin-shell[data-sidebar-state="tablet-expanded"] .boonia-admin-sidebar__collapse [data-sidebar-collapse-icon="expanded"] {
    display: block;
  }

  .boonia-admin-shell[data-sidebar-state="tablet-expanded"] .boonia-admin-sidebar__collapse [data-sidebar-collapse-icon="collapsed"] {
    display: none;
  }
}

@media (max-width: 639px) {
  .boonia-admin-profile-panel {
    right: -0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boonia-admin-profile-trigger,
  .boonia-admin-profile-trigger [data-lucide="chevron-down"] {
    transition: none;
  }
}

/* Owner onboarding uses the shared admin surfaces without the old promotional hero. */
.fd-eyebrow {
  margin: 0;
  color: var(--boonia-admin-focus, #1d6f60);
  font-size: 0.72rem;
  font-weight: var(--boonia-admin-weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fd-restaurant-details-page,
.fd-restaurant-setup-page {
  display: grid;
  min-width: 0;
  gap: 1.25rem;
  margin-inline: auto;
  max-width: 76rem;
}

.fd-restaurant-details-page__intro,
.fd-restaurant-setup-page__back,
.fd-restaurant-setup-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fd-restaurant-details-page__intro h2 {
  margin-top: 0.25rem;
  color: var(--boonia-admin-text, #0d1f1e);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: var(--boonia-admin-weight-bold);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.fd-restaurant-details-page__intro > div:first-child > p:last-child {
  margin-top: 0.4rem;
  color: var(--boonia-admin-text-muted, #526763);
  font-size: 0.95rem;
  font-weight: 600;
}

.fd-restaurant-details-page__progress {
  display: flex;
  flex-wrap: wrap;
  min-width: 15rem;
  align-items: center;
  gap: 0.6rem;
  color: var(--boonia-admin-text-muted, #526763);
  font-size: 0.75rem;
  font-weight: 700;
}

.fd-restaurant-details-page__card,
.fd-restaurant-setup-card {
  min-width: 0;
  border: 1px solid rgba(13, 31, 30, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 38px rgba(16, 32, 31, 0.06);
}

.fd-restaurant-details-page__card {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.fd-restaurant-details-form input:not([type="file"]),
.fd-restaurant-details-form textarea,
.fd-restaurant-details-form select {
  color: var(--boonia-admin-text, #0d1f1e);
}

.fd-restaurant-details-form input::placeholder,
.fd-restaurant-details-form textarea::placeholder {
  color: var(--boonia-admin-text-muted, #526763);
  opacity: 0.72;
}

.fd-restaurant-details-page__notice {
  margin-bottom: 1.25rem;
}

.fd-restaurant-details-form {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
}

.fd-restaurant-details-form__summary {
  display: grid;
  gap: 0.25rem;
  border: 1px solid #f0c6c0;
  border-radius: 0.9rem;
  background: #fff5f3;
  padding: 0.8rem 1rem;
  color: #a33a32;
  font-size: 0.82rem;
  font-weight: 600;
}

.fd-restaurant-details-section {
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(13, 31, 30, 0.1);
  border-radius: 1rem;
  padding: 0.85rem;
}

.fd-restaurant-details-section legend {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.3rem;
  color: var(--boonia-admin-text, #0d1f1e);
  font-size: 1rem;
  font-weight: var(--boonia-admin-weight-bold);
}

.fd-restaurant-details-section__number {
  display: inline-flex;
  min-width: 2rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf7f6;
  color: #1d6f60;
}

.fd-restaurant-details-section__description {
  margin: 0.35rem 0 1rem 2.65rem;
  color: var(--boonia-admin-text-muted, #526763);
  font-size: 0.78rem;
  font-weight: 600;
}

.fd-restaurant-details-section__requirement-note {
  margin: -0.35rem 0 0.8rem 2.65rem;
  color: var(--boonia-admin-text-muted, #526763);
  font-size: 0.75rem;
  font-weight: 600;
}

.fd-restaurant-details-form__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.fd-restaurant-details-form__wide {
  min-width: 0;
  grid-column: 1 / -1;
}

.fd-restaurant-details-form__field {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
}

.fd-restaurant-details-form__field > label {
  color: var(--boonia-admin-text, #0d1f1e);
  font-size: 0.82rem;
  font-weight: 700;
}

.fd-restaurant-details-form__coordinate-note {
  margin-top: -0.25rem;
  color: var(--boonia-admin-text-muted, #526763);
  font-size: 0.75rem;
  font-weight: 600;
}

.fd-restaurant-details__cuisines-control {
  width: 100%;
  max-width: 38rem;
}

.fd-restaurant-details-form__location-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.fd-restaurant-details-form__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid rgba(13, 31, 30, 0.08);
  padding-top: 1rem;
}

.fd-restaurant-setup-page__back {
  justify-content: flex-start;
}

.fd-restaurant-setup-identity {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(13, 31, 30, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 38px rgba(16, 32, 31, 0.06);
}

.fd-restaurant-setup-identity__icon,
.fd-restaurant-setup-section__icon,
.fd-restaurant-history__marker {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf7f6;
  color: #1d6f60;
}

.fd-restaurant-setup-identity__icon {
  width: 3.5rem;
  height: 3.5rem;
}

.fd-restaurant-setup-identity__copy {
  min-width: 0;
  flex: 1;
}

.fd-restaurant-setup-identity__title-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.fd-restaurant-setup-identity h2 {
  min-width: 0;
  color: var(--boonia-admin-text, #0d1f1e);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: var(--boonia-admin-weight-bold);
  overflow-wrap: anywhere;
}

.fd-restaurant-setup-identity__copy > p {
  margin-top: 0.3rem;
  color: var(--boonia-admin-text-muted, #526763);
  font-size: 0.8rem;
  font-weight: 600;
}

.fd-restaurant-setup-identity__action,
.fd-restaurant-setup-page__back-link,
.fd-restaurant-setup-section__action {
  min-height: var(--boonia-admin-control-height, 2.75rem);
}

.fd-restaurant-setup-identity__action,
.fd-restaurant-setup-section__action {
  white-space: nowrap;
}

.fd-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.68rem;
  font-weight: var(--boonia-admin-weight-semibold);
  white-space: nowrap;
}

.fd-status-badge--neutral { background: #eef1f3; color: #3c4d54; }
.fd-status-badge--success { background: #e2f5ed; color: #176b4d; }
.fd-status-badge--warning { background: #fff2d7; color: #8a5700; }

.fd-restaurant-setup-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  align-items: start;
  gap: 1.25rem;
}

.fd-restaurant-setup-layout > .fd-restaurant-setup-progress,
.fd-restaurant-setup-layout > .fd-restaurant-readiness,
.fd-restaurant-setup-layout > .fd-restaurant-history-card,
.fd-restaurant-setup-layout > .fd-restaurant-danger-zone {
  min-width: 0;
}

.fd-restaurant-setup-layout > .fd-restaurant-setup-progress,
.fd-restaurant-setup-layout > .fd-restaurant-history-card {
  grid-column: 1;
}

.fd-restaurant-setup-layout > .fd-restaurant-readiness,
.fd-restaurant-setup-layout > .fd-restaurant-danger-zone {
  grid-column: 2;
}

.fd-restaurant-setup-layout > .fd-restaurant-setup-progress,
.fd-restaurant-setup-layout > .fd-restaurant-readiness {
  grid-row: 1;
}

.fd-restaurant-setup-layout > .fd-restaurant-history-card,
.fd-restaurant-setup-layout > .fd-restaurant-danger-zone {
  grid-row: 2;
}

.fd-restaurant-setup-card {
  padding: 1.25rem;
}

.fd-restaurant-setup-card__header {
  display: flex;
  min-width: 0;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.fd-restaurant-setup-card__header h2 {
  margin-top: 0.25rem;
  color: var(--boonia-admin-text, #0d1f1e);
  font-size: 1.05rem;
  font-weight: var(--boonia-admin-weight-bold);
}

.fd-restaurant-setup-card__header > strong {
  flex: 0 0 auto;
  color: var(--boonia-admin-text-muted, #526763);
  font-size: 0.78rem;
  font-weight: 700;
}

.fd-restaurant-setup-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.25rem 0;
}

.fd-restaurant-setup-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  color: var(--boonia-admin-text-muted, #526763);
  text-align: center;
  text-decoration: none;
}

.fd-restaurant-setup-step:not(:last-child)::after {
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #d9e0df;
  content: "";
  z-index: 0;
}

.fd-restaurant-setup-step__number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 2px solid #d3dcdd;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: var(--boonia-admin-weight-semibold);
}

.fd-restaurant-setup-step.is-complete .fd-restaurant-setup-step__number,
.fd-restaurant-setup-step.is-current .fd-restaurant-setup-step__number {
  border-color: #1d6f60;
  color: #1d6f60;
}

.fd-restaurant-setup-step__copy { display: grid; gap: 0.15rem; }
.fd-restaurant-setup-step__copy strong { font-size: 0.72rem; font-weight: var(--boonia-admin-weight-semibold); }
.fd-restaurant-setup-step__copy small { font-size: 0.68rem; font-weight: 600; }

.fd-restaurant-setup-sections { display: grid; gap: 0.65rem; }

.fd-restaurant-setup-section {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid rgba(13, 31, 30, 0.08);
  padding-top: 0.8rem;
}

.fd-restaurant-setup-section__icon { width: 2.25rem; height: 2.25rem; }
.fd-restaurant-setup-section__copy { min-width: 0; }
.fd-restaurant-setup-section__copy h3 { color: var(--boonia-admin-text, #0d1f1e); font-size: 0.88rem; font-weight: var(--boonia-admin-weight-semibold); }
.fd-restaurant-setup-section__copy p { margin-top: 0.2rem; color: var(--boonia-admin-text-muted, #526763); font-size: 0.73rem; font-weight: 600; }
.fd-restaurant-setup-section__copy ul { display: flex; flex-wrap: wrap; gap: 0.25rem 0.8rem; margin-top: 0.35rem; color: #8a5700; font-size: 0.7rem; font-weight: 600; }
.fd-restaurant-setup-section__copy li::before { content: "•"; margin-right: 0.3rem; }
.fd-restaurant-setup-section__more { margin-top: 0.35rem; color: #8a5700; font-size: 0.7rem; font-weight: 700; }
.fd-restaurant-setup-section__more summary,
.fd-restaurant-readiness__more summary { cursor: pointer; }
.fd-restaurant-setup-section__more ul { margin-top: 0.25rem; }

.fd-restaurant-history { display: grid; gap: 0.65rem; margin-top: 1rem; }
.fd-restaurant-history__item { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; border-top: 1px solid rgba(13, 31, 30, 0.08); padding-top: 0.7rem; }
.fd-restaurant-history__marker { width: 2rem; height: 2rem; }
.fd-restaurant-history__item strong { margin-right: 0.55rem; color: var(--boonia-admin-text, #0d1f1e); font-size: 0.8rem; font-weight: var(--boonia-admin-weight-semibold); }
.fd-restaurant-history__item time { color: var(--boonia-admin-text-muted, #526763); font-size: 0.75rem; font-weight: 600; }
.fd-restaurant-history__item p { margin-top: 0.2rem; color: var(--boonia-admin-text-muted, #526763); font-size: 0.75rem; font-weight: 600; overflow-wrap: anywhere; }
.fd-restaurant-history__empty { display: grid; gap: 0.2rem; margin-top: 1rem; border-top: 1px solid rgba(13, 31, 30, 0.08); padding-top: 0.8rem; color: var(--boonia-admin-text-muted, #526763); font-size: 0.78rem; }
.fd-restaurant-history__empty strong { color: var(--boonia-admin-text, #0d1f1e); }

.fd-restaurant-readiness__message { margin-top: 1rem; color: var(--boonia-admin-text-muted, #526763); font-size: 0.8rem; font-weight: 600; }
.fd-restaurant-readiness__list { display: grid; gap: 0.6rem; margin-top: 1rem; color: var(--boonia-admin-text, #0d1f1e); font-size: 0.76rem; font-weight: 600; }
.fd-restaurant-readiness__list li { display: flex; align-items: start; gap: 0.5rem; }
.fd-restaurant-readiness__list svg { flex: 0 0 auto; color: #8a5700; }
.fd-restaurant-readiness__more { margin-top: 0.8rem; color: #8a5700; font-size: 0.76rem; font-weight: 700; }
.fd-restaurant-readiness__list--additional { margin-top: 0.65rem; }
.fd-restaurant-readiness__form { margin-top: 1rem; }
.fd-restaurant-readiness__form button:disabled { cursor: not-allowed; background: #d9dfe1; color: #66777a; opacity: 1; }

.fd-restaurant-danger-zone { border: 1px solid #f0c6c0; border-radius: 1rem; background: #fff8f7; color: #a33a32; }
.fd-restaurant-danger-zone summary { display: flex; min-height: 3.5rem; align-items: center; justify-content: space-between; gap: 0.75rem; cursor: pointer; padding: 0.75rem 1rem; list-style: none; }
.fd-restaurant-danger-zone summary::-webkit-details-marker { display: none; }
.fd-restaurant-danger-zone summary > span { display: flex; align-items: center; gap: 0.7rem; }
.fd-restaurant-danger-zone summary span span { display: grid; gap: 0.15rem; }
.fd-restaurant-danger-zone summary strong { font-size: 0.85rem; font-weight: var(--boonia-admin-weight-semibold); }
.fd-restaurant-danger-zone summary small { color: #6b5e5e; font-size: 0.72rem; font-weight: 600; }
.fd-restaurant-danger-zone__body { border-top: 1px solid #f0c6c0; padding: 1rem; }
.fd-restaurant-danger-zone__body > p { color: #6b5e5e; font-size: 0.78rem; font-weight: 600; }
.fd-restaurant-danger-zone[open] summary > svg:last-child { transform: rotate(180deg); }

@media (max-width: 900px) {
  .fd-restaurant-setup-layout { grid-template-columns: minmax(0, 1fr); }
  .fd-restaurant-setup-layout > .fd-restaurant-setup-progress,
  .fd-restaurant-setup-layout > .fd-restaurant-readiness,
  .fd-restaurant-setup-layout > .fd-restaurant-history-card,
  .fd-restaurant-setup-layout > .fd-restaurant-danger-zone {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 767px) {
  .fd-owner-restaurants-page__header { align-items: flex-start; flex-direction: column; }
  .fd-owner-restaurants-page__header > .boonia-admin-button { width: 100%; }
  .fd-owner-restaurant-card__next { align-items: stretch; flex-direction: column; }
  .fd-owner-restaurant-card__next .boonia-admin-button { width: 100%; }
  .fd-restaurant-details-page__intro,
  .fd-restaurant-setup-identity { align-items: flex-start; flex-direction: column; }
  .fd-restaurant-details-page__progress { width: 100%; min-width: 0; }
  .fd-restaurant-setup-identity__action { width: 100%; }
  .fd-restaurant-setup-steps { grid-template-columns: minmax(0, 1fr); gap: 0.55rem; justify-items: start; margin-block: 1rem; }
  .fd-restaurant-setup-step { width: 100%; grid-template-columns: auto minmax(0, 1fr); justify-items: start; gap: 0.7rem; text-align: left; }
  .fd-restaurant-setup-step:not(:last-child)::after { top: 2rem; left: 1rem; width: 2px; height: calc(100% - 0.75rem); }
  .fd-restaurant-setup-step__copy { align-self: center; }
  .fd-restaurant-setup-section { grid-template-columns: auto minmax(0, 1fr); }
  .fd-restaurant-setup-section > .fd-status-badge { grid-column: 2; justify-self: start; }
  .fd-restaurant-setup-section__action { grid-column: 2; justify-self: start; }
  .fd-restaurant-details__cuisines-control { max-width: none; }
}

@media (max-width: 640px) {
  .fd-owner-restaurant-card__header { grid-template-columns: auto minmax(0, 1fr); }
  .fd-owner-restaurant-card__badges { grid-column: 1 / -1; }
  .fd-restaurant-details-form__grid { grid-template-columns: minmax(0, 1fr); }
  .fd-restaurant-details-form__footer { flex-direction: column-reverse; }
  .fd-restaurant-details-form__footer > *,
  .fd-restaurant-details-form__location-action > button { width: 100%; }
  .fd-restaurant-setup-section__action { width: 100%; }
  .fd-restaurant-history__item { grid-template-columns: auto minmax(0, 1fr); }
  .fd-restaurant-history__item > .fd-status-badge { grid-column: 2; justify-self: start; }
}

[data-shop-admin-results-region] {
  scrollbar-width: thin;
  scrollbar-color: rgba(33, 134, 122, 0.28) transparent;
}

[data-shop-admin-results-region]::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

[data-shop-admin-results-region]::-webkit-scrollbar-track {
  background: transparent;
}

[data-shop-admin-results-region]::-webkit-scrollbar-thumb {
  background-color: rgba(33, 134, 122, 0.22);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

[data-shop-admin-results-region]:hover::-webkit-scrollbar-thumb {
  background-color: rgba(33, 134, 122, 0.38);
}

@media (min-width: 768px) {
  [data-shop-admin-results-region] {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    max-height: calc(100dvh - var(--shop-admin-results-offset, 0px));
  }
}

@media (max-width: 767.98px) {
  [data-shop-admin-results-region] {
    max-height: none;
    overflow: visible;
  }
}

a {
  text-decoration: none;
}

[data-food-delivery-header-shell] .fd-food-delivery-header-utility,
[data-food-delivery-header-shell] .fd-food-delivery-header-main {
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    backdrop-filter 180ms ease,
    border-color 180ms ease;
}

[data-food-delivery-header-shell].is-scrolled .fd-food-delivery-header-utility {
  background-color: rgba(13, 31, 30, 0.88);
  backdrop-filter: saturate(180%) blur(18px);
}

[data-food-delivery-header-shell].is-scrolled .fd-food-delivery-header-main {
  background-color: rgba(255, 247, 237, 0.86);
  backdrop-filter: saturate(180%) blur(18px);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #21867a;
}

.fd-body-copy a {
  color: inherit;
  text-decoration: none;
}

.fd-page-intro {
  background:
    radial-gradient(circle at top right, rgba(252, 191, 73, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.fd-surface-card {
  border: 1px solid rgba(13, 31, 30, 0.06);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(16, 32, 31, 0.08);
}

.fd-button-primary {
  background: #21867a;
}

.fd-button-primary:hover {
  background: #185f56;
  transform: translateY(-1px);
}

.fd-button-secondary {
  background: #fcbf49;
  color: #0d1f1e;
}

.fd-button-secondary:hover {
  background: #e0a832;
  transform: translateY(-1px);
}

.fd-button-secondary--outlined {
  border: 1px solid rgba(33, 134, 122, 0.45);
  background: rgba(255, 255, 255, 0.9);
}

.fd-button-secondary--outlined:hover {
  background: rgba(33, 134, 122, 0.08);
}

.fd-button-ghost {
  border: 1px solid rgba(33, 134, 122, 0.18);
  background: rgba(33, 134, 122, 0.08);
}

.fd-button-ghost:hover {
  border-color: rgba(33, 134, 122, 0.34);
  background: #fff;
  transform: translateY(-1px);
}

.fd-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.75rem;
  font-weight: var(--boonia-admin-weight-semibold);
  line-height: 1;
}

.fd-muted-chip {
  background: #f4f7f6;
  color: #24413e;
}

.fd-page-grid {
  display: grid;
  gap: 1.5rem;
}

.auth-page {
  min-height: 100dvh;
  overflow-x: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 18%, rgba(252, 191, 73, 0.08), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(33, 134, 122, 0.16), transparent 26%),
    linear-gradient(180deg, #090d11 0%, #070a0e 100%);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  background: #05080c;
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(7, 10, 14, 0.9));
  pointer-events: none;
}

.auth-panel {
  background: rgba(10, 14, 18, 0.94);
}

.auth-surface {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.auth-role-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.auth-role-card:hover {
  border-color: rgba(252, 191, 73, 0.34);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.auth-role-card.is-selected {
  border-color: rgba(252, 191, 73, 0.7);
  background: rgba(252, 191, 73, 0.09);
  box-shadow:
    0 0 0 1px rgba(252, 191, 73, 0.14),
    0 20px 60px rgba(0, 0, 0, 0.18);
}

.auth-role-radio {
  accent-color: #fcbf49;
}

.auth-step-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-step-pill {
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 999px;
}

.auth-button-primary {
  background: #fcbf49;
  color: #0a0e12;
}

.auth-button-primary:hover {
  background: #e0a832;
}

.auth-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
}

.auth-button-secondary:hover {
  border-color: rgba(252, 191, 73, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.required-indicator {
  margin-left: 0.2rem;
  color: #ff6b4a !important;
  font-weight: var(--boonia-admin-weight-semibold);
}

.form-error {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ff6b4a !important;
}

.form-help {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}

.has-error input,
.has-error textarea,
.has-error select {
  border-color: rgba(192, 57, 43, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

.boonia-admin-form-field.has-error > label,
.boonia-admin-form-field.has-error > .boonia-admin-form-label {
  color: #c0392b;
}

.boonia-admin-form-field.has-error [data-dropdown-trigger] {
  border-color: rgba(192, 57, 43, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

.boonia-admin-form-error {
  margin-top: 0.35rem;
  color: #c0392b;
  font-size: 0.8125rem;
  font-weight: 700;
}

.has-error [data-boonia-field-errors] {
  color: #ff6b4a !important;
}

.fd-loading-button {
  position: relative;
}

.fd-loading-button[disabled],
.fd-loading-button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.9;
}

.fd-loading-button-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.fd-loading-spinner-shell {
  position: relative;
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #21867a;
  filter: drop-shadow(0 0 10px rgba(33, 134, 122, 0.16));
}

.fd-loading-spinner-shell--sm {
  width: 2rem;
  height: 2rem;
}

.fd-loading-spinner-shell--lg {
  width: 3.25rem;
  height: 3.25rem;
}

.fd-loading-spinner-shell--xl {
  width: 3.75rem;
  height: 3.75rem;
}

.fd-loading-spinner-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 50%;
  animation: fd-boonia-loader-breathe 1.45s ease-in-out infinite;
}

.fd-loading-spinner-pin-shell {
  fill: none;
  stroke: rgba(33, 134, 122, 0.20);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fd-loading-spinner-pin-body {
  fill: rgba(33, 134, 122, 0.12);
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linejoin: round;
}

.fd-loading-spinner-pin-core {
  fill: #fcbf49;
  transform-box: fill-box;
  transform-origin: center;
  animation: fd-boonia-loader-pulse 1.35s ease-in-out infinite;
}

.fd-loading-spinner-pin-core--gold {
  fill: #fcbf49;
}

.fd-loading-spinner-pin-pulse {
  fill: none;
  stroke: rgba(33, 134, 122, 0.22);
  stroke-linecap: round;
  stroke-width: 1.7;
  transform-box: fill-box;
  transform-origin: center;
  animation: fd-boonia-loader-ring 1.6s ease-out infinite;
}

.fd-loading-spinner-pin-pulse--2 {
  animation-delay: 0.35s;
}

.fd-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(13, 31, 30, 0.28);
  backdrop-filter: blur(6px);
}

.fd-loading-overlay-panel {
  max-width: min(92vw, 24rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(13, 31, 30, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(16, 32, 31, 0.18);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.fd-loading-region {
  overflow: hidden;
}

.fd-loading-region-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 250, 240, 0.38);
  backdrop-filter: blur(4px);
}

.fd-loading-region-overlay-panel {
  width: min(100%, 72rem);
  display: flex;
  min-height: 8rem;
  align-items: center;
  justify-content: center;
}

[data-restaurant-results-root][aria-busy='true'] [data-restaurant-results-loading] {
  display: flex !important;
}

[data-restaurant-results-root][aria-busy='true'] [data-restaurant-results-content] {
  opacity: 0.95;
}

[data-restaurant-list-search-input] {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  background-clip: padding-box;
  box-shadow: none;
}

[data-restaurant-list-search-input]::-webkit-search-decoration,
[data-restaurant-list-search-input]::-webkit-search-cancel-button,
[data-restaurant-list-search-input]::-webkit-search-results-button,
[data-restaurant-list-search-input]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

[data-restaurant-list-form] [data-restaurant-list-filters] ~ [data-restaurant-list-secondary-row] {
  display: none;
}

[data-restaurant-list-form] [data-restaurant-list-filters][open] ~ [data-restaurant-list-secondary-row] {
  display: block;
}

[data-restaurant-list-form] [data-restaurant-list-filters][open] [data-restaurant-list-filters-chevron] {
  transform: rotate(180deg);
}

[data-shop-htmx-root] {
  position: relative;
}

[data-shop-htmx-root][aria-busy='true'] [data-shop-htmx-loading] {
  display: flex !important;
}

[data-shop-htmx-root][aria-busy='true'] [data-shop-htmx-content] {
  opacity: 0.96;
}

@keyframes fd-boonia-loader-breathe {
  0%,
  100% {
    transform: scale(0.985);
  }

  50% {
    transform: scale(1.02);
  }
}

@keyframes fd-boonia-loader-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fd-boonia-loader-ring {
  0% {
    opacity: 0.6;
    transform: scale(0.82);
  }

  70% {
    opacity: 0;
    transform: scale(1.18);
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes fd-boonia-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fd-loading-spinner-svg,
  .fd-loading-spinner-pin-core,
  .fd-loading-spinner-pin-pulse {
    animation: none;
  }
}

/* Operations dashboard presentation stays scoped to the dashboard workspace. */
.boonia-admin-dashboard {
  --boonia-dashboard-status-pending: var(--boonia-admin-warning);
  --boonia-dashboard-status-confirmed: var(--boonia-admin-focus);
  --boonia-dashboard-status-preparing: var(--boonia-admin-info);
  --boonia-dashboard-status-delivered: var(--boonia-admin-success);
  --boonia-dashboard-status-cancelled: var(--boonia-admin-danger);
  display: block;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.boonia-admin-dashboard__workspace {
  display: grid;
  gap: 1.25rem;
}

.boonia-admin-dashboard__hero {
  display: grid;
  align-items: end;
  gap: 1rem 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.boonia-admin-dashboard__header h1 {
  margin-top: 0.2rem;
  color: var(--boonia-admin-text);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: var(--boonia-admin-weight-bold);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

#admin-dashboard-workspace { display: block; }

.boonia-admin-dashboard__controls {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex: 0 1 auto;
  flex-wrap: nowrap;
}

.boonia-admin-dashboard__controls > .boonia-admin-dropdown {
  flex: 0 1 11.5rem;
  min-width: 11.5rem;
  max-width: 15rem;
  min-height: var(--boonia-admin-control-height);
}

.boonia-admin-dashboard__controls > .boonia-admin-dropdown .boonia-admin-dropdown__trigger {
  width: 100%;
}

.boonia-admin-dashboard__period {
  display: inline-flex;
  min-height: var(--boonia-admin-control-height);
  overflow: hidden;
  border: 1px solid var(--boonia-admin-border);
  border-radius: var(--boonia-admin-radius);
  background: var(--boonia-admin-surface-card);
}

.boonia-admin-dashboard__period-button {
  min-width: 4.5rem;
  border: 0;
  border-right: 1px solid rgba(13, 31, 30, 0.08);
  background: transparent;
  color: var(--boonia-admin-text-muted);
  cursor: pointer;
  padding: 0 0.8rem;
  font-size: 0.78rem;
  font-weight: var(--boonia-admin-weight-semibold);
}

.boonia-admin-dashboard__period-button:last-child { border-right: 0; }
.boonia-admin-dashboard__period-button.is-active { background: var(--boonia-admin-brand-dark); color: #fff; }

.boonia-admin-dashboard__updated {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.45rem;
  margin-left: 0;
  color: var(--boonia-admin-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.boonia-admin-dashboard__updated-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #58b5a4;
}

.boonia-admin-dashboard__refresh { min-height: var(--boonia-admin-control-height); white-space: nowrap; }
.boonia-admin-dashboard__refresh .htmx-indicator { display: none; }
.boonia-admin-dashboard__refresh.htmx-request .htmx-indicator { display: inline-flex; }
.boonia-admin-dashboard__refresh svg { width: 1rem; height: 1rem; }

.boonia-admin-dashboard__calendar { position: relative; min-height: var(--boonia-admin-control-height); flex: 0 0 auto; }
.boonia-admin-dashboard__calendar-toggle { display: inline-flex; width: var(--boonia-admin-control-height); min-width: var(--boonia-admin-control-height); min-height: var(--boonia-admin-control-height); align-items: center; justify-content: center; padding: 0; }
.boonia-admin-dashboard__calendar-toggle.is-selected { border-color: var(--boonia-admin-focus); background: var(--boonia-admin-pale-teal, #edf7f6); color: var(--boonia-admin-focus); }
.boonia-admin-dashboard__calendar-toggle svg { width: 1rem; }
.boonia-admin-dashboard__calendar-popover { position: absolute; z-index: 30; top: calc(100% + 0.5rem); right: 0; width: min(22rem, calc(100vw - 1rem)); border: 1px solid var(--boonia-admin-border); border-radius: 0.9rem; background: var(--boonia-admin-surface-card); padding: 0.9rem; box-shadow: 0 1rem 2.5rem rgba(13, 31, 30, 0.16); }
.boonia-admin-dashboard__calendar-popover fieldset { border: 0; margin: 0; padding: 0; }
.boonia-admin-dashboard__calendar-popover legend { color: var(--boonia-admin-text); font-size: 0.78rem; font-weight: var(--boonia-admin-weight-bold); }
.boonia-admin-dashboard__calendar-fields { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.45rem 0.6rem; margin-top: 0.7rem; }
.boonia-admin-dashboard__calendar-fields label { color: var(--boonia-admin-text-muted); font-size: 0.7rem; font-weight: var(--boonia-admin-weight-semibold); }
.boonia-admin-dashboard__calendar-fields input { min-width: 0; border: 1px solid var(--boonia-admin-border); border-radius: 0.55rem; padding: 0.5rem; color: var(--boonia-admin-text); font: inherit; font-size: 0.72rem; }
.boonia-admin-dashboard__calendar-fields input:focus-visible { outline: 2px solid var(--boonia-admin-focus); outline-offset: 2px; }
.boonia-admin-dashboard__calendar-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.8rem; }
.boonia-admin-dashboard__calendar-popover .boonia-admin-form-error { margin-top: 0.55rem; }

.boonia-admin-dashboard__setup,
.boonia-admin-dashboard__panel,
.boonia-admin-dashboard__kpi {
  border: 1px solid rgba(13, 31, 30, 0.1);
  border-radius: 1rem;
  background: var(--boonia-admin-surface-card);
  box-shadow: 0 0.75rem 2rem rgba(13, 31, 30, 0.045);
}

.boonia-admin-dashboard__setup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(90deg, rgba(252, 191, 73, 0.12), rgba(255, 255, 255, 0.9));
}

.boonia-admin-dashboard__setup h2 { margin-top: 0.25rem; font-size: 1rem; font-weight: var(--boonia-admin-weight-bold); }
.boonia-admin-dashboard__setup p:last-child { margin-top: 0.25rem; color: var(--boonia-admin-text-muted); font-size: 0.78rem; font-weight: 600; }
.boonia-admin-dashboard__eyebrow { color: var(--boonia-admin-brand-amber); font-size: 0.68rem; font-weight: var(--boonia-admin-weight-bold); letter-spacing: 0.12em; text-transform: uppercase; }

.boonia-admin-dashboard__kpis {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.boonia-admin-dashboard__kpi {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  color: var(--boonia-admin-text);
  text-decoration: none;
}

.boonia-admin-dashboard__kpi--interactive { transition: border-color 160ms ease; }
.boonia-admin-dashboard__kpi--interactive:hover { border-color: rgba(33, 134, 122, 0.35); }
.boonia-admin-dashboard__kpi:not(.boonia-admin-dashboard__kpi--interactive) { cursor: default; }
.boonia-admin-dashboard__kpi-icon,
.boonia-admin-dashboard__icon-surface {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  background: var(--teal-pale, #edf7f6);
  color: var(--boonia-admin-focus);
}

.boonia-admin-dashboard__kpi--attention .boonia-admin-dashboard__kpi-icon,
.boonia-admin-dashboard__icon-surface--amber { background: rgba(252, 191, 73, 0.18); color: #a96800; }
.boonia-admin-dashboard__kpi-copy { display: grid; min-width: 0; gap: 0.12rem; }
.boonia-admin-dashboard__kpi-copy > span { color: var(--boonia-admin-text-muted); font-size: 0.76rem; font-weight: var(--boonia-admin-weight-semibold); }
.boonia-admin-dashboard__kpi-copy strong { overflow-wrap: anywhere; font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: var(--boonia-admin-weight-bold); letter-spacing: -0.04em; line-height: 1.1; }
.boonia-admin-dashboard__kpi-copy small { color: var(--boonia-admin-text-muted); font-size: 0.68rem; font-weight: 700; }
.boonia-admin-dashboard__kpi-copy small.is-positive { color: #17865f; }
.boonia-admin-dashboard__kpi-copy small.is-negative { color: var(--boonia-admin-danger); }
.boonia-admin-dashboard__kpi-copy small em { font-style: normal; }
.boonia-admin-dashboard__kpi-arrow { width: 1rem; margin-left: auto; color: var(--boonia-admin-focus); }

.boonia-admin-dashboard__primary-grid,
.boonia-admin-dashboard__lower-grid { display: grid; align-items: start; gap: 1.25rem; grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.9fr); }
.boonia-admin-dashboard__lower-grid { grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr); }
.boonia-admin-dashboard__panel { min-width: 0; overflow: hidden; padding: 1.1rem; }
.boonia-admin-dashboard__primary-grid > .boonia-admin-dashboard__panel { min-height: 24rem; }
.boonia-admin-dashboard__panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.boonia-admin-dashboard__heading-group { display: flex; min-width: 0; align-items: center; gap: 0.7rem; }
.boonia-admin-dashboard__heading-group > div { min-width: 0; }
.boonia-admin-dashboard__heading-group h2 { color: var(--boonia-admin-text); font-size: 1rem; font-weight: var(--boonia-admin-weight-bold); line-height: 1.2; }
.boonia-admin-dashboard__heading-group p { margin-top: 0.22rem; color: var(--boonia-admin-text-muted); font-size: 0.72rem; font-weight: 600; }
.boonia-admin-dashboard__panel-total,
.boonia-admin-dashboard__count-badge { color: var(--boonia-admin-focus); font-size: 0.76rem; font-weight: var(--boonia-admin-weight-bold); white-space: nowrap; }
.boonia-admin-dashboard__count-badge { border-radius: 999px; background: rgba(252, 191, 73, 0.2); color: #915e00; padding: 0.4rem 0.65rem; }
.boonia-admin-dashboard__text-link { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--boonia-admin-focus); font-size: 0.72rem; font-weight: var(--boonia-admin-weight-bold); text-decoration: none; white-space: nowrap; }
.boonia-admin-dashboard__text-link svg { width: 0.9rem; }

.boonia-admin-dashboard__chart-wrap { margin-top: 1rem; }
.boonia-admin-dashboard__chart-plot { display: grid; min-width: 0; grid-template-columns: 2.35rem minmax(0, 1fr); align-items: stretch; }
.boonia-admin-dashboard__chart-axis { display: flex; min-width: 0; flex-direction: column; align-items: flex-end; justify-content: space-between; padding: 0.25rem 0; color: var(--boonia-admin-text-muted); font-size: 0.58rem; font-weight: var(--boonia-admin-weight-semibold); line-height: 1; }
.boonia-admin-dashboard__chart-axis span:empty { display: none; }
.boonia-admin-dashboard__chart-unit { margin-bottom: 0.3rem; color: var(--boonia-admin-text-muted); font-size: 0.62rem; font-weight: var(--boonia-admin-weight-bold); letter-spacing: 0.06em; text-align: right; text-transform: uppercase; }
.boonia-admin-dashboard__chart { display: block; width: 100%; min-width: 0; aspect-ratio: 720 / 250; height: auto; min-height: 0; overflow: visible; }
.boonia-admin-dashboard__chart-grid { stroke: var(--boonia-admin-border); stroke-dasharray: 1 1; stroke-width: 0.35; }
.boonia-admin-dashboard__chart-area { fill: var(--boonia-admin-focus); opacity: 0.12; }
.boonia-admin-dashboard__chart-line { stroke: var(--boonia-admin-brand-dark); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.boonia-admin-dashboard__chart-previous-line { stroke: var(--boonia-admin-text-muted); stroke-dasharray: 4 4; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1; opacity: 0.7; }
.boonia-admin-dashboard__chart-point { fill: transparent; stroke: transparent; stroke-width: 0.9; cursor: pointer; outline: none; pointer-events: all; }
.boonia-admin-dashboard__chart-point.is-nonzero { fill: var(--boonia-admin-surface-card); stroke: var(--boonia-admin-brand-dark); }
.boonia-admin-dashboard__chart-point:hover,
.boonia-admin-dashboard__chart-point:focus-visible,
.boonia-admin-dashboard__chart-point.is-active { fill: var(--boonia-admin-brand-amber); stroke: var(--boonia-admin-text); stroke-width: 1.25; }
.boonia-admin-dashboard__tooltip { position: fixed; z-index: 100; max-width: min(18rem, calc(100vw - 1rem)); border: 1px solid var(--boonia-admin-border); border-radius: 0.55rem; background: var(--boonia-admin-brand-dark); color: #fff; padding: 0.45rem 0.6rem; box-shadow: 0 0.6rem 1.5rem rgba(13, 31, 30, 0.2); font-size: 0.7rem; font-weight: var(--boonia-admin-weight-semibold); pointer-events: none; }
.boonia-admin-dashboard__chart-labels { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--boonia-admin-text-muted); font-size: 0.63rem; font-weight: 700; }
.boonia-admin-dashboard__chart-data { margin-top: 0.7rem; border-top: 1px solid rgba(13, 31, 30, 0.08); color: var(--boonia-admin-focus); font-size: 0.7rem; font-weight: var(--boonia-admin-weight-semibold); }
.boonia-admin-dashboard__chart-data[open] { max-height: min(22rem, 60vh); overflow: auto; }
.boonia-admin-dashboard__chart-data summary { cursor: pointer; padding: 0.65rem 0 0.1rem; }
.boonia-admin-dashboard__chart-data table { width: 100%; margin-top: 0; border-collapse: collapse; color: var(--boonia-admin-text-muted); font-size: 0.7rem; }
.boonia-admin-dashboard__chart-data th,
.boonia-admin-dashboard__chart-data td { border-bottom: 1px solid rgba(13, 31, 30, 0.08); padding: 0.35rem; text-align: left; }
.boonia-admin-dashboard__chart-data th { position: sticky; top: 0; background: var(--mist, #f6fbf9); color: var(--boonia-admin-text); }
.boonia-admin-dashboard__chart-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 0.55rem; color: var(--boonia-admin-text-muted); font-size: 0.65rem; font-weight: 700; }
.boonia-admin-dashboard__chart-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.boonia-admin-dashboard__chart-legend i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--boonia-admin-brand-dark); }
.boonia-admin-dashboard__chart-legend i.is-previous { border-radius: 0; background: var(--boonia-admin-text-muted); }

.boonia-admin-dashboard__metric-toggle { display: inline-flex; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--boonia-admin-border); border-radius: 0.65rem; background: var(--mist, #f6fbf9); }
.boonia-admin-dashboard__metric-toggle button { border: 0; background: transparent; color: var(--boonia-admin-text-muted); cursor: pointer; padding: 0.45rem 0.7rem; font: inherit; font-size: 0.68rem; font-weight: var(--boonia-admin-weight-bold); }
.boonia-admin-dashboard__metric-toggle button.is-active { border-radius: 0.55rem; background: var(--boonia-admin-brand-dark); color: #fff; }

.boonia-admin-dashboard__status-layout { display: grid; align-items: center; gap: 1rem; grid-template-columns: 10rem minmax(0, 1fr); margin-top: 1rem; }
.boonia-admin-dashboard__donut { position: relative; display: flex; width: 9rem; height: 9rem; align-items: center; justify-content: center; margin: auto; }
.boonia-admin-dashboard__donut svg { width: 100%; height: 100%; overflow: visible; }
.boonia-admin-dashboard__donut-total { fill: var(--boonia-admin-text); font-size: 1.45rem; font-weight: var(--boonia-admin-weight-bold); text-anchor: middle; }
.boonia-admin-dashboard__donut-label { fill: var(--boonia-admin-text-muted); font-size: 0.65rem; font-weight: 700; text-anchor: middle; }
.boonia-admin-dashboard__status-segment { cursor: pointer; fill: var(--boonia-admin-focus); stroke: var(--boonia-admin-surface-card); stroke-linejoin: round; stroke-width: 1.5; outline: none; }
.boonia-admin-dashboard__status-segment--pending { fill: var(--boonia-dashboard-status-pending); }
.boonia-admin-dashboard__status-segment--confirmed { fill: var(--boonia-dashboard-status-confirmed); }
.boonia-admin-dashboard__status-segment--preparing { fill: var(--boonia-dashboard-status-preparing); }
.boonia-admin-dashboard__status-segment--delivered { fill: var(--boonia-dashboard-status-delivered); }
.boonia-admin-dashboard__status-segment--cancelled { fill: var(--boonia-dashboard-status-cancelled); }
.boonia-admin-dashboard__status-segment:hover,
.boonia-admin-dashboard__status-segment:focus-visible,
.boonia-admin-dashboard__status-segment.is-active { stroke: var(--boonia-admin-text); stroke-width: 3.5; }
.boonia-admin-dashboard__status-legend { display: grid; gap: 0.45rem; }
.boonia-admin-dashboard__status-row { display: grid; grid-template-columns: minmax(0, 1fr) 4rem 5rem; align-items: center; gap: 0.5rem; }
.boonia-admin-dashboard__status-row > strong,
.boonia-admin-dashboard__status-row > small { text-align: right; }
.boonia-admin-dashboard__status-row { width: 100%; border: 0; border-radius: 0.65rem; background: var(--mist, #f6fbf9); padding: 0.55rem 0.65rem; color: var(--boonia-admin-text); cursor: pointer; font: inherit; font-size: 0.72rem; font-weight: var(--boonia-admin-weight-semibold); text-align: left; }
.boonia-admin-dashboard__status-row:hover,
.boonia-admin-dashboard__status-row:focus-visible,
.boonia-admin-dashboard__status-row.is-active { background: color-mix(in srgb, var(--boonia-admin-focus) 12%, var(--mist, #f6fbf9)); outline: 2px solid color-mix(in srgb, var(--boonia-admin-focus) 38%, transparent); outline-offset: 2px; }
.boonia-admin-dashboard__status-label { display: inline-flex; min-width: 0; align-items: center; gap: 0.45rem; }
.boonia-admin-dashboard__status-label i { width: 0.55rem; height: 0.55rem; flex: 0 0 auto; border-radius: 50%; }
.boonia-admin-dashboard__status-percent { color: var(--boonia-admin-text-muted); font-size: 0.67rem; }
.boonia-admin-dashboard__metric-value { max-width: 100%; font-variant-numeric: tabular-nums; line-height: 1.05; white-space: nowrap; }

.boonia-admin-dashboard__attention-heading-actions { display: inline-flex; align-items: center; gap: 0.8rem; }
.boonia-admin-dashboard__attention-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; }
.boonia-admin-dashboard__attention-row { display: grid; align-items: center; gap: 0.8rem; grid-template-columns: auto minmax(0, 1fr) auto auto; border-top: 1px solid rgba(13, 31, 30, 0.08); padding: 0.8rem 1.1rem; color: var(--boonia-admin-text); text-decoration: none; }
.boonia-admin-dashboard__attention-row + .boonia-admin-dashboard__attention-row { border-left: 1px solid rgba(13, 31, 30, 0.08); }
.boonia-admin-dashboard__attention-row:hover { background: var(--mist, #f6fbf9); }
.boonia-admin-dashboard__attention-icon { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 50%; background: #fff0ed; color: var(--boonia-admin-danger); }
.boonia-admin-dashboard__attention-icon svg { width: 1rem; }
.boonia-admin-dashboard__attention-copy { display: grid; min-width: 0; gap: 0.12rem; }
.boonia-admin-dashboard__attention-copy strong { font-size: 0.78rem; }
.boonia-admin-dashboard__attention-copy span,
.boonia-admin-dashboard__attention-row time { overflow-wrap: anywhere; color: var(--boonia-admin-text-muted); font-size: 0.68rem; font-weight: 600; }
.boonia-admin-dashboard__attention-row > svg { width: 1rem; color: var(--boonia-admin-focus); }
.boonia-admin-dashboard__empty-inline,
.boonia-admin-dashboard__empty-panel { display: flex; align-items: center; justify-content: center; gap: 0.7rem; color: var(--boonia-admin-text-muted); }
.boonia-admin-dashboard__empty-inline { margin: 1rem 0 0; padding: 0.85rem; border-radius: 0.75rem; background: var(--mist, #f6fbf9); }
.boonia-admin-dashboard__empty-inline > svg,
.boonia-admin-dashboard__empty-panel > svg { width: 1.5rem; color: var(--boonia-admin-focus); }
.boonia-admin-dashboard__empty-inline p,
.boonia-admin-dashboard__empty-panel { display: grid; gap: 0.2rem; }
.boonia-admin-dashboard__empty-inline span,
.boonia-admin-dashboard__empty-panel span { font-size: 0.72rem; font-weight: 600; }
.boonia-admin-dashboard__empty-inline strong,
.boonia-admin-dashboard__empty-panel strong { color: var(--boonia-admin-text); font-size: 0.78rem; }
.boonia-admin-dashboard__empty-panel { min-height: 10rem; text-align: center; }

.boonia-admin-dashboard__recent-orders { display: grid; margin-top: 1rem; }
.boonia-admin-dashboard__recent-orders-head,
.boonia-admin-dashboard__recent-orders > a { display: grid; align-items: center; gap: 0.7rem; grid-template-columns: minmax(7rem, 1.1fr) minmax(5rem, 0.9fr) minmax(6rem, 1fr) minmax(5rem, 0.8fr) minmax(5rem, 0.8fr) minmax(5rem, 0.8fr) auto; }
.boonia-admin-dashboard__recent-orders-head { padding: 0 0 0.45rem; color: var(--boonia-admin-text-muted); font-size: 0.63rem; font-weight: var(--boonia-admin-weight-bold); letter-spacing: 0.06em; text-transform: uppercase; }
.boonia-admin-dashboard__recent-orders > a { border-top: 1px solid rgba(13, 31, 30, 0.08); padding: 0.7rem 0; color: var(--boonia-admin-text); font-size: 0.72rem; text-decoration: none; }
.boonia-admin-dashboard__recent-orders > a:hover { color: var(--boonia-admin-focus); }
.boonia-admin-dashboard__recent-orders small { color: var(--boonia-admin-text-muted); font-size: 0.64rem; }
.boonia-admin-dashboard__recent-orders > a > strong:first-child,
.boonia-admin-dashboard__recent-orders > a > strong:nth-child(5),
.boonia-admin-dashboard__recent-orders > a > time { white-space: nowrap; }
.boonia-admin-dashboard__recent-orders > a > span:nth-child(2),
.boonia-admin-dashboard__recent-orders > a > span:nth-child(3),
.boonia-admin-dashboard__recent-orders time { overflow-wrap: anywhere; color: var(--boonia-admin-text-muted); font-size: 0.68rem; font-weight: 600; }
.boonia-admin-dashboard__recent-orders > a > span:nth-child(4) { border-radius: 999px; padding: 0.28rem 0.5rem; font-size: 0.65rem; font-weight: var(--boonia-admin-weight-semibold); white-space: nowrap; }
.boonia-admin-dashboard__recent-orders > a > svg { width: 0.9rem; color: var(--boonia-admin-focus); }
.boonia-admin-dashboard__side-stack { display: grid; align-content: start; gap: 1.25rem; }
.boonia-admin-dashboard__side-stack .boonia-admin-dashboard__panel { padding: 1rem; }
.boonia-admin-dashboard__snapshot-list { display: grid; gap: 0.4rem; margin-top: 0.9rem; }
.boonia-admin-dashboard__snapshot-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.55rem; border-radius: 0.7rem; background: var(--mist, #f6fbf9); padding: 0.6rem 0.7rem; color: var(--boonia-admin-text); font-size: 0.7rem; text-decoration: none; }
.boonia-admin-dashboard__snapshot-row:hover { color: var(--boonia-admin-focus); }
.boonia-admin-dashboard__snapshot-row small { color: var(--boonia-admin-text-muted); font-size: 0.64rem; }
.boonia-admin-dashboard__status-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.boonia-admin-dashboard__status-dot--success { background: var(--boonia-dashboard-status-delivered); }
.boonia-admin-dashboard__status-dot--warning { background: var(--boonia-dashboard-status-pending); }
.boonia-admin-dashboard__status-dot--danger { background: var(--boonia-dashboard-status-cancelled); }
.boonia-admin-dashboard__status-dot--pending { background: var(--boonia-dashboard-status-pending); }
.boonia-admin-dashboard__status-dot--confirmed { background: var(--boonia-dashboard-status-confirmed); }
.boonia-admin-dashboard__status-dot--preparing { background: var(--boonia-dashboard-status-preparing); }
.boonia-admin-dashboard__status-dot--delivered { background: var(--boonia-dashboard-status-delivered); }
.boonia-admin-dashboard__status-dot--cancelled { background: var(--boonia-dashboard-status-cancelled); }
.boonia-admin-dashboard__status-dot--neutral { background: var(--boonia-admin-text-muted); }
.boonia-admin-dashboard__muted-empty { margin-top: 0.8rem; color: var(--boonia-admin-text-muted); font-size: 0.72rem; font-weight: 600; }
.boonia-admin-dashboard__availability { display: grid; gap: 0.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0.9rem; }
.boonia-admin-dashboard__availability span { display: flex; min-width: 0; align-items: center; gap: 0.3rem; color: var(--boonia-admin-text-muted); font-size: 0.65rem; font-weight: 700; }
.boonia-admin-dashboard__availability strong { color: var(--boonia-admin-text); font-size: 0.85rem; }
.boonia-admin-dashboard__availability i { width: 0.5rem; height: 0.5rem; flex: 0 0 auto; border-radius: 50%; background: #11a36e; }
.boonia-admin-dashboard__availability i.is-closed { background: #ef4444; }
.boonia-admin-dashboard__availability i.is-muted { background: #f0a83b; }
.boonia-admin-dashboard__quick-action-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; margin-top: 0.8rem; }
.boonia-admin-dashboard__quick-action-list a { display: flex; min-width: 0; align-items: center; gap: 0.35rem; border-radius: 0.6rem; background: var(--mist, #f6fbf9); padding: 0.55rem 0.6rem; color: var(--boonia-admin-focus); font-size: 0.67rem; font-weight: var(--boonia-admin-weight-bold); text-decoration: none; }
.boonia-admin-dashboard__quick-action-list a svg:first-child { flex: 0 0 auto; width: 0.85rem; }
.boonia-admin-dashboard__quick-action-list a svg:last-child { flex: 0 0 auto; width: 0.8rem; margin-left: auto; }

@media (max-width: 1100px) {
  .boonia-admin-dashboard__hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .boonia-admin-dashboard__controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .boonia-admin-dashboard__controls > .boonia-admin-dropdown {
    flex: 1 1 13rem;
    min-width: min(13rem, 100%);
    max-width: none;
  }

  .boonia-admin-dashboard__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boonia-admin-dashboard__primary-grid,
  .boonia-admin-dashboard__lower-grid { grid-template-columns: minmax(0, 1fr); }
  .boonia-admin-dashboard__side-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .boonia-admin-dashboard__hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1rem; }
  .boonia-admin-dashboard__header,
  .boonia-admin-dashboard__controls { width: 100%; min-width: 0; }
  .boonia-admin-dashboard__controls { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 0.75rem; }
  .boonia-admin-dashboard__controls > .boonia-admin-dropdown,
  .boonia-admin-dashboard__period,
  .boonia-admin-dashboard__calendar,
  .boonia-admin-dashboard__updated,
  .boonia-admin-dashboard__refresh { width: 100%; }
  .boonia-admin-dashboard__updated { justify-content: center; margin-left: 0; }
  .boonia-admin-dashboard__controls > .boonia-admin-dropdown { min-width: 0; max-width: none; }
  .boonia-admin-dashboard__calendar-popover { position: static; width: 100%; margin-top: 0.5rem; }
  .boonia-admin-dashboard__refresh { min-height: var(--boonia-admin-control-height); }
  .boonia-admin-dashboard__period-button { flex: 1; }
  .boonia-admin-dashboard__setup { align-items: stretch; flex-direction: column; }
  .boonia-admin-dashboard__setup .boonia-admin-button { width: 100%; }
  .boonia-admin-dashboard__status-layout { display: block; }
  .boonia-admin-dashboard__donut { width: min(9rem, 48vw); height: min(9rem, 48vw); margin-top: 0.5rem; }
  .boonia-admin-dashboard__status-legend { margin-top: 0.9rem; }
  .boonia-admin-dashboard__primary-grid > .boonia-admin-dashboard__panel { min-height: 0; }
  .boonia-admin-dashboard__primary-grid .boonia-admin-dashboard__heading-group #dashboard-activity-title + p { display: none; }
  .boonia-admin-dashboard__chart-plot { grid-template-columns: 1.8rem minmax(0, 1fr); }
  .boonia-admin-dashboard__attention-list { grid-template-columns: minmax(0, 1fr); }
  .boonia-admin-dashboard__attention-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .boonia-admin-dashboard__attention-row + .boonia-admin-dashboard__attention-row { border-left: 0; }
  .boonia-admin-dashboard__attention-row time { display: none; }
  .boonia-admin-dashboard__recent-orders-head { display: none; }
  .boonia-admin-dashboard__recent-orders > a { grid-template-columns: minmax(0, 1fr) auto auto; }
  .boonia-admin-dashboard__recent-orders > a > [role="cell"] { grid-column: 1 / -1; }
  .boonia-admin-dashboard__recent-orders > a > [role="cell"]::before { display: block; margin-bottom: 0.12rem; color: var(--boonia-admin-text-muted); content: attr(data-label); font-size: 0.58rem; font-weight: var(--boonia-admin-weight-bold); letter-spacing: 0.05em; text-transform: uppercase; }
  .boonia-admin-dashboard__recent-orders > a > strong:nth-child(1) { grid-column: 1 / 2; }
  .boonia-admin-dashboard__recent-orders > a > strong:nth-child(5) { grid-column: 2 / 3; grid-row: 1; }
  .boonia-admin-dashboard__recent-orders > a > time { grid-column: 1 / 2; }
  .boonia-admin-dashboard__recent-orders > a > svg { grid-column: 3 / 4; grid-row: 1 / span 2; }
  .boonia-admin-dashboard__recent-orders > a > .boonia-admin-dashboard__recent-order-action { grid-column: 3 / 4; grid-row: 1 / span 2; }
  .boonia-admin-dashboard__side-stack { grid-template-columns: minmax(0, 1fr); }
  .boonia-admin-dashboard__quick-action-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .boonia-admin-dashboard__kpis { gap: 0.7rem; }
  .boonia-admin-dashboard__kpi { align-items: flex-start; flex-wrap: wrap; padding: 0.85rem; }
  .boonia-admin-dashboard__kpi-icon { width: 2.35rem; height: 2.35rem; }
  .boonia-admin-dashboard__kpi-arrow { display: none; }
  .boonia-admin-dashboard__kpi-copy strong { font-size: 1.3rem; }
  .boonia-admin-dashboard__panel { padding: 0.9rem; }
  .boonia-admin-dashboard__attention-row { padding-right: 0; padding-left: 0; }
  .boonia-admin-dashboard__recent-orders > a > time { white-space: normal; }
  .boonia-admin-dashboard__chart-labels { font-size: 0.57rem; }
  .boonia-admin-dashboard__status-row { grid-template-columns: minmax(0, 1fr) 3.5rem 4.5rem; }
  .boonia-admin-dashboard__snapshot-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .boonia-admin-dashboard__availability { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boonia-admin-dashboard__availability span:last-child { grid-column: 1 / -1; }
}

@media (max-width: 479px) {
  .boonia-admin-dashboard__kpis { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 375px) {
  .boonia-admin-dashboard__period-button { min-width: 0; padding-right: 0.4rem; padding-left: 0.4rem; }
  .boonia-admin-dashboard__heading-group p { font-size: 0.66rem; }
  .boonia-admin-dashboard__panel-header { align-items: flex-start; flex-wrap: wrap; }
  .boonia-admin-dashboard__metric-toggle { width: 100%; }
  .boonia-admin-dashboard__metric-toggle button { flex: 1; }
}

.fd-admin-card {
  border: 1px solid rgba(13, 31, 30, 0.06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 38px rgba(16, 32, 31, 0.07);
}

.fd-owner-restaurants-page {
  display: grid;
  min-width: 0;
  gap: 1.25rem;
}

.fd-owner-restaurants-page__header {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.fd-owner-restaurants-page__header > div {
  min-width: 0;
}

.fd-owner-restaurants-page__header h1 {
  margin-top: 0.2rem;
  color: var(--boonia-admin-text, #0d1f1e);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: var(--boonia-admin-weight-bold);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.fd-owner-restaurants-page__header p:last-child {
  margin-top: 0.45rem;
  color: var(--boonia-admin-text-muted, #526763);
  font-size: 0.95rem;
  font-weight: 600;
}

.fd-owner-restaurants-page__summary {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(33, 134, 122, 0.14);
  border-radius: 999px;
  background: var(--boonia-admin-surface-muted, #edf7f6);
  padding: 0.55rem 0.8rem;
  color: var(--boonia-admin-text-muted, #526763);
  font-size: 0.8rem;
  font-weight: 700;
}

.fd-owner-restaurants-page__summary strong {
  color: var(--boonia-admin-text, #0d1f1e);
  font-size: 1rem;
}

.fd-owner-restaurants-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
  gap: 1rem;
}

.fd-owner-restaurant-card {
  display: grid;
  min-width: 0;
  gap: 1.25rem;
  border: 1px solid rgba(13, 31, 30, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  padding: clamp(1rem, 2vw, 1.35rem);
  box-shadow: 0 14px 38px rgba(16, 32, 31, 0.06);
}

.fd-owner-restaurant-card__header {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}

.fd-owner-restaurant-card__icon,
.fd-owner-restaurants-empty__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #edf7f6;
  color: #1d6f60;
}

.fd-owner-restaurant-card__icon {
  width: 3.5rem;
  height: 3.5rem;
}

.fd-owner-restaurant-card__identity {
  min-width: 0;
}

.fd-owner-restaurant-card__identity h2 {
  overflow-wrap: anywhere;
  color: var(--boonia-admin-text, #0d1f1e);
  font-size: 1.2rem;
  font-weight: var(--boonia-admin-weight-bold);
  line-height: 1.2;
}

.fd-owner-restaurant-card__identity p {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  color: var(--boonia-admin-text-muted, #526763);
  font-size: 0.8rem;
  font-weight: 600;
}

.fd-owner-restaurant-card__badges {
  display: flex;
  grid-column: 2;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fd-owner-restaurant-card__progress {
  display: grid;
  gap: 0.55rem;
}

.fd-owner-restaurant-card__progress-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--boonia-admin-text-muted, #526763);
  font-size: 0.78rem;
}

.fd-owner-restaurant-card__progress-label strong {
  color: var(--boonia-admin-text, #0d1f1e);
  font-weight: var(--boonia-admin-weight-semibold);
}

.fd-owner-restaurant-card__progress-track {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(13, 31, 30, 0.08);
}

.fd-owner-restaurant-card__progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #21867a;
}

.fd-owner-restaurant-card__next {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(13, 31, 30, 0.08);
  padding-top: 1rem;
}

.fd-owner-restaurant-card__next > div {
  min-width: 0;
}

.fd-owner-restaurant-card__next h3 {
  margin-top: 0.3rem;
  overflow-wrap: anywhere;
  color: var(--boonia-admin-text, #0d1f1e);
  font-size: 0.95rem;
  font-weight: var(--boonia-admin-weight-semibold);
}

.fd-owner-restaurant-card__next p:last-child {
  margin-top: 0.3rem;
  color: var(--boonia-admin-text-muted, #526763);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
}

.fd-owner-restaurant-card__next .boonia-admin-button {
  flex: 0 0 auto;
}

.fd-owner-restaurants-empty {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  border: 1px dashed rgba(33, 134, 122, 0.28);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem 1.5rem;
  text-align: center;
}

.fd-owner-restaurants-empty__icon {
  width: 3rem;
  height: 3rem;
}

.fd-owner-restaurants-empty h2 {
  color: var(--boonia-admin-text, #0d1f1e);
  font-size: 1.05rem;
  font-weight: var(--boonia-admin-weight-bold);
}

.fd-owner-restaurants-empty p {
  max-width: 30rem;
  color: var(--boonia-admin-text-muted, #526763);
  font-size: 0.85rem;
  font-weight: 600;
}

.fd-owner-restaurants-empty .boonia-admin-button {
  margin-top: 0.45rem;
}

.fd-restaurant-create-page .fd-restaurant-details-page__intro h1 {
  margin-top: 0.2rem;
  color: var(--boonia-admin-text, #0d1f1e);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: var(--boonia-admin-weight-bold);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.fd-restaurant-create-page .fd-restaurant-details-page__intro > div > p:last-child {
  margin-top: 0.45rem;
  color: var(--boonia-admin-text-muted, #526763);
  font-size: 0.95rem;
  font-weight: 600;
}

.fd-restaurant-create-form-card {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.fd-menu-category-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(13, 31, 30, 0.06);
  border-radius: 1rem;
  background: #f6fbf9;
  padding: 1rem;
}

.fd-menu-category-card h3 {
  overflow-wrap: anywhere;
  color: #0d1f1e;
  font-size: 1rem;
  font-weight: var(--boonia-admin-weight-bold);
}

.fd-menu-category-card p {
  margin-top: 0.35rem;
  color: #526763;
  font-size: 0.75rem;
  font-weight: 700;
}

.fd-financial-page {
  --fd-financial-line: rgba(13, 31, 30, 0.11);
  --fd-financial-muted: #526763;
}

.fd-financial-eyebrow {
  color: #21867a;
  font-size: 0.72rem;
  font-weight: var(--boonia-admin-weight-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fd-financial-summary-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  border: 1px solid var(--fd-financial-line);
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.8rem 1rem;
  box-shadow: 0 10px 28px rgba(16, 32, 31, 0.05);
}

.fd-financial-summary-card dt,
.fd-financial-summary-card dd {
  min-width: 0;
}

.fd-financial-summary-card dt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #526763;
  font-size: 0.75rem;
  font-weight: var(--boonia-admin-weight-semibold);
}

.fd-financial-summary-card dd {
  grid-column: 2;
  margin-top: -0.65rem;
  color: #0d1f1e;
  font-size: 1rem;
  font-weight: var(--boonia-admin-weight-bold);
}

.fd-financial-icon {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf7f6;
  color: #21867a;
}

.fd-financial-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.fd-financial-icon--warning {
  background: rgba(252, 191, 73, 0.18);
  color: #8a5700;
}

.fd-financial-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.fd-financial-section-heading p,
.fd-financial-method > p {
  margin-top: 0.2rem;
  color: var(--fd-financial-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.fd-financial-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-weight: var(--boonia-admin-weight-bold);
  line-height: 1;
}

.fd-financial-status.is-ready {
  background: #e4f5ed;
  color: #176b4d;
}

.fd-financial-status.is-incomplete {
  background: #fff0cf;
  color: #8a5700;
}

.fd-financial-status.is-disabled {
  background: #eef1f0;
  color: #526763;
}

.fd-financial-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fd-financial-field {
  min-width: 0;
}

.fd-financial-field > label,
.fd-financial-method legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #0d1f1e;
  font-size: 0.78rem;
  font-weight: var(--boonia-admin-weight-bold);
}

.fd-financial-field > p,
.fd-financial-field .boonia-admin-dropdown + p {
  margin-top: 0.35rem;
  color: var(--fd-financial-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.fd-financial-input-suffix {
  display: flex;
  align-items: stretch;
  margin-top: 0.4rem;
  overflow: hidden;
  border: 1px solid rgba(13, 31, 30, 0.14);
  border-radius: 0.75rem;
  background: #fff;
}

.fd-financial-input-suffix input {
  width: 100%;
  border: 0;
  border-radius: 0;
}

.fd-financial-input-suffix > span {
  display: inline-flex;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(13, 31, 30, 0.08);
  background: #f6fbf9;
  color: #526763;
  font-size: 0.78rem;
  font-weight: var(--boonia-admin-weight-bold);
}

.fd-financial-error {
  border: 1px solid #f0b2ad;
  border-radius: 0.75rem;
  background: #fff0ef;
  color: #a33a32;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.fd-financial-error-text {
  margin-top: 0.35rem;
  color: #a33a32;
  font-size: 0.72rem;
  font-weight: var(--boonia-admin-weight-semibold);
}

.fd-financial-preview-region {
  min-width: 0;
}

.fd-financial-preview-panel {
  border: 1px solid rgba(33, 134, 122, 0.16);
  border-radius: 1rem;
  background: #f6fbf9;
  padding: 1rem;
}

.fd-financial-preview-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.fd-financial-preview-heading h2 {
  color: #0d1f1e;
  font-size: 0.95rem;
  font-weight: var(--boonia-admin-weight-bold);
}

.fd-financial-preview-heading p {
  margin-top: 0.2rem;
  color: #526763;
  font-size: 0.72rem;
  font-weight: 600;
}

.fd-financial-preview-values {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fd-financial-preview-values > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  border: 1px solid rgba(13, 31, 30, 0.08);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.7rem 0.8rem;
}

.fd-financial-preview-values span {
  color: #526763;
  font-size: 0.7rem;
  font-weight: var(--boonia-admin-weight-semibold);
  overflow-wrap: anywhere;
}

.fd-financial-preview-values strong {
  color: #0d1f1e;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  font-weight: var(--boonia-admin-weight-bold);
  overflow-wrap: anywhere;
}

.fd-financial-preview-values .is-total {
  border-color: rgba(33, 134, 122, 0.24);
  background: #edf7f6;
  grid-column: span 3;
}

.fd-financial-preview-values .is-total strong {
  color: #21867a;
  font-size: 1.15rem;
}

.fd-financial-preview-error {
  border: 1px solid #f0b2ad;
  border-radius: 0.75rem;
  background: #fff0ef;
  color: #a33a32;
  padding: 0.8rem 1rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.fd-financial-preview-error ul {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.35rem;
  padding-left: 1.1rem;
}

.fd-financial-card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  border-top: 1px solid rgba(13, 31, 30, 0.08);
  padding-top: 1rem;
}

.fd-financial-switch {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  color: #0d1f1e;
  font-size: 0.78rem;
  font-weight: var(--boonia-admin-weight-semibold);
}

.fd-financial-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fd-financial-switch-track {
  position: relative;
  display: inline-flex;
  width: 2.7rem;
  height: 1.55rem;
  align-items: center;
  border-radius: 999px;
  background: #cbd7d3;
  transition: background-color 180ms ease;
}

.fd-financial-switch-track span {
  width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.18rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(13, 31, 30, 0.2);
  transition: transform 180ms ease;
}

.fd-financial-switch input:checked + .fd-financial-switch-track {
  background: #21867a;
}

.fd-financial-switch input:checked + .fd-financial-switch-track span {
  transform: translateX(1.12rem);
}

.fd-financial-switch input:focus-visible + .fd-financial-switch-track {
  outline: 3px solid rgba(33, 134, 122, 0.35);
  outline-offset: 3px;
}

.fd-financial-progress {
  height: 0.55rem;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f0ed;
}

.fd-financial-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #21867a;
}

.fd-financial-checklist,
.fd-financial-history {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.fd-financial-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.fd-financial-check-icon {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #21867a;
  color: #fff;
}

.fd-financial-checklist li.is-incomplete .fd-financial-check-icon {
  background: #ff6b4a;
}

.fd-financial-check-icon svg {
  width: 0.8rem;
  height: 0.8rem;
}

.fd-financial-checklist strong,
.fd-financial-history strong {
  color: #0d1f1e;
  font-size: 0.76rem;
  font-weight: var(--boonia-admin-weight-semibold);
}

.fd-financial-checklist p,
.fd-financial-history small {
  display: block;
  margin-top: 0.15rem;
  color: var(--fd-financial-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.fd-financial-method-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fd-financial-method {
  min-width: 0;
  border: 1px solid rgba(13, 31, 30, 0.08);
  border-radius: 1rem;
  background: #f6fbf9;
  padding: 1rem;
}

.fd-financial-method legend {
  width: 100%;
  flex-wrap: wrap;
}

.fd-financial-method legend svg,
.fd-financial-credential-panel h3 svg {
  width: 1.1rem;
  height: 1.1rem;
  color: #21867a;
}

.fd-financial-method legend .fd-financial-status {
  margin-left: auto;
}

.fd-financial-credential-panel {
  margin-top: 1rem;
  border-radius: 0.9rem;
  background: rgba(233, 247, 245, 0.75);
  padding: 0.85rem;
}

.fd-financial-credential-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  color: #0d1f1e;
  font-size: 0.78rem;
  font-weight: var(--boonia-admin-weight-bold);
}

.fd-financial-history > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.75rem;
  background: #f6fbf9;
  padding: 0.7rem 0.8rem;
}

.fd-financial-history time {
  flex-shrink: 0;
  color: #526763;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  font-weight: var(--boonia-admin-weight-semibold);
}

.fd-financial-empty {
  color: #526763;
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 639px) {
  .fd-financial-form-grid,
  .fd-financial-method-grid {
    grid-template-columns: 1fr;
  }

  .fd-financial-preview-values {
    grid-template-columns: 1fr;
  }

  .fd-financial-preview-values .is-total {
    grid-column: auto;
  }

  .fd-financial-back,
  .fd-financial-card-footer > button {
    width: 100%;
  }

  .fd-financial-card-footer {
    flex-direction: column-reverse;
  }

  .fd-financial-method legend .fd-financial-status {
    margin-left: 0;
  }
}

.fd-admin-icon-badge {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

#admin-content table.min-w-full {
  border-collapse: separate;
  border-spacing: 0;
  overflow: visible;
  border: 1px solid rgba(13, 31, 30, 0.06);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(16, 32, 31, 0.08);
}

#admin-content table.min-w-full thead th {
  background: #f6fbf9;
}

#admin-content table.min-w-full tbody tr {
  transition: background-color 180ms ease, transform 180ms ease;
}

#admin-content table.min-w-full tbody tr:hover {
  background: rgba(233, 247, 245, 0.7);
}

.food-hero {
  isolation: isolate;
}

.food-hero::before,
.food-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.food-hero::before {
  right: -12%;
  top: 8%;
  width: 62%;
  height: 78%;
  border-radius: 40% 0 0 55%;
  background: linear-gradient(135deg, rgba(252, 191, 73, 0.24), rgba(33, 134, 122, 0.18));
  transform: rotate(-8deg);
}

.food-hero::after {
  left: -10%;
  bottom: 7%;
  width: 38%;
  height: 44%;
  border-radius: 0 55% 45% 0;
  background: linear-gradient(135deg, rgba(255, 247, 230, 0.08), rgba(42, 170, 156, 0.14));
}

.food-visual-card {
  animation: floatSoft 5.5s ease-in-out infinite;
}

.food-option-dialog {
  width: 100vw;
  max-width: none;
  border: 0;
  padding: 0;
  background: transparent;
}

.food-option-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.food-option-dialog::backdrop {
  background: rgba(13, 31, 30, 0.48);
  backdrop-filter: blur(4px);
}

.current-location-dialog {
  width: 100vw;
  max-width: none;
  border: 0;
  padding: 0;
  background: transparent;
}

.current-location-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.current-location-dialog::backdrop {
  background: rgba(13, 31, 30, 0.24);
}

.current-location-dialog__panel {
  width: min(100%, 42rem);
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
}

@media (min-width: 640px) {
  .current-location-dialog[open] {
    padding: 1rem;
  }

  .current-location-dialog__panel {
    width: min(100%, 46rem);
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
  }
}

.food-option-dialog__panel {
  max-height: min(84vh, 900px);
  overflow: hidden;
}

.food-option-dialog__panel [data-option-pagination] {
  max-height: calc(min(84vh, 900px) - 180px);
  overflow: auto;
  padding-right: 0.25rem;
}

.phone-animation {
  position: relative;
  width: min(100%, 340px);
}

.phone-shell {
  position: relative;
  margin-inline: auto;
  border-radius: 36px;
  background: #fff;
  border: 3px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(252, 191, 73, 0.3);
  animation: floatSoft 5.5s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  width: 86px;
  height: 17px;
  border-radius: 999px;
  background: #050505;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #fafafa;
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(13, 31, 30, 0.36));
}

.vid-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}

.rating-float {
  position: absolute;
  right: -26px;
  bottom: 44px;
  z-index: 4;
}

.category-card,
.restaurant-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -36px auto;
  width: 118px;
  height: 72px;
  border-radius: 28px;
  background: rgba(252, 191, 73, 0.18);
  transform: rotate(-16deg);
  transition: transform 220ms ease;
}

.category-card:hover,
.restaurant-card:hover {
  transform: translateY(-6px);
  border-color: rgba(33, 134, 122, 0.22);
  box-shadow: 0 22px 60px rgba(13, 31, 30, 0.14);
}

.category-card:hover::after {
  transform: translate(-12px, -12px) rotate(-16deg) scale(1.12);
}

.restaurant-card img {
  transition: transform 280ms ease;
}

.restaurant-card:hover img {
  transform: scale(1.04);
}

.delivery-cta {
  position: relative;
  overflow: hidden;
}

.delivery-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(252, 191, 73, 0.11) 54%, transparent 100%);
  pointer-events: none;
}

.fd-toast-region {
  position: fixed;
  inset: 1rem 1rem auto;
  z-index: 80;
  pointer-events: none;
}

.fd-toast-stack {
  display: grid;
  gap: 0.75rem;
}

.fd-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  border: 1px solid transparent;
  border-radius: 1.5rem;
  padding: 1rem 1rem 1rem 0.9rem;
  box-shadow: 0 18px 50px rgba(16, 32, 31, 0.12);
  backdrop-filter: blur(14px);
  transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
  pointer-events: auto;
}

.fd-toast[data-toast-dismissing="true"] {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
}

.fd-toast--success {
  background: rgba(238, 250, 243, 0.98);
  border-color: rgba(184, 229, 206, 0.98);
  color: #185f56;
}

.fd-toast--error {
  background: rgba(255, 241, 242, 0.98);
  border-color: rgba(246, 185, 194, 0.98);
  color: #8f1d2d;
}

.fd-toast--warning {
  background: rgba(255, 248, 230, 0.98);
  border-color: rgba(242, 211, 140, 0.98);
  color: #9a6b05;
}

.fd-toast--info {
  background: rgba(237, 247, 255, 0.98);
  border-color: rgba(181, 215, 246, 0.98);
  color: #1f5d7d;
}

.fd-toast__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  margin-top: 0.05rem;
}

.fd-toast__icon--success {
  background: rgba(33, 134, 122, 0.12);
  color: #1e7a6d;
}

.fd-toast__icon--error {
  background: rgba(167, 29, 46, 0.12);
  color: #a71d2e;
}

.fd-toast__icon--warning {
  background: rgba(194, 136, 0, 0.14);
  color: #9a6b05;
}

.fd-toast__icon--info {
  background: rgba(31, 93, 125, 0.12);
  color: #1f5d7d;
}

.fd-toast__text {
  color: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.fd-toast__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-left: auto;
  border-radius: 999px;
  color: currentColor;
  opacity: 0.7;
  transition: background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.fd-toast__close:hover,
.fd-toast__close:focus-visible {
  background: rgba(13, 31, 30, 0.06);
  opacity: 1;
  transform: scale(1.02);
  outline: none;
}

.fd-notification-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  z-index: 70;
  width: min(30rem, calc(100vw - 1.5rem));
  max-height: min(32rem, calc(100vh - 8rem));
  overflow: hidden;
  border: 1px solid rgba(13, 31, 30, 0.08);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(16, 32, 31, 0.16);
  backdrop-filter: blur(16px);
}

.fd-notification-panel__body {
  display: grid;
  gap: 0.75rem;
  max-height: calc(min(32rem, calc(100vh - 8rem)) - 4.75rem);
  overflow-y: auto;
  padding: 1rem;
}

.fd-notification-empty {
  display: grid;
  place-items: center;
  min-height: 7.5rem;
  text-align: center;
}

.fd-notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 1.25rem;
  padding: 0.95rem 1rem;
  text-align: left;
  box-shadow: 0 10px 28px rgba(16, 32, 31, 0.05);
}

.fd-notification-item:hover,
.fd-notification-item:focus-visible {
  transform: translateY(-1px);
}

.fd-notification-item--unread {
  border-color: rgba(33, 134, 122, 0.14);
  background: rgba(237, 247, 246, 0.85);
}

.fd-notification-item--read {
  border-color: rgba(13, 31, 30, 0.06);
  background: rgba(255, 255, 255, 0.96);
}

.fd-notification-item__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  margin-top: 0.05rem;
}

.fd-notification-item__icon--success {
  background: rgba(33, 134, 122, 0.12);
  color: #1e7a6d;
}

.fd-notification-item__icon--error {
  background: rgba(255, 107, 74, 0.14);
  color: #c23e24;
}

.fd-notification-item__content {
  min-width: 0;
  flex: 1;
}

.fd-notification-item__title {
  color: #0d1f1e;
  font-size: 0.93rem;
  font-weight: var(--boonia-admin-weight-semibold);
  line-height: 1.45;
}

.fd-notification-item__meta {
  margin-top: 0.35rem;
  color: rgba(13, 31, 30, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.fd-notification-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: var(--boonia-admin-weight-semibold);
  line-height: 1;
}

.fd-notification-chip--muted {
  background: rgba(13, 31, 30, 0.06);
  color: rgba(13, 31, 30, 0.72);
}

.fd-notification-chip--warning {
  background: rgba(255, 107, 74, 0.12);
  color: #c23e24;
}

.fd-notification-chip--success {
  background: rgba(33, 134, 122, 0.12);
  color: #1e7a6d;
}

.animate-fade-up {
  animation: fadeUp 700ms ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 640px) {
  .phone-animation {
    width: min(100%, 292px);
  }

  .phone-shell {
    border-radius: 36px;
  }

  .rating-float {
    right: -18px;
    bottom: 36px;
  }

  .fd-toast-region {
    top: 0.75rem;
    inset-inline: 0.75rem;
  }

  .fd-notification-panel {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    top: 5rem;
    width: auto;
    max-height: calc(100vh - 6rem);
  }

  .fd-notification-panel__body {
    max-height: calc(100vh - 10.75rem);
  }
}

@media (min-width: 1024px) {
  .fd-toast-region {
    top: 1.5rem;
    right: 1.5rem;
    left: auto;
    width: 24rem;
  }

  .fd-notification-panel__body {
    max-height: calc(32rem - 4.75rem);
  }
}

button,
a,
input {
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(33, 134, 122, 0.35);
  outline-offset: 3px;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
