/* IFC Employer Portal — front-end dashboard
   Deliberately neutral so it inherits the site's typography. */

.ifc-ep {
	--ifc-ep-border: #e2e5ea;
	--ifc-ep-muted: #6b7280;
	--ifc-ep-accent: #1d4ed8;
	--ifc-ep-bg: #f8f9fb;
	max-width: 60rem;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.5;
}

.ifc-ep__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--ifc-ep-border);
	margin-bottom: 1.5rem;
}

.ifc-ep__title {
	margin: 0;
	font-size: 1.5rem;
}

.ifc-ep__seats {
	margin: 0;
	color: var(--ifc-ep-muted);
	font-weight: 600;
}

.ifc-ep__panel {
	border: 1px solid var(--ifc-ep-border);
	border-radius: 0.5rem;
	padding: 1.25rem;
	margin-bottom: 1.5rem;
	background: #fff;
}

.ifc-ep__panel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.ifc-ep__panel-head h3 {
	margin: 0;
	font-size: 1.125rem;
}

.ifc-ep__form--inline {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem;
}

.ifc-ep__field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1 1 12rem;
}

.ifc-ep__field > span {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ifc-ep-muted);
}

.ifc-ep__field input,
.ifc-ep__field select {
	width: 100%;
	padding: 0.5rem 0.625rem;
	border: 1px solid var(--ifc-ep-border);
	border-radius: 0.375rem;
	background: #fff;
}

.ifc-ep__btn {
	display: inline-block;
	padding: 0.55rem 1rem;
	border: 1px solid var(--ifc-ep-accent);
	border-radius: 0.375rem;
	background: var(--ifc-ep-accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.ifc-ep__btn:hover,
.ifc-ep__btn:focus {
	filter: brightness(0.92);
	color: #fff;
}

.ifc-ep__btn--ghost {
	background: transparent;
	color: var(--ifc-ep-accent);
}

.ifc-ep__btn--ghost:hover,
.ifc-ep__btn--ghost:focus {
	background: var(--ifc-ep-bg);
	color: var(--ifc-ep-accent);
}

.ifc-ep__btn--small {
	padding: 0.45rem 0.85rem;
	font-size: 0.9375rem;
}

.ifc-ep__link-btn {
	padding: 0;
	border: 0;
	background: none;
	color: #b42318;
	font-size: 0.875rem;
	text-decoration: underline;
	cursor: pointer;
}

.ifc-ep__employee {
	border: 1px solid var(--ifc-ep-border);
	border-radius: 0.5rem;
	padding: 1rem;
	margin-bottom: 1rem;
	background: var(--ifc-ep-bg);
}

.ifc-ep__employee-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.ifc-ep__employee-name {
	display: block;
}

.ifc-ep__employee-email {
	color: var(--ifc-ep-muted);
	font-size: 0.875rem;
}

.ifc-ep__table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-size: 0.9375rem;
}

.ifc-ep__table th,
.ifc-ep__table td {
	padding: 0.55rem 0.65rem;
	text-align: left;
	border-bottom: 1px solid var(--ifc-ep-border);
	vertical-align: middle;
}

.ifc-ep__table th {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--ifc-ep-muted);
}

.ifc-ep__bar {
	display: inline-block;
	width: 4.5rem;
	height: 0.5rem;
	margin-right: 0.4rem;
	border-radius: 999px;
	background: var(--ifc-ep-border);
	overflow: hidden;
	vertical-align: middle;
}

.ifc-ep__bar-fill {
	display: block;
	height: 100%;
	background: var(--ifc-ep-accent);
}

.ifc-ep__badge {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	background: #dcfce7;
	color: #166534;
	font-size: 0.6875rem;
	font-weight: 700;
	white-space: nowrap;
}

.ifc-ep__assign {
	margin-top: 0.85rem;
}

.ifc-ep__muted {
	color: var(--ifc-ep-muted);
	margin: 0;
}

.ifc-ep__legend {
	margin: 1.25rem 0 .5rem;
	padding-bottom: .35rem;
	border-bottom: 1px solid var(--ifc-ep-border);
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ifc-ep-muted);
}

.ifc-ep__legend:first-child {
	margin-top: 0;
}

.ifc-ep__checkbox {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	margin-top: .75rem;
	font-size: .9375rem;
}

.ifc-ep__checkbox input {
	margin-top: .25rem;
	flex: none;
}

.ifc-ep__notice {
	padding: 0.75rem 1rem;
	border-left: 4px solid var(--ifc-ep-muted);
	border-radius: 0.25rem;
	margin-bottom: 1.25rem;
	background: var(--ifc-ep-bg);
}

.ifc-ep__notice--success {
	border-left-color: #16a34a;
	background: #f0fdf4;
}

.ifc-ep__notice--error {
	border-left-color: #b42318;
	background: #fef3f2;
}

.ifc-ep__notice--info {
	border-left-color: var(--ifc-ep-accent);
	background: #eff6ff;
}

/* Stack the table on small screens. */
@media (max-width: 48rem) {
	.ifc-ep__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.ifc-ep__table tr {
		display: block;
		padding: 0.5rem 0;
		border-bottom: 2px solid var(--ifc-ep-border);
	}

	.ifc-ep__table td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		border: 0;
		padding: 0.3rem 0.5rem;
	}

	.ifc-ep__table td::before {
		content: attr(data-label);
		font-size: 0.75rem;
		font-weight: 700;
		text-transform: uppercase;
		color: var(--ifc-ep-muted);
	}
}
