/* RestCheck release hotfix 20260712-001 */

.rc-menu-divider {
  display: none !important;
}

.rc-horizontal-brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  text-align: left !important;
}

.rc-horizontal-brand img {
  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}

.rc-horizontal-brand h1,
.rc-horizontal-brand h2,
.rc-horizontal-brand strong,
.rc-horizontal-brand .brand-title {
  margin: 0 !important;
  line-height: 1.05 !important;
}

.rc-horizontal-brand p,
.rc-horizontal-brand small,
.rc-horizontal-brand .brand-subtitle {
  margin: 3px 0 0 !important;
  line-height: 1.1 !important;
}

@media (max-width: 820px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  [data-bottom-nav="true"].hidden,
  [data-bottom-nav="true"]:empty {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  [data-bottom-nav="true"]:not(.hidden):not(:empty) {
    position: fixed !important;
    left: 22px !important;
    right: 22px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    padding: 7px 10px !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center !important;
    justify-items: stretch !important;
    gap: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 28px !important;
    background: rgba(25, 28, 32, 0.88) !important;
    box-shadow:
      0 18px 48px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
    backdrop-filter: blur(18px) saturate(140%) !important;
    z-index: 2147483000 !important;
    transform: translate3d(0, 0, 0) !important;
  }

  [data-bottom-nav="true"] > *,
  [data-bottom-nav="true"] a,
  [data-bottom-nav="true"] button {
    min-width: 0 !important;
    width: 100% !important;
    height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    text-align: center !important;
    line-height: 1 !important;
    color: rgba(255, 255, 255, 0.64) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  [data-bottom-nav="true"] svg,
  [data-bottom-nav="true"] img {
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    min-height: 27px !important;
    max-width: 27px !important;
    max-height: 27px !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important;
    color: currentColor !important;
    stroke-width: 2 !important;
  }

  [data-bottom-nav="true"] span:not(.mobile-bottom-nav-icon),
  [data-bottom-nav="true"] small,
  [data-bottom-nav="true"] label,
  [data-bottom-nav="true"] p {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    color: currentColor !important;
  }

  [data-bottom-nav="true"] .mobile-bottom-nav-icon {
    position: relative !important;
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
  }

  [data-bottom-nav="true"] .mobile-bottom-nav-icon i {
    position: absolute !important;
    top: -4px !important;
    right: -8px !important;
    z-index: 3 !important;
    display: grid !important;
    min-width: 16px !important;
    width: auto !important;
    max-width: none !important;
    height: 16px !important;
    place-items: center !important;
    padding: 0 4px !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 1px solid #fff !important;
    border-radius: 999px !important;
    background: #ff3b30 !important;
    color: #fff !important;
    font-size: 9px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
  }

  [data-bottom-nav="true"] .active,
  [data-bottom-nav="true"] [aria-current="page"],
  [data-bottom-nav="true"] [data-active="true"] {
    color: #fff !important;
  }

  [data-bottom-nav="true"] .active svg,
  [data-bottom-nav="true"] [aria-current="page"] svg,
  [data-bottom-nav="true"] [data-active="true"] svg {
    color: #fff !important;
  }
}
/* RESTCHECK MOBILE HOTFIX 20260712-020 */
@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body {
    padding-bottom: calc(118px + env(safe-area-inset-bottom)) !important;
  }

  body.payment-provider-open #mobileBottomNav,
  body.payment-provider-open #mobileBottomNav.rc-mobile-bottom-nav,
  body.payment-provider-open .rc-mobile-bottom-nav,
  body.task-camera-open #mobileBottomNav,
  body.task-camera-open #mobileBottomNav.rc-mobile-bottom-nav,
  body.task-camera-open .rc-mobile-bottom-nav,
  body.task-detail-open #mobileBottomNav,
  body.task-detail-open #mobileBottomNav.rc-mobile-bottom-nav,
  body.task-detail-open .rc-mobile-bottom-nav,
  body.health-checkin-open #mobileBottomNav,
  body.health-checkin-open #mobileBottomNav.rc-mobile-bottom-nav,
  body.health-checkin-open .rc-mobile-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Never paint an empty/hidden dock — display:grid !important used to
     beat .hidden and cover the mobile shell with a blank dark bar. */
  #mobileBottomNav.hidden,
  #mobileBottomNav.mobile-bottom-nav.hidden,
  #mobileBottomNav.rc-mobile-bottom-nav.hidden,
  #mobileBottomNav:empty,
  #mobileBottomNav.rc-mobile-bottom-nav:empty,
  .rc-mobile-bottom-nav.hidden,
  .rc-mobile-bottom-nav:empty {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #mobileBottomNav.mobile-bottom-nav:not(.hidden):not(:empty),
  #mobileBottomNav.rc-mobile-bottom-nav:not(.hidden):not(:empty),
  .rc-mobile-bottom-nav:not(.hidden):not(:empty) {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 72px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 10px 8px !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 0 !important;
    background: rgba(18, 21, 24, 0.88) !important;
    -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
    backdrop-filter: blur(22px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 28px !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28) !important;
    z-index: 9990 !important;
    overflow: visible !important;
  }

  .rc-mobile-bottom-nav > .mobile-bottom-nav-item {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-rows: 28px auto !important;
    justify-items: center !important;
    align-content: center !important;
    align-items: center !important;
    gap: 2px !important;
    text-align: center !important;
    line-height: 1.05 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    color: rgba(255, 255, 255, 0.68) !important;
    background: transparent !important;
    border: 0 !important;
    overflow: visible !important;
  }

  .rc-mobile-bottom-nav > *[aria-current="page"],
  .rc-mobile-bottom-nav > *.active,
  .rc-mobile-bottom-nav > *.is-active {
    color: #ffffff !important;
  }

  .rc-mobile-bottom-nav svg,
  .rc-mobile-bottom-nav img {
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    min-height: 27px !important;
    max-width: 27px !important;
    max-height: 27px !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
  }

  .rc-mobile-bottom-nav span:not(.mobile-bottom-nav-icon),
  .rc-mobile-bottom-nav small,
  .rc-mobile-bottom-nav b,
  .rc-mobile-bottom-nav strong {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }

  .rc-restaurant-brand-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    text-align: left !important;
  }

  .rc-restaurant-brand-row img {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    border-radius: 14px !important;
    object-fit: cover !important;
  }

  .rc-restaurant-brand-row h1,
  .rc-restaurant-brand-row h2,
  .rc-restaurant-brand-row h3,
  .rc-restaurant-brand-row p,
  .rc-restaurant-brand-row div,
  .rc-restaurant-brand-row span {
    text-align: left !important;
  }

  .rc-menu-divider-before {
    border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
    margin-top: 14px !important;
    padding-top: 14px !important;
  }

  /* Compact employee-picker overrides removed: they squeezed lists to a
     narrow centered column inside schedule/manual-entry forms. */
}
