/*
    공고 분류 표시 안내 모달 — CI3 공고 분류 안내 레이어 이식.
    배지(.ij_tag) 색·크기는 tag-badge.css. 여기는 오버레이·팝업·그리드·표 배치만.
*/

/* 덮개 = 원문 #blackPanel(opacity50.png = 검정 50%) · 페이드 = 원문 jQuery UI 기본값: 열기 `$.fn.showBlackPanel` 500ms
   (common.js:568-596) · 닫기 `hideBlackPanel()` 400ms · swing 곡선 — 메인 카카오 레이어(right.css)와 같은 패턴.
   is-open 은 JS 가 hidden 을 뗀 다음 프레임에 붙인다. */
.bid_tag_info {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0; transition: opacity 0.4s cubic-bezier(0.37, 0, 0.63, 1);
}
.bid_tag_info.is-open { opacity: 1; transition-duration: 0.5s; }
.bid_tag_info[hidden] { display: none; }

/* 높이 584 고정 = 원문 #bid_tag_info_content(common_con_name.css:229). 안의 합(제목 60 + 격자 150 + 표 352)보다 22 크고,
   그 남는 바닥이 원문 표 아래 여백이다(표에 margin-bottom 을 두지 않는다). */
.bid_tag_info__popup {
    width: 900px; height: 584px; max-width: 94vw; max-height: 90vh; overflow-y: auto;
    background: #fff; /* 그림자·둥근 모서리 없음 = 원문 .ij_popup(ij_layout.css:2525) · #bid_tag_info_content(radius 주석 처리) */
}

/* 헤더(브랜드색 바) — CI3 `.bid_tag_info_title` 조판: 60px 바에 23px 제목을 line-height 로 수직정렬한다.
   padding 으로 높이를 만들지 않는 게 원본이라 그대로 따른다(패딩판은 제목이 16px 로 작아진다). */
.bid_tag_info__head {
    position: relative; padding: 0 0 0 20px; background: var(--brand-primary); color: #fff;
    font-size: 23px; line-height: 60px;
}
.bid_tag_info__head b { font-weight: 700; }
/* 닫기 X = 원문 svg 그대로(인라인 · 박스 25×30 = common_con_name.css:235).
   원문은 폭 25 에 맞춰 비율로 그리므로 배경도 폭 25 · 높이 auto */
.bid_tag_info__close {
    position: absolute; top: 15px; right: 20px; width: 25px; height: 30px; padding: 0;
    background: url(/images/shared/bid/x_mark_icon_white.svg) no-repeat 0 0 / 25px auto; border: 0; cursor: pointer;
}

/* 두 블록의 좌우 인셋이 서로 다른 게 원본이라(그리드 20/10 · 표 20/20) body 는 여백을 갖지 않는다. */
.bid_tag_info__body { padding: 0; }

/* 상단 배지 그리드(5열) — CI3 는 `.row > .col` 6줄, 줄높이 22px(label margin 3px 0 !important 가 든 인라인 줄상자 ·
   common_con_name.css:112)·줄간격 0. 실측(1920): 딱지는 줄 위 4px · 설명글 글자는 줄 위 6px · 딱지와 설명글
   사이에 원문 마크업의 공백 글자 3.2px 가 있다 — flex 줄에서 같은 자리가 나오게 여백으로 둔다. */
.bid_tag_info__grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    padding: 9px 10px 9px 20px;
}
.bid_tag_info__cell { display: flex; align-items: flex-start; gap: 0; height: 22px; }
.bid_tag_info .ij_tag { width: 42px; }
.bid_tag_info__cell .ij_tag { margin: 4px 0 0; }
/* 설명글은 CI3 가 돋움으로 그린다(딱지와 같은 계보 — tag-badge.css 참조). 폰트가 갈리면 12px 글줄
   높이가 14↔17 로 벌어져 줄높이가 안 맞는다. 딱지와의 간격 = 공백 3.2 + 원본의 좌패딩 5. */
.bid_tag_info__cell .category {
    margin: 5px 0 0 3.2px; padding-left: 5px; font-size: 12px; color: #202020;
    font-family: 돋움, Dotum, 돋움체, DotumChe, sans-serif;
}

/* 하단 설명 표(배지 th + 설명 td, 2쌍/행) — 행높이 27px, 셀 패딩은 원본의 비대칭(좌 10) 그대로.
   아래 여백은 팝업 고정 높이 584 가 남기는 22 (위 .bid_tag_info__popup 주석). */
.bid_tag_info__table { width: 860px; margin: 0 20px; border-collapse: collapse; }
/* 칸 높이 24 + 안쪽 여백 1 = 원문(common_con_name.css:243 th height 24 · td padding 1). line-height 를 24 로 박으면
   글자가 0.5px 위로 올라간다(원문은 line-height normal 의 19px 글줄을 24 안에 가운데 둔다). */
.bid_tag_info__table th,
.bid_tag_info__table td { border: 1px solid #e1e1e1; font-size: 13px; line-height: normal; height: 24px; vertical-align: middle; }
/* 표 윗선 = 원문 common_con_name.css:245~246 첫 행 칸 `border-top:1px solid #000`(빠지면 #e1e1e1 로 옅어진다) */
.bid_tag_info__table tr:first-child th,
.bid_tag_info__table tr:first-child td { border-top: 1px solid #000; }
/* 배지 열 = **셀 전체가 배지**다(CI3 는 tag 클래스를 `<th>` 에 직접 건다 — 회색 칸에 작은 칩이 아니다).
   마크업은 그대로 두고 안의 딱지를 셀에 꽉 채워 같은 그림을 만든다 — 색 원천은 tag-badge.css 한 벌로 남는다.
   `.ij_tag` 의 42px 고정은 **그리드 쪽에서 라이브와 일치**하므로 전역으로 풀지 말 것(여기서만 예외). */
.bid_tag_info__table th { width: 67px; padding: 0; text-align: center; font-weight: 400; }
.bid_tag_info__table th .ij_tag {
    /* 높이 26 = 원문 th 색 영역(내용 24 + 안쪽 여백 1+1 · common_con_name.css:243) — 25 면 칸마다 1px 흰 틈이 생겨 구분선이 두껍고 옅게 보인다 */
    display: block; width: auto; height: 26px; box-sizing: border-box; line-height: normal; padding: 3.5px 0 0;
    font-size: 13px; font-family: inherit; letter-spacing: inherit; cursor: default;
    /* letter-spacing inherit — 원문 th 는 딱지 클래스만 빌려 색을 칠하고 글자는 표 자간(-0.65) 그대로다. 공용 .ij_tag.mutual_tag 의 -2px 가 들어오면 「상호진출」이 5.5px 좁아진다(실측) */
    /* 글자 위치 = 원문 th(높이 24 · 안쪽 여백 1)의 19px 글줄 가운데(위에서 3.5) — line-height 26 은 0.5px 위로 올라간다 */
}
.bid_tag_info__table td { padding: 1px 1px 1px 10px; color: #666; }
