/**
 * Contractor Bulk Apprentices wizard (mirrors admin bulk flow).
 */

.iec-ap-bulk-guide-layout {
	margin: 0 0 2rem;
}

.iec-ap-bulk-flow {
	margin: 0 0 1.25rem;
	padding: 1rem 1.15rem;
	background: #fff;
	border: 1px solid #e5e8ef;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(26, 31, 46, 0.04);
}

.iec-ap-bulk-flow__list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.iec-ap-bulk-flow__step {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex: 0 1 auto;
	min-width: 0;
}

.iec-ap-bulk-flow__marker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	flex-shrink: 0;
	border-radius: 50%;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
	border: 2px solid #c5ccd8;
	background: #f5f7fb;
	color: #5a6478;
}

.iec-ap-bulk-flow__marker svg {
	display: block;
}

.iec-ap-bulk-flow__copy {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.iec-ap-bulk-flow__title {
	font-size: 0.92rem;
	font-weight: 700;
	color: #1a1f2e;
	line-height: 1.25;
}

.iec-ap-bulk-flow__desc {
	font-size: 0.8rem;
	color: #5a6478;
	line-height: 1.3;
}

.iec-ap-bulk-flow__connector {
	flex: 1 1 1.5rem;
	height: 2px;
	margin: 0 0.75rem;
	min-width: 1rem;
	background: #e5e8ef;
	border-radius: 2px;
	list-style: none;
}

.iec-ap-bulk-flow__step--current .iec-ap-bulk-flow__marker {
	border-color: #1e4fd6;
	background: #1e4fd6;
	color: #fff;
	box-shadow: 0 0 0 4px rgba(30, 79, 214, 0.15);
}

.iec-ap-bulk-flow__step--current .iec-ap-bulk-flow__title {
	color: #163ea8;
}

.iec-ap-bulk-flow__step--done .iec-ap-bulk-flow__marker {
	border-color: #1a7f37;
	background: #1a7f37;
	color: #fff;
}

.iec-ap-bulk-flow__connector--done {
	background: #1a7f37;
}

.iec-ap-bulk-flow__step--upcoming .iec-ap-bulk-flow__title,
.iec-ap-bulk-flow__step--upcoming .iec-ap-bulk-flow__desc {
	opacity: 0.65;
}

.iec-ap-bulk-panel {
	margin: 0;
	padding: 1.25rem 1.35rem 1.4rem;
	background: #fff;
	border: 1px solid #e5e8ef;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(26, 31, 46, 0.05);
}

.iec-ap-bulk-panel--step-download {
	border-color: #1e4fd6;
	box-shadow: 0 0 0 3px rgba(30, 79, 214, 0.12), 0 8px 24px rgba(26, 31, 46, 0.05);
}

.iec-ap-bulk-panel__title {
	margin: 0 0 0.85rem;
	font-size: 1.2rem;
	line-height: 1.3;
}

.iec-ap-bulk-panel__lead {
	margin: 0 0 0.45rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	color: #1a1f2e;
}

.iec-ap-bulk-panel__note {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #5a6478;
	font-weight: 400;
}

.iec-ap-bulk-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	align-items: baseline;
	margin: 0 0 0.85rem;
	padding: 0.65rem 0.85rem;
	background: #f5f7fb;
	border-radius: 8px;
}

.iec-ap-bulk-meta__label {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #5a6478;
}

.iec-ap-bulk-meta__value {
	font-weight: 600;
	color: #1a1f2e;
}

.iec-ap-bulk-meta__muted {
	font-weight: 400;
	color: #5a6478;
}

.iec-ap-bulk-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	margin: 1.25rem 0 0;
}

.iec-ap-bulk-guide__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	margin: 1rem 0;
}

.iec-ap-bulk-guide__secondary {
	background: #fff !important;
	border: 1px solid #c5ccd8 !important;
	color: #1a1f2e !important;
}

.iec-ap-bulk-guide__secondary:hover {
	background: #f5f7fb !important;
	border-color: #1e4fd6 !important;
	color: #1e4fd6 !important;
}

.iec-ap-bulk-field-help,
.iec-ap-bulk-paste {
	margin: 0.85rem 0 1rem;
	padding: 0.75rem 0.9rem;
	background: #fafbfd;
	border: 1px solid #e5e8ef;
	border-radius: 8px;
}

.iec-ap-bulk-field-help summary,
.iec-ap-bulk-paste summary {
	cursor: pointer;
	font-weight: 600;
}

.iec-ap-bulk-field-help ul {
	margin: 0.5rem 0 0;
	padding-left: 1.1rem;
}

.iec-ap-bulk-field-help code {
	background: #eef2ff;
	color: #1e4fd6;
	padding: 0.1rem 0.35rem;
	border-radius: 4px;
	font-size: 0.85em;
}

.iec-ap-bulk-csv {
	width: 100%;
	margin-top: 0.5rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.85rem;
	box-sizing: border-box;
}

.iec-ap-bulk-preview-issues .iec-ap-bulk-support {
	margin: 0.85rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(127, 29, 29, 0.15);
	font-size: 0.9rem;
	line-height: 1.45;
	color: #7f1d1d;
	opacity: 0.9;
}

.iec-ap-bulk-support__link {
	color: #1e4fd6;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.iec-ap-bulk-support__link:hover {
	color: #163ea8;
}

.iec-ap-bulk-preview-hint {
	margin: 0 0 0.75rem;
	color: #5a6478;
	font-size: 0.9rem;
}

.iec-ap-bulk-preview-issues ul {
	margin: 0.5rem 0 0.65rem;
	padding-left: 1.2rem;
}

.iec-ap-bulk-preview-issues .description {
	margin: 0;
	color: #7f1d1d;
	opacity: 0.85;
}

.iec-ap-bulk-preview-shell {
	position: relative;
	margin: 1rem 0 1.25rem;
}

.iec-ap-bulk-preview-wrap {
	overflow-x: auto;
	border: 1px solid #e5e8ef;
	border-radius: 8px;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
}

.iec-ap-bulk-preview-wrap:focus {
	outline: 2px solid rgba(30, 79, 214, 0.35);
	outline-offset: 2px;
}

.iec-ap-bulk-preview-scroll-cue {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 5.5rem;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 0.35rem;
	z-index: 2;
}

.iec-ap-bulk-preview-scroll-cue[hidden] {
	display: none !important;
}

.iec-ap-bulk-preview-scroll-cue__fade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 55%);
	border-radius: 0 8px 8px 0;
	pointer-events: none;
}

.iec-ap-bulk-preview-scroll-cue__btn {
	position: relative;
	z-index: 1;
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	margin: 0;
	padding: 0.45rem 0.55rem 0.45rem 0.65rem;
	border: 1px solid #1e4fd6;
	border-radius: 999px;
	background: #1e4fd6;
	color: #fff;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(30, 79, 214, 0.35);
	animation: iec-ap-bulk-cue-pulse 1.6s ease-in-out infinite;
}

.iec-ap-bulk-preview-scroll-cue__btn:hover {
	background: #163ea8;
	border-color: #163ea8;
}

.iec-ap-bulk-preview-scroll-cue__label {
	white-space: nowrap;
}

@keyframes iec-ap-bulk-cue-pulse {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
	.iec-ap-bulk-preview-scroll-cue__btn {
		animation: none;
	}
	.iec-ap-bulk-preview-wrap {
		scroll-behavior: auto;
	}
}

.iec-ap-bulk-preview-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.iec-ap-bulk-preview-table--full {
	width: max-content;
	min-width: 100%;
}

.iec-ap-bulk-preview-table--full th,
.iec-ap-bulk-preview-table--full td {
	white-space: nowrap;
	max-width: 14rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

.iec-ap-bulk-preview-table th,
.iec-ap-bulk-preview-table td {
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid #e5e8ef;
	text-align: left;
}

.iec-ap-bulk-preview-table thead th {
	background: #f5f7fb;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #5a6478;
	position: sticky;
	top: 0;
	z-index: 1;
}

.iec-ap-bulk-preview-table tbody tr:nth-child(even) {
	background: #fafbfd;
}

.iec-ap-bulk-preview-table tfoot th {
	background: #f0f4ff;
	font-weight: 700;
}

.iec-billing-app-btn:disabled,
button.iec-billing-app-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.iec-ap-bulk-guide__warn {
	padding: 0.85rem 1rem;
	background: #fff8e6;
	border: 1px solid #f0d78c;
	border-radius: 8px;
}

.iec-ap-bulk-guide__notice {
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	border-radius: 8px;
}

.iec-ap-bulk-guide__notice p {
	margin: 0;
}

.iec-ap-bulk-guide__notice--success {
	background: #e8f7ee;
	border: 1px solid #9fd5b3;
	color: #14532d;
}

.iec-ap-bulk-guide__notice--error {
	background: #fdecec;
	border: 1px solid #f0b4b4;
	color: #7f1d1d;
}

.iec-ap-bulk-wizard-form input[type="file"] {
	margin-top: 0.35rem;
}

.iec-ap-bulk-wizard-form label {
	cursor: pointer;
}

.iec-ap-bulk-wizard-form .description {
	margin: 0.35rem 0 0;
	color: #5a6478;
	font-size: 0.9rem;
}

/* Spreadsheet mockups */
.iec-ap-bulk-mock {
	margin: 1.25rem 0;
	border: 1px solid #d0d7e5;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 24px rgba(26, 31, 46, 0.06);
}

.iec-ap-bulk-mock figcaption {
	margin: 0;
	padding: 0.65rem 1rem;
	font-size: 0.85rem;
	color: #5a6478;
	background: #f7f9fc;
	border-top: 1px solid #e5e8ef;
}

.iec-ap-bulk-mock__chrome {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 0.85rem;
	background: linear-gradient(180deg, #f4f6fa, #e9edf5);
	border-bottom: 1px solid #d0d7e5;
}

.iec-ap-bulk-mock__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #c5ccd8;
}

.iec-ap-bulk-mock__dot:nth-child(1) { background: #ff5f57; }
.iec-ap-bulk-mock__dot:nth-child(2) { background: #febc2e; }
.iec-ap-bulk-mock__dot:nth-child(3) { background: #28c840; }

.iec-ap-bulk-mock__title {
	margin-left: 0.5rem;
	font-size: 0.8rem;
	color: #5a6478;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.iec-ap-bulk-mock__scroll {
	overflow-x: auto;
}

.iec-ap-bulk-mock__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8rem;
	min-width: 520px;
}

.iec-ap-bulk-mock__table th,
.iec-ap-bulk-mock__table td {
	border: 1px solid #e5e8ef;
	padding: 0.45rem 0.55rem;
	text-align: left;
	white-space: nowrap;
}

.iec-ap-bulk-mock__table th {
	background: #f0f3f8;
	font-weight: 600;
	color: #3a4254;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.72rem;
}

.iec-ap-bulk-mock__dd {
	background: #eef3ff !important;
}

.iec-ap-bulk-mock__dd span:first-child {
	padding-right: 0.25rem;
}

.iec-ap-bulk-mock__caret {
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 0.35rem;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #1e4fd6;
	vertical-align: middle;
}

@media (max-width: 782px) {
	.iec-ap-bulk-flow__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0.65rem;
	}

	.iec-ap-bulk-flow__connector {
		display: none;
	}

	.iec-ap-bulk-flow__step {
		width: 100%;
	}

	.iec-ap-bulk-guide__actions,
	.iec-ap-bulk-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.iec-ap-bulk-guide__actions .iec-billing-app-btn,
	.iec-ap-bulk-actions .iec-billing-app-btn {
		width: 100%;
	}
}
