/**
 * PSB-CIERRE-ESTIMACION-001 — pantalla post-guardado alineada con presupuesto en construcción.
 */

body.psb-pres-portal-shell .psb-pres-cierre__hero {
	margin-bottom: 1.25rem;
	padding: 1.25rem 1.35rem;
	border-radius: 14px;
	background: linear-gradient(145deg, #fafaf9 0%, #f5f5f4 100%);
	border: 1px solid #e7e5e4;
}

body.psb-pres-portal-shell .psb-pres-cierre__hero-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 0.65rem;
}

body.psb-pres-portal-shell .psb-pres-cierre__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.2;
}

body.psb-pres-portal-shell .psb-pres-cierre__badge--ok {
	background: #d1fae5;
	color: #065f46;
}

body.psb-pres-portal-shell .psb-pres-cierre__badge--estado {
	background: #e7e5e4;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-cierre__ref {
	font-size: 12px;
	font-weight: 600;
	color: #78716c;
	font-variant-numeric: tabular-nums;
}

body.psb-pres-portal-shell .psb-pres-cierre__title {
	margin: 0 0 0.35rem;
	font-size: 22px;
	font-weight: 650;
	line-height: 1.25;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-cierre__subtitle {
	margin: 0 0 0.5rem;
	font-size: 15px;
	font-weight: 600;
	color: #44403c;
}

body.psb-pres-portal-shell .psb-pres-cierre__lead {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #57534e;
	max-width: 52rem;
}

body.psb-pres-portal-shell .psb-pres-cierre__trabajo {
	margin-bottom: 1.1rem;
	padding: 1.1rem 1.25rem;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e7e5e4;
	box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

body.psb-pres-portal-shell .psb-pres-cierre__trabajo-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 0.85rem;
}

body.psb-pres-portal-shell .psb-pres-cierre__trabajo-title {
	margin: 0;
	font-size: 15px;
	font-weight: 650;
	color: #292524;
}

body.psb-pres-portal-shell .psb-pres-cierre__trabajo-count {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 999px;
	background: #f5f5f4;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-cierre__trabajo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px 14px;
}

body.psb-pres-portal-shell .psb-pres-cierre__stat {
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	background: #fafaf9;
	border: 1px solid #f5f5f4;
}

body.psb-pres-portal-shell .psb-pres-cierre__stat--total {
	background: #ecfdf5;
	border-color: #a7f3d0;
}

body.psb-pres-portal-shell .psb-pres-cierre__stat-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #78716c;
	margin-bottom: 0.2rem;
}

body.psb-pres-portal-shell .psb-pres-cierre__stat-value {
	font-size: 15px;
	font-weight: 650;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-cierre__stat-value--price {
	font-variant-numeric: tabular-nums;
}

body.psb-pres-portal-shell .psb-pres-cierre__proceso-card {
	margin-bottom: 1.25rem;
	padding: 1.15rem 1.25rem;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e7e5e4;
}

body.psb-pres-portal-shell .psb-pres-cierre__proceso-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px 16px;
	margin-bottom: 0.85rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #f5f5f4;
}

body.psb-pres-portal-shell .psb-pres-cierre__proceso-name {
	margin: 0 0 0.25rem;
	font-size: 16px;
	font-weight: 650;
}

body.psb-pres-portal-shell .psb-pres-cierre__proceso-detail {
	margin: 0;
	font-size: 13px;
	color: #57534e;
	line-height: 1.45;
}

body.psb-pres-portal-shell .psb-pres-cierre__estado {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	background: #fef3c7;
	color: #92400e;
	flex-shrink: 0;
}

body.psb-pres-portal-shell .psb-pres-cierre__estado--convertido {
	background: #e0e7ff;
	color: #3730a3;
}

body.psb-pres-portal-shell .psb-pres-cierre__resumen-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 8px 14px;
}

body.psb-pres-portal-shell .psb-pres-cierre__resumen-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
}

body.psb-pres-portal-shell .psb-pres-cierre__resumen-label {
	font-size: 11px;
	font-weight: 600;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-cierre__resumen-value {
	font-weight: 600;
	color: #292524;
}

body.psb-pres-portal-shell .psb-pres-cierre__importe-block {
	margin-top: 1rem;
	padding: 0.85rem 1rem;
	border-radius: 10px;
	background: #fafaf9;
	border: 1px solid #e7e5e4;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
}

body.psb-pres-portal-shell .psb-pres-cierre__importe-label {
	font-size: 13px;
	font-weight: 600;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-cierre__importe-amt {
	font-size: 22px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-cierre__importe-note {
	margin: 0;
	font-size: 12px;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-cierre__rega-extra {
	margin-top: 1rem;
}

body.psb-pres-portal-shell .psb-pres-cierre__rega-title {
	margin: 0 0 0.5rem;
	font-size: 14px;
	font-weight: 650;
}

body.psb-pres-portal-shell .psb-pres-cierre__rega-table {
	margin-bottom: 0.5rem;
}

body.psb-pres-portal-shell .psb-pres-cierre__rega-note {
	margin: 0;
	font-size: 12px;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-cierre__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 0.25rem;
}

body.psb-pres-portal-shell .psb-pres-cierre__actions-primary,
body.psb-pres-portal-shell .psb-pres-cierre__actions-secondary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

body.psb-pres-portal-shell .psb-pres-cierre__anadir-form {
	display: inline;
	margin: 0;
}

@media (max-width: 767px) {
	body.psb-pres-portal-shell .psb-pres-cierre__hero {
		padding: 1rem;
	}

	body.psb-pres-portal-shell .psb-pres-cierre__title {
		font-size: 20px;
	}

	body.psb-pres-portal-shell .psb-pres-cierre__trabajo-grid,
	body.psb-pres-portal-shell .psb-pres-cierre__resumen-grid {
		grid-template-columns: 1fr;
	}

	body.psb-pres-portal-shell .psb-pres-cierre__actions-primary .psb-pres-portal__btn,
	body.psb-pres-portal-shell .psb-pres-cierre__actions-secondary .psb-pres-portal__btn,
	body.psb-pres-portal-shell .psb-pres-cierre__anadir-form .psb-pres-portal__btn {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}
