/**
 * PSB-PROCESOS-EN-CADENA-005 / 006 — tarjetas picker legibles con acciones claras.
 * UI refresh — tarjetas con jerarquía visual, acento por estado y layout horizontal en desktop.
 */

body.psb-pres-portal-shell .psb-pres-trabajo-pick-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-top: 0.75rem;
}

@media (min-width: 720px) {
	body.psb-pres-portal-shell .psb-pres-trabajo-pick-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	body.psb-pres-portal-shell .psb-pres-trabajo-pick-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	padding: 0;
	border-radius: 14px;
	border: 1px solid #e7e5e4;
	background: #fff;
	color: #1c1917;
	box-shadow: 0 1px 3px rgba(28, 25, 23, 0.05);
	overflow: hidden;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--libre:hover {
	border-color: #a8a29e;
	box-shadow: 0 6px 20px rgba(28, 25, 23, 0.08);
	transform: translateY(-1px);
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__accent {
	width: 4px;
	flex-shrink: 0;
	background: #d6d3d1;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--libre .psb-pres-trabajo-pick-card__accent {
	background: linear-gradient(180deg, #34d399 0%, #059669 100%);
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso .psb-pres-trabajo-pick-card__accent {
	background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso_multiple .psb-pres-trabajo-pick-card__accent {
	background: linear-gradient(180deg, #818cf8 0%, #4f46e5 100%);
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__inner {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

@media (min-width: 640px) {
	body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso .psb-pres-trabajo-pick-card__inner,
	body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso_multiple .psb-pres-trabajo-pick-card__inner {
		flex-direction: row;
		align-items: center;
	}
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso,
body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso_multiple {
	border-color: #e7e5e4;
	background: #fafaf9;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 14px;
	flex: 1;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__lead {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__glyph {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	color: #1c1917;
	background: #f5f5f4;
	border: 1px solid #e7e5e4;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--libre .psb-pres-trabajo-pick-card__glyph {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #047857;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso .psb-pres-trabajo-pick-card__glyph {
	background: #fffbeb;
	border-color: #fde68a;
	color: #b45309;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso_multiple .psb-pres-trabajo-pick-card__glyph {
	background: #eef2ff;
	border-color: #c7d2fe;
	color: #4338ca;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
	flex: 1;
}

@media (min-width: 480px) {
	body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__head {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 8px 12px;
	}
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__title {
	margin: 0;
	font-weight: 650;
	font-size: 17px;
	line-height: 1.25;
	color: #1c1917;
	letter-spacing: -0.02em;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	flex-shrink: 0;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso .psb-pres-trabajo-pick-card__badge {
	background: #fffbeb;
	color: #b45309;
	border: 1px solid #fde68a;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso_multiple .psb-pres-trabajo-pick-card__badge {
	background: #eef2ff;
	color: #4338ca;
	border: 1px solid #c7d2fe;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--libre .psb-pres-trabajo-pick-card__badge {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__hint {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #57534e;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--libre .psb-pres-trabajo-pick-card__hint {
	-webkit-line-clamp: 4;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__count {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 18px 16px;
	border-top: 1px solid #f5f5f4;
	background: #fff;
}

@media (min-width: 640px) {
	body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso .psb-pres-trabajo-pick-card__actions,
	body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso_multiple .psb-pres-trabajo-pick-card__actions {
		flex-direction: column;
		justify-content: center;
		align-self: stretch;
		min-width: 148px;
		padding: 14px 16px;
		border-top: 0;
		border-left: 1px solid #e7e5e4;
		background: #fafaf9;
	}
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso .psb-pres-trabajo-pick-card__actions,
body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso_multiple .psb-pres-trabajo-pick-card__actions {
	background: #fafaf9;
	border-top-color: #e7e5e4;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 40px;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	text-transform: none;
	letter-spacing: -0.01em;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__btn--primary {
	background: #1c1917;
	border: 1px solid #1c1917;
	color: #ffffff;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__btn--primary:hover,
body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__btn--primary:focus {
	background: #0c0a09;
	border-color: #0c0a09;
	color: #ffffff;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__btn--secondary {
	background: #ffffff;
	border: 1px solid #d6d3d1;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__btn--secondary:hover,
body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__btn--secondary:focus {
	background: #f5f5f4;
	border-color: #a8a29e;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--libre .psb-pres-trabajo-pick-card__actions {
	border-top: 0;
	padding: 0 18px 18px;
	background: transparent;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--libre .psb-pres-trabajo-pick-card__body {
	padding-bottom: 8px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--libre .psb-pres-trabajo-pick-card__btn--primary {
	flex: 1 1 auto;
	width: 100%;
	min-height: 44px;
	font-size: 15px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso .psb-pres-trabajo-pick-card__btn--primary,
body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso_multiple .psb-pres-trabajo-pick-card__btn--primary {
	width: 100%;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso .psb-pres-trabajo-pick-card__btn--secondary,
body.psb-pres-portal-shell .psb-pres-trabajo-pick-card--en_uso_multiple .psb-pres-trabajo-pick-card__btn--secondary {
	width: 100%;
}

@media (max-width: 639px) {
	body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__actions {
		flex-direction: column;
	}

	body.psb-pres-portal-shell .psb-pres-trabajo-pick-card__btn {
		width: 100%;
	}
}
