
/* Layout shell lock — 20261003.04
   Body row = sidebar + main only. Footer must live inside main. */
html, body.rc-app-shell { height: 100%; margin: 0; }
body.rc-app-shell {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  overflow: hidden;
  max-width: 100vw;
}
body.rc-app-shell > #rc-sidebar,
body.rc-app-shell > aside.sidebar {
  flex: 0 0 auto !important;
  width: 15rem;
  max-width: 15rem;
  min-width: 4.5rem;
  height: 100vh !important;
  height: 100dvh !important;
  height: -webkit-fill-available;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  z-index: 40;
  position: relative;
}
body.rc-app-shell > #rc-sidebar.collapsed,
body.rc-app-shell > aside.sidebar.collapsed {
  width: 4.5rem !important;
  max-width: 4.5rem !important;
  min-width: 4.5rem !important;
}
body.rc-app-shell > #rc-main-content,
body.rc-app-shell > main#rc-main-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
}
body.rc-app-shell > footer[role="contentinfo"] { display: none !important; }
body.rc-app-shell > nav.bottom-nav,
body.rc-app-shell > .bottom-nav {
  position: fixed !important;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  flex: none !important;
}
@media (min-width: 768px) {
  body.rc-app-shell > nav.bottom-nav,
  body.rc-app-shell > .bottom-nav { display: none !important; }
}
body.rc-has-role-rail { padding-left: 2.75rem !important; box-sizing: border-box; }
#rc-content { flex: 1 1 auto; min-height: 0; overflow: auto; }
html[data-theme="dark"] #rc-sidebar,
html[data-theme="dark"] aside.sidebar {
  background: #020617 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] #rc-sidebar a,
html[data-theme="dark"] #rc-sidebar .sidebar-link,
html[data-theme="dark"] #rc-sidebar .link-text,
html[data-theme="dark"] #rc-sidebar i { color: #e2e8f0 !important; }
html[data-theme="dark"] #rc-sidebar .sidebar-link.active {
  background: rgba(59, 130, 246, 0.25) !important;
  color: #dbeafe !important;
}
html[data-theme="reserve"] #rc-sidebar,
html[data-theme="reserve"] aside.sidebar {
  background: #efe6d4 !important;
  color: #1c1917 !important;
  border-right: 1px solid #d6d3d1 !important;
}
html[data-theme="reserve"] #rc-sidebar a,
html[data-theme="reserve"] #rc-sidebar .sidebar-link,
html[data-theme="reserve"] #rc-sidebar .link-text,
html[data-theme="reserve"] #rc-sidebar i { color: #1c1917 !important; }
html[data-theme="reserve"] #rc-sidebar .sidebar-link.active {
  background: #7c2d12 !important;
  color: #fff7ed !important;
}
html[data-theme="light"] #rc-sidebar,
html[data-theme="light"] aside.sidebar {
  background: #fff !important;
  color: #0f172a !important;
  border-right: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #rc-sidebar a,
html[data-theme="light"] #rc-sidebar .sidebar-link { color: #0f172a !important; }

/* Sidebar theme + Sign out must stay visible (not clipped by overflow) */
body.rc-app-shell > #rc-sidebar,
body.rc-app-shell > aside.sidebar {
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
#rc-sidebar-nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}
.rc-sidebar-foot {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
  margin-top: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 6 !important;
  background: var(--rc-side-bg, #f3f2f1) !important;
  border-top: 1px solid var(--rc-side-border, rgba(0,0,0,.12)) !important;
  padding: 10px 12px !important;
  gap: 8px !important;
}
.rc-theme-seg {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  visibility: visible !important;
}
.rc-theme-seg__btn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 30px !important;
  color: var(--rc-side-ink, #201F1E) !important;
  background: var(--rc-card, #fff) !important;
  border: 1px solid var(--rc-side-border, #e2e8f0) !important;
}
.rc-theme-seg__btn.is-active,
.rc-theme-seg__btn[aria-pressed="true"] {
  background: var(--rc-side-active-bg, #eff6fc) !important;
  color: var(--rc-side-active-ink, #005a9e) !important;
  border-color: var(--rc-accent, #0078d4) !important;
}
.rc-sidebar-logout {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--rc-side-ink, #201F1E) !important;
  background: var(--rc-card, #fff) !important;
  border: 1px solid var(--rc-side-border, #e2e8f0) !important;
  min-height: 40px !important;
}
html[data-theme="dark"] .rc-theme-seg__btn,
html[data-theme="dark"] .rc-sidebar-logout {
  background: #242322 !important;
  color: #f3f2f1 !important;
  border-color: #3b3a39 !important;
}
html[data-theme="dark"] .rc-sidebar-foot {
  background: var(--rc-side-bg, #141312) !important;
}
/* Mobile drawer: still show theme+logout at bottom of open drawer */
@media (max-width: 767px) {
  aside.sidebar.rc-sidebar-mobile-open .rc-sidebar-foot {
    display: flex !important;
  }
}
