body {
  font-family: "Pretendard", sans-serif;
}

/* ── Chrome / Edge / Safari (WebKit) ── */
::-webkit-scrollbar {
  width: 4px; /* 세로 스크롤바 */
  height: 4px; /* 가로 스크롤바 */
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

/* ── Firefox ── */
* {
  scrollbar-width: thin; /* auto | thin | none */
  scrollbar-color: #aaa transparent; /* thumb track */
}

/* ── IE 11 (구버전 대응) ── */
* {
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

textarea:focus {
  outline: none;
  border-color: #80bdff !important;
}
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.main-sidebar {
  width: 280px;
}
.nav-link {
  width: 100%;
  font-size: 0.8rem;
  letter-spacing: -1px;
}

.brand-image {
  max-width: 240px;
}
.brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 57px;
}

.login-box {
  width: 460px;
}
.login-box .card {
  padding: 20px;
}

.no-wrap {
  white-space: nowrap;
}
.mb10 {
  margin-bottom: 10px !important;
}
.mb20 {
  margin-bottom: 20px !important;
}
.mr10 {
  margin-right: 10px !important;
}
.mr20 {
  margin-right: 20px !important;
}
.ml10 {
  margin-left: 10px !important;
}
.ml20 {
  margin-left: 20px !important;
}
.mt10 {
  margin-top: 10px !important;
}
.pl10 {
  padding-left: 10px !important;
}
.pr10 {
  padding-right: 10px !important;
}
.pl20 {
  padding-left: 20px !important;
}
.pr20 {
  padding-right: 20px !important;
}
.w100 {
  width: 100px !important;
}
.w130 {
  width: 130px !important;
}
.w150 {
  width: 150px !important;
}
.w200 {
  width: 200px !important;
}
.icon-svg-3 {
  width: 30px;
  height: 30px;
}

.form-group label {
  font-size: 0.825rem;
  background-color: #e5dbff;
  border-radius: 10px;
  padding: 4px 10px 4px 10px;
  margin-bottom: 4px;
}

.row-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.btn-xs {
  padding: 0.125rem 0.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
  border-radius: 0.15rem;
}
.btn-round {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.btn-round > i.fa {
  font-size: 1.2rem;
}
.modal-body iframe {
  width: 100%;
  border: 0px;
}

.schedule-box {
  display: grid;
  /* 핵심: 최소 200px, 최대 1fr(남은 공간 꽉 채우기) */
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; /* 아이템 사이 간격 */
  width: 100%;
}

.schedule-box > .monthly-box {
  /* max-width는 여기서 제한 */
  max-width: 300px;
  background-color: #f4f4f4;
  border: 1px solid #ccc;
  /* 중앙 정렬을 원할 경우 */
  margin: 0 auto;
  padding: 10px;
}

.schedule-box .monthly-box th {
  width: 40px;
  font-weight: 400;
  font-size: 0.875rem;
}

.schedule-box .monthly-title {
  font-weight: 700;
  font-size: 1rem;
}

input[readonly] {
  background-color: #fff !important;
  cursor: default;
  outline: none;
}
.form-control:disabled {
  background-color: #ddd !important;
}

.mouse-click {
  cursor: pointer;
}

.table-form {
  width: 100%;
  table-layout: fixed;
}

.table-form textarea {
  width: 100%;
  padding: 10px;
  border: solid 1px #ddd;
  resize: none;
}
.table-form td {
  padding-top: 4px;
  padding-bottom: 4px;
}
.table-form .title {
  background-color: #eee;
  padding-top: 4px;
  padding-bottom: 2px;
}
.table-form th {
  padding-right: 10px;
  letter-spacing: -1px;
  text-align: right;
  height: 40px;
}
.table-form tr.title th {
  text-align: left;
  padding-left: 10px;
  height: 40px;
}
.table-form tr.title-end th,
.table-form tr.title-end td {
  border-bottom: solid 1px #ddd;
}

.table-list {
  width: 100%;
  table-layout: fixed;
}
.table-list tbody tr:hover {
  background-color: #eee;
  cursor: pointer;
}

.table-list th {
  background: #eee;
  height: 40px;
  text-align: center;
  border-bottom: solid 1px #ddd;
}
.table-list td {
  height: 40px;
  border-bottom: solid 1px #ddd;
}

.table-list.col-status tbody tr td:nth-last-child(2) {
  text-align: center;
}
.ac {
  text-align: center;
}
.ar {
  text-align: right;
}
.al {
  text-align: left !important;
}
.list-none {
  height: 60px;
  text-align: center;
  vertical-align: center;
  color: #aaa;
}

input[readonly] {
  background-color: #fff !important;
  cursor: default;
  outline: none;
}
input[readonly].readonly {
  background-color: #eee !important;
}

.card-header {
  position: relative;
}
.card-header > .card-tools-fix {
  position: absolute;
  top: 5px;
  right: 20px;
}
.row-title {
  position: relative;
}
.row-title > .row-tools-fix {
  position: absolute;
  top: -5px;
  right: 0px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.period-box {
  display: flex;
  align-items: center; /* 세로 가운데 정렬 */
  width: 100%; /* 필요에 따라 조절 */
}

.period-box .input-group {
  flex: 1; /* 왼쪽과 오른쪽 input-group이 동일한 너비를 가짐 */
}

.period-mid {
  width: 20px; /* 요청하신 너비 20px */
  min-width: 20px; /* 너비 고정 */
  text-align: center; /* 글자 가운데 정렬 */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* daterangepicker fixed */
.yearly table.table-condensed .monthselect,
.yearly table.table-condensed thead tr:nth-child(2),
.yearly table.table-condensed tbody,
.monthly table.table-condensed thead tr:nth-child(2),
.monthly table.table-condensed tbody {
  display: none;
}

.daterangepicker.monthly .drp-calendar,
.daterangepicker.yearly .drp-calendar {
  width: 1000px !important;
}

.yearly table.table-condensed .yearselect {
  width: 100%;
}
.yearselect {
  float: left;
  width: 48% !important;
}
.monthselect {
  float: right;
  width: 48% !important;
}
/* daterangepicker fixed */

.label-box {
  display: flex; /* 1. 유연한 배치 */
  flex-wrap: wrap; /* 2. 공간 부족 시 줄바꿈 */
  gap: 10px; /* 요소 간 간격 */
  align-items: center; /* 세로 중앙 정렬 */
}

.label-box label {
  white-space: nowrap; /* 1. 텍스트 줄바꿈 방지 */
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 0px;
}

.label-box label span {
  font-weight: 400;
  margin-left: 5px; /* 체크박스와 텍스트 사이 간격 */
}

/* 3. 인풋 박스도 레이아웃에 맞춰 유연하게 조절 */
.label-box .form-control {
  flex-grow: 1; /* 남는 공간을 채우도록 설정 (선택사항) */
  min-width: 100px; /* 최소 너비 보장 */
  max-width: 200px; /* 너무 길어지지 않게 제한 */
}
.round-box {
  border-radius: 4px;
  padding: 20px;
}
.round-box.dark {
  background-color: #333;
  color: #fff;
}
.round-box.light {
  background-color: #f9f9f9;
}
.round-box.help {
  background-color: #eeeeff;
}
.round-form-box {
  border: solid 1px #ddd;
  border-radius: 4px;
  padding: 10px;
}

.pagination-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.pagination-box ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-inline-start: 0px;
}
.pagination-box li {
  cursor: pointer;
  list-style: none;
  min-height: 30px;
  min-width: 30px;
  padding: 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 4px;
  border: solid 1px #fff;
}
.pagination-box li.cur {
  border: solid 1px #ddd;
  background-color: #eee;
}
.dashboard-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.dashboard-container .box {
  border-radius: 10px;
  background-color: #333;
  width: calc(50% - 20px);
  padding: 20px;
  margin: 10px;
  box-sizing: border-box;

  /* 초기 상태: 투명하고 아래로 20px 내려가 있음 */
  opacity: 0;
  transform: translateY(20px);

  /* 애니메이션 적용: 이름, 지속시간, 진행방식, 최종상태유지 */
  animation: fadeInUp 0.5s ease forwards;
}
.dashboard-container .box .title {
  color: #fff;
  font-size: 1.2rem;
}
.dashboard-container .box .summary {
  color: #fff;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.dashboard-container .box .summary > div {
  display: inline-block;
  margin-right: 10px;
}

/* 등장 애니메이션 정의 */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flex-inline-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.flex-inline-box .flex-inline {
  flex: 1;
}

.contact-counter {
  position: relative;
}
.contact-counter .up,
.contact-counter .down {
  position: absolute;
  width: 14px;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  cursor: pointer;
}
.contact-counter .up {
  top: 0;
  right: 0;
}
.contact-counter .down {
  bottom: 0;
  right: 0;
}
.contact-counter .up:hover,
.contact-counter .down:hover {
  color: #000;
}
.contact-counter .count {
  width: calc(100% - 10px);
  min-width: 30px;
  text-align: center;
  font-weight: bold;
}
.input-group {
  position: relative;
}
.search-dropdown-list {
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.search-dropdown-list .dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
}
.search-dropdown-list .dropdown-item:hover {
  background-color: #f0f4ff;
}

.contents-box .contents-footer {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.contents-box .contents-footer > div {
  flex: 1;
}
.contents-box .contents-footer .left-part {
  text-align: left;
}
.contents-box .contents-footer .right-part {
  text-align: right;
}

.contents-box.round {
  border-radius: 20px;
  padding: 20px;
}
.contents-box.line-light {
  border: solid 1px #ddd;
}

.status-bar {
  display: flex;
  align-items: center;
  width: 90%;
  padding: 10px 32px;
  overflow-x: auto;
  margin: 0 auto;
}
.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
}
.step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-acc-point {
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  line-height: 1;
}
.status-step.active .step-dot {
  background: #4a90e2;
  border-color: #4a90e2;
}
.status-step.current .step-dot {
  background: #1a6fd4;
  border-color: #1a6fd4;
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.25);
}
.step-name {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
}
.step-point {
  font-size: 10px;
  color: #bbb;
}
.step-line {
  flex: 1;
  height: 3px;
  background: #ddd;
  margin-bottom: 20px; /* dot/name 높이 보정 */
  transition: background 0.3s;
}

/* 활성화 */
.status-step.active .step-dot {
  background: #4a90e2;
  border-color: #4a90e2;
}
.status-step.active .step-name {
  color: #4a90e2;
  font-weight: bold;
}
.status-step.active .step-point {
  color: #4a90e2;
}
.step-line.active {
  background: #4a90e2;
}

/* 현재 단계 강조 */
.status-step.current .step-dot {
  width: 20px;
  height: 20px;
  background: #1a6fd4;
  border-color: #1a6fd4;
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.25);
}
