/* app.css - Bootstrap 5.3.8 보조 스타일 (CSP style-src 'self': 인라인 style 대신 클래스 사용) */
.admin-nav { min-height: calc(100vh - 56px); }
@media (max-width: 767.98px) { .admin-nav { min-height: 0; border-right: 0 !important; } }
.navbar .dropdown-menu { margin-top: 0; }

/* 페이지 빌더 블록 */
.block-hero { color: #fff; }
.block-hero .lead { opacity: .9; }
.hero-primary { background: #0d6efd; }
.hero-dark { background: #212529; }
.hero-gradient { background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%); color: #fff; }
.hero-light { background: #f1f4f9; color: #212529; }
.block-inactive { opacity: .45; outline: 2px dashed #dc3545; outline-offset: -2px; }
.pricing-table thead th { vertical-align: top; min-width: 9rem; }
.pricing-featured { background: rgba(13, 110, 253, .06) !important; }
.builder-table th, .builder-table td { min-width: 9rem; }
/* (r17) 블록 간격 (사이트 설정 > 페이지 블록 간격). 블록 = 위아래 여백만, 표 아래 여백 없음 */
.page-blocks .block .table { margin-bottom: 0; }
.page-blocks.gap-compact .block:not(.block-hero) > .container { padding-top: .6rem !important; padding-bottom: .6rem !important; }   /* py-4 유틸리티(!important) 덮어쓰기 */
.page-blocks.gap-compact .block h2 { margin-bottom: .6rem !important; }
.page-blocks.gap-compact .block .table > :not(caption) > * > * { padding: .4rem .6rem; }
.page-blocks.gap-normal .block:not(.block-hero) > .container { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.page-blocks.gap-wide .block .table { margin-bottom: 1rem; }
.border-dashed { border-style: dashed !important; }
.builder-table th:first-child { min-width: 10rem; }

/* 위지윅 본문 (Sanitizer 허용 클래스와 동일) */
.content-body { overflow-wrap: anywhere; }
.content-body img { max-width: 100%; height: auto; }
.content-body img.img-left { float: left; margin: 0 1rem .5rem 0; }
.content-body img.img-right { float: right; margin: 0 0 .5rem 1rem; }
.content-body img.img-center { display: block; margin: 0 auto .5rem; }
.content-body::after { content: ""; display: table; clear: both; }
.content-body blockquote { border-left: 4px solid #dee2e6; padding-left: 1rem; color: #6c757d; }
.content-body pre { background: #f8f9fa; padding: .75rem; border-radius: .375rem; }
.content-body table { width: auto; max-width: 100%; }
.content-body > :last-child { margin-bottom: 0; }
.ticket-note .content-body { background: #fffbea; }
.card .badge { vertical-align: middle; }

:where(:root) { --brand: #8b2b1c; --brand-dark: #6f2216; --brand-light: #f3eae8; --brand-contrast: #fff; --brand-rgb: 139, 43, 28; }  /* /theme.css 가 덮어씀 */

/* ===================================================================
   사이트 레이아웃 (호스팅 포털형) - 대표 색은 /theme.css 의 CSS 변수
   =================================================================== */
.site { font-size: .95rem; color: #222; background: #fff; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--brand-contrast); }
.link-brand { color: var(--brand); }
.site a { text-decoration: none; }
.site a:hover { text-decoration: underline; }

/* 상단 작은 링크 */
.site-topbar { background: #f4f4f4; border-bottom: 1px solid #e3e3e3; font-size: .8rem; }
.topbar-link { display: inline-block; padding: .3rem .7rem; color: #555; border-left: 1px solid #ddd; font-size: .8rem; line-height: 1.4; }
.topbar-link:first-child { border-left: 0; }
.topbar-login { background: var(--brand); color: var(--brand-contrast) !important; border-left: 0; }

/* 헤더 */
.site-header { padding: 1rem 0 .8rem; }
.site-logo img { max-height: 54px; width: auto; }
.logo-text { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; color: var(--brand); }
.site-slogan { font-size: 1.25rem; font-weight: 700; color: #333; flex: 1; text-align: center; }
.site-note { text-align: right; font-weight: 700; color: var(--brand); font-size: .9rem; line-height: 1.35; }

/* 주 메뉴 (GNB) - 데스크톱: 마우스를 올리면 모든 하위메뉴가 한 번에 펼쳐짐 */
.gnb-bar { background: var(--brand); position: relative; z-index: 1020; }
.gnb { list-style: none; margin: 0; padding: 0; }
.gnb-link { display: block; color: var(--brand-contrast); font-weight: 700; padding: .75rem 1rem; white-space: nowrap; }
.gnb-link:hover, .gnb-link:focus { color: var(--brand-contrast); text-decoration: none; background: var(--brand-dark); }
.gnb-sub { list-style: none; margin: 0; padding: .6rem 1rem; display: none; }
.gnb-sub a { display: block; padding: .18rem 0; color: #333; font-size: .85rem; }
.menu-em-bold { font-weight: 700; }
.menu-em-red { color: #d6261b !important; font-weight: 700; }
.menu-em-blue { color: #1557c0 !important; font-weight: 700; }
.menu-em-green { color: #2e8b28 !important; font-weight: 700; }
.menu-em-orange { color: #e06c00 !important; font-weight: 700; }
.menu-badge { display: inline-block; font-size: .62rem; font-weight: 700; line-height: 1; padding: .18em .35em; border-radius: .2rem; vertical-align: 1px; color: #fff; background: #e8590c; }
.menu-badge-new { background: #e03131; }
.menu-badge-hot { background: #f08c00; }
.menu-badge-best { background: var(--brand); color: var(--brand-contrast); }
.menu-badge-free { background: #2f9e44; }
.menu-badge-event { background: #7048e8; }
@media (min-width: 992px) {
  .gnb { display: flex !important; }
  .gnb-item { flex: 1 1 0; position: relative; border-left: 1px solid rgba(255, 255, 255, .15); }
  .gnb-item:last-child { border-right: 1px solid rgba(255, 255, 255, .15); }
  .gnb-sub { position: absolute; top: 100%; left: 0; right: 0; min-height: var(--gnb-panel-h, 200px); background: #fff; border-left: 1px solid #eee; }
  .gnb-bar:hover .gnb-sub, .gnb-bar:focus-within .gnb-sub { display: block; }
  .gnb-bar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(var(--gnb-panel-h, 200px) + 3px); background: #fff;
    border-bottom: 3px solid var(--brand); box-shadow: 0 8px 16px rgba(0, 0, 0, .12); display: none; z-index: -1; }
  .gnb-bar:hover::after, .gnb-bar:focus-within::after { display: block; }
  .gnb-bar.no-sub::after { display: none !important; }
}
/* 모바일: 햄버거 → 세로 메뉴, 대메뉴 옆 ▼ 로 하위메뉴 */
.gnb-toggler { border: 1px solid #ccc; background: #fff; border-radius: .3rem; padding: .45rem .5rem; }
.gnb-toggler span { display: block; width: 22px; height: 2px; background: #333; margin: 4px 0; }
@media (max-width: 991.98px) {
  .gnb { display: none; padding: .3rem 0; }
  .gnb-bar.is-open .gnb { display: block; }
  .gnb-item { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .gnb-toggle-sub { position: absolute; right: 0; top: 0; width: 3rem; height: 2.9rem; border: 0; background: transparent; color: var(--brand-contrast); }
  .gnb-toggle-sub::after { content: "▾"; font-size: 1.1rem; }
  .gnb-item.is-open .gnb-toggle-sub::after { content: "▴"; }
  .gnb-item.is-open .gnb-sub { display: block; background: #fff; }
}

/* 메인 */
.home-stage { position: relative; }
.wing { display: none; position: absolute; top: 1rem; width: 110px; }
.wing-left { right: 100%; margin-right: 14px; }
.wing-right { left: 100%; margin-left: 14px; }
@media (min-width: 1440px) { .wing { display: block; } }
.wing-banner { display: block; margin-bottom: .6rem; border: 1px solid #e5e5e5; background: #fff; }
.wing-banner img { display: block; width: 100%; height: auto; }

.notice-ticker { display: flex; align-items: center; border: 1px solid #ddd; height: 2.4rem; overflow: hidden; font-size: .85rem; }
.ticker-label { background: var(--brand); color: var(--brand-contrast); padding: 0 .8rem; height: 100%; display: flex; align-items: center; font-weight: 700; }
.ticker-list { list-style: none; margin: 0; padding: 0 .8rem; position: relative; flex: 1; height: 100%; }
.ticker-item { position: absolute; inset: 0 .8rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  opacity: 0; transform: translateY(100%); transition: opacity .4s, transform .4s; }
.ticker-item.is-on { opacity: 1; transform: none; }
.ticker-item a { color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-cat { color: var(--brand); font-weight: 700; margin-right: .4rem; }
.ticker-date { color: #888; font-size: .8rem; }
.ticker-more { padding: 0 .8rem; font-size: .8rem; color: #666; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .ticker-item { transition: none; } }

.side-box { border: 1px solid #ddd; padding: .8rem; margin-bottom: .8rem; background: #fff; }
.side-title { font-size: .9rem; font-weight: 700; margin-bottom: .6rem; color: #333; }
.side-login-btn { min-width: 4rem; }
.side-links { list-style: none; margin: .7rem 0 0; padding: 0; border-top: 1px solid #eee; }
.side-links li { border-bottom: 1px solid #eee; }
.side-links a { display: flex; justify-content: space-between; padding: .4rem .2rem; color: #444; font-size: .85rem; }
.side-links a::after { content: "+"; color: #aaa; }
.side-table { width: 100%; font-size: .8rem; }
.side-table th { width: 2.6rem; color: var(--brand); font-weight: 700; vertical-align: middle; }
.side-table td { padding: .25rem .1rem; border-bottom: 1px dotted #ddd; }
.ns-host { font-weight: 600; }
.ns-ip, .account-holder { color: #777; font-size: .78rem; }
.btn-copy { border: 1px solid #ccc; background: #fafafa; font-size: .65rem; padding: .1rem .35rem; color: #555; }
.account { padding: .35rem 0; border-bottom: 1px dotted #ddd; font-size: .85rem; }
.account:last-child { border-bottom: 0; }
.account-bank { font-weight: 700; }
.account-no { font-family: var(--bs-font-monospace); }
.side-cs { background: var(--brand-light); }
.cs-phone { font-size: 1.45rem; font-weight: 800; color: var(--brand); margin-bottom: .3rem; }
.cs-hours { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; font-size: .8rem; margin-bottom: .6rem; }
.cs-hours dt { font-weight: 700; }
.cs-hours dd { margin: 0; }

.main-slide { border: 1px solid #ddd; overflow: hidden; background: #f6f6f6; }
.main-slide img { display: block; width: 100%; height: auto; }
.slide-link { display: block; }
.banner-text { display: flex; flex-direction: column; justify-content: center; padding: 1.2rem 1.4rem; min-height: 120px; height: 100%; }
.banner-text strong { font-size: 1.15rem; line-height: 1.3; }
.banner-text small { margin-top: .35rem; opacity: .9; }
.slide-text { min-height: 300px; padding: 2rem 4.5rem; }
.slide-text strong { font-size: 2rem; }
.slide-text small { font-size: 1.05rem; }
@media (max-width: 575.98px) {
  .slide-text { min-height: 200px; padding: 1.5rem 3rem; }
  .slide-text strong { font-size: 1.35rem; }
  .slide-text small { font-size: .9rem; }
  .site-topbar .container { flex-wrap: nowrap !important; overflow-x: auto; justify-content: flex-start !important; }
  .topbar-link { white-space: nowrap; }
  .logo-text { font-size: 1.6rem; }
}
.banner-theme-brand { background: var(--brand); color: var(--brand-contrast); }
.banner-theme-dark { background: #2b2f36; color: #fff; }
.banner-theme-blue { background: #1c64d1; color: #fff; }
.banner-theme-green { background: #2b8a3e; color: #fff; }
.banner-theme-orange { background: #e8590c; color: #fff; }
.banner-theme-purple { background: #6741d9; color: #fff; }
.banner-theme-light { background: #f1f3f5; color: #222; }
.side-banner, .tile-banner { display: block; border: 1px solid #e3e3e3; overflow: hidden; }
.side-banner img, .tile-banner img { display: block; width: 100%; height: auto; }
.tile-banner .banner-text { min-height: 110px; }
.side-banner:hover, .tile-banner:hover, .wing-banner:hover, .slide-link:hover { text-decoration: none; filter: brightness(1.03); }

.product-tabs .nav-link { font-size: .85rem; padding: .4rem .8rem; color: #555; }
.product-tabs .nav-link.active { font-weight: 700; color: var(--brand); border-top: 2px solid var(--brand); }
.product-tabs .tab-content { border: 1px solid #dee2e6; border-top: 0; }
.product-intro { padding: 1rem; border-right: 1px solid #eee; }
.product-heading { font-size: 1.1rem; font-weight: 800; color: var(--brand); }
.product-img { max-width: 100%; height: auto; display: block; margin: .5rem 0; }
.product-table th { width: 22%; vertical-align: middle; text-align: center; color: var(--brand); font-weight: 800; background: #fafafa; }
.product-table td { font-size: .8rem; vertical-align: middle; }
.product-table tr.is-featured th, .product-table tr.is-featured td { background: var(--brand-light); }
.plan-specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .6rem; }
.plan-specs span { color: #1557c0; font-weight: 600; }
.plan-price { width: 24%; text-align: right; white-space: nowrap; }
.plan-price strong { font-size: 1rem; color: #d6261b; }

.notice-box .nav-link { font-size: .85rem; padding: .35rem .7rem; color: #555; }
.notice-box .nav-link.active { font-weight: 700; color: #222; }
.notice-more { font-size: .7rem; border: 1px solid #ccc; padding: .05rem .35rem; color: #666; margin-left: .4rem; margin-bottom: .3rem; }
.notice-list { list-style: none; margin: 0; padding: .4rem 0; border: 1px solid #dee2e6; border-top: 0; }
.notice-list li { display: flex; justify-content: space-between; gap: .5rem; padding: .28rem .7rem; font-size: .83rem; }
.notice-list a { color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list li > span { color: #999; font-size: .75rem; white-space: nowrap; }

/* (r22) 메인 오른쪽 열: 슬라이드 높이에 맞춰 공지 상자가 늘어나고, 아래 빠른 메뉴 */
@media (min-width: 1200px) {
  .home-right { display: flex; flex-direction: column; }
  .home-right .notice-box { flex: 1 1 auto; display: flex; flex-direction: column; }
  .home-right .notice-box .tab-content { flex: 1 1 auto; display: flex; flex-direction: column; }
  .home-right .notice-box .tab-pane.active { flex: 1 1 auto; }
  .home-right .quick-menu { margin-bottom: 0 !important; }
}
.notice-list .notice-empty { display: block; color: #888; text-align: center; padding: 1.4rem .7rem; line-height: 1.7; font-size: .8rem; }
.notice-list .faq-q { display: inline-block; color: var(--brand); font-weight: 800; margin-right: .35rem; }
.quick-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #dee2e6; border-width: 1px 0 0 1px; background: #fff; }
.quick-menu a { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; color: #444; font-size: .8rem; white-space: nowrap; border: 1px solid #dee2e6; border-width: 0 1px 1px 0; }
.quick-menu a:hover { background: var(--brand-light); color: var(--brand); text-decoration: none; }
.quick-menu svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--brand); }
@media (max-width: 575.98px) { .quick-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); } .quick-menu a { flex-direction: column; gap: .25rem; padding: .55rem .1rem; font-size: .7rem; white-space: normal; text-align: center; word-break: keep-all; } }

/* (r22) 상품 탭 왼쪽 칸 안 "바로가기" (탭과 같은 카테고리, 자세히 보기와 중복 없음) */
.product-quick { margin-top: .9rem; padding-top: .6rem; border-top: 1px dashed #ddd; }
.product-quick-title { font-size: .76rem; font-weight: 700; color: #555; margin-bottom: .2rem; }
.product-quick ul { list-style: none; margin: 0; padding: 0; font-size: .76rem; }
.product-quick li a { color: #555; display: block; padding: .08rem 0; }
.product-quick li a::before { content: "› "; color: #aaa; }
.product-quick li a:hover { color: var(--brand); }

/* 하단 */
.site-footer { border-top: 3px solid var(--brand); background: #f7f7f7; margin-top: 2rem; color: #555; }
.footer-links { border-bottom: 1px solid #e3e3e3; padding: .6rem 0; font-size: .85rem; }
.footer-links a { color: #333; font-weight: 600; }
.footer-company span { display: inline-block; margin-right: 1rem; }

/* 관리자: 배너·로고 미리보기 */
.banner-thumb { width: 140px; }
.banner-thumb img { max-width: 120px; max-height: 60px; border: 1px solid #ddd; }
.banner-chip { display: inline-block; font-size: .7rem; padding: .2rem .4rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner-preview img, .logo-preview img { max-width: 100%; max-height: 180px; border: 1px solid #ddd; }

/* ===================================================================
   (r6) 공통 레이아웃: Header / Sidebar + Content / Footer
   데스크톱: 왼쪽 사이드바(회원 상자 위, 안내 아래) + 오른쪽 본문
   모바일: 회원 상자 → 본문 → 안내 순서 (CSS grid 영역, 마크업 1벌)
   =================================================================== */
.site-stage { position: relative; }
.site-body { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); grid-template-areas: "member" "main" "info"; }
.site-side-member { grid-area: member; }
.site-main { grid-area: main; min-width: 0; }
.site-side-info { grid-area: info; }
@media (min-width: 992px) {
  .site-body { grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "member main" "info main"; align-items: start; }
  .site-side-member .side-box { margin-bottom: 0; }
}
.site-main .page-blocks .container { padding-left: 0; padding-right: 0; max-width: none; }
.site-main .block-hero .container { padding-left: 1.5rem; padding-right: 1.5rem; }
.side-member .side-mfa { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.side-join { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .6rem; }
.side-hint { font-size: .72rem; color: #888; margin: .5rem 0 0; }

/* 메인: 제품 바로가기 */
.section-title { font-size: 1rem; font-weight: 800; margin: 0 0 .6rem; color: #333; }
.product-link-card { border: 1px solid #e3e3e3; padding: .8rem 1rem; height: 100%; background: #fff; }
.product-link-card h3 { font-size: .95rem; font-weight: 800; margin-bottom: .4rem; }
.product-link-card h3 a { color: var(--brand); }
.product-link-card ul { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.product-link-card li a { color: #444; display: block; padding: .12rem 0; }
.product-link-card li a::before { content: "› "; color: #aaa; }

/* 하단: 법정 표시 */
.footer-legal { display: flex; flex-wrap: wrap; gap: .1rem 1rem; margin: 0; }
.footer-legal > div { display: flex; gap: .3rem; }
.footer-legal dt { font-weight: 600; color: #444; }
.footer-legal dd { margin: 0; }
.footer-legal dt::after { content: ":"; }
.footer-ftc { border: 1px solid #ccc; padding: 0 .4rem; color: #555; font-size: .75rem; }
.footer-policy { color: #333 !important; }
.footer-policy-strong { font-weight: 800 !important; color: var(--brand) !important; }
.footer-policy-dates { color: #888; font-size: .75rem; }
.footer-policy-dates span:not(:last-child)::after { content: " · "; }

/* 회원가입 · 약관 */
.join-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.agree-item { border: 1px solid #e3e3e3; border-radius: .375rem; padding: .6rem .8rem; margin-bottom: .5rem; }
.agree-body summary { cursor: pointer; color: #666; }
.policy-scroll { max-height: 220px; overflow-y: auto; border: 1px solid #eee; padding: .6rem; margin-top: .4rem; background: #fafafa; font-size: .85rem; }
.agree-all { padding: .5rem .8rem .5rem 2.3rem; background: var(--brand-light); border-radius: .375rem; }
.policy-body h3 { font-size: 1rem; font-weight: 700; margin-top: 1.2rem; }
.policy-summary { background: #f8f9fa; padding: .5rem .75rem; border-left: 3px solid var(--brand); }
.policy-diff { font-size: .88rem; border: 1px solid #e3e3e3; border-radius: .375rem; overflow: hidden; }
.diff-line { padding: .25rem .6rem; border-bottom: 1px solid #f1f1f1; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-line:last-child { border-bottom: 0; }
.diff-mark { display: inline-block; width: 1.1rem; font-family: var(--bs-font-monospace); color: #999; }
.diff-add { background: #e6f4ea; }
.diff-del { background: #fdecea; text-decoration: line-through; text-decoration-color: rgba(176, 0, 32, .45); }
.diff-legend span { padding: .05rem .4rem; margin-right: .4rem; }

/* 관리자: 설정 변경 이력 */
.last-change { display: block; font-size: .72rem; color: #8a8a8a; margin-top: .15rem; }
.history-pre { white-space: pre-wrap; font-size: .75rem; margin: .3rem 0 0; max-width: 28rem; }
.settings-history summary { cursor: pointer; }

/* (r7) 관리자 회원 상세 */
.ua-cell { max-width: 22rem; }

/* (r8) 거래기록 보존 */
.snapshot-pre { white-space: pre-wrap; font-size: .78rem; background: #f8f9fa; border: 1px solid #e3e3e3; border-radius: .375rem; padding: .75rem; max-height: 70vh; overflow: auto; }
.archive-text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* (r9) 주문 */
.order-product .order-specs dd { word-break: keep-all; }
.order-price-table td, .order-price-table th, .order-period-table td { vertical-align: middle; }
.order-review th { color: var(--bs-secondary-color); font-weight: 500; }
.product-period { min-width: 4.5rem; }
/* (r15) 서비스 내부 메모 */
.memo-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; background: #fffbea; border: 1px solid #f1e3a6; border-radius: .375rem; padding: .5rem .65rem; margin: 0; max-height: 18rem; overflow: auto; }
/* (r16) 로그인 유지 시간 입력 */
.session-input { max-width: 16rem; }
/* (r18) 서버랙 */
.rack-wrap { overflow-x: auto; }
.rack-svg { max-width: 100%; height: auto; }
.rack-wrap-sm .rack-svg { width: 100%; max-width: 22rem; }
.rack-svg a { cursor: pointer; text-decoration: none; }
.rack-svg text { text-decoration: none; }
.rack-svg .rack-plus { opacity: 0; transition: opacity .12s; pointer-events: none; }
.rack-svg .rack-add:hover .rack-empty, .rack-svg .rack-add:focus .rack-empty { fill: #2563eb; fill-opacity: .55; }
.rack-svg .rack-add:hover .rack-plus, .rack-svg .rack-add:focus .rack-plus { opacity: 1; fill: #fff; }
.rack-svg .rack-dev:hover rect, .rack-svg .rack-dev:focus rect { filter: brightness(1.18); }
.rack-svg .rack-dev-off rect { fill-opacity: .45; }
.rack-svg .rack-dev-hl rect { stroke: #facc15; stroke-width: 3; }
.rack-legend { display: inline-block; padding: .1rem .45rem; border-radius: .3rem; color: #fff; font-size: .75rem; line-height: 1.4; white-space: nowrap; }
.rk-switch { background: #2563eb; } .rk-firewall { background: #dc2626; } .rk-l4 { background: #7c3aed; } .rk-server { background: #047857; }
.rk-patch { background: #475569; } .rk-pdu { background: #b45309; } .rk-etc { background: #6b7280; }
.rack-card:hover { border-color: var(--bs-primary); }
progress.rack-usage { width: 100%; height: .6rem; accent-color: #2563eb; }
.port-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); gap: .3rem; }
.port { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 2.6rem; border-radius: .35rem; font-size: .72rem; text-decoration: none; border: 1px solid #cbd5e1; }
.port-free { background: #f8fafc; color: #94a3b8; }
.port-used { background: #2563eb; color: #fff; border-color: #1d4ed8; }
.port-used:hover { background: #1d4ed8; color: #fff; }
.port-n { font-weight: 700; }
.port-s { font-size: .62rem; opacity: .9; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; padding: 0 .15rem; }
.rack-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
/* (r19) 랙 반대 면 반깊이 장비 표시 */
.rack-svg .rack-ghost { pointer-events: none; }

/* (r25) 방문 진행 단계 (회원 문의 화면) */
.visit-steps { display: flex; gap: .25rem; padding: 0; list-style: none; counter-reset: vs; }
.visit-steps li { flex: 1 1 0; text-align: center; padding: .3rem .2rem; background: #f1f3f5; color: #888; border-radius: .25rem; counter-increment: vs; }
.visit-steps li::before { content: counter(vs) ". "; }
.visit-steps li.done { background: var(--brand-light, #e7f1ff); color: var(--brand, #0d6efd); font-weight: 600; }

/* (r25) 방문 달력 (관리자) */
.visit-cal-wrap { overflow-x: auto; }
.visit-cal { table-layout: fixed; min-width: 760px; font-size: .78rem; }
.visit-cal th { text-align: center; background: #f8f9fa; }
.visit-cal th.sun, .visit-cal .cal-day.sun { color: #c0392b; }
.visit-cal th.sat, .visit-cal .cal-day.sat { color: #2058b5; }
.visit-cal td { height: 6.5rem; vertical-align: top; padding: .25rem .3rem; }
.visit-cal td.out { background: #fafafa; color: #bbb; }
.visit-cal td.today { box-shadow: inset 0 0 0 2px #0d6efd; }
.visit-cal td.busy { background: #fff4f4; }
.visit-cal .cal-day { font-weight: 700; }
.visit-cal .cal-item { display: block; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .15rem; }
.visit-cal .cal-item.cancelled { text-decoration: line-through; color: #999; }

/* (r27) 관리자 사이드 메뉴 폴더 */
.admin-nav-folder > summary { list-style: none; cursor: pointer; user-select: none; }
.admin-nav-folder > summary::-webkit-details-marker { display: none; }
.admin-nav-folder > summary .folder-ico { display: inline-block; width: 1em; transition: transform .15s; color: #888; }
.admin-nav-folder[open] > summary .folder-ico { transform: rotate(90deg); }
.nav-edit-link { text-decoration: none; }

/* (r27) 메뉴 정리 화면 */
.nav-tree { list-style: none; margin: 0; padding: 0; }
.nav-tree .nav-node { margin-bottom: .35rem; }
.nav-tree .nav-row { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; background: #fff; border: 1px solid #dee2e6; border-radius: .375rem; }
.nav-tree .nav-handle { cursor: grab; color: #adb5bd; font-size: 1.1rem; line-height: 1; }
.nav-tree .nav-label { flex: 1 1 auto; min-width: 0; }
.nav-tree .nav-fname { flex: 1 1 auto; min-width: 6rem; font-weight: 600; }
.nav-tree .nav-btns { display: flex; gap: .25rem; flex: 0 0 auto; }
.nav-tree .nav-move { width: auto; max-width: 11rem; }
.nav-tree .nav-folder > .nav-row { background: #f1f5ff; border-color: #c7d6fe; }
.nav-tree .nav-sub { margin: .35rem 0 .1rem 1.5rem; min-height: 2.2rem; padding: .2rem; border: 1px dashed transparent; border-radius: .375rem; }
.nav-tree .nav-folder.is-empty > .nav-sub { border-color: #c7d6fe; }
.nav-tree .nav-folder.is-empty > .nav-sub::before { content: "여기로 메뉴를 끌어 놓으세요"; display: block; color: #8a94a6; font-size: .8rem; padding: .35rem .5rem; }
.nav-tree .nav-folder.drop-into > .nav-row { box-shadow: 0 0 0 2px #0d6efd; }
.nav-tree .dragging { opacity: .45; }
@media (max-width: 575.98px) { .nav-tree .nav-row { flex-wrap: wrap; } .nav-tree .nav-btns { width: 100%; justify-content: flex-end; } }


/* (r28) 목록 아래 페이지 이동 */
.list-pager .pagination { margin: 0 auto; }
.list-pager .pager-info, .list-pager .pager-per { min-width: 9rem; }
.list-pager .pager-per { text-align: right; }
.list-pager .pager-per a, .list-pager .pager-per strong { margin: 0 .15rem; }
@media (max-width: 575.98px) { .list-pager { justify-content: center !important; } .list-pager .pager-info, .list-pager .pager-per { min-width: 0; width: 100%; text-align: center; } }
.small-pager .list-pager { justify-content: center !important; }
.small-pager .list-pager .pager-info, .small-pager .list-pager .pager-per { width: 100%; min-width: 0; text-align: center; }

/* (r29) 세션을 열 수 없을 때 (503) 안내 화면 */
#session-busy-card { max-width: 32rem; }
