/* -------------------------------
   모바일 최적화
--------------------------------- */
@media (max-width: 768px) {
  .container, .container-fluid {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* -------------------------------
   카메라 뷰 스타일
--------------------------------- */
.camera-view {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#video {
  display: block;
  width: 60vw;
  height: 60vw;
  object-fit: cover;
  border: 3px solid #007bff;
  border-radius: 0;
}

.crosshair {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
}

.crosshair::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
}

.crosshair::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
}

/* -------------------------------
   모바일 입력 필드 최적화
--------------------------------- */
@media (max-width: 768px) {
  input.department-input {
    max-width: 6ch;
    display: inline-block;
  }
  table.dataTable td {
    white-space: nowrap;
  }

  #currentDate {
    margin-right: 8px;
    white-space: nowrap;
  }
  .btn-group {
    display: inline-flex;
    flex-wrap: nowrap;
  }

  #customSearch {
    flex: 1 1 100%;
    margin-top: 6px;
  }

  .col-md-6.d-flex {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* -------------------------------
   날짜 입력 + 버튼 컨트롤
--------------------------------- */
.date-control {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}

.date-control input[type="date"] {
  flex: 0 0 auto;
  max-width: 120px;
}

.date-control button {
  padding: 4px 8px;
  font-size: 0.9em;
}

/* -------------------------------
   네비게이션 바 스타일
--------------------------------- */
.navbar-nav .nav-link {
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
}

@media (min-width: 992px) {
  .navbar-nav .nav-link {
    border: 1px solid #fff;
    margin-right: 6px;
    border-radius: 4px;
    padding: 6px 12px;
  }
  .navbar-nav .nav-link:hover {
    background-color: #555;
  }
}

/* -------------------------------
   공통 레이아웃 및 UI 개선
--------------------------------- */
body {
  font-family: "Noto Sans KR", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  padding: 8px;
  border: 1px solid #dee2e6;
}

table th {
  background-color: #f8f9fa;
  text-align: center;
}

.btn {
  border-radius: 4px;
  font-size: 0.95em;
}

.alert {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
}