@charset "UTF-8";

/* =============================================
   등록/수정 모달 - modal-content 레이아웃
   ============================================= */
#content_set_editModal .modal-content,
#content_set_registerModal .modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    padding: 0;
}

/* =============================================
   요약 카드 (app-hist 공용 컴포넌트 오버라이드)
   - 전체 + 상태 카드를 동일 크기 카드로 한 줄에 나란히 배치
   ============================================= */
#content_set .app-hist-summary__body {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

#content_set .app-hist-status-card {
    flex: 1 1 0;
    min-width: 0;
}

/* 전체 카드 (흰색 배경 + 검은색 숫자) */
#content_set .app-hist-status-card--total {
    background: #ffffff;
}
#content_set .app-hist-status-card--total .app-hist-status-card__value strong {
    color: #111827;
}

/* =============================================
   content_set 공통
   ============================================= */
#content_set .tbody-scroll {
    max-height: calc(100vh - 570px);
    min-height: 120px;
    overflow: auto;
}

#content_set .tbody-scroll table tbody tr {
    cursor: pointer;
}

#content_set .tbody-scroll table tbody tr:hover {
    background-color: #f8f9fa;
}

#content_set #content_set_header_table,
#content_set #content_set_body_table {
    table-layout: fixed;
    width: 100%;
}

#content_set .tbl-td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================================
   표출현황 뱃지 — app_hist 공용 al-badge 사용
   ALL_OK        → al-badge al-badge--sm al-badge--success
   PARTIAL_ERROR → al-badge al-badge--sm al-badge--warn
   (기타 오류)   → al-badge al-badge--sm al-badge--danger
   ============================================= */

/* =============================================
   등록/수정 스텝 모달
   ============================================= */
.content_set_reg-dialog {
    width: 35%;
    max-width: none;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    /* transition: width 0.2s ease; */
}

.content_set_reg-dialog.content_set_reg-dialog--wide {
    width: 60%;
}

.content_set_reg-dialog .modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* 스텝 인디케이터 */
.content_set_reg-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.content_set_reg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.content_set_reg-step__circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d1d5db;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.content_set_reg-step__label {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    transition: color 0.2s;
}

.content_set_reg-step.active .content_set_reg-step__circle {
    background: #047bb6;
    color: #fff;
}

.content_set_reg-step.active .content_set_reg-step__label {
    color: #047bb6;
    font-weight: 600;
}

.content_set_reg-step.done .content_set_reg-step__circle {
    background: #93c5fd;
    color: #fff;
}

.content_set_reg-step.done .content_set_reg-step__label {
    color: #93c5fd;
}

.content_set_reg-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 8px 18px;
}


.content_set_reg-step-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.content_set_reg-step3-content {
    padding: 8px;
}

.content_set_reg-step-content > .modal-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content_set_reg-dialog .modal-section .section-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.content_set_reg-dialog .modal-section {
    background: #fff;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.content_set_reg-dialog .section-title {
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #047bb6;
    border-bottom: 1px solid #e5e7eb;
}

/* 전체선택 행 */
.content_set_select-all-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px 6px 2px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 4px;
}

.content_set_select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.content_set_select-all-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #047bb6;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.content_set_select-all-text {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.content_set_select-all-count {
    font-size: 12px;
    color: #047bb6;
    font-weight: 500;
}

/* 검색창 */
.content_set_search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    margin-bottom: 2px;
}

.content_set_search-total {
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
}

.content_set_search-total strong {
    color: #047bb6;
    font-weight: 700;
}

/* 공통 .search-box 기반 — 모달 컴팩트 크기·레이아웃만 오버라이드 */
.content_set_search-row .search-box {
    flex: 1;
    width: auto;
    height: 36px;
}
.content_set_search-row .search-box input {
    padding: 0 10px;
}
.content_set_search-row .search-btn {
    width: 36px;
    padding: 0;
    border-left: 1px solid #d1d5db;
}
.content_set_search-row .search-btn:hover { color: #047bb6; }

.content_set_reg-site-search-wrap {
    position: sticky;
    top: 5px;
    z-index: 1;
    background: #fff;
    padding-bottom: 8px;
    margin-bottom: 2px;
}

/* 공통 .search-box 기반 — sticky 래퍼 전폭 보정 */
.content_set_reg-site-search-wrap .search-box {
    width: 100%;
    height: 36px;
}
.content_set_reg-site-search-wrap .search-box input {
    padding: 0 10px;
}
.content_set_reg-site-search-wrap .search-btn {
    width: 36px;
    padding: 0;
    border-left: 1px solid #d1d5db;
}
.content_set_reg-site-search-wrap .search-btn:hover { color: #047bb6; }

/* 선택 리스트 */
.content_set_reg-select-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.content_set_reg-site-paging {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.content_set_reg-select-list__item {
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.content_set_reg-select-list__item:hover {
    background: #f0f9ff;
}

.content_set_reg-select-list__item.selected {
    background: #eff6ff;
}

.content_set_reg-select-list__name {
    font-size: 14px;
    color: #1d1d1d;
}

.content_set_station-item-cb {
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: none;
    cursor: default;
}

.content_set_reg-select-list__check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    order: -1;
    margin-right: 12px;
    transition: border-color 0.15s, background 0.15s;
}

.content_set_reg-select-list__item.selected .content_set_reg-select-list__check {
    background: #047bb6;
    border-color: #047bb6;
    box-shadow: inset 0 0 0 3px #fff;
}

.content_set_reg-select-list__empty {
    text-align: center;
    padding: 30px 0;
    color: #9ca3af;
    font-size: 14px;
    list-style: none;
}

/* 문구 아이템 */
.content_set_reg-text-item__info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.content_set_reg-text-item__name {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1d;
    padding-right: 12px;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content_set_reg-text-item__desc {
    flex: 1;
    font-size: 13px;
    color: #6b7280;
    padding-left: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

#content_set_reg_step_content_1 {
    padding: 10px;
}

#content_set_reg_step_content_2 {
    padding: 10px;
}
/* 스텝3 좌우 분할 레이아웃 */
.content_set_reg-step3-content {
    height: 100%;
    padding: 10px;
}

.content_set_reg-step3-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: 420px;
}

.content_set_reg-step3-left,
.content_set_reg-step3-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.content_set_reg-step3-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.content_set_reg-step3-panel .section-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.content_set_list-scroll {
    padding-right: 12px;
    overflow: visible;
}

/* 스텝3 우측 탭 바 */
.content_set_station-tab-bar {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    margin: -16px -16px 0;
    padding: 0 4px;
}

.content_set_station-tab {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}

.content_set_station-tab:hover { color: #047bb6; }

.content_set_station-tab.active {
    color: #047bb6;
    border-bottom-color: #047bb6;
    font-weight: 600;
}

.content_set_station-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: 10px;
}

.content_set_station-photo-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
    background: #f9fafb;
    border-radius: 4px;
    border: 1px dashed #e5e7eb;
    min-height: 200px;
}

/* 스텝3 지도 */
.content_set_reg-map-wrap {
    flex: 1;
    min-height: 0;
}

#content_set_registerModal #content_set_reg_map,
.content_set_reg-detail-map {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

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

.content_set_reg-dialog .round--btn {
    min-width: 100px;
    height: 40px;
}


/* =============================================
   상세 모달 레이아웃
   ============================================= */
#content_set_detailModal .modal-dialog {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#content_set_detailModal .modal-content { overflow-y: auto; }
#content_set_detailModal .stats--modal { display: block; }

#content_set_detailModal .stats--modal__inner {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

#content_set_detailModal .modal__card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 16px 20px 12px;
}

#content_set_detailModal .form-group-view {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

#content_set_detailModal .form-group-view.content-view { align-items: flex-start; }
#content_set_detailModal .form-group-view:last-child { margin-bottom: 0; }

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

#content_set_detailModal .form-value {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    font-size: 15px;
    color: #1d1d1d;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    word-break: break-word;
}

#content_set_detailModal .form-group-view.content-view .form-value {
    min-height: 66px;
    max-height: 90px;
    padding: 10px 12px;
    align-items: flex-start;
    white-space: pre-wrap;
    line-height: 1.6;
    overflow-y: auto;
}

#content_set_detailModal .round--btn {
    min-width: 100px;
    height: 36px;
}

/* 상세 모달 정류장 목록 섹션 */
.cs-detail-station-section {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: auto;
}

.cs-detail-station-header {
    padding: 10px 16px;
    background: #f5f6f8;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.cs-detail-station-scroll {
    max-height: calc(90vh - 420px);
    overflow: auto;
}

.cs-detail-station-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cs-detail-station-list li {
    padding: 14px 16px;
    font-size: 15px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.content_set_detail-station-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content_set_detail-station-name { flex: 1; }

.content_set_resend-btn {
    flex-shrink: 0;
    margin-left: 10px;
    padding: 7px 16px;
    font-size: 14px;
    color: #fff;
    background: #f59e0b;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    white-space: nowrap;
}

.content_set_resend-btn:hover { background: #d97706; }
.content_set_resend-btn:disabled { background: #d1d5db; cursor: not-allowed; }

.cs-detail-station-list li:last-child { border-bottom: none; }

.cs-detail-station-list .empty {
    color: #9ca3af;
    text-align: center;
    padding: 16px;
}

/* =============================================
   등록/수정 모달 - 목록 테이블 tr 높이·글자 크기
   ============================================= */
#content_set_registerModal .form-tbl th,
#content_set_registerModal .form-tbl td,
#content_set_editModal .form-tbl th,
#content_set_editModal .form-tbl td {
    padding: 7px 10px;
    font-size: 13px;
}

/* 정류장 단말 선택 스텝 - 테이블 크기 override */
#content_set_reg_step_content_3 .form-tbl th,
#content_set_reg_step_content_3 .form-tbl td,
#content_set_edit_step_content_2 .form-tbl th,
#content_set_edit_step_content_2 .form-tbl td {
    padding: 10px 10px;
    font-size: 14px;
}

/* =============================================
   등록/수정 모달 - 문구 목록 테이블 ellipsis
   ============================================= */
.content_set_text-table {
    table-layout: fixed;
    width: 100%;
}

.content_set_text-table td:nth-child(2),
.content_set_text-table td:nth-child(3) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 0;
}
