/* ===== Listing table ===== */

.pju-wrapper {
	overflow-x: auto;
}

.pju-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-size: 14px;
}
.pju-table th {
	background: #1c3d5a;
	color: #fff;
	text-align: left;
	padding: 10px 12px;
	font-weight: 600;
	white-space: nowrap;
}
.pju-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e6e6e6;
	vertical-align: middle;
}
.pju-table tr:nth-child(even) {
	background: #f8fafc;
}
.pju-row-closed {
	opacity: 0.75;
}

.pju-title-link {
	font-weight: 600;
	color: #1c3d5a;
	text-decoration: none;
}
.pju-title-link:hover {
	text-decoration: underline;
}

.pju-action-cell {
	white-space: nowrap;
}

/* ===== Status badges ===== */
.pju-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.pju-badge-active { background: #e3f8e8; color: #1e7a34; }
.pju-badge-urgent { background: #fff1d6; color: #b5680a; }
.pju-badge-closed { background: #fde8e8; color: #a62b2b; }
.pju-badge-neutral { background: #eee; color: #666; }

/* ===== Buttons — same raised "3D button" language used across the other plugins ===== */
.pju-btn {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	margin: 2px 4px 2px 0;
	border: 1px solid rgba(0,0,0,0.15);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.5),
		inset 0 -2px 2px rgba(0,0,0,0.08),
		0 2px 0 rgba(0,0,0,0.18),
		0 3px 5px rgba(0,0,0,0.12);
	transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
}
.pju-btn:active {
	transform: translateY(2px);
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 1px 0 rgba(0,0,0,0.15);
}
.pju-btn-primary {
	background: #2f9e44;
	color: #fff !important;
}
.pju-btn-outline {
	background: #eef3f8;
	color: #1c3d5a !important;
}
.pju-btn-disabled {
	background: #ddd;
	color: #888 !important;
	cursor: not-allowed;
	box-shadow: none;
}
.pju-btn-large {
	padding: 12px 26px;
	font-size: 15px;
}

/* ===== Single job page ===== */
.pju-single-title {
	margin-bottom: 14px;
}
.pju-single-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 18px 20px;
	margin-bottom: 24px;
}
.pju-detail-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}
.pju-detail-table th {
	text-align: left;
	padding: 6px 10px 6px 0;
	color: #444;
	width: 180px;
	vertical-align: top;
	font-weight: 600;
}
.pju-detail-table td {
	padding: 6px 0;
}

.pju-big-countdown {
	display: flex;
	gap: 10px;
	margin: 16px 0;
	flex-wrap: wrap;
}
.pju-cd-box {
	background: #1c3d5a;
	color: #fff;
	border-radius: 8px;
	padding: 10px 14px;
	min-width: 64px;
	text-align: center;
	box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.pju-big-countdown.pju-cd-closed .pju-cd-box {
	background: #a62b2b;
}
.pju-cd-num {
	display: block;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
}
.pju-cd-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.85;
}
.pju-cd-closed-label {
	color: #a62b2b;
	font-weight: 700;
}

.pju-single-actions {
	margin-top: 12px;
}

/* ===== Mobile: turn the table into stacked cards ===== */
@media (max-width: 720px) {
	.pju-table thead {
		display: none;
	}
	.pju-table, .pju-table tbody, .pju-table tr, .pju-table td {
		display: block;
		width: 100%;
	}
	.pju-table tr {
		margin-bottom: 14px;
		border: 1px solid #e2e8f0;
		border-radius: 8px;
		overflow: hidden;
		background: #fff;
		box-shadow: 0 2px 4px rgba(0,0,0,0.06);
	}
	.pju-table td {
		border-bottom: 1px solid #f0f0f0;
		display: flex;
		justify-content: space-between;
		gap: 10px;
		align-items: center;
	}
	.pju-table td::before {
		content: attr(data-label);
		font-weight: 700;
		color: #666;
		font-size: 12px;
		flex-shrink: 0;
	}
	.pju-table td.pju-action-cell {
		flex-direction: column;
		align-items: stretch;
	}
	.pju-table td.pju-action-cell::before {
		margin-bottom: 6px;
	}
	.pju-table td.pju-action-cell .pju-btn {
		text-align: center;
		margin: 3px 0;
	}

	.pju-cd-box {
		min-width: 54px;
		padding: 8px 10px;
	}
	.pju-cd-num {
		font-size: 20px;
	}
}
