/**
 * PSB-PORTAL-LISTADOS-CLIENTE-REBUILD-001 — listados server-side sin JS obligatorio.
 */

body.psb-pres-portal-shell .psb-pres-cli-listado {
	margin-top: 0.35rem;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__box {
	padding: 1rem 1.15rem;
	border: 1px solid #e7e5e4;
	border-radius: 14px;
	background: #fff;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__summary {
	margin: 0 0 0.85rem;
	font-size: 14px;
	font-weight: 600;
	color: #44403c;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
}

/* Navegación de estado — Mis trabajos (destacada) */
body.psb-pres-portal-shell .psb-pres-cli-listado__filters--estado {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 1.1rem;
	padding: 0.45rem;
	border: 1px solid #e7e5e4;
	border-radius: 14px;
	background: #f5f5f4;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	border: 1px solid #d6d3d1;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: #44403c;
	text-decoration: none;
	line-height: 1.2;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__filters--estado .psb-pres-cli-listado__chip {
	flex: 1 1 auto;
	min-width: 6.5rem;
	padding: 0.7rem 0.95rem;
	border-radius: 10px;
	border: 1px solid transparent;
	background: #fff;
	font-size: 14px;
	font-weight: 650;
	color: #44403c;
	box-shadow: 0 1px 0 rgba(28, 25, 23, 0.04);
}

body.psb-pres-portal-shell .psb-pres-cli-listado__chip-label {
	white-space: nowrap;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__chip-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	padding: 0.1rem 0.4rem;
	border-radius: 999px;
	background: #e7e5e4;
	font-size: 12px;
	font-weight: 700;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__chip.is-active {
	border-color: #292524;
	background: #292524;
	color: #fff;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__filters--estado .psb-pres-cli-listado__chip.is-active {
	border-color: #1c1917;
	background: #1c1917;
	color: #fff;
	box-shadow: 0 2px 8px rgba(28, 25, 23, 0.18);
}

body.psb-pres-portal-shell .psb-pres-cli-listado__filters--estado .psb-pres-cli-listado__chip.is-active .psb-pres-cli-listado__chip-count {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__filters--estado .psb-pres-cli-listado__chip:hover:not(.is-active) {
	border-color: #a8a29e;
	background: #fafaf9;
}

@media (max-width: 720px) {
	body.psb-pres-portal-shell .psb-pres-cli-listado__filters--estado .psb-pres-cli-listado__chip {
		flex: 1 1 calc(50% - 0.45rem);
		min-width: 0;
	}
}

body.psb-pres-portal-shell .psb-pres-cli-listado__toolbar-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.65rem 1rem;
	margin-bottom: 0.5rem;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__search {
	flex: 1 1 14rem;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__search-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.75rem;
	border: 1px solid #d6d3d1;
	border-radius: 8px;
	font-size: 14px;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__per-page {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__per-page-label {
	font-size: 13px;
	font-weight: 600;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__per-page-select {
	min-width: 4.5rem;
	padding: 0.45rem 0.55rem;
	border: 1px solid #d6d3d1;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__reset {
	margin: 0 0 0.75rem;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__empty {
	padding: 0.85rem 1rem;
	border-radius: 10px;
	background: #fafaf9;
	border: 1px dashed #e7e5e4;
	text-align: center;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__empty p {
	margin: 0 0 0.65rem;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__rows {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	padding: 0.75rem 0.85rem;
	border: 1px solid #f0f0ee;
	border-radius: 10px;
	background: #fff;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__row-main {
	flex: 1 1 12rem;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__row-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	margin-bottom: 0.25rem;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__row-tipo {
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__row-title {
	margin: 0;
	font-size: 15px;
	font-weight: 650;
	color: #1c1917;
	line-height: 1.35;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__row-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	margin-top: 0.35rem;
	font-size: 13px;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__row-importe {
	font-weight: 650;
	color: #292524;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__row-pista {
	margin: 0.35rem 0 0;
	font-size: 13px;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid #f0f0ee;
}

body.psb-pres-portal-shell .psb-pres-cli-listado__pagination-status {
	font-size: 13px;
	font-weight: 600;
	color: #57534e;
}

@media (max-width: 640px) {
	body.psb-pres-portal-shell .psb-pres-cli-listado__row-actions {
		width: 100%;
	}

	body.psb-pres-portal-shell .psb-pres-cli-listado__row-actions .psb-pres-portal__btn {
		flex: 1 1 auto;
		justify-content: center;
		text-align: center;
	}
}
