/**
 * MineJobs searchable work/rest schedule field.
 * Component-scoped: must not control dashboard or theme shell layout.
 */
.mj-work-day {
	--mj-wd-primary: #1677ff;
	--mj-wd-primary-soft: #eef6ff;
	--mj-wd-primary-border: #b8d8ff;
	--mj-wd-text: #1f2937;
	--mj-wd-muted: #667085;
	--mj-wd-border: #d9e0e8;
	--mj-wd-surface: #fff;
	--mj-wd-soft: #f7f9fc;
	--mj-wd-success: #16794f;
	--mj-wd-danger: #c62828;
	position: relative;
	width: 100%;
	max-width: 100%;
	color: var(--mj-wd-text);
	font-family: Vazirmatn, IRANSans, Tahoma, Arial, sans-serif;
	direction: rtl;
}
.mj-work-day[hidden],
.mj-work-day [hidden] { display: none !important; }

.mj-work-day__intro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 12px;
}
.mj-work-day__intro > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mj-work-day__intro strong { color: var(--mj-wd-text); font-size: 13.5px; font-weight: 900; line-height: 1.8; }
.mj-work-day__intro span { color: var(--mj-wd-muted); font-size: 11.5px; line-height: 1.9; }
.mj-work-day__required-note {
	flex: 0 0 auto;
	padding: 5px 9px;
	border: 1px solid #dbe9fb;
	border-radius: 999px;
	background: #f5f9ff;
	color: #35689b !important;
	font-size: 10px !important;
	font-weight: 700;
	white-space: nowrap;
}

.mj-work-day__chooser { position: relative; z-index: 30; }
.mj-work-day__selector {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 66px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--mj-wd-border);
	border-radius: 14px;
	outline: 0;
	background: var(--mj-wd-surface);
	box-shadow: 0 5px 18px rgba(16, 24, 40, .045);
	color: var(--mj-wd-text);
	font: inherit;
	text-align: right;
	cursor: pointer;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.mj-work-day__selector:hover { border-color: var(--mj-wd-primary-border); background: #fbfdff; }
.mj-work-day__selector:focus-visible,
.mj-work-day.is-open .mj-work-day__selector {
	border-color: var(--mj-wd-primary);
	box-shadow: 0 0 0 3px rgba(22, 119, 255, .12), 0 8px 22px rgba(16, 24, 40, .06);
}
.mj-work-day__selector-icon {
	position: relative;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border: 1px solid #cde2ff;
	border-radius: 11px;
	background: var(--mj-wd-primary-soft);
}
.mj-work-day__selector-icon::before,
.mj-work-day__selector-icon::after {
	content: "";
	position: absolute;
	right: 9px;
	left: 9px;
	height: 3px;
	border-radius: 4px;
	background: var(--mj-wd-primary);
}
.mj-work-day__selector-icon::before { top: 11px; }
.mj-work-day__selector-icon::after { top: 22px; }
.mj-work-day__selector-copy { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.mj-work-day__selector-copy strong { overflow: hidden; color: var(--mj-wd-text); font-size: 13px; font-weight: 900; line-height: 1.8; text-overflow: ellipsis; white-space: nowrap; }
.mj-work-day__selector-copy small { overflow: hidden; color: var(--mj-wd-muted); font-size: 11px; line-height: 1.8; text-overflow: ellipsis; white-space: nowrap; }
.mj-work-day__selector-arrow {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	margin-left: 3px;
	border-right: 2px solid #7b8794;
	border-bottom: 2px solid #7b8794;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 160ms ease;
}
.mj-work-day.is-open .mj-work-day__selector-arrow { transform: rotate(225deg) translate(-2px, -2px); }

.mj-work-day__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	z-index: 1200;
	overflow: hidden;
	border: 1px solid #d6dee8;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(16, 24, 40, .17);
}
.mj-work-day__search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	padding: 11px;
	border-bottom: 1px solid #e7ebf0;
	background: #fff;
}
.mj-work-day__search-icon {
	position: absolute;
	right: 24px;
	width: 14px;
	height: 14px;
	border: 2px solid #7d8a98;
	border-radius: 50%;
	pointer-events: none;
}
.mj-work-day__search-icon::after {
	content: "";
	position: absolute;
	left: -5px;
	bottom: -3px;
	width: 6px;
	height: 2px;
	border-radius: 2px;
	background: #7d8a98;
	transform: rotate(45deg);
}
.mj-work-day__search-wrap input {
	width: 100% !important;
	height: 44px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 42px 0 38px !important;
	border: 1px solid #d6dee8 !important;
	border-radius: 11px !important;
	outline: 0 !important;
	background: #f8fafc !important;
	box-shadow: none !important;
	color: var(--mj-wd-text) !important;
	font: 500 12px/1.6 Vazirmatn, IRANSans, Tahoma, Arial, sans-serif !important;
}
.mj-work-day__search-wrap input:focus { border-color: var(--mj-wd-primary) !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(22, 119, 255, .1) !important; }
.mj-work-day__search-wrap input::-webkit-search-cancel-button { display: none; }
.mj-work-day__search-clear {
	position: absolute;
	left: 20px;
	width: 27px;
	height: 27px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #eef1f5;
	color: #667085;
	font: 700 18px/27px Arial, sans-serif;
	cursor: pointer;
}
.mj-work-day__search-clear:hover { background: #e2e8f0; color: #344054; }

.mj-work-day__list {
	max-height: 430px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 8px 8px 12px;
	scrollbar-width: thin;
	scrollbar-color: #c9d2de transparent;
}
.mj-work-day__group { padding: 5px 4px 8px; }
.mj-work-day__group + .mj-work-day__group { margin-top: 5px; padding-top: 11px; border-top: 1px solid #edf0f4; }
.mj-work-day__group-head { display: flex; flex-direction: column; gap: 2px; padding: 3px 8px 7px; }
.mj-work-day__group-head strong { color: #344054; font-size: 11.5px; font-weight: 900; line-height: 1.8; }
.mj-work-day__group-head span { color: #8a94a3; font-size: 9.8px; line-height: 1.75; }

.mj-work-day__option {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 10px;
	border: 1px solid transparent;
	border-radius: 11px;
	outline: 0;
	background: #fff;
	cursor: pointer;
	transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.mj-work-day__option + .mj-work-day__option { margin-top: 3px; }
.mj-work-day__option:hover,
.mj-work-day__option:focus-visible { border-color: #d8e8fb; background: #f8fbff; }
.mj-work-day__option:focus-visible { box-shadow: 0 0 0 3px rgba(22, 119, 255, .1); }
.mj-work-day__option.is-selected { border-color: var(--mj-wd-primary-border); background: var(--mj-wd-primary-soft); }
.mj-work-day__option.is-legacy { border-color: #f0d395; background: #fffaf0; }
.mj-work-day__option input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.mj-work-day__option-check {
	position: relative;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border: 2px solid #c4ccd7;
	border-radius: 50%;
	background: #fff;
}
.mj-work-day__option.is-selected .mj-work-day__option-check { border-color: var(--mj-wd-primary); box-shadow: 0 0 0 4px rgba(22, 119, 255, .09); }
.mj-work-day__option.is-selected .mj-work-day__option-check::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--mj-wd-primary);
}
.mj-work-day__option-copy { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.mj-work-day__option-copy > span { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mj-work-day__option-copy strong { color: var(--mj-wd-text); font-size: 12px; font-weight: 900; line-height: 1.8; }
.mj-work-day__option-copy em {
	padding: 1px 6px;
	border-radius: 999px;
	background: #e9f4ff;
	color: #0c65cf;
	font-size: 8.8px;
	font-style: normal;
	font-weight: 800;
	line-height: 1.7;
}
.mj-work-day__option-copy b { color: #1868c9; font-size: 10.7px; font-weight: 800; line-height: 1.8; }
.mj-work-day__option-copy small { color: var(--mj-wd-muted); font-size: 10px; line-height: 1.75; }
.mj-work-day__empty { display: flex; flex-direction: column; gap: 3px; margin: 10px 6px; padding: 20px; border: 1px dashed #ccd5df; border-radius: 12px; background: #fafbfc; text-align: center; }
.mj-work-day__empty strong { color: #344054; font-size: 12px; font-weight: 900; }
.mj-work-day__empty span { color: var(--mj-wd-muted); font-size: 10.5px; line-height: 1.8; }
.mj-work-day__dropdown-foot { display: flex; justify-content: flex-end; padding: 8px 12px; border-top: 1px solid #edf0f4; background: #fbfcfd; }
.mj-work-day__dropdown-foot button { padding: 5px 8px; border: 0; background: transparent; color: #667085; font: 700 10.5px/1.8 Vazirmatn, IRANSans, Tahoma, Arial, sans-serif; cursor: pointer; }
.mj-work-day__dropdown-foot button:hover { color: var(--mj-wd-danger); }

.mj-work-day__custom {
	margin-top: 12px;
	padding: 14px;
	border: 1px solid var(--mj-wd-primary-border);
	border-radius: 14px;
	background: #f8fbff;
}
.mj-work-day__custom-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 11px; }
.mj-work-day__custom-head strong { color: var(--mj-wd-text); font-size: 12.5px; font-weight: 900; line-height: 1.8; }
.mj-work-day__custom-head span { color: var(--mj-wd-muted); font-size: 10.5px; line-height: 1.8; }
.mj-work-day__custom-fields { display: flex; align-items: end; gap: 10px; }
.mj-work-day__number { display: flex; flex: 1 1 0; flex-direction: column; gap: 6px; margin: 0; }
.mj-work-day__number > span { color: #344054; font-size: 11px; font-weight: 800; }
.mj-work-day__number > div { position: relative; }
.mj-work-day__number input {
	width: 100% !important;
	height: 48px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 12px 0 46px !important;
	border: 1px solid var(--mj-wd-border) !important;
	border-radius: 10px !important;
	outline: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--mj-wd-text) !important;
	font: 900 14px/1 Vazirmatn, IRANSans, Tahoma, Arial, sans-serif !important;
	text-align: center;
	appearance: textfield;
}
.mj-work-day__number input:focus { border-color: var(--mj-wd-primary) !important; box-shadow: 0 0 0 3px rgba(22, 119, 255, .11) !important; }
.mj-work-day__number input.is-field-invalid { border-color: #ef5350 !important; box-shadow: 0 0 0 3px rgba(239, 83, 80, .1) !important; }
.mj-work-day__number input::-webkit-inner-spin-button,
.mj-work-day__number input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.mj-work-day__number > div b { position: absolute; top: 50%; left: 12px; color: #7b8794; font-size: 10px; font-weight: 700; transform: translateY(-50%); pointer-events: none; }
.mj-work-day__custom-separator { padding-bottom: 11px; color: #98a2b3; font-size: 18px; font-weight: 900; }

.mj-work-day__details {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
	padding: 14px;
	border: 1px solid #e0e6ee;
	border-radius: 14px;
	background: #fbfcfe;
}
.mj-work-day__label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mj-work-day__label-row label { margin: 0; color: var(--mj-wd-text); font-size: 12px; font-weight: 900; line-height: 1.8; }
.mj-work-day__label-row label small { color: var(--mj-wd-muted); font-size: 9.5px; font-weight: 500; }
.mj-work-day__label-row > span { color: var(--mj-wd-muted); font-size: 10px; white-space: nowrap; }
.mj-work-day__label-row b { color: var(--mj-wd-primary); font-weight: 900; }
.mj-work-day textarea {
	width: 100% !important;
	min-height: 104px !important;
	margin: 0 !important;
	padding: 12px 13px !important;
	border: 1px solid var(--mj-wd-border) !important;
	border-radius: 10px !important;
	outline: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--mj-wd-text) !important;
	font: 400 12.5px/2 Vazirmatn, IRANSans, Tahoma, Arial, sans-serif !important;
	resize: vertical;
}
.mj-work-day textarea:focus { border-color: var(--mj-wd-primary) !important; box-shadow: 0 0 0 3px rgba(22, 119, 255, .1) !important; }
.mj-work-day__details > small { color: var(--mj-wd-muted); font-size: 10.5px; line-height: 1.8; }

.mj-work-day__rights-note {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-top: 12px;
	padding: 11px 12px;
	border: 1px solid #d8e6f5;
	border-radius: 12px;
	background: #f6faff;
}
.mj-work-day__rights-icon { display: inline-flex; flex: 0 0 22px; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #dceeff; color: #1267c4; font-size: 12px; font-weight: 900; }
.mj-work-day__rights-note > div { display: flex; flex-direction: column; gap: 2px; }
.mj-work-day__rights-note strong { color: #25496f; font-size: 10.8px; font-weight: 900; line-height: 1.8; }
.mj-work-day__rights-note div span { color: #52708f; font-size: 9.8px; line-height: 1.9; }

.mj-work-day__status { min-height: 23px; margin-top: 8px; padding: 0 2px; color: var(--mj-wd-muted); font-size: 11px; line-height: 1.9; }
.mj-work-day__status.is-ready { color: var(--mj-wd-success); }
.mj-work-day__error { margin-top: 8px; padding: 10px 12px; border: 1px solid #ffc7c7; border-radius: 10px; background: #fff3f3; color: var(--mj-wd-danger); font-size: 11.5px; font-weight: 800; line-height: 1.9; }
.mj-work-day.is-invalid .mj-work-day__selector { border-color: #ef7b7b; box-shadow: 0 0 0 3px rgba(239, 83, 80, .08); }

.mj-work-day-display { display: inline-flex; flex-direction: column; gap: 8px; max-width: 100%; vertical-align: top; }
.mj-work-day-display__schedule { display: inline-flex; align-items: flex-start; gap: 9px; }
.mj-work-day-display__icon { position: relative; flex: 0 0 21px; width: 21px; height: 21px; margin-top: 2px; border: 1px solid #b8d8ff; border-radius: 7px; background: #eef6ff; }
.mj-work-day-display__icon::before,
.mj-work-day-display__icon::after { content: ""; position: absolute; right: 4px; left: 4px; height: 2px; border-radius: 2px; background: #1677ff; }
.mj-work-day-display__icon::before { top: 6px; }
.mj-work-day-display__icon::after { top: 12px; }
.mj-work-day-display__schedule > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.mj-work-day-display__schedule strong { color: inherit; font-size: 12.5px; font-weight: 800; line-height: 1.8; }
.mj-work-day-display__schedule small { color: #667085; font-size: 11.5px; line-height: 1.85; }
.mj-work-day-display__details { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-right: 3px solid #b8d8ff; border-radius: 8px; background: #f7fbff; }
.mj-work-day-display__details strong { color: #344054; font-size: 11px; font-weight: 800; line-height: 1.8; }
.mj-work-day-display__details span { color: #667085; font-size: 11.5px; line-height: 1.9; }

.mj-work-day--admin { max-width: 100%; padding: 4px 0; }

@media (max-width: 680px) {
	.mj-work-day__intro { align-items: flex-start; flex-direction: column; gap: 7px; }
	.mj-work-day__required-note { white-space: normal; }
	.mj-work-day__dropdown { position: fixed; top: 8vh; right: 14px; left: 14px; max-height: 84vh; }
	.mj-work-day__list { max-height: calc(84vh - 126px); }
	.mj-work-day__selector-copy small { white-space: normal; }
	.mj-work-day__custom-fields { align-items: stretch; }
	.mj-work-day__number { min-width: 0; }
}

@media (max-width: 460px) {
	.mj-work-day__selector { min-height: 70px; padding: 10px 11px; }
	.mj-work-day__selector-icon { flex-basis: 34px; width: 34px; height: 34px; }
	.mj-work-day__selector-copy strong { font-size: 12px; }
	.mj-work-day__selector-copy small { font-size: 10px; }
	.mj-work-day__custom-fields { display: grid; grid-template-columns: minmax(0, 1fr); }
	.mj-work-day__custom-separator { display: none; }
	.mj-work-day__label-row { align-items: flex-start; flex-direction: column; gap: 3px; }
	.mj-work-day__option { padding: 9px 8px; }
	.mj-work-day__option-copy small { font-size: 9.5px; }
}
