/**
 * PSB-PORTAL-CLIENTE-SHELL-UX-001 — shell global, gramática visual y bloques operativos.
 */

/* —— Cabecera común —— */
body.psb-pres-portal-shell .psb-pres-shell-head {
	margin-bottom: 1.35rem;
	padding-bottom: 1.1rem;
	border-bottom: 1px solid #e7e5e4;
}

body.psb-pres-portal-shell .psb-pres-shell-head__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-shell-head__title {
	margin: 0;
	font-size: clamp(1.65rem, 3vw, 2.15rem);
	font-weight: 750;
	letter-spacing: -0.04em;
	line-height: 1.1;
	color: #0c0a09;
}

body.psb-pres-portal-shell .psb-pres-shell-head__sub {
	margin: 0.5rem 0 0;
	font-size: 15px;
	color: #57534e;
	line-height: 1.45;
	max-width: 42rem;
}

body.psb-pres-portal-shell .psb-pres-shell-head__back {
	margin: 0 0 0.65rem;
}

/* —— Panel principal: cabecera alineada al shell —— */
body.psb-pres-portal-shell .psb-pres-panel--home .psb-pres-panel__screen-head {
	margin-bottom: 1.35rem;
	padding-bottom: 1.1rem;
	border-bottom: 1px solid #e7e5e4;
}

/* —— Gramática formularios: bloques con familia clara —— */
body.psb-pres-portal-shell .psb-pres-form2026__block.psb-pres-cfg-section,
body.psb-pres-portal-shell .psb-config-section.psb-pres-form2026__block {
	margin-bottom: 0;
}

body.psb-pres-portal-shell .psb-pres-cfg-section__title,
body.psb-pres-portal-shell .psb-config-section__title {
	font-size: 0.95rem;
	font-weight: 650;
	letter-spacing: -0.02em;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-portal-input--title,
body.psb-pres-portal-shell .psb-pres-form2026-form input.psb-pres-portal-input--title,
body.psb-pres-portal-shell .psb-pres-form2026-form .psb-pres-cfg-input--title {
	max-width: min(450px, 100%);
	width: 100%;
}

/* —— Nav acabados: badges «Ya en uso» + editar —— */
body.psb-pres-portal-shell .psb-pres-rail-d1d__item {
	margin: 0;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__item-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__item-inner > .psb-pres-rail-d1d__link {
	flex: 1 1 auto;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__nav-badge {
	font-size: 10px;
	font-weight: 650;
	padding: 2px 7px;
	border-radius: 999px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	white-space: nowrap;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__nav-badge--uso {
	background: #f5f5f4;
	border-color: #d6d3d1;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__nav-edit {
	font-size: 11px;
	font-weight: 600;
	color: #0f766e;
	text-decoration: none;
	padding: 2px 6px;
	border-radius: 6px;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__nav-edit:hover,
body.psb-pres-portal-shell .psb-pres-rail-d1d__nav-edit:focus {
	background: #f0fdfa;
	text-decoration: underline;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__link--current {
	box-shadow: inset 3px 0 0 #0f766e;
}

/* —— Trabajo en curso (columna derecha) —— */
body.psb-pres-portal-shell .psb-pres-trabajo-col-resumen {
	border: 1px solid #d6d3d1;
	border-radius: 12px;
	background: linear-gradient(180deg, #fafaf9 0%, #fff 100%);
	padding: 0.9rem 0.95rem;
	box-shadow: 0 1px 8px rgba(28, 25, 23, 0.04);
}

body.psb-pres-portal-shell .psb-pres-trabajo-col-resumen__title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #44403c;
}

body.psb-pres-portal-shell .psb-pres-trabajo-col-resumen__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 0.45rem;
}

/* —— Aside acciones (solicitud / cierre) —— */
body.psb-pres-portal-shell .psb-pres-shell-aside-actions {
	border: 1px solid #e7e5e4;
	border-radius: 12px;
	background: #fff;
	padding: 1rem 1rem 1.05rem;
	box-shadow: 0 2px 12px rgba(28, 25, 23, 0.04);
}

body.psb-pres-portal-shell .psb-pres-shell-aside-actions__title {
	margin: 0 0 0.35rem;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-shell-aside-actions__hint {
	margin: 0 0 0.75rem;
	font-size: 13px;
	line-height: 1.45;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-shell-aside-actions__btns,
body.psb-pres-portal-shell .psb-pres-cierre__aside-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

body.psb-pres-portal-shell .psb-pres-shell-aside-actions__btn {
	width: 100%;
	justify-content: center;
	text-align: center;
}

/* —— Solicitud manual integrada —— */
body.psb-pres-portal-shell .psb-sol-v2.psb-pres-panel--shell .psb-sol-v2__card {
	border: 1px solid #e7e5e4;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(28, 25, 23, 0.04);
	padding: 1.1rem 1.15rem 1.2rem;
}

body.psb-pres-portal-shell .psb-sol-v2.psb-pres-panel--shell .psb-sol-v2__label {
	font-size: 13px;
	font-weight: 600;
	color: #44403c;
}

body.psb-pres-portal-shell .psb-sol-v2.psb-pres-panel--shell .psb-sol-v2__input,
body.psb-pres-portal-shell .psb-sol-v2.psb-pres-panel--shell .psb-sol-v2__select,
body.psb-pres-portal-shell .psb-sol-v2.psb-pres-panel--shell .psb-sol-v2__textarea {
	border-radius: 10px;
	border-color: #d6d3d1;
	min-height: 44px;
}

body.psb-pres-portal-shell .psb-sol-v2.psb-pres-panel--shell #psb_sol_asunto {
	max-width: min(450px, 100%);
}

body.psb-pres-portal-shell .psb-sol-v2.psb-pres-panel--shell .psb-sol-v2__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}

body.psb-pres-portal-shell .psb-sol-v2.psb-pres-panel--shell .psb-sol-v2__field--full {
	grid-column: 1 / -1;
}

@media (max-width: 767px) {
	body.psb-pres-portal-shell .psb-sol-v2.psb-pres-panel--shell .psb-sol-v2__grid {
		grid-template-columns: 1fr;
	}
}

/* —— Cierre: acciones en columna derecha —— */
body.psb-pres-portal-shell .psb-pres-cierre .psb-pres-cierre__actions {
	display: none;
}

body.psb-pres-portal-shell .psb-pres-cierre .psb-pres-cierre__hero {
	margin-bottom: 1.25rem;
}

body.psb-pres-portal-shell .psb-pres-cierre__trabajo-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1c1917;
}

/* —— Selección proceso: alineada al shell —— */
body.psb-pres-portal-shell .psb-pres-trabajo-pick-screen__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 0.5rem;
}

body.psb-pres-portal-shell .psb-pres-trabajo-pick-screen .psb-pres-portal-card {
	border: 1px solid #e7e5e4;
	border-radius: 14px;
	background: #fff;
	padding: 1rem 1.1rem;
	margin-bottom: 1rem;
}

/* —— Columna operativa: orden de lectura —— */
body.psb-pres-portal-shell .psb-pres-col-operativa {
	gap: 0.85rem;
}

body.psb-pres-portal-shell .psb-pres-col-operativa .psb-pres-trabajo-col-resumen {
	order: 10;
}
