/* 사이트 공통 보정 스타일 */
body { font-family: "Source Sans 3", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", sans-serif; }
.table-sm th, .table-sm td { vertical-align: middle; }
.table thead th { white-space: nowrap; background: var(--bs-tertiary-bg); font-weight: 600; }
.table-list td { font-size: .875rem; }
.table-form th { width: 140px; background: var(--bs-tertiary-bg); font-weight: 600; white-space: nowrap; }
.search-card .form-label { font-weight: 600; font-size: .85rem; margin-bottom: .25rem; }
.radio-grid { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.radio-grid .form-check { margin: 0; }
.text-truncate-200 { max-width: 200px; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.cid-box { font-family: Consolas, monospace; font-size: .8rem; }
/* 본문 배경 흰색 (사이드바 메뉴는 AdminLTE 기본 배경 사용) */
body, .app-wrapper, .app-main, .app-content, .app-content-header, .app-footer { background-color: #fff !important; }
.app-footer { border-top: 1px solid var(--bs-border-color); }
.card { box-shadow: none; border: 1px solid var(--bs-border-color); }
.popup-body { background: #fff; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #fff; }
.login-page .card { box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.08) !important; }
.login-box { width: 420px; max-width: 94vw; }
.small-box .inner h3 { font-size: 1.9rem; }
.cursor-pointer { cursor: pointer; }

/* ---- server.dasasys.kr ---- */
.detail-box { background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: .375rem; padding: .75rem; font-size: .85rem; white-space: pre-wrap; word-break: break-all; max-height: 320px; overflow: auto; }
.traffic-chart .bar { fill: #3b82f6; }
.traffic-chart g:hover .bar { fill: #1d4ed8; }
.traffic-chart .grid { stroke: #e5e7eb; stroke-width: 1; vector-effect: non-scaling-stroke; }
.traffic-chart .lbl { font-size: 20px; fill: #6b7280; }
.small-box .small-box-footer { position: relative; z-index: 2; }
.modal-popup-sm { max-width: 460px; }

/* 화면 안 알림창 (App.alert / App.confirm) - 바깥을 눌러도 닫히지 않음 */
.app-dialog-backdrop { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 1rem; animation: appDlgFade .12s ease-out; }
.app-dialog { width: 440px; max-width: 100%; max-height: 90vh; margin: 0; border: 0; }
.app-dialog .card-header { background: #fff; }
.app-dialog .card-body { overflow: auto; }
.app-dialog-msg { white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.6; }
.app-dialog-wide .app-dialog { width: 620px; }
@keyframes appDlgFade { from { opacity: 0; } to { opacity: 1; } }
.kind-badge { cursor: pointer; }
.kind-badge:hover { filter: brightness(.92); text-decoration: underline; }

/* 현재 상태: 점검 항목 타일, 작은 추이 그래프 */
.status-tile { cursor: pointer; background: #fff; transition: box-shadow .12s, transform .12s; }
.status-tile:hover, .status-tile:focus { box-shadow: 0 .25rem .75rem rgba(0,0,0,.08); transform: translateY(-1px); outline: none; }
.status-tile.tile-ok { border-left: 4px solid #198754 !important; }
.status-tile.tile-bad { border-left: 4px solid #dc3545 !important; background: #fff5f5; }
svg.spark rect { fill: #6ea8fe; }
tr:hover svg.spark rect { fill: #0d6efd; }
