/* G2B 사전규격 검색 */
html, body { background:#fff; }
body { font-family: "Noto Sans KR","Malgun Gothic","맑은 고딕",sans-serif; color:#222; margin:0; }
.g2b-wrap {
    width: 850px;
    margin: 0 auto;
    padding: 16px 16px 24px;
    box-sizing: border-box;
}
.g2b-foot {
    width: 850px;
    margin: 0 auto;
    padding: 12px 16px 18px;
    border-top: 1px solid #e2e7ee;
    color: #8a98b0;
    font-size: 12px;
    text-align: center;
    box-sizing: border-box;
}
.g2b-foot a { color:#5773a0; text-decoration:none; }
.g2b-foot a:hover { text-decoration:underline; }
.g2b-header { display:flex; align-items:center; justify-content:space-between; border-bottom:2px solid #2b5b9d; padding-bottom:8px; margin-bottom:14px; }
.g2b-header h2 { margin:0; font-size:20px; color:#1a3f74; font-weight:700; }
.g2b-header .actions .btn { margin-left:4px; }

/* 탭 + 검색 박스: 하나의 통합 패널처럼 보이도록 묶음 */
.g2b-tabs {
    display: flex;
    margin: 0;
    padding: 0;
    background: #eef3fa;
    border: 1px solid #d6dfeb;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}
.g2b-tabs a {
    display: inline-block;
    padding: 9px 24px;
    color: #5773a0;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-right: 1px solid #d6dfeb;
    transition: background-color .15s ease, color .15s ease;
}
.g2b-tabs a:last-child { border-right: none; }
.g2b-tabs a:hover { background:#e2eaf5; color:#1a3f74; }
.g2b-tabs a.active {
    background: #f7f9fc;          /* 검색 박스와 동일 배경 → 한 덩어리로 연결 */
    color: #1a3f74;
    box-shadow: inset 0 -3px 0 #2b5b9d; /* 활성 탭 하단 강조선 */
}

.g2b-search {
    background: #f7f9fc;
    border: 1px solid #d6dfeb;
    border-top: none;             /* 탭 컨테이너 하단 테두리에 자연 연결 */
    border-radius: 0 0 4px 4px;
    padding: 14px 16px 12px;
    margin: 0 0 14px 0;
}
.g2b-search .form-row { margin-bottom:6px; }
.g2b-search label { font-size:13px; color:#39507a; font-weight:600; margin-bottom:2px; padding-top:6px; }
.g2b-search .form-control { font-size:13px; }
.g2b-search .btn-group-actions { margin-top:6px; }
.g2b-search .small-help { color:#7384a3; font-size:12px; }

.g2b-summary { display:flex; align-items:center; justify-content:space-between; margin: 6px 2px; }
.g2b-summary .total { font-size:13px; }
.g2b-summary .total b { color:#2b5b9d; }

.tbl-list { width:100%; border-top:2px solid #2b5b9d; border-collapse:collapse; table-layout:fixed; }
.tbl-list th, .tbl-list td { border-bottom:1px solid #d8dde6; padding:6px 6px; font-size:12px; vertical-align:middle; word-break:break-word; }
.tbl-list thead th { background:#eef3fa; color:#1a3f74; text-align:center; white-space:nowrap; padding:7px 6px; }
.tbl-list tbody tr:hover td { background:#f4f9ff; }
.tbl-list td.c { text-align:center; }
.tbl-list td.r { text-align:right; white-space:nowrap; }
.tbl-list td.dt { text-align:center; white-space:nowrap; font-size:11.5px; color:#3a5a82; font-variant-numeric: tabular-nums; }
.tbl-list td.title a { color:#1a3f74; text-decoration:none; font-weight:600; line-height:1.35; }
.tbl-list td.title a:hover { text-decoration:underline; }
.tbl-list td.title .ellipsis-2 {
    display:-webkit-box;
    -webkit-line-clamp:2; -webkit-box-orient:vertical;
    overflow:hidden; text-overflow:ellipsis;
    max-height:2.7em;
}
.tbl-list td.orgs { line-height:1.35; }
.tbl-list td.orgs .org-order { color:#1a3f74; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tbl-list td.orgs .org-dmn { color:#5b6b86; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tbl-list td.orgs .org-dmn .org-arrow { color:#a6b2c9; margin-right:2px; }

.badge-biz { display:inline-block; min-width:42px; padding:2px 8px; border-radius:3px; font-size:12px; color:#fff; }
.badge-biz.thng   { background:#2b8a3e; }
.badge-biz.frgcpt { background:#9c6b1c; }
.badge-biz.servc  { background:#1971c2; }
.badge-biz.cnstwk { background:#c92a2a; }

.g2b-empty { text-align:center; padding:40px 10px; color:#666; }

/* 상세 보기 */
.g2b-view-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.g2b-view-head h3 { margin:0; font-size:18px; color:#1a3f74; }

/* Hero (제목/등록번호/기관 칩) */
.g2b-hero {
    background: linear-gradient(180deg,#f7faff 0%, #eef3fa 100%);
    border:1px solid #d6dfeb; border-left:4px solid #2b5b9d;
    border-radius:4px;
    padding:14px 16px 12px;
    margin: 6px 0 14px;
}
.g2b-hero .hero-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:12px; color:#5b6b86; }
.g2b-hero .hero-meta .badge-biz { font-size:12px; padding:3px 10px; }
.g2b-hero .hero-meta .hero-regno b { color:#1a3f74; }
.g2b-hero .hero-meta .hero-refno { color:#7a8aa6; }
.g2b-hero .hero-title {
    margin: 6px 0 8px;
    font-size:16px; font-weight:700; color:#1a3f74; line-height:1.4;
}
.g2b-hero .hero-orgs { display:flex; flex-wrap:wrap; gap:6px; }
.g2b-hero .org-chip {
    display:inline-flex; align-items:center;
    background:#fff; border:1px solid #d6dfeb; border-radius:14px;
    padding:2px 10px; font-size:12px; color:#39507a;
}
.g2b-hero .org-chip .org-key {
    display:inline-block; background:#2b5b9d; color:#fff;
    border-radius:8px; padding:0 6px; margin-right:6px;
    font-size:11px; font-weight:700;
}

/* 핵심 지표 카드 (배정예산 / 접수일시 / 의견마감) */
.g2b-stats { display:flex; gap:8px; margin-bottom:14px; }
.g2b-stats .stat-card {
    flex:1 1 0; min-width:0;
    background:#fff; border:1px solid #d6dfeb; border-radius:4px;
    padding:10px 12px;
}
.g2b-stats .stat-card .stat-label {
    color:#7a8aa6; font-size:11.5px; font-weight:600;
    display:flex; align-items:center; justify-content:space-between;
}
.g2b-stats .stat-card .stat-value {
    color:#1a3f74; font-size:15px; font-weight:700; margin-top:3px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.g2b-stats .stat-card .stat-value.money { color:#1971c2; }
.g2b-stats .stat-card.dday-soon  { background:#fff8eb; border-color:#f4d089; }
.g2b-stats .stat-card.dday-today { background:#ffebec; border-color:#f3a4a4; }
.g2b-stats .stat-card.dday-end   { background:#f1f3f5; border-color:#cfd4d9; }
.dday {
    display:inline-block; padding:1px 8px; border-radius:10px;
    font-size:11px; font-weight:700; color:#fff; background:#7a8aa6;
}
.dday.dday-far   { background:#3a8a3e; }
.dday.dday-soon  { background:#e8730d; }
.dday.dday-today { background:#c92a2a; }
.dday.dday-end   { background:#7a8aa6; }

/* 섹션 타이틀 */
.g2b-section-title {
    font-size:14px; color:#1a3f74; font-weight:700; margin:18px 0 8px;
    padding-bottom:5px; border-bottom:1.5px solid #2b5b9d;
    display:flex; align-items:center; gap:8px;
}
.g2b-section-title .g2b-section-count {
    background:#2b5b9d; color:#fff;
    font-size:11px; font-weight:700;
    padding:1px 8px; border-radius:10px;
}

.tbl-view { width:100%; border-top:2px solid #2b5b9d; border-collapse:collapse; table-layout:fixed; }
.tbl-view th, .tbl-view td { border-bottom:1px solid #d8dde6; padding:8px 10px; font-size:12.5px; vertical-align:middle; word-break:break-word; }
.tbl-view th { background:#f3f6fb; color:#1a3f74; text-align:left; font-weight:600; white-space:nowrap; }
.tbl-view td { background:#fff; }

/* 입찰공고번호 링크 */
.g2b-bidnos { display:flex; flex-wrap:wrap; gap:6px; }
.bidno-link {
    display:inline-flex; align-items:center; gap:6px;
    padding:5px 12px;
    background:#fff; border:1px solid #c7d4e7; border-radius:14px;
    color:#2b5b9d; font-size:12px; font-weight:600;
    text-decoration:none;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.bidno-link:hover {
    background:#eaf2fb; border-color:#2b5b9d; color:#1a3f74;
    text-decoration:none; transform: translateY(-1px);
}
.bidno-link .bidno-text { letter-spacing:0.2px; font-variant-numeric: tabular-nums; }
.bidno-link .bidno-go { color:#7a8aa6; font-size:11px; }
.bidno-link:hover .bidno-go { color:#2b5b9d; }

/* 규격문서 파일 카드 */
.g2b-files { display:flex; flex-direction:column; gap:6px; }
.g2b-file-item {
    display:flex; align-items:center;
    padding:10px 12px;
    border:1px solid #d6dfeb; border-left:4px solid #2b5b9d;
    background:linear-gradient(180deg,#fbfcfe 0%, #f3f7fc 100%);
    border-radius:4px;
    transition: box-shadow .15s ease, transform .15s ease;
}
.g2b-file-item + .g2b-file-item { margin-top:0; }
.g2b-file-item:hover { box-shadow: 0 2px 8px rgba(43,91,157,0.12); transform: translateY(-1px); }
.g2b-file-icon { width:36px; flex:0 0 36px; margin-right:12px; display:flex; align-items:center; justify-content:center; }
.g2b-file-icon svg { width:30px; height:30px; }
.g2b-file-body { flex:1 1 auto; min-width:0; }
.g2b-file-title { font-weight:700; color:#1a3f74; font-size:13px; }
.g2b-file-title .g2b-file-no {
    display:inline-block; min-width:26px; text-align:center;
    padding:1px 6px; margin-right:6px;
    background:#2b5b9d; color:#fff; border-radius:10px; font-size:11px; font-weight:700;
}
.g2b-file-url {
    color:#7384a3; font-size:11px; margin-top:2px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    max-width:100%;
}
.g2b-file-actions { flex:0 0 auto; margin-left:10px; }
.g2b-file-actions .btn { white-space:nowrap; }
.g2b-files-empty {
    color:#8a98b0; padding:18px 12px;
    background:#f8f9fb; border:1px dashed #d6dfeb; border-radius:4px;
    text-align:center; font-size:13px;
}
.g2b-files-help { color:#8a98b0; font-size:11px; margin-top:6px; }

.tbl-sub { width:100%; border-collapse:collapse; }
.tbl-sub th, .tbl-sub td { border:1px solid #d8dde6; padding:5px 8px; font-size:12px; }
.tbl-sub th { background:#eef3fa; }

.pagination-wrap { display:flex; justify-content:center; margin-top:14px; }
.pagination-wrap .page-link { color:#2b5b9d; }
.pagination-wrap .page-item.active .page-link { background:#2b5b9d; border-color:#2b5b9d; color:#fff; }

.alert-api { font-size:13px; }
