@charset "utf-8";
/* ==========================================================================
   스타빌 허브 v3 디자인 (2026-10 리뉴얼)

   - 모든 화면의 공통 head include(newCommHtmlHead*, commHtmlHead) 맨 마지막에 연결되어
     기존 스타일(css/new/*, starbill_new.css 등) 위에 덮어쓴다.
   - 1부: 디자인 토큰·기본 글꼴 / 2부: 새 머리글·바닥글(sb-*) / 3부: 메인 / 4부: 기존 서브화면 클래스 재정의
   - 되돌리기: head include 에서 이 파일 연결과 머리글·바닥글 include 를 원래대로 돌리면 된다(git 태그
     baseline-before-redesign-20261016 참고).
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. 토큰 / 기본
   ------------------------------------------------------------------------- */
:root {
	--sb-brand: #1a5fb4;
	--sb-brand-700: #144a8f;
	--sb-brand-800: #0f3a72;
	--sb-brand-50: #edf3fb;
	--sb-brand-100: #dbe7f7;
	--sb-ink: #18212e;
	--sb-text: #333d4b;
	--sb-sub: #5b6676;
	--sb-muted: #8590a0;
	--sb-line: #e3e7ed;
	--sb-line-soft: #eef1f5;
	--sb-bg: #f4f6f9;
	--sb-card: #ffffff;
	--sb-nbuy: #0e8a7d;
	--sb-nbuy-50: #e2f5f2;
	--sb-ebid: #4b47d6;
	--sb-ebid-50: #ecebfc;
	--sb-mro: #b25e09;
	--sb-mro-50: #fdf0e1;
	--sb-danger: #d64545;
	--sb-danger-50: #fdecec;
	--sb-ok: #1f8a4c;
	--sb-focus: var(--sb-brand);
	--sb-radius: 12px;
	--sb-radius-sm: 8px;
	--sb-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
	--sb-shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
	--sb-font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", "NanumGothic", sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body, input, select, textarea, button, table, td, th {
	font-family: var(--sb-font);
}
body { color: var(--sb-text); background: #fff; -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
a { color: inherit; }
::selection { background: var(--sb-brand-100); }
input[type="text"], input[type="password"], input[type="number"], input[type="email"], input[type="tel"], select, textarea {
	border-radius: 6px;
}
input[type="text"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
	outline: none; border-color: var(--sb-brand) !important; box-shadow: 0 0 0 3px rgba(26, 95, 180, .15);
}
#wrap { min-width: 1240px; }

/* 공통 버튼 */
.sb-btn {
	box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 40px; padding: 0 18px; border-radius: var(--sb-radius-sm);
	border: 1px solid var(--sb-line); background: #fff; color: var(--sb-text);
	font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s;
}
.sb-btn:hover { border-color: #c7cfda; background: #f8fafc; color: var(--sb-ink); }
.sb-btn.primary { background: var(--sb-brand); border-color: var(--sb-brand); color: #fff; }
.sb-btn.primary:hover { background: var(--sb-brand-700); border-color: var(--sb-brand-700); color: #fff; }
.sb-btn.dark { background: var(--sb-ink); border-color: var(--sb-ink); color: #fff; }
.sb-btn.dark:hover { background: #000; color: #fff; }
.sb-btn.soft { background: var(--sb-brand-50); border-color: var(--sb-brand-50); color: var(--sb-brand-700); }
.sb-btn.soft:hover { background: var(--sb-brand-100); border-color: var(--sb-brand-100); }
.sb-btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.sb-btn.lg { height: 48px; padding: 0 24px; font-size: 15px; }
.sb-btn.block { display: flex; width: 100%; }
.sb-btn .ico { width: 16px; height: 16px; flex: 0 0 auto; }

/* 공통 뱃지 */
.sb-badge {
	display: inline-flex; align-items: center; justify-content: center; height: 24px; min-width: 40px; padding: 0 8px;
	border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; vertical-align: middle;
}
.sb-badge.nbuy { background: var(--sb-nbuy-50); color: var(--sb-nbuy); }
.sb-badge.ebid { background: var(--sb-ebid-50); color: var(--sb-ebid); }
.sb-badge.mro { background: var(--sb-mro-50); color: var(--sb-mro); }
.sb-badge.fix { background: var(--sb-danger-50); color: var(--sb-danger); min-width: 0; }
.sb-badge.beta { background: var(--sb-ink); color: #fff; min-width: 0; height: 20px; font-size: 11px; letter-spacing: .03em; }
.sb-badge.gray { background: #eef1f5; color: var(--sb-sub); }

/* -------------------------------------------------------------------------
   2. 머리글 / 바닥글
   ------------------------------------------------------------------------- */
.sb-util { background: var(--sb-brand-800); color: #c9d6ea; font-size: 13px; }
.sb-util-inner { width: 1200px; margin: 0 auto; height: 38px; display: flex; align-items: center; justify-content: space-between; }
.sb-util .slogan { color: #aebfd9; }
.sb-util nav { display: flex; align-items: center; gap: 2px; }
.sb-util nav a { color: #e6edf7; text-decoration: none; padding: 0 10px; line-height: 38px; }
.sb-util nav a:hover { color: #fff; text-decoration: underline; }
.sb-util nav .who { color: #fff; font-weight: 600; padding: 0 10px; }
.sb-util nav .sep { width: 1px; height: 11px; background: rgba(255, 255, 255, .22); }
.sb-util .clock { display: inline-flex; align-items: center; gap: 6px; padding-left: 10px; color: #c9d6ea; font-variant-numeric: tabular-nums; }

.sb-header { position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--sb-line); backdrop-filter: saturate(1.4) blur(6px); }
.sb-header-inner { width: 1200px; margin: 0 auto; height: 76px; display: flex; align-items: center; justify-content: space-between; }
.sb-logo { display: flex; align-items: center; height: 76px; }
.sb-logo img { height: 68px; width: auto; display: block; } /* 2026-10-21 56→68px(사용자 요청: 로고가 작아 보임). 이미지 위아래 여백이 커서 헤더 76px 안에 들어감 */
.sb-gnb { display: flex; align-items: center; gap: 4px; height: 76px; }
.sb-gnb a {
	position: relative; display: inline-flex; align-items: center; height: 76px; padding: 0 18px;
	font-size: 17px; font-weight: 600; color: var(--sb-ink); text-decoration: none; letter-spacing: -0.02em;
}
.sb-gnb a:after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.sb-gnb a:hover { color: var(--sb-brand); }
.sb-gnb a:hover:after, .sb-gnb a.on:after { background: var(--sb-brand); }
.sb-gnb a.on { color: var(--sb-brand); }
.sb-gnb a.em { color: var(--sb-brand); }

.sb-footer { margin-top: 0; background: #1d2633; color: #9aa6b6; font-size: 13px; clear: both; }
.sb-footer-links { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sb-footer-links .inner { width: 1200px; margin: 0 auto; height: 54px; display: flex; align-items: center; gap: 28px; }
.sb-footer-links a { color: #d7deea; text-decoration: none; font-size: 14px; }
.sb-footer-links a:hover { color: #fff; text-decoration: underline; }
.sb-footer-links a.strong { color: #fff; font-weight: 700; }
.sb-footer-links .cs { margin-left: auto; color: #fff; font-weight: 700; font-size: 15px; }
.sb-footer-links .cs span { color: #9aa6b6; font-weight: 400; font-size: 13px; margin-right: 6px; }
.sb-footer-body { width: 1200px; margin: 0 auto; padding: 28px 0 36px; display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.sb-footer-body .brand { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.sb-footer-body address { font-style: normal; line-height: 1.8; }
.sb-footer-body address i { display: inline-block; width: 1px; height: 10px; margin: 0 10px; background: #3e4a5b; vertical-align: middle; }
.sb-footer-body .copy { margin-top: 10px; color: #6f7b8c; font-size: 12px; }
.sb-footer-body .certs { display: flex; align-items: center; gap: 12px; }
.sb-footer-body .certs img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .85; } /* 2026-10-21 흰 바탕 상자 대신 흰색 로고(smartams.co.kr 풋터와 같은 방식). 원본 PNG 가 투명 배경이라 필터로 흰색 처리 */

/* 기존 로딩 이미지 */
#viewLoading, #viewLoading2 { position: fixed !important; top: 45% !important; left: 50% !important; transform: translate(-50%, -50%); z-index: 9999; }

/* -------------------------------------------------------------------------
   3. 메인(로그인 전/후)
   ------------------------------------------------------------------------- */
.sb-main-bg { background: var(--sb-bg); padding: 32px 0 56px; }
.sb-wrap { width: 1200px; margin: 0 auto; }
.sb-card { background: var(--sb-card); border: 1px solid var(--sb-line); border-radius: var(--sb-radius); box-shadow: var(--sb-shadow); }
.sb-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 14px; }
.sb-card-head h2, .sb-card-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--sb-ink); letter-spacing: -0.02em; }
.sb-card-head .more { display: inline-flex; align-items: center; gap: 4px; color: var(--sb-muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.sb-card-head .more:hover { color: var(--sb-brand); }
.sb-card-body { padding: 0 24px 22px; }

/* 대시보드 레이아웃 */
.sb-dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.sb-side { display: flex; flex-direction: column; gap: 16px; }

/* 공고 탭 */
.sb-tabs { display: flex; gap: 4px; padding: 6px 6px 0; border-bottom: 1px solid var(--sb-line); }
.sb-tabs a {
	position: relative; display: inline-flex; align-items: center; gap: 6px; height: 52px; padding: 0 20px;
	font-size: 16px; font-weight: 600; color: var(--sb-muted); text-decoration: none; cursor: pointer;
}
.sb-tabs a:hover { color: var(--sb-ink); }
.sb-tabs a.on { color: var(--sb-ink); }
.sb-tabs a.on:after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--sb-brand); }

/* 공고 목록 표 (메인·공용) */
table.sb-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.sb-table th {
	height: 44px; padding: 0 14px; background: #f8f9fb; border-bottom: 1px solid var(--sb-line);
	color: var(--sb-sub); font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap;
}
table.sb-table td { height: 56px; padding: 0 14px; border-bottom: 1px solid var(--sb-line-soft); font-size: 15px; color: var(--sb-text); vertical-align: middle; }
table.sb-table tr:last-child td { border-bottom: 0; }
table.sb-table th.c, table.sb-table td.c { text-align: center; }
table.sb-table th.r, table.sb-table td.r { text-align: right; }
table.sb-table td.org { color: var(--sb-sub); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.sb-table td.title { overflow: hidden; }
table.sb-table td.title a {
	display: block; color: var(--sb-ink); font-weight: 600; text-decoration: none;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
table.sb-table td.title a:hover { color: var(--sb-brand); text-decoration: underline; text-underline-offset: 3px; }
table.sb-table td.date { color: var(--sb-sub); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.sb-table td.date.soon { color: var(--sb-danger); font-weight: 700; }
table.sb-table tbody tr:hover td { background: var(--sb-brand-50); }
table.sb-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--sb-brand); } /* 2026-11-27 마우스 올림: 연파랑 + 왼쪽 파란 줄 */
table.sb-table .empty td { height: 120px; text-align: center; color: var(--sb-muted); }
table.sb-table .end a { color: var(--sb-muted) !important; text-decoration: line-through !important; font-weight: 500 !important; }

/* 내 정보 */
.sb-me { padding: 22px 24px; }
.sb-me .hello { font-size: 13px; color: var(--sb-muted); }
.sb-me .name { margin-top: 4px; font-size: 19px; font-weight: 700; color: var(--sb-ink); word-break: keep-all; }
.sb-me dl { margin: 16px 0 0; padding: 14px 16px; background: var(--sb-bg); border-radius: 10px; display: grid; grid-template-columns: auto 1fr; row-gap: 8px; column-gap: 12px; font-size: 14px; }
.sb-me dt { color: var(--sb-sub); }
.sb-me dd { margin: 0; text-align: right; color: var(--sb-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.sb-me dd.point { color: var(--sb-brand); font-size: 16px; font-weight: 800; }
.sb-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.sb-quick a {
	display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 10px;
	color: var(--sb-text); font-size: 12px; font-weight: 600; text-decoration: none; text-align: center; letter-spacing: -0.03em;
}
.sb-quick a:hover { background: var(--sb-brand-50); color: var(--sb-brand-700); }
.sb-quick .qi { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--sb-brand-50); color: var(--sb-brand); }
.sb-quick .qi svg { width: 22px; height: 22px; }

/* 공지 */
.sb-notice { list-style: none; margin: 0; padding: 0 24px 18px; }
.sb-notice li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--sb-line-soft); }
.sb-notice li:first-child { border-top: 0; }
.sb-notice a { flex: 1 1 auto; min-width: 0; color: var(--sb-text); font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-notice a:hover { color: var(--sb-brand); text-decoration: underline; }
.sb-notice .d { flex: 0 0 auto; color: var(--sb-muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* 고객센터 */
.sb-cs { padding: 22px 24px; background: linear-gradient(135deg, #1a5fb4 0%, #144a8f 100%); color: #fff; border: 0; }
.sb-cs .lbl { font-size: 13px; color: #c9daf2; }
.sb-cs .tel { margin-top: 2px; font-size: 28px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sb-cs .time { margin-top: 2px; font-size: 13px; color: #c9daf2; }
.sb-cs .links { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.sb-cs .links a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.sb-cs .links a:hover { background: rgba(255, 255, 255, .24); }
.sb-cs .links svg { width: 15px; height: 15px; }
/* 로그인 전 메인: 4개를 2x2 로 칸 가득(2026-10-21) */
.sb-cs .links.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sb-cs .links.grid2 a { justify-content: flex-start; height: 40px; padding: 0 14px; }

/* 이용 순서(로그인 전 메인, 2026-10-21 시안): 공지(제목+날짜 목록)와 겹치지 않게 번호 원+세로 연결선 */
.sb-steps ol { list-style: none; margin: 0; padding: 0 16px 16px; }
.sb-steps li { position: relative; }
.sb-steps li + li:before { content: ""; position: absolute; left: 19px; top: -10px; height: 20px; width: 2px; background: var(--sb-brand-100); }
.sb-steps a { display: flex; align-items: center; gap: 12px; padding: 8px 8px; border-radius: 10px; color: var(--sb-text); text-decoration: none; }
.sb-steps a:hover { background: var(--sb-brand-50); }
.sb-steps .n {
	position: relative; z-index: 1; flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid var(--sb-brand); border-radius: 50%; background: #fff;
	color: var(--sb-brand); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
}
.sb-steps li:first-child .n { background: var(--sb-brand); color: #fff; }
.sb-steps .t { display: flex; flex-direction: column; min-width: 0; }
.sb-steps .t b { font-size: 14px; font-weight: 700; color: var(--sb-ink); }
.sb-steps .t small { margin-top: 1px; font-size: 12.5px; color: var(--sb-muted); }
.sb-steps a:hover .t b { color: var(--sb-brand-700); }

/* 구매기관 바로가기 (2026-11-06 다시 요청: 개수 표시·승인/미승인 묶음 이름 없이, 오른쪽 위 "구매기관 바로가기" 팝업과 같은 모양 -
   흰 카드 안에 큰 로고(buyerBig)를 같은 크기 칸에 놓는다. 순서도 팝업과 같음) */
.sb-buyers {
	box-sizing: border-box; margin-top: 28px; padding: 28px 32px 32px; border-radius: 16px;
	background: #fff; border: 1px solid var(--sb-line); box-shadow: var(--sb-shadow, 0 1px 3px rgba(16, 24, 40, .06));
}
.sb-buyers-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.sb-buyers-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--sb-ink); letter-spacing: -0.02em; }
.sb-buyers-head p { margin: 0; font-size: 14px; color: var(--sb-sub); }
.sb-buyer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sb-buyer-grid a { display: flex; align-items: center; justify-content: center; height: 92px; border: 1px solid var(--sb-line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.sb-buyer-grid a:hover, .sb-buyer-grid a:focus-visible { border-color: var(--sb-brand); box-shadow: 0 4px 14px rgba(26, 95, 180, .12); }
.sb-buyer-grid img { max-width: 92%; max-height: 80px; }
.sb-buyer-grid a.off { opacity: .55; }

/* 로그인 전 메인: 히어로 */
.sb-hero { position: relative; background: #0f2c55 url("/images2/main/main_banner_1.jpg") center/cover no-repeat; }
.sb-hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 30, 62, .92) 0%, rgba(10, 30, 62, .72) 55%, rgba(10, 30, 62, .45) 100%); }
/* 2026-10-21 높이 30% 축소(526→약 365px): 여백·글자 크기 줄이고 인증서 버튼 3개를 한 줄로 */
.sb-hero-inner { position: relative; width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 22px 0; }
.sb-hero-copy { color: #fff; }
.sb-hero-copy .eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #cfe0f7; font-size: 13px; font-weight: 600; }
.sb-hero-copy h1 { margin: 12px 0 0; font-size: 34px; line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; }
.sb-hero-copy p { margin: 8px 0 0; color: #c4d3e8; font-size: 15px; line-height: 1.65; }
.sb-stats { display: flex; gap: 12px; margin-top: 18px; }
.sb-stat { padding: 10px 18px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.sb-stat .k { color: #b9cbe5; font-size: 13px; }
.sb-stat .v { margin-top: 2px; color: #fff; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-stat .v small { font-size: 14px; font-weight: 600; margin-left: 2px; color: #d6e2f3; }

.sb-login { box-sizing: border-box; width: 380px; flex: 0 0 auto; padding: 22px 24px; background: #fff; border-radius: 16px; box-shadow: var(--sb-shadow-lg); }
.sb-login h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--sb-ink); }
.sb-login .desc { margin: 0 0 18px; color: var(--sb-muted); font-size: 13px; }
.sb-login .field { display: block; margin-bottom: 8px; }
.sb-login .field input {
	width: 100%; height: 42px; box-sizing: border-box; padding: 0 14px; border: 1px solid #d5dbe3; border-radius: 10px;
	font-size: 15px; color: var(--sb-ink); background: #fff;
}
.sb-login .row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 10px; font-size: 13px; color: var(--sb-sub); }
.sb-login .sb-btn.lg { height: 44px; }
.sb-login .row label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.sb-login .row label input { top: 0; margin: 0; }
.sb-login .row .links a { color: var(--sb-sub); text-decoration: none; margin-left: 12px; }
.sb-login .row .links a:hover { color: var(--sb-brand); text-decoration: underline; }
.sb-login .divider { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; color: var(--sb-muted); font-size: 12px; }
.sb-login .divider:before, .sb-login .divider:after { content: ""; flex: 1 1 auto; height: 1px; background: var(--sb-line); }
.sb-login .cert-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.sb-login .cert-row .sb-btn { width: 100%; height: 42px; padding: 0 8px; font-size: 13.5px; } /* 인증서 발급(.btn-login3)은 옛 CSS 고정 폭이 있어 칸에 맞춤 */

/* 이미지 팝업(관리자 등록 공지 팝업) */
.layer_pop { border: 0 !important; border-radius: 12px; overflow: hidden; box-shadow: var(--sb-shadow-lg); }
.footer_pop { box-sizing: border-box; display: flex; align-items: center; gap: 6px; background: var(--sb-ink) !important; font-family: var(--sb-font) !important; }
.footer_pop input { top: 0; }

/* -------------------------------------------------------------------------
   4. 기존 서브 화면 클래스 재정의 (css/new/starbillhub_sub.css 등)
   ------------------------------------------------------------------------- */
/* 서브 제목 */
.subTit_area { height: auto !important; margin-top: 40px !important; margin-bottom: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--sb-line) !important; display: flex; align-items: flex-end; }
.subTit_area .subTit { height: auto !important; width: auto !important; flex: 1 1 auto; }
.subTit_area .subTit .st1 { font-family: var(--sb-font) !important; font-size: 30px !important; font-weight: 800 !important; color: var(--sb-ink) !important; letter-spacing: -0.03em; }
.subTit_area .subTit .st2 { font-size: 15px !important; color: var(--sb-muted) !important; letter-spacing: -0.01em !important; }
.subTit_area .location_area { height: auto !important; margin-top: 0 !important; font-size: 13px !important; color: var(--sb-muted); }
.subTit_area .location_area .location { color: var(--sb-brand) !important; }

/* 검색 박스 */
.search_area .search_box { background: var(--sb-bg) !important; border: 1px solid var(--sb-line); border-radius: var(--sb-radius); }
.input_search, .input_select, .input_calender { border-color: #cfd6df !important; border-radius: 8px !important; font-family: var(--sb-font) !important; font-size: 14px !important; }
.input_search { height: 38px !important; box-sizing: border-box; }
.input_select { height: 38px !important; }
.btn_search1, .btn_search2 { background: var(--sb-ink) !important; border-color: var(--sb-ink) !important; border-radius: 8px !important; font-weight: 600; font-size: 15px !important; }
.btn_search1:hover, .btn_search2:hover { background: #000 !important; }

/* 탭 버튼 */
.tab_on, .tab_on1 { background: var(--sb-brand) !important; border-color: var(--sb-brand) !important; border-radius: 999px !important; font-size: 15px !important; font-weight: 700; height: 42px !important; line-height: 42px !important; }
.tab_off, .tab_off1 { background: #fff !important; border-color: var(--sb-line) !important; color: var(--sb-sub) !important; border-radius: 999px !important; font-size: 15px !important; height: 42px !important; line-height: 42px !important; }
.tab_off:hover, .tab_off1:hover { border-color: var(--sb-brand) !important; color: var(--sb-brand) !important; }

/* 목록 표 */
.tb_sub_gonggo, .tb_sub_mypage, .tb_gonggo2, .tb_bid_detail { border-top: 2px solid var(--sb-ink); }
.tb_sub_gonggo tr.topline, .tb_sub_mypage tr.topline, .tb_gonggo2 tr.topline { border-top: 0 !important; background: #f8f9fb !important; border-bottom: 1px solid var(--sb-line) !important; }
.tb_sub_gonggo td, .tb_sub_mypage td, .tb_gonggo2 td { border-bottom-color: var(--sb-line-soft) !important; font-size: 15px !important; color: var(--sb-text) !important; letter-spacing: -0.01em !important; height: 34px !important; }
.tb_sub_gonggo td.first, .tb_sub_mypage td.first, .tb_gonggo2 td.first { font-family: var(--sb-font) !important; font-size: 14px !important; font-weight: 600 !important; color: var(--sb-sub) !important; height: 22px !important; }
.tb_sub_gonggo tr:not(.topline):hover td, .tb_sub_mypage tr:not(.topline):hover td, .tb_gonggo2 tr:not(.topline):hover td { background: var(--sb-brand-50) !important; }
.tb_sub_gonggo tr:not(.topline):hover td:first-child, .tb_sub_mypage tr:not(.topline):hover td:first-child, .tb_gonggo2 tr:not(.topline):hover td:first-child { box-shadow: inset 3px 0 0 var(--sb-brand); } /* 2026-11-27 */
.tb_sub_gonggo td.left a, .tb_gonggo2 td a, .gonggo_ing { color: var(--sb-ink) !important; font-weight: 600; }
.tb_sub_gonggo td.left a:hover, .tb_gonggo2 td a:hover { color: var(--sb-brand) !important; }
.tb_bid_detail td { border-bottom-color: var(--sb-line-soft) !important; font-size: 15px !important; color: var(--sb-text) !important; letter-spacing: -0.01em !important; }
.tb_bid_detail td.tit { font-family: var(--sb-font) !important; font-size: 14px !important; font-weight: 700 !important; color: var(--sb-sub) !important; background: #f8f9fb !important; }

/* 아이콘(견적/입찰/MRO 등) */
.icon_price, .icon_bid { border-radius: 6px !important; font-weight: 700; font-size: 12px !important; height: 24px !important; line-height: 24px !important; width: 44px !important; border: 0 !important; }
.icon_price { background: var(--sb-nbuy-50) !important; color: var(--sb-nbuy) !important; }
.icon_bid { background: var(--sb-ebid-50) !important; color: var(--sb-ebid) !important; }
.icon1, .icon2, .icon3, .icon4 { border-radius: 6px !important; }

/* 하단 버튼 */
.btn_list { border-color: #cfd6df !important; color: var(--sb-text) !important; border-radius: 10px !important; font-size: 16px !important; font-weight: 600; height: 48px !important; line-height: 48px !important; }
.btn_list:hover { background: #f4f6f9 !important; color: var(--sb-ink) !important; }
.btn_keep, .btn_keep1 { background: var(--sb-brand) !important; border-color: var(--sb-brand) !important; border-radius: 10px !important; font-weight: 700; }
.btn_keep1 { font-size: 16px !important; height: 48px !important; line-height: 48px !important; }
.btn_keep:hover, .btn_keep1:hover { background: var(--sb-brand-700) !important; border-color: var(--sb-brand-700) !important; }
.btn_join { border-radius: 10px !important; font-weight: 700; }
.btn_view { border-radius: 6px !important; background: var(--sb-brand-50) !important; color: var(--sb-brand-700) !important; font-weight: 600; }
.btn_view:hover { background: var(--sb-brand-100) !important; }

/* 페이지 번호 */
.icon_pageSty1 { background: var(--sb-brand) !important; border-radius: 10px !important; }
.btn_page1, .btn_page2 { border-radius: 10px !important; }

/* 기타 */
.badge-correction { background: var(--sb-danger-50) !important; color: var(--sb-danger) !important; border-radius: 6px !important; font-size: 12px !important; padding: 3px 7px !important; }
.txt_area2, .iframe_subject1, .table_title { font-family: var(--sb-font) !important; font-weight: 700; color: var(--sb-ink) !important; }
.preview { border: 1px solid var(--sb-line) !important; border-radius: var(--sb-radius); }

/* 직접참여 버튼 */
.btn_hublink {
	display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; margin: 5px; vertical-align: top;
	border-radius: 10px; background: var(--sb-ink); color: #fff !important; font-size: 16px; font-weight: 700; text-decoration: none;
	box-shadow: 0 6px 16px rgba(24, 33, 46, .2);
}
.btn_hublink:hover { background: #000; }
.btn_hublink .b { display: inline-block; padding: 2px 6px; border-radius: 4px; background: #ffd23f; color: #3a2b00; font-size: 11px; letter-spacing: .03em; }
.sb-hublink-note { margin-top: 10px; color: var(--sb-muted); font-size: 13px; }

/* -------------------------------------------------------------------------
   5. 이동 오류 안내(대학 사이트 이동 실패)
   ------------------------------------------------------------------------- */
.sb-alert-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; background: var(--sb-bg); padding: 60px 0; }
.sb-alert { width: 520px; padding: 40px 36px 32px; text-align: center; background: #fff; border-radius: 16px; box-shadow: var(--sb-shadow-lg); }
.sb-alert .ico { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff4e0; color: #b26a00; font-size: 26px; font-weight: 800; }
.sb-alert h1 { margin: 0; font-size: 20px; font-weight: 800; color: var(--sb-ink); }
.sb-alert p { margin: 10px 0 0; color: var(--sb-sub); font-size: 15px; line-height: 1.7; word-break: keep-all; }
.sb-alert .act { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }

/* -------------------------------------------------------------------------
   6. 구버전 화면(starbill_new.css / starbill_table.css 를 쓰는 mro·nbid·happyebid·listNara 등)
   ------------------------------------------------------------------------- */
#body_sub, #body_main { background: var(--sb-bg) !important; }
#body_sub .con_box, #body_main .con_box {
	margin: 32px auto 56px; width: 1130px; padding: 36px; border: 1px solid var(--sb-line); border-radius: var(--sb-radius);
	box-shadow: var(--sb-shadow);
}
.con_box:after { content: ""; display: block; clear: both; }
.sub_title, .sub_title1 { font-family: var(--sb-font) !important; font-size: 28px !important; font-weight: 800; color: var(--sb-ink) !important; letter-spacing: -0.03em; }
.sub_tab { background: none !important; display: flex; gap: 6px; height: auto !important; }
.sub_tab_on, .sub_tab_off { float: none !important; width: auto !important; min-width: 110px; padding: 0 18px; height: 40px !important; line-height: 40px !important; border-radius: 999px; font-size: 14px !important; font-weight: 600; box-sizing: border-box; }
.sub_tab_on { background: var(--sb-brand) !important; color: #fff !important; }
.sub_tab_off { background: #fff !important; border: 1px solid var(--sb-line) !important; color: var(--sb-sub) !important; }
.sub_tab_off a { color: inherit !important; }
.search1_area { border-top: 0 !important; border-bottom: 0 !important; background: var(--sb-bg); border-radius: var(--sb-radius); border: 1px solid var(--sb-line) !important; box-sizing: border-box; }
.table_list1, .table_title1 { font-family: var(--sb-font) !important; font-size: 14px !important; }
.table_title1 { color: var(--sb-sub) !important; }
.tb_list1 { border-top: 2px solid var(--sb-ink); }
.btn_01 { border-radius: 8px !important; }

/* 메인 공지 제목: 태그(색·굵게 등)를 그대로 보여주되 한 줄 유지 - 2026-10-19 */
.sb-notice a br { display: none; }
.sb-notice a * { white-space: nowrap; }

/* 전화번호 등 짧은 칸(3~4자리): 최소 4자리 보이게(2026-10-19) - 팝업은 popup-v3.css */
.input_box3_ss, input[type="text"][maxlength="3"], input[type="text"][maxlength="4"] { min-width: 64px; box-sizing: border-box; }

/* 마이페이지: 표 제목 옆 버튼(첨부자료 추가·통장정보 수정), 담당자 수정/삭제 아이콘 버튼(2026-10-19) */
.table_title .sb-title-btn { margin-left: 8px; vertical-align: middle; position: relative; top: -2px; }
.sb-icon-btns { display: inline-flex; gap: 4px; vertical-align: middle; }
br + .sb-icon-btns { margin-top: 6px; }
.sb-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; box-sizing: border-box;
	border: 1px solid var(--sb-line); border-radius: 8px; background: #fff; color: var(--sb-brand); cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.sb-icon-btn .ico { width: 15px; height: 15px; }
.sb-icon-btn:hover, .sb-icon-btn:focus-visible { background: var(--sb-brand-50); border-color: var(--sb-brand-100); }
.sb-icon-btn.danger { color: var(--sb-danger); }
.sb-icon-btn.danger:hover, .sb-icon-btn.danger:focus-visible { background: var(--sb-danger-50); border-color: #f6c9c9; }

/* 키보드 포커스 링(2026-10-21): 탭 키로 이동할 때 버튼·메뉴·탭·공고 링크 위치가 보이도록.
   기존 css 의 outline:none 초기화(css/popup/reset.css, css/new/category.css 등)를 !important 로 덮는다.
   글 입력칸은 1부의 :focus 테두리+그림자를 그대로 쓴다. 어두운 바탕에서는 --sb-focus 를 흰색으로 바꾼다
   (.sb-login 은 .sb-hero-copy 의 형제라 흰색을 물려받지 않고 기본 파란 링 유지). */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, [role="tab"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible, summary:focus-visible,
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible,
input[type="button"]:focus-visible, input[type="submit"]:focus-visible, input[type="image"]:focus-visible {
	outline: 2px solid var(--sb-focus) !important; outline-offset: 2px;
}
.sb-util, .sb-footer, .sb-hero-copy, .sb-cs, .footer_pop { --sb-focus: #fff; }

/* 회원가입 약관동의(join/step1.jsp, 2026-10-21): 체크박스를 키우고 칸 전체(문구 포함)를 눌러도 체크되게 */
.tb_mem1 td.tit2 { padding: 0; }
.tb_mem1 label.sb-agree {
	display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 10px;
	cursor: pointer; user-select: none; -webkit-user-select: none;
}
.tb_mem1 label.sb-agree:hover { background: var(--sb-brand-50); }
.tb_mem1 label.sb-agree input[type="checkbox"] { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; cursor: pointer; accent-color: var(--sb-brand); }

/* [허브 연동] 실적증명서 칸(2026-10-26) - 마이페이지 거래실적·참여공고 낙찰 건 */
a.pf-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 0; height: 24px; padding: 0 7px; border: 1px solid var(--sb-brand); border-radius: 5px; background: #fff; color: var(--sb-brand); font-size: 11.5px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
a.pf-btn:hover { background: var(--sb-brand); color: #fff; text-decoration: none; }
a.pf-btn.st0 { border-color: #e3b04b; background: #fff8e8; color: #8a5a00; }
a.pf-btn.st1 { border-color: var(--sb-ok); background: #e9f6ee; color: var(--sb-ok); }
a.pf-btn.st2 { border-color: var(--sb-danger); background: #fdecec; color: var(--sb-danger); }
a.pf-btn.st0:hover, a.pf-btn.st1:hover, a.pf-btn.st2:hover { filter: brightness(.96); }
.pf-none { color: #a0a8b4; }
/* [허브 연동] 전자계약 버튼(2026-10-26) - 참여공고 낙찰 건, 실적증명 앞 */
.pf-cell { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: nowrap; }
a.ct-btn { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 7px; border: 1px solid #4338ca; border-radius: 5px; background: #4338ca; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
a.ct-btn:hover { background: #3730a3; border-color: #3730a3; color: #fff; text-decoration: none; }
a.ct-btn.dl { border-color: #0f766e; background: #0f766e; } /* 2026-11-18 수주납품(입고준공) */
a.ct-btn.dl:hover { background: #115e59; border-color: #115e59; }

/* ---------- 로그인 전 머리글(2026-11-12, 소개 사이트 starbill_intro 메뉴 구성) ----------
   로고 | 서비스 특징·도입 효과·고객사 사례·데모 신청 | [로그인] [협력사 회원가입]. 로그인 후 머리글(.sb-header)은 그대로 */
.sb-header-pub .sb-header-inner { justify-content: flex-start; gap: 40px; }
.sb-header-pub .sb-gnb { flex: 1; gap: 20px; }
.sb-header-pub .sb-gnb a { padding: 0 8px; font-size: 16px; }
.sb-header-pub .sb-gnb a:after { left: -4px; right: -4px; height: 4px; border-radius: 4px 4px 0 0; background: var(--sb-brand-100); transform: scaleX(0); transition: transform .18s; }
.sb-header-pub .sb-gnb a:hover:after { transform: scaleX(1); background: var(--sb-brand-100); }
.sb-header-pub .sb-gnb a.on { font-weight: 800; }
.sb-header-pub .sb-gnb a.on:after { transform: scaleX(1); background: var(--sb-brand); }
.sb-hutil { display: flex; align-items: center; gap: 8px; flex: none; }
.sb-hbtn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 8px; border: 1.5px solid transparent;
	font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.sb-hbtn.line { border-color: var(--sb-brand); color: var(--sb-brand); background: #fff; }
.sb-hbtn.line:hover { background: var(--sb-brand-50); }
.sb-hbtn.primary { background: var(--sb-brand); color: #fff; }
.sb-hbtn.primary:hover { background: var(--sb-brand-700); }
@media (prefers-reduced-motion: reduce) { .sb-header-pub .sb-gnb a:after { transition: none; } }

/* 2026-11-27 바닥글 오른쪽 "맨 위로"(로그인 후 모든 화면 + 로그인 전 서비스 소개, include/newCommFooter.jsp). intro.css 의 것과 같은 모양 */
.sb-footer-links .sb-totop { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; margin-left: 6px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.sb-footer-links .sb-totop:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); text-decoration: none; }
