/* ybri_notice 게시판 전용 스타일
   share CSS(board.css / common01-03.css / ybri-board.css)와 중복 금지.
   모든 셀렉터는 .bn-write-common01.ybri_notice-write 또는
   .bn-view-common01.ybri_notice-view / .ybri_notice 컨테이너 안으로 좁힘. */

/* =========================================================
   LIST — <table class="board-table ybri_notice-table"> 기반
   ========================================================= */
.ybri_notice-list .ybri_notice-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}
/* colgroup 폭 (col 클래스에 적용) — 제목 폭 축소 + 우측 컬럼 폭 확대로 정렬 일관성 확보 */
.ybri_notice-list .ybri_notice-table col.b-col-num      { width: 70px; }
.ybri_notice-list .ybri_notice-table col.b-col-category { width: 130px; }
.ybri_notice-list .ybri_notice-table col.b-col-title    { width: 40%; }
.ybri_notice-list .ybri_notice-table col.b-col-apply    { width: 230px; }
.ybri_notice-list .ybri_notice-table col.b-col-date     { width: 130px; }
.ybri_notice-list .ybri_notice-table col.b-col-read     { width: 90px; }

/* 헤더 */
.ybri_notice-list .ybri_notice-table thead th {
	background: #f5f5f5;
	font-weight: 700;
	font-size: 14px;
	color: #333;
	padding: 14px 6px;
	text-align: center;
	border-top: 2px solid #003366;
	border-bottom: 1px solid #ccc;
}

/* 본문 행 — data-row-href 있는 tr 은 클릭 가능 */
.ybri_notice-list .ybri_notice-table tbody tr {
	border-bottom: 1px solid #e5e5e5;
	transition: background-color .15s;
}
.ybri_notice-list .ybri_notice-table tbody tr.b-list-row[data-row-href] { cursor: pointer; }
.ybri_notice-list .ybri_notice-table tbody tr:hover { background-color: #f8f9fb; }
.ybri_notice-list .ybri_notice-table tbody tr.b-notice-row { background: #f0f4fb; }
.ybri_notice-list .ybri_notice-table tbody tr.b-notice-row:hover { background: #e6edf8; }
.ybri_notice-list .ybri_notice-table tbody tr.deleted { color: #aaa; }

/* 셀 공통 */
.ybri_notice-list .ybri_notice-table tbody td {
	padding: 14px 6px;
	font-size: 14px;
	text-align: center;
	vertical-align: middle;
	color: #333;
}

/* 셀별 정렬/스타일 */
.ybri_notice-list .ybri_notice-table .b-num-box      { text-align: center; }
.ybri_notice-list .ybri_notice-table .b-td-category  { text-align: center; }
.ybri_notice-list .ybri_notice-table .b-td-left      { text-align: left; padding-left: 12px; }
.ybri_notice-list .ybri_notice-table .b-td-left a    { color: #333; text-decoration: none; }
.ybri_notice-list .ybri_notice-table .b-td-left a:hover { color: #043ca1; text-decoration: underline; }
.ybri_notice-list .ybri_notice-table .b-td-apply     { text-align: center; }
.ybri_notice-list .ybri_notice-table .b-td-date      { text-align: center; color: #666; }
.ybri_notice-list .ybri_notice-table .b-td-read      { text-align: center; color: #666; }
.ybri_notice-list .ybri_notice-table .b-no-post      { padding: 40px 16px; text-align: center; color: #999; }

/* 관리자 체크박스 (board.admin.js 동적 input) — 제목 셀 안에서 인라인 표시
   td 의 vertical-align:middle 을 유지하기 위해 flex 사용 금지. 자식은 inline-block 으로 배치. */
.ybri_notice-list .ybri_notice-table .b-td-left {
	vertical-align: middle;
	white-space: nowrap;
}
.ybri_notice-list .b-td-left .article-chk {
	display: inline-block;
	margin-right: 6px;
	vertical-align: middle;
	line-height: 0;
}
.ybri_notice-list .b-td-left .article-chk:empty {
	margin-right: 0;
}
.ybri_notice-list .b-td-left .article-chk input[type=checkbox],
.ybri_notice-list .adm-chk .chk-toggle input[type=checkbox] {
	width: 16px; height: 16px;
	cursor: pointer;
	display: inline-block !important;
	margin: 0;
	vertical-align: middle;
}
.ybri_notice-list .b-td-left > a {
	display: inline-block;
	vertical-align: middle;
	max-width: calc(100% - 30px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 상단 전체선택 영역 */
.ybri_notice-list .b-top-info-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 0;
}
.ybri_notice-list .adm-chk {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ybri_notice-list .adm-chk label {
	font-size: 14px;
	color: #555;
	cursor: pointer;
}

/* 온라인신청 셀의 액션 버튼 그룹 — 세로 정렬 */
.ybri_notice-list .ybri_notice-table .b-td-apply {
	display: table-cell;
}
.ybri_notice-list .ybri_notice-table .b-td-apply .b-apply-btn {
	display: inline-block;
	margin: 2px 0;
}

/* 행별 액션 버튼 — 사용자/관리자 공통 베이스 */
.ybri_notice-list .b-apply-btn {
	display: inline-block;
	min-width: 90px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s;
}
.ybri_notice-list .b-apply-btn:hover { text-decoration: none; opacity: .85; }

/* 온라인신청 — 파랑 채움 (강조) */
.ybri_notice-list .b-btn-apply {
	background-color: #043ca1;
	border-color: #043ca1;
	color: #fff;
}
.ybri_notice-list .b-btn-apply:hover { background-color: #022c7a; border-color: #022c7a; color: #fff; }

/* 설정 — 회색 아웃라인 */
.ybri_notice-list .b-btn-setting {
	background-color: #fff;
	border-color: #999;
	color: #333;
}
.ybri_notice-list .b-btn-setting:hover { background-color: #f5f5f5; border-color: #666; color: #000; }

/* 신청자목록 — 진회색 채움 */
.ybri_notice-list .b-btn-applicant {
	background-color: #555;
	border-color: #555;
	color: #fff;
}
.ybri_notice-list .b-btn-applicant:hover { background-color: #333; border-color: #333; color: #fff; }

/* 상단공지 N 배지 */
.ybri_notice-list .b-num-notice {
	display: inline-block;
	padding: 2px 6px;
	background: #003366;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	border-radius: 2px;
}

/* 카테고리 태그 (리스트 구분) */
.ybri_notice-list .b-cate-tag {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid #ccc;
	border-radius: 2px;
	font-size: 12px;
	color: #555;
	background: #fff;
	white-space: nowrap;
	max-width: 100%;
}
.ybri_notice-list .ybri_notice-table .b-td-category {
	white-space: nowrap;
}

/* 제목 옆 신규(N) 배지 */
.ybri_notice-list .b-td-left .b-new-icon {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 5px;
	background: #ff6b00;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 2px;
	vertical-align: middle;
}
/* 제목 옆 첨부 아이콘 */
.ybri_notice-list .b-td-left .b-file-icon {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 5px;
	background: #888;
	color: #fff;
	font-size: 11px;
	border-radius: 2px;
	vertical-align: middle;
}

/* =========================================================
   VIEW
   ========================================================= */
.bn-view-common01.ybri_notice-view .b-view-head {
	padding-bottom: 16px;
	border-bottom: 2px solid #003366;
	margin-bottom: 20px;
}
.bn-view-common01.ybri_notice-view .b-cate-tag {
	display: inline-block;
	padding: 2px 10px;
	background: #003366;
	color: #fff;
	font-size: 12px;
	border-radius: 2px;
	margin-bottom: 8px;
}
.bn-view-common01.ybri_notice-view .b-title {
	font-size: 20px;
	font-weight: bold;
	margin: 8px 0;
}
.bn-view-common01.ybri_notice-view .b-info-box {
	font-size: 13px;
	color: #666;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* 뷰: 온라인신청 정보 박스 */
.bn-view-common01.ybri_notice-view .b-apply-info-box {
	margin: 16px 0;
	padding: 16px;
	background: #f7f9fc;
	border: 1px solid #dce3ec;
	border-radius: 4px;
}
.bn-view-common01.ybri_notice-view .b-apply-info-box ul {
	list-style: none;
	padding: 0;
	margin: 0 0 12px 0;
}
.bn-view-common01.ybri_notice-view .b-apply-info-box li {
	margin-bottom: 6px;
}
.bn-view-common01.ybri_notice-view .b-apply-label {
	display: inline-block;
	min-width: 80px;
	color: #555;
	font-weight: bold;
}
.bn-view-common01.ybri_notice-view .b-apply-btn-box {
	margin-top: 8px;
}

/* 뷰: 개인정보 안내 박스 */
.bn-view-common01.ybri_notice-view .b-privacy-box {
	margin-top: 24px;
	padding: 16px;
	background: #fffbf0;
	border: 1px solid #f0e0a0;
	border-radius: 4px;
	font-size: 13px;
	color: #665500;
}

/* 이전/다음 */
.bn-view-common01.ybri_notice-view .b-prev-next {
	margin-top: 24px;
	border-top: 1px solid #e5e5e5;
}
.bn-view-common01.ybri_notice-view .b-prev-next-row {
	display: flex;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
}
.bn-view-common01.ybri_notice-view .b-prev-next-label {
	flex: 0 0 60px;
	color: #888;
	font-size: 12px;
}
.bn-view-common01.ybri_notice-view .b-prev-next-title {
	flex: 1 1 auto;
}
.bn-view-common01.ybri_notice-view .b-prev-next-title a {
	color: inherit;
	text-decoration: none;
}
.bn-view-common01.ybri_notice-view .b-prev-next-title a:hover {
	text-decoration: underline;
}

/* =========================================================
   WRITE (신청 폼 / 신청설정 포함)
   ========================================================= */
/* 게시글 요약 (apply.jsp 상단) */
.bn-write-common01.ybri_notice-write .b-apply-notice-info {
	padding: 12px 16px;
	background: #f0f4f8;
	border-radius: 4px;
	margin-bottom: 20px;
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
}
.bn-write-common01.ybri_notice-write .b-apply-notice-title {
	font-weight: bold;
}
.bn-write-common01.ybri_notice-write .b-apply-period {
	color: #555;
	font-size: 13px;
}

/* 개인정보 동의 내용 스크롤 박스 */
.bn-write-common01.ybri_notice-write .ybri-privacy-content {
	max-height: 200px;
	overflow-y: auto;
	padding: 12px;
	border: 1px solid #ddd;
	background: #fafafa;
	border-radius: 4px;
	margin-bottom: 8px;
	font-size: 13px;
}

/* 신청 결과 메시지 */
.bn-write-common01.ybri_notice-write .ybri-apply-result {
	padding: 12px;
	margin-top: 16px;
	border-radius: 4px;
	text-align: center;
}
.bn-write-common01.ybri_notice-write .ybri-apply-result.success {
	background: #e8f5e9;
	color: #2e7d32;
}
.bn-write-common01.ybri_notice-write .ybri-apply-result.error {
	background: #ffebee;
	color: #c62828;
}

/* =========================================================
   APPLICANT LIST — div+flex 9컬럼
   ========================================================= */
/* 신청자 목록 전체 폭 확장 — write 폼이 좁아도 list 는 풀 너비 */
.bn-write-common01.ybri_notice-write .b-applicant-head,
.bn-write-common01.ybri_notice-write .b-applicant-row {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #e5e5e5;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
}
.bn-write-common01.ybri_notice-write .b-applicant-head {
	background: #f5f5f5;
	font-weight: 700;
	color: #333;
	border-top: 2px solid #003366;
	border-bottom: 1px solid #ccc;
}
.bn-write-common01.ybri_notice-write .b-applicant-row {
	transition: background-color .15s;
}
.bn-write-common01.ybri_notice-write .b-applicant-row:hover {
	background-color: #f8f9fb;
}

/* 9컬럼 폭 재조정 — 행 전체가 화면 가득 차도록 flex-grow 활용 */
.bn-write-common01.ybri_notice-write .b-applicant-head .b-col-chk,
.bn-write-common01.ybri_notice-write .b-applicant-row  .b-col-chk        { flex: 0 0 50px;  text-align: center; padding: 12px 6px; }
.bn-write-common01.ybri_notice-write .b-applicant-head .b-col-num,
.bn-write-common01.ybri_notice-write .b-applicant-row  .b-col-num        { flex: 0 0 60px;  text-align: center; padding: 12px 6px; }
.bn-write-common01.ybri_notice-write .b-applicant-head .b-col-name,
.bn-write-common01.ybri_notice-write .b-applicant-row  .b-col-name       { flex: 0 0 100px; padding: 12px 8px; }
.bn-write-common01.ybri_notice-write .b-applicant-head .b-col-affiliation,
.bn-write-common01.ybri_notice-write .b-applicant-row  .b-col-affiliation{ flex: 1 1 200px; padding: 12px 8px; }
.bn-write-common01.ybri_notice-write .b-applicant-head .b-col-pos,
.bn-write-common01.ybri_notice-write .b-applicant-row  .b-col-pos        { flex: 0 0 90px;  text-align: center; padding: 12px 6px; }
.bn-write-common01.ybri_notice-write .b-applicant-head .b-col-email,
.bn-write-common01.ybri_notice-write .b-applicant-row  .b-col-email      { flex: 1 1 200px; padding: 12px 8px; word-break: break-all; }
.bn-write-common01.ybri_notice-write .b-applicant-head .b-col-tel,
.bn-write-common01.ybri_notice-write .b-applicant-row  .b-col-tel        { flex: 0 0 140px; padding: 12px 8px; text-align: center; }
.bn-write-common01.ybri_notice-write .b-applicant-head .b-col-memo,
.bn-write-common01.ybri_notice-write .b-applicant-row  .b-col-memo       { flex: 1 1 150px; padding: 12px 8px; word-break: break-all; }
.bn-write-common01.ybri_notice-write .b-applicant-head .b-col-date,
.bn-write-common01.ybri_notice-write .b-applicant-row  .b-col-date       { flex: 0 0 150px; text-align: center; padding: 12px 6px; color: #666; }
.bn-write-common01.ybri_notice-write .b-col-full   { flex: 1 1 auto;  text-align: center; padding: 32px 16px; color: #999; }

/* 상단 영역: 카운트 + 우측 버튼 그룹 */
.bn-write-common01.ybri_notice-write .b-top-info-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 20px 0;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
}
.bn-write-common01.ybri_notice-write .b-total-count {
	font-size: 16px;
	color: #333;
}
.bn-write-common01.ybri_notice-write .b-total-count strong {
	color: #043ca1;
	font-size: 20px;
	font-weight: 700;
	margin: 0 2px;
}

/* 우측 상단 버튼 그룹 */
.bn-write-common01.ybri_notice-write .b-top-info-wrap .b-btn-wrap {
	display: flex;
	gap: 8px;
}
.bn-write-common01.ybri_notice-write .b-top-info-wrap .b-btn-wrap .b-btn-type01 {
	display: inline-block;
	min-width: 120px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	border: 1px solid #ccc;
	background-color: #fff;
	color: #333;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.bn-write-common01.ybri_notice-write .b-top-info-wrap .b-btn-wrap .b-btn-type01:hover {
	background-color: #043ca1;
	border-color: #043ca1;
	color: #fff;
	box-shadow: 0 2px 6px rgba(4, 60, 161, .25);
	text-decoration: none;
}

/* 컬럼이 많아도 가로 스크롤로 깨지지 않게 — 최소 폭 보장 */
.bn-write-common01.ybri_notice-write form#deleteApplicantForm > fieldset {
	overflow-x: auto;
}
.bn-write-common01.ybri_notice-write .b-applicant-head,
.bn-write-common01.ybri_notice-write .b-applicant-row {
	min-width: 1080px;
}

/* ===== write 화면 체크박스 — 네이티브 숨기고 솔루션 커스텀(.b-chk + label:before)만 노출 ===== */
/* (이전: 네이티브를 강제 노출해 커스텀 박스와 중복 표시되던 문제 수정) */
.bn-write-common01 .b-lock-box .b-chk,
.bn-write-common01 .b-lock-box input[type="checkbox"].b-chk {
	display: none !important;
}
.bn-write-common01 .b-lock-box label {
	vertical-align: middle;
	cursor: pointer;
}

/* ===== 신청자 목록 탭 (활성 / 삭제) ===== */
.b-applicant-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #1a4d8c;
	margin: 14px 0 16px;
}
.b-applicant-tabs .b-tab-btn {
	background: #f5f6f8;
	border: 1px solid #d9dce1;
	border-bottom: none;
	padding: 10px 22px;
	font-size: 15px;
	font-weight: 500;
	color: #555;
	cursor: pointer;
	border-radius: 6px 6px 0 0;
	margin-right: 4px;
	transition: background .15s, color .15s;
}
.b-applicant-tabs .b-tab-btn:hover {
	background: #eef2f7;
	color: #1a4d8c;
}
.b-applicant-tabs .b-tab-btn.is-active {
	background: #1a4d8c;
	color: #fff;
	border-color: #1a4d8c;
}
.b-applicant-tabs .b-tab-cnt {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	background: rgba(255,255,255,.25);
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
}
.b-applicant-tabs .b-tab-btn:not(.is-active) .b-tab-cnt {
	background: #dde2ea;
	color: #1a4d8c;
}

/* 삭제 탭 — 체크박스 컬럼 제거된 헤더/행 정렬 */
.b-applicant-head-deleted .b-col-num { padding-left: 0; }
.b-applicant-row-deleted {
	background: #fafafa;
	color: #777;
}
.b-applicant-row-deleted .b-col-name,
.b-applicant-row-deleted .b-col-affiliation {
	text-decoration: line-through;
	text-decoration-color: #aaa;
}



@media (max-width:768px){
	.ybri_notice-list .ybri_notice-table .b-td-left{
		padding:13px 12px;
	}
	.ybri_notice-list .b-btn-box{
		display:flex;
		flex-direction:column;
		gap:8px;
	}
	.ybri_notice-list .b-apply-btn{
		width:100%;
		box-sizing: border-box;
	}
	.ybri_notice-list .b-btn-apply,
	.ybri_notice-list .b-btn-applicant{
		color:#fff !important;
	}
	.ybri_notice-list .b-info{
		margin:2px 0 5px;
	}
}