@charset "UTF-8";

/* 공통 .modal-footer 표준: 좌측(닫기/취소) + 우측 .modal-footer__actions(액션) 분리 */
.modal .modal-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #fafbfc;
    border-top: 1px solid #e5e7eb;
}
.modal .modal-footer__actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}
.modal .modal-footer .btn.round--btn {
    min-width: 100px;
    height: 40px;
}

/* 공통 .form--tbl__header / .search-box 보강 (BMS 페이지 패턴) */
.form--tbl__header {
    align-items: center;
}
.form--tbl__header .search-box {
    height: 48px;
}
.form--tbl__header .search-box input {
    height: 100%;
    border: none;
    padding: 0 15px;
    font-size: 15px;
}

/* ========== 로딩 바 ========== */
@keyframes rotate-loading {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.loading-container {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 99999;
}

.loading {
	position: absolute;
	top: calc(100% / 2 - 50px);
	left: calc(100% / 2 - 50px);
	width: 100px;
	height: 100px;
	border-radius: 50%;
	border: 2px solid transparent;
	border-color: transparent #FF9800 transparent #FF9800;
	animation: rotate-loading 1.5s linear infinite;
	transition: all 0.5s ease-in-out;
}

#loading-text {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100px;
	color: #fff !important;
	margin-top: -8px;
	font-weight: 500;
	text-align: center;
	text-transform: uppercase;
	transform: translateX(-50%);
}

/* 달력 css 수정 */
.daterangepicker .drp-buttons .btn.btn-primary {
    background: #047bb6;
    color: #fff;
}
.daterangepicker .drp-buttons .btn {
	width: 50px;
    height: 28px;
}

.daterangepicker select.yearselect {
    width: 48%;
}

.daterangepicker select.monthselect {
    width: 50%;
}

/* 테두리만 제거(나머지는 원래대로) */
.daterangepicker select {
    border-radius: 5px;
    padding: 10px;
    border: none;
    color: #1d1d1d;
    font-size: 15px;
    background-color: #fff;
	background: url("../../design/assets/images/select-arrow.png") no-repeat right 10px center;
}

/* 연 → 월 순서: th(테이블 셀)는 그대로 두고 inline 순서만 rtl로 뒤집어
   (<> 화살표 위치·셀렉트 폭은 유지) 셀렉트 내부 글자는 ltr로 복원 */
.daterangepicker th.month {
    direction: rtl;
}
.daterangepicker th.month select,
.daterangepicker th.month .cmm-dd {
    direction: ltr;
}

/* 월/년 커스텀 드롭다운(네이티브 select 대체: 스타일·스크롤 가능) */
.cmm-dd {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}
.cmm-dd select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
.cmm-dd__btn {
    position: relative;
    min-width: 64px;
    border: none;
    background: transparent;
    padding: 2px 18px 2px 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1d;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}
/* 작은 삼각형(▼) 화살표 */
.cmm-dd__btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #555;
}
.cmm-dd.is-open .cmm-dd__btn::after {
    border-top-color: #047bb6;
}
.cmm-dd__list {
    display: none;
    position: absolute;
    z-index: 3100;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 100%;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 0 0;
    padding: 4px;
    list-style: none;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    text-align: center;
}
/* 메인 테이블 SimpleBar 룩 — WebKit(회색 둥근 thumb, hover 진해짐)
   주의: scrollbar-width/scrollbar-color(표준 속성)를 함께 쓰면 Chrome 121+에서
   ::-webkit-scrollbar* 규칙이 통째로 무시되어 화살표가 안 사라짐 → 표준 속성 미사용 */
.cmm-dd__list::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}
.cmm-dd__list::-webkit-scrollbar-button,
.cmm-dd__list::-webkit-scrollbar-button:start:decrement,
.cmm-dd__list::-webkit-scrollbar-button:end:increment {
    display: none;
    width: 0;
    height: 0;
}
.cmm-dd__list::-webkit-scrollbar-track {
    background: transparent;
}
.cmm-dd__list::-webkit-scrollbar-thumb {
    background-clip: padding-box;
    border: 2px solid transparent;
    border-radius: 7px;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.2s linear;
}
.cmm-dd__list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.cmm-dd.is-open .cmm-dd__list {
    display: block;
}
.cmm-dd__opt {
    padding: 3px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: #1d1d1d;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
}
.cmm-dd__opt:hover {
    background: #eef6ff;
    color: #03699c;
}
.cmm-dd__opt.is-active {
    background: #047bb6;
    color: #fff;
}
.cmm-dd__opt.is-disabled {
    color: #cbd5e1;
    cursor: default;
}

/* 비활성 날짜: 취소선 제거, 회색으로만 표시 */
.daterangepicker td.disabled,
.daterangepicker option.disabled {
    text-decoration: none;
}

/* 추가형 달력(cmm-drp-noselect): 선택 강조 제거 → 아무것도 선택 안 된 상태로 표시
   (자동적용+자동닫힘이라 선택 강조가 보일 일이 없어 무방) */
.daterangepicker.cmm-drp-noselect td.active:not(:hover),
.daterangepicker.cmm-drp-noselect td.active.start-date:not(:hover),
.daterangepicker.cmm-drp-noselect td.active.end-date:not(:hover) {
    background-color: transparent;
    color: inherit;
}

/* 범위 달력: 초기화 버튼 — 좌측 하단 끝, 취소 버튼과 동일한 기본(.btn) 룩 */
.daterangepicker .drp-buttons .btn.cmm-drp-reset {
    float: left;
    width: auto;
    min-width: 50px;
    margin-left: 0;
}


.tippy-box[data-theme~='tomato'] {
    color: yellow !important;
    background-color: tomato;
}
.tippy-box[data-placement^=top]>.tippy-arrow:before{
    border-top-color: tomato;
}
	
/* 게시판 형태 하단 버튼 및 페이징 (목록 흐름에 따라 배치) */
.btn-pagination-group {
    position: static;
    margin: 20px 0 0;
}

.btn-pagination-group .btn-group.between {
	margin-bottom: 20px;
}

.btn-pagination-group .pagination-wrap {
	min-height: 40px;
}

/* 페이징: design/assets/css/index.css 의 .pagination 사용, js/util/page.js 의 PAGING.setPage() 로 렌더 */

/* BMS 폼 모달 공통 (adm, device type, oper assign 등) */
.modal .modal-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f5f6f8;
    min-height: 0;
}
.modal .modal-section {
    background: #fff;
    border-radius: 6px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.modal .section-title {
    margin: 0 0 14px;
    padding-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1d;
    border-bottom: 1px solid #e5e7eb;
}
.modal .section-content {
    display: block;
}

/* 상태 타입 */
.chip.warning, .incident-list .incident-item__type.warning {
  background: #fff2cf !important;
}
.chip.warning i, .incident-list .incident-item__type.warning i {
  background: #f3c950 !important;
}
.chip.alert, .incident-list .incident-item__type.alert {
  background: #fef1f8 !important;
}
.chip.alert i, .incident-list .incident-item__type.alert i {
  background: #e252a7 !important;
}
.chip.info, .incident-list .incident-item__type.info {
  background: #fef1f8 !important;
}
.chip.info i, .incident-list .incident-item__type.info i {
  background: #8180e0 !important;
}
.chip.danger, .incident-list .incident-item__type.danger {
  background: #fff1f1 !important;
}
.chip.danger i, .incident-list .incident-item__type.danger i {
  background: #e54e57 !important;
}
.chip.success, .incident-list .incident-item__type.success {
  background: #eafff0 !important;
}
.chip.success i, .incident-list .incident-item__type.success i {
  background: #56946e !important;
}
.chip.wait, .incident-list .incident-item__type.wait {
  background: #eef5ff !important;
}
.chip.wait i, .incident-list .incident-item__type.wait i {
  background: #4a7de8 !important;
}
.chip.check, .incident-list .incident-item__type.check {
  background: #E7F6F5 !important;
}
.chip.check i, .incident-list .incident-item__type.check i {
  background: #0F8B8D !important;
}



/* 버튼 색 */
.btn.info {
    background: #555555;
    color: #fff;
}
.btn.primary {
    background: #047bb6;
    color: #fff;
}
.btn.danger {
    background: #e54e57;
    color: #fff;
}


/* 폼 */
.form-control[readonly] {
    background-color: #f8f9fa;
    cursor: default;
}
.form-group {
    margin-bottom: 15px;
}

/* 필수 input */
.essential_text {
    content: "*";
    display: inline-block;
    color: #B3262C;
    margin-left: 4px;
    vertical-align: middle;
    transform: translateY(1px);
}

/* 맵 목록 데이터 없음 */
.no-data {
	overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    color: #8e8e8e;
}

/* 테이블 조회 결과 없음 공통 */
.tbl-no-data {
    text-align: center;
    padding: 30px 0;
}

/* 전체 레이아웃 스크롤 방지 (좌측 패널 하단 흰여백 해결) */
.app {
    height: 100vh;
    overflow: hidden;
}

/* 본체 영역 스크롤 허용 */
.content {
    overflow-y: auto;
}

/* 왼쪽 메뉴 높이 */
.sidenav__nav {
    height: calc(100vh - 165px);
}

/* alert창 */
.swal2-shown.swal2-height-auto {
    padding-right: 0px !important;
}



/* 로그인 옵션 영역 (아이디 저장 체크박스) */
.login-options {
	margin-bottom: 20px;
	display: flex;
	align-items: center;
}

/* 체크박스 스타일 */
.form-checkbox {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
	gap: 8px;
}

.form-checkbox input[type="checkbox"] {
	display: none;
}

.form-checkbox i {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
	position: relative;
	transition: all 0.2s ease;
}

.form-checkbox input[type="checkbox"]:checked + i {
	background: #0758ac;
	border-color: #0758ac;
}

.form-checkbox input[type="checkbox"]:checked + i::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.form-checkbox span {
	font-size: 14px;
	color: #6b7280;
	font-weight: 400;
}

.form-checkbox:hover i {
	border-color: #0758ac;
}


.panel--list .panel--item--body dl dd{
	white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.listbody li{
	list-style: none !important;
	display: flex !important;
}

.listbody ul li > span{
	width:30%;
}

.btn.border2{
	border: 3px solid #047bb6;
}

.btn.active{
	background: #047bb6;
}

/* ========== 알림 드롭다운 ========== */
.notice-menu {
	position: relative;
}

.notice-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	width: 320px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	margin-top: 10px;
	overflow: hidden;
}

.notice-dropdown__header {
	padding: 12px 16px;
	background: #047bb6;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
}

.notice-dropdown__header span {
	color: #fff !important;
}

.notice-dropdown__list {
	max-height: 280px;
	overflow-y: auto;
}

.notice-dropdown__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid #f0f0f0;
	text-decoration: none;
	color: #333;
	transition: background 0.2s;
}

.notice-dropdown__item:hover {
	background: #f8f9fa;
}

.notice-dropdown__item:last-child {
	border-bottom: none;
}

.notice-dropdown__item .notice-title {
	flex: 1;
	font-size: 13px;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-right: 10px;
}

.notice-dropdown__item .notice-time {
	font-size: 12px;
	color: #9ca3af;
	flex-shrink: 0;
}

.notice-dropdown__empty {
	padding: 30px 16px;
	text-align: center;
	color: #9ca3af;
	font-size: 13px;
}

.notice-dropdown__footer {
	padding: 10px 16px;
	border-top: 1px solid #e5e7eb;
	text-align: center;
	background: #fafbfc;
}

.notice-dropdown__footer a {
	font-size: 13px;
	color: #047bb6;
	text-decoration: none;
	font-weight: 500;
}

.notice-dropdown__footer a:hover {
	text-decoration: underline;
}


.simplebar-mask { z-index: auto; }



/* 섹션 아이콘(sec01~07)은 index.css 의 nav-m0X.svg / nav-m0X-on.svg 매핑을 사용한다.
   (과거 sec01~04 를 옛 ico-nav-secNN.png 로 덮어쓰던 규칙 제거 — 새 SVG가 적용되도록) */
   
.btn-width {
	width: fit-content;
	padding: 0px 15px;
}
