/* ============================================================
   brand-hiworks.css — 하이웍스 파로스 브랜드 오버라이드 (셸 chrome)

   규칙(brand-stella.css 와 동일):
     · 최상위 셀렉터는 전부 html[data-brand="hiworks"] 로 시작한다.
     · !important 금지.
     · views.css 는 건드리지 않는다.

   값 출처
     · 라이브 www.hiworks-pharos.com 실측(2026-10-16, 로그인 후 computed style):
       LNB 230px · 세로 그라데이션 #114d80 → #0059b0 · 로고 영역 높이 64px + 하단 1px #56b6fc ·
       로고 143x18 · 중메뉴 글자 #56b6fc · 선택 리프 배경 #0080dd · GNB 비활성 #888 / 활성 #0062c1.
     · Figma 하이웍스 시안(FMLKRZlvGHXkDqYbWg3W4B, node 300:2893)의 변수 sky-blue/20 #114d80,
       blue/40 #0059b0 가 같은 그라데이션 끝점이다.
   ============================================================ */

html[data-brand="hiworks"] {
  --sidebar-w:  230px;

  /* ---- GNB : 흰 바 + 회색 글자, 활성만 파랑 ---- */
  --gnb-fg:             #888;
  --gnb-fg-active:      #0062c1;
  --gnb-active-border:  #0062c1;

  /* ---- LNB : 파란 세로 그라데이션 위 흰 글자 ---- */
  --sb-bg:              linear-gradient(180deg, #114d80 0%, #0059b0 100%);
  --sb-logo-bg:         transparent;       /* 그라데이션이 로고 자리까지 이어진다 */
  --sb-company-fg:      #fff;
  --sb-group-fg:        #56b6fc;           /* 중메뉴(대시보드·조회·이체 …) */
  --sb-border:          rgba(86,182,252,.45);
  --sb-item-active-bg:  #0080dd;
  --sb-item-active-fg:  #fff;
  --sb-item-hover:      rgba(255,255,255,.12);
  --sb-action-bg:       #0080dd;
  --sb-action-bg-hover: #0070c4;
}

/* 로고 영역 — 라이브는 64px 높이에 하단 1px #56b6fc 선, 로고는 143x18 좌측 20px.
   ★ 데모는 로고 옆에 [처음으로] 버튼이 더 있다(라이브엔 없음). 230px 안에 143px 로고 + 81px 버튼은
     안 들어가(우측으로 11px 넘쳐 잘림) 로고를 16px 높이(127px)로, 버튼 패딩을 줄여 맞춘다. */
html[data-brand="hiworks"] .sidebar__logo {
  height: 64px; padding: 0 12px 0 16px; gap: 6px; box-sizing: border-box;
  border-bottom: 1px solid #56b6fc;
}
html[data-brand="hiworks"] .sidebar__logoimg { height: 16px; width: auto; }
html[data-brand="hiworks"] .sidebar__guide { padding: 0 8px; gap: 3px; }

/* 사이드바 컨트롤 포커스 링 — 파랑 배경 위라 파로스(흰색) 그대로 두면 된다 */

/* ------------------------------------------------------------
   전자결재 연동 화면 — 신용카드(특별) (js/240-view-stella-rest.js)
   스텔라와 같은 화면을 그대로 쓰므로 stella-views.css 의 해당 조각만 옮겼다.
   (.rpt-count .rpt-btn 처럼 공용 화면까지 건드리는 규칙은 .stac-head 로 좁혔다)
   ------------------------------------------------------------ */
html[data-brand="hiworks"] .stap-st {
  display: inline-block; min-width: 46px; padding: 2px 8px; border-radius: 10px;
  font-size: var(--fs-12); font-weight: var(--fw-medium); line-height: 18px;
}
html[data-brand="hiworks"] .stap-st.is-wait { background: var(--c-bg-soft);  color: var(--c-text-2); }
html[data-brand="hiworks"] .stap-st.is-ing  { background: var(--c-primary-bg); color: var(--c-primary); }
html[data-brand="hiworks"] .stap-st.is-done { background: #e4f6ee; color: #0aa66e; }
html[data-brand="hiworks"] .stap-st.is-rej  { background: #ffeaea; color: #ff2828; }
html[data-brand="hiworks"] .stap-st.is-hold { background: #fff2e0; color: #d9821a; }

html[data-brand="hiworks"] .stap-selcount { margin-left: 12px; color: var(--c-text-3); font-size: var(--fs-13); }
html[data-brand="hiworks"] .rpt-count.stac-head { display: flex; align-items: center; flex-wrap: nowrap; margin-top: 14px; }
html[data-brand="hiworks"] .rpt-count.stac-head .rpt-btn { margin-left: 8px; }
html[data-brand="hiworks"] .rpt-count.stac-head .rpt-btn:first-of-type { margin-left: auto; }
html[data-brand="hiworks"] .stac-head strong { font-size: var(--fs-14); color: var(--c-brand); }
html[data-brand="hiworks"] .rpt-sel.stac-wide { min-width: 210px; }

/* 대시보드 우측 하단 가이드 카드 — 제목이 '{브랜드명} 가이드'라 하이웍스('하이웍스 파로스 가이드')는
   20px 로는 172px 칸에 안 들어가 '가이/드' 로 꺾인다. 글자만 줄여 한 줄로 둔다. */
html[data-brand="hiworks"] .guide-card strong { font-size: 16px; white-space: nowrap; }
