﻿/*노멀라이즈 시작 */
body,
ul,
li {
  margin: 0;
  padding: 0;
  list-style: none; /*리스트 스타일 제거 */
}

a {
  color: inherit; /*부모 엘리먼트의 색상 상속 */
  text-decoration: none; /* 밑줄 제거 */
}
/*노멀라이즈 끝 */

/*사이드바의 너비와 높이를 변수를 통해 통제 */
:root {
  --side-bar-width: 270px;
  --side-bar-height: 90vh;
}

body {
  height: 5000px;
  background-color: white;
}

.header-web {
  width: 100%;
  /* height: 40px; */
}

/*Side-bar*/
.side-bar {
  position: fixed;
  background-color: white;
  width: var(--side-bar-width);
  min-height: 100%;
  text-align: center;
  width: 190px;
  height: 100%;
  box-shadow: 0px 3px 6px #00000029;
  /* padding: 0px 20px; */
  /* border-right: 1px solid #e2e2e2; */
  z-index: 999; /* 사이드바가 항상 위에 있도록 설정 */
  /* padding-right: 10px; */
  display: flex;
  flex-direction: column;
}

.side-bar .ss-container {
  --ss-scroll-right-bottom: 2px;
}

.side-bar .side-bar-menu {
  width: 100%;
  min-height: 0;
  flex: 1;
  padding: 10px 10px;
}

.side-bar .side-bar-menu ul.menu-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.side-bar .side-bar-menu ul.menu-list > li {
  overflow: hidden;
}

/* #region 메뉴 스타일_251208 변경 */
/***********************************************
* 대메뉴
***********************************************/
.side-bar .side-bar-menu {
  --menu-padding-left: 10px;
  --menu-padding-right: 10px;
  --menu-padding-tb: 10px;
}
.side-bar .side-bar-menu li {
  padding: 0 !important;
  position: relative;
  transition: margin-bottom 0.3s ease, height 0.3s ease, visibility 0.3s ease;
}
.side-bar .side-bar-menu li a {
  display: block;
  width: 100%;
  text-align: left;
  font-size: var(--md-font);
  line-height: 1.2;
  transition: none;
  word-break: keep-all;
  padding: var(--menu-padding-tb) var(--menu-padding-right) var(--menu-padding-tb) var(--menu-padding-left);
}
.side-bar .side-bar-menu ul.menu-list > li > a {
  color: #4c4c4c;
  font-size: var(--xlg-font);
  border-radius: 6px;
  line-height: 1.5;
  padding-left: var(--menu-padding-left);
  padding-right: var(--menu-padding-right);
  padding-top: 7px;
  padding-bottom: 7px;
}
.side-bar .side-bar-menu ul.menu-list > li:hover {
  background-color: #5c5fc0cc;
  border-radius: 6px;
}
.side-bar .side-bar-menu ul.menu-list > li:hover > a {
  color: #fff;
  background-color: #5c5fc0;
}
.side-bar .side-bar-menu ul.menu-list > li.active {
  background-color: #7d7fcd;
  border-radius: 6px;
}
.side-bar .side-bar-menu ul.menu-list > li.active > a {
  background-color: #5c5fc0;
  color: #fff;
}
/***********************************************
* 중/소메뉴 공통 속성 통합
***********************************************/
/* 닫힘 상태 및 전환 속성 통합 */
.side-bar .side-bar-menu ul.menu-list > li > ul.submenu,
.side-bar .side-bar-menu ul.menu-list > li > ul.submenu > li > ul.subsubmenu {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

/* 열림 상태 통합 (.open 클래스) */
.side-bar .side-bar-menu ul.menu-list > li > ul.submenu.open,
.side-bar .side-bar-menu ul.menu-list > li > ul.submenu > li > ul.subsubmenu.open {
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
}
/***********************************************
* 중메뉴
***********************************************/
.side-bar .side-bar-menu ul.menu-list > li > ul.submenu > li > a {
  background-color: #7274cb;
  color: #fff;
  padding-left: calc(var(--menu-padding-left) * 2);
}
.side-bar .side-bar-menu ul.menu-list > li > ul.submenu > li:hover:not(:has(.subsubmenu > li:hover)) > a {
  background-color: #8284cf;
}
/***********************************************
* 소메뉴
***********************************************/
.side-bar .side-bar-menu ul.menu-list > li > ul.submenu > li {
  background-color: #cacaf3;
}
.side-bar .side-bar-menu ul.menu-list > li > ul.submenu > li > ul.subsubmenu {
  background-color: #cacaf3;
}
.side-bar .side-bar-menu ul.menu-list > li > ul.submenu > li > ul.subsubmenu > li {
  padding-left: calc(var(--menu-padding-left) * 1) !important;
  background-color: #cacaf3;
}
.side-bar .side-bar-menu ul.menu-list > li > ul.submenu > li > ul.subsubmenu > li > a {
  background-color: #cacaf3;
  color: #4c4c4c;
  padding-left: calc(var(--menu-padding-left) + 5px);
}
.side-bar .side-bar-menu ul.menu-list > li > ul.submenu > li > ul.subsubmenu > li:hover > a {
  background-color: #7274cb;
  color: #fff;
  border-radius: 6px 0 0 6px;
}
/* #endregion */

.top-tabs-scroll {
  position: fixed;
  top: 0;
  left: 190px; /*사이드바 너비만큼 왼쪽 여백*/
  right: 0;
  height: 40px;
  box-shadow: 0 3px 3px #0000001a;
  z-index: 1000;
}
.top-tabs-scroll.ss-container {
  position: fixed;
  --ss-scroll-right-bottom: -6px;
}

.top-tabs {
  display: flex;
  align-items: center;
  padding: 0; /*탭과 컨테이너 사이 여백 제거 */
  color: white;
  height: 100%;
  background-color: white;

  width: calc(100% - 190px); /*사이드바 너비를 제외한 나머지 영역 차지 */
  max-width: calc(100% - 190px);
}

.top-tabs .tab {
  background-color: white;
  color: black;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between; /*메뉴명과 닫기 버튼 정렬 */
  width: 130px;
  margin: 0; /*탭 사이 여백 제거*/
  height: 100%; /*탭 높이를 상단탭바와 동일하게 설정 */
  border-right: 1px solid #0000001a;

  min-width: 130px; /*탭의 최소 너비 설정 */
}

.top-tabs .tab.default-tab {
  pointer-events: none; /*기본 탭은 클릭이나 삭제 불가 */
  background-color: white;
  color: black;
  font-weight: normal;
  border-right: 1px solid #0000001a;
}

.top-tabs .tab:hover .close {
  display: inline; /*호버 시 닫기 버튼 표시 */
}

.top-tabs .tab .close {
  display: none; /*기본적으로 닫기 버튼 숨김 */
  color: white;
  font-weight: bold;
  font-size: var(--xlg-font);
  cursor: pointer;
}

.top-tabs .tab:hover {
  background: #7d7fcd;
  color: white;
  font-weight: bold;
}

.top-tabs .tab:hover span {
  color: white;
  font-weight: var(--bold-font);
}

.Logo-section {
  color: #5c5fc0;
  padding-top: 5px;
  padding-bottom: 5px;
  cursor: pointer;
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
}
.Logo-section > img {
  width: 1.25rem;
  height: 1.25rem;
}
.Logo-section > img.viewLogo {
  width: 85%;
  height: auto;
}
.Logo-section > span {
  color: #5c5fc0;
  cursor: pointer;
}

.content-area-WEB {
  position: relative;
  width: calc(100% - 190px);
  height: calc(100% - 40px);
  /* height: calc(100dvh - 40px);
  max-height: calc(100dvh - 40px); */
  /* min-width: 1000px;
  min-height: 800px; */
  background-color: #f7f8fc;
  left: 190px;
  top: 40px;
  /*left:11%;
    top:4%;*/
}

#tab-contents-WEB {
  height: 100%;
  width: 100%;
  overflow: auto;
}

.top-tabs .tab.current-tab {
  color: white;
  background-color: #5c5fc0;
}
.top-tabs .tab.current-tab span {
  color: inherit;
  font-weight: var(--bold-font);
}
.noShow-menu-btn {
  display: none !important;
}
.logout-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  height: 50px;
  color: white;
  background-color: var(--page-block-header-back-color);
}

/*Admin 쪽 기능을 위한 CSS 로직*/
.admin-div-wraper {
  width: 100%;
  padding: 5px;
  padding-top: 0;
}
.admin-div-wraper .admin-title {
  padding: 8px 0;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.admin-div-wraper .admin-title span {
  font-weight: 600;
}
.admin-div-wraper .admin-title .restart-btn {
  cursor: pointer;
}
#PageMaster .exp-warper {
  width: 100%;
  height: 40px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(var(--fill-button-back-color), var(--default-blue-color));
}

#PageMaster .exp-warper span {
  color: white;
}
#PageMaster .exp-warper .restart-btn {
  cursor: pointer;
}
#PageMaster .person-selector {
  width: 100%;
  height: 65px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}
#PageMaster .person-selector select {
  color: black;
  width: 100%;
  background: linear-gradient(var(--fill-button-back-color), #ff6464);
  cursor: pointer;
  text-align: center;
  height: 40px;
  flex: 1;
}
