/* Localsewa UI-03 v32.9.28 — Customer navigation only.
 * Requires approved UI-02 v32.9.27 and existing v32.8.74 bottom nav.
 * Deliberately exclude provider bottom navigation and all header controls.
 * No routes, click handlers, profile/auth behavior or API calls are changed.
 */
@media (max-width: 767.98px) {
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) {
    box-sizing: border-box !important;
    display: block !important;
    height: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 4px 8px env(safe-area-inset-bottom, 0px) !important;
    background: #fff !important;
    border-top: 1px solid #e3ebe6 !important;
    box-shadow: 0 -5px 20px rgba(9, 47, 28, .065) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    font-family: Inter, system-ui, sans-serif !important;
  }
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) > div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    height: 63px !important;
    min-height: 63px !important;
    width: 100% !important;
    max-width: 448px !important;
    margin: 0 auto !important;
  }
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 60px !important;
    min-height: 60px !important;
    gap: 3px !important;
    padding: 2px 1px !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #718177 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    transition: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a::before,
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a[aria-current="page"]::before {
    display: none !important; content: none !important;
  }
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a > div:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 43px !important;
    height: 33px !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #718177 !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
  }
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a svg {
    width: 21px !important;
    height: 21px !important;
    stroke-width: 1.8 !important;
  }
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a > span:last-child {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    color: inherit !important;
    font-size: 10px !important;
    font-weight: inherit !important;
    letter-spacing: -.01em !important;
    transition: none !important;
  }
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a[aria-current="page"],
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a[aria-current="page"]:hover,
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a[aria-current="page"]:active {
    color: #087A3F !important;
    font-weight: 700 !important;
  }
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a[aria-current="page"] > div:first-child,
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a[aria-current="page"]:hover > div:first-child,
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a[aria-current="page"]:active > div:first-child {
    color: #087A3F !important;
    background: #E5F5E9 !important;
    box-shadow: none !important;
    transform: none !important;
  }
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a[aria-current="page"] svg {
    stroke-width: 2 !important;
  }
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a:hover,
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a:active {
    color: #718177 !important;
  }
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a:hover > div:first-child,
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a:active > div:first-child {
    background: transparent !important;
    color: #718177 !important;
  }
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a:focus-visible {
    outline: 2px solid #087A3F !important;
    outline-offset: -2px !important;
  }
  /* Preserve the production notification badge, if present. */
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) [data-nav-badge] {
    top: 1px !important;
    left: calc(50% + 9px) !important;
  }
}

/* The current header exposes the menu below 1024px, while old sidebar uses
 * md:hidden at >=768px. Explicitly restore the original side drawer on tablets
 * and coarse-pointer touch laptops where the header hamburger is available. */
@media (min-width: 768px) and (max-width: 1023.98px),
       (min-width: 1024px) and (max-width: 1439.98px) and (hover: none) and (pointer: coarse) {
  .ls-customer-sidebar-backdrop {
    display: block !important;
  }
  .ls-customer-sidebar {
    display: flex !important;
    width: min(360px, 82vw) !important;
    max-width: 360px !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  .ls-customer-sidebar[data-state="open"] {
    transform: translateX(0) !important;
  }
  .ls-customer-sidebar[data-state="closed"] {
    transform: translateX(100%) !important;
    pointer-events: none !important;
  }
  .ls-customer-sidebar-scroll {
    min-height: 0 !important;
    flex: 1 1 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  .ls-customer-sidebar-footer {
    flex-shrink: 0 !important;
  }
}
@media (max-width: 767.98px) {
  .ls-customer-sidebar {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
  .ls-customer-sidebar-scroll {
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ls-customer-sidebar, .ls-customer-sidebar-backdrop,
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a,
  nav[data-bottom-navigation]:not(.provider-bottom-nav-v329) a > div:first-child { transition: none !important; }
}
