/* Job Recruitment Manager — Closing Soon & Today's Updates widgets */

.jrm-widget {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1a1a1a;
	max-width: 100%;
	margin: 1em 0;
}

.jrm-widget-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.jrm-widget-header-block {
	margin-bottom: 0.85rem;
}

.jrm-widget-heading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.jrm-widget-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
}

.jrm-widget-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.jrm-icon-alarm {
	color: #e53935;
}

.jrm-icon-clock {
	color: #1a73b8;
}

.jrm-widget-view-all {
	font-size: 0.92rem;
	font-weight: 600;
	color: #1a73b8;
	text-decoration: none;
	white-space: nowrap;
}

.jrm-widget-view-all:hover {
	text-decoration: underline;
	color: #155a94;
}

.jrm-widget-empty {
	margin: 0;
	padding: 1rem;
	text-align: center;
	color: #646970;
	font-size: 0.92rem;
}

/* ── Closing Soon ── */
.jrm-closing-list {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.jrm-closing-item {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem 1rem;
	background: #fff5f5;
	border: 1px solid #f5d0d0;
	border-radius: 10px;
}

.jrm-closing-date {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	background: #fff;
	border: 1px solid #f0c4c4;
	border-radius: 8px;
	line-height: 1.1;
}

.jrm-closing-day {
	font-size: 1.35rem;
	font-weight: 800;
	color: #e53935;
}

.jrm-closing-month {
	font-size: 0.72rem;
	font-weight: 700;
	color: #e53935;
	letter-spacing: 0.04em;
}

.jrm-closing-body {
	flex: 1;
	min-width: 0;
}

.jrm-closing-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #111;
	line-height: 1.35;
	margin-bottom: 0.15rem;
}

.jrm-closing-sub {
	font-size: 0.86rem;
	color: #333;
	line-height: 1.35;
}

.jrm-closing-countdown {
	flex-shrink: 0;
	font-size: 0.88rem;
	font-weight: 700;
	color: #e53935;
	white-space: nowrap;
	text-align: right;
}

/* ── Today's Updates timeline ── */
.jrm-today-updates {
	background: #fff;
	border: 1px solid #e8eaed;
	border-radius: 12px;
	padding: 1.15rem 1.15rem 1rem;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.jrm-timeline {
	display: flex;
	flex-direction: column;
}

.jrm-timeline-item {
	display: grid;
	grid-template-columns: 72px 28px 1fr auto;
	align-items: start;
	gap: 0 0.65rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.jrm-timeline-item:last-child {
	border-bottom: none;
}

.jrm-timeline-time {
	font-size: 0.82rem;
	font-weight: 600;
	color: #1a73b8;
	padding-top: 0.35rem;
	white-space: nowrap;
}

.jrm-timeline-track {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100%;
	padding-top: 0.15rem;
}

.jrm-timeline-dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	flex-shrink: 0;
	z-index: 1;
}

.jrm-timeline-line {
	position: absolute;
	top: 28px;
	bottom: -0.65rem;
	left: 50%;
	width: 2px;
	margin-left: -1px;
	background: #e0e0e0;
}

.jrm-dot-blue { background: #1a73b8; }
.jrm-dot-pink { background: #e91e8c; }
.jrm-dot-green { background: #2e9e5b; }
.jrm-dot-orange { background: #f57c00; }
.jrm-dot-purple { background: #7b1fa2; }

.jrm-timeline-content {
	padding-top: 0.2rem;
	min-width: 0;
}

.jrm-timeline-text {
	font-size: 0.9rem;
	font-weight: 600;
	color: #111;
	line-height: 1.45;
}

.jrm-timeline-badge {
	align-self: start;
	margin-top: 0.25rem;
	padding: 0.15rem 0.45rem;
	font-size: 0.65rem;
	font-weight: 700;
	color: #1b8a3e;
	background: #e8f6ed;
	border-radius: 4px;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.jrm-widget-footer {
	margin-top: 1rem;
	text-align: center;
}

.jrm-view-all-btn {
	display: inline-block;
	padding: 0.55rem 1.35rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: #1a73b8;
	background: #eef4fb;
	border: 1px solid #d4e4f4;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.jrm-view-all-btn:hover {
	background: #e3eef9;
	color: #155a94;
}

/* Service list (filtered job rows) */

.jrm-service-list {
	border: 1px solid #111;
	max-width: 100%;
	margin: 1em 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.jrm-service-list-header {
	background: var(--jrm-svc-color, #f97316);
	color: #fff;
	text-align: center;
	font-weight: 700;
	font-size: 1.05rem;
	padding: 0.65rem 1rem;
	border-bottom: 1px solid #111;
}

.jrm-service-list-body {
	padding: 0.35rem;
	background: #fff;
}

.jrm-service-list-row {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	border: 1px solid #111;
	padding: 0.55rem 0.65rem;
	margin-bottom: 0.35rem;
	background: #fff;
}

.jrm-service-list-row:last-child {
	margin-bottom: 0;
}

.jrm-service-list-icon {
	flex: 0 0 auto;
	color: var(--jrm-svc-color, #f97316);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.jrm-service-list-label {
	flex: 1 1 auto;
	font-weight: 700;
	color: #111;
	font-size: 0.95rem;
	line-height: 1.35;
	min-width: 0;
}

.jrm-service-list-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: var(--jrm-svc-color, #f97316);
	color: #fff !important;
	font-weight: 700;
	font-size: 0.85rem;
	text-decoration: none !important;
	padding: 0.35rem 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	white-space: nowrap;
}

.jrm-service-list-btn:hover,
.jrm-service-list-btn:focus {
	filter: brightness(0.95);
	color: #fff !important;
}

.jrm-service-list-btn--disabled {
	opacity: 0.55;
	cursor: default;
}

.jrm-service-list-btn-arrow {
	font-size: 0.95rem;
	line-height: 1;
}

.jrm-service-list-empty {
	padding: 1rem;
	text-align: center;
	color: #555;
	border: 1px dashed #ccc;
}

@media (max-width: 560px) {
	.jrm-closing-item {
		flex-wrap: wrap;
	}

	.jrm-closing-countdown {
		width: 100%;
		text-align: left;
		padding-left: calc(52px + 0.85rem);
	}

	.jrm-timeline-item {
		grid-template-columns: 62px 24px 1fr auto;
		gap: 0 0.45rem;
	}

	.jrm-timeline-time {
		font-size: 0.75rem;
	}

	.jrm-service-list-row {
		flex-wrap: wrap;
	}

	.jrm-service-list-btn {
		margin-left: auto;
	}
}
