@charset "UTF-8";

/* =============================================
   3패널 레이아웃
   ============================================= */
.content_oper_layout {
    display: grid;
    grid-template-columns: 360px 1fr 360px;
    gap: 9px;
    height: calc((100vh - 230px) * 0.9);
    min-height: 450px;
}

/* =============================================
   공통 패널
   ============================================= */
.content_oper_panel {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.content_oper_panel__title {
    flex-shrink: 0;
    padding: 9px 13px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    background: #f4f6f8;
    letter-spacing: -0.01em;
}

.content_oper_panel__head {
    flex-shrink: 0;
    padding: 11px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: #fafbfc;
}

.content_oper_panel__body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.content_oper_scroll-wrap {
    height: 100%;
    overflow-y: auto;
}

.content_oper_panel__footer {
    flex-shrink: 0;
    padding: 7px 11px;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
    display: flex;
    justify-content: center;
    min-height: 38px;
    align-items: center;
}

/* =============================================
   우측 패널 — 상하 분할
   ============================================= */
.content_oper_panel--split {
    overflow: hidden;
}

.content_oper_panel__section--bottom {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.content_oper_panel__section--bottom .content_oper_panel__body {
    flex: 1;
    min-height: 0;
}

/* =============================================
   탭 필터
   ============================================= */
.content_oper_tab-filter {
    display: flex;
    gap: 5px;
}

.content_oper_tab-btn {
    flex: 1;
    min-width: 0;
    padding: 7px 5px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.content_oper_tab-btn:hover {
    background: #f0f1f3;
    border-color: #d1d5db;
}

.content_oper_tab-btn__label {
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1;
}

.content_oper_tab-btn__count {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    color: #374151;
}

.content_oper_tab-btn--set   .content_oper_tab-btn__count { color: #15803d; }
.content_oper_tab-btn--unset .content_oper_tab-btn__count { color: #b91c1c; }

.content_oper_tab-btn.active {
    background: #047bb6;
    border-color: #047bb6;
}
.content_oper_tab-btn.active .content_oper_tab-btn__label,
.content_oper_tab-btn.active .content_oper_tab-btn__count { color: #fff; }

.content_oper_tab-btn--set.active {
    background: #15803d;
    border-color: #15803d;
}

.content_oper_tab-btn--unset.active {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* =============================================
   검색박스 — 공통 .search-box 사용 + 패널 크기 보정
   ============================================= */
.content_oper_shared-search {
    padding: 7px 13px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

#content_oper .search-box {
    width: 100%;
    height: 34px;
}

/* =============================================
   좌측 — 텍스트 목록
   ============================================= */
.content_oper_text-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content_oper_text-list__empty {
    padding: 36px 14px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    list-style: none;
}

.content_oper_text-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.12s;
}

.content_oper_text-list__item:last-child { border-bottom: none; }

.content_oper_text-list__item:hover { background: #f9fafb; }

.content_oper_text-list__item.active {
    background: #eff6ff;
    border-left: 3px solid #047bb6;
    padding-left: 10px;
}

.content_oper_text-list__name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content_oper_text-list__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin-left: 8px;
}

.content_oper_text-list__site {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.content_oper_text-list__count {
    font-size: 13px;
    color: #6b7280;
    flex-shrink: 0;
}

/* =============================================
   가운데 — 지도
   ============================================= */
.content_oper_map-wrap {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.content_oper_map-wrap .content_oper_map {
    width: 100%;
    height: 100%;
}

/* 전역 reset 의 `canvas { max-width: 100% }` 가 HiDPI(노트북 등 DPR>1) 화면에서
   OpenLayers 캔버스를 강제 축소시켜 마커 위치가 어긋나고 줌 시 이동하는 문제 방지 */
.content_oper_map .ol-viewport canvas,
.content_oper_map canvas {
    max-width: none;
    max-height: none;
}

.content_oper_map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(245, 246, 248, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.content_oper_map-overlay span {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    padding: 0 18px;
}

/* 지도 마커 툴팁 */
.content_oper_map-tooltip {
    position: relative;
    background: #fff;
    color: #047bb6;
    border: 1px solid #d1e8f5;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    line-height: 1.4;
}

.content_oper_map-tooltip__arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-top-color: #d1e8f5;
}

.content_oper_map-tooltip__arrow::after {
    content: '';
    position: absolute;
    top: -9px;
    left: -6px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top-color: #fff;
}

/* =============================================
   우측 — 단말 목록
   ============================================= */
.content_oper_shared-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content_oper_shared-list__empty {
    padding: 27px 14px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    list-style: none;
}

.content_oper_shared-list__item {
    padding: 7px 13px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.content_oper_shared-list__item:last-child { border-bottom: none; }

.content_oper_shared-list__item:hover {
    background-color: #f8f9fa;
}

.content_oper_shared-list__item.active {
    background: #eff6ff;
    border-left: 3px solid #047bb6;
    padding-left: 10px;
}

.content_oper_shared-list__num {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    width: 16px;
    text-align: right;
}

.content_oper_shared-list__info {
    flex: 1;
    min-width: 0;
}

.content_oper_shared-list__name {
    display: flex;
    align-items: center;
    min-width: 0;
}

.content_oper_shared-list__station {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1d;
    white-space: nowrap;
}

.content_oper_shared-list__sep {
    flex-shrink: 0;
    color: #9ca3af;
    white-space: nowrap;
}

.content_oper_shared-list__install {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
