main{
  padding-left: 0px;
  padding-right: 0px;
  margin-top: 20px;
}
tr{
  width: 100vw;
  border-bottom: var(--line-solid);
  text-align: left;
  box-sizing: border-box;
  /* background-color: rebeccapurple; */
  gap: 10px;
}
td{
  text-transform: uppercase;
  width: 25% !important;
  /* padding: 10px; */
  border-bottom: var(--line-solid);
  text-align: left;
  /* background-color: rebeccapurple; */
  box-sizing: border-box;
  padding: 4px;
  /* 긴 텍스트를 ...으로 처리 */
  white-space: pre-wrap; /* 줄넘김을 허용하도록 수정 */
  overflow: hidden;
  text-overflow: ellipsis;
}
td:nth-child(3), td:nth-child(4){
  text-align: end;
  width: 25% !important;
}
.content-column{
  width: 100%;
}

/* 이미지 스타일링 */
.content-image {
  margin: 2px 0;
  display: flex;
  align-items: start;
  justify-content: start;
  max-width: 400px;
}

.content-image img {
  max-width: 75%;
  height: auto;
  cursor: pointer;
}


/* 문서 미리보기 스타일링 */
.content-document {
  margin: 8px 0;
}


.document-preview {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.document-preview img {
  max-width: 200px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.document-preview:hover img {
  opacity: 0.8;
  transform: scale(1.02);
}

.document-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 4px;
}

.document-preview:hover .document-overlay {
  opacity: 1;
}

.view-document {
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  cursor: pointer;
}

/* 일반 셀의 이미지 스타일링 */
td img {
  max-width: 100%;
  height: auto;
}
.yetSelected:hover{
  cursor: pointer;
  background-color: gray;
}

/* 행 클릭 기능을 위한 스타일 */
.contentBox {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contentBox:hover {
  /* background-color: rgba(0, 0, 0, 0.05); */
}

body{
  padding-bottom: 100px !important;
}

.selectedBody{
  /* height: 100vh; */
}

section{
}


.selected-row {
  display: flex;
  flex-direction: column;
  height: auto;
  /* background-color: rgba(0, 123, 255, 0.1); */
  /* border-left: 3px solid #007bff; */
  border-bottom: none;
}


.selected-row:hover {
  background-color:white;
}

.selected-row td{
  width: 80% !important;
  border-bottom: none;
  text-align: left;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  font-size: min(17px, 4.7vw) !important;
}

.selected-row td:nth-child(3), .selected-row td:nth-child(4){
  border-bottom: none;
}

.selected-row td:nth-child(5) {
  padding-bottom: 100px !important; 
  box-sizing: border-box;
  /* background-color: rebeccapurple !important;  */
}

/* pc */

  @media (min-width: 768px) {
    main{
      /* width: 100% !important; */
    }
    table{
      /* width: 84% !important; */
    }
  }

/* mobile */
tr{
  /* width: 100%; */
  height: 50px !important;
}

  /* @media (max-width: 768px) { */
    .content-image img {
      max-width: 100%;
      height: auto;
      cursor: pointer;
    }
    
    .selected-row td{
      width: 100% !important;
      border-bottom: none;
      text-align: left;
      white-space: normal;
      overflow: visible;
      text-overflow: unset;
    }

    main{
      margin-top: 0px;
      width: 100vw;
    }
    tr{
      /* width: 100%; */
      height: 50px !important;
    }
    td{
      /* width: 25% !important;
      white-space: nowrap; */
      /* overflow: hidden; */
      text-overflow: ellipsis;
    }
    
    /* 모바일에서 2번째 td 글자수 제한 */
    td:nth-child(2){
      max-width: 150px; /* 최대 너비 설정 */
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    td:nth-child(3), td:nth-child(4){
    }
  /* } */



  /* filter */

  .filter{
    width: 200px;
    height: 200px;
    box-sizing: border-box;
    box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255);
    border-right: var(--line-solid);
    border-top: var(--line-solid);
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: none;
  }