@charset "UTF-8";

/* label + input 한 줄 배열 */
#app_site_detailModal .form-group-view,
#app_site_registerModal .form-group-view {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 12px;
}

#app_site_detailModal .form-label,
#app_site_registerModal .form-label {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

/* 비활성 select 화살표 숨김 */
#app_site_detailModal select,
#app_site_registerModal select:disabled {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
    cursor: default;
}

/* 모달 표시 (숨김 베이스는 공통 .modal 사용) */
#app_site_detailModal.show,
#app_site_registerModal.show {
    display: flex;
}

/* 모달 다이얼로그 */
.app_site-reg-dialog {
    max-width: 400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 모달 콘텐츠: 카드 세로 배열 */
#app_site_detailModal .modal-content,
#app_site_registerModal .modal-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 12px;
}

/* 모달 카드 (background는 공통 .modal__card 사용) */
#app_site_detailModal .modal__card,
#app_site_registerModal .modal__card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 18px;
}

/* 하단 카드: 남은 공간 채움 */
#app_site_detailModal .modal__card:last-child,
#app_site_registerModal .modal__card:last-child {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 사이트 패널 */
.app_site-reg-device-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.app_site-reg-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.app_site-reg-panel-header .stats--modal__title {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 15px;
}

/* 사이트명 검색 행 */
.app_site-reg-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-shrink: 0;
}
.app_site-reg-search-total {
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
}
.app_site-reg-search-total strong {
    color: #047bb6;
    font-weight: 700;
}
/* 공통 .search-box 기반 — 모달 컴팩트 크기·레이아웃만 오버라이드 */
.app_site-reg-search-row .search-box {
    flex: 1;
    width: auto;
    height: 36px;
}
.app_site-reg-search-row .search-box input {
    padding: 0 10px;
}
.app_site-reg-search-row .search-btn {
    width: 36px;
    padding: 0;
    border-left: 1px solid #d1d5db;
}
.app_site-reg-search-row .search-btn:hover { color: #047bb6; }

/* 사이트 목록 페이징 */
.app_site-reg-site-paging {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.app_site-reg-device-panel .form-tbl {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app_site-reg-device-panel .tbody-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.app_site-reg-device-panel .tbody-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
}
.app_site-reg-device-panel .tbody-scroll .simplebar-content::after {
    display: none;
}
#app_site_detailModal .tbody-scroll,
#app_site_registerModal .tbody-scroll {
    padding: 0 !important;
}
#app_site_detailModal .simplebar-content,
#app_site_registerModal .simplebar-content {
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

/* 등록/수정·상세 모달 - 목록 테이블 tr 높이·글자 크기 (텍스트 설정 모달과 동일) */
#app_site_registerModal .form-tbl th,
#app_site_registerModal .form-tbl td,
#app_site_detailModal .form-tbl th,
#app_site_detailModal .form-tbl td {
    padding: 7px 10px;
    font-size: 13px;
}

/* 호버/선택 */
#app_site .tbody-scroll table tbody tr { cursor: pointer; }
#app_site .tbody-scroll table tbody tr:hover { background-color: #f8f9fa; }
.app_site-site-item:hover       { background: #f0f9ff; cursor: pointer; }
.app_site-site-item.selected    { background: #eff6ff; }

/* 메인 테이블 */
#app_site .tbody-scroll {
    max-height: calc(100vh - 570px);
    min-height: 120px;
}