@CHARSET "UTF-8";

* {
  box-sizing: border-box;
}

.ui-outputlabel {
	color: white;
	font-weight: bold;
}

.ui-chkbox .ui-chkbox-label {
	color: white;
	font-weight: bold;
}

/* ── Page grid (app layout) ── */
#PageWrapper {
	display: grid;
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"header"
		"content";
	margin: 0;
	min-width: 320px;
	min-height: 100vh;
}

/* ── Header ── */
#HeaderWrapper {
	grid-area: header;
	margin: 0;
	padding: 0 1rem;
}

#PageHeader {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 3.5rem;
	width: 100%;
}

#ViasLogoPanel {
	display: flex;
	align-items: center;
	height: 100%;
	gap: 0.3rem;
	flex-shrink: 0;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

#ViasLogoPanel #ViasLogoImg {
	height: 2.4rem;
	width: auto;
}

#ViasLogoPanel #ViasLabel {
	font-size: 1.6rem;
	font-family: Verdana, sans-serif;
	font-style: italic;
	font-weight: bold;
	white-space: nowrap;
}

#UserFormPanel {
	display: flex;
	align-items: center;
	height: 100%;
	justify-content: flex-end;
	flex-shrink: 0;
}

/* ── Content ── */
#ContentWrapper {
	grid-area: content;
	width: 100%;
	max-width: 100vw;
	padding: 0.5rem 1.5rem 1rem;
}

/* ── Actor info bar ── */
#ActorInfoBar {
	color: white;
	font-weight: bold;
	font-size: 1.25rem;
	text-transform: uppercase;
	margin-bottom: 0.25rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

/* ── Page title bar ── */
#PageTitle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
	gap: 0.5rem;
}

#PageTitle > #NombreAplicacion {
	color: white;
	font-weight: bold;
	font-size: 1.25rem;
	text-align: left;
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
}

#PageTitle > #HelpBlock {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-shrink: 0;
}

/* ── Bottom nav ── */
#BlankSpace {
	display: block;
	height: 5rem;
}

#MenuAplicaciones {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 4rem;
	display: block;
	z-index: 100;
}

#Bottom {
	height: 4rem;
	display: block;
	bottom: 0;
}

/* ── Misc ── */
.ui-selection-column.checkbox-column {
	width: 1em;
	text-align: center;
}

.botonera {
	text-align: center;
	margin: 2em 10%;
}

.botonera .ui-button {
	margin: 0 0.75em;
}

.botones {
	padding: 1em 0 0 0;
	text-align: center;
}

.mainform {
	width: 100%;
	text-align: center;
}

/* ── Help dialog ── */
#HelpBlock > .ui-dialog .ui-dialog-titlebar {
	background: #84267e;
	color: #ffffff;
	padding: 0.4em;
	display: flex;
}

#UserHelpDialog_title {
	float: left;
	text-align: left;
	width: 98%;
}

#UserHelpDialog_content {
	padding: 1em;
	text-align: left;
}

/* ── Responsive: big-screen / small-screen buttons ── */
.ui-button.small-screen {
	display: none;
}

.ui-button.big-screen {
	display: initial;
}

/* ── Responsive ── */
@media screen and (max-width: 768px) {
	#HeaderWrapper {
		padding: 0 0.5rem;
	}

	#PageHeader {
		height: 3rem;
	}

	#ViasLogoPanel #ViasLogoImg {
		height: 2rem;
	}

	#ContentWrapper {
		padding: 0.5rem 0.75rem 1rem;
	}

	#PageTitle > #NombreAplicacion {
		font-size: 1.1rem;
	}
}

@media screen and (max-width: 480px) {
	#ViasLogoPanel #ViasLabel {
		display: none;
	}

	.ui-button.big-screen {
		display: none;
	}

	.ui-button.small-screen {
		display: initial;
	}

	#ContentWrapper {
		padding: 0.25rem 0.5rem 0.75rem;
	}

	#PageTitle > #NombreAplicacion {
		font-size: 1rem;
	}

	#BlankSpace {
		height: 4.5rem;
	}

	#MenuAplicaciones {
		height: 3.5rem;
	}
}
