/**
 * MineJobs structured work-experience field.
 * Component-only rules; dashboard and page shells are intentionally untouched.
 */

.mj-work-experience {
	--mj-we-primary: #1677ff;
	--mj-we-primary-soft: #eef6ff;
	--mj-we-primary-border: #b8d8ff;
	--mj-we-text: #172033;
	--mj-we-muted: #667085;
	--mj-we-border: #dfe5ec;
	--mj-we-surface: #ffffff;
	--mj-we-soft: #f7f9fc;
	--mj-we-success: #087a55;
	--mj-we-danger: #c62828;
	direction: rtl;
	width: 100%;
	box-sizing: border-box;
	font-family: Vazirmatn, IRANSans, Tahoma, Arial, sans-serif;
}

.mj-work-experience *,
.mj-work-experience *::before,
.mj-work-experience *::after {
	box-sizing: border-box;
}

.mj-work-experience__intro {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 14px;
	padding: 13px 15px;
	border: 1px solid #dbeafe;
	border-radius: 13px;
	background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.mj-work-experience__intro strong,
.mj-work-experience__section-heading strong {
	color: var(--mj-we-text);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.8;
}

.mj-work-experience__intro span,
.mj-work-experience__section-heading span {
	color: var(--mj-we-muted);
	font-size: 12px;
	line-height: 1.9;
}

.mj-work-experience__exception,
.mj-work-experience__requirements {
	padding: 16px;
	border: 1px solid var(--mj-we-border);
	border-radius: 15px;
	background: var(--mj-we-surface);
	box-shadow: 0 4px 16px rgba(16, 24, 40, 0.035);
}

.mj-work-experience__requirements {
	margin-top: 14px;
	border-color: var(--mj-we-primary-border);
	background: #fbfdff;
}

.mj-work-experience__section-heading {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 13px;
}

.mj-work-experience__exception-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.mj-work-experience__option {
	position: relative;
	min-width: 0;
}

.mj-work-experience__checkbox {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.mj-work-experience__choice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	height: 100%;
	min-height: 88px;
	margin: 0;
	padding: 13px;
	border: 1px solid var(--mj-we-border);
	border-radius: 13px;
	background: var(--mj-we-surface);
	cursor: pointer;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.mj-work-experience__choice:hover {
	border-color: var(--mj-we-primary-border);
	box-shadow: 0 7px 20px rgba(22, 119, 255, 0.075);
	transform: translateY(-1px);
}

.mj-work-experience__checkbox:focus-visible + .mj-work-experience__choice {
	outline: 3px solid rgba(22, 119, 255, 0.2);
	outline-offset: 2px;
}

.mj-work-experience__checkbox:checked + .mj-work-experience__choice {
	border-color: var(--mj-we-primary);
	background: var(--mj-we-primary-soft);
	box-shadow: 0 7px 22px rgba(22, 119, 255, 0.1);
}

.mj-work-experience__option.is-disabled .mj-work-experience__choice,
.mj-work-experience__checkbox:disabled + .mj-work-experience__choice {
	border-color: #e6e9ee;
	background: #f7f8fa;
	box-shadow: none;
	cursor: not-allowed;
	opacity: 0.67;
	transform: none;
}

.mj-work-experience__option--dependent .mj-work-experience__choice {
	position: relative;
}

.mj-work-experience__option--dependent .mj-work-experience__choice::before {
	content: "";
	position: absolute;
	top: 50%;
	right: -11px;
	width: 10px;
	height: 1px;
	background: var(--mj-we-border);
}

.mj-work-experience__check {
	position: relative;
	flex: 0 0 23px;
	width: 23px;
	height: 23px;
	margin-top: 1px;
	border: 2px solid #c7d0dc;
	border-radius: 7px;
	background: #fff;
	transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mj-work-experience__checkbox:checked + .mj-work-experience__choice .mj-work-experience__check {
	border-color: var(--mj-we-primary);
	background: var(--mj-we-primary);
	box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.1), 0 0 13px rgba(22, 119, 255, 0.2);
}

.mj-work-experience__checkbox:checked + .mj-work-experience__choice .mj-work-experience__check::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 6px;
	width: 6px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.mj-work-experience__choice-copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.mj-work-experience__choice-copy strong {
	color: var(--mj-we-text);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.85;
}

.mj-work-experience__choice-copy small {
	color: var(--mj-we-muted);
	font-size: 11.5px;
	font-weight: 400;
	line-height: 1.85;
}

.mj-work-experience__range-group,
.mj-work-experience__details-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mj-work-experience__details-group {
	margin-top: 16px;
}

.mj-work-experience__field-label {
	margin: 0;
	color: var(--mj-we-text);
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.8;
}

.mj-work-experience__range {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mj-work-experience__number-wrap {
	display: flex;
	align-items: center;
	overflow: hidden;
	width: 138px;
	height: 52px;
	margin: 0;
	border: 1px solid var(--mj-we-border);
	border-radius: 11px;
	background: #fff;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.mj-work-experience__number-wrap:focus-within {
	border-color: var(--mj-we-primary);
	box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.mj-work-experience__number-wrap input {
	width: 88px !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--mj-we-text) !important;
	font: 800 16px/1 Vazirmatn, IRANSans, Tahoma, Arial, sans-serif !important;
	text-align: center;
	appearance: textfield;
}

.mj-work-experience__number-wrap input::-webkit-inner-spin-button,
.mj-work-experience__number-wrap input::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

.mj-work-experience__number-wrap > span {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	min-width: 50px;
	padding: 0 8px;
	border-right: 1px solid #edf0f4;
	background: var(--mj-we-soft);
	color: var(--mj-we-muted);
	font-size: 11px;
	font-weight: 700;
}

.mj-work-experience__range-separator {
	color: var(--mj-we-muted);
	font-size: 12px;
	font-weight: 800;
}

.mj-work-experience__hint {
	color: var(--mj-we-muted);
	font-size: 11.5px;
	font-style: normal;
	line-height: 1.85;
}

.mj-work-experience__label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.mj-work-experience__label-row > span {
	color: var(--mj-we-muted);
	font-size: 10.5px;
	white-space: nowrap;
}

.mj-work-experience__label-row b {
	color: var(--mj-we-primary);
	font-weight: 800;
}

.mj-work-experience textarea {
	width: 100% !important;
	min-height: 116px !important;
	margin: 0 !important;
	padding: 12px 14px !important;
	border: 1px solid var(--mj-we-border) !important;
	border-radius: 11px !important;
	outline: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--mj-we-text) !important;
	font: 400 13px/2 Vazirmatn, IRANSans, Tahoma, Arial, sans-serif !important;
	resize: vertical;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.mj-work-experience textarea:focus {
	border-color: var(--mj-we-primary) !important;
	box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12) !important;
}

.mj-work-experience__status {
	min-height: 23px;
	margin-top: 10px;
	padding: 0 2px;
	color: var(--mj-we-muted);
	font-size: 11.5px;
	line-height: 1.9;
}

.mj-work-experience__status.is-ready {
	color: var(--mj-we-success);
}

.mj-work-experience__error {
	margin-top: 8px;
	padding: 10px 12px;
	border: 1px solid #ffc7c7;
	border-radius: 10px;
	background: #fff3f3;
	color: var(--mj-we-danger);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.9;
}

.mj-work-experience.is-invalid .mj-work-experience__requirements {
	border-color: #ef9a9a;
	box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08);
}

.mj-work-experience .is-field-invalid {
	border-color: var(--mj-we-danger) !important;
	box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1) !important;
}

.mj-work-experience--admin {
	max-width: 860px;
	padding: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
}

/* Public job display. */
.mj-work-experience-display {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
	width: 100%;
	color: #263244;
	font-weight: 500;
	line-height: 1.9;
}

.mj-work-experience-display__item {
	display: inline-flex;
	align-items: flex-start;
	gap: 7px;
}

.mj-work-experience-display__item i {
	position: relative;
	flex: 0 0 17px;
	width: 17px;
	height: 17px;
	margin-top: 5px;
	border-radius: 50%;
	background: #e8f2ff;
}

.mj-work-experience-display__item i::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 6px;
	width: 4px;
	height: 7px;
	border: solid #1677ff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.mj-work-experience-display__item--open i {
	background: #e7f8f1;
}

.mj-work-experience-display__item--open i::after {
	border-color: #087a55;
}

.mj-work-experience-display__details {
	display: flex;
	flex-direction: column;
	gap: 3px;
	width: 100%;
	margin-top: 2px;
	padding: 9px 11px;
	border-right: 3px solid #b8d8ff;
	border-radius: 8px;
	background: #f7faff;
	color: #5a6678;
	font-size: 12px;
	font-weight: 400;
	line-height: 2;
}

.mj-work-experience-display__details strong {
	color: #263244;
	font-size: 11.5px;
	font-weight: 800;
}

.mjj-overview-item--work-experience,
.mjj-custom-info-item--work-experience {
	grid-column: auto;
}

.mjj-overview-item--work-experience > strong,
.mjj-custom-info-item--work-experience > strong {
	width: 100%;
}

@media (max-width: 767px) {
	.mj-work-experience__exception,
	.mj-work-experience__requirements {
		padding: 13px;
	}

	.mj-work-experience__exception-options {
		grid-template-columns: 1fr;
	}

	.mj-work-experience__choice {
		min-height: 0;
	}

	.mj-work-experience__option--dependent .mj-work-experience__choice::before {
		display: none;
	}

	.mj-work-experience__range {
		gap: 7px;
	}

	.mj-work-experience__number-wrap {
		width: calc(50% - 20px);
		min-width: 0;
	}

	.mj-work-experience__number-wrap input {
		width: calc(100% - 44px) !important;
		padding: 0 8px !important;
	}

	.mj-work-experience__number-wrap > span {
		min-width: 44px;
	}

	.mj-work-experience__label-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}

	.mjj-overview-item--work-experience,
	.mjj-custom-info-item--work-experience {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mj-work-experience__choice,
	.mj-work-experience__check,
	.mj-work-experience textarea,
	.mj-work-experience__number-wrap {
		animation: none !important;
		transition: none !important;
	}
}


/* MineJobs r140: public details are self-explanatory; no redundant subheading. */
.mj-work-experience-display__details > span {
	display: block;
	width: 100%;
}


/* MineJobs r143 - compact work-experience rendering in summary cards. */
.mj-work-experience-compact {
	display: inline !important;
	width: auto !important;
	max-width: 100% !important;
	font: inherit !important;
	color: inherit !important;
	line-height: inherit !important;
	white-space: normal !important;
}

.mjj-overview-item--work-experience,
.mjj-custom-info-item--work-experience {
	grid-column: auto !important;
}
