/* 아이웹플 직원안내 — [iwp_staff] */
.iwps {
	--iwps-accent: #096fad;
	--iwps-line: #e3e3e3;
	--iwps-head-bg: #f2f2f2;
	--iwps-tab-bg: #f1f1f1;
	--iwps-tab-bd: #e7e7e7;
	--iwps-text: #222;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	font-family: inherit;
	color: var(--iwps-text);
	box-sizing: border-box;
}
.iwps *,
.iwps *::before,
.iwps *::after {
	box-sizing: border-box;
}

/* ---------- 탭 ---------- */
.iwps .iwps-tabs {
	display: none; /* JS 가 없으면 탭을 숨기고 모든 부서를 펼친다 */
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 40px;
	padding: 0;
}
.iwps.iwps--js .iwps-tabs {
	display: flex;
}
.iwps .iwps-tab {
	flex: 1 1 auto;
	margin: 0;
	padding: 10px 26px;
	min-height: 44px;
	border: 1px solid var(--iwps-tab-bd);
	border-radius: 999px;
	background: var(--iwps-tab-bg);
	color: #292929;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	text-align: center;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.iwps .iwps-tab:hover,
.iwps .iwps-tab[aria-selected="true"] {
	background: var(--iwps-accent);
	border-color: var(--iwps-accent);
	color: #fff;
}
.iwps .iwps-tab:focus {
	outline: none;
}
.iwps .iwps-tab:focus-visible {
	outline: 3px solid var(--iwps-accent);
	outline-offset: 2px;
}

/* ---------- 모바일 부서 선택 셀렉트 (PC·JS 꺼짐에서는 숨김) ---------- */
.iwps .iwps-jump {
	display: none;
	margin: 0 0 28px;
}
.iwps .iwps-jump-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.iwps .iwps-jump-select {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 48px 0 18px;
	border: 2px solid var(--iwps-accent);
	border-radius: 12px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23292929' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 16px 16px;
	color: #222;
	font-family: inherit;
	font-size: 17px; /* 16px 이상 — 아이폰 입력 확대 방지 */
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
.iwps .iwps-jump-select::-ms-expand {
	display: none;
}
.iwps .iwps-jump-select:focus {
	outline: none;
}
.iwps .iwps-jump-select:focus-visible {
	outline: 3px solid var(--iwps-accent);
	outline-offset: 2px;
}

/* ---------- 패널 ---------- */
.iwps .iwps-panel {
	margin: 0 0 48px;
}
.iwps.iwps--js .iwps-panel {
	margin: 0;
}
.iwps .iwps-panel[hidden] {
	display: none;
}
.iwps .iwps-panel:focus {
	outline: none;
}
.iwps .iwps-panel:focus-visible {
	outline: 2px dashed var(--iwps-accent);
	outline-offset: 4px;
}
.iwps .iwps-empty {
	margin: 0;
	padding: 40px 0;
	border-top: 2px solid #222;
	border-bottom: 1px solid var(--iwps-line);
	text-align: center;
	color: #555;
}

/* 부서 이름 — JS 가 없을 때만 보인다 */
.iwps .iwps-title-nojs,
.iwps .iwps-caption {
	margin: 0 0 12px;
	padding: 0;
	font-size: 20px;
	font-weight: 700;
	text-align: left;
	caption-side: top;
	color: inherit;
}
.iwps.iwps--js .iwps-title-nojs {
	display: none;
}
.iwps.iwps--js .iwps-caption {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------- 표 ---------- */
.iwps .iwps-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-top: 2px solid #222;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: auto; /* 열 비율은 col 폭을 따르되, 낱말이 안 들어가면 그 열만 넓어진다 */
	font-size: 16px;
	line-height: 1.5;
	background: transparent;
}
.iwps .iwps-col-pos { width: 20%; }
.iwps .iwps-col-name { width: 13%; }
.iwps .iwps-col-phone { width: 18%; }
.iwps .iwps-col-mission { width: auto; }

.iwps .iwps-table th,
.iwps .iwps-table td {
	height: 56px;
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--iwps-line);
	background: transparent;
	color: var(--iwps-text);
	font-family: inherit;
	font-size: inherit;
	text-align: center;
	vertical-align: middle;
	word-break: keep-all;
	overflow-wrap: break-word;
}
.iwps .iwps-table td.iwps-c-phone {
	white-space: nowrap;
}
.iwps .iwps-table thead th {
	background: var(--iwps-head-bg);
	color: #000;
	font-weight: 700;
}
.iwps .iwps-table tbody th {
	font-weight: 700;
	color: #000;
}
.iwps .iwps-table tbody tr:hover > th,
.iwps .iwps-table tbody tr:hover > td,
.iwps .iwps-table tbody tr:nth-child(odd) > th,
.iwps .iwps-table tbody tr:nth-child(odd) > td {
	background: transparent;
}

/* 이름 목록 행 (한 칸에 여러 명) */
.iwps .iwps-table td.iwps-c-names {
	padding: 16px 20px;
	text-align: left;
}
.iwps .iwps-names {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: hidden; /* 줄 맨 앞 이름의 구분선을 가린다 */
}
.iwps .iwps-names li {
	margin: 3px 0 3px -1px;
	padding: 0 12px;
	border-left: 1px solid #c8c8c8;
	line-height: 1.5;
	white-space: nowrap;
	list-style: none;
}

/* ---------- 모바일 ---------- */
@media (max-width: 768px) {
	/* 모바일: 탭 버튼 대신 부서 선택 셀렉트 */
	.iwps.iwps--js .iwps-tabs {
		display: none;
	}
	.iwps.iwps--js .iwps-jump {
		display: block;
	}

	.iwps .iwps-table,
	.iwps .iwps-table tbody,
	.iwps .iwps-table tr,
	.iwps .iwps-table th,
	.iwps .iwps-table td {
		display: block;
		width: 100%;
	}
	.iwps .iwps-table colgroup {
		display: none;
	}
	.iwps .iwps-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		clip-path: inset(50%);
	}
	.iwps .iwps-table tbody tr {
		padding: 16px 4px;
		border-bottom: 1px solid var(--iwps-line);
		text-align: left;
	}
	.iwps .iwps-table tbody th,
	.iwps .iwps-table tbody td {
		height: auto;
		padding: 0;
		border: 0;
		text-align: left;
	}
	.iwps .iwps-table tbody th {
		margin: 0 0 6px;
		font-size: 17px;
	}
	.iwps .iwps-table tbody td.iwps-c-name,
	.iwps .iwps-table tbody td.iwps-c-phone {
		display: inline;
		width: auto;
	}
	.iwps .iwps-table tbody td.iwps-c-name:not(:empty) + td.iwps-c-phone:not(:empty) {
		margin-left: 6px;
		padding-left: 8px;
		border-left: 1px solid #c8c8c8;
	}
	.iwps .iwps-table tbody td.iwps-c-mission {
		margin-top: 6px;
	}
	.iwps .iwps-table tbody td:empty {
		display: none;
	}
	.iwps .iwps-table tbody td[data-label]::before {
		content: attr(data-label);
		margin-right: 6px;
		color: #6b6b6b;
		font-size: 13px;
		font-weight: 500;
	}
	.iwps .iwps-table tbody td.iwps-c-mission::before,
	.iwps .iwps-table tbody td.iwps-c-names::before {
		display: block;
		margin: 0 0 2px;
	}
	.iwps .iwps-table td.iwps-c-names {
		padding: 0;
	}
	.iwps .iwps-names li {
		padding: 0 10px;
	}
	.iwps .iwps-empty {
		padding: 28px 0;
	}
}
