body {
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}

.login-box {
  max-width: 420px;
  margin: 12vh auto 0;
}

/* ── 상단바 ─────────────────────────────────────────────── */
.nav-user {
  min-width: 0;          /* 좁은 화면에서 부서 이름이 길면 줄임표 */
}

/* ── 조회 조건(표 툴바 안) ──────────────────────────────────
 * 1024px 이상: 시작일 ~ 종료일 · 직원 선택 · 전체 선택 · 조회 · 건수 | 검색 · 새로고침 이 한 줄
 * 그보다 좁으면 줄바꿈(태블릿·모바일)
 */
.caps-filter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.caps-date {
  width: 8.6rem;
  flex: 0 0 auto;
}

/* 직원 선택이 남는 폭을 채운다(툴바 전체는 화면 폭 100%) */
.caps-members {
  flex: 1 1 auto;
  min-width: 11rem;
}

/* 선택한 사람은 이름표 대신 "직원 선택 (N명)" 으로만(한 줄 유지) */
.caps-members .ts-control > .item {
  display: none;
}

.caps-members .ts-control {
  flex-wrap: nowrap;
  overflow: hidden;
  min-height: calc(1.5em + 0.5rem + 2px);   /* form-control-sm 과 같은 높이 */
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.caps-members .ts-control > input {
  min-width: 6rem;
}

.caps-members .ts-dropdown {
  min-width: 18rem;
}

/* bootstrap-table 툴바: 조회 조건(왼쪽)과 검색·새로고침(오른쪽)을 같은 높이로 */
.fixed-table-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.fixed-table-toolbar .bs-bars,
.fixed-table-toolbar .search,
.fixed-table-toolbar .columns {
  float: none !important;
  margin: 0 !important;
}

.fixed-table-toolbar .bs-bars {
  flex: 1 1 auto;        /* 조회 조건이 왼쪽에서부터 남는 폭을 차지 */
  min-width: 0;
}

.fixed-table-toolbar .search,
.fixed-table-toolbar .columns {
  flex: 0 0 auto;
}

.fixed-table-toolbar .search .form-control {
  width: 9rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* ── 표 ─────────────────────────────────────────────────── */
#loglist td,
#loglist th {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;   /* 좁은 화면은 가로 스크롤 */
}

/* 표 머리글 줄 — 옅은 회색 배경으로 본문과 구분 */
#loglist thead th {
  --bs-table-bg: #e9ecef;   /* Bootstrap 5.3 표는 셀 배경을 이 변수로 칠한다 */
  background-color: #e9ecef;
  border-bottom: 1px solid #ced4da;
}

/* ── 1024px 미만(태블릿·모바일): 줄바꿈 배치 ───────────────── */
@media (max-width: 1023.98px) {
  .fixed-table-toolbar {
    flex-wrap: wrap;
  }

  .fixed-table-toolbar .bs-bars {
    flex: 1 1 100%;
  }

  .caps-filter {
    flex-wrap: wrap;
  }
}

@media (max-width: 575.98px) {
  main.container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .caps-date {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .caps-members {
    flex: 1 1 100%;
    width: auto;
    order: 3;
  }

  #select-all,
  #ok {
    order: 4;
    flex: 1 1 0;
  }

  #status {
    order: 5;
  }

  .fixed-table-toolbar .search {
    flex: 1 1 auto;
  }

  .fixed-table-toolbar .search .form-control {
    width: 100%;
  }
}
