@charset "UTF-8";

/* 2025-1119 list-basic--2 --> list-basic--4로 수정  */
/* 테이블 레이아웃 재정의 - PC 뷰는 그대로 유지 */
.list-basic--4 .table-head,
.list-basic--4 .table-body {
  display: grid;
  grid-template-columns: 4fr 90px 120px 130px 100px 100px;/*2026-1106 정답문항 간격 조정*/
  width: 100%;
  align-items: center;
}

/* 기존 flex 기반 레이아웃 무시 */
.list-basic--4 .table-head li,
.list-basic--4 .table-body li {
  flex: none !important;
  flex-grow: 0 !important;
  flex-basis: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 8px;
  word-break: break-word;
  /* overflow: hidden; */
}

/* 첫 번째 열(학습 목표) 스타일 */
.list-basic--4 .table-head li:first-child,
.list-basic--4 .table-body li:first-child {
  text-align: left;
  padding-left: 16px;
}

/* 마지막 열(학습분석) 스타일 */
.list-basic--4 .table-head li:last-child,
.list-basic--4 .table-body li:last-child {
  text-align: center;
  padding-right: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 특별히 마지막 열의 버튼 정렬 */
.list-basic--4 .table-body li:last-child button {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 학습 목표 라인 클램프 조정 */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

/* 중앙 정렬이 필요한 열들 */
.list-basic--4 .table-head li:nth-child(2),
.list-basic--4 .table-head li:nth-child(3),
.list-basic--4 .table-head li:nth-child(4),
.list-basic--4 .table-body li:nth-child(2),
.list-basic--4 .table-body li:nth-child(3),
.list-basic--4 .table-body li:nth-child(4) {
  justify-content: center;
  text-align: center;
}

/* 학습/채점 열 정렬 */
.list-basic--4 .table-head li:nth-child(5),
.list-basic--4 .table-body li:nth-child(5) {
  justify-content: center;
  text-align: center;
}

/* 목표 점수, 정답/문항, 소요시간/제한시간 열의 폰트 크기 통일 */
.list-basic--4 .table-body li:nth-child(2),
.list-basic--4 .table-body li:nth-child(3),
.list-basic--4 .table-body li:nth-child(4) {
  font-size: 14px;
}

/* PC 환경에서의 child-item 스타일 */
@media (min-width: 768px) {
  /* child-item 클래스에 스타일 적용 - PC 뷰 */
  .list-basic--4 .table-body.child-item {
    position: relative;
    background-color: #fafafa; /*2025-1109 배경색상 수정*/
  }
  
  /* 첫 번째 셀 들여쓰기만 적용 - PC 뷰 */
  .list-basic--4 .table-body.child-item li:first-child {
    padding-left: 10px !important;
  }
  
  /* 테이블 행에 ㄴ 표시 다시 추가하기 - PC 뷰 */
  .list-basic--4 .table-body .child-item::before {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #333;
    z-index: 1;
  }
  .list-basic--4 ul.child-item.child-item-group::before{
    display: none;
  }
  .list-basic--4 .table-body.child-item li.child-item-depth1{
    position: relative;
    padding-left: 30px !important;
  }
  .list-basic--4 .table-body.child-item li.child-item-depth2{
    position: relative;
    padding-left: 50px !important;
  }
  .list-basic--4 .table-body.child-item li.child-item-depth3{
    position: relative;
    padding-left: 70px !important;
  }
  .list-basic--4 .table-body.child-item li.child-item-depth4{
    position: relative;
    padding-left: 90px !important;
  }
  .list-basic--4 .table-body.child-item li.child-item-depth5{
    position: relative;
    padding-left: 110px !important;
  }
  .list-basic--4 ul.child-item.child-item-group .badge__medium::before {
      content: "";
      background-image: url(/assets/student/images/common/bu_depth.svg);
      background-size: 20px;
      width: 20px;
      height: 20px;
      background-repeat: no-repeat;
      position: absolute;
      margin-left: -80px; /*2025-1109 badge 사이즈 수정*/
      margin-top: -4px;
  }
  
  /* PC에서는 뱃지와 텍스트를 한 줄에 표시 */
  .list-basic--4 .table-body.child-item li:first-child {
    display: flex !important;
    align-items: center !important;
  }
  
  /* 2025-1109 badge사이즈 조정 */
  .list-basic--4 .table-body.child-item li:first-child .badge__medium {
    margin-right: 4px !important;
    height: 24px;
    padding: 0px 4px;
    min-width: 60px;
  }
}

/* 모바일 전용 카드 UI 스타일 */
@media (max-width: 999px) {
  /* 테이블 헤더 모바일에서 숨기기 */
  .list-basic--4 .table-head {
    display: none !important;
  }
  
  /* 카드형 UI로 변경 */
  .list-basic--4 .table-body {
    display: block !important;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 16px !important;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
  
  /* 모든 셀을 블록 레벨로 변경 */
  .list-basic--4 .table-body li {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid #eee;
  }
  
  /* 첫 번째 항목(학습 목표) 강조 */
  .list-basic--4 .table-body li:first-child {
    font-weight: 600;
    font-size: 16px;
    padding-bottom: 12px !important;
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
  }
  
  /* 메타 정보 영역 정렬 */
  .list-basic--4 .table-body li:nth-child(2),
  .list-basic--4 .table-body li:nth-child(3),
  .list-basic--4 .table-body li:nth-child(4) {
    display: flex !important;
    justify-content: space-between !important;
    padding: 6px 0 !important;
  }
  
  /* 메타 정보 라벨 추가 */
  .list-basic--4 .table-body li:nth-child(2)::before {
    content: "목표 점수";
    font-size: 14px;
    color: #666;
  }
  
  .list-basic--4 .table-body li:nth-child(3)::before {
    content: "정답/문항";
    font-size: 14px;
    color: #666;
  }
  
  .list-basic--4 .table-body li:nth-child(4)::before {
    content: "소요 | 권장 | 제한";
    font-size: 14px;
    color: #666;
  }
  
  /* 버튼 영역 */
  .list-basic--4 .table-body li:nth-child(5),
  .list-basic--4 .table-body li:nth-child(6) {
    border-bottom: none;
    display: inline-block !important;
    width: 48% !important;
    margin-top: 12px !important;
    text-align: center !important;
  }
  
  /* 첫 번째 버튼에 우측 여백 추가 */
  .list-basic--4 .table-body li:nth-child(5) {
    margin-right: 2px !important;
  }
  
  /* 두 번째 버튼에 좌측 여백 추가 */
  .list-basic--4 .table-body li:nth-child(6) {
    margin-left: 2px !important;
  }
  
  /* 버튼 스타일 조정 */
  .list-basic--4 .table-body li:nth-child(5) button,
  .list-basic--4 .table-body li:nth-child(6) button {
    width: 100% !important;
    padding: 8px 0;
  }
  
  
  /* ㄴ 표시 제거 */
  .list-basic--4 .table-body.child-item::before {
    display: none !important;
  }
  
  /* 첫 번째 항목(학습 목표) 스타일 조정 */
  .list-basic--4 .table-body.child-item li:first-child {
    display: block !important;
    padding-left: 0 !important;
    padding-bottom: 12px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  /* 뱃지 스타일 - 별도의 줄에 표시 */
  .list-basic--4 .table-body.child-item li:first-child .badge__medium {
    display: block !important;
    margin-right: 0 !important;
    margin-bottom: 8px !important;
    vertical-align: baseline !important;
    padding: 2px 6px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    height: auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: fit-content !important;
    border-radius: 4px !important;
  }
  
  /* 학습 목표 텍스트 - 별도의 줄에 표시 */
  .list-basic--4 .table-body.child-item li:first-child .line-clamp-1,
  .list-basic--4 .table-body.child-item li:first-child a.line-clamp-1 {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 4px !important;
  }
}

/* 툴팁 스타일 - z-index 높게 설정 */
.table-body:not(.child-item) [data-tooltip-text]:hover:after {
  /* content: attr(data-tooltip-text); */
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  width: max-content;
  max-width: 300px;
  z-index: 9999 !important; /* 매우 높은 z-index 값 */
  top: 100%;
  left: 0;
  margin-top: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 추가학습, 재출제 항목에서는 툴팁 비활성화 */
.table-body.child-item [data-tooltip-text]:hover:after {
  content: none !important;
  display: none !important;
}

/* iframe print */
.iframe-preview {
  width: 100%;
  height: 100vh;
  min-height: 100px;
  background-color: var(--white);
  padding: 0;
  margin: 0;
}

/* tree +,- 아이콘 추가 */
.tree-toggle {
  display: block;
  width: 24px;
  height: 24px;
  background-size: 24px;
  font-size: 0 !important;
}

.tree-toggle.material-symbols-sharp {
  background-image: url(../../../assets/center/images/common/icon_plus.svg);
}

.tree-toggle.icon-minus {
  background-image: url(../../../assets/center/images/common/icon_minus.svg);
}

.tree_main .gap-0 {
  gap: 4px !important;
}

.filter-with-tab.relative-end{
  position: relative;
  top:0;
  justify-content: flex-end;
  margin-bottom: 8px;
}
@media screen and (max-width: 415px) {
	.filter-radio.m-small label{
		padding:0 8px;
	}
}

/* 2025-1105 수정 */
input:disabled{
  background-color: #ebebeb !important;
}

/* 2025-1109 모달팝업 */

.modal.max-360 .modal-dialog {
  max-width: 360px;
}

.modal.max-450 .modal-dialog {
  max-width: 450px;
}

.modal.max-520 .modal-dialog {
  max-width: 520px;
}

.modal.max-680 .modal-dialog {
  max-width: 680px;
}

.modal.max-980 .modal-dialog {
  max-width: 980px;
}

.modal--xlarge .modal-dialog {
  max-width: 1200px;
}

.modal.max-1400 .modal-dialog {
  max-width: 1400px;
}


.list-basic-grid {
  padding: 8px 0;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0px 1px 4px rgba(33, 33, 52, 0.1);
  font-size: 12px;
}
.list-basic-grid ul {
  display: flex;
  vertical-align: middle;
  min-height: 48px;
  padding: 6px 0;
}

.list-basic-grid ul img {
  width: auto;
}

.list-basic-grid ul .line-clamp-1 {
  font-weight: 600;
  color: #343440;
  gap: 4px;
}

.list-basic-grid ul.table-head {
  border-bottom: 1px solid #f1f1f2;
}

.list-basic-grid ul.table-head li {
  font-weight: 700;
  font-size: 12px;
  display: flex;
  justify-content: center;
  white-space: nowrap;
}

.list-basic-grid ul.table-body {
  position: relative;
  transition: all 0.2s ease-in-out;
  color: #97979d;
}
.list-basic-grid ul.table-body li{
  display: flex;
  justify-content: center;
}

.list-basic-grid ul {
  width: calc(100% - 16px);
  border-bottom: 1px solid #f1f1f2;
  box-sizing: content-box;
  padding: 0 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
}
.list-basic-grid ul:last-child {
  border-bottom: none;
}

/* 2025-1112 테이블 반응형 처리 */
.list-basic-grid2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size:12px;
}
.list-basic-grid2 div{
  width: 100%;
}
.list-basic-grid2-1>ul{
  width: 100%;
  display: grid ;
  grid-template-columns: 1fr;
}
.list-basic-grid2-2>ul{
  width: 100%;
  display: grid ;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.table-head{
  border-bottom: 1px solid #f1f1f2;
}
.table-head li{
  font-weight: 700;
}
.list-basic-grid2 li{
  display: flex;
  justify-content: center;
  padding: 12px !important;
}
.table-grid-5{
  display: grid !important;
  grid-template-columns: 4fr 1fr 1fr 1fr 1fr;
}
.table-grid-2{
  display: grid !important;
  grid-template-columns: 4fr 1fr;
}

.modal-inner-scroll .modal-header {
    position: relative;
}
@media (max-width: 640px) {
  /* 2025-1117 내부 스크롤 삭제 시 수정 */
  .modal-body,
  .accordion-basic .accordion-body {
      padding: 16px;
  }
  .list-basic-grid2{
    display: block;    
  }
  .list-basic-grid2-2{
    border-top: 1px solid #f1f1f2;
  }

}

/* 2025-1111 분석표 테이블 수정 */
.table-layout-basic.mobile {
    table-layout:auto;
}
.table-basic th{
  text-align: center;
  width: initial;
}
.table-primary {
    background-color: #ecf4ff;
}
.card-dashboard{
  display: grid;
  gap:1rem;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.card-dashboard .text-secondary{
  font-size: 14px;
}
.card-box{
  display: flex;
  flex-direction: column;
  flex: 1; 
  padding: 1rem;
  border-radius: 8px; 
  gap:0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.card-title{
  font-size:20px;
  font-weight: bold;
}
.card-text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}
@media (max-width: 767px) {
  .card-dashboard{
    grid-template-columns: 1fr 1fr;
    gap:0.5rem;
  }  
  .card-dashboard .text-secondary{
    font-size: 11px;
  }
  .text-help{
    display: block;
  }
}
@media (max-width: 480px) {
  .card-text {
    flex-direction: column;
    gap:0.25rem;
  }
}

/* 모바일 내부 스크롤 삭제 */
.modal-inner-scroll .modal-content {
    max-height: unset;
}
.modal-inner-scroll .modal-body {   
    overflow-y: unset;
    margin-bottom: 0;
}
/* 2025-1117 내부 스크롤 삭제 시 수정 */
.modal-inner-scroll .modal-footer{
  position: relative;
  padding: 0 12px;
}

/* 아코디언 드롭다운 버튼 없을 때 hover 처리 해제 */
.accordion-basic .accordion-button.button-none:hover{
  background: none;
}

/* 태그 추가 */
.tagline {
  padding: 2px 0;
  display: flex;
  gap: 1px;
}

.tagline p {
  line-height: 1em;
  font-size: 12px;
  min-width: 28px;
  display: flex;
  justify-content: center;
}

.tagline p+p {
  border-left: 1px solid #dcdcde;
  padding-left: 1px;
}

/* 2025-1117 treeview 라디오 버튼 추가*/
.radio-select__item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.radio-select__item.title-line {
  justify-content: flex-start;
  cursor: pointer;
}

.form-radio {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  appearance: none;
  border: 1px solid #c0c0cf;
  border-radius: 50%;
}

.form-radio:checked {
  position: relative;
  border: 1px solid #1e85ff;
}

.form-radio:checked::after {
  content: "";
  width: 12px;
  height: 12px;
  position: absolute;
  border-radius: 50%;
  background-color: #1e85ff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* 2026-0109 */
.premium-study {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.premium-study__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.premium-study__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.premium-study__meta {
  display: flex;
  gap: 10px;
  color: #777;
  font-size: 14px;
}

.premium-study__info:not(:last-child)::after {
  content: "|";
  margin-left: 10px;
  color: #eee;
}

.premium-study__status {
  display: flex;
  align-items: center;
  gap: 40px;
}

.premium-study__progress {
  display: flex;
  align-items: center;
  gap: 15px;
}

.premium-study__bar-container {
  width: 200px;
  height: 10px;
  background: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
}

.premium-study__bar-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.premium-study__bar-fill--ing { background-color: #007bff; }
.premium-study__bar-fill--done { background-color: #007bff; } /* 완료 시 색상 변경 가능 */

.premium-study__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  min-width: 160px;
}

.premium-study__stats-item--percent { color: #333; font-weight: 800; }
.premium-study__stats-item--count { color: #999; }

.division-vertical {
    background-color: #d9d9d9;
    width: 1px;
    height: 12px;
}

@media (max-width: 768px) {
  .premium-study__bar-container {
    width: 140px;
  }
  .premium-study__status {
    gap: 20px;
  }
  .premium-study__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .premium-study__status {
    width: 100%;
    justify-content: space-between;
  }
  .premium-study__progress {
    flex-grow: 1;
  }
}

@media (max-width: 480px) {
  .premium-study__status {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    min-width: 100%;
  }
  .premium-study__bar-container {
    width: 100%;
    flex: 1;
  }
  .premium-study__button {
    width: 100%;
  }
}

.treeview-premium li{      
  padding-left: 0;
}
.treeview-premium li li{      
  padding-left: 0 !important;
}
.treeview-premium li .line{
  padding-left: 52px;
}

.treeview-premium li ul .line{
  padding-left: 84px;
}
.treeview-premium li ul li ul .line{
  padding-left: 114px;
}
.treeview-premium li ul li ul li ul .line {
  padding-left: 144px;
}
.treeview-premium li li li{
  padding-left: 0px !important;
}

@media (max-width: 767px) {
  .treeview-premium .learning-tree__header,
  .treeview-premium .learning-tree__body--list {
    gap: 4px;
  }
  .treeview-premium li .line {
    padding-left: 44px;
  }
  .treeview-premium li ul .line {
    padding-left: 44px;
  }
  .treeview-premium li ul li ul .line {
    padding-left: 54px;
  }
  .treeview-premium li ul li ul li ul .line {
    padding-left: 64px;
  }
}
@media (max-width: 420px) {
  .treeview-premium .learning-tree__body--item{
    font-size: 12px;
  }
  .treeview-premium button{
    width: 54px !important;
    font-size: 11px;
  }
}

.with-comentary-4p ul{
  grid-template-columns: 1fr 3fr 2fr 1fr;
  gap:0;
}