/* 사이드바 푸터 */
.sidebar .sidebar-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 달력 */
/* 달력 일요일 색상 */
.fc .fc-day-sun .fc-daygrid-day-number {
  color: red !important;
}

/* 달력 토요일 색상 */
.fc .fc-day-sat .fc-daygrid-day-number {
  color: blue !important;
}

/* [클로드] 달력 법정 공휴일 색상 (토/일보다 우선 적용) */
.fc .fc-day-holiday .fc-daygrid-day-number {
  color: red !important;
}

/* [클로드] 달력 공휴일 이름 (날짜 숫자 바로 왼쪽에 빨강으로 붙여 표시) */
.fc .fc-daygrid-day-top .holiday-name {
  align-self: center;
  padding-right: 4px;
  color: red;
  font-weight: bold;
  font-size: 12px;
  line-height: 1.4;
  word-break: keep-all;
}

/* 달력 커스텀 */
.fc-daygrid-body .custom-row {
  height: 100px;
}

/* 마지막 행 */
.fc-daygrid-body .custom-row td {
  /* line-height: 30px; */
  /* font-weight: bold; */
  padding-left: 5px;
}

/* 마지막 열 */
.memo-box {
  /* font-weight: bold; */
  padding-left: 5px;
  white-space: pre-line;
  /* 줄바꿈 유지 */
  font-size: 13px;
  /* white-space: normal; */
}

/* 상단 탭 */
.nav-pills .nav-link.active {
  background-color: #156AB4 !important;
  color: #fff !important;
}

/* 테이블 헤더 색상 */
table tr th {
  background-color: #f1f2f5;
  border: 1px solid #aaa;
}

/* 캘린더 집계 칸 */
.fc .memo-box,
.custom-row {
  background-color: #f5f9ff;
  border: 1px solid #d9e6f7;
  border-radius: 8px;
  padding: 8px 5px;
  height: 100%;
}

.memo-cell {
  width: 198px;
}

/* 테이블 셀 높이 줄이기 */
.table-sales-daily-time td,
.table-sales-daily-time th {
  height: 35px;
  vertical-align: middle;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

/* 삼각형(증가) 색 변경 */
/* .font-color-blue {
  color: #156ab4;
} */

/* 삼각형(감소) 색 변경 */
/* .font-color-red {
  color: #b41515;
} */

/* 삼각형(증가) */
.table-custom tbody .font-color-blue {
  color: #156ab4 !important;
}

/* 삼각형(감소) */
.table-custom tbody .font-color-red {
  color: #b41515 !important;
}


/* 테이블 밑줄 */
.table {
  border-bottom: 1px solid;
}

.table-responsive>.table-bordered {
  border-bottom: 1px solid #ddd;
}

/* 라디오와 텍스트 중앙 정렬 */
input[type="radio"],
input[type="checkbox"] {
  vertical-align: middle;
  margin-top: -2px;
}

/* 라디오와 텍스트 항목들 배치 정렬 */
.radio-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  line-height: 1.4;
}

.radio-item input[type="radio"] {
  vertical-align: middle;
}

.visit-type {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  column-gap: 24px;
  row-gap: 8px;
}

/* 원무과_일일결산 등록의 파일 input 크기 조절 */
.fileInput {
  width: 376px;
}

/* 일일결산등록 모달크기 */
.modal-xl {
  width: 1000px !important;
  max-width: 1000px !important;
}

/* 일일결산등록 테이블 크기 */
/* .dailyTableCustom {
  width: 500px !important;
  max-width: 500px !important;
} */

/* 일일결산등록 입력창조절 */
#dailyTable td:first-child,
#dailyTable2 td:first-child {
  /* width: 120px; */
  /* 원하는 가로 크기 */
  white-space: nowrap;
  /* 줄바꿈 방지 */
}

#dailyTable input,
#dailyTable2 input {
  width: 81px;
}

#dailyTable td,
#dailyTable2 td {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

.mr-custom1 {
  margin-right: 360px;
}

.select-incentive {
  width: 160px;
  height: 40px;
}

.color-bbb {
  color: #bbb;
}

.pg-type {
  display: none;
}

/* 방사선사_Carm시행관리의 등록 */
#selectTable thead th {
  /* background-color: #ffffff !important; */
  /* color: #000000 !important; */
}

/* 헤더 정렬 */
#selectTable thead th {
  text-align: center;
  vertical-align: middle;
}

/* 셀렉트와 버튼 정렬 */
#selectTable select.form-control-s,
#selectTable button.btn {
  height: 38px;
  line-height: 38px;
  padding: 0 8px;
}

/* 방사선사Carm시행관리 등록모달 테이블 */
/* 셀렉트피커 테두리 */
.bootstrap-select>.dropdown-toggle {
  border: 1px solid #eeeeee;
  border-radius: 2px;
}

.bootstrap-select .dropdown-menu {
  border: 0.5px solid #222222;
  border-radius: 2px;
}

#selectTable {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  /* [클로드 2026-06-10] 환자검색 자동완성(.cs-ul) 드롭다운이 .table-custom의 overflow:hidden에 잘려 안 펼쳐지던 문제 수정 */
  overflow: visible;
}

#selectList td {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

/* 2행씩 묶어서 색 번갈아 적용 */
.table-striped-custom tbody tr:nth-child(4n+1),
.table-striped-custom tbody tr:nth-child(4n+2) {
  background-color: #f2f2f2;
  /* 밝은 줄 */
}

.table-striped-custom tbody tr:nth-child(4n+3),
.table-striped-custom tbody tr:nth-child(4n+4) {
  background-color: #ffffff;
  /* 흰 줄 */
}

.cancle-custom {
  text-decoration: line-through;
  color: #b41515;
}

.calAm {
  background-color: #FFF4D8;
}

.shock-group {
  background-color: #FFF2D3;
}

.dosu-group {
  background-color: #EEF2D3;
}

.ampm {
  background-color: #F8F9FA;
}

.shcedule-row {
  max-width: 100%;
}

table.schedule-table {
  table-layout: fixed;
  position: relative;
  border-collapse: collapse;
}

table.schedule-table tr td {
  padding: 0 !important;
  overflow: visible;
  position: relative;
  width: 90px !important;
  border: 1px solid #ddd;
  min-width: 90px;
  max-width: 90px;
}

table.schedule-table tr th {
  width: 130px !important;
  /*90px*/
  height: 35px;
  line-height: 35px;
  border: 1px solid #ddd;
  min-width: 90px;
  /* max-width: 130px; */
  /*90px*/
}


.badge {
  cursor: pointer;
}

/* 타임피커 */
.ui-timepicker-wrapper {
  z-index: 2000 !important;
}

.rs-badge {
  border-radius: 5px;
  min-height: 22px;
  height: 100%;
  padding: 0;
  width: 70px;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 12px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 10px 20px -15px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

.droppable {
  text-align: left;
  padding: 0 5px;
}

.drag-handle {
  width: 100%;
  height: 22px;
  line-height: 22px;
  cursor: move;
  display: relative;
}

.memoPoint {
  position: absolute;
  top: 0px;
  right: 0px;
  /* color: #333534; */
  color: #E37617;
}

.rs-back {
  width: 100%;
  opacity: 40%;
  border-radius: 0 0 5px 5px;
}

.sidebar {
  background-color: #4e505f;
}

.sidebar .nav>.nav-item a p {
  color: #fff;
  font-weight: 200;
}

.sidebar .nav>.nav-item.active>a p {
  color: #fff !important;
  font-weight: 500;
}

.sidebar .nav>.nav-item a:focus p,
.sidebar .nav>.nav-item a:hover p {
  color: #fff !important;
}

.sidebar .nav>.nav-item a {
  display: flex;
  align-items: center;
  color: #eee;
  padding: 10px 25px;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  position: relative;
  margin-bottom: 3px;
}

.sidebar .nav-collapse li a .sub-item {
  font-size: 12px;
  position: relative;
  margin-left: 25px;
  opacity: 0.85;
}

.sidebar .nav>.nav-item.active>a {
  background-color: rgb(53 54 63 / var(--tw-bg-opacity, 1));
}

.sidebar .nav-collapse li.active>a {
  font-weight: 600;
  background: rgba(0, 0, 0, .2);
}

.sidebar .user .info a>span {
  font-size: 13px;
  font-weight: 400;
  color: #eee;
  display: flex;
  flex-direction: column;
}

.sidebar .user .info a>span .user-level {
  color: #ddd;
  font-weight: 600;
  font-size: 11px;
  margin-top: 2px;
}

.sidebar .nav>.nav-item a[data-toggle=collapse][aria-expanded=true]:before,
.sidebar .nav>.nav-item.active:hover>a:before,
.sidebar .nav>.nav-item.active>a:before {
  background: #e37617;
  opacity: 1 !important;
  position: absolute;
  z-index: 1;
  width: 3px;
  height: 100%;
  content: '';
  left: 0;
  top: 0;
}

.logo-header {
  background-color: rgb(53 54 63 / var(--tw-bg-opacity, 1));
}

.header-hp {
  padding: 5px 10px;
  height: 30px !important;
  line-height: 30px;
  margin-top: 15px !important;
  border-radius: 5px !important;
  background-color: #333;
  color: #fff;
  border: 1px solid #666;
}

.header-hp:focus {
  background-color: #333;
  color: #fff;
}

.sidebar .user {
  border-bottom: 1px solid #777;
}

.sidebar .user .info .caret {
  position: absolute;
  top: 17px;
  right: 0;
  border-top-color: #ddd;
}

.nav-pills .nav-link.active {
  background-color: #e37617 !important;
  color: #fff !important;
}

.text-muted {
  color: #666 !important;
  font-weight: 400;
}

.sidebar .nav>.nav-item a p {
  font-size: 12px;
}

.header-icon {
  width: 14px;
  height: 14px;
  margin-bottom: -3px;
  fill: #fff;
}

.dashboard-th {
  background-color: #ffffff;
  width: 45px;
  font-weight: 500;
  text-align: left !important;
  border: 0 !important;
}

.dashboard-table2 th {
  background-color: #f5f9ff;
  width: 52px;
}

.dashboard-table {
  margin-bottom: 0;
}

table.dashboard-table {
  width: 90% !important;
  margin-left: 5%;
  margin-top: 0;
  /*border: 1px solid #aaa !important;*/
}

table.dashboard-table2 {
  margin-top: 5px;
}

table.dashboard-table td {
  color: #999;
  border: 0;
}

.page-item.active .page-link {
  z-index: 1;
  color: #fff;
  background-color: #e37617;
  border-color: #e37617;
}

.btn-info {
  background: #42a5b9 !important;
  border-color: #42a5b9 !important;
}

.btn-success {
  background: #e37617 !important;
  border-color: #e37617 !important;
}

h3 {
  font-size: 24px;
  color: #333;
}

h2 {
  font-size: 16px !important;
}

.form-check,
.form-group {
  margin-bottom: 0;
  padding: 25px;
}

/* 체크박스 색 변경 */
.form-check [type=checkbox]+.form-check-sign:after,
.form-check [type=checkbox]:checked+.form-check-sign:after,
.form-check [type=checkbox]:not(:checked)+.form-check-sign:after {
  color: #E37617;
}

.logo-style {
  width: 70%;
  margin: 7px 30px;
  display: block;
  text-align: center;
}

.sidebar .nav>.nav-item a[data-toggle=collapse][aria-expanded=true] p {
  color: #eee;
}

.footer-text {
  color: #eee;
}

.color-aaa {
  color: #aaa !important;
}

.fw-strong {
  font-weight: 900 !important;
  font-size: 14px !important;
}

.dashboard-table3 tr td {
  border: 0;
}

.dashboard-table3 tr th {
  border: 0;
}

.dashboard-th2 {
  width: 40px !important;
  border: 0 !important;
  text-align: left !important;
}

.row.custom-gutter {
  margin-left: -10px;
  /* row 좌우 보정 */
  margin-right: -10px;
}

.row.custom-gutter>[class^="col-"] {
  padding-left: 10px;
  /* 원하는 가로 간격 */
  padding-right: 10px;
}

/* 휴무 및 예약불가 칸 표시 */
.non-drop {

  background-color: #f5efe6;
  background-image: radial-gradient(closest-side, transparent 98%, #dfdfdf 100%), radial-gradient(closest-side, transparent 98%, #dfdfdf 100%);
  background-position: 0 0, 15px 15px;
  background-size: 10px 10px;
  pointer-events: none;
  /* border: 3px dashed #BCBFCA !important; */
  /* outline: 3px dashed #BCBFCA; */
  /* outline-offset: -2px; */
}

/* [클로드] 2026-09-04: 휴무 칸은 체크무늬 표시만 하고,
   클릭·드래그 등 기능은 평소와 똑같이 쓸 수 있게 하는 클래스.
   (.non-drop 과 모양은 같고, pointer-events 로 막지 않는 점만 다름) */
.holiday-cell {
  background-color: #f5efe6;
  background-image: radial-gradient(closest-side, transparent 98%, #dfdfdf 100%), radial-gradient(closest-side, transparent 98%, #dfdfdf 100%);
  background-position: 0 0, 15px 15px;
  background-size: 10px 10px;
}

.custom-picker {
  position: relative;
}

.cs-ul {
  width: 120px;
  position: absolute;
  top: 35px;
  left: 0;
  display: none;
  padding: 0;
  background-color: #fff;
  border: 1px solid #aaa;
  max-height: 400px;
  overflow: auto;
  z-index: 999999;
}

.cs-ul li {
  list-style: none;
  padding: 5px;
  border-bottom: 1px solid #efefef;
}

.cs-ul li:hover {
  background-color: #efefef;
  cursor: pointer;
}

/* 환자 검색 후 선택  */
.cs-ul {
  display: none;
  max-height: 220px;
  overflow-y: auto;
  position: absolute;
  z-index: 9999;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-ul li {
  padding: 6px 10px;
  cursor: pointer;
}

.cs-ul li.is-active {
  background: #e9ecef;
}

.custom-picker {
  position: relative;
}

.editSelect,
.editAtSelect,
.editTrptSelect {
  padding-left: 2px;
}

/* 시행관리 총 합 테이블 */
.ptCntTh {
  width: 90px;
}

.scroll-row {
  flex-wrap: nowrap !important;
  overflow-x: auto;
}

/* Bootstrap col 완전 해제 */
.scroll-col {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
}

/* card가 실제 크기를 결정 */
.scroll-col>.card {
  width: max-content;
  min-width: 600px;
  /* 선택: 최소 폭 */
}

/* 휴무설정 휴무종류 셀렉트 */
#allDay {
  height: 42.69px;
  width: 128px;
}

/* 휴무설정 시간 비활성화 */
.input-disabled {
  background-color: #f1f1f1;
  pointer-events: none;
  opacity: 0.6;
}

/* .td-disabled {
  background-color: #e0e0e0;
  pointer-events: none;
} */

#scheduleTable,
#scheduleTable2 {
  position: relative;
}

.sidebar_minimize .sidebar .sidebar-footer {
  display: none !important;
}

.menu-text {
  color: #ffffff;
  font-size: 12px;
  margin-top: 4px;
}

.logo-header {
  display: flex;
  align-items: center;
}

#logoImg {
  width: 100%;
  margin-top: 10px !important;
}

.logo {
  width: 120px;
}

#navbarBtn {
  color: #BCBFCA !important;
}


#plusText {
  color: #BCBFCA;
  /* opacity: 0.2; */
  font-size: 35px;
  z-index: 1;
  /* bottom: -6px; */
  /* top: 10px; */
  /* margin-bottom: 30px; */
}

#roomText {
  color: #BCBFCA;
  /* color: #444444; */
  z-index: 2;
  top: 50px;
  font-size: 16px;
  font-weight: 800;
}

.roomBtn {
  cursor: pointer;
}

.roomPlusBtn {
  cursor: pointer;
}

.rowItemStyle {
  color: #FF0000;
  background-color: #FBD2D2;
}



.scheduleTdHight {
  height: 22px;
}

#inventoryRoom {
  gap: 35px 0px;
}

.roomBtnGroup {
  display: flex;
  top: 5px;
  right: 10px;
  gap: 10px;
  z-index: 3;
}

.roomBtnGroup i {
  font-size: 20px;
}

/* 창고추가 버튼 스타일 */
.dropzone {
  /* border: 2px dashed var(--bs-input-border-color); */
  border: 5px dashed #BCBFCA !important;
  /* background: var(--bs-secondary-bg); */
  border-radius: 6px;
  /* cursor: pointer; */
  /* min-height: 150px; */
  /* padding: 20px; */
  padding: 15px !important;
}

.roomAddIcon {
  color: #BCBFCA !important;
}


.form-check-label {
  margin-right: 16px;
  font-weight: 500;
  cursor: pointer;
}

.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0;
  vertical-align: middle;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 2px solid #BCBFCA;
  appearance: none;
  border-radius: 50%;
  cursor: pointer;
}

.form-check-input:checked {
  border-color: #E37617;
  background-color: #E37617;
  background-image: radial-gradient(circle, white 40%, transparent 45%);
}

.form-check-input:focus {
  box-shadow: none;
}

.radioGroup {
  /* display: flex;
  flex-wrap: wrap;
  gap: 10px 25px; */
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 8px 20px;
}

.radioGroup .form-check {
  display: flex;
  align-items: center;
  margin: 0;
}

.cursorPointer {
  cursor: pointer;
}

/* #nonDataSchedule {
  width: 200px !important;
  max-width: 300px !important;
  padding: 100px !important;
} */

.ampmLine {
  /* color: #42a5b9 !important;
  background-color: #42a5b9 !important; */
  /* border-top: 3px solid #E37617 !important; */
  /* border-top: 3px dashed #E37617 !important; */
  border-top: 5px double #E37617 !important;
}

/* .table-head-bg-success thead th,.table-striped-bg-success tbody tr:nth-of-type(odd) {
    background: ##35363F!important;
    color: #fff!important;
    border: 0!important
} */

/* .table-head-bg-primary th {
  opacity: 0.8;
} */

.table-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px;
  overflow: hidden;
}

.table-custom thead th {
  /* background: #f8fafc !important; */
  background: #F1F2F5 !important;
  color: #334155 !important;
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  padding: 14px 12px;
  border-bottom: 1px solid #dbe2ea !important;
}

.table-custom tbody td {
  color: #475569 !important;
  font-size: 12px;
  text-align: center;
  padding: 10px 5px !important;
  border-bottom: 1px solid #eef2f7 !important;
  background: #ffffff !important;
}

.table-custom tbody tr:hover td {
  background: #f8fbff !important;
}

.table-custom tbody tr:last-child td {
  border-bottom: none;
}

/* .trBgRed {
  background-color: #FBD2D2 !important;
}

.tdfontRed {
  color: #FF0000 !important;
}

.trBgBlue {
  background-color: #EAF3FF !important;
}

.tdfontBlue {
  color: #0562E5 !important;
} */

.table-custom tbody tr.trBgRed td {
  background-color: #FBD2D2 !important;
}

.table-custom tbody tr.trBgBlue td {
  background-color: #EAF3FF !important;
}

.table-custom tbody td.tdfontRed {
  color: #FF0000 !important;
}

.table-custom tbody td.tdfontBlue {
  color: #0562E5 !important;
}

#tableRes td.bgRed {
  background-color: #FBD2D2 !important;
  color: #FF0000 !important;
}

.favStar {
  font-size: 15px;
  color: #ccc;
  cursor: pointer;
}

.favStar.active {
  color: #ffb400;
  cursor: pointer;
}

#roomSelect,
#dateCreate {
  width: 178px;
}

.trInventory>td {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

.tableScroll {
  /* max-height: 400px; */
  max-height: 550px;
  overflow-y: auto;
  display: block;
}

/* .modal-custom {
  max-height: 1200px !important;
} */

.modal-custom .modal-content {
  min-height: 90%;
}

.qtyInput {
  max-height: 30px;
}

.searchRow {
  background-color: #FFF3E6 !important;
}

.searchCell {
  background-color: #F8C58F !important;
  color: #333;
  font-weight: 600;
}

#ptDataTable2 tr td {
  padding: .35rem .75rem !important;
}

/* 사이드바 펼쳐짐 막기 */
.sidebar_minimize .sidebar,
.sidebar_minimize .logo-header {
  pointer-events: none !important;
}

.sidebar {
  z-index: 10;
}

#navbarBtn {
  pointer-events: auto !important;
}

/* 사이드바 */
.setting-toggle {
  position: fixed;
  top: 50%;
  /* right: 0; */
  text-decoration: none;
  z-index: 0;
  -webkit-transform: rotate(-90deg) translate3d(-25px, 39px, 0);
  transform: rotate(-270deg) translate3d(-25px, 39px, 0);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  /* margin-top: -83px; */
  -webkit-box-shadow: var(--falcon-setting-toggle-shadow);
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
  left: 40px;
  color: #E39500;
  margin-top: -20px;
  display: none;
  background-color: #fff7e9 !important;
}

a.setting-toggle:hover {
  color: #E39500;
  text-decoration: none;
}

#foldBtn {
  background-color: #35363F !important;
  color: #666;
  font-size: 20px;
  font-weight: 100;
  text-align: right;
  padding: 0;
  margin: 5px 0 0 40px;
}

#foldBtn:hover {
  color: #999;
}

.toast {
  /* display: none; */
}

.toast {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  min-width: 250px;
  max-width: 350px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  overflow: hidden;
}

.toast .toast-header {
  display: flex;
  align-items: center !important;
  padding: 8px 12px;
  background: #f5f5f5;
  font-size: 14px;
}

.toast .toast-title {
  font-weight: 600;
}

.toast .toast-time {
  margin-left: auto;
  font-size: 12px;
  color: #888;
}

.toast .toast-close {
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.toast .toast-body {
  padding: 12px;
  font-size: 14px;
}

.timeline-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 25px;
  height: 25px;
  /* line-height: 50px; */
  /* font-size: 1.8em; */
  font-size: 15px;
  /* text-align: center; */
  /* position: absolute; */
  /* top: 16px; */
  /* left: 50%; */
  /* margin-left: -25px; */
  background-color: #999;
  /* z-index: 100; */
  border-top-right-radius: 50%;
  border-top-left-radius: 50%;
  border-bottom-right-radius: 50%;
  border-bottom-left-radius: 50%;
  flex-shrink: 0;
}

#settingBtn {
  display: none;
}

/* ==========================================================================
   [클로드 2026-10-31] 반응형 보정 — 창을 줄이거나 휴대폰으로 볼 때만 적용
   · 전체화면 PC(1900px 이상)에서는 아래 규칙이 하나도 적용되지 않아 기존 화면과 동일.
   · 글꼴·색·표 모양은 그대로 두고, "배치"만 좁은 화면에 맞게 바꾼다.
   · 되돌리기: 이 구역(파일 맨 끝 ~ 이 주석까지)을 통째로 지우면 원래대로.
   ========================================================================== */

/* (1) 창이 좁아 표가 오른쪽으로 넘칠 때: 예전엔 잘려서 안 보였음 → 가로 스크롤로 볼 수 있게 */
@media (max-width: 1899.98px) {
  .main-panel > .content {
    overflow-x: auto;
    overflow-y: hidden;
  }
}

/* (2) 대시보드 — 창이 1400px보다 좁으면 카드를 가로 꽉 채우고,
       달력은 최소 폭을 지켜 글자가 세로로 깨지지 않게(넘치면 달력만 가로 스크롤) */
@media (max-width: 1399.98px) {
  .dash-card-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .dash-summary {
    flex: 1 1 100%;
    max-width: 100%;
    margin-left: 0 !important;
    padding-top: 0 !important;
  }

  .dash-summary .table-responsive {
    width: 100%;
  }

  .dash-summary #ptDataTable {
    min-width: 820px;
  }

  .dash-summary #ptDataTable th,
  .dash-summary #ptDataTable td {
    white-space: nowrap;
  }

  .calendar-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .calendar-container #calendar {
    min-width: 1200px;
  }
}

/* (3) 태블릿·휴대폰(992px 미만) — 왼쪽 메뉴는 숨기고 상단 ☰ 버튼으로 여닫기 */
@media (max-width: 991.98px) {

  /* 메뉴 접기/펼치기(PC용)가 넣는 고정 폭을 무시하고 본문을 화면 전체 폭으로 */
  .main-panel {
    width: 100% !important;
  }

  .main-header .logo-header {
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: visible !important;
  }

  /* PC용 메뉴 접기(X)·OPEN 버튼은 숨김 (☰ 버튼이 대신함) */
  #foldBtn,
  .setting-toggle {
    display: none !important;
  }

  /* PC에서 메뉴를 접어둔 상태였어도 휴대폰 메뉴는 정상적으로 보이게 */
  #sidebar22,
  #sidebar22 .sidebar-wrapper,
  #sidebar22 .scroll-wrapper {
    width: 240px !important;
    overflow: visible;
  }

  #sidebar22 .sidebar-wrapper {
    max-height: 100vh !important;
    overflow-y: auto !important;
  }

  #sidebar22 .sidebar-content,
  #sidebar22 .sidebar-footer {
    display: block !important;
  }

  /* 상단바 ☰ / ⋮ 버튼 색 (어두운 상단바에서 잘 보이게) */
  .main-header .logo-header .navbar-toggler,
  .main-header .logo-header .more {
    color: #BCBFCA !important;
  }

  /* 표는 폭을 억지로 줄이지 않고 PC와 같은 모양 그대로 → 좌우로 밀어서 보기
     (글자가 한 자씩 세로로 쪼개지던 문제 해결. 표를 감싼 카드 안에서 가로 스크롤) */
  .page-inner .table th,
  .page-inner .table td {
    white-space: nowrap;
  }

  .page-inner .card-body,
  .page-inner .table-responsive,
  .page-inner .le-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  /* 일일결산 등 큰 팝업창이 화면 밖으로 나가지 않게 */
  .modal-xl {
    width: auto !important;
    max-width: calc(100vw - 1rem) !important;
  }
}

/* (4) 휴대폰(768px 미만) — 칸을 위아래로 쌓고, 넓은 표는 카드 안에서 가로 스크롤 */
@media (max-width: 767.98px) {
  .page-inner .row > .col-1, .page-inner .row > .col-2, .page-inner .row > .col-3,
  .page-inner .row > .col-4, .page-inner .row > .col-5, .page-inner .row > .col-6,
  .page-inner .row > .col-7, .page-inner .row > .col-8, .page-inner .row > .col-9,
  .page-inner .row > .col-10, .page-inner .row > .col-11 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .page-inner .card-body,
  .page-inner .card-header {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .form-check,
  .form-group {
    padding: 10px;
  }

  .fileInput {
    width: 100%;
  }

  /* 나란히 놓인 작은 카드(예: 청구 결과 분석의 청구·인정액·조정…)는 한 줄에 2개씩 */
  .page-inner .row > .col {
    flex: 1 0 45%;
  }

  .page-inner .row {
    row-gap: 10px;
  }

  /* 예약 현황(시간표)처럼 원래 옆으로 넘겨 보는 화면은 PC 모양 그대로 두고
     바깥 한 곳(scroll-row)에서만 좌우로 밀리게 (안쪽 칸 배치·스크롤은 손대지 않음) */
  .page-inner .scroll-row .row > .col {
    flex: 1 0 0%;
  }

  .page-inner .scroll-row .card-body,
  .page-inner .scroll-row .card-header {
    overflow: visible;
  }

  .page-inner .scroll-row .card-header .d-flex {
    flex-wrap: nowrap;
  }

  .page-inner .scroll-row {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  /* 버튼·검색줄은 화면 밖으로 밀려나지 않게 다음 줄로 */
  .page-inner .card-header .d-flex,
  .page-inner .card-body.d-flex,
  .page-inner .card-body.d-flex > .d-flex {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  /* 청구 결과 분석 상단 메뉴: 휴대폰에서는 화면을 너무 가려서 따라다니지 않게 */
  #claimBar {
    position: static !important;
  }

  #claimBar .ml-4 {
    margin-left: 0 !important;
    margin-right: 1rem;
  }

  #claimBar .ml-auto {
    margin-left: 0 !important;
    width: 100%;
  }

  #claimBar #dropZone {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* 로그인 — 아이폰에서 입력칸을 누를 때 화면이 확대되는 현상 방지 */
  .login .login-form .form-control {
    font-size: 16px;
  }

  /* ---- 대시보드: 상단 '월 평균' 표 — PC와 같은 가로 한 줄 모양 그대로, 좌우로 밀어서 보기 ----
     (2026-10-31 대표 요청: 3칸×3줄 카드 대신 가로로 넓게. 최소 폭·가로 스크롤은 위 1400px 미만 규칙에서 적용됨) */
  .dash-summary {
    padding: 0 !important;
  }

  /* 맨 위 '10월 평균' 제목칸은 표 전체 폭(820px) 가운데라 휴대폰 첫 화면에서 안 보임 → 왼쪽에 붙여 바로 보이게 */
  .dash-summary #ptDataTable thead tr:first-child th {
    text-align: left;
    padding-left: 16px !important;
  }

  /* ---- 대시보드: 달력은 PC와 같은 모양 그대로, 좌우로 밀어서 보기 ----
     (가로 스크롤·최소 폭은 위 1400px 미만 규칙에서 이미 적용됨) */
  .calendar-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    overscroll-behavior-x: contain;
  }

  /* 이전/다음/today 버튼과 '2026년 10월' 제목은 밀어도 왼쪽에 고정 */
  #calendar .fc-header-toolbar {
    position: sticky;
    left: 0;
    width: max-content;
    justify-content: flex-start;
    gap: 16px;
  }
}
/* ============== [클로드 2026-10-31] 반응형 보정 끝 ============== */

/* ============== [클로드 2026-11-05] 표 크기 정리 (대표 요청) ==============
   - 표가 모니터 너비에 맞춰 무작정 늘어나지 않고 내용만큼만 (칸 좌우 여유 16px)
   - 칸 안 글자는 한 줄로. 창이 좁으면(태블릿·휴대폰) 표를 줄이지 않고 좌우로 밀어서 보기
   - 표를 감싼 흰 상자도 표 크기만큼 (header.html 의 fitTables 가 erp-fit-card / erp-fit-scroll 표시)
   - 입력칸(글자·선택상자)이 있는 표와 팝업 안 표는 그대로 (header.html 의 fitTables 가 대상 표에만 erp-fit-table 표시)
   - [클로드 2026-11-05 속도] 예전 :has() 선택자는 표에 줄이 하나 붙을 때마다 표 전체 모양을 다시 계산하게 해서
     화면이 3배 이상 느려졌음 → 판단은 JS 가 하고 CSS 는 표시(class)만 본다 */
.main-panel table.table.erp-fit-table {
  width: auto !important;
  max-width: none !important;
}
.main-panel table.table.erp-fit-table > colgroup > col {
  width: auto !important;
}
.main-panel table.table.erp-fit-table > * > tr > th,
.main-panel table.table.erp-fit-table > * > tr > td {
  white-space: nowrap;
  padding-left: 16px !important;
  padding-right: 16px !important;
}
.erp-fit-scroll {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.erp-fit-card {
  width: fit-content !important;
  max-width: 100% !important;
}
.erp-fit-card .row > [class*="col"] {
  min-width: 0;
}
/* ============== [클로드 2026-11-05] 표 크기 정리 끝 ============== */

/* ============== [클로드 2026-11-05] 왼쪽 메뉴: 펼침 애니메이션 없이 바로 열림 (대표 요청) ============== */
.sidebar .collapsing {
  transition: none !important;
}
.sidebar .nav-item > a,
.sidebar .caret {
  transition: none !important;
}

/* ============== [클로드 2026-11-05] 화면 움직임 없이 바로 표시 (대표 요청) ==============
   - 팝업·메뉴·버튼 등이 서서히 나타나거나 미끄러지듯 움직이지 않고 누르자마자 바로 보이게 한다.
   - 그래프 움직임은 common.js 맨 위에서 끈다. 모양·색·크기는 그대로. */
*,
*::before,
*::after {
  transition: none !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
}
/* ============== [클로드 2026-11-05] 화면 움직임 없이 바로 표시 끝 ============== */


/* ============== [클로드 2026-11-05] 왼쪽 메뉴 깜빡임 없이 (대표 요청) ==============
   새 화면이 처음 그려질 때 왼쪽 메뉴에 회색 기본 스크롤바가 잠깐 보였다가(메뉴 글자·화살표가 옆으로 밀림)
   스크롤바 꾸미기 기능이 켜지면서 사라져 메뉴가 깨졌다 돌아오는 것처럼 보였음 → 처음부터 기본 스크롤바를 숨김.
   (꾸며진 얇은 스크롤바와 휠 스크롤은 그대로) 메뉴 펼침·병원칸·제목은 common.js presetSidebar */
.sidebar .sidebar-wrapper::-webkit-scrollbar {
  width: 0;
  height: 0;
}
/* ============== [클로드 2026-11-05] 왼쪽 메뉴 깜빡임 없이 끝 ============== */


/* [클로드 2026-11-05 대표 요청] 자료가 오기 전 빈 표의 흰 상자는 감춰 두었다가 표가 채워지면 한 번에 표시
   (header.html fitTables 의 markEmpty 가 erp-fit-wait 표시. 자리는 그대로 차지) */
.erp-fit-wait {
  visibility: hidden !important;
}
