/**
 * PSB-FORMULARIOS-2026-COMPOSICION-002 — retícula, bloques y campos no flotantes.
 */

body.psb-pres-portal-shell .psb-pres-form2026 {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-form2026 .psb-pres-cfg-section {
	margin: 0;
}

body.psb-pres-portal-shell .psb-pres-form2026__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-form2026__label {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	color: #44403c;
}

body.psb-pres-portal-shell .psb-pres-form2026__grid {
	display: grid;
	gap: 12px 16px;
	align-items: start;
}

body.psb-pres-portal-shell .psb-pres-form2026__grid--2 {
	grid-template-columns: repeat(2, minmax(0, max-content));
}

body.psb-pres-portal-shell .psb-pres-form2026__grid--3 {
	grid-template-columns: repeat(3, minmax(0, max-content));
}

body.psb-pres-portal-shell .psb-pres-form2026__grid--medidas {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.5rem 0.65rem;
}

body.psb-pres-portal-shell .psb-pres-form2026__cards {
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-pl-radio-cards {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-pl-radio-group {
	margin: 0;
	border: 0;
	padding: 0;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-pl-radio-group__title {
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #57534e;
	margin: 0 0 0.5rem;
	padding: 0;
}

body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-pl-radio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 10px;
}

body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-fp-caras-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 10px;
}

/* Inputs — base portal */
body.psb-pres-portal-shell .psb-pres-form2026-form .psb-pres-portal-input,
body.psb-pres-portal-shell .psb-pres-form2026-form .psb-pres-cfg-input {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 40px;
	box-sizing: border-box;
	border-radius: 10px;
	border: 1px solid #d6d3d1;
	padding: 9px 12px;
	font-size: 14px;
	line-height: 1.35;
	background: #fff;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-form2026-form .psb-pres-portal-input:focus,
body.psb-pres-portal-shell .psb-pres-form2026-form .psb-pres-cfg-input:focus {
	outline: none;
	border-color: #78716c;
	box-shadow: 0 0 0 3px rgba(41, 37, 36, 0.1);
}

body.psb-pres-portal-shell .psb-pres-portal-input--title {
	max-width: 450px;
}

/* Fila superior: nombre del trabajo + pliegos */
body.psb-pres-portal-shell .psb-pres-form-topline-wrap {
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-form-topline-wrap__hint {
	margin: 0.35rem 0 0;
}

body.psb-pres-portal-shell .psb-pres-form-topline {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-form-field--title {
	flex: 1 1 220px;
	min-width: 0;
	max-width: 450px;
}

body.psb-pres-portal-shell .psb-pres-form-topline .psb-pres-portal-input--title {
	width: 100%;
	max-width: none;
}

body.psb-pres-portal-shell .psb-pres-form-field--short {
	flex: 0 0 150px;
	width: 150px;
	max-width: 150px;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-form-field--short .psb-pres-portal-input,
body.psb-pres-portal-shell .psb-pres-form-field--short .psb-pres-cfg-input {
	width: 100%;
	max-width: none;
}

/* Fechas — sin texto técnico aaaa-mm-dd visible */
body.psb-pres-portal-shell .psb-pres-date-field {
	position: relative;
	display: block;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-date-field__placeholder {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	line-height: 1.2;
	color: #78716c;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: calc(100% - 2.5rem);
}

body.psb-pres-portal-shell .psb-pres-date-field:not(.psb-pres-date-field--filled):not(:focus-within) .psb-pres-date-field__input {
	color: transparent;
}

body.psb-pres-portal-shell .psb-pres-date-field--filled .psb-pres-date-field__input,
body.psb-pres-portal-shell .psb-pres-date-field:focus-within .psb-pres-date-field__input {
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-date-field--filled .psb-pres-date-field__placeholder,
body.psb-pres-portal-shell .psb-pres-date-field:focus-within .psb-pres-date-field__placeholder {
	display: none;
}

body.psb-pres-portal-shell .psb-pres-portal-input--short,
body.psb-pres-portal-shell .psb-pres-form2026-form .psb-pres-fp-medidas-field__input,
body.psb-pres-portal-shell .psb-pres-form2026-form .psb-pres-rega-field__input:not(.psb-pres-rega-date-wrap__input) {
	max-width: 150px;
}

body.psb-pres-portal-shell .psb-pres-portal-input--medium {
	max-width: 220px;
}

body.psb-pres-portal-shell .psb-pres-form2026-form .psb-pres-rega-date-wrap__input {
	max-width: 180px;
}

/* Medidas */
body.psb-pres-portal-shell .psb-pres-form2026 .psb-pres-fp-medidas-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-form2026 .psb-pres-fp-medidas-field__label {
	font-size: 12px;
	font-weight: 600;
	color: #44403c;
}

body.psb-pres-portal-shell .psb-pres-form2026 .psb-pres-fp-medidas-x {
	align-self: center;
	color: #a8a29e;
	font-size: 14px;
	line-height: 1;
	padding-bottom: 10px;
}

/* UVI Total — medidas + diagrama */
body.psb-pres-portal-shell .psb-pres-form2026 .psb-pres-ut-medidas-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1rem 1.25rem;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-form2026 .psb-pres-ut-medidas-layout__fields {
	flex: 1 1 200px;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-form2026 .psb-pres-ut-medidas-layout__diagram {
	flex: 0 1 auto;
	min-width: 0;
}

/* Precio integrado */
body.psb-pres-portal-shell .psb-pres-form2026-form .psb-pres-live-price.psb-pres-form2026__price {
	border: 1px solid #e7e5e4;
	border-radius: 12px;
	background: linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
	padding: 1rem 1.05rem;
	box-shadow: none;
}

body.psb-pres-portal-shell .psb-pres-form2026-form .psb-pres-form2026__price .psb-pres-live-price__actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

body.psb-pres-portal-shell .psb-pres-form2026-form .psb-pres-form2026__price .psb-pres-live-price__btn {
	width: 100%;
	justify-content: center;
}

body.psb-pres-portal-shell .psb-pres-form2026-form .psb-pres-form2026__price .psb-pres-live-price__btn-next {
	width: 100%;
	text-align: center;
}

/* REGA — bloques dentro de retícula */
body.psb-pres-portal-shell .psb-pres-form2026--rega .psb-pres-rega-form__dl {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin: 0;
}

body.psb-pres-portal-shell .psb-pres-form2026--rega .psb-pres-rega-form__dl dt {
	margin: 0;
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-form2026--rega .psb-pres-rega-form__dl dd {
	margin: 0;
}

body.psb-pres-portal-shell .psb-pres-form2026--rega .psb-pres-rega-form__dd--block {
	border: 1px solid #e7e5e4;
	border-radius: 12px;
	background: #fafaf9;
	padding: 0.95rem 1rem 1rem;
}

body.psb-pres-portal-shell .psb-pres-form2026--rega .psb-pres-rega-grid {
	display: grid;
	gap: 12px 16px;
}

body.psb-pres-portal-shell .psb-pres-form2026--rega .psb-pres-rega-grid--2 {
	grid-template-columns: repeat(2, minmax(0, max-content));
}

body.psb-pres-portal-shell .psb-pres-form2026--rega .psb-pres-rega-grid--3 {
	grid-template-columns: repeat(3, minmax(0, max-content));
}

body.psb-pres-portal-shell .psb-pres-form2026--rega .psb-pres-rega-grid--4 {
	grid-template-columns: repeat(4, minmax(0, max-content));
}

body.psb-pres-portal-shell .psb-pres-form2026--rega .psb-pres-pl-form__dd--cards {
	padding: 0;
	border: 0;
	background: transparent;
}

@media (min-width: 720px) {
	body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-pl-radio-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	}
}

@media (max-width: 600px) {
	body.psb-pres-portal-shell .psb-pres-form2026__grid--2,
	body.psb-pres-portal-shell .psb-pres-form2026__grid--3,
	body.psb-pres-portal-shell .psb-pres-form2026--rega .psb-pres-rega-grid--2,
	body.psb-pres-portal-shell .psb-pres-form2026--rega .psb-pres-rega-grid--3,
	body.psb-pres-portal-shell .psb-pres-form2026--rega .psb-pres-rega-grid--4 {
		grid-template-columns: 1fr;
	}

	body.psb-pres-portal-shell .psb-pres-portal-input--title {
		max-width: 100%;
	}

	body.psb-pres-portal-shell .psb-pres-form-topline {
		flex-direction: column;
		align-items: stretch;
	}

	body.psb-pres-portal-shell .psb-pres-form-field--title,
	body.psb-pres-portal-shell .psb-pres-form-field--short {
		flex: 1 1 auto;
		width: 100%;
		max-width: 100%;
	}

	body.psb-pres-portal-shell .psb-pres-portal-input--short,
	body.psb-pres-portal-shell .psb-pres-form2026-form .psb-pres-fp-medidas-field__input,
	body.psb-pres-portal-shell .psb-pres-form2026-form .psb-pres-rega-field__input:not(.psb-pres-rega-date-wrap__input) {
		max-width: min(150px, 100%);
	}

	body.psb-pres-portal-shell .psb-pres-portal-input--medium {
		max-width: 100%;
	}

	body.psb-pres-portal-shell .psb-pres-form2026 .psb-pres-ut-medidas-layout__diagram {
		max-width: 100%;
	}
}
