/* QuickTable native WKWebView focused styles — applied only when html.qt-native-embed */
html.qt-native-embed body.qt-native-embed,
html.qt-native-embed body {
  padding-bottom: 0 !important;
}

/* Hide PWA/desktop chrome when embedded: sidebar, mobile bottom nav, dashboard header, PWA banners */
html.qt-native-embed aside,
html.qt-native-embed nav.md\:hidden.fixed.bottom-0,
html.qt-native-embed #pwa-install-banner,
html.qt-native-embed #pwa-online-status {
  display: none !important;
}

/* Native sheets support planned bookings and walk-ins; recurrence stays hidden. */
html.qt-native-embed #recurrence-fields {
  display: none !important;
}

html.qt-native-embed .mobile-logo-container {
  display: none !important;
}

/* Focused header: keep only the booking card header visible; hide back-link when embedded */
html.qt-native-embed header .btn-secondary {
  display: none !important;
}

html.qt-native-embed main {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* Ensure card stands alone without outer flex sidebar spacing */
html.qt-native-embed .flex.h-screen {
  display: block !important;
  height: auto !important;
  min-height: 100vh;
}

/* Override flex sidebar layout overflow */
html.qt-native-embed main.flex-1 {
  flex: none !important;
  width: 100% !important;
}

/* Safari's native date control can otherwise outgrow the booking card. */
html.qt-native-embed #booking-form-element input[type="date"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

html.qt-native-embed #booking-form-element input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

/* Tables assignment: ensure drawer content is full-width when embedded */
html.qt-native-embed #booking-drawer [data-drawer-content] {
  width: 100% !important;
}

/* Keep toast / notification containers subtle in sheet */
html.qt-native-embed #pwa-notification-container {
  top: 8px !important;
  right: 8px !important;
}
