/*
current [style_kiel.css] version : 0.0.1
update day : 24.05.09 15:09
map_kiel, jeju, ai update 등이 다 이거로 쓰임 
*/


.page_container{
  width: 100%;
  margin: 0 auto; 
  overflow: hidden; 
} 


/* DIV 왼쪽 오른쪽 박스 (지도랑 테이블 분할) */                                                                                                                                                                                                                                                                                                       wbr                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
.map-and-container{
 height: 100%;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
}


.standard_record_table th {
  text-align: center;
  background-color: #f0f0f0;
  border-color: #ccc;
  border-style: solid;
  border-width: 1px;
  color: #333;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  overflow: hidden;
  padding: 10px 5px;
  word-break: normal;
}

.standard_record_table td {
  text-align: center;
  background-color: #fff;
  border-color: #ccc;
  border-style: solid;
  border-width: 1px;
  color: #333;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: normal;
  overflow: hidden;
  padding: 10px 5px;
  word-break: normal;
}


.standard_record_table th.standard_record_table_pk {
  width: 63%; /* 표준지 주소 열의 너비를 50%로 설정 */
}

.standard_record_table th.standard_record_table_normal {
  width: 6%; /* 나머지 열의 너비를 10%로 설정 (전체 너비의 나머지 열을 6등분) */
}



/* 테이블 컨테이너 스타일링 */
.table-container {
    max-height: 400px; /* 원하는 높이로 설정하세요 */
    overflow-y: scroll;
    width: 100%;
}


/* 호버 효과 */
tr:hover {
    background-color: #ddd;
}

/* 특정 열 스타일링 예시 */
.special-column {
    background-color: #ffcc00;
    color: #333;
    font-weight: bold;
}

/* 글꼴 및 크기 조절 */
table {
    font-family: Arial, sans-serif;
    font-size: 3px;
}

/*네비게이션 바 */
/* 네비게이션 바 전체 레이아웃 구역 */
.nav-div {
    width: 100%;
    background-color: #ffffff; /* 배경색 흰색 */
    /* 테두리: 요청하신 색상(#009879)으로 두께를 3px로 주어 강조 */
    border-bottom: 3px solid #4CAF50; 
    /* 그림자: 더 짙고 넓게 퍼지도록 설정하여 확실한 입체감 부여 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); 
    position: relative;
    z-index: 1000;
}

/* 내부 메뉴 컨테이너 */
.menu {
    width: 100% !important;
    max-width: 1200px; /* 너무 퍼지지 않게 적당한 가이드라인 설정 */
    height: 50px !important; /* 기존 세로 폭 50px 유지 */
    background-color: #ffffff !important;
    display: flex;
    justify-content: center; /* 메뉴들 중앙 정렬 */
    margin: 0 auto;
}

nav {
    height: 100%;
    font-family: 'Noto Sans KR', sans-serif;
}

nav ul {
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: transparent !important;
}

nav li {
    display: flex;
    align-items: center;
    height: 100%;
}

nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 25px;
    color: #333333 !important; /* 회색 섞인 검정 */
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    transition: color 0.2s ease;
}

/* 마우스 올렸을 때 효과 (Hover) */
nav li a:hover {
    color: #4CAF50 !important; /* 글자색을 테두리색과 동일하게 변경 */
}

/* 밑줄 애니메이션 */
nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px; /* 밑줄 두께 */
    background-color: #4CAF50; /* 밑줄 색상 고정 */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav li a:hover::after {
    width: 80%; /* 글자 너비의 80%만큼 밑줄이 생김 */
}

/* 기존 불필요한 스타일 제거 */
nav a#pull {
    display: none;
}




 /*반응형 테이블 (측정지 전체 리스트)*/

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 12px;
}

.responsive-table th, .responsive-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.responsive-table th {
  background-color: #f2f2f2;
}

/* 반응형 테이블 스타일 - 화면 폭에 따라 테이블 크기 조정 */
@media (max-width: 600px) {
  .responsive-table {
      font-size: 12px;
      
  }
}

/* 테이블 찾기 노란색 배경으로 강조 표시 */
.highlight {
  background-color: yellow; /* 노란색 배경으로 강조 표시 */
}

#dynamic_text_std {
  padding-top: 0px;    /* 상단 패딩을 10px로 설정 */
  padding-bottom: 0px; /* 하단 패딩을 10px로 설정 */
  font-size: 16px;      /* 글꼴 크기를 16px로 설정 */
  background-color: yellow;
}

.custom-overlay {
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%; /* 원 모양으로 만듭니다. */
    border: 2px solid white; /* 흰색 테두리 추가 */
    position: absolute;
    transform: translate(-50%, -50%);
}

.modal {
  display: none; /* 초기에는 숨김 */
  position: fixed; /* 화면에 고정 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
  z-index: 9555; /* 다른 요소 위에 표시되도록 */
}

.modal-content {
  background-color: white;
  margin: 3% auto; /* 화면 중앙에 위치 */
  padding: 5px;
  border: 1px solid #888;
  width: 90%;
  /* height: 70%;
  /* max-width: 600px; */
  position: relative;
  border-radius: 5px;
  z-index: 9551;
}

#close-modal {
  font-size: 30px; /* 폰트 크기를 조정합니다. */
}

.close {
  position: absolute;
  top: 5px;
  right: 10px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* 마커 누르면 나오는 결과값Table styles */

.table-wrapper {
  max-height: 800px; /* 테이블의 최대 높이 설정 (원하는 높이로 조정) */
  overflow-y: auto; /* 세로 스크롤을 허용 */
  width: 98%;
  margin: 0 auto;
}

#lightResultTable, #lightImportTable, #lightImportTable-std  {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
  text-align: center;
  table-layout: fixed;
}

#lightResultTable thead tr, #lightImportTable thead tr, #lightImportTable-std thead tr {
  background-color: #009879;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
}

#lightResultTable th, #lightResultTable td, #lightImportTable th, #lightImportTable td, #lightImportTable-std th,#lightImportTable-std td {
  padding: 8px 10px; /* padding 값을 줄임 */
  line-height: 1.2;  /* line-height 속성 추가 */
}

#lightResultTable tbody tr, #lightImportTable tbody tr,#lightImportTable-std tbody tr {
  border-bottom: 1px solid #dddddd;
}

#lightResultTable tbody tr:nth-of-type(even), #lightImportTable tbody tr:nth-of-type(even), #lightImportTable-std tbody tr:nth-of-type(even){
  background-color: #f3f3f3;
}

#lightResultTable tbody tr:last-of-type, #lightImportTable tbody tr:last-of-type, #lightImportTable-std tbody tr:last-of-type  {
  border-bottom: 2px solid #009879;
}


#lightResultTable-body, #stdTable-body {
  display: block;
  max-height: 600px; /* 20행 정도의 높이로 설정합니다. 실제 높이는 각 행의 높이에 따라 조정해야 합니다. */
  overflow-y: auto; /* 세로 스크롤을 허용합니다. */
}

#lightResultTable thead, #lightResultTable tbody tr, #lightImportTable thead, #lightImportTable tbody tr, #lightImportTable-std thead, #lightImportTable-std tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed; /* 테이블 레이아웃을 고정합니다. */
}


#lightImportTable thead, #lightImportTable-std thead {
  width: 100%;
}

/* tbody에 스크롤 적용 */
#lightImportTable tbody, #lightImportTable-std tbody {
  display: table;
  width: 100%;
  max-height: 600px; /* 스크롤 적용할 높이 */
  overflow-y: auto;
}

.update-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
  text-align: center;
  table-layout: fixed;
}

.update-table thead tr {
  background-color: #009879;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
}

.update-table th, .update-table td {
  padding: 8px 10px;
  line-height: 1.2;
}

.update-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.update-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.update-table tbody tr:last-of-type {
  border-bottom: 2px solid #009879;
}

.update-table-body {
  display: block;
  max-height: 600px;
  overflow-y: auto;
}

.update-table thead, .update-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}


/* 결과값 테이블 끝 */

#tost_message {
  opacity: 0;
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translate(-50%,0);
  padding: 10px 50px;
  background: rgba(0, 0, 0, 0.70);
  border-radius: 100px;
  color: #fff;
  box-shadow: 3px 4px 11px 0px #00000040;
  transition: all 0.5s;
}

/*토스트 메시지 활성화 되었을 때*/
#tost_message.active {
  opacity: 100%;
  bottom: 50px;
}

.toast-message {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 10px;
  background-color: #333;
  color: white;
  border-radius: 5px;
}

.toast-message.active {
  display: block;
}


.marker-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 9000;
  /* width: 100px;
  height: 50px; */
  text-align: center;
  white-space: nowrap;
  background-color: #ffffff; /* 흰색 배경 */
  border: 1px solid #dddddd; /* 연한 회색 테두리 */
  border-radius: 5px; /* 둥근 테두리 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 입체감 있는 그림자 */
  padding: 5px; /* 패딩 추가 */
}

/* marker-label-content 클래스를 사용하여 텍스트 스타일 설정 */
.marker-label-content {
  font-size: 11px; /* 폰트 크기 조정 */
  color: #424242; /* 회색 텍스트 색상 */
}

.hidden-column {
  display: none;
}



/*legend Table*/
.legend-table-container {
  position: fixed; /* 화면에 고정 */
  bottom: 10px; /* 하단에 위치 */
  left: 8px; /* 왼쪽에 위치 */
  z-index: 9003; /* 다른 모든 요소 위에 표시 */
  background-color: white; /* 배경색 설정 */
  border: 1px solid #ddd; /* 테두리 설정 */
  padding: 5px; /* 내부 여백 설정 */
  margin: 5px; /* 외부 여백 설정 */
  border-radius: 5px; /* 테두리 반경 설정 */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 그림자 설정 */
  width: 270px;
}

.legend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.legend-table th, .legend-table td {
  padding: 6px 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  cursor: pointer; /* 클릭 가능한 스타일 추가 */
}

.legend-table thead {
  background-color: #f5f5f5;
}

.legend-table thead th {
  position: sticky;
  top: 0;
  background-color: white; /* 헤더 배경색 */
  z-index: 1; /* 다른 내용 위에 표시되도록 설정 */
}

.legend-table tbody tr:nth-of-type(even) {
  background-color: #f9f9f9;
}

.legend-table img {
  width: 12px;
  height: auto;;
} 

.hidden-cell {
  visibility: hidden; /* 특정 셀을 숨기는 클래스 */
}

.legend-table-search-container {
  position: fixed; /* 화면에 고정 */
  top: 60px; /* 상단에 위치 */
  left: 8px; /* 왼쪽에 위치 */
  z-index: 900; /* 다른 모든 요소 위에 표시 */
  padding: 0px; /* 내부 여백 설정 */
  margin: 5px; /* 외부 여백 설정 */
  width: 270px;
  max-height: 400px;
  overflow-y: auto;
  justify-content: flex-end; /* 자식 요소를 오른쪽으로 정렬 */
}

#searchInput {
  margin: 0; /* 여백 제거 */
  padding: 7px; /* 안쪽 여백 제거 */
  width: 60%; /* 컨테이너에서 약간의 여유 공간 */
  font-size: 12px; /* 폰트 크기 */
  border: 1px solid #ccc; /* 테두리 설정 */
  border-radius: 4px; /* 둥근 테두리 */
  text-align: left; /* 텍스트 정렬 */
}


.legend-table-lot-container {
  position: fixed; /* 화면에 고정 */
  top: 95px; /* 상단에 위치 */
  left: 8px; /* 왼쪽에 위치 */
  z-index: 900; /* 다른 모든 요소 위에 표시 */
  background-color: white; /* 배경색 설정 */
  border: 1px solid #ddd; /* 테두리 설정 */
  padding: 5px; /* 내부 여백 설정 */
  margin: 5px; /* 외부 여백 설정 */
  border-radius: 5px; /* 테두리 반경 설정 */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 그림자 설정 */
  width: 270px;
  max-height: 320px;
  overflow-y: auto;
}

.legend-table-result-container {
  position: fixed; /* 화면에 고정 */
  bottom: 10px; /* 하단에 위치 */
  right: 10px; /* 왼쪽에 위치 */
  z-index: 900; /* 다른 모든 요소 위에 표시 */
  background-color: white; /* 배경색 설정 */
  border: 1px solid #ddd; /* 테두리 설정 */
  padding: 5px; /* 내부 여백 설정 */
  margin: 5px; /* 외부 여백 설정 */
  border-radius: 5px; /* 테두리 반경 설정 */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 그림자 설정 */
  width: 900px;
  /*max-height: 210px;*/
  max-height: 180px;
  overflow-y: auto;
}

.legend-table-result-container-jeju {
  position: fixed; /* 화면에 고정 */
  bottom: 10px; /* 하단에 위치 */
  right: 10px; /* 왼쪽에 위치 */
  z-index: 900; /* 다른 모든 요소 위에 표시 */
  background-color: white; /* 배경색 설정 */
  border: 1px solid #ddd; /* 테두리 설정 */
  padding: 5px; /* 내부 여백 설정 */
  margin: 5px; /* 외부 여백 설정 */
  border-radius: 5px; /* 테두리 반경 설정 */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 그림자 설정 */
  width: 900px;
  /*max-height: 210px;*/
  max-height: 180px;
  overflow-y: auto;
}


.legend-img-container {
  position: fixed; /* 화면에 고정 */
  bottom:10px; /* 대략적인 중간 위치 */
  left: 300px; /* 오른쪽에 고정 */
  z-index: 900; /* 다른 요소 위에 표시 */
  background-color: white; /* 배경색 설정 */
  border: 1px solid #ddd; /* 테두리 설정 */
  padding: 5px; /* 내부 여백 설정 */
  margin: 5px; /* 외부 여백 설정 */
  border-radius: 5px; /* 테두리 반경 설정 */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 그림자 설정 */
  width: 270px; /* 적당한 너비 설정 */
  max-height: 180px; /* 높이 제한 */
  overflow: hidden; /* 이미지 영역 초과 숨기기 */
}

.legend-img {
  width: 100%; /* 부모 요소에 맞춰서 조정 */
  height: 100%; /* 부모 요소에 맞춰서 조정 */
  background-size: contain; /* 이미지 크기 조정 */
  background-repeat: no-repeat;
  background-position: center;
}


.update-menu-div-ai {
  position: fixed;
  top: 60px;
  right: 8px;
  padding: 5px; /* 상하 10px, 좌우 20px 여백 */
  display: flex;
  justify-content: space-between; /* 좌우로 공간을 균등 분배 */
  align-items: center; /* 수직 중앙 정렬 */
  z-index: 9999;
}


/* map/kiel/update 관련사항 */

.update-div {
  width: 100%; /* 가로 크기의 80% */
  margin: 0 auto; /* 가운데 정렬 */
  /* 추가적인 스타일 */
  padding: 10px; /* 내부 여백 */
  background-color: #f0f0f0; /* 배경색 */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* 그림자 효과 */
}


/* ### update-modal 부분 ### */
/* 모달 배경 */
.modal-update {
  display: none; /* 초기 상태에서는 숨김 */
  position: fixed;
  z-index: 9981;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
}

/* 모달 컨텐츠 */
.modal-update-content {
  background-color: #fefefe;
  margin: 5% auto; /* 모달의 위치 조정 */
  padding: 15px;
  border: 1px solid #888;
  width: 80%; /* 모달의 너비 설정 */
  max-width: 600px; /* 최대 너비 설정 */
  border-radius: 10px;
}

/* 모달 헤더 */
.modal-update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

/* 모달 제목 */
.modal-update-title {
  font-size: 1.2em;
  font-weight: bold;
}

/* 모달 닫기 버튼 */
.close-update-button {
  font-size: 1.2em;
  cursor: pointer;
}

/* 모달 바디 */
.modal-update-body {
  display: flex;
  flex-direction: column;
  gap: 10px; /* 항목 간의 간격 조정 */
}

/* 라벨 스타일 */
.modal-update-body label {
  font-size: 0.9em;
  font-weight: bold;
}

/* 입력 상자 스타일 */
.edit-input {
  padding: 6px;
  font-size: 0.9em;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* 모달 푸터 */
.modal-update-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px; /* 버튼 간의 간격 조정 */
  margin-top: 15px;
}

.modal-update-footer button {
  padding: 6px 12px;
  font-size: 0.9em;
  cursor: pointer;
  border-radius: 5px;
}

/* 검색 필드와 show entries 간의 간격 조정 */
.dataTables_wrapper .dataTables_filter {
      margin-bottom: 10px; /* 검색 필드 아래 간격 조정 */
}

.dataTables_wrapper .dataTables_length {
      margin-bottom: 10px; /* show entries 아래 간격 조정 */
}

  /* 검색 필드와 show entries 사이의 간격 조정 */
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
      margin-right: 20px; /* 오른쪽 간격 조정 */
}

/* 검색 필드와 추가하기 버튼 사이 간격 조정 */
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 10px; /* 검색 필드 아래 간격 조정 */
  display: flex;
  align-items: center;
}

/* 추가하기 버튼 스타일 */
.add-button {
  margin-left: 20px; /* 검색 필드와 버튼 사이 간격 조정 */
  padding: 6px 12px;
  font-size: 0.9em;
  cursor: pointer;
  border-radius: 5px;
  background-color: #4CAF50; /* 버튼 배경색 */
  color: white; /* 버튼 텍스트 색 */
  border: none; /* 버튼 테두리 제거 */
}

.add-button:hover {
  background-color: #45a049; /* 버튼 호버 시 색상 변경 */
}


.import-add-button {
  margin-left: 20px; /* 검색 필드와 버튼 사이 간격 조정 */
  padding: 6px 12px;
  font-size: 0.9em;
  cursor: pointer;
  border-radius: 5px;
  background-color: #4CAF50; /* 버튼 배경색 */
  color: white; /* 버튼 텍스트 색 */
  border: none; /* 버튼 테두리 제거 */
}

.import-add-button:hover {
  background-color: #45a049; /* 버튼 호버 시 색상 변경 */
}


/* 로그인 html */
.content-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90vh;
  background-color: #f0f2f5;
  font-family: 'Arial', sans-serif;
}

/* 로그인 컨테이너 스타일 */
.login-container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 340px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* 가로 방향 중앙 정렬 */
  text-align: center; /* 텍스트 중앙 정렬 */
}

/* 타이틀 스타일 */
.login-container h1 {
  margin-bottom: 15px;
  font-size: 28px;
  color: #333;
  font-weight: 700;
}

/* 에러 메시지 스타일 */
.error-message {
  color: #e74c3c;
  margin-bottom: 20px;
}

/* 입력 그룹 스타일 */
.input-group {
  margin-bottom: 25px;
  text-align: left;
}

/* 레이블 스타일 */
.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #555;
  font-size: 14px;
}

/* 인풋 필드 스타일 */
.input-group input {
  width: 85%;
  padding: 12px 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  background-color: #f7f7f7;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  border-color: #007bff;
  outline: none;
  background-color: #ffffff;
}

/* 버튼 스타일 */
.login-button {
  width: 100%;
  padding: 12px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: #0056b3;
}



/* 업데이트 메뉴  */
/* 업데이트 메뉴 */

.update-menu-div-ai {
  position: fixed;
  top: 60px;
  right: 8px;
  padding: 5px; /* 상하 10px, 좌우 20px 여백 */
  display: flex;
  justify-content: space-between; /* 좌우로 공간을 균등 분배 */
  align-items: center; /* 수직 중앙 정렬 */
}


.update-menu-div {
  background-color: #f8f9fa; /* 밝은 배경색 */
  border-bottom: 2px solid #dee2e6; /* 하단 테두리 */
  padding: 10px 20px; /* 상하 10px, 좌우 20px 여백 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 가벼운 그림자 효과 */
  display: flex;
  justify-content: space-between; /* 좌우로 공간을 균등 분배 */
  align-items: center; /* 수직 중앙 정렬 */
}

/* 버튼들을 감싸는 wrapper 스타일 */
.update-menu-wrapper {
  display: flex;
  justify-content: flex-start; /* 왼쪽 정렬 */
  align-items: center; /* 수직 중앙 정렬 */
  gap: 10px; /* 버튼 간의 간격 */
}

/* 드롭다운 wrapper 스타일 */
.update-dropdown-wrapper {
  display: flex;
  justify-content: flex-end; /* 오른쪽 정렬 */
  align-items: center; /* 수직 중앙 정렬 */
}


/* 버튼 스타일 */
.update-menu-wrapper button {
  background-color: #4CAF50; /* 파란색 배경 */
  color: white; /* 버튼 텍스트 색상 */
  border: none; /* 테두리 제거 */
  border-radius: 5px; /* 둥근 모서리 */
  padding: 8px 15px; /* 상하 8px, 좌우 15px 여백 */
  font-size: 14px; /* 텍스트 크기 */
  cursor: pointer; /* 클릭 시 포인터 커서 */
  transition: background-color 0.3s ease, transform 0.3s ease; /* 배경색 및 크기 변환 효과 */
}

/* 버튼 호버 효과 */
.update-menu-wrapper button:hover {
  background-color: #4caf4fda; /* 어두운 파란색 배경 */
  transform: translateY(-2px); /* 살짝 위로 이동 */
}

/* 버튼 클릭 시 효과 */
.update-menu-wrapper button:active {
  background-color: #4caf4fc2; /* 더 어두운 파란색 배경 */
  transform: translateY(1px); /* 살짝 아래로 이동 */
}

/* 드롭다운 버튼 스타일 */
.dropdown {
  position: relative;
  display: inline-block;
}

/* 드롭다운 버튼 스타일 */
.dropbtn {
  background-color: white; /* 배경을 흰색으로 */
  color: black; /* 글자를 검은색으로 */
  padding: 8px 30px 8px 15px; /* 오른쪽 패딩을 더 늘림 */
  font-size: 14px;
  border: 2px solid #4CAF50; /* 테두리를 초록색으로 */
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  position: relative;
}
/* 화살표 추가 */
.dropbtn::after {
  content: '\25BC'; /* 유니코드로 아래쪽 화살표 추가 */
  font-size: 12px;
  color: black;
  position: absolute;
  right: 10px; /* 화살표 위치를 버튼의 오른쪽으로 조정 */
  top: 50%;
  transform: translateY(-50%);
}


.update-dropdown-wrapper, .update-dropdown-wrapper-ill  {
  display: flex;
  gap: 16px; /* 두 요소 사이에 20px의 간격 추가 */
}



/* 드롭다운 콘텐츠 (숨겨진 상태) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  top:100%;
  width:100%;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 9999;
  border-radius: 5px;
  max-height: 300px;
  overflow-y: auto;
}

/* 드롭다운 아이템 스타일 */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}


.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* 드롭다운 버튼을 클릭하면 드롭다운 콘텐츠를 보여줌 */
.dropdown:hover .dropdown-content {
  display: block;
}

/* 드롭다운 버튼 호버 효과 */
.dropbtn:hover, .dropbtn-ill:hover {
  background-color: #f1f1f1; /* 호버 시 배경색을 살짝 회색으로 */
  transform: translateY(-2px);
}

/* 드롭다운 버튼 클릭 효과 */
.dropbtn:active, .dropbtn-ill:active{
  background-color: #e7e7e7; /* 클릭 시 배경색을 더 진한 회색으로 */
  transform: translateY(1px);
}



.update-dropdown-wrapper {
  display: flex;
  flex-direction: column; /* 요소들을 수직으로 정렬 */
  align-items: flex-end;    /* 수평 중앙 정렬 */
  gap: 10px;              /* 요소 간의 간격 조정 */
}



/* 토글 버튼 컨테이너 스타일 */
.toggle-container {
  display: flex;
  justify-content: space-between;   /* 텍스트가 왼쪽에 배치되고 토글이 오른쪽에 배치되도록 */
  align-items: center;
  background-color: transparent;  /* 배경을 흰색으로 설정 */

  border-radius: 3px;  /* 전체 테두리 둥글게 */
  padding: 3px;  /* 여백 추가 */
  width: 145px;  /* 전체 컨테이너의 너비 */
  height: 28px;
}

.toggle-text {
  font-size: 10px;  /* 토글 슬라이더 텍스트와 동일 크기 */
  font-weight: bold;
  color: #000000;  /* 텍스트 색상을 토글 버튼 테두리와 맞춤 */
  text-align: center;
  flex-grow: 1;
  padding: 6px 7px;
  border: 1px solid #4CAF50;
  background-color: #FFF;
  border-radius: 3px;
}

.toggle-slider-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: #f5f5f5;
  transition: all 0.3s ease;
}

/* 토글 스위치 스타일 */
.toggle-switch {
  width: 50px;
  height: 25px;
  background-color: #FFF; /* 배경을 흰색으로 변경하여 텍스트와 조화 */
  border: 1px solid #4CAF50; /* 테두리를 텍스트 색상과 동일하게 */
  border-radius: 3px;  /* 완전한 둥근 버튼으로 변경 */
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s, border 0.3s;
}

.toggle-switch:hover {
  background-color: #e8f5e9; /* 스위치에 마우스 올렸을 때 연한 초록색 배경 */
}

/* 슬라이더 스타일 */
.toggle-slider {
  width: 20px;  /* 슬라이더 너비 */
  height: 20px; /* 슬라이더 높이 */
  background-color: #4CAF50;
  border-radius: 2px;
  position: absolute;
  top: 2.5px;  /* 위쪽 여백 */
  left: 2.5px; /* 왼쪽 여백 */
  transition: transform 0.3s;
}

/* 활성화된 토글 (위성 모드) */
.toggle-switch.active {
  background-color: #4caf50;
}



/* 기존 nav 스타일과 겹치지 않게 custom-nav-tabs 클래스 사용 */
.custom-tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 2px solid #ddd;
  background-color: #ffffff;
}

.custom-tabs .custom-tab {
  padding: 10px 20px;
  font-size: 12pt;
  /*font-weight: bold; */
  color: black;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.custom-tabs .custom-tab:hover {
  background-color: #f5f5f5;
}

.custom-tabs .custom-tab.active {
  font-weight: bold;
  background-color: #e0e0e0;
  box-shadow: 2px 2px 5px rgba(175, 175, 175, 0.2);
}


/*여기서부터는 모바일입니다용*//*여기서부터는 모바일입니다용*//*여기서부터는 모바일입니다용*/
/*여기서부터는 모바일입니다용*//*여기서부터는 모바일입니다용*//*여기서부터는 모바일입니다용*/
/*여기서부터는 모바일입니다용*//*여기서부터는 모바일입니다용*//*여기서부터는 모바일입니다용*/
/*여기서부터는 모바일입니다용*//*여기서부터는 모바일입니다용*//*여기서부터는 모바일입니다용*/

.m-map-page {
  width: 100%;
  height: 100%;
}

.m-container {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
}

.m-map-box {
  width: 100%;
  height: auto;
}

/* 지도 컨테이너 스타일 */
.map-container {
  width: 100%;
  height: 40vh; /* 화면 높이의 50% */
  position: relative;
  overflow: hidden;
  background: rgb(248, 249, 250);
}

/* 지도 영역 설정 */
#m-map {
  width:100%;
  height:100%; 
  position: relative; 
  overflow: hidden; 
  background: rgb(248, 249, 250);
}


.update-menu-div-illuminance {
  /* position: fixed; ❌ 이거 제거! */
  position: relative; /* 굳이 필요 없다면 이것도 생략 가능 */
  padding: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f5f5; /* (옵션) 구분 잘 되게 */
}


.update-dropdown-wrapper-ill {
  display: flex;
  justify-content: space-between; /* 혹은 center */
  align-items: center;
  gap: 10px; /* 드롭다운 간 간격 */
  width: 100%;
}

.dropdown-ill {
  flex: 1;
  width: 50%; /* 이걸 추가해줘 */
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* 드롭다운 버튼 스타일 (수정본) */
.dropbtn-ill {
  background-color: white;
  color: black;
  padding: 8px 30px 8px 15px;   /* 오른쪽(화살표 자리) 여유 */
  font-size: 14px;
  border: 2px solid #4CAF50;
  border-radius: 5px;
  cursor: pointer;
  /* transform 스케일 때문에 크기 튀는 것 방지: 배경색만 트랜지션 */
  transition: background-color 0.3s ease;
  position: relative;

  /* ✅ 핵심: 컨텐츠 길이와 무관하게 버튼 너비 고정 */
  box-sizing: border-box;       /* 패딩/보더 포함하여 width 유지 */
  display: block;               /* 인라인 확장 방지 */
  width: 100%;                  /* 부모 안에서만 꽉 차게 */
  max-width: 100%;              /* 컨텐츠가 커져도 더 못 커짐 */
  min-width: 0;                 /* (flex 환경일 때) 수축 허용 */
  contain: inline-size;         /* 컨텐츠가 inline 사이즈에 영향 못 주게 */

  /* 텍스트 오버플로 처리 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 화살표 */
.dropbtn-ill::after {
  content: '\25BC';
  font-size: 12px;
  color: black;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.dropdown-ill:hover .dropdown-content {
  display: block;
}




/* 테이블 컨테이너 - 전체 화면 넘지 않도록 */
.update-table-div-ill {
  max-height: 100vh;
  overflow: hidden; /* 전체 화면 스크롤 방지 */
  padding: 0px;
}

/* 테이블 래퍼 - 여기만 스크롤 */
.table-wrapper-ill {
  max-height: 50vh;  /* 화면 기준으로 제한 (조정 가능) */
  overflow-y: auto;
  border-radius: 0px;
  background: white;
}

/* 테이블 스타일 */
.update-table-ill {
  width: 100%;
  border-collapse: collapse;
  font-size: 8px;
  table-layout: fixed;
}

/* 헤더 고정 및 스타일 */
.update-table-ill thead th {
  position: sticky;
  top: 0;
  background-color: #009879;
  color: white;
  font-weight: bold;
  z-index: 2;
  padding: 8px 10px;
  white-space: nowrap;      /* 줄바꿈 방지 */
  overflow: hidden;         /* 넘치는 부분 숨김 */
  text-overflow: ellipsis;  /* 생략 부호 표시 */
}

/* 셀 스타일 */
.update-table-ill th,
.update-table-ill td {
  padding: 8px 10px;
  text-align: center;
  line-height: 1.2;
}

/* 줄무늬 */
.update-table-ill tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.update-table-ill tbody tr {
  border-bottom: 1px solid #ddd;
}



/* 조도기록 추가하기 modal postModal-ill*/

/* 모달 배경 */
.modal-update-ill {
  display: none; /* 초기 상태에서는 숨김 */
  position: fixed;
  z-index: 9981;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
}

/* 모달 컨텐츠 */
.modal-update-content-ill {
  background-color: #fefefe;
  margin: 5% auto; /* 모달의 위치 조정 */
  padding: 15px;
  border: 1px solid #888;
  width: 80%; /* 모달의 너비 설정 */
  max-width: 600px; /* 최대 너비 설정 */
  border-radius: 10px;
  display: flex;
  flex-direction: column;

  max-height: 80vh;
  overflow-y: auto;
}

/* 모달 헤더 */
.modal-update-header-ill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  height: 5%; /* 헤더 높이 5% */
}

/* 모달 제목 */
.modal-update-title-ill {
  font-size: 1.2em;
  font-weight: bold;
}

/* 모달 닫기 버튼 */
.close-update-button-ill {
  font-size: 1.2em;
  cursor: pointer;
}

/* 모달 카메라 */
.modal-update-cam-ill {
  height: 45%; /* 카메라 섹션 높이 45% */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  overflow-y: auto; /* 스크롤이 가능하도록 설정 */
}

/* 모달 바디 */
.modal-update-body-ill {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1; /* 내용이 꽉 차도록 설정 */
  overflow-y: visible;  /* 여기서는 스크롤 제거 */
  overflow-x: hidden;   /* 가로 스크롤 제거 */
  max-height: unset;    /* 부모가 스크롤하므로 제한 해제 */
  
}

/* 라벨 스타일 */
.modal-update-body-ill label {
  font-size: 0.9em;
  font-weight: bold;
}

/* 모달 푸터 */
/* 모달 푸터 */
.modal-update-footer-ill {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
  height: 5%; /* 푸터 높이 5% */
}

.modal-update-footer-ill button {
  padding: 6px 12px;
  font-size: 0.9em;
  cursor: pointer;
  border-radius: 5px;
}

#preview {
  width: 100%;
  max-width: 300px; /* 최대 너비 설정 */
  max-height: 200px; /* 최대 높이 설정 */
  object-fit: contain; /* 이미지가 잘리지 않도록 비율을 유지하면서 크기 조정 */
}


/* 모달 바디 */
.modal-update-body-ill-put {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto; /* 스크롤이 가능하도록 설정 */
}

/* 라벨 스타일 */
.modal-update-body-ill-put label {
  font-size: 0.9em;
  font-weight: bold;
}


/* */
/* 측정 항목 블록 */
/* 측정 항목 블록 */
.measurement-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 라벨과 파일 입력을 같은 줄에 배치 */
.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;  /* 오른쪽 끝에 파일 선택 버튼을 배치 */
}

/* 파일 선택 버튼 오른쪽 끝에 배치 */
.input-row input[type="file"] {
  margin-left: auto;  /* 오른쪽 끝으로 밀어줌 */
  cursor: pointer;
}

/* 기본 파일 선택 UI의 텍스트를 숨김 */
.photo-input {
  display: block; /* input 요소를 블록으로 만들어서 자리 차지하도록 */
  width: 100%; /* 버튼 크기를 100%로 맞추기 */
  height: 15px; /* 버튼 높이 설정 */
  opacity: 0; /* 기본적인 파일 선택 버튼 숨기기 */
  position: absolute; /* 파일 선택 요소는 숨기고 커스터마이징된 버튼을 표시하도록 */
  max-width: 200px;
}

/* 사용자 정의 파일 선택 버튼 */
.photo-input + label {
  display: inline-block;
  padding: 5px 12px; /* 버튼 크기 적당히 설정 */
  background-color: #f0f0f0; /* 부드러운 회색 배경 */
  color: #333; /* 어두운 색 텍스트 */
  font-size: 0.7em; /* 폰트 크기 조금 줄임 */
  border-radius: 3px; /* 약간 둥근 모서리 */
  cursor: pointer;
  border: 1px solid #ccc; /* 연한 테두리 */
}

.photo-input + label:hover {
  background-color: #e0e0e0; /* 호버 시 색상 변화 */
  border-color: #bbb; /* 호버 시 테두리 색상 변화 */
}

/* 이미지 미리보기 스타일 */
.photo-preview {
  width: 100%;
  max-width: 300px;
  max-height: 200px;
  object-fit: contain;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: none;
}

/* 텍스트 입력 */
.modal-update-body-ill input[type="text"],.modal-update-body-ill input[type="text"] {
  padding: 6px;
  font-size: 0.9em;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

#to-my {
  height: 30px;

}

/*오른쪽 일정 추가*/

.legend-table-scheduler {
  position: fixed;
  top: 310px;
  right: 20px;
  transform: none;
  z-index: 8888;
  background-color: white;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: none; /* 일정 선택 모드에서만 나타나게 */
  width: 280px;
  font-family: sans-serif;

  max-height: 450px;

  /* ✅ 스크롤 숨기기 */
  overflow-y: auto;
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE, Edge */
}

.legend-table-scheduler::-webkit-scrollbar {
  display: none;                 /* Chrome, Safari */
}

.legend-table-scheduler table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.legend-table-scheduler th,
.legend-table-scheduler td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  font-size: 13px;
  text-align: left;
}

.legend-table-scheduler th {
  background-color: #f1f3f5;
  font-weight: bold;
}

.legend-table-scheduler input[type="checkbox"] {
  transform: scale(1.1);
}

#add-phase,
#export-phase-word,
#export-phase-pdf {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  margin-top: 5px;
}

#add-phase:hover,
#export-phase-word:hover,
#export-phase-pdf:hover {
  background-color: #0056b3;
}

/* 폼 입력 영역 */
#add-phase-form {
  margin-top: 10px;
  padding: 8px;
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#add-phase-form label {
  display: block;
  margin: 6px 0 3px;
  font-size: 13px;
}

#add-phase-form input[type="text"],
#add-phase-form input[type="date"] {
  width: 100%;
  padding: 4px 6px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

#add-phase-form button {
  padding: 5px 8px;
  font-size: 13px;
  margin-top: 6px;
  margin-right: 5px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

#confirm-add {
  background-color: #28a745;
  color: white;
}

#confirm-add:hover {
  background-color: #218838;
}

#cancel-add {
  background-color: #e0e0e0;
}

#cancel-add:hover {
  background-color: #d6d6d6;
}


.edit-form {
  margin: 8px 0;
  padding: 8px;
  border: 1px solid #ddd;
  background-color: #f8f8f8;
  border-radius: 5px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, auto)) auto;
  gap: 8px;
  align-items: end;
  font-size: 11px;
}

.edit-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
}

.edit-form input {
  padding: 4px 6px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.edit-form .btn-group {
  display: flex;
  gap: 6px;
}

.edit-form button {
  padding: 5px 10px;
  font-size: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  height: 30px;
}

.edit-confirm {
  background-color: #4CAF50;
  color: white;
}

.edit-delete {
  background-color: #ee685f;
  color: white;
}


.standard-lot-table,
.standard-lot-table thead,
.standard-lot-table tbody,
.standard-lot-table td,
.standard-lot-table th {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #000000;

  user-select: text !important;
}

.standard-lot-table {
  table-layout: fixed;
}

.standard-lot-table th,
.standard-lot-table td {
  font-size: 9px;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-align: center;
}

.standard-lot-table th:nth-child(1),
.standard-lot-table td:nth-child(1),
.standard-lot-table th:nth-child(2),
.standard-lot-table td:nth-child(2),
.standard-lot-table th:nth-child(5),
.standard-lot-table td:nth-child(5) {
  width: 13%;
}

.standard-lot-table th:nth-child(3),
.standard-lot-table td:nth-child(3),
.standard-lot-table th:nth-child(4),
.standard-lot-table td:nth-child(4) {
  width: 31%;
}

.standard-lot-table td:first-child {
  cursor: grab;
  font-weight: 700;
}

.standard-lot-table tr.dragging {
  opacity: 0.5;
  background-color: #eef5ff;
}

.phase-table,
.phase-table thead,
.phase-table tbody,
.phase-table td,
.phase-table th{
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 11.5px;
  color: #000000;
  text-align: center;
  /* overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; */
  user-select: text !important;

}

#toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(139, 139, 139, 0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(180, 180, 180, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#toast.show {
  display: block;
  opacity: 1;
}

.sub-row:hover {
  background-color: transparent !important;
}

.naver-move-button {
  background-color: #03c75a;
  color: white;
  border: none;
  padding: 2px 6px;        /* 여백 ↓ */
  border-radius: 3px;
  cursor: pointer;
  font-size: 10px;         /* 글씨 크기 ↓ */
  line-height: 1;
}
.naver-move-button:hover {
  background-color: #029e4f;
}




/* 메뉴 버튼 
조도측정기록의 메뉴바
*/
/* 색상 톤: 기존 초록(#4CAF50)과 조화 */
:root {
  --accent: #4CAF50;
  --accent-weak: #E8F5E9;
  --border: #DFE5DF;
  --text: #212121;
  --panel-bg: #FFFFFF;
}

/* 상단 라인에서 메뉴 버튼만 좌측, 드롭다운 훼손 X */
.menu-wrapper { margin-right: 10px; }
.update-dropdown-wrapper-ill { flex: 1; }

/* 메뉴 버튼: 기존 드롭다운 버튼 톤과 통일 */
.menu-btn {
  background-color: #fff;
  color: #000;
  padding: 8px 15px;
  font-size: 14px;
  border: 2px solid var(--accent);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color .3s ease, transform .2s ease;
  white-space: nowrap;
}
.menu-btn:hover { background-color: #f1f1f1; transform: scale(1.02); }

/* 사이드바: 밝은 패널 + 스크롤 안전 + 로그아웃 하단 고정 */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;               /* 전체 높이 */
  width: 0;                     /* 기본 닫힘 */
  max-width: 80vw;
  background: var(--panel-bg);
  border-right: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  overflow: hidden;             /* 열릴 때만 내용 보이게 */
  transition: width .25s ease;
  z-index: 10010;
  display: flex;
  flex-direction: column;
}
.sidebar.open { width: 260px; } /* 열림 폭 (필요시 280px로 조정) */

.sidebar .menu-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  overflow-y: auto;             /* 항목 많으면 스크롤 */
}

/* 메뉴 항목 + 하이라이트 */
.sidebar a {
  padding: 10px 14px;
  text-decoration: none;
  font-size: 14px;
  color: var(--text);
  border-radius: 6px;
  display: block;
  transition: background-color .15s ease, padding-left .15s ease;
}
.sidebar a:hover {
  background: var(--accent-weak);
  padding-left: 18px;
}

/* 구분선 */
.sidebar .menu-divider {
  border-top: 1px solid var(--border);
  margin: 8px 0 4px 0;
}

/* 로그아웃은 항상 맨 아래 (잘림 방지) */
.sidebar .logout {
  margin-top: auto;
  color: #c62828;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* 배경 오버레이 + 스크롤 잠금 */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 10005;               /* 사이드바 바로 아래 */
}
.sidebar-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.body-no-scroll { overflow: hidden; }

.schedule-sheet-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(2px);
}

.schedule-sheet-modal.open {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.schedule-sheet-content {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  background: linear-gradient(180deg, #f9fdf8 0%, #ffffff 22%);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.schedule-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.schedule-sheet-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #2f7d32;
  letter-spacing: 0.04em;
}

.schedule-sheet-title {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}

.schedule-close-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: #edf7ed;
  color: #1f2937;
  font-size: 12px;
  font-weight: 700;
}

.schedule-sheet-body {
  overflow-y: auto;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-select-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.schedule-select-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}

.schedule-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfe2cf;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  color: #111827;
}

.schedule-plan-summary {
  padding: 12px 14px;
  border-radius: 14px;
  background: #eff8ef;
  border: 1px solid #d4ecd5;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.5;
}

.schedule-empty-state {
  padding: 16px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.schedule-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-card {
  border: 1px solid #d9e7d9;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.schedule-card.is-visited {
  border-color: #f0b4b4;
  background: linear-gradient(180deg, #fff6f6 0%, #fff1f1 100%);
}

.schedule-card-header {
  display: grid;
  grid-template-columns: 48px 1fr 72px;
  gap: 10px;
  align-items: start;
  padding: 12px 12px 10px;
  background: linear-gradient(180deg, #f3faf2 0%, #ffffff 100%);
}

.schedule-card.is-visited .schedule-card-header {
  background: linear-gradient(180deg, #ffe6e6 0%, #fff5f5 100%);
}

.schedule-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #2f7d32;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.schedule-card.is-visited .schedule-order-badge {
  background: #c62828;
}

.schedule-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.schedule-card-meta {
  margin-top: 4px;
  font-size: 11px;
  color: #6b7280;
}

.schedule-visit-check {
  display: flex;
  justify-content: flex-end;
}

.schedule-visit-check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #2f7d32;
}

.schedule-card.is-visited .schedule-visit-check input[type="checkbox"] {
  accent-color: #c62828;
}

.schedule-card-body {
  padding: 0 12px 12px;
  display: grid;
  gap: 8px;
}

.schedule-info-row {
  display: grid;
  gap: 4px;
}

.schedule-info-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
}

.schedule-info-value {
  font-size: 13px;
  color: #111827;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.schedule-note-box {
  width: 100%;
  min-height: 72px;
  border: 1px solid #d7e5d7;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
}

.schedule-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.schedule-action-btn {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #cfe2cf;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}

.schedule-route-btn {
  border-color: #2f7d32;
  color: #2f7d32;
}

.schedule-map-btn {
  border-color: #2f7d32;
  background: #2f7d32;
  color: #fff;
}

.schedule-save-state {
  min-height: 18px;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  color: #6b7280;
}

.schedule-save-state.is-saving {
  color: #2f7d32;
}

.schedule-save-state.is-success {
  color: #15803d;
}

.schedule-save-state.is-error {
  color: #c62828;
}

@media (min-width: 480px) {
  .schedule-select-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* statisticsdml 코드임*/

.statistics-dropdown-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;           /* ✅ 너무 멀었던 간격 줄이기 */
  margin-left: auto;  /* ✅ 오른쪽에 박히게 */
}

/* 두 버튼 컨테이너 폭을 동일/큼직하게 */
.statistics-dropdown-wrapper .dropdown {
  position: relative;
  flex: 0 0 220px;    /* ✅ 두 버튼 모두 220px로 동일 */
  /* 필요하면 200~240px로 조절 */
}

/* 버튼 자체를 꽉 채우고 한 줄 + ... 처리 */
.statistics-dropdown-wrapper .dropbtn {
  display: block;
  width: 100%;
  height: 40px;                 /* ✅ 키우기 */
  box-sizing: border-box;
  padding: 8px 28px 8px 12px;   /* 화살표 여백 고려 */
  font-size: 14px;

  white-space: nowrap;          /* ✅ 줄바꿈 금지 */
  overflow: hidden;
  text-overflow: ellipsis;      /* ✅ ... 처리 */
  min-width: 0;                 /* flex 수축 허용 (중요) */
}

/* 호버 시 위로 튀는 느낌 제거 */
.statistics-dropdown-wrapper .dropbtn:hover {
  background-color: #f1f1f1;
  transform: none;              /* ✅ translate 효과 제거 */
}

/* 드롭다운 패널을 버튼 폭에 맞춰 정렬 */
.statistics-dropdown-wrapper .dropdown .dropdown-content {
  right: 0;
  left: auto;
  width: 100%;
}

/* (옵션) 모바일에서 세로로 꽉 차게 */
@media (max-width: 768px) {
  .statistics-dropdown-wrapper { flex-direction: column; gap: 8px; }
  .statistics-dropdown-wrapper .dropdown { flex: 1 1 auto; width: min(480px, 100%); }
}


/* 
statistic-div 안에 들어갈 내용입니다........
statistic-div 안에 들어갈 내용입니다........
statistic-div 안에 들어갈 내용입니다........
*/


/* ===== 통계 레이아웃 루트 ===== */
/* ===== 통계 레이아웃 루트 ===== */
/* ===== 통계 레이아웃 루트 ===== */
/* ===== 통계 레이아웃 루트 ===== */
.statistic-div { 
    padding: 24px; 
    background-color: #f8fafc;
}

/* 2단 레이아웃: 좌(목차) + 우(콘텐츠) */
.statistic-div .stats-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

/* ===== 좌측 목차 (카드 타입) ===== */
.statistic-div .stats-nav {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.statistic-div .stats-nav ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.statistic-div .stats-nav li { 
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #475569;
    line-height: 1.4;
}
.statistic-div .stats-nav li:hover { background: #f1f5f9; }
.statistic-div .stats-nav li.active {
    background: #0a536a;
    color: #fff !important;
    font-weight: 600;
}
.statistic-div .stats-nav li.active span { color: #fff; }

/* ===== 우측 헤더 (타이틀 & 버튼) ===== */
.statistic-div .stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}
.statistic-div .stats-header h3 {
    margin: 0;
    font-size: 1.6rem;
    color: #1e293b;
    font-weight: 800;
}
.statistic-div .stats-actions { display: flex; gap: 8px; }
.statistic-div .btn-ghost {
    height: 36px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}

/* ===== 본문 컨테이너 (그리드 교정) ===== */
.statistic-div .stats-body { 
    display: grid; 
    gap: 25px; 
}

/* [핵심] 표(좌)와 차트카드(우)를 1.6:1 비율로 배치 */
.statistic-div .stats-body.both { 
    grid-template-columns: 1.6fr 1fr; 
}
.statistic-div .stats-body.only-chart,
.statistic-div .stats-body.only-table { grid-template-columns: 1fr; }

/* ===== 차트 카드 (드롭다운과 차트를 하나로 묶음) ===== */
#chart-container-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column; /* 세로로 쌓기 */
    gap: 15px;
    min-height: 480px;
}

/* 드롭다운 정렬 박스 */
#sec2-chart-controls {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* 셀렉트 박스 디자인 */
.chart-type-select {
    padding: 8px 12px;
    border: 2px solid #009879;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #009879;
    background: #fff;
    cursor: pointer;
    outline: none;
}

/* 실제 차트가 그려지는 캔버스 영역 */
.statistic-div .stats-chart {
    flex: 1; /* 남은 공간 모두 차지 */
    width: 100%;
    min-height: 350px;
    position: relative;
}

/* ===== 표 영역 ===== */
.statistic-div .stats-table-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: auto;
    max-height: 650px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.statistic-div .stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.statistic-div .stats-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    padding: 15px 10px;
    font-size: 13px;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.statistic-div .stats-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 13px;
    text-align: center;
}
.statistic-div .stats-table tbody tr:hover td { background-color: #f8fafc; }

/* 보이기/숨기기 */
.hidden { display: none !important; }

/* ===== 반응형 ===== */
@media (max-width: 1250px) {
    .statistic-div .stats-body.both { grid-template-columns: 1fr; }
}



/* 화면 정가운데 토스트 */
#toast_statistic{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) scale(.98);
  z-index: 2147483647;
  min-width: 240px;
  max-width: 80vw;
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: #fff;
  background: rgba(20,20,20,.92); /* 기본: info */
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;             /* UI 가리기 방지 */
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

#toast_statistic.show{
  opacity: 1;
  visibility: visible;
  transform: translate(-50%,-50%) scale(1);
  transition: opacity .18s ease, transform .18s ease;
}

/* 타입별 색 (원하면 사용) */
#toast_statistic.warn   { background: rgba(245,158,11,.95); color:#1f2937; }
#toast_statistic.error  { background: rgba(220,38,38,.95); }
#toast_statistic.success{ background: rgba(22,163,74,.95); }

/* 마커 강조 애니메이션 */
@keyframes marker-focus {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.6); filter: brightness(1.8); } /* 좀 더 확실하게 키움 */
    100% { transform: scale(1); filter: brightness(1); }
}

.marker-blink {
    animation: marker-focus 0.5s ease-in-out 3; /* 0.5초씩 3번 */
    z-index: 99999 !important; /* 무조건 맨 위로 */
    position: relative;
}
