
/****사이드바 CSS*****/
/*토글 화살표 회전을 위한 스타일*/
.nav-link[aria-expanded="true"] .ms-2 {
  display: inline-block;
  transform: rotate(180deg);
  transition: transform 0.2s ease-in-out;
}

.nav-link .ms-2 {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

.nav-link {
  font-size: 12px !important;
  height: 30px;
}
.menu-nav-link:before {
  content: '';
  background: url('/images/legacy-icon.png') -50px -20px;
  width: 16px;
  height: 4px;
  display: inline-block;
  vertical-align: 2px;
  margin-top: 13px;
}
/****사이드바 CSS 끝*****/

.temp-row {
  background-color: #e685b5 !important;
}

tr.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background-color: #e3f2fd;
}

.clickable-row:hover td:has(button) {
  background-color: transparent !important;
}

/* 더 큰 모달 사이즈 정의 */
.modal-xxl {
  max-width: 1600px; /* 원하는 크기로 조절 가능 */
}

.modal-width-max {
  max-width: 98%;
  width: 98%;
}

.ts-wrapper.form-control {
  height: 11px !important;
}

.input-width-sm {
  width: 100px !important;
}

/****생기부 탭 CSS****/
/* 탭 컨테이너 스타일 */
.nav-tabs {
  display: flex;
  width: 100%;
}

/* 각 탭 아이템 스타일 */
.nav-tabs .nav-item {
  flex: 1;
  text-align: center;
}

/* 탭 링크 스타일 */
.nav-tabs .nav-link {
  width: 100%;
  background-color: #9C9C9C;
  border-right: 1px solid #dee2e6;
  color: white;
  padding: 12px 4px;
  white-space: normal;
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1.2;
}

/* hover 시 스타일 */
.nav-tabs .nav-link:hover {
  background-color: #8A8A8A;
  border-right: 1px solid #dee2e6;
}

/* active 탭 스타일 */
.nav-tabs .nav-link.active {
  background-color: #fff;
  border-top: 3px solid #0d6efd;
  margin-top: -1px;
  color: #0d6efd;
  font-weight: bold;
  border-right: none;
}

/* 마지막 탭의 오른쪽 보더 제거 */
.nav-tabs .nav-item:last-child .nav-link {
  border-right: none;
}

/* 생기부 탭 내용 영역 스타일 */
.record-tab-content {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-top: none;
  padding: 12px;
}

/* 현재 선택된 탭 스타일 */
.nav-tabs .nav-item .nav-link.active {
  background-color: #fff;
  border-top: 3px solid #0d6efd;
  color: #0d6efd;
  font-weight: bold;
}
/****생기부 탭 CSS 끝****/

#tab-competency-pane .tabulator {
  overflow: visible;
}

#tab-competency-pane .tabulator .tabulator-tableholder {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

#tab-competency-pane .ts-wrapper,
#tab-competency-pane .ts-dropdown {
  z-index: 1000;
}

#tab-competency-pane .ts-wrapper.single .ts-control {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid #cfd8e3;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  padding: 5px 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

#tab-competency-pane .ts-wrapper.focus .ts-control {
  border-color: #7aa7ff;
  box-shadow: 0 0 0 3px rgba(122, 167, 255, 0.18);
}

#tab-competency-pane .ts-dropdown {
  border-radius: 12px;
  border: 1px solid #d7e2f0;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  background-color: #ffffff;
}

#tab-competency-pane .ts-dropdown .ts-dropdown-content {
  padding: 6px;
}

#tab-competency-pane .ts-dropdown .option,
#tab-competency-pane .ts-dropdown .create {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
}

#tab-competency-pane .ts-dropdown .option:hover,
#tab-competency-pane .ts-dropdown .active {
  background: #edf4ff;
  color: #2457a6;
}

#tab-competency-pane .ts-dropdown .selected {
  background: #dfeeff;
  color: #1d4f91;
  font-weight: 600;
}


.wrap-cell {
  word-break: break-all !important;
  word-wrap: break-word !important;
  white-space: pre-wrap !important;
}

/*반응형*/
#sidebar {
  transition: margin-left 0.3s ease-in-out;
}


.sidebar-backdrop {
  display: block !important; /* backdrop이 항상 보이도록 수정 */
}


/*Bootstrap Sidebar*/
.school-logo {
  filter: brightness(0.97) saturate(1);
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

html {
  height: -webkit-fill-available;
}

main {
  height: 100vh;
  height: -webkit-fill-available;
  max-height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
}

.contents {
  font-size: 12px;
}

.dropdown-toggle {
  outline: 0;
}

.btn-toggle {
  padding: .25rem .5rem;
  font-weight: bold;
  font-size: 13px;
  color: #666666;
  background-color: transparent;
}

.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(var(--bs-emphasis-color-rgb), .85);
  background-color: var(--bs-tertiary-bg);
}

/* active된 nav-link의 스타일 */
.btn-toggle-nav a.active {
  color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.1);
  font-weight: bold;
}

.btn-toggle-nav li {
  font-size: 12px;
  line-height: 30px;
  font-weight: bold;
}

.btn-toggle-nav li button {
  color: #888888 !important;
}

.btn-toggle-nav li a {
  color: #888888 !important;
}

/* hover 시에도 active 스타일 유지 */
.btn-toggle-nav a:hover {
  background-color: var(--bs-tertiary-bg);
}

/* active 상태인 링크는 hover 효과 제거 */
.btn-toggle-nav a.active:hover {
  color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.1);
  font-weight: bold;
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

/* active된 nav-link의 스타일 */
.btn-toggle-nav a.active {
  color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.1);
  font-weight: bold;
}

[data-bs-theme="dark"] .btn-toggle::before {
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(var(--bs-emphasis-color-rgb), .85);
}

.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  margin-top: 0;
  margin-left: 1px;
  font-weight: bold;
  width: 100%;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: var(--bs-tertiary-bg);
}

.scrollarea {
  overflow-y: auto;
}

.font-size-12 {
  font-size: 12px;
}

.font-size-14 {
  font-size: 14px;
}


/******Datatable Custom*****/
/* 페이지네이션 컨테이너 중앙 정렬 */
.dataTables_wrapper .dataTables_paginate {
  text-align: center !important;
  float: none !important;
  margin-top: 15px !important;
}

/* 페이지네이션 버튼 그룹 정렬 */
.dataTables_wrapper .dataTables_paginate .pagination {
  justify-content: center !important;
}

/* 옵션: 전체 페이지네이션 영역에 여백 추가 */
.dataTables_wrapper {
  padding-bottom: 20px;
}

.table.dataTable thead tr th {
  background-color: #D3D3D3 !important;
}

.table.table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1) > * {
  box-shadow: inset 0 0 0 9999px rgba(var(--dt-row-stripe), 0.03) !important;
}
/******Datatable Custom 끝*****/

#legacyFrame {
  display: block;
}

#mobileBlocker {
  display: none !important;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.modal-dialog {
  max-width: var(--modal-width);
  width: var(--modal-width);
}


@media (max-width: 576px) {
  .content-section {
    min-width: 800px !important;
  }
  .modal {
    overflow-x: scroll;
  }

  #legacyFrame {
    display: none;
  }

  #mobileBlocker {
    display: flex !important;
  }
}



