/* Base Theme - Professional Clean Design */

html,
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
	position: relative;
	padding: 0px;
	margin: 0px;
	font-size: 16px;
	color: #2c3e50;
	background: #ffffff;
	height: 100%;
	display: flex;
	flex-direction: column;
}

* {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

a {
	text-decoration: none;
	color: #0066cc;
	transition: color 0.2s ease;
}

a:hover {
	color: #0052a3;
}

hr {
	border-top: 1px solid #e1e8ed;
}

h1,
h2,
h3,
h4 {
	padding: 0;
	margin: 0;
	color: #2c3e50;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2.25rem;
}

h3 {
	font-size: 2rem;
}

h4 {
	font-size: 1.75rem;
}

.txt-right {
	text-align: right;
}

.txt-left {
	text-align: left;
}

.txt-center {
	text-align: center;
}

.txt-justify {
	text-align: justify;
}

.txt-success {
	color: #27ae60;
}

.txt-error {
	color: #e74c3c;
}

.msg-info,
.msg-success,
.msg-warning,
.msg-error {
	padding: 1rem 1rem 1rem 3.5rem;
	border-radius: 0.25rem;
	text-align: left;
	border-left: 4px solid;
}

.msg-info::before,
.msg-success::before,
.msg-warning::before,
.msg-error::before {
	font-family: "Font Awesome 7 Free";
	font-weight: 900;
	font-size: 1.5rem;
	margin-left: -3.5rem;
	padding: 1rem;
}

.msg-info::before {
	content: "\f05a";
}

.msg-success::before {
	content: "\f058";
}

.msg-warning::before {
	content: "\f071";
}

.msg-error::before {
	content: "\f06a";
}

.msg-info {
	background: #d1ecf1;
	color: #0c5460;
	border-left-color: #0c5460;
}

.msg-success {
	background: #d4edda;
	color: #155724;
	border-left-color: #155724;
}

.msg-warning {
	background: #fff3cd;
	color: #856404;
	border-left-color: #856404;
}

.msg-error {
	background: #f8d7da;
	color: #721c24;
	border-left-color: #721c24;
}

span.error:not(:empty) {
	color: #e74c3c;
	padding: .2rem;
	text-align: left;
	display: flex;
}

span.warning:not(:empty) {
	color: #856404;
	padding: .2rem;
	text-align: justify;
	display: flex;
	text-align: justify;
	align-items: center;
}

span.warning i {
	margin-right: .5rem;
}

.hidden {
	display: none !important;
}

/**/

body>#base-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
}

#base-header {
	position: fixed;
	z-index: 1000000;
	display: flex;
	flex-direction: row;
	flex-flow: row wrap;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 2.5rem;
	background: #ffffff;
	color: #2c3e50;
	width: 100%;
	gap: 1rem;
	border-bottom: 1px solid #e1e8ed;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#base-header .menu--responsive {
	display: none;
	flex: 0 0 auto;
	justify-content: center;
	align-items: center;
	width: 4rem;
	height: 4rem;
	font-size: 3rem;
	color: #2c3e50;
}

#base-header .logo {
	flex: 0 0 auto;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	width: 8rem;
	height: 4rem;
}

#base-header .menubox--responsive {
	flex: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
	min-width: 0;
}

#base-header .additional {
	flex: 1 1 auto;
	min-width: 0;
	text-align: right;
}

#base-header .additional:empty {
	display: none;
}

/* Menú principal junto al selector de idioma / sesión (derecha del header) */
#base-header .fnc-header-right-group {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: nowrap;
	gap: 1rem;
	flex: 0 0 auto;
	margin-left: auto;
	max-width: 100%;
}

#base-header .menubox-overlay {
	flex: 1;
	display: none;
}

#base-header .options {
	flex: 0 0 auto;
}

#base-header .options .title {
	font-family: 'Space Grotesk';
	text-transform: uppercase;
	font-size: 1.25rem;
	font-weight: 700;
	color: rgb(137 81 0);
}

#base-header .menu {
	flex: 0 1 auto;
	min-width: 0;
	padding: 0;
}

#base-header .control {
	flex: 0 0 auto;
}

#base-header .fnc-header-lang-toolbar {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	order: 3;
	margin-left: auto;
}

#base-header .menubox--responsive {
	order: 2;
}

#base-header .logo {
	order: 1;
}

#base-content {
	position: relative;
	margin-top: 4.75rem;
	display: flex;
	height: 100%;
}

#fnc-navegation {
	width: 100%;
	display: flex;
	flex-direction: column;
	flex: 1;
}

#base-footer {
	display: flex;
	flex-direction: row;
	align-items: center;
	background: #f8f9fa;
	color: #7f8c8d;
	width: 100%;
	min-height: 2.5rem;
	padding: .2rem .5rem;
	border-top: 1px solid #e1e8ed;
}

#base-footer .footer-left,
#base-footer .footer-middle,
#base-footer .footer-right {
	justify-content: center;
	align-items: center;
	display: flex;
}

#base-footer .footer-right,
#base-footer .footer-left {
	display: flex;
	flex: 0 0 auto;
	color: #7f8c8d;
	width: auto;
	flex-direction: row;
	gap: .35rem;
}

#base-footer .footer-middle {
	flex: 1;
	color: #7f8c8d;
	min-width: 0;
}

.icon-logo {
	width: 3.2rem;
	height: 1.6rem;
	background-image: url(../images/icon-logo.png);
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
}

.copyright {
	padding: 0;
	width: auto;
	color: #95a5a6;
	font-weight: bold;
	white-space: nowrap;
	font-size: .82rem;
}

#overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.3);
	z-index: 8;
	display: none;
}

/**/

nav.header-menu ul,
nav.control-menu ul,
nav.footer-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
}

nav.footer-menu ul {
	flex-wrap: nowrap;
	justify-content: center;
}

nav.header-menu ul,
nav.control-menu ul {
	gap: 1rem;
}

nav.header-menu li,
nav.control-menu li,
nav.footer-menu li {
	position: relative;
	flex: 0 0 auto;
}

nav.header-menu li a,
nav.control-menu li a,
nav.footer-menu li a {
	text-decoration: none;
	color: #2c3e50;
	transition: background 0.2s ease, color 0.2s ease;
	display: block;
	padding: 0.2rem 0.6rem;
	border-radius: 0.25rem;
	font-size: .84rem;
}

nav.header-menu li a i,
nav.control-menu li a i,
nav.footer-menu li a i {
	font-size: 1.4rem;
	/* Tamaño de iconos incrementado */
	vertical-align: middle;
}

nav.footer-menu ul>li>a:last-child {
	border-right: 0;
}

nav.header-menu li a:hover,
nav.control-menu li a:hover {
	background: #e8f0ff;
	color: #0066cc;
}

nav.footer-menu li a:hover {
	color: #0066cc;
}

nav.header-menu li ul,
nav.control-menu li ul,
nav.footer-menu li ul {
	display: none;
	position: absolute;
	flex-direction: column;
	background: #ffffff;
	padding: 0.5rem 0;
	border-radius: 0.25rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	z-index: 10;
	min-width: max-content;
	width: auto;
	border: 1px solid #e1e8ed;
}

nav.header-menu li:hover>ul,
nav.control-menu li:hover>ul,
nav.footer-menu li:hover>ul {
	display: flex;
}

nav.header-menu ul>li>ul,
nav.control-menu ul>li>ul {
	top: 100%;
	left: 0;
}

nav.footer-menu ul>li>ul {
	bottom: 100%;
	left: 0;
}

nav.header-menu ul ul ul,
nav.control-menu ul ul ul {
	top: 100;
	left: 0%;
}

nav.footer-menu ul ul ul {
	bottom: 0;
	left: 100%;
}

/**/

.s2 {
	margin-right: 0.5rem;
}

.content {
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	padding: 2rem;
	height: 100%;
	gap: 1rem;
}

.box {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	background: #ffffff;
	gap: 1rem;
	border-radius: 0.25rem;
	border: 1px solid #e1e8ed;
}

.box.full {
	width: 100%;
}

.box.half {
	width: 50%;
}

.box .box-row:empty {
	display: none;
}

.box .box-row {
	flex: 1;
	padding: 0 1rem;
}

/**/

form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

input,
button,
select,
textarea {
	flex: 1;
	font-size: 1rem;
	padding: 1rem;
	color: #2c3e50;
	border-radius: 0.25rem;
	border: 1px solid #bdc3c7;
	background: #ffffff;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
	background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2Ij48cGF0aCBmaWxsPSIjMmMzZTUwIiBkPSJNNyAxMGw1IDUgNS01eiIvPjwvc3ZnPg==");
	background-repeat: no-repeat;
	background-position: right 1rem center;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
	-webkit-background-clip: text;
	-webkit-text-fill-color: #2c3e50;
	transition: background-color 5000s ease-in-out 0s;
	box-shadow: inset 0 0 20px 20px #ffffff;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
select,
textarea {
	width: 100%;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
	outline-width: 0;
	border-color: #0066cc;
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

input[type="radio"],
input[type="checkbox"] {
	width: 1.1rem;
	height: 1.1rem;
	margin: 0 0.5rem 0 0;
	padding: 0;
	vertical-align: middle;
	appearance: auto;
	-webkit-appearance: auto;
	-moz-appearance: auto;
	accent-color: #0066cc;
	display: inline-block;
}

/* Buttons keep inline-block and larger padding */
input[type="submit"],
input[type="button"],
.button,
button {
	display: inline-block;
}

input[type=submit],
input[type=button],
.button,
button {
	border-radius: 0.25rem;
	color: #ffffff;
	padding: 1rem 3.75rem;
	cursor: pointer;
	font-weight: bold;
	background: #0066cc;
	border: 1px solid #0066cc;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

input[type=submit]:disabled,
.button.disabled,
button:disabled {
	background: #bdc3c7;
	border: 1px solid #bdc3c7;
	color: #ffffff;
	font-weight: bold;
	cursor: default;
}

/* Loader GIF only while AJAX is in flight: theme JS adds .onloader + disabled on start and removes .onloader when done. A bare `button` selector here incorrectly applied the GIF to every button site-wide. */
input[type=submit]:disabled.onloader,
input[type=button]:disabled.onloader,
.button.disabled.onloader,
button:disabled.onloader {
	background-image: url(../images/loader.gif);
	background-size: 22px;
	background-position: 12px center;
	background-repeat: no-repeat;
}

input[type=submit]:Hover,
.button:Hover,
button:Hover {
	background: #0052a3;
	border-color: #0052a3;
}

input[type=submit]:disabled:Hover,
.button.disabled:Hover,
button:disabled:Hover {
	background: #bdc3c7;
	border-color: #bdc3c7;
	color: #ffffff;
}

.form-group {
	position: relative;
	margin: 2rem 0;
}

.form-group input::placeholder {
	color: transparent;
}

input:not([type="checkbox"]):not([type="radio"])+label {
	position: absolute;
	left: 1rem;
	top: 1rem;
	color: #95a5a6;
	pointer-events: none;
	transition: all 0.18s cubic-bezier(.2, .8, .2, 1);
	background: #ffffff;
	padding: 0 0.35rem;
	line-height: 1;
	z-index: 2;
	border-radius: 0.25rem;
}

input:not([type="checkbox"]):not([type="radio"]):focus+label,
input:not([type="checkbox"]):not([type="radio"]):not(:placeholder-shown)+label {
	top: -0.6rem;
	font-size: 0.875rem;
	color: #0066cc;
	background: #ffffff;
	padding: 0 0.45rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

input:-webkit-autofill+label {
	top: -0.6rem;
	font-size: 0.875rem;
	color: #0066cc;
	background: #ffffff;
	padding: 0 0.45rem;
}

.radio-group,
.checkbox-group {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	font-family: sans-serif;
}

.radio-group label,
.checkbox-group label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border: 2px solid #bdc3c7;
	border-radius: 0.25rem;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0 0.5rem 0 0;
	padding: 0;
	vertical-align: middle;
	transform: translateY(0.05rem) scale(1.15);
	accent-color: #0066cc;
	-webkit-appearance: auto;
	-moz-appearance: auto;
	appearance: auto;
}

.radio-group input[type="radio"]:checked+span {
	font-weight: bold;
}

.radio-group label:hover,
.checkbox-group label:hover {
	border-color: #0066cc;
	background-color: #f8f9fa;
}

textarea {
	min-height: 10rem;
	resize: none;
}

form .captcha {
	background: #f8f9fa;
	border: 1px solid #e1e8ed;
	border-radius: 0.25rem;
	padding: 1rem;
	display: flex;
	gap: 1rem;
	flex-direction: row;
	align-items: center;
}

form .captcha .render {
	flex: 1;
}

form .captcha .value {
	flex: 1;
}

.loader {
	width: 4.5rem;
	height: 1rem;
	display: inline-block;
	background-image: url(../images/loader.gif);
	background-size: contain;
	background-position: center center;
	vertical-align: bottom;
	background-repeat: no-repeat;
}

.message-wrapper {
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	padding: 2rem;
	height: 100%;
}

#fnc-message {
	position: relative;
	flex: 1;
	max-width: 40rem;
	text-align: center;
}

#fnc-message .box.message {
	padding-top: 2rem;
}

#fnc-response {
	position: relative;
	width: 100%;
	height: calc(100vh - 8rem);
	min-height: calc(100vh - 8rem);
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	box-sizing: border-box;
	padding: 1.5rem;
}

/* Background floating glow orbs */
#fnc-response .glow-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.15;
	z-index: 1;
	pointer-events: none;
}

#fnc-response .glow-orb--teal {
	width: clamp(180px, 30vw, 280px);
	height: clamp(180px, 30vw, 280px);
	background: #008C99;
	top: 10%;
	left: 15%;
	animation: fnc-orb-float-1 20s infinite alternate ease-in-out;
}

#fnc-response .glow-orb--blue {
	width: clamp(220px, 35vw, 320px);
	height: clamp(220px, 35vw, 320px);
	background: #0066cc;
	bottom: 10%;
	right: 15%;
	animation: fnc-orb-float-2 25s infinite alternate ease-in-out;
}

@keyframes fnc-orb-float-1 {
	0% {
		transform: translate(0, 0) scale(1);
	}

	100% {
		transform: translate(50px, 30px) scale(1.15);
	}
}

@keyframes fnc-orb-float-2 {
	0% {
		transform: translate(0, 0) scale(1.15);
	}

	100% {
		transform: translate(-40px, -50px) scale(0.9);
	}
}

#fnc-response .container {
	z-index: 2;
	position: relative;
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 1.25rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
	padding: clamp(1.5rem, 5vh, 2.5rem);
	text-align: center;
	max-width: 500px;
	width: 100%;
	border: 1px solid rgba(0, 140, 153, 0.15);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(0.75rem, 2.5vh, 1.25rem);
	box-sizing: border-box;
}

#fnc-response .error-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.75px;
}

#fnc-response .error-badge--404 {
	background: rgba(0, 140, 153, 0.08);
	color: #008C99;
	border: 1px solid rgba(0, 140, 153, 0.2);
}

#fnc-response .error-badge--403 {
	background: rgba(230, 126, 34, 0.08);
	color: #e67e22;
	border: 1px solid rgba(230, 126, 34, 0.2);
}

#fnc-response .error-badge--401 {
	background: rgba(155, 89, 182, 0.08);
	color: #9b59b6;
	border: 1px solid rgba(155, 89, 182, 0.2);
}

#fnc-response .error-badge--generic {
	background: rgba(231, 76, 60, 0.08);
	color: #e74c3c;
	border: 1px solid rgba(231, 76, 60, 0.2);
}

#fnc-response .illustration {
	width: clamp(110px, 15vh, 140px);
	height: clamp(110px, 15vh, 140px);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0.25rem 0;
}

#fnc-response .illustration svg {
	width: 100%;
	height: 100%;
	display: block;
}

#fnc-response .title {
	font-size: clamp(1.3rem, 3.5vh, 1.7rem);
	font-weight: 800;
	color: #1a2530;
	line-height: 1.3;
	margin: 0;
}

#fnc-response .message {
	font-size: clamp(0.85rem, 2.2vh, 0.95rem);
	line-height: 1.55;
	color: #5a6e7f;
	margin: 0;
	font-weight: 400;
}

#fnc-response .actions {
	display: flex;
	flex-direction: row;
	gap: 0.75rem;
	justify-content: center;
	width: 100%;
	margin-top: 0.5rem;
	box-sizing: border-box;
}

@media (max-width: 480px) {
	#fnc-response .actions {
		flex-direction: column;
	}
}

#fnc-response .btn-primary {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.25rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #ffffff !important;
	text-decoration: none;
	border-radius: 0.5rem;
	background: linear-gradient(135deg, #008C99 0%, #0066cc 100%);
	box-shadow: 0 4px 12px rgba(0, 140, 153, 0.2);
	white-space: nowrap;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	border: none;
	cursor: pointer;
}

#fnc-response .btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 140, 153, 0.3);
	background: linear-gradient(135deg, #009cb0 0%, #0077ee 100%);
}

#fnc-response .btn-primary:active {
	transform: translateY(0);
}

#fnc-response .btn-secondary {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.25rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #008C99 !important;
	text-decoration: none;
	border-radius: 0.5rem;
	border: 1.5px solid #008C99;
	background: transparent;
	white-space: nowrap;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}

#fnc-response .btn-secondary:hover {
	background: rgba(0, 140, 153, 0.05);
	transform: translateY(-2px);
}

#fnc-response .btn-secondary:active {
	transform: translateY(0);
}

/* Animations for SVGs */
@keyframes fnc-pulse-slow {

	0%,
	100% {
		opacity: 0.7;
		transform: scale(1);
	}

	50% {
		opacity: 1;
		transform: scale(1.05);
	}
}

@keyframes fnc-radar-scan {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

@keyframes fnc-blip-blink {

	0%,
	100% {
		opacity: 0.2;
		transform: scale(0.8);
	}

	50% {
		opacity: 1;
		transform: scale(1.2);
	}
}

@keyframes fnc-shield-glow {

	0%,
	100% {
		opacity: 0.4;
	}

	50% {
		opacity: 0.85;
	}
}

@keyframes fnc-key-float {

	0%,
	100% {
		transform: translateY(0) rotate(0deg);
	}

	50% {
		transform: translateY(-6px) rotate(5deg);
	}
}

@keyframes fnc-gear-rotate {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/**/

@media screen and (max-width: 768px) {
	#base-header {
		padding: .5rem;
	}

	#base-header .menu--responsive {
		display: flex;
		flex: 0 0 auto;
	}

	#base-header .menu--responsive.active {
		background: #f0f2f5;
	}

	#base-header .menubox--responsive.active {
		display: flex;
	}

	#base-header .menubox--responsive {
		position: absolute;
		overflow-y: auto;
		top: 5rem;
		left: 0;
		background: #f8f9fa;
		flex: 0 0 auto;
		flex-direction: column;
		width: min(16.5rem, 78vw);
		max-width: 280px;
		height: auto;
		max-height: calc(100dvh - 5.5rem);
		display: none;
		border-top: 1px solid #e1e8ed;
		border-right: 1px solid #e1e8ed;
		border-bottom: 1px solid #e1e8ed;
		border-radius: 0 0 12px 0;
		box-shadow: 4px 8px 24px rgba(15, 23, 42, 0.12);
		z-index: 20;
	}

	/* El agrupador solo aplica en escritorio; en drawer los hijos vuelven al flujo column del menubox */
	#base-header .fnc-header-right-group {
		display: contents;
	}

	#base-header .menubox-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background: rgba(0, 0, 0, 0.35);
		z-index: 15;
		display: none;
	}

	#base-header .menubox--responsive li:last-child {
		border-bottom: 0;
	}

	#base-header .menubox--responsive ul a {
		display: flex;
		align-items: center;
		gap: 0.65rem;
		padding: 0.85rem 1.1rem;
		width: 100%;
		font-size: 0.95rem;
		color: #2c3e50;
		box-sizing: border-box;
	}

	#base-header .menubox--responsive .menu i,
	#base-header .menubox--responsive .menu svg {
		font-size: 1.15em;
	}

	#base-header {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-start;
	}

	#base-header .logo {
		flex: 1 1 auto;
		width: auto;
		max-width: calc(100% - 4.5rem);
		min-width: 0;
		order: 1;
		margin-right: 0.25rem;
	}

	#base-header .fnc-header-lang-toolbar {
		order: 2;
		flex: 0 0 auto;
		margin-left: auto;
		margin-right: 0.25rem;
	}

	#base-header .menu--responsive {
		order: 3;
		flex: 0 0 auto;
		margin-left: 0;
	}

	#base-header .options {
		order: 5;
	}

	#base-header .menu {
		flex: 0 0 auto;
		padding: 0.35rem 0;
		border-bottom: 1px solid #e1e8ed;
		order: 3;
	}

	#base-header .additional {
		flex: 0 0 auto;
		text-align: left;
		border-bottom: 1px solid #e1e8ed;
		order: 2;
		padding: 0.5rem 0.75rem;
	}

	#base-header .control {
		flex: 0 0 auto;
		border-bottom: 1px solid #e1e8ed;
		order: 1;
		padding: 0.65rem 0.75rem;
	}

	#base-header .menubox--responsive .fnc-executive-profile-badge {
		flex-wrap: wrap !important;
		width: 100%;
		gap: 0.45rem !important;
	}

	#base-header .menubox--responsive .fnc-header-solutions-pill,
	#base-header .menubox--responsive .fnc-user-profile-link,
	#base-header .menubox--responsive .fnc-logout-link {
		font-size: 0.78rem !important;
		padding: 0.4rem 0.7rem !important;
	}

	#base-header .additional:empty,
	#base-header .menu:empty {
		display: none;
	}

	#base-footer {
		flex-direction: column;
		flex: 0 0 auto;
		width: 100%;
		min-height: auto;
		padding: 0.4rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
		box-sizing: border-box;
		gap: 0.25rem;
	}

	#base-footer .footer-left {
		padding: 0.15rem 0.35rem;
		flex: 0 0 auto;
		order: 2;
		width: 100%;
		justify-content: center;
	}

	#base-footer .footer-middle {
		padding: 0.15rem 0.35rem;
		flex: 0 1 auto;
		order: 1;
		width: 100%;
		max-height: none;
		justify-content: center;
	}

	#base-footer .footer-right {
		padding: 0.15rem 0.35rem;
		flex: 0 0 auto;
		order: 3;
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
		gap: 0.35rem;
	}

	nav.footer-menu {
		width: 100%;
	}

	nav.header-menu ul,
	nav.control-menu ul {
		flex-direction: column;
		gap: 0;
	}

	/* Footer links: compact wrap (not a tall vertical stack) */
	nav.footer-menu ul {
		flex-direction: row !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
		align-items: center !important;
		gap: 0.15rem 0.55rem !important;
	}

	nav.header-menu li a:hover,
	nav.control-menu li a:hover {
		background: none;
	}

	nav.header-menu ul>li>ul,
	nav.control-menu ul>li>ul,
	nav.footer-menu ul>li>ul {
		padding-left: 1rem;
	}

	nav.header-menu li ul,
	nav.control-menu li ul,
	nav.footer-menu li ul {
		display: flex;
		position: inherit;
		padding-left: 1rem;
	}

	nav.header-menu ul ul ul,
	nav.control-menu ul ul ul,
	nav.footer-menu ul ul ul {
		top: 0;
		padding-left: 1rem;
	}

	nav.footer-menu li ul,
	nav.footer-menu ul ul ul {
		left: 0;
	}

	nav.footer-menu ul a {
		display: inline-flex !important;
		align-items: center;
		padding: 0.25rem 0.4rem !important;
		width: auto !important;
		font-size: clamp(0.68rem, 2.8vw, 0.78rem) !important;
		line-height: 1.25 !important;
		background: none;
		box-sizing: border-box;
		white-space: nowrap;
	}

	#base-footer .copyright {
		font-size: clamp(0.65rem, 2.6vw, 0.75rem);
		text-align: center;
		white-space: normal;
	}

	#base-footer .icon-logo {
		display: none;
	}
}