/* 1) Font */
@font-face {
  font-family: 'ComicSansMS';
  src: url('/css/ComicSansMS.woff2') format('woff2');
}

/* 2) Global reset */
* {
  font-size: 9pt;
  font-family: 'ComicSansMS';
  text-align: left;
  margin: 0;
  padding: 0;
}

/* 3) Header / Footer */
header {
  position: fixed;
  width: 100%;
}

#header1 {
  width: 100%;
  height: 30px;
  background: #666666;
  text-align: center;
  position: relative;
  line-height: 30px;
  user-select: none;
  z-index: 1;
  overflow: visible;
}

/* 웹소켓 메시지가 들어와도 다른 요소(아이콘 등)를 밀지 않게 */
#websocketMessage{
  position: absolute;        /* 흐름에서 빠짐 -> 밀림 현상 제거 */
  top: 6px;
  left: 45%;
  transform: translateX(-50%);
  z-index: 9999;

  display: none;             /* 기본은 숨김 */
  padding: 3px 10px;
  background: rgba(255,255,255,0.95);
  border: 1px solid #ddd;
  border-radius: 6px;

  font-size: 12px;
  line-height: 18px;
  color: #111;

  white-space: nowrap;       /* 한 줄로 */
  max-width: 70vw;
  overflow: hidden;
  text-overflow: ellipsis;

  pointer-events: none;      /* 위에 떠도 클릭 방해 안 함 */
}

#websocketMessage.show{
  display: inline-block;
}

#divTopMenu {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  white-space: nowrap;
  padding-left: 1px;
  -webkit-overflow-scrolling: touch;

  /* ul 기본 여백 제거 */
  margin: 0;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
}

/* 스크롤바 숨김 */
#divTopMenu::-webkit-scrollbar {
  display: none;
}

/* ✅ li 스타일 (inline style도 덮기 위해 !important 사용) */
#divTopMenu li {
  flex: 0 0 auto;
  list-style: none;
  background: #ffffff;
  border: 1px solid #ddd;

  /* 원래 li에 width/height/padding이 inline으로 들어와도 강제 적용 */
  width: 195px !important;
  height: auto !important;
  padding: 0px !important;

  text-align: center;
  font-weight: bold;
  color: #2f2f2f;

  box-sizing: border-box;
  position: relative;

  /* 밑줄 자리 */
  border-bottom: 3px solid transparent;
  transition: border-color .15s ease;
}

/* 선택 표시(Top) */
#divTopMenu li.selected {
  border-bottom-color: #ff6b81 !important;
}

/* 5) Left area */
#divLeftMenu {
  float: left;
}

.bar {
  position: fixed;
  top: 70px;
  left: 215px;
  background-image: url('/images/img_bg_ico.gif');
  background-repeat: repeat-y;
  width: 20px;
  height: 100%;
  text-align: left;
  z-index: 1;
}

.bar1 {
  position: fixed;
  top: 70px;
  left: 215px;
  background-image: url('/images/img_bg_ico.gif');
  background-repeat: repeat-y;
  width: 20px;
  height: 100%;
  text-align: left;
  z-index: 1;
}

#divBar {
  margin-top: 3px;
}

aside ul {
  position: fixed;
  top: 70px;
  width: 210px;
  height: 80%;
  overflow-x: hidden;
  overflow-y: auto;
}

aside ul li {
  width: 200px;
  list-style: none;
}

/* Left 메뉴 - 기본 검정, 선택 파랑, 커서는 항상 기본 */
#divLeftAllMenu > li,
#divLeftAllMenu li ul li {
  margin: 10px;
  color: #000 !important;
  cursor: default !important;
}

#divLeftAllMenu li.selected {
  color: #4c8bf5 !important;
}

/* 6) Main content */
section {
  position: fixed;
  top: 70px;
  right: 0;
  bottom: 0;
  left: 215px;
}

#divBtns { /* section div#divBtns + #divBtns 병합, 높이 30px로 통일 */
  position: relative;
  text-align: left;
  padding-left: 2px;
  height: 30px;
}

article {
  width: 99%;
  height: 100%;
  margin: 0;
  padding-left: 12px;
  background-color: #ffffff;
}

footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 2px;
  z-index: 9999;

  background-color: #666666;

  /* 얇아지는 문제 방지 */
  min-height: 30px;
  padding: 12px 16px;
  box-sizing: border-box;

  /* 가운데 정렬 */
  display: flex;
  justify-content: center;
  align-items: center;

  /* 글씨 안 보이는 문제 방지 */
  color: #111;
  font-size: 14px;
}

footer .footer-inner{
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* 화면 좁을 때 줄바꿈 */
}

footer .sep{
  margin: 0 8px;
}

footer a{
  text-decoration: none; /* 언더라인 제거 */
  color: #111;           /* 링크도 글씨 보이게 */
}

footer a:hover,
footer a:active,
footer a:visited{
  text-decoration: none;
  color: #111;
}
/* ===== Footer: speed hover (start) ===== */
.site-footer.footer-speed-hover{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;

  overflow: hidden;

  transition: height 160ms ease, opacity 160ms ease;
}

/* 접힌 상태: 실금처럼 */
.site-footer.footer-speed-hover.footer--collapsed{
  height: 2px;
  opacity: 0.35;

  /* 실금 느낌(없어도 되면 지워도 됨) */
  box-shadow: 0 -1px 0 rgba(0,0,0,0.25) inset;
}

/* 펼친 상태: 원래 높이(JS가 계산해서 넣음) */
.site-footer.footer-speed-hover.footer--expanded{
  height: var(--footer-open-height, 44px);
  opacity: 1;
}

/* 내용은 접힐 때만 숨김 */
.site-footer.footer-speed-hover .footer-inner{
  transition: opacity 140ms ease, transform 140ms ease;
}

.site-footer.footer-speed-hover.footer--collapsed .footer-inner{
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

/* 마우스 감지용 투명 영역 */
.footer-hover-zone{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;      /* 여기 높이 키우면 감지 쉬움 */
  background: transparent;
  z-index: 9998;
}
/* ===== Footer: speed hover (end) ===== */

/* homepage icon: move left beside PDF search box */
#header1 > img[src='/images/homepage-icon-png-2593.png'],
#header1 > img[src="/images/homepage-icon-png-2593.png"]{
  position: absolute !important;
  top: 5px !important;
  left: 180px !important;
  width: 20px !important;
  padding: 0 !important;
  cursor: pointer !important;
  z-index: 20 !important;
}

/* top menu: keep normal vertical position after homepage icon is absolute */
#header1 > nav{
  margin-top: 30px !important;
}

