@charset "utf-8";

/* 부가세 dropdown */
#drop_menu {
  display: none;
  position: absolute;
  text-align: center;
  margin-top: 3px;
  z-index: 1;
}

#drop_menu a {
  display: block;
  background: rgba(102, 102, 102, 0.8);
  color: #fff;
  border-radius: 0;
  padding: 15px 40px;
  font-size: 15px;
}

#drop_menu a:hover{
  color: #ffa466;
}

#drop_menu:hover {
  display: block;
}

.hd_sup_nav>li:hover #drop_menu {
  display: block;
}

/*header*/
.header {
  width: 100%;
  background-color: #fff;
}

.hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  height: 9vh;
  max-height: 100px;
  box-shadow: inset 0px -1px .5px 0px #b0b0b0;
  gap: 10vw;
  padding: 0 10px;
}

.hd_logo {
  height: 100%;
}

.hd_logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.hd_menu {
  display: flex;
  justify-content: center; /* 메뉴는 중앙 정렬 */
  align-items: center;
  height: 100%;
  padding: 7px 0;
  flex: 1 1 auto;  /* 가운데 메뉴는 유연하게 늘어남 */
  min-width: 0;    /* 넘칠 때 줄어들도록 */
}

.hd_sup_nav {
  display: flex;
  justify-content: space-between;
  flex: 1 1 auto; /* ul도 늘어나게 */
  gap: 1rem;
  padding: 0;
}

.hd_sup_nav li {
  display: flex;
  align-items: center;
  height: auto;
  text-align: center;
}

.hd_sup_nav li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
}

.hd_sup_nav li img {
  min-height: 2.1vw;
  max-height: 2.1vw;
  min-width: 2.1vw;
  max-height: 2.1vw;
  object-fit: contain;
}

.hd_sup_nav li a .label {
  flex: 0 1 auto;  /* 텍스트도 줄어들 수 있게 */
  font-size: clamp(8px, 0.7vw, 13px) !important;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hd_sup_nav li.on a {
  color: white;
  background-color: #6952ff;
  border-radius: 8px;
  text-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  padding: 4px;
}


.hd_right {
  display: grid;
  padding: 0.3rem;
  padding-left: 0;
  width: min(160px, 20vw);
  height: auto;
  text-align: center;
  align-items: center;
  grid-template-rows: 1.2fr 0.8fr;
  gap: 0.5rem;
}

.hd_right span, .hd_right input, .hd_right a, .hd_right p {
  font-size: clamp(0.7rem, 0.8rem + 0.2vw, 1.2rem) !important;
}

a{
  font-family: 'Noto Sans KR', sans-serif;
}

.udt_zone {
  width: 100px;
  height: 10vh;
  line-height: 30px;
  display: block;
  float: right;
  /**/
  position: absolute;
  top: 0px;
  right: 100px;
  /**/
  text-align: center;
  border-left: 1px solid #b0b0b0;
  border-bottom: 1px solid #b0b0b0;
  background-color: #fafafa;
  font-size: 8pt;
  color: #606060;
  padding-top: 20px;
}

.udt_zone span {
  display: block;
  text-align: center;
  float: right;
  /**/
  position: absolute;
  top: 4vh;
  left: 0px;
  /**/
  width: 100%;
  font-size: 12pt;
  font-weight: 700;
  color: #303030;
}

.udt_zone_plus span {
  border: 1px solid red;
  border-radius: 30px;
  display: block;
  text-align: center;
  float: right;
  /**/
  position: absolute;
  top: 7vh;
  right: 100px;
  /**/
  width: 100px;
  font-size: 12pt;
  font-weight: 700;
  color: red;
}

.logout_btn_span {
  width: 100px;
  top: 0px;
  right: 0px;
  height: 10vh;
  position: absolute;
  line-height: 50px;
  text-align: center;
  border-left: 1px solid #b0b0b0;
  border-bottom: 1px solid #b0b0b0;
  background-color: #fafafa;
  padding-top: 20px;
  text-align: center;
}

.logout_btn {
  font-size: 10pt;
  color: #f00044;
  font-weight: 700;
}

.logout_btn:hover {
  color: rgb(255, 173, 173);
}

.top_charnge_money_btn {
  color: blue;
  font-weight: 700;
}

.top_charnge_money_btn:hover {
  color: rgb(133, 133, 255);
}
.comp_name {
  display: block;
  max-width: 135px; /* 적절한 너비 설정 */
  word-break: break-all;
  white-space: normal;
}

.hd_nav {
  display: none;
}

.hd_nav.on {
  position: absolute;
  top: 0px;
  width: 100%;
  display: flex;
}

.hd_nav li {
  display: block;
  position: relative;
  width: 7.69%;
  height: 35px;
  text-align: center;
  line-height: 32px;
}

.hd_nav li.on {
  text-shadow: 0 0 4px #fcff00;
}

.hd_nav li:after {
  content: '';
  position: absolute;
  top: 10px;
  right: 0px;
  width: 1px;
  height: 15px;
  background-color: white;
}

.hd_nav li:last-child:after {
  display: none;
}

.hd_nav li a {
  display: inline-block;
  width: 100%;
  height: 100%;
  color: #fafafa;
  font-size: 14px;
  cursor: pointer;
}

.hd_nav li a:hover {
  text-shadow: 0 0 4px #fafafa;
}

.hd_alarm{
  height: 100%;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: space-around;
  gap: 0.5rem;
  min-width: 130px;
}

.alarm_item{
  height: auto;
  text-align: center;
  color: #404040;
  line-height: 18px;
  border-radius: 8px;
  background-color: #fff4f2;
  cursor: pointer;
  user-select: none;
}

.alarm_item:hover {
  background-color: #FFD4CF; /* 살짝 더 진한 색으로 변경 */
}

.alarm_item p, .alarm_item span, .alarm_item div {
  font-weight: 500;
}

.hd_alarm .new_icon{
  display: none;
  color: #FF5733;
  border-radius: 3px;
  line-height: 10px;
  padding-left: 0.1rem;
}

.alarm_dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 150px;
  overflow-y: auto;
  position: absolute;
  transform: translate(-20%);
  width: max-content;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  display: none;
  z-index: 10;
}

.alarm_dropdown > .option {
  padding: 7px;
  cursor: pointer;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.alarm_dropdown > .option > span{
    margin-right: 5px;
    color: #c93014;
    font-size: 12px;
}

.alarm_dropdown > .option:hover {
  background-color: #f0f0f0;
}

.becha_alarm.open .alarm_dropdown {
  display: block;
}
.site_dropdown {
  display: none;
  position: absolute;
  right: 0; /* 화면의 오른쪽 끝을 기준으로 위치 */
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  background: white; 
  border: 1px solid #ccc; 
  z-index: 10000;
  width: 190px;
}

.site_dropdown li {
  padding: 0.5rem !important;
  font-size: 0.875rem !important;
}

.site_dropdown li:hover {
  background-color: #f0f0f0;
}

.site_dropdown a {
  text-decoration: none;
  color: #333;
  display: block;
}

.related_sites {
  height: auto;
  text-align: center;
  color: #404040;
  line-height: 18px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  padding: 0.1rem 0;
  background-color: #c1d6e0;
}

.related_sites:hover {
  background-color: #a2c0d4; /* 살짝 더 진한 색으로 변경 */
}