/* 데모 전용 톤 보정 — PC앱 custom.css 위에 얹는다.
   PC앱 chrome(사이드바/풀 네비)을 제거하고 단순 상단바만 두는 데모용 스타일. */

.demo-body {
  background: #f5f6fa;
  min-height: 100vh;
}

/* 상단바 — PC앱 보다 살짝 어둡고 단순.
   PC custom.css 의 .global-topbar 는 position:fixed; height:48px; 이라 그대로 두면
   demo nav 가 그 뒤에 가려진다. position:static + height:auto 로 풀어서 문서 흐름 복귀. */
.demo-header .global-topbar {
  position: static !important;
  height: auto !important;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.demo-header .topbar-left,
.demo-header .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo-header .topbar-logo {
  text-decoration: none;
}

.demo-header .demo-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12.5px;
  font-weight: 500;
}

.demo-header .demo-banner i {
  color: #38bdf8;
}

.demo-header .topbar-icon-btn {
  /* PC 의 .topbar-icon-btn 은 width:32px; height:32px; 이라 그대로 두면
     "랜딩" 두 글자가 칸에 안 맞아 줄바꿈된다. 자동 사이즈로 풀어줌. */
  width: auto;
  height: auto;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease;
}

.demo-header .topbar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
}

/* 메인 컨텐츠 — PC앱은 좌측 사이드바가 있어서 main-content-area 가 좌측 패딩이 큰데
   데모는 사이드바가 없으므로 패딩 줄여서 풀폭 사용.
   margin-top:48px(PC) 도 topbar 가 더 이상 fixed 가 아니라 제거. */
.demo-body .main-content-area {
  padding: 24px;
  margin-left: 0;
  margin-top: 0;
}

.demo-body .main-content-area .container {
  max-width: 1400px;
  margin: 0 auto;
}

/* PC앱 custom.css 가 사이드바 존재를 가정하고 left padding 을 주는 셀렉터를 덮어쓰기 */
.demo-body .left_menusection { display: none !important; }

/* 보고서 페이지 상단 헤더 카드(`.rpt-date-bar`)는 PC 에서 position:fixed; top:48px; left:200px
   으로 topbar+sidebar 자리에 맞춰 고정돼 있다. 데모에선 흐름대로 두고, 옆의 spacer 도 숨김. */
.demo-body .rpt-date-bar {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}
.demo-body .rpt-date-bar-spacer { display: none !important; }


/* ============================================================
   데모 nav — 데모 페이지 간 이동 (슬림 가로 탭)
   ============================================================ */
.demo-nav {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0 24px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.demo-nav::-webkit-scrollbar { height: 4px; }
.demo-nav::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 2px; }

.demo-nav-tab {
  padding: 14px 16px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.demo-nav-tab:hover {
  color: #0f172a;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.03);
}
.demo-nav-tab.active {
  color: #10b981;
  border-bottom-color: #10b981;
  font-weight: 700;
  pointer-events: none;  /* 현재 페이지는 클릭 불가 */
}
/* nav 탭에 demo-coming-soon 가 붙으면 디폴트 회색 처리 위에 톤만 살짝 보정 */
.demo-nav-tab.demo-coming-soon {
  opacity: 0.55;
  filter: none;
}
.demo-nav-tab.demo-coming-soon:hover {
  opacity: 0.8;
}


/* ============================================================
   데모 비활성 링크/버튼 — DEMO_ROUTES 매핑 없는 것에 demo_links.js 가 부여
   ============================================================ */
.demo-disabled {
  opacity: 0.45;
  cursor: not-allowed !important;
  filter: grayscale(0.35);
  text-decoration: none !important;
}
.demo-disabled:hover {
  opacity: 0.6;
}
/* DataTables 행의 thumb/이름 링크가 demo-disabled 되면 a 안의 img/text 까지 죽은 톤 */
.demo-disabled img,
.demo-disabled .prd-name-cell {
  filter: grayscale(0.5);
}

/* "곧 추가" 변형 — 영구 미지원과 구분. 회색을 덜 줘서 곧 살아날 거라는 인상. */
.demo-coming-soon {
  opacity: 0.7;
  filter: none;
}
.demo-coming-soon:hover {
  opacity: 0.9;
}
.demo-coming-soon img,
.demo-coming-soon .prd-name-cell {
  filter: none;
}


/* ============================================================
   데모 토스트 — 비활성 클릭 시 표시
   ============================================================ */
.demo-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 14px 16px 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 18px 40px -8px rgba(15, 23, 42, 0.45),
              0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  max-width: 92vw;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.demo-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.demo-toast-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.demo-toast-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.demo-toast-sub {
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}
.demo-toast-cta {
  background: #10b981;
  color: #0f172a !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.demo-toast-cta:hover {
  background: #34d399;
  transform: translateY(-1px);
}


/* ============================================================
   데모 페이지 하단 설명 섹션 — current_demo 기반 dynamic copy
   ============================================================ */
.demo-explainer {
  background: linear-gradient(180deg, #f5f6fa 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 48px 24px 56px;
}
.demo-explainer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.demo-explainer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .demo-explainer-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
  }
}

.demo-explainer-left {
  display: flex;
  flex-direction: column;
}
.demo-explainer-eyebrow {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: #10b981;
  background: #ecfdf5;
  padding: 5px 12px;
  border-radius: 999px;
}
.demo-explainer-title {
  margin: 18px 0 14px;
  font-size: 32px;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.demo-explainer-lede {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #047857;
  line-height: 1.5;
}
.demo-explainer-desc {
  margin: 0 0 28px;
  font-size: 15px;
  color: #52525B;
  line-height: 1.75;
}

.demo-explainer-cta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.demo-explainer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}
.demo-explainer-btn.primary {
  background: #0a0a0a;
  color: #fff;
}
.demo-explainer-btn.primary:hover {
  background: #27272a;
  color: #fff;
  text-decoration: none;
}
.demo-explainer-btn.ghost {
  background: #fff;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.demo-explainer-btn.ghost:hover {
  background: #ecfdf5;
  color: #047857;
  text-decoration: none;
}

.demo-explainer-right {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 18px 50px -28px rgba(15, 23, 42, 0.18);
}
.demo-explainer-features-title {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.01em;
}
.demo-explainer-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.demo-explainer-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #27272a;
  line-height: 1.55;
}
.demo-explainer-features li i {
  color: #10b981;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.demo-explainer-note {
  margin-top: 22px;
  padding: 14px 16px;
  background: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.55;
}
.demo-explainer-note i {
  color: #d97706;
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}
