
/* ===========================================
   tab_2 독립 스타일 - 밑줄 언더라인 탭
   tab_1(둥근 pill형)과 완전히 다른 디자인
   색상만 --dynamic-point-color 변수 사용
=========================================== */

/* ===== 탭 영역 기본 구조 ===== */
.tab_2 .tab_area {
  width: 100%;
  float: left;
  position: relative;
  overflow: hidden;
}

.tab_2 .tab_area .contents-container {
  position: relative;
}

/* ===== 탭 버튼 컨테이너 - 밑줄 스타일 ===== */
.tab_2 .tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: flex-start;
  padding-bottom: 0;
  margin-bottom: 25px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 2px solid #e5e7eb;
}

.tab_2 .tabs::-webkit-scrollbar {
  display: none;
}

/* ===== 탭 버튼 스타일 (tab_2 고유 - 밑줄 언더라인) ===== */
.tab_2 .tabs .tab {
  flex: 0 0 auto;
  width: auto;
  padding: 14px 28px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
  margin-bottom: -2px;
  position: relative;
}

.tab_2 .tabs .tab:hover {
  color: #374151;
  background: rgba(0, 0, 0, 0.02);
}

/* 활성 탭 - 컬러 변수 밑줄 */
.tab_2 .tabs .tab.on,
.tab_2 .tabs .tab.active {
  background: transparent;
  border-bottom-color: var(--dynamic-point-color, #2563eb);
  color: var(--dynamic-point-color, #2563eb);
}

/* ===== 탭 컨텐츠 영역 ===== */
.tab_2 .tab-content {
  display: none;
  width: 100%;
  float: left;
  padding: 20px 0;
}

.tab_2 .tab-content.active {
  display: block;
}

.tab_2 .tab-content .grid_cont {
  width: 100%;
  float: left;
  display: flex;
  flex-direction: column;
}

/* ===== 스크롤 마스크 ===== */
.tab_2 .scroll-mask {
  position: relative;
}

.tab_2 .scroll-hidden {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tab_2 .scroll-hidden::-webkit-scrollbar {
  display: none;
}

/* ===== 화살표 버튼 (PC에서 숨김) ===== */
.tab_2 .arrow {
  display: none;
}

/* ===== 타이틀 ===== */
.tab_2 .sub_stit {
  width: 100%;
  float: left;
  font-size: 22px;
  font-weight: 700;
  line-height: 130%;
  margin-bottom: 30px;
}

/* ===== 포커스 스타일 제거 ===== */
.tab_2 .tabs [role="tab"] {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.tab_2 .tabs [role="tab"]:focus {
  outline: none;
  box-shadow: none;
}

.tab_2 .tabs [role="tab"]:focus-visible {
  outline: 0;
  box-shadow: none;
}

.tab_2 .tabs [role="tab"]:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* ===== 링크형 탭 ===== */
.tab_2 .tabs .tab.tab-link {
  text-decoration: none;
}

.tab_2 .tabs .tab.tab-link.on {
  color: var(--dynamic-point-color, #2563eb);
}


/**** 모바일 ****/
@media only all and (max-width: 767px) {

  .tab_2 .sub_stit {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .tab_2 .tabs {
    gap: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
  }

  .tab_2 .tabs .tab {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom-width: 2px;
  }

  .tab_2 .tab-content {
    padding: 15px 0;
  }

  /* 모바일 스크롤 마스크 */
  .tab_2 .scroll-mask::before,
  .tab_2 .scroll-mask::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 50px;
    z-index: 2;
    pointer-events: none;
  }

  .tab_2 .scroll-mask::before {
    left: -1px;
    width: 50px;
    background: linear-gradient(to right, #fff 0px, #fff 20px, transparent 35px);
    z-index: 9999;
  }

  .tab_2 .scroll-mask::after {
    right: -1px;
    width: 35px;
    background: linear-gradient(to left, #fff 0px, #fff 15px, transparent 30px);
    z-index: 9999;
  }

  /* 모바일 화살표 */
  .tab_2 .arrow {
    display: flex;
    position: absolute;
    top: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    z-index: 99999;
    cursor: pointer;
    font-size: 16px;
    line-height: 32px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .tab_2 .arrow:active {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
  }

  .tab_2 .arrow.left {
    left: 5px;
  }

  .tab_2 .arrow.right {
    right: 5px;
  }
}


/* ===== 관리자 모드 스타일 ===== */
.tab_2 {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.tab_2 .tab_area {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: hidden !important;
}

.tab_2 .tab-content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow-x: hidden !important;
}

.tab_2 .tab-content.tab_admin_mode {
  position: relative;
  border: 2px dashed #3b82f6;
  overflow: visible;
  transition: all 0.2s ease;
}

.tab_2 .tab-content.tab_admin_mode:hover {
  border-color: #2563eb;
  background-color: rgba(59, 130, 246, 0.03);
}

.tab_2 .tab_admin_badge {
  position: absolute;
  top: 5px;
  right: 10px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tab_2 .tab_admin_badge:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.tab_2 .tab_admin_badge i {
  font-size: 12px;
}

@media only all and (max-width: 767px) {
  .tab_2 .tab_admin_badge {
    top: 3px;
    right: 5px;
    padding: 3px 8px;
    font-size: 10px;
  }

  .tab_2 .tab-content.tab_admin_mode {
    padding: 15px;
  }
}
