/* [AI-GENERATED] 작성일: 2026-10-21 08:24 | 수정일: 2026-10-21 08:40 */
/* 인카35 관리자 화면 스타일(inca35 WEB-INF/view/web/cms/deco/manager_panel.jsp + inc/bcnimda/css/design.css 기준).
   다른 CSS 뒤에 불러와 덮어쓴다. 셸: 상단 GNB 56px, 좌측 LNB 240px. 글꼴 Pretendard, 주색 #204FB8 / #3A74D9.
   다크 테마는 건드리지 않고 클래식(밝은) 테마만 바꾼다. */

@font-face { font-family: 'Pretendard'; font-weight: 400; font-display: swap; src: url(../fonts/Pretendard-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 500; font-display: swap; src: url(../fonts/Pretendard-Medium.woff2) format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 600; font-display: swap; src: url(../fonts/Pretendard-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 700 900; font-display: swap; src: url(../fonts/Pretendard-Bold.woff2) format('woff2'); }

:root:not([data-theme="dark"]) {
  --primary: #3A74D9;
  --primary-strong: #204FB8;
  --primary-weak: #EFF5FF;
  --bg-page: #FFFFFF;
  --bg-toolbar: #FFFFFF;
  --surface-200: #F7F8F9;
  --text: #333333;
  --text-strong: #222222;
  --text-weak: #666666;
  --text-faint: #8C8C8C;
  --border: #E9E9E9;
  --border-strong: #CECFD3;
  --gray-100: #F7F8F9;
  --overlay-purple-100: rgba(37, 93, 219, .08);
  --overlay-purple-200: rgba(37, 93, 219, .14);
  --overlay-purple-500: rgba(37, 93, 219, .30);
  --chart-today: #3A74D9;
  --chart-today-fill: rgba(58, 116, 217, .16);
  --chart-bar-past: #6D9BF0;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-layer: 0 2px 8px rgba(0, 0, 0, .20);
}
:root {
  --font: 'Pretendard', 'Roboto', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', sans-serif;
}
body, button, input, select, textarea { font-size: 13px; }

/* ---------- 셸: GNB ---------- */
.layout-root { flex-direction: column; }
.layout-gnb {
  height: 56px; flex: none; display: flex; align-items: center; gap: 32px; padding-right: 32px;
  background: var(--surface-100); border-bottom: 1px solid #EFEFEF; position: relative; z-index: 30;
}
.gnb-logo {
  width: 240px; flex: none; height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 20px; cursor: pointer;
  border: 0; background: none; text-align: left;
}
.gnb-logo .nav-logo { display: flex; }
/* 로고 이미지가 없으면 자리도 비우지 않는다(GNB·로그인·팝업·About) */
.nav-logo:empty, #logo:empty, .about-logo > span:empty { display: none; }
.gnb-logo .nav-title { font-size: 18px; font-weight: 800; color: var(--primary-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gnb-list { display: flex; gap: 40px; height: 100%; }
.gnb-item {
  height: 100%; display: flex; align-items: center; padding: 3px 0 0; border: 0; border-bottom: 3px solid transparent; background: none;
  font-size: 16px; font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap;
}
.gnb-item:hover { color: #234187; }
.gnb-item.selected { border-bottom-color: var(--primary-strong); color: var(--primary-strong); font-weight: 800; }
.gnb-item:focus-visible, .gnb-icon:focus-visible, .gnb-user:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.gnb-util { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.gnb-icon {
  position: relative; width: 32px; height: 32px; border-radius: 100px; border: 0; background: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text-weak);
}
.gnb-icon:hover { background: #EFEFEF; color: var(--text-strong); }
.gnb-icon.selected { background: var(--primary-weak); color: var(--primary-strong); }
.gnb-icon .badge {
  position: absolute; top: -2px; left: 18px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--red-700); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 600;
}
.gnb-user {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px 0 8px; border: 0; background: none; cursor: pointer;
  font-size: 14px; color: var(--text); white-space: nowrap;
}
.gnb-user::after {
  content: ''; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid var(--text-weak);
}
.gnb-user.selected { color: var(--primary-strong); }

/* ---------- 셸: LNB ---------- */
.layout-body { flex: 1; min-height: 0; display: flex; }
.layout-lnb {
  width: 240px; flex: none; overflow: auto; padding: 20px; background: var(--surface-100); border-right: 1px solid #EDEDED;
}
.lnb-grp { display: flex; align-items: center; height: 32px; font-size: 13px; color: var(--text-faint); }
.lnb-sep { border-bottom: 1px solid #EFEFEF; margin: 12px 0; }
.lnb-link {
  display: flex; align-items: center; height: 32px; padding: 0 8px; border-radius: 5px; font-size: 15px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .3s ease;
}
.lnb-link:hover { background: #F8F8F8; text-decoration: none; }
.lnb-link.active, .lnb-link.active:hover { color: var(--primary-strong); font-weight: 800; background: rgba(37, 93, 219, .08); }
.lnb-link.active::after {
  content: ''; flex: none; width: 5px; height: 5px; margin-left: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg);
}

/* ---------- GNB에서 여는 레이어(알림·사용자) ---------- */
.nav-panel, .nav-panel.wide {
  top: 56px; bottom: auto; left: auto; right: 16px; width: 380px; max-height: calc(100vh - 72px);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.nav-panel-head { height: 48px; font-size: 15px; border-bottom: 1px solid var(--border); }
.user-layer { top: 52px; bottom: auto; left: auto; right: 16px; width: 220px; border-radius: 8px; padding: 8px 0; }
.user-layer .who { padding: 8px 16px 12px; }
.user-layer .who b { font-size: 14px; }
.user-layer button { padding: 8px 16px; font-size: 14px; color: var(--text); }
.user-layer button:hover { background: #F8F8F8; }

/* ---------- 공통 헤더(화면 제목 + Domain 선택) ---------- */
.common-header { height: 64px; padding: 0 32px; gap: 12px; border-bottom-color: #EFEFEF; }
.common-header .subject {
  position: static; order: -1; flex: none; text-align: left; font-size: 20px; font-weight: 700; color: var(--text-strong); pointer-events: auto;
}
.common-header .subject:empty { display: none; }
.breadcrumb { height: 30px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 3px; background: var(--surface-100); }
.breadcrumb:hover { background: #F8F8F8; }
.breadcrumb .lbl { font-size: 13px; }
.target-bar { height: 40px; padding-left: 28px; background: #F4F8FF; border-bottom-color: #D6E1F0; }
.chip { height: 26px; border-radius: 4px; }
.chip.on { background: var(--surface-100); border-color: #D6E1F0; color: var(--primary-strong); }
.chip:hover { background: var(--primary-weak); }

/* ---------- 본문 ---------- */
.page-pad { padding: 24px 32px; }
.settings-body { padding: 24px 32px 40px; }

/* ---------- 버튼·입력 ---------- */
.im-btn { height: 30px; padding: 0 10px; border-radius: 3px; font-size: 13px; font-weight: 500; border-color: var(--border-strong); }
.im-btn:hover { background: #F8F8F8; }
.im-btn.primary { background: var(--primary); border-color: var(--primary); }
.im-btn.primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.im-btn.sm { height: 26px; font-size: 12px; }
.inp, select.inp, textarea.inp { border-radius: 3px; border-color: var(--border-strong); font-size: 13px; }
.inp:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(58, 116, 217, .15); }
.seg { border-radius: 3px; }
.seg button.on { background: var(--primary-weak); color: var(--primary-strong); }
.switch input:checked + span { background: #A9C4F0; }
label.chk input { accent-color: var(--primary-strong); }
.dropdown { border-radius: 8px; }
.dropdown .it:hover { background: #F8F8F8; }

/* 탭: 관리자 tab-line(밑줄 3px, 선택 시 진한 글자) */
.tabs { gap: 24px; border-bottom-color: var(--border); }
.tabs .tab { height: 40px; padding: 0 2px; font-size: 14px; color: var(--text-weak); border-bottom-width: 3px; }
.tabs .tab.on { color: var(--text-strong); border-bottom-color: var(--text-strong); font-weight: 600; }

/* 표: 관리자 그리드(머리글 #F7F9FC, 선 #E1E1E1) */
table.tbl th { height: 36px; background: #F7F9FC; color: var(--text); border-top-color: var(--border-strong); border-bottom-color: #E1E1E1; }
table.tbl td { height: 36px; border-bottom-color: #E1E1E1; }
table.tbl.dense td { height: 28px; }
table.tbl tbody tr:hover td { background: #F4F8FF; }
table.tbl tbody tr.sel td { background: var(--primary-weak); }

/* 카드·위젯 */
.chart-component { border-radius: 6px; border-color: #E1E1E1; }
.chart-component .chart-title { font-size: 13px; font-weight: 600; }

/* ---------- 설정: 화면 안 왼쪽 메뉴를 LNB 모양으로 ---------- */
.settings-left { width: 240px; padding: 20px; border-right-color: #EDEDED; }
.settings-left .m1 { height: 32px; padding: 0 8px; border-radius: 5px; font-size: 15px; color: var(--text); }
.settings-left .m1:hover, .settings-left .m2:hover { background: #F8F8F8; }
.settings-left .m1.on { color: var(--primary-strong); font-weight: 800; background: rgba(37, 93, 219, .08); }
.settings-left .m2 { height: 30px; line-height: 30px; padding: 0 8px 0 20px; border-radius: 5px; font-size: 14px; color: var(--text-weak); }
.settings-left .m2.on { color: var(--primary-strong); font-weight: 800; background: rgba(37, 93, 219, .08); }
.settings-title { height: 64px; padding: 0 32px; border-bottom-color: #EFEFEF; }
.settings-title h2 { font-size: 20px; }

/* ---------- 로그인 ---------- */
.login-box .im-btn.primary { height: 44px; font-size: 15px; border-radius: 4px; }

/* ---------- 이니스트 화면 틀: 제목·설명 + 알약 필터 ---------- */
.page-head { flex: none; padding: 24px 32px 0; background: var(--surface-100); }
.ph-top { display: flex; align-items: center; gap: 12px; min-height: 34px; }
.ph-title { margin: 0; font-size: 24px; font-weight: 800; color: var(--text-strong); letter-spacing: -.3px; }
.ph-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ph-desc { margin: 6px 0 0; font-size: 14px; color: var(--text-weak); }
.ph-filter {
  flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 32px 0; padding: 10px 12px;
  background: #F4F8FF; border: 1px solid #D6E1F0; border-radius: 8px;
}
.ph-filter .spacer { flex: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 14px; border: 1px solid var(--border-strong);
  border-radius: 999px; background: var(--surface-100); cursor: pointer; font-size: 13px; color: var(--text-weak); white-space: nowrap;
}
.pill:hover { border-color: var(--primary); }
.pill .pill-val { color: var(--text-strong); font-weight: 600; }
.pill .pill-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--text-weak); margin-left: 2px; }
.ph-status { display: flex; align-items: center; gap: 14px; margin-left: 8px; color: var(--text-weak); font-size: 13px; }
.ph-status .st { display: inline-flex; align-items: center; gap: 5px; }
.ph-status .st i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ph-status .st b { color: var(--text-strong); }
.ph-status .st.bad b { color: var(--red-700); }
.hdr-wrap { flex: none; display: flex; flex-direction: column; padding-bottom: 16px; border-bottom: 1px solid #EFEFEF; background: var(--surface-100); }
.srv-dd .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.srv-dd .sub.bad { color: var(--red-700); }
.srv-dd .it.all { border-top: 1px solid var(--border); margin-top: 4px; color: var(--primary-strong); justify-content: center; }
@media print { .ph-filter, .ph-tools { display: none !important; } .page-head { padding-top: 0; } }

/* ---------- 종합 현황(이니스트 대시보드) ---------- */
.dashboard-content-area.inmon-main { inset: 16px 28px 24px 28px; min-height: 760px; }
.chart-component.kpi { padding: 14px 16px 10px; gap: 2px; justify-content: space-between; }
.chart-component.kpi.clickable { cursor: pointer; }
.chart-component.kpi.clickable:hover { border-color: #A9C4F0; }
.kpi-head { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-weak); }
.kpi-info { color: var(--text-faint); display: inline-flex; }
.kpi-main { display: flex; align-items: baseline; gap: 4px; }
.kpi-val { font-size: 28px; font-weight: 800; color: var(--text-strong); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.kpi-unit { font-size: 13px; color: var(--text-weak); }
.kpi-spark { height: 24px; color: var(--primary); }
.kpi-spark svg { width: 100%; height: 100%; display: block; }
.chart-component.kpi.warn .kpi-spark { display: none; }
.chart-component.kpi.alert .kpi-val { color: var(--red-700); }
.chart-component.kpi.alert { border-color: #F3C2C4; background: #FFF8F8; }
.srv-tbl { position: absolute; inset: 0; }
.srv-st { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); margin-right: 8px; vertical-align: 0; }
.srv-st.dead { background: var(--red-700); }
.chart-component.kpi.compact { flex-direction: row; align-items: center; padding: 0 16px; }
.chart-component.kpi.compact .kpi-head { flex: 1; }
.chart-component.kpi.compact .kpi-val { font-size: 22px; }
.chart-component.kpi.compact .kpi-spark { display: none; }
.md-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
