@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap');

/* =============================================================
   견적발송현황 게시판 스킨 (독립형)
   - 외부/기존 스타일 의존 없음. 이 파일 + HTML 만으로 완결.
   - 클래스 충돌 방지를 위해 전부 `estBoard` 네임스페이스 사용.
   - 폰트: Nanum Gothic (Google Fonts)
   ============================================================= */

/* ----- 루트 / 기본값 ----- */
.estBoard,
.estBoard * {
	box-sizing: border-box;
}

.estBoard {
	font-family: 'Nanum Gothic', sans-serif;
	font-size: 16px;
	color: #666;
	line-height: 1.6;
}

.estBoard a {
	text-decoration: none;
}

/* ----- 상단 툴바 (검색 / 글쓰기) ----- */
.estBoard__toolbar {
	overflow: hidden;
	margin-bottom: 20px;
}

.estBoard__search {
	float: right;
	display: flex;
	align-items: center;
	gap: 4px;
}

.estBoard__select {
	height: 31px;
	padding: 6px 2px;
	border: 1px solid #d2d2d2;
	border-radius: 3px;
	font-size: 13px;
	letter-spacing: -0.6px;
	color: #333;
}

.estBoard__keyword {
	width: 150px;
	height: 31px;
	padding: 7px 5px;
	border: 1px solid #d2d2d2;
	border-radius: 3px;
	font-size: 13px;
	color: #333;
}

/* ----- 버튼 ----- */
.estBoard__btn {
	display: inline-block;
	padding: 4px 20px;
	border: 1px solid #333;
	border-radius: 3px;
	background: #666;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	cursor: pointer;
}

.estBoard__btn:hover {
	background: #333;
}

/* ----- 게시판 테이블 ----- */
.estBoard__table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

.estBoard__table th {
	padding: 10px;
	border-top: 2px solid #666;
	border-bottom: 1px solid #e5e5e5;
	border-right: 1px solid #e5e5e5;
	background: #fafafa;
	font-size: 15px;
	font-weight: 400;
	text-align: center;
}

.estBoard__table th:last-child {
	border-right: none;
}

.estBoard__table td {
	padding: 10px;
	border-bottom: 1px solid #e5e5e5;
	text-align: center;
	word-break: break-all;
}

/* 열 너비 / 정렬 */
.estBoard__colNo     { width: 150px; }
.estBoard__colWriter { width: 250px; }
.estBoard__colDate   { width: 180px; }

.estBoard__table td.estBoard__colTitle { text-align: left; }
.estBoard__table th.estBoard__colTitle { text-align: center; }

/* 제목 링크 (말줄임) */
.estBoard__link {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #000;
}

.estBoard__link:hover {
	text-decoration: underline;
}

/* 모바일 전용 날짜·조회 (데스크톱 숨김) */
.estBoard__meta {
	display: none;
}

/* ----- 하단 글쓰기 ----- */
.estBoard__footer {
	margin-top: 20px;
	text-align: right;
}

/* ----- 페이징 ----- */
.estBoard__pagination {
	margin: 20px 0;
	text-align: center;
	font-size: 0; /* inline-block 간격 제거 */
}

.estBoard__page {
	display: inline-block;
	min-width: 22px;
	height: 22px;
	margin: 0 1px;
	padding: 0 4px;
	border: 1px solid #d2d2d2;
	line-height: 20px;
	font-size: 13px;
	color: #666;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
}

.estBoard__page:hover {
	border-color: #666;
}

.estBoard__page--current {
	background: #666;
	border-color: #333;
	color: #fff;
}

.estBoard__page--arrow {
	background: #fafafa;
}

.estBoard__page--text {
	min-width: 0;
	padding: 0 6px;
	background: #fff;
	color: #333;
}

.estBoard__page--text:hover {
	text-decoration: underline;
	border-color: #d2d2d2;
}

/* ----- 반응형: 좁은 화면에서는 제목만 노출 ----- */
@media (max-width: 700px) {
	.estBoard__search {
		float: none;
		flex-wrap: wrap;
	}

	.estBoard__table,
	.estBoard__table tbody,
	.estBoard__table tr,
	.estBoard__table td {
		display: block;
	}

	.estBoard__table thead {
		display: none;
	}

	.estBoard__table tr {
		padding: 12px 10px;
		border-bottom: 1px solid #ddd;
	}

	.estBoard__table td {
		padding: 0;
		border: none;
		text-align: left;
	}

	.estBoard__colNo,
	.estBoard__colWriter,
	.estBoard__colDate,
	.estBoard__colViews {
		display: none;
	}

	.estBoard__link {
		font-weight: 600;
	}

	.estBoard__meta {
		display: block;
		margin-top: 4px;
		color: #888;
		font-size: 13px;
	}
}
