/* 지도 크기 및 스타일 */
.map {
	width: 500px;
	height: 400px;
	margin-bottom: 20px;
	display: none; /* 처음에는 보이지 않도록 설정 */
}
.mapButton {
	margin-bottom: 20px;
	cursor: pointer;
	padding: 10px;
	background-color: #0078d4;
	color: white;
	border: none;
	border-radius: 5px;
}

.ui-datepicker {
	z-index: 10000 !important;
}


/* 로딩 레이어 스타일 */
#loading-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 더 어두운 배경으로 변경 */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em; /* 글자 크기 증가 */
  color: #fff; /* 글자 색을 흰색으로 변경 */
  z-index: 9999;
  visibility: visible; /* 보이도록 설정 */
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease; /* 부드러운 전환 효과 */
}

#loading-layer.hidden {
  visibility: hidden; /* 숨김 처리 */
  opacity: 0; /* 투명하게 변경 */
}
@media print {
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        margin: 0;
        padding: 0;
    }

    #contents {
        width: 100%;
        padding: 5px;
        margin: 0;
    }

    .subArea {
        margin: 0;
        padding: 5px;
    }

    .dateBox, .infoBox, .scroll-table {
        margin: 0;
        padding: 5px;
    }

    .calendar th, .calendar td {
        padding: 2px;
        border: 1px solid black; /* 프린트 시 테두리가 잘 보이게 */
    }

    .tab.not li {
        margin: 0;
        padding: 5px;
    }

    .statusCont {
        padding: 5px;
    }

    /* 프린트할 때 필요 없는 요소 숨기기 */
    .map_btn, .map_close, .ui-datepicker-trigger  {
        display: none !important;
    }

#gnb {
 display: none !important;
}
    /* 인쇄 페이지의 여백을 최소화 */
  @page {
    size: A4; /* A4 크기 지정 */
    margin: 5mm; /* 기본 여백을 5mm로 설정 */
  }

  /* 테이블 스타일 최적화 */
  table.calendar {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
  }

  table.calendar th, 
  table.calendar td {
    border: 1px solid black !important;
    padding: 4px !important; /* 패딩 최소화 */
    text-align: center !important;
    white-space: nowrap !important;
    font-size: 12px !important; /* 글자 크기 조정 */

  }

  /* 테이블 헤더가 모든 페이지에서 유지되도록 설정 */
  thead {
    display: table-header-group !important;
  }

  /* 스크롤 제거 및 높이 자동 설정 */
  .scroll-table {
    overflow: visible !important;
    height: auto !important;
  }

  /* 페이지가 잘리지 않도록 설정 */
  tr, td, th {
    page-break-inside: avoid !important;
  }
  .calendar th[rowspan="2"] {
        white-space: normal !important; /* 줄 바꿈 허용 */
        word-wrap: break-word !important; /* 단어 단위로 줄 바꿈 */
        overflow-wrap: break-word !important;
    }
}