/* BODY */
/* --------------------------------------------------------------------------*/
html, body {
	margin: 0;
	padding: 0;
}
body{
 	background-color:#FFFFFF;
 	margin:0;
 	font-family:Arial, Helvetica, sans-serif;
 	font-size:11px;
 	color:#000000;
 	text-align:center;
}
f\:view, [id$="view"] {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
}

/* Sticky footer layout (mobile) */
html {
	height: 100%;
}
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	padding: 0;
}
#topo {
	flex-shrink: 0;
}
#conteiner {
	flex: 1;
}
#rodape {
	flex-shrink: 0;
}
/* TOPO */
/* --------------------------------------------------------------------------*/
#topo {
	background-image:url(../pages/img/fundo_topo.jpg);
	width:100%;
	height:46px;
}
#topo_borda_esquerda{
	width:1%;
	height:46px;
	text-align:left;
	float:left;
}
#topo_data {
	width:130px;
	float:left;
	padding-top:15px;
	color:#FFFFFF;	
	text-align:left;
}
#topo_brasao {
	width:50px;
	height:46px;
	text-align:right;
	float:right;
}

.botao{
	width: 40px;
	height: 20px;
	background-color:#FFFFFF;
	font-family:Arial, Helvetica, sans-serif;
	font-size:10px;
	font-weight: normal;
	color:#000000;
	border:1px solid #CCCCCC;
}

/* SECUNDÁRIA */
/* --------------------------------------------------------------------------*/
#secundaria {
	width:100%;
}
#brasao_uva {
	background:url(../pages/img/logo_uva.jpg) left no-repeat #FFFFFF;
	width:30%;
	min-height:114px;  /*só isso já basta para os browsers de verdade*/
	height:auto !important; /*comça a enganar o estúpido do ie*/
	height:114px; /*termina de enganar o idiota do ie*/
	float:left;
	padding-left:5px;
}
#livre {
	background-color: #FFFFFF;
	width:100%;
	text-align: center;
}
#descricao {
	background:url(../pages/img/ondas.jpg) right no-repeat #FFFFFF;
	width:65%;
	min-height:114px;  /*só isso já basta para os browsers de verdade*/
	height:auto !important; /*comça a enganar o estúpido do ie*/
	height:114px; /*termina de enganar o idiota do ie*/
	float:right;
	text-align:right;
	padding-right:15px;
}
/* CORPO */
/* --------------------------------------------------------------------------*/
#box_menu {
	width:100%;
	border-bottom-width:1px;
	border-bottom-color:#000000;
	border-bottom-style:dashed;
}
#box_verde {
	background-color:#037e45;
	width: 100%
	
}
#conteiner{
	background-color:#ffffff;
	width:100%;
	padding-top:10px;
	padding-bottom:6px;
	text-align:center;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	box-sizing:border-box;
}
/* ESPECÍFICOS */
/* --------------------------------------------------------------------------*/
.panel_grid {	
	font-family:Arial, Helvetica, sans-serif;
	font-size: 10px;
	color:#000000;
	width: 100%;
}

.panel_coluna_direita {
	text-align: right;
	width: 50%;
}
.panel_coluna_esquerda {
	text-align: left;
	width: 50%;
}

.panel_coluna_meio {
	text-align: center;
	width: 50%;
}
.panel_grid_region {	
	font-family:Arial, Helvetica, sans-serif;
	font-size: 10px;
	color:#000000;
	width: 100%;
	text-align: center;
}
.data_table {
	text-align: center;
	width: 100%;
}

/* Ensure header/main/footer are standard block elements on mobile */
html, body { height: auto; }
#topo, #rodape, #rodape_custom { position: static; }
#conteiner { overflow: visible; }

.data_table_width_auto {
	text-align: center;	
}
.cabecalho_tabela {
	background:#037E45;
	width: auto;
	height: 25px; 
	text-align: center;
	border-collapse: collapse;
	font-size: 10px;
	color: #FFFFFF;
}
.rodape_tabela {
	background:#037E45;
	width: auto;
	height: 25px;
	text-align: center;
	border-collapse: collapse;
	font-family:Arial, Helvetica, sans-serif;
	font-weight: normal;
	font-size: 10px;
	color: #FFFFFF;
}
/* MENU */
/* --------------------------------------------------------------------------*/
.fundo_menu{
	color: green;
}

.inicio{
	text-decoration: none;
	color:black;
	border: none;
}
.painelMenu {
	font-size: 13px;
	background-color: white;
	border-color:white;
}
/* LOGIN */
/* --------------------------------------------------------------------------*/
#login_esquerda {
	background-color:#ffffff;
	width:100%;
	min-height:50px;  /*só isso já basta para os browsers de verdade*/
	height:auto !important; /*comça a enganar o estúpido do ie*/
	height:330px; /*termina de enganar o idiota do ie*/
	text-align:center;
}
#login_direita {
	background-color:#ffffff;
	width:100%;
	min-height:50px;  /*só isso já basta para os browsers de verdade*/
	height:auto !important; /*comça a enganar o estúpido do ie*/
	text-align:center;
	padding-top: 8px;
	padding-bottom: 10px;
}
#login_externo {
	background-color:#FFFFFF;
	max-width:326px;
	min-width: 250px;
	min-height:50px;  /*só isso já basta para os browsers de verdade*/
	height:auto !important; /*comça a enganar o estúpido do ie*/
	border: 2px solid #E4E4E4;
	margin: 0 auto;
}
#login {
	background-color:#E4E4E4;
	max-width:306px;
	min-width: 250px;
	min-height:50px;  /*só isso já basta para os browsers de verdade*/
	height:auto !important; /*comça a enganar o estúpido do ie*/
	height:50px; /*termina de enganar o idiota do ie*/
	border: 10px solid #FFFFFF;
	font-family:Arial, Helvetica, sans-serif;
	color:#666666;
	font-size:11px;
	margin: 0 auto;
}
/* RODAPÉ */
/* --------------------------------------------------------------------------*/
#rodape {
	background-image:url(../pages/img/fundo_rodape.jpg);
	width:100%;
	height:109px;
	text-align:center;
	flex: 0 0 auto;
}
#rodape_custom {
	flex: 0 0 auto;
	width: 100%;
	margin: 0;
}
/* AJUSTA DIV'S' */
/* --------------------------------------------------------------------------*/
.clearDivs{
	clear:both;
}
/* FONTES */
/* --------------------------------------------------------------------------*/
.ft_padrao{
	color:#000000;
	font-weight:normal;
	font-size: 10px;
}
.ft_padrao_n{
	color:#000000;
	font-weight:bold;
	font-size: 10px;
}

.font_10{
	font-size: xx-small;
}

.ft_sistema{
	color:#000000;
	font-weight:bold;
	font-size: 14px;
}
.ft_titulo_form_login{
	color:#999999;
	font-weight:bold;
	font-size: clamp(11px, 3.5vw, 15px);
	max-width: 92vw;
	display: block;
	word-break: break-word;
}
.ft_login{
	color:#000000;
	font-weight:normal;
	font-size: 12px;
}
/* Add top spacing above field titles on mobile and make labels bold/same size */
.login-card .ft_login{
	margin-top:10px;
	font-size:12px !important;
	font-weight:700 !important;
}
.ft_titulo{
	color:#4f8a75;
	font-size:15px;
}
.ft_branco{
	color:#ffffff;
	font-weight:normal;
	font-size: 10px;
}
.ft_branco_n{
	color:#ffffff;
	font-weight:bold;
	font-size: 10px;
}
.verm_proibido {
	font-family:Arial, Helvetica, sans-serif;
	font-weight: normal;
	font-size: 14px;
	color: #FF0000;
}
.erro {
	font-family:Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FF0000;	
	font-weight: bold;
}
.info {
	font-family:Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #27652B;	
	font-weight: bold;
}
/* --------------------------------------------------------------------------*/
/* FORMULARIO */
/* --------------------------------------------------------------------------*/
a {
	text-decoration: none;
	border: none;
}
a:link {
	text-decoration: none;
	border: none;
}
a:visited {
	text-decoration: none;
	border: none;
}
a:hover {
	text-decoration: none;
	border: none;
}
.tira_borda {
	text-decoration: none;
	border: none;
}
/* --------------------------------------------------------------------------*/
/* FORMULARIO */
/* --------------------------------------------------------------------------*/
input, select, textarea {
	background-color:#FFFFFF;
	color:#000000;
	font-family:Arial, Helvetica, sans-serif;
	font-size:10px;
	border:1px solid #000000;
}
input.botao{
	background-color:#FFFFFF;
	font-family:Arial, Helvetica, sans-serif;
	font-size:10px;
	font-weight: normal;
	color:#000000;
	border:1px solid #000000;
}
/* --------------------------------------------------------------------------*/
input.login {
	background-color:#FFFFFF;
	color:#949494;
	font-family:Arial, Helvetica, sans-serif;
	font-size:11px;
	border: none;
}
input.login_botao{
	background-color:#FFFFFF;
	font-family:Arial, Helvetica, sans-serif;
	font-size:10px;
	font-weight: normal;
	color:#000000;
	border:1px solid #CCCCCC;
}
/* --------------------------------------------------------------------------*/

/* ============================================================
   LOGIN CARD LAYOUT – adaptado para mobile
   ============================================================ */
.login-brand{
	display:flex;
	align-items:center;
	justify-content:center;
	width:100%;
	padding:4px 0;
}
.login-brand img{
	max-width:120px;
	height:auto;
	display:inline-block;
}

.login-card-wrapper{
	width:100%;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:6px 0;
	box-sizing:border-box;
}

.login-card{
	width:calc(100% - 28px);
	max-width:540px;
	background:#ffffff;
	border-radius:10px;
	box-shadow:0 4px 18px rgba(0,0,0,0.08);
	padding:18px 16px 22px 16px;
	border:1px solid rgba(0,0,0,0.04);
	box-sizing:border-box;
}

.login-card .card-header{
	display:flex;
	align-items:center;
	justify-content:center;
	padding-bottom:10px;
}
.login-card .card-header h2{
	margin:0;
	font-size:17px;
	font-weight:600;
}

.login-card input[type="text"],
.login-card input[type="password"],
.login-card input{
	width:100%;
	padding:12px 14px;
	border-radius:8px;
	border:1px solid #e0e0e0;
	background:#f7f7f7;
	font-size:15px;
	box-sizing:border-box;
}
.login-card input.username{
	margin-bottom:14px;
}

/* Custom dropdown list items font size on mobile */
.login-card .custom-options li{
	font-size:16px;
}

/* Linha "Lembrar-me" + "Esqueci a senha" */
.login-card .login-actions{
	width:100%;
	box-sizing:border-box;
	display:flex;
	flex-direction:row; /* lado a lado no mobile */
	align-items:center;
	justify-content:space-between;
	gap:6px; /* espaçamento reduzido */
	margin:6px 0 0 0;
	flex-wrap:nowrap; /* evitar quebra de linha entre os grupos */
}
.login-card .login-actions .left-group,
.login-card .login-actions .right-group{
	display:flex;
	align-items:center;
	gap:6px;
}
.login-card .login-actions .left-group{ flex:1 1 80%; min-width:0; display:flex; align-items:center; gap:1px; }
.login-card .login-actions .left-group input[type="checkbox"]{ margin:0 2px 0 0; padding:0; }
.login-card .login-actions .ft_login{ white-space:nowrap; overflow:visible; text-overflow:clip; font-size:12px; }
.login-card .login-actions .right-group{ flex:0 0 auto; white-space:nowrap; }
.login-card .login-actions .ft_login{
	display:inline-block;
	margin:0;
	font-size:12px;
}
.login-card .login-actions .forgot{
	display:inline-block;
	text-align:right;
	margin:0;
	font-size:12px;
	font-weight:600;
	color:#1f14ff;
}

/* Botão Entrar */
.botao, input.botao, button.botao{
	display:block;
	width:100%;
	box-sizing:border-box;
	background:#0ea46a;
	color:#fff !important;
	border:none;
	padding:12px 14px;
	border-radius:8px;
	font-size:15px;
	text-align:center;
	cursor:pointer;
}
.login-card .button-row{
	width:100%;
	box-sizing:border-box;
	padding:0;
	margin:14px 0 0 0;
	display:block;
}

/* Inline button row for mobile: stack on very small screens if needed but prefer side-by-side */
.button-inline{
	display:flex !important;
	flex-direction:row !important;
	flex-wrap:nowrap !important;
	justify-content:space-between;
	align-items:center;
	gap:8px;
	width:100%;
	box-sizing:border-box;
}
.button-inline .btn-left,
.button-inline .btn-right{
	display:block !important;
 	flex:1 1 50% !important; /* equal halves on mobile */
 	width:50% !important;
 	min-width:0 !important;
}
.button-inline .btn-left .botao,
.button-inline .btn-right .botao{
	width:100% !important;
	box-sizing:border-box;
}

@media (max-width: 360px){
	.button-inline{flex-direction:column; gap:8px}
	.button-inline .btn-left, .button-inline .btn-right{flex: none; width:100%}
}

/* Container do captcha */
.captcha-container{
	border:1px solid #e0e0e0;
	padding:10px;
	border-radius:6px;
	background:#fbfbfb;
	display:block;
	margin:10px auto;
	width:100%;
	max-width:300px;
	box-sizing:border-box;
	text-align:center;
}
.captcha-header{
	font-size:12px;
	color:#333;
	margin-bottom:6px;
	font-weight:600;
	text-align:center;
}
.captcha-wrapper{
	display:flex;
	justify-content:center;
	align-items:center;
	gap:6px;
}
.captcha-refresh{
	color:#000000;
	text-decoration:none;
	display:inline-flex;
	align-items:center;
	cursor:pointer;
	line-height:0;
}

/* label-col – tabela de campos */
.label-col{
	width:100%;
	text-align:left;
}

/* t:panelGrid renderiza como <table> – forçar largura total dentro do card */
.login-card table{
	width:100% !important;
	border-collapse:collapse;
	box-sizing:border-box;
}
.login-card table td{
	width:100% !important;
	display:block;
	padding:2px 0;
	box-sizing:border-box;
}

/* Garantir que inputs dentro do card herdem largura total */
.login-card input[type="text"],
.login-card input[type="password"],
.login-card input{
	width:100% !important;
	max-width:100% !important;
	box-sizing:border-box !important;
}

/* Sobrescrever o input.botao antigo dentro do card */
.login-card input.botao,
.login-card button.botao{
	width:100% !important;
	height:auto !important;
	background:#0ea46a !important;
	color:#fff !important;
	border:none !important;
	padding:12px 14px !important;
	border-radius:8px !important;
	font-size:15px !important;
	cursor:pointer !important;
}

/* Imagem do captcha responsiva */
.captcha-wrapper img,
.captcha-wrapper .rf-graphicImage{
	max-width:100%;
	height:auto;
	display:block;
}

/* Centralizar t:div do captcha */
.login-card .captcha-container{
	margin-left:auto;
	margin-right:auto;
}

/* Captcha input row (t:panelGrid columns=2): empilhar em telas estreitas */
.captcha-container ~ table,
.captcha-container ~ * table{
	margin:0 auto;
}
@media (max-width: 380px){
	.login-card table td{
		display:block !important;
		width:100% !important;
		text-align:center !important;
	}
	.login-card input[type="text"]#captcha{
		width:100% !important;
		max-width:100% !important;
	}
	.captcha-wrapper img{
		max-width:160px;
	}
}

/* ============================================================ */

/* Header (mobile) adjustments */
.header-custom{
	display:flex;
	align-items:center;
	justify-content:space-between;
	width:100%;
	box-sizing:border-box;
	padding:8px 12px;
	background: linear-gradient(to top, #16b56a 0%, #0ea46a 40%, #0b8f62 70%, #057a52 100%);
	color:#ffffff;
}
.header-custom .header-inner{
	width:100%;
	display:flex;
	align-items:center;
	justify-content:space-between;
	box-sizing:border-box;
}
.header-custom .header-left{
	font-size:13px;
	font-weight:600;
	color:#ffffff;
}
.header-custom .header-right{
	text-align:right;
}
.header-custom .header-right img, .header-custom .header-right .rf-graphicImage{
	max-height:40px;
	height:auto;
	display:block;
}

/* Tighter spacing for very small screens */
@media (max-width:360px){
	.header-custom{ padding:6px 8px; }
	.header-custom .header-left{ font-size:12px; }
	.header-custom .header-right img{ max-height:36px; }
}

/* ============================================================
   HEIGHT-RESPONSIVE: compress layout to fit the viewport
   without scroll — mobile / landscape screens
   ============================================================ */

/* Short (≤ 680 px) — mild compression */
@media (max-height: 680px) {
	.login-brand { padding: 2px 0; }
	.login-brand img { max-width: 90px; }
	#conteiner { gap: 0; padding-top: 4px; padding-bottom: 4px; }
	.login-card { padding: 14px 14px 16px 14px; }
	.login-card .card-header { padding-bottom: 6px; }
	.login-card input.username { margin-bottom: 8px; }
	.login-card .login-actions { margin-top: 4px; }
	.login-card .button-row { margin-top: 10px; }
	#rodape_custom { padding: 10px 0 !important; min-height: 50px !important; font-size: 12px; }
}

/* Medium-short (≤ 540 px) — moderate compression */
@media (max-height: 540px) {
	.login-brand img { max-width: 64px; }
	#conteiner { padding-top: 2px; padding-bottom: 2px; }
	.login-card { padding: 10px 12px 12px 12px; }
	.login-card .card-header { padding-bottom: 4px; }
	.login-card .card-header h2 { font-size: 15px; }
	.login-card input[type="text"],
	.login-card input[type="password"],
	.login-card input { padding: 8px 10px; font-size: 14px; }
	.login-card input.username { margin-bottom: 4px; }
	.login-card .login-actions { margin-top: 2px; gap: 4px; }
	.login-card .button-row { margin-top: 8px; }
	.botao, input.botao, button.botao { padding: 9px 12px; font-size: 14px; }
	.ft_login { font-size: 11px; margin-bottom: 2px; }
	#rodape_custom { padding: 6px 0 !important; min-height: 36px !important; font-size: 12px; }
	#rodape_custom small { display: none !important; }
}

/* Very short (≤ 420 px — landscape phone) — aggressive compression */
@media (max-height: 420px) {
	.login-brand { display: none; }
	#conteiner { padding-top: 0; padding-bottom: 0; }
	.login-card { padding: 6px 12px 8px 12px; border-radius: 8px; }
	.login-card .card-header { padding-bottom: 2px; }
	.login-card .card-header h2 { font-size: 14px; }
	.login-card input[type="text"],
	.login-card input[type="password"],
	.login-card input { padding: 6px 8px; font-size: 13px; }
	.login-card input.username { margin-bottom: 2px; }
	.login-card .login-actions { margin-top: 0; gap: 4px; }
	.login-card .button-row { margin-top: 4px; }
	.botao, input.botao, button.botao { padding: 7px 10px; font-size: 13px; }
	.ft_login { font-size: 10px; margin-bottom: 1px; }
	#rodape_custom { padding: 4px 0 !important; min-height: 26px !important; font-size: 11px; border-radius: 0 !important; }
	#rodape_custom small { display: none !important; }
}

/* Floating register button (discreet, bottom-right) */
.floating-register {
	position: fixed;
	right: 12px;
	bottom: calc(60px + 18px);
	background: transparent;
	color: #ffffff;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	padding: 0;
	box-sizing: border-box;
	font-size: 12px;
	line-height: 1;
	box-shadow: 0 6px 18px rgba(0,0,0,0.12);
	z-index: 10060;
	cursor: pointer;
	opacity: 0.95;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.floating-register:focus { outline: none; box-shadow: 0 0 0 3px rgba(31,20,255,0.12); }


/* Register balloon (mobile adjustments) */
.register-balloon{
	position: fixed;
	/* left/top set by JS to align with the floating button */
	transform: scale(0.98);
	opacity: 0;
	pointer-events: none;
	width: 280px;
	max-width: 92vw;
	background: #ffffff;
	color: #111;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(6,24,44,0.18);
	transition: opacity 180ms ease, transform 200ms cubic-bezier(.2,.9,.2,1);
	z-index: 10100;
}
.register-balloon.open{ opacity: 1; transform: scale(1); pointer-events: auto; }
.register-balloon .content{ padding: 14px 12px 12px; font-size: 13px; line-height:1.25; }
.register-balloon .content p{ margin: 6px 0 0 0; color:#333; }
.register-balloon .rb-close{ background:#1f14ff; color:#fff; border:none; padding:7px 10px; border-radius:8px; cursor:pointer; }
.register-balloon .arrow{ display:none; }

/* Inline field error message (shown under inputs when required) */
.field-error{
	color: #CD2626;
	font-weight: bold;
	font-size: 12px;
	margin-top: 4px; /* bring message closer to the input */
	margin-bottom: 10px; /* add space before the next label/field */
	text-align: left;
}

/* Close icon in top-right corner for mobile balloon */
.register-balloon .rb-close-icon{
	position: absolute;
	top: -6px; /* nudge up on mobile */
	right: -6px; /* nudge to corner */
	width: 26px;
	height: 26px;
	border-radius: 6px;
	background: rgba(255,255,255,0.95);
	color: #333;
	border: 1px solid rgba(0,0,0,0.06);
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.register-balloon .rb-close-icon:hover{ background: rgba(0,0,0,0.04); }


/* Force uniform mobile panel sizing across pages */
@media (max-width: 600px) {
	/* ensure container allows full width and consistent padding */
	#conteiner, #conteudo_principal {
		width: 100% !important;
		padding-left: 8px !important;
		padding-right: 8px !important;
		box-sizing: border-box;
		margin: 0 auto;
	}

	/* ensure wrapper centers and allows the card to grow */
	.login-card-wrapper {
		width: 100% !important;
		display: flex !important;
		justify-content: center !important;
		box-sizing: border-box !important;
	}

	/* make login-card occupy the same horizontal space as on login page */
	.login-card {
		width: calc(100% - 16px) !important;
		max-width: 540px !important;
		margin: 0 auto !important;
		box-sizing: border-box !important;
		padding-left: 14px !important;
		padding-right: 14px !important;
	}

	/* ensure tables and inner elements don't add extra indentation */
	.login-card table, .login-card table td {
		width: 100% !important;
		padding: 0 !important;
	}
}

/* Required-field note: smaller and centered on mobile */
@media (max-width: 600px) {
	.required-note {
		display: block !important;
		text-align: center !important;
		font-size: 12px !important;
		color: #6b7280 !important;
		margin-top: 6px !important;
		margin-bottom: 0 !important;
	}
}


/* Align labels above selects to the left on mobile */
@media (max-width: 600px) {
	.login-card .panel_coluna_full .ft_login,
	.login-card .panel_coluna_full label {
		display: block !important;
		text-align: left !important;
		width: 100% !important;
		margin-bottom: 6px !important;
	}
}

/* Make selects inside perguntasRedefinicao (panel_coluna_full) stretch to full input width on mobile */
@media (max-width: 600px) {
	.panel_coluna_full .custom-select-wrapper,
	.panel_coluna_full .custom-select,
	.panel_coluna_full select,
	.panel_coluna_full .custom-select-display {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		display: block !important;
	}
	/* Ensure any decorative caret stays inside the right edge */
	.panel_coluna_full .custom-select-wrapper::after { right: 12px !important; }
}


