/* Shared v2 list/page styles for progressively migrated screens. */
@import url("v2-file.css"); /* 파일 선택 입력 컴포넌트 */
@font-face {
    font-family: 'Noto Sans KR';
    src: url('../../../fonts/NotoSansKR-Regular.woff') format('woff'),
         url('../../../fonts/NotoSansKR-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Noto Sans KR';
    src: url('../../../fonts/NotoSansKR-Medium.woff') format('woff'),
         url('../../../fonts/NotoSansKR-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Noto Sans KR';
    src: url('../../../fonts/NotoSansKR-Bold.woff') format('woff'),
         url('../../../fonts/NotoSansKR-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --v2-bg-soft: #f6f8fb;
    --v2-line: #d8dee9;
    --v2-line-soft: #edf0f5;
    --v2-line-strong: #c4ccd8;
    --v2-text: #334155;
    --v2-text-soft: #555;
    --v2-text-muted: #888;
    --v2-primary: #1f5fbf;
    --v2-primary-hover: #1750a8;
    --v2-warn: #c2790b;
    --v2-warn-bg: #fdf0d9;
    /* 2026.08.19 추가: --v2-warn 과 같은 짝(글자색 + 배경색) 구성.
       ok     - 정상/완료 상태 표시 (예: GeoServer 레이어 "발행됨" 배지)
       danger - 되돌리기 어려운 동작의 경고와 버튼 (예: 연쇄 삭제 확인)
       지금까진 화면마다 각자 초록/빨강을 찍어 쓰고 있었는데, 값이 조금씩 달라
       같은 의미가 화면마다 다른 색으로 보였다. 여기로 모은다. */
    --v2-ok: #1a7f5a;
    --v2-ok-bg: #e6f4ee;
    --v2-danger: #b4232a;
    --v2-danger-bg: #fdeaea;
    /* primary 의 옅은 배경. 선택된 행이나 정보성 배지에 쓴다. */
    --v2-primary-soft: #eaf1fb;
    --v2-white: #fff;
    --v2-radius: 6px;
    --v2-radius-sm: 4px;
    --v2-font-sm: 15px;
    --v2-font-xs: 14px;
    --v2-font-title: 18px;
    --v2-font-section: 15px;
}

/* 폰트는 전체 v2 화면(List/Detail/Regist) 공통이라 여기 한 곳에서만 관리한다.
   margin/배경/box-sizing은 화면마다 달라서 각 화면 로컬 <style>에 남겨둔다. */
.evt-wrap,
.evt-wrap div,
.evt-wrap table,
.evt-wrap thead,
.evt-wrap tbody,
.evt-wrap tfoot,
.evt-wrap tr,
.evt-wrap th,
.evt-wrap td,
.evt-wrap form,
.evt-wrap fieldset,
.evt-wrap p,
.evt-wrap h1,
.evt-wrap h2,
.evt-wrap h3,
.evt-wrap h4,
.evt-wrap h5,
.evt-wrap h6,
.evt-wrap label,
.evt-wrap span,
.evt-wrap a,
.evt-wrap input,
.evt-wrap textarea,
.evt-wrap select,
.evt-wrap button,
.v2-page,
.v2-page div,
.v2-page table,
.v2-page thead,
.v2-page tbody,
.v2-page tfoot,
.v2-page tr,
.v2-page th,
.v2-page td,
.v2-page form,
.v2-page fieldset,
.v2-page p,
.v2-page h1,
.v2-page h2,
.v2-page h3,
.v2-page h4,
.v2-page h5,
.v2-page h6,
.v2-page label,
.v2-page span,
.v2-page a,
.v2-page input,
.v2-page textarea,
.v2-page select,
.v2-page button,
.detail-page,
.detail-page div,
.detail-page table,
.detail-page thead,
.detail-page tbody,
.detail-page tfoot,
.detail-page tr,
.detail-page th,
.detail-page td,
.detail-page form,
.detail-page fieldset,
.detail-page p,
.detail-page h1,
.detail-page h2,
.detail-page h3,
.detail-page h4,
.detail-page h5,
.detail-page h6,
.detail-page label,
.detail-page span,
.detail-page a,
.detail-page input,
.detail-page textarea,
.detail-page select,
.detail-page button,
.v2-detail-page,
.v2-detail-page div,
.v2-detail-page table,
.v2-detail-page thead,
.v2-detail-page tbody,
.v2-detail-page tfoot,
.v2-detail-page tr,
.v2-detail-page th,
.v2-detail-page td,
.v2-detail-page form,
.v2-detail-page fieldset,
.v2-detail-page p,
.v2-detail-page h1,
.v2-detail-page h2,
.v2-detail-page h3,
.v2-detail-page h4,
.v2-detail-page h5,
.v2-detail-page h6,
.v2-detail-page label,
.v2-detail-page span,
.v2-detail-page a,
.v2-detail-page input,
.v2-detail-page textarea,
.v2-detail-page select,
.v2-detail-page button,
/* 2026.09.28 추가 : 게시판 댓글.
   댓글은 c:import 로 들어오는데 그 자리가 .evt-wrap 바깥이라 위 규칙을 못 받는다.
   게다가 붙는 화면이 둘이고(일반 게시판 / 블로그형) 블로그형에는 .evt-wrap 자체가 없다.
   화면 쪽 래퍼에 기대면 어디에 붙느냐에 따라 글꼴이 달라지므로,
   댓글이 자기 글꼴을 스스로 갖도록 여기에 나란히 둔다. */
.cmt-section,
.cmt-section div,
.cmt-section ul,
.cmt-section li,
.cmt-section form,
.cmt-section p,
.cmt-section h3,
.cmt-section label,
.cmt-section span,
.cmt-section strong,
.cmt-section a,
.cmt-section textarea,
.cmt-section button {
    font-family: 'Noto Sans KR', '맑은 고딕', 'Malgun Gothic', sans-serif;
}

.evt-wrap,
.v2-page {
    padding: 0 4px;
}

.search-card,
.v2-search-card {
    background: var(--v2-bg-soft);
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius);
    padding: 18px 20px 14px;
    margin-bottom: 18px;
}

.filter-row,
.v2-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label,
.v2-label {
    font-size: var(--v2-font-sm);
    color: var(--v2-text-soft);
    white-space: nowrap;
}

.filter-select,
.v2-select {
    padding: 5px 8px;
    border: 1px solid var(--v2-line-strong);
    border-radius: var(--v2-radius-sm);
    font-size: var(--v2-font-sm);
    min-height: 34px;
}

.filter-text,
.v2-input {
    padding: 5px 8px;
    border: 1px solid var(--v2-line-strong);
    border-radius: var(--v2-radius-sm);
    font-size: var(--v2-font-sm);
    min-height: 34px;
    width: 180px;
    box-sizing: border-box;
}

.filter-spacer,
.v2-filter-spacer {
    flex: 1;
}


.btn-reset,
.v2-btn--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 16px;
    border: 1px solid var(--v2-line-strong);
    border-radius: var(--v2-radius-sm);
    background: var(--v2-white);
    font-size: var(--v2-font-sm);
    cursor: pointer;
    color: var(--v2-text);
    min-height: 34px;
    min-width: 68px;
    box-sizing: border-box;
    text-decoration: none;
    line-height: 1;
}

.btn-reset:hover,
.v2-btn--secondary:hover {
    background: #f0f0f0;
}

.btn-search,
.btn-add,
.v2-btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 20px;
    border: none;
    border-radius: var(--v2-radius-sm);
    background: var(--v2-primary);
    color: var(--v2-white);
    font-size: var(--v2-font-sm);
    /* 2026.07.29 수정: com.css의 레거시 `button{font-weight:600}`을 <button>만 우연히
       물려받고 <a class="btn-add">는 못 받아서 등록/조회 버튼 글씨 굵기가 달라 보이던 문제.
       태그 종류(a/button)와 무관하게 항상 같도록 여기서 명시. */
    font-weight: 600;
    cursor: pointer;
    min-height: 34px;
    min-width: 68px;
    box-sizing: border-box;
    text-decoration: none;
    line-height: 1;
}

.btn-search:hover,
.btn-add:hover,
.v2-btn--primary:hover {
    background: var(--v2-primary-hover);
    /* 2026.07.29 수정: com.css의 전역 `a:hover{color:#000}`가 <a class="btn-add">의 흰 글자색을
       덮어써서 호버 시에만 등록 버튼 글씨가 어두워지던 문제. <button>은 a:hover가 안 걸려
       원래 멀쩡했음 — 여기서 명시해서 태그 종류와 무관하게 통일. */
    color: var(--v2-white);
}

.btn-add {
    padding: 5px 16px;
}

/* 2026.09.16 추가: 목록 우측 상단(.result-bar-right)에 놓는 보조 실행 버튼.
   .btn-search 와 같은 파랑 채움 외형을 쓰되, 조회/등록 버튼보다 한 단 낮고(28px)
   글자가 길어 폭은 넉넉하게 잡는다. 앞에 화살표 아이콘(.btn-ico)을 붙일 수 있다. */
.btn-bar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    /* com.css 의 레거시 `button{margin-left:4px}` 가 새어 들어와 간격이 어긋나므로 명시적으로 0. */
    margin: 0;
    border: none;
    border-radius: var(--v2-radius-sm);
    background: var(--v2-primary);
    color: var(--v2-white);
    font-size: var(--v2-font-xs);
    font-weight: 600;
    cursor: pointer;
    min-height: 28px;
    min-width: 112px;
    box-sizing: border-box;
    text-decoration: none;
    line-height: 1;
}

.btn-bar-action:hover {
    background: var(--v2-primary-hover);
    color: var(--v2-white);
}

/* 아이콘은 글자 크기와 무관하게 고정. flex:none 이 없으면 버튼 폭이 좁을 때 찌그러진다. */
.btn-bar-action .btn-ico {
    width: 14px;
    height: 14px;
    flex: none;
}

.page-size-select {
    padding: 4px 6px;
    border: 1px solid var(--v2-line-strong);
    border-radius: var(--v2-radius-sm);
    font-size: var(--v2-font-sm);
    min-height: 34px;
}

.result-bar,
.v2-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.result-bar-left,
.total-cnt,
.v2-result-count {
    font-size: var(--v2-font-sm);
    color: var(--v2-text);
    font-weight: 600;
}

/* "총 <span>N</span>건" 패턴에서 숫자와 단위(건) 사이 간격 */
.result-bar-left span {
    margin-right: 0.25em;
}

.result-bar-left span,
.total-cnt strong,
.v2-result-count strong {
    color: var(--v2-primary);
}

.result-bar-right,
.v2-result-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-table,
.v2-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.data-table th,
.v2-table th {
    height: 42px;
    background: var(--v2-bg-soft);
    color: var(--v2-text);
    font-size: var(--v2-font-sm);
    font-weight: 600;
    border-top: 1px solid var(--v2-line);
    border-bottom: 1px solid var(--v2-line);
    text-align: center;
    padding: 0 6px;
}

/* 2026.09.22 추가: 눌러서 정렬하는 표 머리글.
   누를 수 있다는 걸 커서와 호버로만 알린다 — 머리글 글자색·굵기를 바꾸면
   정렬 가능한 컬럼과 아닌 컬럼이 서로 다른 항목처럼 보인다.
   드래그로 글자가 선택되면 연달아 누를 때 방해가 되므로 선택은 막는다. */
.data-table th.sortable,
.v2-table th.sortable {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.data-table th.sortable:hover,
.v2-table th.sortable:hover {
    background: var(--v2-line);
}

/* 현재 정렬 기준인 컬럼에만 붙는 방향 표시(▲/▼).
   글자 옆에 붙으므로 본문보다 작게 두고, 머리글 높이를 밀지 않도록 line-height 를 1 로 둔다. */
.data-table th.sortable .sort-ico,
.v2-table th.sortable .sort-ico {
    margin-left: 3px;
    font-size: 10px;
    line-height: 1;
    vertical-align: middle;
}

.data-table td,
.v2-table td {
    height: 44px;
    text-align: center;
    font-size: var(--v2-font-sm);
    border-bottom: 1px solid var(--v2-line-soft);
    padding: 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table tr:hover td,
.v2-table tr:hover td {
    background: var(--v2-bg-soft);
}

.data-table td.left,
.v2-table .is-left {
    text-align: left;
}

.data-table td.center,
.v2-table .is-center {
    text-align: center;
}

.empty-row td,
.v2-table .is-empty td {
    color: var(--v2-text-muted);
    height: 80px;
}

/* 2026.09.16 추가: 표 안에서 켬/끔을 보여주는 토글 스위치.
   마크업은 라벨로 감싼 체크박스 하나다. 체크박스 자체는 감추고 트랙/손잡이만 그린다.

     <label class="v2-toggle">
         <input type="checkbox" checked>
         <span class="v2-toggle-track"></span>
     </label>

   ※ com.css 의 레거시 input 규칙(테두리·폭)이 새어 들어오지 않도록
      감춘 체크박스에 크기/테두리를 직접 0 으로 못박는다. */
.v2-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}

.v2-toggle input {
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
}

.v2-toggle-track {
    position: relative;
    display: block;
    width: 38px;
    height: 20px;
    flex: none;
    border-radius: 999px;
    background: var(--v2-line-strong);
    transition: background .15s ease;
}

/* 손잡이 */
.v2-toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--v2-white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    transition: transform .15s ease;
}

.v2-toggle input:checked + .v2-toggle-track {
    background: var(--v2-primary);
}

.v2-toggle input:checked + .v2-toggle-track::after {
    transform: translateX(18px);
}

.v2-toggle input:focus-visible + .v2-toggle-track {
    outline: 2px solid var(--v2-primary);
    outline-offset: 2px;
}

/* 아직 동작을 붙이지 않은 자리표시용. 눌리긴 해도 저장되지 않는다는 뜻. */
.v2-toggle input:disabled + .v2-toggle-track {
    opacity: .5;
    cursor: not-allowed;
}

.badge,
.v2-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: var(--v2-font-xs);
    font-weight: 600;
    /* 2026.11.12 : 배지는 짧은 꼬리표라 줄이 바뀌면 안 된다. flex 줄 안에서 옆 글이 길면
       배지가 눌려 "벡/터" 처럼 꺾였다(정사영상 등록 > 저장소 등록 모달). 예전 화면 전용 .gs-badge 에는
       flex:none 이 있었는데 이 규칙으로 승격하면서 빠졌다. nowrap 이면 글자 폭 아래로 줄어들지 않는다. */
    white-space: nowrap;
}

.badge-bell,
.v2-badge--bell {
    color: #c05621;
    background: #fff3e0;
    border: 1px solid #f6ad55;
}

.badge-cctv,
.v2-badge--cctv {
    color: #2c5282;
    background: #ebf4ff;
    border: 1px solid #90cdf4;
}

.badge-wth,
.v2-badge--weather {
    color: #276749;
    background: #e6fffa;
    border: 1px solid #81e6d9;
}

/* 2026.08.26 추가 : GeoServer 자료 종류(래스터/벡터).
   badge-cctv / badge-bell / badge-wth 와 같은 성격의 "분류" 배지라 같은 자리에 둔다.
   색은 새로 만들지 않고 이미 쓰는 값(주황=badge-deploying, 파랑=badge-cctv)을 그대로 가져다 쓴다. */
.badge-raster {
    color: #a8631a;
    background: #fdf4e8;
    border: 1px solid #e8bf8e;
}

.badge-vector {
    color: #2c5282;
    background: #ebf4ff;
    border: 1px solid #90cdf4;
}

.badge-critical,
.v2-badge--critical {
    color: #c0392b;
    background: #fde8e8;
    border: 1px solid #f1948a;
}

.badge-major,
.v2-badge--major {
    color: #ca6f1e;
    background: #fef3cd;
    border: 1px solid #f0b27a;
}

.badge-minor,
.v2-badge--minor {
    color: #1a5276;
    background: #ebf5fb;
    border: 1px solid #7fb3d3;
}

.badge-high,
.v2-badge--high {
    color: #c53030;
    background: #fff5f5;
    border: 1px solid #fc8181;
}

.badge-mid,
.v2-badge--mid {
    color: #c05621;
    background: #fffaf0;
    border: 1px solid #f6ad55;
}

.badge-low,
.v2-badge--low {
    color: #276749;
    background: #f0fff4;
    border: 1px solid #68d391;
}

.badge-on,
.badge-use,
.v2-badge--use {
    color: #1a5276;
    background: #ebf5fb;
    border: 1px solid #7fb3d3;
}

.badge-off,
.badge-unuse,
.v2-badge--unuse {
    color: #717d7e;
    background: #f2f3f4;
    border: 1px solid #bfc9ca;
}

/* 2026.08.06 추가 : 진행 중(작업이 아직 끝나지 않음) 상태.
   3D 타일셋 배포처럼 수 분~수십 분 걸리는 작업에 쓴다.
   완료(파랑)·중지(회색)·실패(빨강) 어디에도 속하지 않아 주황 계열로 구분한다. */
.badge-deploying,
.v2-badge--progress {
    color: #a8631a;
    background: #fdf4e8;
    border: 1px solid #e8bf8e;
}

.badge-week {
    color: #2c5282;
    background: #ebf4ff;
    border: 1px solid #90cdf4;
}

.badge-month {
    color: #276749;
    background: #e6fffa;
    border: 1px solid #81e6d9;
}

.badge-quarter {
    color: #c05621;
    background: #fff3e0;
    border: 1px solid #f6ad55;
}

.badge-year,
.badge-chain {   /* 2026.11.19 : 이벤트 설정 CHAIN(CCTV+기상 복합) 규칙. 장비 배지(파랑·주황·청록)와 겹치지 않는 보라를 같이 쓴다 */
    color: #6b46c1;
    background: #f3e8ff;
    border: 1px solid #c4b5fd;
}

/* 2026.09.22 추가 : AI 리포트 유형 '사건(INCIDENT)'.
   주간/월간/분기/연간은 정해진 주기에 나오는 정기 리포트고, 사건은 일이 터졌을 때 나온다.
   주기 4종과 성격이 달라 그 색들(파랑·청록·주황·보라)과 겹치지 않는 빨강 계열로 둔다. */
.badge-incident {
    color: #9b2c2c;
    background: #fff5f5;
    border: 1px solid #feb2b2;
}

.btn-tbl,
.v2-btn--table {
    padding: 3px 10px;
    border: 1px solid var(--v2-line-strong);
    border-radius: var(--v2-radius-sm);
    background: var(--v2-white);
    font-size: var(--v2-font-xs);
    cursor: pointer;
    color: var(--v2-text);
    /* 2026.08.26 추가: com.css 의 레거시 button{font-weight:600} 을 <button> 만 우연히 물려받고
       <a class="btn-tbl"> 는 못 받아서, 같은 표 안에서 링크 버튼만 글씨가 얇아 보였다.
       (btn-add 에서 이미 같은 문제를 겪어 그때도 같은 방식으로 막았다)
       태그 종류와 무관하게 같도록 여기서 명시한다. 기존 <button> 들의 굵기 그대로 600 이다. */
    font-weight: 600;
}

.btn-tbl:hover,
.v2-btn--table:hover {
    background: #e8eef7;
}

/* 2026.08.06 추가 : 아직 실행할 수 없는 액션(예: 파일이 생성되지 않은 리포트의 다운로드).
   hover 규칙보다 뒤에 두어 disabled 일 때는 hover 배경이 뜨지 않도록 한다. */
.btn-tbl:disabled,
.v2-btn--table:disabled,
.btn-tbl:disabled:hover,
.v2-btn--table:disabled:hover {
    background: var(--v2-bg-soft, #f4f6fa);
    border-color: var(--v2-line, #dde3ec);
    color: var(--v2-text-muted, #97a0ae);
    cursor: default;
}

.btn-tbl.del,
.v2-btn--danger {
    color: #c0392b;
}

.btn-tbl.del:hover,
.v2-btn--danger:hover {
    background: #fde8e8;
    border-color: #f1948a;
}

/* 2026.08.03 추가 : 배포/배포중지는 수정·삭제와 성격이 다른 액션이라 색으로 구분한다.
   배포=서비스 시작(초록), 배포중지=서비스 내림(주황). */
.btn-tbl.deploy {
    color: #1c7a4f;
    border-color: #9ed3b8;
}

.btn-tbl.deploy:hover {
    background: #eaf7f0;
    border-color: #6dbf98;
}

.btn-tbl.undeploy {
    color: #a8631a;
    border-color: #e8bf8e;
}

.btn-tbl.undeploy:hover {
    background: #fdf4e8;
    border-color: #d9a05c;
}

/* GIS 관리화면(tileset/orthophoto/terrain) 표 안 관리버튼 — 4색 구분(중요도) 유지 */
.btn-mini {
    min-height: 22px;
    padding: 4px 7px;
    margin: 1px;
    border: 1px solid transparent;
    font-size: var(--v2-font-xs);
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    box-sizing: border-box;
}

.btn-mini.btn-blue {
    border-color: #4d83c7;
    background: #4d8bd6;
    color: #fff;
}

.btn-mini.btn-gray {
    border-color: #b8c0cc;
    background: #f4f6f9;
    color: #333;
}

.btn-mini.btn-red {
    border-color: #d96565;
    background: #e96d6d;
    color: #fff;
}

.btn-mini.btn-line {
    border-color: #b8c6d8;
    background: #fff;
    color: #2f5f98;
}

.btn-mini:disabled {
    cursor: default;
    opacity: 0.65;
}

.pagination,
.v2-pagination {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.pagination ul,
.v2-pagination ul {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── List 화면 검색줄 공통 헬퍼(manage-*) ──
   예전엔 화면마다 로컬 <style>로 거의 동일한 내용이 복붙돼있던 것을 여기로 모음.
   페이지별 로컬 스타일에는 그 화면만의 고유한 규칙만 남긴다. */
.manage-page-title,
.v2-page-title {
    margin-bottom: 18px;
}

/* 2026.07.29 추가: 타이틀 아래 한 줄 설명(예: EgovArticleRegist.jsp "제목, 본문, 게시기간 및
   첨부파일을 입력합니다."). 지금까진 쓰던 화면이 없어서 신규로 공용 승격. */
.manage-page-desc,
.v2-page-desc {
    margin: 4px 0 18px;
    color: #64748b;
    font-size: var(--v2-font-xs);
    line-height: 1.5;
}

/* ── 레거시 .board h1/h2 오버라이드(com.css는 그대로 두고 com-v2.css에서만 승격) ──
   font-size 16px -> 18px, .board h1의 tit_icon.png 배경은 2026-07-13 전역 폰트 통일 이후
   고정 좌표(left 0px)로는 줄 높이가 달라져 텍스트 기준선과 안 맞아 아이콘이 떠보이는 문제 보정.
   background-position은 longhand 하나만 선언해 com.css의 image/repeat는 그대로 유지한다. */
.board h1, .board h2 { font-size: var(--v2-font-title); }
.board h1 { background-position: left center; }

/* ── 모니터링 대시보드 상단 타이틀 레이아웃 ──
   컨테이너/송수신/서버자원 3개 화면 로컬 <style>에 복붙돼있던 걸 공유로 옮김.
   h1 자체 스타일은 2026-07-14에 제거 — 위 .board h1/h2 18px로 다른 화면과 통일. */
.srm-title-wrap { display: flex; align-items: center; gap: 8px; }

.manage-search-row,
.v2-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.manage-search-group,
.manage-action-group,
.v2-search-group,
.v2-action-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.manage-link,
.manage-link-button {
    color: #334155;
    text-decoration: none;
}
.manage-link-button {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
}
.manage-link:hover,
.manage-link-button:hover {
    color: #1f5fbf;
    text-decoration: underline;
}

.manage-label,
.manage-keyword-label,
.manage-count {
    font-size: var(--v2-font-sm);
    color: #555;
    white-space: nowrap;
}
.manage-count strong {
    color: #1f5fbf;
}

.manage-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.manage-table-select {
    width: 100%;
    max-width: 180px;
}

.manage-readonly {
    background: #f8fafc;
}

.manage-date-range {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.manage-date-range input[type="text"] {
    width: 120px;
}

.ui-datepicker-trigger {
    vertical-align: middle;
}

.badge-running,
.badge-progress {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #f59e0b;
}

/* ── 상세/수정 화면: 전체 너비 페이지 (EgovCctvDetail2.jsp 디자인을 표준으로 승격) ── */
/* html/body 리셋 중 margin/배경/box-sizing은 화면마다 달라서 여기 전역으로
   넣지 않는다 — 이 디자인을 쓰는 각 상세 화면 JSP의 <head> 안 <style>에 그대로
   남겨둔다 (EgovCctvDetail2.jsp 참고). 폰트는 위쪽 전역 body 규칙으로 통일했다. */
.detail-page,
.v2-detail-page {
    min-height: 100vh;
    padding: 24px 28px 40px;
    box-sizing: border-box; /* 없으면 100vh + 패딩 64px 가 되어 내용이 짧아도 세로 스크롤이 생긴다 */
}

/* 2026.09.01 추가.
   상세 카드 뒤에 다른 섹션(하위 목록 등)이 이어지는 화면에 쓴다.
   기본형은 화면 전체를 차지하는 단독 상세용이라 min-height:100vh 가 걸려 있어,
   카드가 작아도 뷰포트 높이만큼 늘어나 뒤 섹션이 저 아래로 밀린다.
   사용 : class="v2-detail-page v2-detail-page--section" */
.v2-detail-page--section,
.detail-page--section {
    min-height: 0;
    padding-bottom: 4px;
}

.detail-topbar,
.v2-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.detail-title-wrap,
.v2-detail-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-title-mark,
.v2-detail-title-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2457bd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.detail-topbar h1,
.v2-detail-topbar h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2f49;
    letter-spacing: -0.4px;
}

/* 등록/상세 화면 상단 타이틀을 목록화면(.manage-page-title, 파란 원형 마커 대신
   tit_icon.png 아이콘)과 통일하고 싶을 때 h1에 opt-in으로 붙인다.
   .detail-topbar h1(위 규칙, 파란 원형 마커+20px)은 아직 안 바꾼 화면들을 위해 그대로 둔다. */
.detail-topbar h1.manage-page-title,
.v2-detail-topbar h1.manage-page-title {
    margin: 0;
    padding: 0 0 1px 25px;
    background: url(../../../images/egovframework/com/cmm/icon/tit_icon.png) no-repeat left center;
    font-size: var(--v2-font-title);
    font-weight: 600;
    color: #333;
    letter-spacing: normal;
}

/* 모니터링 대시보드류 화면(컨테이너/송수신/서버자원 등)의 접기·펼치기 셰브런과
   건수 뱃지 — 3개 화면에서 반복돼서 공유로 승격함(2026-07-13). */
.chevron-icon,
.v2-chevron-icon {
    flex: none;
    color: #163f85;
    transition: transform .15s ease;
}
.chevron-icon.is-collapsed,
.v2-chevron-icon.is-collapsed {
    transform: rotate(-90deg);
}

.count-badge,
.v2-count-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #E3ECFB;
    color: #1f5fbf;
    font-size: var(--v2-font-xs);
    font-weight: 700;
    vertical-align: middle;
}

/* 위 셰브런·뱃지를 감싸는 카드 컨테이너 (2026-08-13 승격).
   서버자원모니터링의 .srm-list-section 이 원형이고, 위험지역관리 목록이 같은 형태를
   쓰게 되면서 공유로 올렸다. 셰브런/뱃지만 공유고 카드는 화면마다 복붙돼 있던 상태였다.

   구조
     .v2-list-section            흰 카드
       .v2-list-header           클릭 영역(셰브런 + 제목 + 건수뱃지). 접기를 안 쓰면 cursor 만 빼면 된다
         .v2-list-title-wrap
       .v2-list-body             내용. is-collapsed 를 붙이면 접힌다
   접기 동작은 화면 JS 가 .is-collapsed 를 토글한다(셰브런에도 같이 붙인다). */
.v2-list-section {
    background: #FFFFFF;
    border: 1px solid #DCE6F2;
    border-radius: 8px;
    margin-bottom: 18px;
}

.v2-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
}

.v2-list-header.is-toggleable {
    cursor: pointer;
}

.v2-list-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v2-list-header h2,
.v2-list-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #2050ac;
}

.v2-list-body {
    padding: 0 20px 20px;
    /* 표가 카드보다 넓어지면 카드 안에서 가로로 스크롤한다.
       이게 없으면 표의 min-width 가 페이지 전체를 밀어낸다(위험지역 목록에서 실제로 겪음). */
    overflow-x: auto;
}

.v2-list-body.is-collapsed {
    display: none;
}

.detail-top-actions,
.v2-detail-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-btn,
.v2-detail-btn {
    /* 2026.09.01 버그수정: box-sizing 을 선언하지 않아 태그에 따라 폭이 달랐다.
       <button> 은 브라우저 기본이 border-box 라 76px 로 나오는데, <a class="detail-btn"> 은
       content-box 여서 76 + padding 36 + border 2 = 114px 로 혼자 넓었다.
       com-v2.css 에는 전역 box-sizing 리셋이 없으므로(.v2-authcard-page 스코프에만 있다)
       여기서 직접 건다. */
    box-sizing: border-box;
    min-width: 76px;
    height: 36px;
    padding: 0 18px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #42526a;
    font-size: var(--v2-font-sm);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.detail-btn:hover,
.v2-detail-btn:hover { background: #f5f7fb; border-color: #aebbd0; }
.detail-btn--delete,
.v2-detail-btn--delete { border-color: #ef8e8e; color: #d83b3b; }
.detail-btn--delete:hover,
.v2-detail-btn--delete:hover { background: #fff5f5; border-color: #e36464; }
.detail-btn--save,
.v2-detail-btn--save { background: #2457bd; border-color: #2457bd; color: #fff; }
.detail-btn--save:hover,
.v2-detail-btn--save:hover { background: #1c49a3; border-color: #1c49a3; }

/* 2026.08.03 추가 : 배포/배포중지 (목록의 .btn-tbl.deploy / .btn-tbl.undeploy 와 같은 색 체계) */
.detail-btn--deploy { border-color: #7cc4a2; color: #1c7a4f; }
.detail-btn--deploy:hover { background: #f1fbf6; border-color: #4fae85; }
.detail-btn--undeploy { border-color: #e8bf8e; color: #a8631a; }
.detail-btn--undeploy:hover { background: #fdf6ec; border-color: #d9a05c; }
/* 보조 이동 버튼 (목록 검색줄의 [로그] 등) */
.detail-btn--muted { background: #EDF2FC; border-color: #C7D7F5; color: #2457bd; }
.detail-btn--muted:hover { background: #E2EBFA; border-color: #b3c8ef; }

.detail-card,
.v2-detail-card {
    background: #fff;
    border: 1px solid #d7e0ec;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(31, 47, 73, .03);
    overflow: hidden;
}

.detail-form,
.v2-detail-form { padding: 0 22px 20px; }

.form-section,
.v2-form-section {
    padding: 20px 0 18px;
    border-bottom: 1px solid #e8edf4;
}
.form-section:last-child,
.v2-form-section:last-child { border-bottom: 0; }

.form-section-title,
.v2-form-section-title {
    position: relative;
    margin: 0 0 14px;
    padding-left: 13px;
    font-size: var(--v2-font-section);
    font-weight: 700;
    color: #2457bd;
    letter-spacing: -0.25px;
}
.form-section-title:before,
.v2-form-section-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 3px;
    height: 17px;
    border-radius: 2px;
    background: #2457bd;
}

/* 상위 섹션(form-section-title) 안에 중첩되는 하위 소제목.
   포인트라인은 그대로 두고 글씨 크기만 줄여서 "하위 개념"임을 표시한다. */
.form-section-title--sub,
.v2-form-section-title--sub {
    font-size: var(--v2-font-sm);
    margin-top: 20px;
}
.form-section-title--sub:before,
.v2-form-section-title--sub:before {
    height: 13px;
    top: 3px;
}

/* 2026.09.04 추가 — 상세 폼 섹션 접기/펴기.

   목록 카드(.v2-list-section)는 카드 하나가 곧 접기 단위지만, 상세 화면은 카드 한 장 안에
   섹션이 구분선으로만 나뉘어 있다. 그래서 카드로 쪼개지 않고 제목 줄만 클릭 영역으로 만든다.
   접는 동작은 v2toggle.js 가 붙인다(화면마다 스크립트를 두지 않는다).

   사용 :
     <h2 class="form-section-title is-toggleable" data-toggle-target="sec-basic">
       <svg class="chevron-icon" ...>...</svg>기본 정보
     </h2>
     <div class="form-grid form-section-body" id="sec-basic"> ... </div>

   본문이 .form-grid 하나뿐이면 래퍼를 따로 두지 말고 그 div 에 클래스를 같이 붙인다.
   .form-section-body.is-collapsed 가 .form-grid 보다 특정성이 높아 display 를 이긴다. */
.form-section-title.is-toggleable,
.v2-form-section-title.is-toggleable {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* 제목 왼쪽 파란 막대(:before)는 position:absolute 라 flex 흐름에서 빠진다.
   그래서 셰브런을 넣어도 막대와 자리를 다투지 않는다. */
.form-section-title.is-toggleable .chevron-icon,
.v2-form-section-title.is-toggleable .chevron-icon {
    color: #2457bd;
}

/* 접히면 제목만 남는다. 아래 여백까지 남겨두면 빈칸이 성기게 보인다. */
.form-section-title.is-toggleable.is-collapsed,
.v2-form-section-title.is-toggleable.is-collapsed {
    margin-bottom: 0;
}

.form-section-body.is-collapsed,
.v2-form-section-body.is-collapsed {
    display: none;
}

.form-grid,
.v2-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 34px;
    row-gap: 12px;
}

.form-grid--4col,
.v2-form-grid--4col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-row,
.v2-form-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

/* 2026.08.18 추가: 그리드 자식은 기본이 min-width:auto 라 내용보다 작아지지 않는다.
   그래서 트랙이 minmax(0, 1fr) 이어도 자식(입력창을 감싼 div 등)이 버티며 넘쳤다.
   메뉴관리처럼 "입력창 + 검색 링크"가 한 칸에 들어가는 행에서 실제로 삐져나왔다. */
.form-row > *,
.v2-form-row > * {
    min-width: 0;
}
.form-row label,
.v2-form-row label {
    color: #4d5c72;
    font-size: var(--v2-font-sm);
    font-weight: 600;
    white-space: nowrap;
}

.req { margin-left: 3px; color: #ef4444; }

.form-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),
.form-row select,
.form-row textarea,
.v2-form-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),
.v2-form-row select,
.v2-form-row textarea,
/* 2026.09.15 추가 : 표 안의 select(.manage-table-select)도 폼 입력과 같은 외형을 쓴다.
   폭만 잡혀 있고 테두리·패딩·글꼴이 없어 브라우저 기본 select 로 나왔다.
   폭은 이 규칙이 아니라 .manage-table-select 자신의 width/max-width 로 정하므로
   아래 max-width(420px) 목록에는 넣지 않는다. */
.manage-table-select {
    width: 100%;
    padding: 0 12px;
    border: 1px solid #cbd6e3;
    border-radius: 4px;
    background: #fff;
    color: #44536a;
    font-family: inherit;
    font-size: var(--v2-font-sm);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),
.form-row select,
.v2-form-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),
.v2-form-row select,
.manage-table-select {
    min-height: 34px;
}
.form-row textarea,
.v2-form-row textarea {
    min-height: 34px;
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 1.4;
}

/* 2026.08.04 추가 : 뱃지를 form-row의 값 칸에 직접 넣는 경우(상태 표시 등).
   .form-row 가 그리드라 뱃지가 그리드 항목이 되어 칸 전체 폭으로 늘어난다.
   내용 크기만 차지하도록 시작점에 정렬한다. */
.form-row > .badge,
.v2-form-row > .badge {
    justify-self: start;
}

/* 2026.08.04 추가 : 입력창 아래에 붙는 보조 설명문 */
.form-help {
    margin: 6px 0 0;
    color: #78889e;
    font-size: var(--v2-font-xs);
    line-height: 1.5;
}

/* 1열 전환 이후 입력창이 페이지 전체 폭으로 늘어나 보이던 문제 —
   기본은 .form-value(읽기전용 표시)와 동일한 420px으로 제한하고,
   주소/URL처럼 실제로 넓어야 하는 필드만 .form-row--wide(640px)로 옵트인해서 넓힌다.

   2026.08.18 수정: 420px 고정 -> min(420px, 100%).
   그리드 트랙은 minmax(0, 1fr) 이라 안 넘치지만 그 안의 입력창은 별개여서,
   컨테이너가 420px 보다 좁아지면 입력창이 카드 밖으로 삐져나갔다
   (메뉴관리 .menu-form-card 에서 발견). 넓은 화면에서는 이전과 완전히 같고,
   좁아질 때만 컨테이너에 맞춰 줄어든다.

   box-sizing 도 함께 건다. 페이지마다 스코프 리셋이 있기도 없기도 해서
   (메뉴관리 화면에는 없다) 패딩·테두리가 폭에 더해지며 넘치는 경우가 있었다.
   size="30" / cols="45" / style="width:190px" 같이 마크업이 폭을 직접 박아둔
   레거시 화면도 이 규칙으로 함께 잡힌다. */
.form-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.form-row select,
.form-row textarea,
.v2-form-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.v2-form-row select,
.v2-form-row textarea,
.manage-table-select {
    box-sizing: border-box;
}
.form-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.form-row select,
.v2-form-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.v2-form-row select {
    max-width: min(420px, 100%);
}
.form-row textarea,
.v2-form-row textarea {
    max-width: min(640px, 100%);
}
/* 2026.10.27 추가 : 넓은 입력칸(경로·URL·클래스명·파라미터처럼 값이 긴 필드).
   긴 값용 폭은 textarea 와 같은 640px 에서 멈춘다. 기본(420px) / --wide(640px) 두 단계.
   2026.10.28 : 카드 전체 폭까지 늘리던 .form-row--full 은 넓은 모니터에서 오류처럼 보여
   전 화면에서 --wide 또는 기본으로 바꾸고 규칙을 삭제했다. */
.form-row--wide input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.form-row--wide select,
.v2-form-row--wide input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.v2-form-row--wide select,
.form-row--wide .form-value,
.v2-form-row--wide .v2-form-value {
    max-width: min(640px, 100%);
}

.form-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]):hover,
.form-row select:hover,
.form-row textarea:hover,
.v2-form-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]):hover,
.v2-form-row select:hover,
.v2-form-row textarea:hover,
.manage-table-select:hover { border-color: #aebdd0; }
.form-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]):focus,
.form-row select:focus,
.form-row textarea:focus,
.v2-form-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]):focus,
.v2-form-row select:focus,
.v2-form-row textarea:focus,
.manage-table-select:focus {
    border-color: #4b72cf;
    box-shadow: 0 0 0 3px rgba(75, 114, 207, .10);
}

.form-value,
.v2-form-value {
    min-height: 34px;
    max-width: 420px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f4f6fa;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #40516a;
    font-size: var(--v2-font-sm);
    line-height: 1.5;
    word-break: break-all;
    box-sizing: border-box;
}

.form-row--readonly .form-value,
.v2-form-row--readonly .v2-form-value {
    color: #33445e;
    font-weight: 500;
}

.registration-section,
.v2-registration-section {
    margin: 0 -22px -20px;
    padding: 18px 22px 20px;
    background: #f7f9fc;
    border-top: 1px solid #e3e9f1;
}

.registration-section .form-value,
.v2-registration-section .v2-form-value {
    color: #4b5d75;
}

@media (max-width: 980px) {
    .detail-page,
    .v2-detail-page { padding: 18px; }
    .form-grid,
    .v2-form-grid,
    .form-grid--4col,
    .v2-form-grid--4col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .detail-topbar,
    .v2-detail-topbar { align-items: flex-start; flex-direction: column; }
    .detail-top-actions,
    .v2-detail-top-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
    .form-row,
    .v2-form-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ── 2026.07.29 게시글 읽기 화면 공용(EgovArticleDetail.jsp 등) ──
   .v2-detail-page/.form-grid 계열은 admin이 짧은 필드 여러 개를 훑어보는 "레코드 조회"를
   전제로 한다(라벨:값 쌍을 나란히 배치). 게시판 글 상세는 성격이 달라서 — 제목이 헤드라인,
   작성자/작성일/조회수는 byline, 본문은 길고 줄바꿈이 살아있는 한 덩어리 텍스트, 그 아래로
   댓글 스레드가 자연스럽게 이어진다 — 별도 컴포넌트로 승격한다. .board.evt-wrap(목록화면과
   같은 wrapper) 안에서 쓰는 걸 전제로 한다.
   아래는 사용자가 목업(EgovArticleDetail_mockup.jsp)으로 직접 지정한 디자인을 그대로
   승격한 것 — 색상/치수는 기존 --v2-* 토큰으로 임의 치환하지 않고 목업 값 그대로 옮김.
   .article-detail-page 스코프 안에서만 .detail-btn 등 공용 클래스명을 이 페이지 전용
   외형으로 재정의하므로, 반드시 최상위 wrapper에 class="board evt-wrap article-detail-page"
   를 같이 붙여서 써야 한다. */
.article-detail-page {
    color: #1f2937;
}

/* 2026.07.29 수정: 등록화면(.article-form-page)은 h1 아래 .manage-page-desc 한 줄이 있어서
   카드와 자연스럽게 떨어져 보이는데, 이 화면은 desc가 없어서 공용 .manage-page-title의
   margin-bottom(18px)만으로는 h1과 카드가 너무 붙어 보임 — 여기서만 여백을 더 준다. */
.article-detail-page > h1.manage-page-title {
    margin-bottom: 28px;
}

.article-detail-page *,
.article-detail-page *::before,
.article-detail-page *::after {
    box-sizing: border-box;
}

/* 2026.07.29 수정: 브레드크럼+커스텀 타이틀 대신 다른 화면과 동일한 .manage-page-title
   h1 하나만 쓰기로 변경(위치/디자인을 다른 목록·상세화면과 통일). 아래 4개 규칙은 더 이상
   쓰이지 않지만 삭제하지 않고 주석으로 남긴다.
.article-detail-page .detail-page-head {
    margin: 0 0 14px;
}

.article-detail-page .detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #6b778c;
    font-size: 12px;
}

.article-detail-page .detail-breadcrumb svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.article-detail-page .detail-page-title {
    margin: 0;
    color: #172033;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.article-detail-page .detail-page-desc {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}
*/

.article-detail-page .article-detail-card {
    overflow: hidden;
    width: 100%;
    border: 1px solid #cbd8e6;
    border-radius: 6px;
    background: #fff;
}

.article-detail-page .article-view {
    padding: 28px 34px 0;
}

.article-detail-page .article-view-head {
    padding-bottom: 22px;
    border-bottom: 1px solid #d8e2ef;
}

.article-detail-page .article-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

/* 2026.07.29 수정: 제목 앞 원형 문서 아이콘 제거("너무 AI틱함"). 마크업에서도 span 삭제했고
   아래 규칙은 더 이상 쓰이지 않지만 삭제하지 않고 주석으로 남긴다.
.article-detail-page .article-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #2f63bf;
    color: #fff;
}

.article-detail-page .article-title-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
*/

.article-detail-page .article-title-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.article-detail-page .article-view-title {
    overflow-wrap: anywhere;
    margin: 0;
    color: #172033;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.article-detail-page .article-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #9fb8e8;
    border-radius: 4px;
    background: #eef5ff;
    color: #2457a6;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.article-detail-page .article-view-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 22px;
    color: #334155;
    font-size: 13px;
}

.article-detail-page .article-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 24px;
    border-right: 1px solid #d8e2ef;
}

.article-detail-page .article-meta-item:first-child {
    padding-left: 0;
}

.article-detail-page .article-meta-item:last-child {
    border-right: 0;
}

.article-detail-page .article-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #718096;
}

.article-detail-page .article-meta-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.article-detail-page .article-meta-label {
    color: #334155;
    font-weight: 700;
    white-space: nowrap;
}

.article-detail-page .article-meta-value {
    overflow: hidden;
    min-width: 0;
    color: #111827;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-detail-page .article-info-list {
    margin: 20px 0 0;
    border: 1px solid #d8e2ef;
    border-radius: 4px;
}

.article-detail-page .article-info-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 48px;
    border-bottom: 1px solid #d8e2ef;
}

.article-detail-page .article-info-row:last-child {
    border-bottom: 0;
}

.article-detail-page .article-info-row dt,
.article-detail-page .article-info-row dd {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 12px 18px;
    font-size: 13px;
    line-height: 1.45;
}

.article-detail-page .article-info-row dt {
    background: #f7fafd;
    color: #111827;
    font-weight: 700;
}

.article-detail-page .article-info-row dd {
    min-width: 0;
    color: #263244;
}

.article-detail-page .article-view-body {
    min-height: 136px;
    margin-top: 20px;
    padding: 26px 28px;
    border: 1px solid #d8e2ef;
    border-radius: 4px;
    background: #fff;
    color: #1f2937;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.85;
}

/* 2026.07.29 수정: nttCn은 사용자가 작성한 원본 HTML(<p>, <span> 등)이 그대로 렌더링되는데,
   원본 글쓰기 화면에서 붙은 폰트크기/폰트가 제각각이라 위 컨테이너 font-size만으로는
   가독성 문제가 해결 안 됨 → 하위 요소 전부 컨테이너 크기/폰트로 강제 통일 */
.article-detail-page .article-view-body * {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.article-detail-page .article-view-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 34px 28px;
}

.article-detail-page .detail-action-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-detail-page .detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid #c9d6e6;
    border-radius: 4px;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.article-detail-page .detail-btn:hover,
.article-detail-page .detail-btn:focus {
    background: #f4f8fd;
}

.article-detail-page .detail-btn--delete {
    border-color: #ff9b9b;
    color: #d71920;
}

.article-detail-page .detail-btn--save {
    border-color: #2f63bf;
    background: #2f63bf;
    color: #fff;
}

.article-detail-page .detail-btn--save:hover,
.article-detail-page .detail-btn--save:focus {
    background: #2457a6;
}

.article-detail-page form[id^="form"] {
    display: none;
}

@media (max-width: 1024px) {
    .article-detail-page .article-view {
        padding: 22px 22px 0;
    }

    .article-detail-page .article-title-row,
    .article-detail-page .article-title-main {
        align-items: flex-start;
    }

    .article-detail-page .article-title-main {
        flex-direction: column;
        gap: 8px;
    }

    .article-detail-page .article-view-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .article-detail-page .article-meta-item,
    .article-detail-page .article-meta-item:first-child {
        padding: 0;
        border-right: 0;
    }

    .article-detail-page .article-info-row {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .article-detail-page .article-view-actions {
        align-items: stretch;
        flex-direction: column;
        padding: 18px 22px 24px;
    }

    .article-detail-page .detail-action-group {
        justify-content: flex-start;
    }
}

/* ── 2026.07.29 게시글 등록/수정 화면 공용(EgovArticleRegist.jsp 등) ──
   사용자가 만든 목업(EgovArticleRegist_mockup.jsp) 레이아웃(섹션 3개로 나눈 카드형 폼,
   CKEditor 박스, 게시기간 date range, 체크박스 그룹)은 그대로 승격하되, 타이틀/섹션제목/버튼은
   이미 있는 공용 클래스(.manage-page-title/.manage-page-desc, .form-section-title, .detail-btn)를
   그대로 쓰고 여기서는 재정의하지 않는다 — wrapper도 .article-detail-page 없이
   .board.evt-wrap.article-form-page 하나만 쓴다. */
.article-form-page * ,
.article-form-page *::before,
.article-form-page *::after {
    box-sizing: border-box;
}

.article-form-page .article-form-card {
    overflow: hidden;
    width: 100%;
    border: 1px solid #cbd8e6;
    border-radius: 6px;
    background: #fff;
}

.article-form-page .article-form-section {
    padding: 0 24px 22px;
    border-bottom: 1px solid #d8e2ef;
}

.article-form-page .article-form-section:first-child {
    padding-top: 22px;
}

.article-form-page .article-form-section:last-of-type {
    border-bottom: 0;
}

.article-form-page .article-form-grid {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    border: 1px solid #d8e2ef;
    border-top: 0;
}

.article-form-page .article-form-row {
    display: contents;
}

.article-form-page .article-form-label,
.article-form-page .article-form-field {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 10px 16px;
    border-top: 1px solid #d8e2ef;
}

.article-form-page .article-form-label {
    background: #f7fafd;
    color: #111827;
    font-size: var(--v2-font-xs);
    font-weight: 700;
}

.article-form-page .article-form-field {
    min-width: 0;
    background: #fff;
    color: #263244;
    font-size: var(--v2-font-xs);
}

.article-form-page .article-form-inline {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
}

.article-form-page .article-title-wrap {
    width: min(100%, 820px);
    min-width: 0;
}

.article-form-page .article-title-input {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #c9d1dc;
    border-radius: 3px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: var(--v2-font-sm);
}

.article-form-page .article-title-input:focus,
.article-form-page .article-date-input:focus {
    border-color: #2f63bf;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(47, 99, 191, 0.14);
}

.article-form-page .article-check-group {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.article-form-page .article-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    color: #263244;
    font-size: var(--v2-font-xs);
    font-weight: 600;
    white-space: nowrap;
}

.article-form-page .article-check input {
    margin: 0;
}

.article-form-page .required {
    color: #d71920;
}

.article-form-page .article-editor-shell {
    margin-top: 14px;
    border: 1px solid #d8e2ef;
    border-radius: 4px;
    background: #fff;
}

.article-form-page .article-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 0 16px;
    border-bottom: 1px solid #d8e2ef;
    background: #f7fafd;
}

.article-form-page .article-editor-head strong {
    color: #174f8a;
    font-size: var(--v2-font-sm);
    font-weight: 700;
}

.article-form-page .article-editor-help {
    color: #64748b;
    font-size: var(--v2-font-xs);
}

.article-form-page .article-editor-body {
    padding: 14px;
}

.article-form-page .article-editor-body textarea {
    width: 100%;
    min-height: 320px;
    border: 1px solid #c9d1dc;
}

.article-form-page .article-editor-body .cke {
    border-color: #c9d1dc;
    border-radius: 3px;
}

.article-form-page .article-date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-form-page .article-date-input {
    width: 122px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #c9d1dc;
    border-radius: 3px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: var(--v2-font-sm);
}

.article-form-page .article-date-range img.ui-datepicker-trigger {
    margin-left: -4px;
    vertical-align: middle;
}

.article-form-page .article-file-field {
    display: block;
    width: 100%;
}

.article-form-page #egovComFileList {
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
}

.article-form-page .error {
    display: block;
    margin-top: 6px;
    color: #d71920;
    font-size: 12px;
}

/* 버튼 자체는 공용 .detail-btn/.detail-btn--save를 그대로 쓰고, 여기서는 하단 액션바
   레이아웃(정렬/여백)만 보정한다. */
.article-form-page .article-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 24px;
    border-top: 1px solid #d8e2ef;
    background: #fff;
}

.article-form-page .article-action-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1024px) {
    .article-form-page .article-form-section {
        padding-right: 18px;
        padding-left: 18px;
    }

    .article-form-page .article-form-grid {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .article-form-page .article-form-inline {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .article-form-page .article-form-actions {
        align-items: stretch;
        flex-direction: column;
        padding-right: 18px;
        padding-left: 18px;
    }
}

/* ── 2026.07.28 로그인 전(비인증) 화면 공용: 아이디/비밀번호 찾기, 새 비밀번호 설정, 결과 화면 ──
   기존에는 EgovIdPasswordSearch.jsp / EgovNewPasswordSet.jsp 두 곳에 거의 동일한 "glass card"
   스타일이 <style> 블록으로 각각 복붙되어 있었다. 여기 .v2-authcard-page 스코프로 승격해서
   한 곳에서 관리하고, EgovIdPasswordResult.jsp(기존 com.css .boxType1/.box/.error 계열)도
   같은 톤으로 옮긴다.
   .v2-detail-page 계열(관리화면, --v2-primary 플랫 블루)과는 톤을 의도적으로 분리한다 —
   로그인 전 화면은 그라데이션/글래스모피즘을 쓰는 별도 "제품 첫인상" 성격이라, 색상 토큰도
   전역 :root가 아니라 .v2-authcard-page 스코프 안에서만 도는 --authcard-* 변수로 선언한다.
   폰트도 전역 'Noto Sans KR' 대신 이 스코프 안에서만 'Outfit'을 쓴다.

   2026.07.28 버그 수정: 원래 각 화면 <style>에 있던 `*, *::before, *::after { box-sizing:
   border-box; margin:0; padding:0; }` 전역 리셋을 승격 과정에서 빠뜨려서, 이 리셋에 기대고 있던
   .v2-authcard-input(width:100%+padding) 등이 콘텐츠 박스 모델 때문에 폭이 넘치고, <p>/<h1>
   기본 마진이 섞여 레이아웃이 흐트러지는 문제가 있었다. 전역이 아니라 이 스코프 안에서만 리셋한다. */
.v2-authcard-page,
.v2-authcard-page *,
.v2-authcard-page *::before,
.v2-authcard-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.v2-authcard-page {
    --authcard-blue-dark:  #1a4fa0;
    --authcard-blue-mid:   #2563eb;
    --authcard-blue-light: #3b82f6;
    --authcard-blue-pale:  #60a5fa;
    --authcard-white:      #ffffff;
    --authcard-gray-50:    #f8fafc;
    --authcard-gray-100:   #f1f5f9;
    --authcard-gray-200:   #e2e8f0;
    --authcard-gray-400:   #94a3b8;
    --authcard-gray-600:   #475569;
    --authcard-gray-800:   #1e293b;
    --authcard-input-bg:   #f0f4ff;
    --authcard-radius-sm:  6px;
    --authcard-radius-md:  12px;
    --authcard-radius-lg:  24px;

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    font-family: 'Outfit', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(96,165,250,0.25) 0%, transparent 30%),
        radial-gradient(circle at bottom right, rgba(37,99,235,0.25) 0%, transparent 28%),
        linear-gradient(135deg, #dbeafe 0%, #eff6ff 40%, #f8fafc 100%);
}

/* 카드 바깥 폭 컨테이너. 기본은 단일 카드(새 비밀번호 설정/결과화면), 아이디/비밀번호 찾기처럼
   2열(아이디 찾기 | 비밀번호 찾기)로 나란히 두는 화면은 --wide 수정자를 추가로 붙인다. */
.v2-authcard-shell {
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v2-authcard-shell--wide {
    max-width: 1100px;
}
/* 2026.07.29: 로그인 화면 카드를 상사 피드백대로 줄였다가("58%→42%, 80vh→620px") 실제로
   보니 예전 크기가 낫다는 피드백을 받아 원래 크기(max-width 1400px)로 되돌린다.
   .v2-authcard-shell--wide(1100px, 아이디/비밀번호 찾기 화면과 공유)는 그대로 두고
   로그인 전용 폭 수정자를 별도로 둔다. */
.v2-authcard-shell--login {
    max-width: 1400px;
}

.v2-authcard {
    width: 100%;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.16),
        0 8px 24px rgba(37, 99, 235, 0.08);
}

.v2-authcard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255,255,255,0.78);
}

.v2-authcard-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.v2-authcard-logo-icon {
    width: 36px;
    height: 36px;
}

.v2-authcard-logo-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--authcard-gray-800);
    text-transform: uppercase;
}

.v2-authcard-back {
    font-size: 13px;
    font-weight: 600;
    color: var(--authcard-blue-mid);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.v2-authcard-back:hover {
    text-decoration: underline;
}

/* 기본(단일 카드) 본문. 패딩만 준다. */
.v2-authcard-body {
    padding: 40px;
    background: rgba(255, 255, 255, 0.78);
}

/* 아이디/비밀번호 찾기처럼 좌우 2열로 나눠 쓸 때의 본문. */
.v2-authcard-body--split {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0;
    padding: 40px 35px;
    background: rgba(255, 255, 255, 0.78);
}
.v2-authcard-body--split > div {
    background: transparent;
    padding: 0 24px;
}
.v2-authcard-body--split > div:last-child {
    padding-right: 6px;
}

.v2-authcard-divider {
    width: 1px;
    background: var(--authcard-gray-200);
    margin: 0;
}

.v2-authcard-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--authcard-gray-800);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.v2-authcard-desc {
    font-size: 13px;
    color: var(--authcard-gray-400);
    margin-bottom: 32px;
}

/* 2026.07.28 추가: EgovIdPasswordResult.jsp처럼 타이틀이 아니라 동적 결과 메시지(성공/실패
   안내문)가 화면의 핵심 전달사항인 경우를 위한 클래스. .v2-authcard-desc(보조 설명문, 13px 옅은
   회색)를 그대로 쓰면 정작 중요한 문구가 제일 작게 보여서 별도로 분리했다. */
.v2-authcard-result-message {
    font-size: 16px;
    font-weight: 600;
    color: var(--authcard-gray-800);
    line-height: 1.6;
    margin-bottom: 28px;
    /* 2026.07.29: 컨트롤러에서 resultInfo 문자열에 실제 개행문자(\n)를 넣으면 그대로 줄바꿈되게
       한다. <c:out>은 개행문자는 이스케이프하지 않으므로(<,>,& 등만 이스케이프) 안전하게 동작. */
    white-space: pre-line;
}

/* 결과 화면처럼 폼 없이 타이틀/메시지/버튼만 있는 카드는 가운데 정렬이 자연스럽다.
   검색/설정 폼 화면(.v2-authcard-body, .v2-authcard-body--split)은 좌측 정렬을 유지해야 하므로
   전역이 아니라 이 수정자 클래스를 추가로 붙였을 때만 가운데 정렬되게 한다. */
.v2-authcard-body--center {
    text-align: center;
}

/* 버튼이 여러 개 세로로 나열될 때(EgovIdPasswordResult.jsp) 인라인 style 대신 쓰는 간격 규칙. */
.v2-authcard-btn + .v2-authcard-btn {
    margin-top: 12px;
}

.v2-authcard-field-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
}

.v2-authcard-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--authcard-gray-600);
    margin-bottom: 7px;
    display: block;
}

.v2-authcard-input {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: var(--authcard-gray-800);
    background: var(--authcard-input-bg);
    border: 1.5px solid transparent;
    border-radius: var(--authcard-radius-md);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.v2-authcard-input:focus {
    border-color: var(--authcard-blue-light);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
    background: var(--authcard-white);
}
.v2-authcard-input::placeholder {
    color: var(--authcard-gray-400);
}
select.v2-authcard-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

/* 새 비밀번호 설정 화면의 정책 안내문(8~20자, 조합 규칙 등) */
.v2-authcard-hint {
    font-size: 12px;
    color: var(--authcard-gray-400);
    margin-top: 6px;
    line-height: 1.5;
}

.v2-authcard-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    border-radius: var(--authcard-radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}
.v2-authcard-error.visible {
    display: block;
}

.v2-authcard-btn {
    width: 100%;
    padding: 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--authcard-white);
    background: linear-gradient(90deg, var(--authcard-blue-mid) 0%, var(--authcard-blue-light) 100%);
    border: none;
    border-radius: var(--authcard-radius-md);
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
    margin-top: 8px;
    /* 2026.07.28: EgovIdPasswordResult.jsp에서 <a>(주/보조 버튼 링크)에도 이 클래스를 그대로
       쓰기 때문에, <button> 기본값에 기대지 않고 명시적으로 지정한다. */
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.v2-authcard-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(37,99,235,0.45);
}
.v2-authcard-btn:active {
    transform: translateY(0);
}

/* 2026.07.28 추가: 결과 화면(EgovIdPasswordResult.jsp)처럼 주 동작(파란 버튼)과
   부 동작(로그인으로 돌아가기 등)을 시각적으로 구분해야 할 때 쓰는 보조 버튼.
   상사 피드백: "두 버튼 모두 파란색으로 만들지 않는 것이 좋다" — 흰 배경 + 테두리로 낮춘다. */
.v2-authcard-btn--secondary {
    width: 100%;
    padding: 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--authcard-blue-mid);
    background: var(--authcard-white);
    border: 1.5px solid var(--authcard-gray-200);
    border-radius: var(--authcard-radius-md);
    cursor: pointer;
    transition: background .2s, border-color .2s;
    margin-top: 8px;
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.v2-authcard-btn--secondary:hover {
    background: var(--authcard-gray-50);
    border-color: var(--authcard-blue-pale);
}
.v2-authcard-btn + .v2-authcard-btn,
.v2-authcard-btn + .v2-authcard-btn--secondary,
.v2-authcard-btn--secondary + .v2-authcard-btn,
.v2-authcard-btn--secondary + .v2-authcard-btn--secondary {
    margin-top: 12px;
}

/* 2026.07.28 추가: 결과 화면 성공/실패 상태를 한눈에 구분하기 위한 아이콘 원.
   상사 피드백: "실패인지 성공인지 시각적으로 바로 구분되지 않는다." */
.v2-authcard-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.v2-authcard-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.v2-authcard-icon--success {
    background: #dcfce7;
}
.v2-authcard-icon--success svg {
    stroke: #16a34a;
}
.v2-authcard-icon--fail {
    background: #fee2e2;
}
.v2-authcard-icon--fail svg {
    stroke: #dc2626;
}
/* 2026.10.19 추가: 아이디 안내 메일 발송 안내(성공·실패를 밝히지 않는 중립 안내) */
.v2-authcard-icon--mail {
    background: #dbeafe;
}
.v2-authcard-icon--mail svg {
    stroke: #2563eb;
}

/* 2026.10.19 추가: 비밀번호 찾기 인증번호 입력 화면(EgovVerifyCode.jsp) */
.v2-authcard-sent {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 22px;
    word-break: break-all;
}
.v2-authcard-input--code {
    letter-spacing: 8px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}
.v2-authcard-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--authcard-gray-600);
    margin-top: 8px;
}
.v2-authcard-timer b {
    color: #dc2626;
    font-variant-numeric: tabular-nums;
}
.v2-authcard-linkbtn {
    background: none;
    border: 0;
    color: var(--authcard-blue-mid);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.v2-authcard-linkbtn:disabled {
    color: var(--authcard-gray-400);
    cursor: default;
}

/* 2026.07.28 추가: 새 비밀번호 설정 화면의 비밀번호 규칙을 문장이 아니라 체크리스트로 보여주고,
   입력하는 동안 조건 충족 여부에 따라 회색→초록색으로 바뀌게 한다(JS에서 .is-met 토글).
   상사 피드백: "규칙 문장이 길어서 한눈에 이해하기 어렵다", "충족 여부를 알 수 없다". */
.v2-authcard-checklist {
    list-style: none;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.v2-authcard-checklist-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--authcard-gray-400);
    transition: color .15s;
}
.v2-authcard-checklist-item::before {
    content: '✓';
    font-size: 12px;
    line-height: 1;
    color: var(--authcard-gray-400);
    transition: color .15s;
}
.v2-authcard-checklist-item.is-met {
    color: #16a34a;
}
.v2-authcard-checklist-item.is-met::before {
    color: #16a34a;
}

/* 2026.07.28 추가: 비밀번호 입력창 오른쪽에 표시/숨기기(눈 모양) 토글을 얹기 위한 래퍼.
   상사 피드백: "비밀번호 표시/숨기기 버튼이 없다." */
.v2-authcard-input-wrap {
    position: relative;
}
.v2-authcard-input-wrap .v2-authcard-input {
    padding-right: 44px;
}
.v2-authcard-input-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--authcard-gray-400);
}
.v2-authcard-input-toggle:hover {
    color: var(--authcard-gray-600);
}
.v2-authcard-input-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 2026.07.28 수정: 아이디/비밀번호 찾기 화면(EgovIdPasswordSearch.jsp)의 좌우 두 폼이 입력창
   개수가 달라 버튼 높이가 어긋나 보이던 문제. 상사 피드백 "방법 A" 적용 — 각 열을 세로 flex로
   만들고 버튼에 margin-top:auto를 줘서 두 버튼이 같은 아래쪽 기준선에 맞춰지게 한다. */
.v2-authcard-body--split > div {
    display: flex;
    flex-direction: column;
}
.v2-authcard-body--split > div > form {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.v2-authcard-body--split > div > form > .v2-authcard-btn {
    margin-top: auto;
}

/* ── 2026.07.28 추가: 로그인 화면(EgovLoginUsrnew.jsp) 좌(브랜드)/우(폼) 2단 카드.
   기존에는 이 화면 전용 <style>에 .left-panel/.right-panel 등으로 따로 있었는데,
   .v2-authcard-* 계열과 로고/입력창/버튼/에러 클래스가 사실상 동일해서 여기로 승격하고
   레이아웃 전용 클래스만 새로 추가했다.
   상사 피드백: "왼쪽 브랜드 영역이 너무 넓다", "카드가 전체적으로 다소 크다" → 왼쪽 폭을
   58%→42%로 줄이고, 카드 높이를 80vh 고정 대신 640px 안팎으로 줄였다. ── */
.v2-authcard--login {
    display: flex;
    min-height: 80vh;
}

.v2-authcard-login-left {
    position: relative;
    width: 58%;
    min-height: 80vh;
    background: linear-gradient(145deg, var(--authcard-blue-dark) 0%, var(--authcard-blue-mid) 40%, var(--authcard-blue-light) 75%, var(--authcard-blue-pale) 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
}
.v2-authcard-login-left::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.v2-authcard-login-left::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: 40px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.v2-authcard-login-dotgrid {
    position: absolute;
    top: 24px;
    left: 24px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 9px;
}
.v2-authcard-login-dotgrid-br {
    position: absolute;
    bottom: 32px;
    right: 32px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 9px;
    opacity: 0.5;
}
.v2-authcard-login-dotgrid span,
.v2-authcard-login-dotgrid-br span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    display: block;
}

.v2-authcard-login-content {
    position: relative;
    z-index: 2;
}
.v2-authcard-portal-title {
    color: var(--authcard-white);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.v2-authcard-login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.78);
    min-height: 80vh;
}

.v2-authcard-form-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 44px;
}
.v2-authcard-form-card {
    width: 100%;
    max-width: 380px;
}
.v2-authcard-form-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--authcard-gray-800);
    letter-spacing: -0.6px;
    margin-bottom: 24px;
}

.v2-authcard-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.v2-authcard-save-user {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--authcard-gray-600);
    user-select: none;
}
.v2-authcard-save-user input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--authcard-blue-mid);
    cursor: pointer;
}
.v2-authcard-forget-link {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--authcard-blue-mid);
    text-decoration: none;
}
.v2-authcard-forget-link:hover {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .v2-authcard--login,
    .v2-authcard-login-left,
    .v2-authcard-login-right {
        min-height: 84vh;
    }
    .v2-authcard-portal-title {
        font-size: 44px;
    }
}

@media (max-width: 860px) {
    .v2-authcard-page { padding: 16px; }
    .v2-authcard-header { padding: 20px 24px; }
    .v2-authcard-body--split {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }
    .v2-authcard-divider {
        height: 1px;
        width: 100%;
        margin: 32px 0;
    }

    .v2-authcard--login {
        min-height: auto;
        border-radius: 22px;
    }
    .v2-authcard-login-left {
        display: none;
    }
    .v2-authcard-login-right {
        width: 100%;
        min-height: auto;
        background: rgba(255,255,255,0.88);
    }
    .v2-authcard-form-area {
        padding: 32px 24px;
    }
}


/* ==========================================================================
   공용 알림 모달 (.v2-alert)
   - 브라우저 기본 alert() 대체. 화면 중앙에 띄우고 뒤 화면 조작을 차단한다.
   - 클래스명이 .modal-* 과 겹치면 기존 modal.css / 각 JSP 로컬 style 의
     선언이 새어 들어오므로 v2-alert-* 로 접두어를 분리했다.
   - body 직속으로 붙어 .evt-wrap / .v2-page 리셋이 닿지 않으므로
     아래에 자체 box-sizing 리셋을 둔다.
   ========================================================================== */
.v2-alert,
.v2-alert * {
    box-sizing: border-box;
}

/* 2026.10.27 : 글꼴은 안쪽 요소 전부에 건다. com.css 의 div,h4,p,button { font-family:'돋움' } 은
   요소마다 직접 걸리는 규칙이라, 바깥(.v2-alert / .v2-loading)에만 지정하면 안쪽이 돋움이 된다.
   .v2-modal * 와 같은 처리. .v2-loading 은 진행 안내(showV2Loading)·업로드 진행률(showV2Progress) 레이어. */
.v2-alert *,
.v2-loading * {
    font-family: 'Noto Sans KR', '맑은 고딕', 'Malgun Gothic', sans-serif;
}

.v2-alert {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
    background: rgba(20, 30, 48, 0.55);
    z-index: 10000;
    font-family: 'Noto Sans KR', sans-serif;
}

.v2-alert.is-open {
    display: flex;
}

.v2-alert-box {
    width: 100%;
    max-width: 400px;
    margin: 0;
    padding: 0;
    background: var(--v2-white);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15, 25, 45, 0.28);
    overflow: hidden;
    animation: v2AlertIn 0.16s ease-out;
}

@keyframes v2AlertIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .v2-alert-box { animation: none; }
}

.v2-alert-body {
    padding: 30px 26px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

/* 2026.09.09: 모달 종류(success/warn)에 따라 아이콘 색이 달라진다.
   아이콘 SVG 는 stroke/fill 을 currentColor 로 두고 여기서 color 만 바꾼다.
   종류를 안 정한 예전 호출도 깨지지 않도록 기본값은 기존과 같은 경고(주황)로 둔다. */
.v2-alert-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--v2-warn-bg);
    color: var(--v2-warn);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.v2-alert--success .v2-alert-icon {
    background: var(--v2-ok-bg);
    color: var(--v2-ok);
}

.v2-alert--warn .v2-alert-icon {
    background: var(--v2-warn-bg);
    color: var(--v2-warn);
}

/* 2026.10.14: 확인 질문(confirm)은 파랑 물음표, 삭제 확인(danger)은 빨강 느낌표 + 빨강 버튼.
   예전엔 확인 창이 늘 주황(warn)이라 입력 오류 안내와 구분이 안 됐다. 새 색 없이 기존 변수만 쓴다. */
.v2-alert--confirm .v2-alert-icon {
    background: var(--v2-primary-soft);
    color: var(--v2-primary);
}

.v2-alert--danger .v2-alert-icon {
    background: var(--v2-danger-bg);
    color: var(--v2-danger);
}

.v2-alert--danger .v2-alert-confirm {
    background: var(--v2-danger);
}

/* 아래 .v2-alert-confirm:hover(파랑)가 이기지 않게 빨강을 유지하고 조금 어둡게만 한다 */
.v2-alert--danger .v2-alert-confirm:hover {
    background: var(--v2-danger);
    filter: brightness(0.9);
}

/* 2026.10.20: 처리 실패(error)는 빨강 ×. 확인 버튼은 파랑 그대로(닫기만 하므로). */
.v2-alert--error .v2-alert-icon {
    background: var(--v2-danger-bg);
    color: var(--v2-danger);
}

.v2-alert-icon svg {
    display: block;
}

.v2-alert-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a2535;
}

.v2-alert-text {
    margin: 0;
    font-size: var(--v2-font-xs);
    line-height: 1.65;
    color: #4a5568;
    word-break: keep-all;
    /* 메시지를 textContent 로 넣으므로 \n 이 그대로 들어온다.
       Commons Validator 는 필수항목이 여러 개면 fields.join('\n') 으로 넘기는데
       기본 렌더링에서는 \n 이 공백이 되어 한 줄로 뭉친다. pre-line 이면
       줄바꿈만 살리고 들여쓰기/연속공백은 접어준다(pre 와 다른 점). */
    white-space: pre-line;
}

.v2-alert-detail {
    display: block;
    margin-top: 8px;
    font-weight: 500;
    color: #1a2535;
}

/* 2026.10.20: 문의할 때 알려줄 정보(오류 코드·시각). 본문보다 작고 흐리게 */
.v2-alert-meta {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--v2-text-muted);
    letter-spacing: 0.01em;
}

.v2-alert-footer {
    padding: 0 26px 24px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* 취소 버튼은 confirm 형태에서만 보인다. (알림 형태에서는 JS 가 숨긴다) */
.v2-alert-cancel {
    min-width: 108px;
    padding: 9px 22px;
    border: 1px solid var(--v2-line-strong);
    border-radius: 5px;
    background: var(--v2-white);
    color: var(--v2-text);
    font-family: inherit;
    font-size: var(--v2-font-xs);
    font-weight: 500;
    cursor: pointer;
}

.v2-alert-cancel:hover {
    background: var(--v2-bg-soft);
}

.v2-alert-cancel:focus-visible {
    outline: 2px solid #1a2535;
    outline-offset: 2px;
}

.v2-alert-confirm {
    min-width: 108px;
    padding: 9px 22px;
    border: none;
    border-radius: 5px;
    background: var(--v2-primary);
    color: var(--v2-white);
    font-family: inherit;
    font-size: var(--v2-font-xs);
    font-weight: 500;
    cursor: pointer;
}

.v2-alert-confirm:hover {
    background: var(--v2-primary-hover);
}

.v2-alert-confirm:focus-visible {
    outline: 2px solid #1a2535;
    outline-offset: 2px;
}

/* 모달이 열려 있는 동안 뒤 화면 스크롤 잠금 */
body.v2-alert-open {
    overflow: hidden;
}

/* 2026.10.14: 공용 레이어 (v2alert.js 의 openV2Layer). 브라우저 새 창 팝업을 대체한다.
   레이어 안 iframe 에 기존 팝업 주소를 그대로 띄우고, 팝업 페이지가 자기 제목·닫기 버튼을 갖고 있어
   레이어에는 제목줄을 두지 않는다. 크기는 호출부가 넘기며(JS 가 width/height 지정),
   화면이 작으면 90% 까지만 커지고 안쪽에서 스크롤된다.
   z-index 는 확인창(10000)보다 낮게 둬서 바깥 화면에서 띄운 확인창이 레이어 위로 오게 한다. */
.v2-layer,
.v2-layer * {
    box-sizing: border-box;
}

.v2-layer {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
    background: rgba(20, 30, 48, 0.55);   /* 확인창과 같은 딤 */
    z-index: 9000;
}

.v2-layer.is-open {
    display: flex;
}

.v2-layer-box {
    position: relative;
    width: 960px;
    max-width: 100%;
    height: 820px;
    max-height: 90vh;
    margin: 0;
    padding: 0;
    background: var(--v2-white);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15, 25, 45, 0.28);
    overflow: hidden;
    animation: v2AlertIn 0.16s ease-out;   /* 확인창 등장 효과 재사용 */
}

@media (prefers-reduced-motion: reduce) {
    .v2-layer-box { animation: none; }
}

.v2-layer-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.v2-layer-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v2-white);
    color: var(--v2-text-muted);
    font-size: var(--v2-font-xs);
}

.v2-layer-box.is-loaded .v2-layer-loading {
    display: none;
}


/* ==========================================================================
   입력용 공용 모달 (.v2-modal-*)   2026.10.02 추가
   - 화면 안에서 띄우는 등록/수정 창. 첫 적용 : 이벤트설정(utl/sys/evt/EgovEvtRuleList.jsp)
   - 공용 알림창(.v2-alert)과 같은 결 : 딤 색, 모서리 8px, 그림자, 글꼴, 버튼 모양.
     알림창은 확인/취소만 담는 작은 창이고, 이건 입력 양식을 담는 창이다.
   - 본문 입력줄은 표준 .form-row(라벨 110px + 입력칸)를 그대로 쓴다. 화면에서 .form-row 를 재정의하지 말 것.
     (이벤트설정이 .form-row 를 flex/13px 로 덮어써 표준과 섞여 나왔던 것이 이 블록을 만든 이유)
   - 클래스명이 기존 .modal-* (지역 style, modal.css) 와 겹치지 않게 v2-modal-* 접두어를 쓴다.
   - z-index 는 알림창(10000)보다 낮다. 모달 안에서 띄운 경고(showV2Alert)가 위에 와야 한다.
   - 좌측 메뉴·헤더 잠금은 CSS 가 아니라 여는 쪽 JS 가 v2FrameDim(true/false) 로 한다.
   - 목업 : webapp/mockup/evt-rule-modal-mockup.html

   사용 :
     <div class="v2-modal" id="xxModal" role="dialog" aria-modal="true" aria-labelledby="xxTitle">
       <div class="v2-modal-box">
         <div class="v2-modal-head"><h2 class="v2-modal-title" id="xxTitle">제목</h2>
           <button type="button" class="v2-modal-close" aria-label="닫기">&#x2715;</button></div>
         <div class="v2-modal-body"> .form-row … / .v2-modal-group … </div>
         <div class="v2-modal-foot"><button class="v2-modal-cancel">취소</button><button class="v2-modal-save">저장</button></div>
       </div>
     </div>
     열기 : classList.add('is-open')   닫기 : classList.remove('is-open')
   ========================================================================== */
/* 글꼴은 안쪽 요소 전부에 건다. com.css 의 div,p,input,select,button { font-family:'돋움' } 은
   요소마다 직접 걸리는 규칙이라, 바깥(.v2-modal)에만 지정하면 안쪽 div·label·select 가 상속 대신 돋움이 된다.
   클래스 선택자(.v2-modal *)가 요소 선택자보다 우선하므로 이걸로 막는다(.v2-noti-panel * 와 같은 처리). */
.v2-modal,
.v2-modal * {
    box-sizing: border-box;
    font-family: 'Noto Sans KR', '맑은 고딕', 'Malgun Gothic', sans-serif;
}
.v2-modal {
    position: fixed; inset: 0;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px; margin: 0;
    background: rgba(20, 30, 48, 0.55);         /* .v2-alert 와 같은 딤 */
    z-index: 9000;
}
.v2-modal.is-open { display: flex; }

.v2-modal-box {
    width: 100%; max-width: 560px;
    max-height: calc(100vh - 40px);
    display: flex; flex-direction: column;
    margin: 0; padding: 0;
    background: var(--v2-white, #fff);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15, 25, 45, 0.28);
    overflow: hidden;
    animation: v2AlertIn 0.16s ease-out;         /* 위 알림창 등장 효과 재사용 */
}
@media (prefers-reduced-motion: reduce) { .v2-modal-box { animation: none; } }

/* 헤더 (고정) */
.v2-modal-head {
    flex: none;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 16px 14px 22px;
    border-bottom: 1px solid #e8edf4;
}
.v2-modal-title {
    margin: 0; padding: 0;
    font-size: 17px; font-weight: 700; line-height: 1.4;   /* .v2-alert-title 과 같은 크기 */
    color: #1a2535;
}
/* 닫기. com.css 의 button 전역 규칙(파란 배경·margin-left·hover)을 막는다 */
.v2-modal-close {
    flex: none;
    width: 32px; height: 32px; margin: 0; padding: 0;
    border: 0; border-radius: 6px;
    background: transparent; color: #8a94a6;
    font-family: inherit; font-size: 18px; font-weight: 400; line-height: 32px; text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.v2-modal-close:hover  { background: #F3F4F6; color: #374151; }
.v2-modal-close:active { background: #E5E7EB; }
.v2-modal-close:focus  { outline: none; }
.v2-modal-close:focus-visible { outline: 2px solid #1a2535; outline-offset: 2px; }

/* 본문 (이 영역만 스크롤) */
.v2-modal-body {
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto;
    padding: 20px 22px;
    display: grid; row-gap: 12px;                /* 표준 .form-grid 와 같은 행 간격 */
}

/* 조건 묶음. 장비별 색을 쓰지 않고 같은 중립 패널을 쓴다.
   제목은 상세 화면 하위 소제목(.form-section-title--sub)과 같은 파란 포인트선 */
.v2-modal-group {
    display: grid; row-gap: 10px;
    padding: 14px 16px;
    border: 1px solid #DCE6F2; border-radius: 6px;
    background: #F5F8FC;
}
.v2-modal-group[hidden] { display: none; }
.v2-modal-group-title {
    position: relative;
    margin: 0 0 2px; padding-left: 11px;
    font-size: var(--v2-font-xs, 14px); font-weight: 700; line-height: 1.4;
    color: #2457bd;
}
.v2-modal-group-title:before {
    content: ''; position: absolute; left: 0; top: 3px;
    width: 3px; height: 14px; border-radius: 2px; background: #2457bd;
}

/* 한 칸에 [선택][값][단위] 가 같이 들어가는 줄 */
.v2-modal-inline {
    display: flex; align-items: center; gap: 8px; min-width: 0;
}
.v2-modal-inline > select { flex: none; width: 120px; }
.v2-modal-inline > input  { flex: 1 1 auto; min-width: 0; }
.v2-modal-unit { flex: none; font-size: var(--v2-font-xs, 14px); color: #6B7280; white-space: nowrap; }

/* 입력칸 아래 보조 설명 */
.v2-modal-help { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #6B7280; }

/* ── 넓은 모달 + 조건 여러 줄 (2026.10.08, 이벤트설정 기상 AND 조건에서 승격) ──
   목업 : webapp/mockup/evt-rule-weather-cond-mockup.html
   - 한 줄 = [항목][비교][값][단위][삭제]. 표준 .form-row(라벨+입력 1칸)에 안 맞아 별도 그리드.
   - 줄 사이 "그리고" 구분선 : 모든 조건을 만족해야 걸린다(AND)는 걸 글자로 보여준다.
   - 버튼은 com.css 의 button 전역 규칙(파란 배경·margin-left)을 막는다(.v2-modal-close 와 같은 방식). */

/* 기본 폭(560px)에 조건 5칸을 넣으면 항목칸이 190px 까지 줄어든다. 조건 줄이 있는 창에만 붙인다 */
.v2-modal-box--wide { max-width: 720px; }

.v2-modal-cond-list { display: grid; row-gap: 0; }

.v2-modal-cond {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px 120px 56px 32px;
    align-items: center; gap: 8px;
}
/* 조건 줄은 .form-row 가 아니라서 표준 입력칸 모양이 안 걸린다. 같은 값을 그대로 준다 */
.v2-modal-cond > select,
.v2-modal-cond > input {
    box-sizing: border-box;
    width: 100%; min-width: 0; min-height: 34px; margin: 0;
    padding: 0 12px;
    border: 1px solid #cbd6e3; border-radius: 4px;
    background: #fff; color: #44536a;
    font-family: inherit; font-size: var(--v2-font-sm);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.v2-modal-cond > select { padding-right: 8px; }
.v2-modal-cond > select:hover,
.v2-modal-cond > input:hover { border-color: #aebdd0; }
.v2-modal-cond > select:focus,
.v2-modal-cond > input:focus {
    border-color: #4b72cf;
    box-shadow: 0 0 0 3px rgba(75, 114, 207, .10);
}
.v2-modal-cond .v2-modal-unit { text-align: left; }

/* 항목 아래 계산 방법 안내. 그리드 전체 폭을 쓴다 */
.v2-modal-cond-help {
    grid-column: 1 / -1;
    margin: 0; font-size: 13px; line-height: 1.5; color: #6B7280;
    word-break: keep-all;
}
.v2-modal-cond-help:empty { display: none; }

.v2-modal-cond-del {
    width: 32px; height: 32px; margin: 0; padding: 0;
    border: 0; border-radius: 6px;
    background: transparent; color: #8a94a6;
    font-family: inherit; font-size: 16px; line-height: 32px; text-align: center;
    cursor: pointer;
}
.v2-modal-cond-del:hover { background: #F3F4F6; color: #b42318; }
.v2-modal-cond-del[disabled] { visibility: hidden; }

/* "그리고" 구분선 */
.v2-modal-cond-and {
    display: flex; align-items: center; gap: 8px;
    margin: 8px 0;
    font-size: 12px; font-weight: 700; color: #2457bd;
}
.v2-modal-cond-and:before,
.v2-modal-cond-and:after { content: ''; flex: 1 1 auto; height: 1px; background: #DCE6F2; }

.v2-modal-cond-add {
    justify-self: start;
    margin: 4px 0 0; padding: 7px 12px;
    border: 1px dashed #9db5dc; border-radius: 5px;
    background: #fff; color: #2457bd;
    font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.2;
    cursor: pointer;
}
.v2-modal-cond-add:hover { background: #eef4fd; color: #2457bd; }
.v2-modal-cond-add[disabled] { border-color: #d5dbe5; color: #9aa4b2; background: #fff; cursor: default; }

/* 입력한 조건을 문장으로 다시 보여준다. 저장 전 마지막 확인용 */
.v2-modal-cond-preview {
    margin: 2px 0 0; padding: 10px 12px;
    border-radius: 5px; background: #fff; border: 1px solid #DCE6F2;
    font-size: 13px; line-height: 1.6; color: #334155;
}
.v2-modal-cond-preview b { color: #1a2535; }
.v2-modal-group-sub { font-weight: 400; color: #6B7280; }

/* 하단 (고정). 버튼은 .v2-alert-cancel / .v2-alert-confirm 과 같은 모양 */
.v2-modal-foot {
    flex: none;
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 14px 22px;
    border-top: 1px solid #e8edf4;
}
.v2-modal-cancel,
.v2-modal-save {
    min-width: 96px; margin: 0; padding: 9px 22px;
    border-radius: 5px;
    font-family: inherit; font-size: var(--v2-font-xs, 14px); font-weight: 500; line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s ease;
}
.v2-modal-cancel {
    border: 1px solid var(--v2-line-strong, #c4ccd8);
    background: var(--v2-white, #fff); color: var(--v2-text, #334155);
}
.v2-modal-cancel:hover { background: var(--v2-bg-soft, #f6f8fb); color: var(--v2-text, #334155); }
.v2-modal-save {
    border: 0;
    background: var(--v2-primary, #1f5fbf); color: #fff;
}
.v2-modal-save:hover { background: var(--v2-primary-hover, #1750a8); color: #fff; }
.v2-modal-cancel:focus-visible,
.v2-modal-save:focus-visible { outline: 2px solid #1a2535; outline-offset: 2px; }

/* 모달이 열려 있는 동안 뒤 화면 스크롤 잠금 */
body.v2-modal-open { overflow: hidden; }

/* 2026.10.16 추가 : 이벤트설정 목록 [수신자] 칸 (EgovEvtRuleList.jsp).
   수신자 등록은 필수가 아니라 경고색 없이 평범한 글자로 둔다.
   "미설정" 아래 보조 문구(등록 N명 · 모두 꺼짐)만 흐린 작은 글씨로 줄을 바꿔 붙인다. */
.evt-rcver-cell { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.35; }
.evt-rcver-sub  { color: var(--v2-text-muted, #888); font-size: 12px; }


/* ----------------------------------------------------------------------------
   진행 안내 (v2alert.js 의 showV2Loading) — 2026.09.22 추가

   서버가 오래 걸리는 일을 하는 동안 떠 있다가 코드로 닫힌다.
   버튼이 없고 닫는 수단도 없다 — 작업이 도는 중에 사용자가 닫아버리면 안 되기 때문이다.
   딤·정렬·박스 규격은 .v2-alert 과 같게 맞춘다(같은 화면에서 번갈아 뜨므로).
---------------------------------------------------------------------------- */
.v2-loading {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
    background: rgba(20, 30, 48, 0.55);
    /* 알림 모달(10000)보다 아래에 둔다. 실패를 알릴 때 알림이 위로 와야 한다. */
    z-index: 9999;
    font-family: 'Noto Sans KR', sans-serif;
}

.v2-loading.is-open {
    display: flex;
}

.v2-loading-box {
    box-sizing: border-box;
    width: 100%;
    max-width: 400px;
    margin: 0;
    padding: 32px 24px 28px;
    background: var(--v2-white);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15, 25, 45, 0.28);
    text-align: center;
}

.v2-loading-spinner {
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    margin: 0 auto 16px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--v2-primary, #2c5282);
    border-radius: 50%;
    animation: v2LoadingSpin 0.7s linear infinite;
}

@keyframes v2LoadingSpin {
    to { transform: rotate(360deg); }
}

.v2-loading-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a2535;
}

.v2-loading-text {
    margin: 8px 0 0;
    padding: 0;
    font-size: var(--v2-font-xs);
    line-height: 1.65;
    color: #4a5568;
    word-break: keep-all;
    white-space: pre-line;
}

/* 움직임을 줄이도록 설정한 사용자에게는 회전 대신 깜빡임으로 바꾼다. */
@media (prefers-reduced-motion: reduce) {
    .v2-loading-spinner {
        animation: v2LoadingPulse 1.2s ease-in-out infinite;
    }
    @keyframes v2LoadingPulse {
        50% { opacity: 0.35; }
    }
}

/* ----------------------------------------------------------------------------
   업로드 진행률 (v2alert.js 의 showV2Progress) — 2026.10.26 추가

   대용량 파일 업로드 동안 뜬다. 박스·딤·스피너·제목·본문은 위 .v2-loading 을 그대로 쓰고
   진행 막대·용량 줄·취소 버튼만 더한다. 진행 안내와 달리 취소 버튼이 있다(전송 중에만).
---------------------------------------------------------------------------- */
.v2-progress-bar {
    height: 8px;
    margin: 14px 0 0;
    background: var(--v2-line-soft);
    border-radius: 4px;
    overflow: hidden;
}

.v2-progress-fill {
    width: 0;
    height: 100%;
    background: var(--v2-primary);
    border-radius: 4px;
    transition: width 0.3s;
}

.v2-progress-meta {
    display: flex;
    justify-content: space-between;
    margin: 6px 0 0;
    font-size: var(--v2-font-xs);
    color: #4a5568;
    font-variant-numeric: tabular-nums;
}

.v2-progress-meta strong {
    color: #1a2535;
    font-weight: 700;
}

.v2-progress-sub {
    margin: 4px 0 0;
    font-size: var(--v2-font-xs);
    line-height: 1.65;
    color: #4a5568;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.v2-progress-actions {
    display: flex;
    justify-content: center;
    margin: 18px 0 0;
}

.v2-progress-cancel {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    min-width: 96px;
    padding: 0 16px;
    border: 1px solid var(--v2-line-strong);
    border-radius: var(--v2-radius-sm);
    background: var(--v2-white);
    color: var(--v2-text);
    font-family: inherit;
    font-size: var(--v2-font-xs);
    cursor: pointer;
}

.v2-progress-cancel:hover {
    background: var(--v2-bg-soft);
}

/* display:flex 가 hidden 속성을 이기므로 명시한다. 전송이 끝나 서버가 저장하는 동안은 취소를 숨긴다. */
.v2-progress-actions[hidden] {
    display: none;
}


/* ============================================================================
   위험지역관리 (/gis/danger) — 2026.08.13 승격

   목록/등록/상세 세 화면이 쓰던 페이지 로컬 <style> 을 여기로 올렸다.
   (이전에는 _dangerAreaBaseStyle / ListStyle / EditStyle .jspf 세 조각이었다)

   .danger-area-admin 스코프를 유지한다. 드로잉 에디터처럼 다른 GIS 화면에서도
   쓸 만한 것이 있지만, .form-section / .form-grid 는 이미 com-v2.css 에 동명
   규칙이 있어 범용화하면 속성이 새어 든다. 두 번째 사용처가 실제로 생길 때 뗀다.

   편집 폼의 다열 그리드(form-grid-4 / form-grid-5)는 표준 1열 .form-row 를
   의도적으로 거부하고 확정한 디자인이다. "표준으로 통일" 판단으로 되돌리지 말 것.
   ============================================================================ */

/* ── 공통 : 페이지 래퍼 + 스코프 리셋 ── */
.danger-area-admin.board.evt-wrap {
  width: auto;
  max-width: 100%;
  color: #1f2937;
}


.danger-area-admin *,
.danger-area-admin *::before,
.danger-area-admin *::after {
  box-sizing: border-box;
}


.danger-area-admin caption {
  overflow: hidden;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
}


/* 2026.08.13: .danger-summary 를 이 묶음에서 뺐다.
     요약 블록은 흰 카드 + 그림자 디자인으로 바뀌었고, 그 규칙은
     _dangerAreaListStyle.jspf 에 있다. 여기 남겨두면 명시도가 높아 새 디자인을 덮어쓴다. */
.danger-area-admin .edit-panel {
  border: 1px solid #c7d5e7;
  border-top: 2px solid #547fb5;
  background: #eef3f9;
}


@media (max-width: 1500px) {
  .danger-area-admin .form-grid-3,
  .danger-area-admin .form-grid-4,
  .danger-area-admin .form-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .danger-area-admin .field-location {
    grid-column: span 2;
  }

  /* 2026.09.09: 1열로 바뀌어 가로 스크롤이 필요 없다. */
  .danger-area-admin .drawing-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}


@media (max-width: 1280px) {
  /* 요약 블록 반응형은 새 디자인에 맞춰 _dangerAreaListStyle.jspf 로 옮겼다. */

  /* 2026.08.13: 스크롤 대상을 .board-list-wrap -> .v2-list-body 로 바꿨다.
       이 두 규칙은 짝이다. 표를 1280px 로 붙잡아 컬럼이 뭉개지지 않게 하되,
       감싼 영역이 가로로 스크롤되어 화면 밖으로 밀지 않게 한다.
       목록을 .v2-list-section 카드로 바꾸면서 .board-list-wrap 이 사라졌는데
       min-width 만 남는 바람에 창을 줄여도 표가 안 줄어드는 상태였다.
       상세 화면의 변경이력도 같은 카드를 쓰므로 함께 적용된다. */
  .danger-area-admin .danger-area-table {
    min-width: 1280px;
  }
}


@media (max-width: 900px) {
  .danger-area-admin .section-title,
  .danger-area-admin .form-section-head,
  .danger-area-admin .drawing-head {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    padding: 9px 12px;
  }

  .danger-area-admin .form-grid-3,
  .danger-area-admin .form-grid-4,
  .danger-area-admin .form-grid-5 {
    grid-template-columns: 1fr;
  }

  .danger-area-admin .form-field,
  .danger-area-admin .field-location {
    grid-column: auto;
  }

  .danger-area-admin .drawing-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow-x: visible;
  }

  .danger-area-admin .drawing-toolbar {
    top: 8px;
    left: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: calc(100% - 16px);
  }

  .danger-area-admin .draw-tool-button {
    min-width: 48px;
  }

  .danger-area-admin .drawing-map-shell {
    height: 420px;
  }
}


@media (max-width: 768px) {
  /* 요약 블록 반응형은 새 디자인에 맞춰 _dangerAreaListStyle.jspf 로 옮겼다. */

  .danger-area-admin .form-field {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* ── 목록 : 현황 요약 카드 ── */
/* 2026.08.13: 요약 블록 디자인 교체.
     이전에는 배경 #eef3f9 에 테두리만 두른 납작한 줄이었고, 그 테두리·배경 규칙이
     .edit-panel 과 한 묶음이라 _dangerAreaBaseStyle.jspf 에 들어가 있었다.
     흰 카드 + 그림자 형태로 바꾸면서 요약 규칙을 이 파일로 모았다.
     (BASE 의 묶음 규칙은 명시도가 높아 그대로 두면 새 디자인을 덮어쓴다) */

/* 위험지역 현황 요약 */
.danger-summary {
  display: grid;
  /* 2026.09.09: 요약이 4개(전체/운영중/심각·경계/지도표출)에서
     3개(전체/운영/지정해제)로 줄었다. repeat(4,...) 를 그대로 두면 4번째 칸이 비고
     마지막 항목이 그 폭까지 차지해 '지정해제' 카드만 길어 보였다.
     항목 수에 맞춰 3등분한다. */
  grid-template-columns: repeat(3, minmax(0, 1fr));

  margin: 18px 0 28px;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(27, 55, 90, 0.08);
  overflow: hidden;
}

/* 각 요약 항목 */
.danger-summary .summary-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  min-width: 0;
  min-height: 64px;
  padding: 0 24px;

  border-right: 1px solid #e1e7ef;
  box-sizing: border-box;
}

.danger-summary .summary-item:last-child {
  border-right: 0;
}

/* 항목 이름 */
.danger-summary .summary-item strong {
  color: #26364d;
  font-size: var(--v2-font-sm);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* 건수 */
.danger-summary .summary-item span {
  color: #1769d2;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* 2026.09.09: 3번째 카드가 '심각/경계'에서 '지정해제'로 바뀌었다.
   위험을 뜻하던 주황색을 그대로 쓰면 해제된 건수가 경고처럼 보이므로 회색 계열로 바꾼다.
   4번째('지도 표출')는 카드 자체가 없어져 규칙을 지운다. */
.danger-summary .summary-item:nth-child(3) span {
  color: var(--v2-text-muted);
}

/* 반응형. 칸이 줄면 오른쪽 구분선 대신 아래 구분선을 쓴다.
   2026.09.09: 카드가 3개라 2열로 접으면 마지막 하나만 다음 줄에 남아 폭이 어색해진다.
   1280px 구간에서도 3열을 유지하고, 더 좁아지면 1열로 넘긴다. */
@media (max-width: 1280px) {
  .danger-summary .summary-item {
    padding: 0 12px;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .danger-summary {
    grid-template-columns: 1fr;
  }

  .danger-summary .summary-item {
    border-right: 0;
    border-bottom: 1px solid #e1e7ef;
  }

  .danger-summary .summary-item:last-child {
    border-bottom: 0;
  }
}

/* 2026.08.13: .board-list-wrap(파란 윗선 + 여백)은 목록에서 걷어냈다.
     목록 영역이 com-v2.css 의 .v2-list-section 카드로 바뀌었다.
     상세 화면의 변경이력 영역은 아직 .board-list-wrap 을 쓰는데,
     그쪽 규칙은 _dangerAreaBaseStyle.jspf 에 있다. */

/* ── 등록/상세 : 편집 폼 + 지도 그리기 에디터 ── */
.danger-area-admin .section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}


.danger-area-admin .edit-panel {
  padding: 12px;
  margin-bottom: 12px;
}


.danger-area-admin .edit-panel.is-hidden {
  display: none;
}




.danger-area-admin .danger-edit-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.danger-area-admin .form-section {
  overflow: hidden;
  padding: 0;
  border: 1px solid #cbd8e6;
  border-radius: 4px;
  background: #fff;
}


.danger-area-admin .form-section-head,
.danger-area-admin .drawing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid #d7e1ef;
  background: #f7fafd;
}


.danger-area-admin .form-section-head h4,
.danger-area-admin .drawing-head h4 {
  margin: 0;
  color: #174f8a;
  font-size: var(--v2-font-sm);
  font-weight: 700;
}


.danger-area-admin .form-grid {
  display: grid;
  gap: 10px 16px;
  padding: 10px 12px;
}


/* 2026.09.09: 기본정보가 3개 항목(위험지역명/유형/상태)으로 줄면서 form-grid-4 를 쓰면
   네 번째 칸이 비어 오른쪽이 허전했다. 칸 수를 항목 수에 맞춰 3등분하면
   라벨 간격도 균등해진다. */
.danger-area-admin .form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* form-grid-4 / form-grid-5 는 현재 쓰는 화면이 없다(위치정보 섹션 제거).
   항목이 다시 늘어날 때를 위해 규칙은 남겨둔다. */
.danger-area-admin .form-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}


.danger-area-admin .form-grid-5 {
  grid-template-columns:
    minmax(330px, 1.7fr)
    minmax(170px, 1fr)
    minmax(170px, 1fr)
    minmax(170px, 1fr)
    minmax(150px, 0.9fr);
}


.danger-area-admin .form-field {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  /* 2026.09.09: 라벨과 입력칸 사이 간격. 라벨을 오른쪽 정렬로 바꾸면서
     모든 항목이 이 값으로 통일된다(8px -> 12px). */
  gap: 12px;
  min-width: 0;
}


.danger-area-admin .form-field label,
.danger-area-admin .field-label,
.danger-area-admin .block-label {
  font-size: var(--v2-font-sm);
  font-weight: 600;
  color: #333;
}


/* 2026.09.09: 라벨칸이 90px 고정인데 글자가 왼쪽에 붙어 있어서, 글자 수가 짧은 항목
   (유형/상태)은 입력칸까지 빈 공간이 60px 넘게 벌어졌다. 긴 항목(위험지역명)은 8px 라
   같은 줄인데도 라벨과 박스 사이 간격이 제각각으로 보였다.
   라벨을 오른쪽 정렬해 모든 항목의 간격을 gap(8px)으로 통일한다.
   박스 시작 위치는 그대로라 열 정렬은 영향받지 않는다. */
.danger-area-admin .form-field > label,
.danger-area-admin .form-field > .field-label {
  text-align: right;
}


.danger-area-admin .form-field label,
.danger-area-admin .field-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}


.danger-area-admin .required {
  color: #d94e4e;
}


.danger-area-admin .inp-text,
.danger-area-admin .sel-box,
.danger-area-admin .txt-area,
.danger-area-admin .drawing-output {
  border: 1px solid #c9d1dc;
  border-radius: 3px;
  background: #fff;
  color: #222;
  font-size: var(--v2-font-sm);
}


.danger-area-admin .inp-text,
.danger-area-admin .sel-box {
  width: 100%;
  min-width: 0;
  height: 32px;
  line-height: 30px;
}


.danger-area-admin .inp-text {
  padding: 0 10px;
}


.danger-area-admin .sel-box {
  padding: 0 28px 0 10px;
}


.danger-area-admin .inp-wide,
.danger-area-admin .inp-long,
.danger-area-admin .inp-date,
.danger-area-admin .inp-number,
.danger-area-admin .inp-coordinate {
  width: 100%;
}


.danger-area-admin .check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: #222;
}


.danger-area-admin .check-label input {
  margin: 0;
}


.danger-area-admin .form-block {
  display: block;
  padding: 0 0 10px;
}


.danger-area-admin .form-block .block-label {
  display: block;
  padding: 10px 12px 6px;
}


.danger-area-admin .txt-area {
  display: block;
  width: calc(100% - 24px);
  min-height: 70px;
  margin: 0 12px;
  padding: 8px 10px;
  resize: vertical;
  line-height: 1.5;
}


.danger-area-admin .drawing-editor.form-section {
  margin: 0;
  padding: 0;
}


/* 2026.09.09: 우측 GeoJSON 출력 패널(.drawing-output-panel)과 아래 '공간정보' 입력 블록을
   화면에서 걷어내면서 2열 그리드를 1열로 바꿨다. 지도가 폭을 전부 쓴다.
   비워진 블록 높이만큼 세로도 키운다(600 -> 720px). */
.danger-area-admin .drawing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: 720px;
  min-height: 720px;
}


.danger-area-admin .drawing-toolbar {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid #c9d1dc;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}


/* 2026.07.29 추가: 확대/축소 버튼을 .drawing-toolbar에서 분리해 오른쪽 위에 별도 배치 */
.danger-area-admin .map-zoom-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid #c9d1dc;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}


.danger-area-admin .map-control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid #b9c4d2;
  border-radius: 3px;
  background: #fff;
  color: #222;
  font-size: var(--v2-font-sm);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}


.danger-area-admin .map-control-button:hover,
.danger-area-admin .map-control-button:focus {
  border-color: #7ea4d5;
  background: #eef5ff;
}


.danger-area-admin .draw-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  min-width: 76px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid #b9c4d2;
  border-radius: 3px;
  background: #fff;
  color: #222;
  font-size: var(--v2-font-xs);
  line-height: 1.2;
  cursor: pointer;
}


/* 2026.07.29 추가: 도구 버튼 아이콘(선택/그리기/편집/이동/삭제/초기화) */
.danger-area-admin .draw-tool-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}


.danger-area-admin .draw-tool-icon svg {
  width: 100%;
  height: 100%;
}


.danger-area-admin .draw-tool-button:hover,
.danger-area-admin .draw-tool-button:focus {
  border-color: #7ea4d5;
  background: #eef5ff;
}


.danger-area-admin .draw-tool-button.active {
  border-color: #d94e4e;
  background: #d94e4e;
  color: #fff;
}


.danger-area-admin .draw-tool-divider {
  display: block;
  width: 100%;
  height: 1px;
  margin: 2px 0;
  background: #d4dde8;
}


.danger-area-admin .drawing-map-shell {
  position: relative;
  min-width: 0;
  padding: 10px;
  background: #111820;
}


.danger-area-admin .drawing-map {
  width: 100%;
  height: 100%;
  border: 1px solid #0b0d0f;
  background: #07090a;
}


.danger-area-admin .drawing-notice-stack {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  width: min(360px, calc(100% - 48px));
  pointer-events: none;
  transform: translateX(-50%);
}


.danger-area-admin .drawing-notice {
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  color: #111827;
  font-size: var(--v2-font-xs);
  line-height: 1.35;
}


.danger-area-admin .drawing-notice.error {
  border-color: rgba(215, 25, 32, 0.45);
  background: rgba(255, 245, 245, 0.97);
}


.danger-area-admin .drawing-notice.success {
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(240, 253, 244, 0.97);
}


.danger-area-admin .drawing-status {
  overflow: hidden;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
}


.danger-area-admin .drawing-output-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border-left: 1px solid #d7e1ef;
  background: #fbfcfe;
}


.danger-area-admin .drawing-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}


.danger-area-admin .drawing-output-head strong {
  overflow: hidden;
  color: #222;
  font-size: var(--v2-font-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}


.danger-area-admin .drawing-output-panel p {
  margin: 0 0 8px;
  color: #586579;
  font-size: var(--v2-font-xs);
}


.danger-area-admin .drawing-output {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 9px 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.5;
  resize: none;
}

/* ============================================================================
   공용 조각 : 연결 상태줄 / 배지 / 작은 버튼 — 2026.08.25 승격

   GeoServer 목록·등록·레이어편집 세 화면이 같은 모양을 각자 정의하고 있어서 올렸다.
   한쪽만 고치면 어긋나는 상태였다(모달 딤 색을 맞출 때 두 파일을 따로 고쳐야 했다).

   == 이름을 바꾼 이유 ==
   .btn-mini 는 화면마다 뜻이 정반대였다.
     목록 : 흰 바탕 + 테두리 (보조)
     등록 : 파란 바탕 + 흰 글자 (주요)
   그대로 올리면 한쪽 버튼이 통째로 뒤집힌다. 그래서 기본을 보조로 두고
   주요 동작은 .is-primary 를 붙이도록 갈랐다.

   == 스코프 리셋 ==
   화면 로컬 <style> 에 있을 때는 .evt-wrap / .v2-page 의 리셋을 받고 있었다.
   공용으로 나오면 그 보호가 없어지므로 box-sizing 과 margin 을 각자 선언한다.
   com.css 의 레거시 button 규칙(font-weight 등)도 여기서 덮어쓴다.
   ============================================================================ */

/* ── 연결 상태줄 ──
   외부 서버(GeoServer 등)에 붙어 있는지, 어디에 붙어 있는지를 화면 맨 위에 한 줄로 둔다. */
.v2-statusbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 18px;
  padding: 11px 16px;
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius);
  background: var(--v2-bg-soft);
  font-size: var(--v2-font-xs);
  box-sizing: border-box;
}
.v2-statusbar-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.v2-statusbar-item .k { color: var(--v2-text-muted); }
.v2-statusbar-item .v {
  color: var(--v2-text);
  font-weight: 600;
  /* 파일 개수처럼 숫자가 바뀌는 값이 들어와도 자리가 흔들리지 않게 한다. */
  font-variant-numeric: tabular-nums;
}
.v2-statusbar-item .v.mono {
  font-family: Consolas, Monaco, monospace;
  font-weight: 400;
  font-size: 13px;
}

/* 상태 점. 기본은 정상(초록). */
.v2-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v2-ok);
}
.v2-dot.is-wait { background: var(--v2-text-muted); }
.v2-dot.is-down { background: var(--v2-danger); }

/* 2026.08.26 걷어냄 — 배지는 이 파일 위쪽(.badge / .v2-badge, 375행 근처)에 이미 있었다.
   그걸 못 보고 같은 이름으로 다시 정의하는 바람에 **뒤에 오는 이것이 원래 규칙을 덮고 있었다.**
   (다행히 .v2-badge 를 쓰던 화면이 GeoServer 3개뿐이라 다른 화면은 영향이 없었다)

   GeoServer 화면은 앱 표준인 .badge 계열로 옮겼다.
     발행됨/서비스중  ->  badge badge-use
     대기/미발행      ->  badge badge-unuse
     래스터/벡터      ->  badge badge-raster / badge-vector  (위쪽 분류 배지 옆에 새로 추가)

.v2-badge {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--v2-line-soft);
  color: var(--v2-text-muted);
  box-sizing: border-box;
}
.v2-badge--raster { background: var(--v2-warn-bg);      color: var(--v2-warn); }
.v2-badge--vector { background: var(--v2-primary-soft); color: var(--v2-primary); }
.v2-badge--live   { background: var(--v2-ok-bg);        color: var(--v2-ok); }
.v2-badge--wait   { background: var(--v2-line-soft);    color: var(--v2-text-muted); }
.v2-badge--danger { background: var(--v2-danger-bg);    color: var(--v2-danger); }
*/

/* 2026.08.26 걷어냄 — 표 안 버튼은 이 파일 위쪽에 .btn-tbl 로 이미 있었다(497행 근처).
   21개 화면이 그걸 쓰고 있는데 못 보고 새로 만들어서, GeoServer 화면만 다른 모양이 됐다.
   3D 타일셋 목록과 같은 규칙으로 되돌린다.
     표 안 액션    ->  btn-tbl
     되돌리기 어려운 것 ->  btn-tbl del
     등록          ->  btn-add   (타일셋 목록의 [3D 타일셋 등록] 과 같은 자리)

.v2-btn--mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 0;
  margin: 0;
  padding: 4px 11px;
  border: 1px solid var(--v2-line-strong);
  border-radius: var(--v2-radius-sm);
  background: var(--v2-white);
  -- 2026.08.25 --v2-text-soft(#555) 에서 올렸다.
     표 안에서 회색 글자가 흐려 보여 무엇이 누를 수 있는 것인지 잘 안 읽혔다. --
  color: var(--v2-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}
.v2-btn--mini:hover { background: var(--v2-bg-soft); }

.v2-btn--mini.is-primary {
  border-color: transparent;
  background: var(--v2-primary);
  color: var(--v2-white);
  font-weight: 600;
}
.v2-btn--mini.is-primary:hover { background: var(--v2-primary-hover); }

.v2-btn--mini.is-danger {
  border-color: #e0a9ac;
  color: var(--v2-danger);
}
.v2-btn--mini.is-danger:hover { background: var(--v2-danger-bg); }

.v2-btn--mini:disabled {
  opacity: .5;
  cursor: default;
}
.v2-btn--mini:disabled:hover { background: var(--v2-white); }
.v2-btn--mini.is-primary:disabled:hover { background: var(--v2-primary); }
*/

/* ============================================================================
   공용 조각 : 탭 — 2026.08.25 승격

   GeoServer 레이어 편집(데이터/발행/타일캐시)에서 처음 만들었다. 공용에 탭이 없어
   화면 로컬로 만들었는데, 탭이 필요한 화면이 또 나오면 같은 것을 다시 만들게 된다.

   버튼 요소라서 com.css 의 button{background:#4688d2} 와 부딪힌다.
   background·color·padding·margin·font-weight 를 모두 명시해 눌러둔다.
   ============================================================================ */

.v2-tabs {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--v2-line-strong);
  box-sizing: border-box;
}

.v2-tab {
  margin: 0;
  /* 선택된 탭이 아래 테두리를 덮어야 내용과 이어져 보인다. */
  margin-bottom: -1px;
  padding: 9px 20px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--v2-radius-sm) var(--v2-radius-sm) 0 0;
  background: none;
  color: var(--v2-text-muted);
  font-family: inherit;
  font-size: var(--v2-font-sm);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}
.v2-tab:hover { background: none; color: var(--v2-text); }

.v2-tab.is-on {
  border-color: var(--v2-line-strong);
  background: var(--v2-white);
  color: var(--v2-primary);
}
/* 색만으로 구분하지 않는다. 선택된 탭은 테두리로도 드러난다(위 규칙). */

.v2-tab:focus-visible {
  outline: 2px solid var(--v2-primary);
  outline-offset: -2px;
}

/* 탭 바로 아래 붙는 상자. 위 모서리를 각지게 해 탭과 이어 보이게 한다.
   .detail-card 등 어떤 상자에든 함께 붙여 쓴다. */
.v2-tabs-attached {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* 2026.10.06 추가: 탭 아래에 목록(결과바·검색줄)이 오는 화면.
   탭 밑줄에 "총 N건" 이 딱 붙어 어색했다(알림관리).
   .v2-tabs 자체에 margin 을 주면 탭에 상자가 붙는 화면(.v2-tabs-attached, GeoServer 레이어편집)이
   벌어지므로, 바로 뒤에 오는 요소 쪽에서 띄운다. */
.v2-tabs + .result-bar,
.v2-tabs + .search-card {
  margin-top: 16px;
}

/* ============================================================================
   공용 조각 : 폼 필드 (라벨 · 컨트롤 · 도움말) — 2026.08.25 승격

   .form-row 는 라벨과 컨트롤 두 칸짜리 그리드다. 도움말을 넣을 자리가 없어서
   .form-row--full 안에 도움말만 넣었더니, --full 은 "행"을 늘릴 뿐 자식 배치는
   그대로라 도움말이 라벨 칸(110px)에 들어가 한두 단어씩 접혔다.
   체크박스 라벨도 같은 이유로 "타일 캐시 사 / 용" 처럼 깨졌다.

   그래서 도움말과 검증 문구까지 품는 필드 단위를 따로 둔다.

     .v2-field
     ├── label
     └── .v2-field-body
         ├── 입력/선택 컨트롤
         ├── .v2-field-hint
         └── .v2-field-error

   라벨 칸은 .form-row 와 같은 110px 로 맞춘다. 같은 화면에 두 방식이 섞여도
   왼쪽 선이 어긋나지 않아야 한다.
   ============================================================================ */

.v2-field {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  gap: 6px 12px;
  min-width: 0;
}
.v2-field > * { min-width: 0; }

.v2-field > label {
  grid-column: 1;
  /* 컨트롤(높이 34px)의 첫 줄과 눈높이를 맞춘다. */
  padding-top: 8px;
  margin: 0;
  color: #4d5c72;
  font-size: var(--v2-font-sm);
  font-weight: 600;
  line-height: 1.3;
}

.v2-field-body {
  grid-column: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 컨트롤 폭. 한 줄 입력이 화면 끝까지 늘어나면 오히려 읽기 나쁘다. */
.v2-field-body > input:not([type=checkbox]):not([type=radio]),
.v2-field-body > select,
.v2-field-body > textarea {
  width: 100%;
  max-width: 420px;
  min-height: 34px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid var(--v2-line-strong);
  border-radius: var(--v2-radius-sm);
  background: var(--v2-white);
  color: var(--v2-text);
  font-family: inherit;
  font-size: var(--v2-font-xs);
  box-sizing: border-box;
}
.v2-field-body > textarea { min-height: 72px; resize: vertical; line-height: 1.6; }

/* 도움말. 반드시 자기가 설명하는 컨트롤 바로 아래에 온다. */
.v2-field-hint {
  margin: 0;
  /* 한 줄이 너무 길면 눈이 다음 줄 첫 글자를 못 찾는다. 읽기 좋은 폭으로 묶는다. */
  max-width: 640px;
  color: var(--v2-text-muted);
  font-size: 12.5px;
  line-height: 1.6;
  /* 한국어는 기본값이면 어절 한가운데서도 줄이 끊긴다("타일 경계에 걸린 글자 / 나 기호가").
     keep-all 로 띄어쓰기에서만 끊기게 한다. .v2-alert-text 도 같은 이유로 이 값을 쓴다. */
  word-break: keep-all;
  /* 다만 URL 처럼 띄어쓰기 없이 긴 문자열은 그대로 두면 밖으로 삐져나온다.
     그런 것만 예외로 끊어준다. */
  overflow-wrap: break-word;
}
.v2-field-error {
  margin: 0;
  max-width: 640px;
  color: var(--v2-danger);
  font-size: 12.5px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 읽기 전용 값. 입력창처럼 보이지 않게 점선 테두리와 옅은 바탕을 쓴다.
   폭은 입력창과 같은 420px 로 묶는다. inline-flex 라도 세로 flex 안에서는
   가로로 늘어나기 때문에, 묶지 않으면 이것만 혼자 길어진다. */
.v2-readonly {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px dashed var(--v2-line-strong);
  border-radius: var(--v2-radius-sm);
  background: var(--v2-bg-soft);
  color: var(--v2-text-soft);
  font-size: var(--v2-font-xs);
  box-sizing: border-box;
}
.v2-readonly .mono { font-family: Consolas, Monaco, monospace; font-size: 13px; }
/* 색만으로 구분하지 않도록 꼬리표를 함께 둔다. */
.v2-readonly-tag {
  color: var(--v2-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* 컨트롤 여러 개를 한 줄에 둘 때 (가로 × 세로, 숫자 + 단위 등) */
.v2-field-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.v2-field-inline .sep { color: var(--v2-text-muted); }
.v2-unit { color: var(--v2-text-soft); font-size: var(--v2-font-xs); }

/* 짧은 숫자 입력. 값에 비해 입력창이 과도하게 넓지 않게 한다. */
.v2-input-num {
  width: 88px;
  min-height: 34px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid var(--v2-line-strong);
  border-radius: var(--v2-radius-sm);
  background: var(--v2-white);
  color: var(--v2-text);
  font-family: inherit;
  font-size: var(--v2-font-xs);
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

/* 체크박스 + 라벨. 라벨 전체가 누를 수 있는 영역이 된다. */
.v2-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0;
  color: var(--v2-text);
  font-size: var(--v2-font-sm);
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}
.v2-check input[type=checkbox] {
  width: auto;
  min-height: 0;
  margin: 0;
  flex: none;
}

/* 체크박스 여러 개. 좁아지면 자연스럽게 접힌다. */
.v2-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

/* 좁은 화면에서는 라벨을 컨트롤 위로 올린다. */
@media (max-width: 760px) {
  .v2-field { grid-template-columns: minmax(0, 1fr); }
  .v2-field > label { grid-column: 1; padding-top: 0; }
  .v2-field-body { grid-column: 1; }
}

/* ============================================================
   팝업 (window.open 으로 뜨는 별도 창)
   2026.09.01 승격. EgovUserLogDetail.jsp 의 로컬 <style> 을 값 그대로 옮겼다.
   팝업마다 같은 규칙을 JSP 안에 복사하던 것을 여기 한 곳으로 모은다.
   ※ html/body 의 margin·overflow 는 팝업 창 크기와 항목 수에 따라 달라져
      여기서 다루지 않는다. 필요한 화면에서만 개별 지정한다.
   ============================================================ */
.v2-popup {
  padding: 0 4px;
}

.v2-popup h1 {
  margin-bottom: 16px;
}

/* 팝업 하단 버튼 줄. 오른쪽 정렬이 기본이다. */
.v2-popup-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

/* 2026.10.14 추가: 레이어(openV2Layer)에는 제목줄이 없으므로 팝업 페이지가 제목 옆에 닫기(✕)를 둔다.
   값은 알림 수신자 화면의 .nti-rcv-head / .nti-rcv-x 를 그대로 승격했다.
   사용 : <div class="v2-popup-head"><h1 class="manage-page-title">제목</h1>
          <button type="button" class="v2-popup-close" aria-label="닫기" onclick="v2LayerClose()">&#x2715;</button></div> */
.v2-popup-head {
  position: relative;
  margin: 0 0 16px;
  padding-right: 40px;
}

/* div.… > h1 로 한 단계 높인다. 팝업마다 로컬 <style> 에 ".xxx-popup h1 { margin-bottom: … }" 가 있는데
   (예: 기상 중기예보 .mid-popup h1) 같은 우선순위면 나중에 오는 로컬 규칙이 이겨 제목 아래가 벌어진다. */
.v2-popup .v2-popup-head h1,
.v2-popup-head h1,
div.v2-popup-head > h1 {
  margin: 0;
}

.v2-popup-close {
  position: absolute;
  top: -2px;
  right: -6px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8a94a6;
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
}

.v2-popup-close:hover {
  background: #f3f4f6;
  color: #374151;
}

/* 라벨:값 2열로 쓰는 표.
   .data-table 은 목록용이라 행 구분선(아래쪽)만 있는데, th/td 를 라벨:값으로 쓰면
   세로선이 없어 둘이 붙어 보인다. 그래서 이 변형에서만 칸 테두리를 준다.
   .data-table 과 함께 붙여 쓴다 : class="data-table data-table--field" */
.data-table--field th,
.data-table--field td {
  height: 34px;
  border: 1px solid var(--v2-line-soft);
}

.data-table--field td {
  text-align: left;
  padding: 0 10px;
}

/* ============================================================
   요약 타일 · 용량 막대 · 숫자 칸 — 2026.09.03 승격
   DB서비스모니터링의 "DB 저장현황" 섹션에서 처음 쓴다.

   .v2-summary 는 위험지역관리의 .danger-summary 를 화면 이름 없는 이름으로 올린 것이다.
   규칙은 그대로 옮기고 그 화면 전용이던 nth-child 색 지정만 뺐다.
   .danger-summary 는 당분간 그대로 두고, 손볼 일이 생기면 이쪽으로 옮긴다.
   ============================================================ */
.v2-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--v2-white);
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    overflow: hidden;
}

.v2-summary .summary-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 0;
    min-height: 64px;
    padding: 0 24px;
    border-right: 1px solid #e1e7ef;
    box-sizing: border-box;
}

.v2-summary .summary-item:last-child {
    border-right: 0;
}

.v2-summary .summary-item strong {
    color: #26364d;
    font-size: var(--v2-font-sm);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.v2-summary .summary-item span {
    color: #1769d2;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    /* 새로고침으로 값이 바뀌어도 자리가 흔들리지 않게 한다. */
    font-variant-numeric: tabular-nums;
}

/* 값 뒤에 붙는 단위(개 · GB). 값보다 작고 흐리게. */
.v2-summary .summary-item span em {
    margin-left: 3px;
    color: #5b6b82;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
}

/* 칸이 좁아지면 2열로 접고, 오른쪽 구분선 대신 아래 구분선을 쓴다. */
@media (max-width: 1000px) {
    .v2-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .v2-summary .summary-item:nth-child(2n) {
        border-right: 0;
    }
    .v2-summary .summary-item:nth-child(-n+2) {
        border-bottom: 1px solid #e1e7ef;
    }
}

/* 표 안에서 비중을 보여주는 가는 막대. 숫자 아래 붙인다. */
.v2-usage-bar {
    display: block;
    width: 100%;
    height: 4px;
    margin-top: 5px;
    border-radius: 2px;
    background: var(--v2-line-soft);
    overflow: hidden;
}

.v2-usage-bar i {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--v2-primary);
}

/* 숫자 칸. .data-table 에 .center/.left 는 있었는데 숫자용이 없었다.
   자릿수가 흔들리지 않도록 tabular-nums 를 함께 준다. */
.v2-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}


.v2-stackbar-wrap {
    /* 막대와 범례가 같은 값을 봐야 하므로 둘의 공통 부모에 정의한다.
       .v2-stackbar 에 두면 형제인 범례에는 상속되지 않아 스와치 색이 비어버린다. */
    --viz-1: #3668A8;   /* 가장 큼  - 대비 5.67:1 */
    --viz-2: #5982B4;   /*          - 대비 3.98:1 */
    --viz-3: #7D9BC0;   /*          - 대비 2.87:1 */
    --viz-rest: #A1B4CB;  /* 기타(나머지 합) - 대비 2.12:1 */
    margin-top: 16px;
}

.v2-stackbar {
    display: flex;
    /* 조각 사이 2px 는 테두리가 아니라 배경색 틈이다.
       선을 그으면 데이터가 아닌 잉크가 늘고 조각이 실제보다 두꺼워 보인다. */
    gap: 2px;
    height: 28px;
}

.v2-stackbar .seg {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 8px;
    box-sizing: border-box;
}

.v2-stackbar .seg:first-child { border-radius: 4px 0 0 4px; }
.v2-stackbar .seg:last-child  { border-radius: 0 4px 4px 0; }

/* 칠해진 면 안의 글자만 예외적으로 흰색을 쓴다(대비 확보).
   막대 밖 글자는 데이터 색을 입지 않는다 — 색은 옆의 스와치가 진다. */
.v2-stackbar .seg b {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.v2-stackbar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.v2-stackbar-legend li {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--v2-text);
    font-size: var(--v2-font-xs);
}

.v2-stackbar-legend i {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.v2-stackbar-legend span {
    color: var(--v2-text-muted);
    font-variant-numeric: tabular-nums;
}


/* ──────────────────────────────────────────────────────────────────────
   시각/짧은 값 입력줄 (2026.09.07 승격)

   배치스케줄 등록화면(EgovBatchSchdulRegist.jsp)의 지역 <style> 에만 있던 클래스를
   접속정책 등록화면에서도 쓰게 되면서 공유 CSS 로 올린다.
   시·분처럼 짧은 값만 담는 select/input 이라, 공유 .form-row select { width:100% }
   규칙을 좁게 덮어써야 한다.

   배치스케줄 JSP 의 지역 style 은 여기와 값이 같으므로 나중에 제거해도 된다.
   ────────────────────────────────────────────────────────────────────── */
.schedule-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule-select-sm {
    width: auto !important;
    min-width: 64px;
}

.schedule-input-sm {
    width: 90px !important;
}


/* ==========================================================================
   공용 토스트 (.v2-toast)   2026.09.09 추가
   - 화면 우측 하단에 잠깐 떴다 사라지는 알림.
   - 관제 화면의 이벤트 알림에 쓰려고 만들었지만, "저장되었습니다" 같은
     가벼운 안내에도 그대로 쓸 수 있게 공용으로 둔다.
   - .v2-alert 와 같은 이유로 body 직속에 붙는다. .evt-wrap / .v2-page 의
     리셋이 닿지 않으므로 여기에 자체 box-sizing 리셋을 둔다.
   - 클래스명이 기존 .toast-* 와 겹치지 않게 v2-toast-* 로 접두어를 분리했다.
   ========================================================================== */
.v2-toast-wrap,
.v2-toast-wrap * {
    box-sizing: border-box;
}

/* 토스트가 쌓이는 자리. 알림이 여러 건이면 아래에서 위로 쌓인다. */
.v2-toast-wrap {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10001;          /* .v2-alert(10000) 위에 뜬다 */
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 380px;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    pointer-events: none;    /* 빈 영역이 화면 조작을 막지 않게 한다 */
}

.v2-toast {
    pointer-events: auto;    /* 토스트 자체는 클릭으로 닫을 수 있어야 한다 */
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--v2-line-strong);
    border-left-width: 4px;
    border-radius: var(--v2-radius-sm);
    background: var(--v2-white);
    box-shadow: 0 4px 14px rgba(20, 30, 48, 0.18);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

.v2-toast.is-on {
    opacity: 1;
    transform: translateY(0);
}

.v2-toast-body {
    flex: 1;
    min-width: 0;            /* 긴 문구가 넘칠 때 줄바꿈되도록 */
}

.v2-toast-sj {
    margin: 0 0 4px;
    font-size: var(--v2-font-sm);
    font-weight: 700;
    color: var(--v2-text);
    word-break: break-all;
}

.v2-toast-cn {
    margin: 0;
    font-size: var(--v2-font-xs);
    color: var(--v2-text-soft);
    word-break: break-all;
}

.v2-toast-close {
    flex: none;
    border: 0;
    background: none;
    padding: 0 2px;
    font-size: 15px;
    line-height: 1;
    color: var(--v2-text-muted, #97a0ae);
    cursor: pointer;
}

.v2-toast-close:hover {
    color: var(--v2-text);
}

/* 장비유형 (2026.10.21, 심각도 개념 제거로 교체). 색은 장비유형 배지(.badge-cctv/.badge-wth/.badge-bell)와 같다.
   장비가 없는 일반 안내는 --info. */
.v2-toast--cctv    { border-left-color: #2c5282; }
.v2-toast--weather { border-left-color: #276749; }
.v2-toast--bell    { border-left-color: #c05621; }
.v2-toast--info    { border-left-color: var(--v2-primary); }

/* --------------------------------------------------------------------------
   토스트 글꼴 누수 수정 (2026.10.01, 모든 토스트 공통)
   .v2-toast-sj / .v2-toast-cn 은 <p> 인데 글꼴을 지정하지 않아
   com.css 의 p { font-family:'돋움' } 이 그대로 먹고 있었다.
   -------------------------------------------------------------------------- */
.v2-toast-wrap,
.v2-toast-wrap * {
    font-family: 'Noto Sans KR', '맑은 고딕', 'Malgun Gothic', sans-serif;
}


/* ==========================================================================
   이벤트 알림함 (.v2-noti-*)   2026.10.01 추가
   - 상단 종 아이콘(EgovUnitTop2.jsp)을 누르면 열리는 "내 알림" 목록과, 새 알림 토스트(.v2-toast--noti).
   - 상단 프레임 스크립트(js/egovframework/com/cmm/v2noti.js)가 _content 문서 body 에 붙인다.
     상단 프레임은 높이가 75px 라 그 안에서는 목록을 펼칠 수 없다.
   - 목업 : webapp/mockup/noti-inbox-mockup.html (승인안)

   com.css 전역 규칙이 새어 들어오는 것을 컴포넌트 선택자로 막는다.
     button { background:#4688d2; color:#fff; padding; margin-left:4px; font-weight:600 }
     button:hover { background:#7dabdf }      ← 버튼 호버가 파랗게 칠해지던 원인
     a:hover { color:#000 }
     div,p,h2,button { font-family:'돋움'; font-size:12px; color:#666 }
   그래서 안쪽 button/a/h2 는 위 속성을 전부 다시 선언하고, div/p 는 쓰지 않는다(span/header/footer).
   !important 와 전역 규칙 수정은 쓰지 않는다.
   ========================================================================== */
/* 패널과 알림 토스트가 같은 토큰을 쓴다(글꼴·색·선·그림자 통일). */
.v2-noti-panel,
.v2-toast--noti {
    /* 항목 높이. 모든 항목을 2줄(제목 / 위치·장비·측정값)로 맞춰 고정한다. 6건까지 보이고 넘치면 스크롤 */
    --v2-noti-item-h: 66px;
    --v2-noti-visible: 6;
    --v2-noti-text: #1F2937;
    --v2-noti-sub: #6B7280;
    --v2-noti-line: #E5E7EB;
    --v2-noti-line-soft: #F0F2F5;
    --v2-noti-hover: #F9FAFB;
    --v2-noti-focus: #2563EB;
    --v2-noti-unread: #2563EB;
    --v2-noti-radius: 8px;
    --v2-noti-shadow: 0 12px 32px rgba(17, 24, 39, .14), 0 2px 6px rgba(17, 24, 39, .06);
    --v2-noti-font: 'Noto Sans KR', '맑은 고딕', 'Malgun Gothic', sans-serif;
}
.v2-noti-panel {
    position: fixed; top: 8px; right: 16px; z-index: 10002;
    width: 400px;
    max-width: calc(100vw - 32px);            /* 좁은 화면이면 가용 폭에 맞춘다 */
    max-height: calc(100vh - 16px);           /* _content 높이 안으로 제한 */
    display: flex; flex-direction: column;
    margin: 0; padding: 0;
    border: 1px solid var(--v2-noti-line);
    border-radius: var(--v2-noti-radius);
    background: var(--v2-white, #fff);
    box-shadow: var(--v2-noti-shadow);
    color: var(--v2-noti-text);
    font-size: 14px;
    text-align: left;
    overflow: hidden;                         /* 모서리 8px 안으로 자식을 자른다 */
}
.v2-noti-panel,
.v2-noti-panel * {
    box-sizing: border-box;
    font-family: var(--v2-noti-font);
}
.v2-noti-panel[hidden] { display: none; }

/* 스크린리더 전용 텍스트 */
.v2-noti-sr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 헤더 (고정) ── */
.v2-noti-head {
    flex: none;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 16px;
    border-bottom: 1px solid var(--v2-noti-line);
}
.v2-noti-title { margin: 0; padding: 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--v2-noti-text); }
.v2-noti-count { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--v2-noti-sub); }

/* 모두 읽음 : 읽음 상태만 바꾼다. 사건 조치 완료가 아니다. */
.v2-noti-allread {
    flex: none;
    min-height: 32px; margin: 0; padding: 0 10px;
    border: 0; border-radius: 6px;
    background: transparent; color: #4B5563;
    font-size: 13px; font-weight: 500; line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.v2-noti-allread:hover  { background: #F3F4F6; color: #374151; text-decoration: none; }
.v2-noti-allread:active { background: #E5E7EB; color: #374151; }
.v2-noti-allread:focus  { outline: none; }
.v2-noti-allread:focus-visible { outline: 2px solid var(--v2-noti-focus); outline-offset: 2px; }
.v2-noti-allread:disabled,
.v2-noti-allread:disabled:hover,
.v2-noti-allread:disabled:active {
    background: transparent; color: #9CA3AF; cursor: default;
}

/* ── 목록 (이 영역만 스크롤) ── */
.v2-noti-list {
    flex: 0 1 auto;
    min-height: 0;                            /* flex 자식이 줄어들 수 있게 */
    max-height: calc(var(--v2-noti-item-h) * var(--v2-noti-visible));
    margin: 0; padding: 0; list-style: none;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.v2-noti-item {
    margin: 0; padding: 0;
    border-bottom: 1px solid var(--v2-noti-line-soft);
}
.v2-noti-item:last-child { border-bottom: 0; }

/* 항목 전체가 버튼이다(키보드 조작). com.css button 규칙을 전부 다시 선언한다. */
.v2-noti-item-btn {
    display: grid;
    grid-template-columns: auto 6px minmax(0, 1fr) auto;
    grid-template-areas:
        "sev dot sj   time"
        ".   .   sub  sub";
    align-content: center;
    column-gap: 8px; row-gap: 2px;
    width: 100%;
    height: var(--v2-noti-item-h);
    margin: 0;
    padding: 0 16px 0 13px;
    border: 0;
    border-left: 3px solid #D1D5DB;           /* 장비유형 선(기본 회색). 읽음 여부와 무관하게 유지 */
    border-radius: 0;
    background: transparent;
    color: var(--v2-noti-text);
    font-size: 14px; font-weight: 400; line-height: 1.4;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: background-color .15s ease;
}
.v2-noti-item-btn:hover { background: var(--v2-noti-hover); color: var(--v2-noti-text); }
.v2-noti-item-btn:active { background: #F3F4F6; }
.v2-noti-item-btn:focus { outline: none; }
.v2-noti-item-btn:focus-visible { outline: 2px solid var(--v2-noti-focus); outline-offset: -2px; }

/* 장비유형별 색 (2026.10.21, 심각도 개념 제거로 교체). 장비유형 배지(.badge-cctv/.badge-wth/.badge-bell)와 같은 색.
   .v2-noti-sev 는 이름만 남은 것이고 지금은 장비유형 칩이다. */
.dev-cctv    .v2-noti-item-btn { border-left-color: #2c5282; }
.dev-weather .v2-noti-item-btn { border-left-color: #276749; }
.dev-bell    .v2-noti-item-btn { border-left-color: #c05621; }

.v2-noti-sev {
    grid-area: sev; align-self: start;
    min-width: 36px; padding: 1px 6px;
    border-radius: 4px;
    background: #F3F4F6; color: #4B5563;
    font-size: 12px; font-weight: 700; line-height: 18px; text-align: center;
    white-space: nowrap;
}
.dev-cctv    .v2-noti-sev { background: #ebf4ff; color: #2c5282; }
.dev-weather .v2-noti-sev { background: #e6fffa; color: #276749; }
.dev-bell    .v2-noti-sev { background: #fff3e0; color: #c05621; }

/* 미확인 점. 읽으면 숨기되 자리는 남겨 제목이 움직이지 않게 한다. */
.v2-noti-dot {
    grid-area: dot; align-self: start;
    width: 6px; height: 6px; margin-top: 7px;
    border-radius: 50%;
    background: var(--v2-noti-unread);
    visibility: hidden;
}
.is-unread .v2-noti-dot { visibility: visible; }

.v2-noti-sj {
    grid-area: sj; min-width: 0;
    font-size: 14px; font-weight: 400; line-height: 20px; color: var(--v2-noti-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.is-unread .v2-noti-sj { font-weight: 700; }

.v2-noti-time {
    grid-area: time; align-self: start;
    font-size: 12px; line-height: 20px; color: var(--v2-noti-sub);
    white-space: nowrap;
}
/* 둘째 줄 : 위치 · 장비ID · (기상이면) 측정값 */
.v2-noti-sub {
    grid-area: sub; min-width: 0;
    font-size: 13px; line-height: 18px; color: var(--v2-noti-sub);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.v2-noti-empty {
    padding: 40px 16px;
    text-align: center; font-size: 14px; color: var(--v2-noti-sub);
}

/* ── 하단 (고정) ── */
.v2-noti-foot {
    flex: none;
    padding: 8px 12px 10px;
    border-top: 1px solid var(--v2-noti-line);
    text-align: center;
}
.v2-noti-range { display: block; margin: 0 0 4px; font-size: 12px; color: var(--v2-noti-sub); }
.v2-noti-more {
    display: block;
    padding: 7px 10px;
    border-radius: 6px;
    color: var(--v2-primary, #1f5fbf);
    font-size: 13px; font-weight: 500;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.v2-noti-more:hover  { background: #F3F6FB; color: var(--v2-primary-hover, #1750a8); text-decoration: none; }
.v2-noti-more:active { background: #E8EEF8; }
.v2-noti-more:focus  { outline: none; }
.v2-noti-more:focus-visible { outline: 2px solid var(--v2-noti-focus); outline-offset: 2px; }

/* ── 알림 토스트 (.v2-toast--noti) ──
   알림 목록 항목과 같은 구조·클래스(.v2-noti-sev/sj/time/sub)를 쓴다.
   "저장되었습니다" 같은 일반 토스트(.v2-toast 만 쓰는 것)는 바뀌지 않는다. */
.v2-toast.v2-toast--noti {
    width: 360px; max-width: 100%;
    align-items: center;
    gap: 6px;
    padding: 12px 8px 12px 13px;
    border: 1px solid var(--v2-noti-line);
    border-left-width: 3px;
    border-radius: var(--v2-noti-radius);
    background: var(--v2-white, #fff);
    box-shadow: var(--v2-noti-shadow);
}
.v2-toast--noti.dev-cctv    { border-left-color: #2c5282; }
.v2-toast--noti.dev-weather { border-left-color: #276749; }
.v2-toast--noti.dev-bell    { border-left-color: #c05621; }

.v2-toast--noti .v2-toast-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "sev sj  time"
        ".   sub sub";
    column-gap: 8px; row-gap: 2px;
    color: var(--v2-noti-text);
}
/* 토스트는 새로 온 것이라 미확인 점 대신 제목을 늘 굵게 */
.v2-toast--noti .v2-noti-sj { font-weight: 700; }
.v2-toast--noti .v2-noti-pin { color: #B42318; }

/* 닫기 버튼. com.css 의 button 전역 규칙(margin-left·font-weight·파란 hover)을 막는다. */
.v2-toast--noti .v2-toast-close {
    flex: none; align-self: flex-start;
    width: 26px; height: 26px; margin: 0; padding: 0;
    border: 0; border-radius: 6px;
    background: transparent; color: #9CA3AF;
    font-size: 16px; font-weight: 400; line-height: 26px; text-align: center;
    transition: background-color .15s ease, color .15s ease;
}
.v2-toast--noti .v2-toast-close:hover  { background: #F3F4F6; color: #374151; }
.v2-toast--noti .v2-toast-close:active { background: #E5E7EB; }
.v2-toast--noti .v2-toast-close:focus  { outline: none; }
.v2-toast--noti .v2-toast-close:focus-visible { outline: 2px solid var(--v2-noti-focus); outline-offset: 1px; }


/* ==========================================================================
   공용 대시보드 섹션 (.v2-dash-*)   2026.09.09 추가 / 2026.09.18 개정
   - 목록 위에 얹는 "현황/차트" 상자. 접었다 펼 수 있다.

   [2026.09.18 개정]
   같은 현황판 디자인이 네 벌로 흩어져 있었다.
     ① srm-trend-*      utl/sys/srm/EgovMntrngServerList.jsp   (지역 style)
     ② trm-dashboard-*  utl/sys/trm/EgovTrsmrcvMntrngList.jsp  (지역 style)
     ③ v2-dash-*        여기 (②를 승격해 만들었으나 ②는 이관하지 않아 둘이 공존했다)
     ④ 장애 통계        신규 예정
   ①을 기준으로 삼아 그 값을 그대로 올린다. **기준 화면(①)의 겉모습이 바뀌지 않는 것이
   이 개정의 조건이다.** ②③은 ① 모습으로 바뀐다.

   바뀐 값은 줄마다 "원래:" 로 이전 값을 적어뒀다. CSS 주석은 중첩이 안 돼서
   옛 블록을 통째로 주석 처리할 수 없기 때문이다(이전 전문은 git 이력 참고).
   ========================================================================== */
.v2-dash-section {
    /* 현황판 전용 토큰.
       공용 --v2-line / --v2-radius 와 값이 달라 따로 둔다. 기준 화면(①)의 값이며
       여기를 바꾸면 그 화면이 바뀐다. 화면에서 덮어쓰라고 열어둔 값은
       --v2-dash-canvas-h 하나뿐이다.

       사용 : .v2-dash-section { --v2-dash-canvas-h: 160px; }  (해당 JSP 지역 style) */
    --v2-dash-line: #DCE6F2;
    --v2-dash-line-soft: #EDF2FA;
    --v2-dash-radius: 8px;
    --v2-dash-canvas-h: 130px;
    /* 격자 열 수. 아래 .v2-dash-grid 주석 참고 — 화면마다 다르다. */
    --v2-dash-cols: 3;
    /* 패널 배경. ①(srm)은 흰 섹션 위 흰 패널이라 1px 테두리로만 구분됐고,
       ②(trm)는 옅은 파랑을 깔아 경계가 분명했다. ② 값을 택했다(2026.09.18 결정).
       .v2-dash-period 뱃지 배경과 같은 값이라 현황판 안에서 일관된다. */
    --v2-dash-panel-bg: #F5F8FC;
    /* 상태 점의 초록/빨강. 공용 --v2-ok(#1a7f5a) / --v2-danger(#b4232a) 와 값이 다르다.
       기준 화면을 바꾸지 않기로 해서 ① 값을 유지한다.
       나중에 색 토큰을 정리할 때 이 두 값이 통합 후보로 남는다. */
    --v2-dash-ok: #2E9E5B;
    --v2-dash-bad: #C0392B;

    margin-bottom: 18px;                     /* 원래: 16px */
    border: 1px solid var(--v2-dash-line);   /* 원래: var(--v2-line) */
    border-radius: var(--v2-dash-radius);    /* 원래: var(--v2-radius) */
    background: var(--v2-white);
}

/* 제목과 설명문의 글자 밑선을 맞추려고 baseline 이다.
   그래서 세로 가운데에 놓여야 하는 것(메타 영역, 셰브런)은 각자 align-self 로 되돌린다. */
.v2-dash-header {
    display: flex;
    align-items: baseline;                   /* 원래: center */
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;                               /* 원래: 12px */
    padding: 16px 20px;                      /* 원래: 14px 20px */
    cursor: pointer;
}

.v2-dash-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.v2-dash-header h2.v2-dash-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #2050ac;
}

.v2-dash-desc {
    margin-left: 4px;
    font-size: 13px;                         /* 원래: var(--v2-font-xs) 14px */
    color: #7C8AA5;                          /* 원래: #94a0b3 */
}

/* 2026.09.18 승격 : 헤더 우측의 기간 뱃지 · 새로고침 버튼 자리. */
.v2-dash-meta {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 12px;
    font-size: 12px;
    color: #7C8AA5;
}

.v2-dash-period {
    padding: 3px 10px;
    border: 1px solid var(--v2-dash-line);
    border-radius: 999px;
    background: #F5F8FC;
    color: #1F2A44;
    font-size: 12px;
}

.v2-dash-refresh {
    height: 26px;
    padding: 0 12px;
    border: 1px solid #C7D7F5;
    border-radius: var(--v2-radius-sm);
    background: var(--v2-white);
    color: #2457bd;
    font-size: 12px;
    cursor: pointer;
}

.v2-dash-refresh:hover {
    background: #EDF2FC;
}

/* 조회 중에는 연하게 + 못 누르게. */
.v2-dash-refresh.is-loading {
    opacity: .55;
    pointer-events: none;
}

.v2-dash-body {
    padding: 0 20px 20px;
}

.v2-dash-body.is-collapsed {
    display: none;
}

/* 한 줄에 몇 칸인지는 화면이 정한다. 좁아지면 둘 → 하나로 떨어진다.
   원래는 auto-fit minmax(280px,1fr) 이었는데, 칸 수가 창 너비에 따라 멋대로 바뀌어
   예측이 안 됐다. 그렇다고 3열로 못박을 수도 없다 —
     · 시스템모니터링은 패널이 서버 대수만큼 동적으로 늘어나므로 3열이 맞고
     · 알림관리는 패널이 2개 고정이라 3열이면 한 칸이 빈 채로 남는다.
   그래서 --v2-dash-canvas-h 와 같이 화면에서 덮어쓰는 값으로 둔다.

   사용 : .v2-dash-section { --v2-dash-cols: 2; }   (해당 JSP 지역 style) */
.v2-dash-grid {
    display: grid;
    grid-template-columns: repeat(var(--v2-dash-cols, 3), 1fr);   /* 원래: repeat(auto-fit, minmax(280px, 1fr)) */
    gap: 16px;
}

/* 좁아지면 열 수를 줄인다. min() 을 쓰는 이유 :
   화면이 --v2-dash-cols: 2 로 덮어쓴 경우 여기서 2 로 "올리면" 안 되기 때문이다. */
@media (max-width: 1200px) {
    .v2-dash-grid { grid-template-columns: repeat(min(var(--v2-dash-cols, 3), 2), 1fr); }
}

@media (max-width: 600px) {
    .v2-dash-grid { grid-template-columns: 1fr; }
}

.v2-dash-panel {
    border: 1px solid var(--v2-dash-line);   /* 원래: var(--v2-line-soft) */
    border-radius: var(--v2-dash-radius);    /* 원래: var(--v2-radius-sm) */
    padding: 14px 16px;                      /* 원래: 14px */
    background: var(--v2-dash-panel-bg);     /* 원래: var(--v2-white) */
}

/* 제목만 있는 단순 패널용. 아래 -panel-header 를 쓰는 경우에는 h3 를 쓰지 않는다. */
.v2-dash-panel h3 {
    margin: 0 0 10px;
    font-size: var(--v2-font-xs);
    font-weight: 700;
    color: #33425c;
}

/* 2026.09.18 승격 : 패널 제목줄(좌 제목 + 우 상태/값) · 부제 · 상태 점.
   마크업 :
     <div class="v2-dash-panel-header">
         <span class="v2-dash-panel-nm">app-server-01</span>
         <span class="v2-dash-panel-sttus"><i class="v2-dash-dot is-ok"></i>정상</span>
     </div>
     <div class="v2-dash-panel-sub">192.168.0.101</div>          */
.v2-dash-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.v2-dash-panel-nm {
    font-size: var(--v2-font-xs);
    font-weight: 700;
    color: #1F2A44;
}

.v2-dash-panel-sttus {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #7C8AA5;
}

.v2-dash-panel-sub {
    margin-top: 2px;
    font-size: 12px;
    color: #7C8AA5;
}

.v2-dash-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #9aa7bd;
}

.v2-dash-dot.is-ok  { background: var(--v2-dash-ok); }
.v2-dash-dot.is-bad { background: var(--v2-dash-bad); }

.v2-dash-canvas-wrap {
    position: relative;
    height: var(--v2-dash-canvas-h);         /* 원래: 180px 고정 */
    margin-top: 10px;
}

/* 2026.09.18 승격 : 패널 하단 요약 수치줄.
   이게 있어서 별도의 숫자 카드(KPI 타일) 클래스를 만들지 않는다.
     <div class="v2-dash-summary">
         <span>CPU <strong>38%</strong></span>
         <span>MEM <strong>64%</strong></span>
     </div>                                                      */
.v2-dash-summary {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--v2-dash-line-soft);
    font-size: 12px;
    color: #7C8AA5;
}

.v2-dash-summary strong {
    color: #1F2A44;
    font-size: 13px;
    font-weight: 700;
    /* 숫자가 세로로 줄 맞게. 패널마다 자릿수가 달라 들쭉날쭉했다. */
    font-variant-numeric: tabular-nums;
}

/* 차트를 못 그릴 때(데이터 없음)의 자리.
   높이를 차트와 같은 변수로 묶어야 한 패널만 비었을 때 칸이 튀지 않는다. */
.v2-dash-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--v2-dash-canvas-h);         /* 원래: 180px 고정 */
    margin-top: 10px;
    font-size: var(--v2-font-sm);
    color: var(--v2-text-muted, #97a0ae);
}

/* 2026.09.18 승격 : 현황판 "본문 전체"가 비었을 때의 한 줄 안내.
   (불러오는 중 / 등록된 서버가 없습니다 …)
   위 .v2-dash-empty 와 헷갈리지 말 것 —
     .v2-dash-empty : 패널 하나의 "차트 자리"를 대신한다. 높이가 차트와 같다.
     .v2-dash-msg   : 패널을 아예 못 그릴 때 격자 자리에 놓는 문구다. 높이가 내용만큼이다.

   ※ 격자 안에 넣으면 첫 칸(1/3 폭)에만 놓인다. 시스템모니터링의 현행 동작이 그러해서
      그대로 뒀다. 가운데로 펼치려면 쓰는 쪽에서 grid-column: 1 / -1 을 주면 된다. */
.v2-dash-msg {
    padding: 24px 0;
    text-align: center;
    color: #7C8AA5;
    font-size: 13px;
}

/* 2026.09.18 승격 : 도넛·파이 옆에 붙는 범례.
   차트 아래에 세로 목록으로 놓는다(② trm 방식). SVG 안에 글자를 박지 않으므로
   선택·복사가 되고 화면낭독기도 읽는다.
     <div class="v2-dash-canvas-wrap"><canvas id="…"></canvas></div>
     <ul class="v2-dash-legend" id="…">
         <li><i class="v2-dash-legend-dot" style="background:#3668A8"></i>
             <span class="v2-dash-legend-label">네트워크</span>
             <span class="v2-dash-legend-value">42건 · 44%</span></li>
     </ul>
   색은 인라인 style 로 준다 — 항목이 데이터에 따라 달라져 CSS 로 못 박을 수 없다. */
.v2-dash-legend {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.v2-dash-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2F3B52;
}

.v2-dash-legend-dot {
    width: 8px;
    height: 8px;
    /* flex 항목이라 라벨이 길면 점이 찌그러진다. min-width 로 막는다. */
    min-width: 8px;
    border-radius: 50%;
}

/* 라벨이 남는 폭을 다 먹어서 값이 오른쪽 끝에 붙는다. */
.v2-dash-legend-label { flex: 1; }

.v2-dash-legend-value {
    font-weight: 600;
    color: #3A5A9B;
    font-variant-numeric: tabular-nums;
}

.v2-dash-legend-empty { color: #8a97ad; }

/* ============================================================
   2026.10.06 추가 : 현황판 숫자 카드(KPI 타일)
   위 .v2-dash-summary 주석에 "별도 숫자 카드 클래스를 만들지 않는다" 고 적었지만,
   알림관리 발송결과를 도넛 → 숫자 카드로 바꾸면서(사장님 목업) 한 줄 요약으론 부족해 새로 둔다.
   마크업 :
     <div class="v2-dash-kpi-total">총 <strong>12,344</strong> 건</div>
     <div class="v2-dash-kpi-grid">
         <div class="v2-dash-kpi is-ok">
             <div class="v2-dash-kpi-label"><i class="v2-dash-kpi-dot"></i>성공</div>
             <div class="v2-dash-kpi-value"><strong>12,322</strong> 건</div>
             <div class="v2-dash-kpi-rate">99.82%</div>
             <a class="v2-dash-kpi-link" href="…">이력 보기 →</a>   (선택)
         </div>
     </div>
   색 : 상태 토큰(--v2-ok / --v2-danger / --v2-warn + 각 -bg)만 쓴다.
     큰 숫자·비율(19px 이상 굵게 = 큰 글자, 기준 3:1) 대비 : ok 4.39 · danger 5.64 · warn 3.09.
     warn 은 작은 글자 기준(4.5:1)에 못 미치므로 라벨·단위·링크는 상태색을 쓰지 않는다.
     색만으로 구분하지 않도록 라벨 글자를 항상 같이 둔다.
   ============================================================ */
.v2-dash-kpi-total {
    margin: 6px 0 14px;
    font-size: var(--v2-font-sm);
    color: var(--v2-text);
}

.v2-dash-kpi-total strong {
    margin: 0 4px;
    font-size: 34px;
    font-weight: 700;
    color: #1F2A44;
    font-variant-numeric: tabular-nums;
}

.v2-dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .v2-dash-kpi-grid { grid-template-columns: 1fr; }
}

.v2-dash-kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: var(--v2-dash-radius);
    background: var(--v2-bg-soft);
    box-sizing: border-box;
}

.v2-dash-kpi.is-ok   { background: var(--v2-ok-bg); }
.v2-dash-kpi.is-bad  { background: var(--v2-danger-bg); }
.v2-dash-kpi.is-warn { background: var(--v2-warn-bg); }

.v2-dash-kpi-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--v2-font-xs);
    font-weight: 600;
    color: var(--v2-text);
}

.v2-dash-kpi-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
}

.v2-dash-kpi-value {
    font-size: var(--v2-font-xs);
    color: var(--v2-text);
}

.v2-dash-kpi-value strong {
    margin-right: 3px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.v2-dash-kpi-rate {
    font-size: 19px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.v2-dash-kpi.is-ok   .v2-dash-kpi-dot,
.v2-dash-kpi.is-ok   .v2-dash-kpi-value strong,
.v2-dash-kpi.is-ok   .v2-dash-kpi-rate { color: var(--v2-ok); }
.v2-dash-kpi.is-bad  .v2-dash-kpi-dot,
.v2-dash-kpi.is-bad  .v2-dash-kpi-value strong,
.v2-dash-kpi.is-bad  .v2-dash-kpi-rate { color: var(--v2-danger); }
.v2-dash-kpi.is-warn .v2-dash-kpi-dot,
.v2-dash-kpi.is-warn .v2-dash-kpi-value strong,
.v2-dash-kpi.is-warn .v2-dash-kpi-rate { color: var(--v2-warn); }

.v2-dash-kpi-link {
    align-self: flex-end;
    margin-top: auto;
    padding-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-primary);
    text-decoration: none;
}

.v2-dash-kpi-link:hover { text-decoration: underline; }

/* 접기 화살표는 새로 만들지 않는다.
   공용 .chevron-icon (위 937행, 2026-07-13 승격) 을 그대로 쓴다 — ①②가 이미 그 SVG 를 쓰고 있다.
     <svg class="chevron-icon" id="…ToggleIcon" width="22" height="22" viewBox="0 0 24 24" aria-hidden="true">
         <path d="M6 9l6 6 6-6" fill="none" stroke="currentColor" stroke-width="2.4"
               stroke-linecap="round" stroke-linejoin="round"/>
     </svg>
   셰브런은 제목 왼쪽(.v2-dash-title-wrap 의 첫 자식)에 둔다.
   title-wrap 이 baseline 정렬이라 셰브런만 가운데로 되돌린다
   — ①②가 각자 #srmTrendToggleIcon / #trmDashboardToggleIcon 로 하던 것을 여기로 모은다.

   ※ 폐기 : .v2-dash-chevron (알림관리가 쓰던 `▼` 텍스트 방식).
      셰브런이 두 벌이 되므로 알림관리를 위 SVG 로 바꾸면서 없앴다. */
.v2-dash-title-wrap .chevron-icon,
.v2-dash-title-wrap .v2-chevron-icon {
    align-self: center;
}

/* ============================================================
   eGov 첨부파일(atchFileId) 영역
   2026.09.10 추가. 시스템이력관리(sym/log/slg) com-v2 이관에서 처음 필요해졌다.

   첨부 목록 자체는 공통 JSP(cmm/fms/EgovFileList.jsp)가 그린다.
   그 공통 JSP 를 고치면 게시판 등 다른 화면이 전부 영향을 받으므로 손대지 않고,
   여기서 .v2-file-box 로 감싼 안쪽만 스코프를 걸어 모양을 맞춘다.
   ============================================================ */

.v2-file-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 620px;
}

/* 안내문은 .form-help 를 쓴다. 박스가 gap 으로 간격을 주므로 위 여백만 뺀다. */
.v2-file-box > .form-help { margin: 0; }

/* 공통 파일목록 JSP 가 뿌리는 표. id 로 오기 때문에 스코프 안에서만 잡는다. */
.v2-file-box #egov_file_view_table {
    width: 100%;
    margin: 0;
    border: 1px solid #e2e8f1 !important;
    border-radius: 4px;
    background: #fbfcfe;
    border-collapse: collapse;
}

.v2-file-box #egov_file_view_table td {
    padding: 8px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
    font-size: var(--v2-font-sm);
    color: #40516a;
}

.v2-file-box #egov_file_view_table tr:last-child td {
    border-bottom: 0 !important;
}

.v2-file-box #egov_file_view_table a {
    color: #2457bd;
    text-decoration: none;
}

.v2-file-box #egov_file_view_table a:hover {
    text-decoration: underline;
}

/* 삭제 아이콘. 공통 JSP 가 img 로 뿌린다. */
.v2-file-box #egov_file_view_table img.cursor {
    margin-left: 8px;
    cursor: pointer;
    vertical-align: middle;
}

/* MultiSelector 가 선택한 파일을 쌓는 영역 */
.v2-file-box #egovComFileList {
    font-size: var(--v2-font-sm);
    color: #40516a;
}

/* 목록 화면의 첨부 유무 표시 */
.clip {
    color: #4a5b76;
    font-size: var(--v2-font-xs, 13px);
}

.clip-none {
    color: #c3cbd8;
}

/* 이력내용처럼 줄바꿈을 그대로 보여야 하는 읽기전용 값 */
.form-value--pre,
.v2-form-value--pre {
    display: block;
    padding: 10px 12px;
    white-space: pre-wrap;
    line-height: 1.7;
}


/* ============================================================================
   게시판 댓글 (/cop/cmt) — 2026.09.28 승격

   구식 마크업을 걷어내고 올린 것이다.
     - 목록  : <div class="reply"> + .top / .txt / .bottom / .btn_s
     - 입력  : <div class="wTableFrm"> + <table class="board_list"> (textarea 가 표 안에 있었다)
     - 페이징: <div class="paging">

   댓글은 c:import 로 들어오고 그 자리가 .evt-wrap 바깥이다. 게다가 붙는 화면이 둘인데
   (EgovArticleDetail / EgovArticleBlogDetail) 블로그형에는 .evt-wrap 이 아예 없다.
   그래서 화면 쪽 래퍼에 기대지 않고 .cmt-section 이 스스로 글꼴·박스모델을 갖는다.
   (글꼴은 위쪽 폰트 규칙에 .cmt-section 계열을 나란히 올려 두었다)
============================================================================ */

/* 폭을 제한하지 않는다. 본문(.article-view)에 max-width 가 없어 부모 폭을 그대로 채우므로,
   댓글만 max-width + margin:auto 를 주면 넓은 화면에서 혼자 가운데로 몰려 보인다.

   좌우 여백 64px 은 본문 왼쪽 끝선을 맞춘 값이다.
   댓글 c:import 는 두 화면 모두 .board 바깥이라 .board 의 padding:30px 을 받지 못한다.
     본문 : .board(30px) + .article-view(34px) = 64px
     댓글 : .cmt-section(64px)
   .board 의 padding 이 바뀌면 이 값도 같이 맞춰야 한다. */
.cmt-section {
    box-sizing: border-box;
    margin: 18px 0 40px;
    padding: 0 64px;
}

/* com-v2.css 에는 전역 box-sizing 리셋이 없다. 이 블록 안에서만 맞춘다. */
.cmt-section *,
.cmt-section *::before,
.cmt-section *::after {
    box-sizing: border-box;
}

.cmt-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1a2535;
}

.cmt-count {
    padding: 1px 8px;
    border-radius: 10px;
    background: #eaf1fb;
    color: #2457bd;
    font-size: var(--v2-font-xs);
    font-weight: 700;
}

/* ── 목록 ───────────────────────────────────────────────── */

.cmt-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid #d8e2ef;
    list-style: none;
}

.cmt-item {
    padding: 16px 2px;
    border-bottom: 1px solid #e8eef6;
}

.cmt-item-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.cmt-writer {
    font-size: var(--v2-font-sm);
    font-weight: 700;
    color: #1a2535;
}

.cmt-date {
    color: #8492a6;
    font-size: var(--v2-font-xs);
}

/* 본인 글 표시. 수정·삭제가 왜 나에게만 보이는지 알려준다. */
.cmt-mine {
    padding: 1px 6px;
    border: 1px solid #bcd3f2;
    border-radius: 3px;
    background: #f4f8fe;
    color: #2457bd;
    font-size: 11px;
    font-weight: 700;
}

.cmt-item-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.cmt-btn {
    padding: 3px 10px;
    border: 1px solid #ccd6e4;
    border-radius: 4px;
    background: var(--v2-white);
    color: #55637a;
    font-family: inherit;
    font-size: var(--v2-font-xs);
    line-height: 1.5;
    cursor: pointer;
}

.cmt-btn:hover {
    background: #f3f6fb;
    border-color: #a9bcd6;
}

.cmt-btn--delete {
    border-color: #efc2c2;
    color: #d83b3b;
}

.cmt-btn--delete:hover {
    background: #fff5f5;
    border-color: #e36464;
}

.cmt-text {
    margin: 0;
    color: #35425a;
    font-size: var(--v2-font-sm);
    line-height: 1.7;
    word-break: break-all;
    /* 본문은 <br/> 로 줄바꿈이 들어오므로 pre-line 은 쓰지 않는다. */
}

/* 목록이 비면 .cmt-list 자체가 그려지지 않는다. 위 테두리를 여기서 대신 잡는다. */
.cmt-empty {
    padding: 34px 0;
    border-top: 1px solid #d8e2ef;
    border-bottom: 1px solid #e8eef6;
    color: #8492a6;
    font-size: var(--v2-font-sm);
    text-align: center;
}

/* 수정 중인 댓글을 목록에서 짚어준다. 입력창이 아래에 있어 무엇을 고치는 중인지 놓치기 쉽다. */
.cmt-item.is-editing {
    background: #f7faff;
    box-shadow: inset 3px 0 0 #2457bd;
}

/* ── 입력 ───────────────────────────────────────────────── */

.cmt-form {
    margin-top: 18px;
}

.cmt-form-label {
    display: block;
    margin-bottom: 7px;
    font-size: var(--v2-font-sm);
    font-weight: 700;
    color: #1a2535;
}

.cmt-form-label .pilsu {
    color: #d83b3b;
}

.cmt-textarea {
    display: block;
    width: 100%;
    min-height: 92px;
    padding: 11px 13px;
    border: 1px solid #ccd6e4;
    border-radius: 6px;
    background: var(--v2-white);
    color: #35425a;
    font-family: inherit;
    font-size: var(--v2-font-sm);
    line-height: 1.6;
    resize: vertical;
}

.cmt-textarea:focus {
    border-color: #2457bd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(36, 87, 189, 0.12);
}

.cmt-form-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.cmt-error {
    color: #d83b3b;
    font-size: var(--v2-font-xs);
}

.cmt-form-btns {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* 수정 중일 때만 나오는 안내. .cmt-form 에 is-editing 이 붙으면 보인다. */
.cmt-editing-note {
    display: none;
    align-items: center;
    gap: 6px;
    color: #2457bd;
    font-size: var(--v2-font-xs);
    font-weight: 700;
}

.cmt-form.is-editing .cmt-editing-note {
    display: flex;
}

@media (max-width: 760px) {
    /* 좁은 화면에서는 .board 의 padding 도 줄어들므로 여백을 함께 좁힌다. */
    .cmt-section {
        padding: 0 22px;
    }

    .cmt-item-actions {
        width: 100%;
        margin-top: 6px;
        margin-left: 0;
    }

    .cmt-form-foot {
        flex-wrap: wrap;
    }

    .cmt-form-btns {
        width: 100%;
        margin-left: 0;
    }
}
