/* Version: v1.0.0 (2026-07-21) | 모바일 하단탭 스크롤 여백 — 넉넉한 safe area */
:root,
html.adm-mobile,
html.demo-phone {
  --adm-bottom-nav-offset: calc(160px + env(safe-area-inset-bottom, 0px));
}

/* 총괄 · 파트너 · 데모 — 스크롤 컨테이너 하단 여백 */
html.adm-mobile body.adm-body .adm-content,
html.adm-mobile body.adm-body .adm-content.adm-content--flush,
html.adm-mobile body.adm-body .adm-form-body,
html.adm-mobile body.adm-body .ptn-prod-drawer-body,
body.demo-console-body .adm-content,
html.demo-phone body.demo-console-body .adm-content {
  padding-bottom: var(--adm-bottom-nav-offset) !important;
  scroll-padding-bottom: var(--adm-bottom-nav-offset) !important;
  box-sizing: border-box !important;
}

/* 물리 spacer — iOS WebKit 등 padding-only 미적용 대비 */
.adm-bottom-scroll-spacer {
  display: block !important;
  width: 100% !important;
  height: var(--adm-bottom-nav-offset, 160px) !important;
  min-height: var(--adm-bottom-nav-offset, 160px) !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

@media (min-width: 1024px) {
  html.adm-desktop body.adm-body:not(.demo-console-body) .adm-content,
  html.adm-desktop body.adm-body:not(.demo-console-body) .adm-content.adm-content--flush,
  html.adm-desktop body.adm-body:not(.demo-console-body) .adm-form-body,
  html.adm-desktop body.adm-body:not(.demo-console-body) .ptn-prod-drawer-body {
    padding-bottom: 1.25rem !important;
    scroll-padding-bottom: 1.25rem !important;
  }

  html:not(.demo-phone) body.demo-console-body .adm-content {
    padding-bottom: 1.25rem !important;
    scroll-padding-bottom: 1.25rem !important;
  }

  html.adm-desktop .adm-bottom-scroll-spacer,
  html:not(.demo-phone) .adm-bottom-scroll-spacer {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
  }
}
