/* Add here all your CSS customizations */

/* Navbar: botão Voltar para a página Inicial (à esquerda da logo) */
.navbar-back-home {
	display: inline-block;
	font-size: 0.8125rem;
	color: #444;
	white-space: nowrap;
	padding: 0.35rem 0.6rem;
	border: 1px solid #ccc;
	border-radius: 30px;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.navbar-back-home:hover {
	color: #271e66;
	border-color: #271e66;
	background-color: rgba(39, 30, 102, 0.04);
}
@media (max-width: 575.98px) {
	.navbar-back-home {
		font-size: 0.75rem;
		padding: 0.25rem 0.5rem;
	}
	.navbar-back-home .navbar-back-home-long {
		display: none;
	}
}
@media (max-width: 380px) {
	.navbar-back-home {
		font-size: 0.7rem;
	}
}

/* Navigation Links */
a.nav-link {
	color: #ffffff;
	font-size: 13px;
}

a.nav-link:hover {
	color: #271e66;
}

.dropdown-menu a.nav-link {
	color: #666666;
}

a, a:hover {
	text-decoration: none !important;
}

*:focus {
	outline: none !important;
}

/* Buttons */
.btn-primary:active, .btn-primary:focus {
	color: #ffffff !important;
	background-color: #cccccc !important;
	border-color: #cccccc !important;
}

.btn-primary:hover {
	color: #fff;
	background-color: #cccccc !important;
	border-color: #cccccc !important;
}

.btn-primary:focus, .btn-primary.focus {
	color: #fff;
	background-color: #cccccc !important;
	border-color: #cccccc !important;
	box-shadow: #cccccc !important;
}

/* Rounded corners for all BO buttons + tamanho um pouco maior */
.btn {
	border-radius: 30px;
	padding: 0.4rem 0.85rem;
	font-size: 0.95rem;
}
.btn.btn-sm {
	padding: 0.35rem 0.7rem;
	font-size: 0.9rem;
}
.btn.btn-lg {
	padding: 0.5rem 1.1rem;
	font-size: 1.05rem;
}

.btn-group > .btn:first-child:not(:last-child) {
	border-radius: 6px 0 0 6px;
}

.btn-group > .btn:last-child:not(:first-child) {
	border-radius: 0 8px 8px 0;
}

.btn-group > .btn:not(:first-child):not(:last-child) {
	border-radius: 0;
}

.btn-group > .btn:first-child:last-child {
	border-radius: 8px;
}

/* Text Utilities */
.text-black {
	color: #000;
}

.bold {
	font-weight: bold;
}

.uppercase {
	text-transform: uppercase;
}

.text-blue {
	color: #5274d2;
}

/* Dropdown Menu */
.dropdown-menu {
	padding: .5rem 0;
	color: #444;
	border: none;
	box-shadow: 0px 1px 2px 2px rgba(0,0,0,0.1);
	min-width: 12rem;
	box-sizing: border-box;
}

/* Garantir quebra de texto nos itens da dropdown */
.dropdown-menu .dropdown-item,
.dropdown-menu .nav-link {
	white-space: normal;
	word-wrap: break-word;
	word-break: break-word;
	overflow-wrap: break-word;
	font-size: 0.875rem;
	padding: 0.5rem 1rem;
	line-height: 1.4;
}

/* Dropdown Menu - Responsividade para telas menores
   Em mobile, deixa a dropdown fluir dentro do menu colapsado */
   @media (max-width: 991.98px) {

	/* Em telas pequenas o nav-item não precisa ser relativo */
	.navbar .nav-item.dropdown {
		position: static;
	}

	/* A dropdown vira um bloco normal dentro do menu, ocupando 100% da largura */
	.navbar .nav-item.dropdown .dropdown-menu {
		position: static;
		float: none;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin: 0;
		box-shadow: none;           /* opcional: pode remover se quiser a sombra */
		padding: 0.375rem 0;
	}

	/* Itens com quebra de linha bonitinha */
	.navbar .nav-item.dropdown .dropdown-menu .dropdown-item,
	.navbar .nav-item.dropdown .dropdown-menu .nav-link {
		white-space: normal;
		word-break: break-word;
		overflow-wrap: break-word;
		font-size: 0.875rem;
		padding: 0.5rem 1rem;
		line-height: 1.4;
	}
}

/* Notifications */
.notifications {
	padding: 10px 0;
}

.notifications ul {
	padding: 0;
	list-style: none;
}

.notifications ul li {
	margin-bottom: 10px;
}

.notifications ul li a:hover {
	text-decoration: none;
}

/* Background Gradient */
.bg-gradient {
	background: #7B68CA;
}

.bg-gradient-black {
	background: rgb(0,0,0);
	background: -moz-linear-gradient(50deg, rgba(0,0,0,1) 14%, rgba(78,78,78,1) 93%);
	background: -webkit-linear-gradient(50deg, rgba(0,0,0,1) 14%, rgba(78,78,78,1) 93%);
	background: linear-gradient(50deg, rgba(0,0,0,1) 14%, rgba(78,78,78,1) 93%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#4e4e4e",GradientType=1);
}

/* Breadcrumb */
.breadcrumb {
	padding: 10px 0;
	margin: 0;
	background-color: transparent;
}

li.breadcrumb-item a {
	color: #3e81e3;
	font-weight: 600;
}

.breadcrumb-item.active {
	color: #000000;
}

/* Userbox */
.userbox .name {
	color: #000000;
	font-weight: bold;
}

.userbox .custom-caret {
	color: #000000;
}

/* Navbar */
.navbar {
	padding: 0;
	overflow: visible;
}

.navbar-collapse {
	overflow: visible;
}

.navbar a.nav-link {
	padding: 15px;
	font-size: 14.2px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.navbar a.nav-link:hover, .navbar a.nav-link:active, .navbar a.nav-link:focus {
	padding: 15px;
	color: #fec240;
}

.navbar-light .navbar-toggler {
	color: #ffffff;
}

/* Nav Pills */
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
	color: #000;
	background-color: #eee;
}

/* Header */
header {
	-webkit-box-shadow: 0 1px 5px rgb(0 0 0 / 10%);
	box-shadow: 0 1px 5px rgb(0 0 0 / 10%);
}

/* Tables */
.table-striped tbody tr:nth-of-type(odd) {
	background-color: rgb(62 72 140 / 7%);
}

thead tr {
	background-color: #b39aed;
	text-transform: uppercase;
	color: #ffffff;
}

/* Select2 */
.select2-container .select2-selection--single {
	height: 38.4px !important;
}

.select2-selection__rendered {
	line-height: 25.4px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
	padding-top: 6px !important;
	padding-bottom: 6px !important;
}

/* Datepicker */
.datepicker .datepicker-switch, .datepicker .dow {
	font-weight: bold !important;
}

.datepicker table tbody tr td.day.active {
	background: #3e488c !important;
	color: white !important;
}

.datepicker table tr td, .datepicker table tr th {
	text-align: center;
	width: 30px;
	height: 30px;
	border-radius: 4px;
	border: none;
}

.datepicker table thead tr {
	background-color: #ffffff;
	text-transform: uppercase;
	color: #2a3477;
}

.datepicker table thead tr th.dow:hover {
	color: inherit;
	cursor: default;
}

.datepicker .datepicker-switch:hover, .datepicker .prev:hover, .datepicker .next:hover {
	background: #3e488c;
	color: #ffffff !important;
}

/* Body Sign Custom */
.body-sign-custom {
	display: table;
	height: 100vh;
	max-width: 500px;
	padding: 0 40px;
	width: 100%;
	margin: 0 auto;
	background-color: #f5f5f5;
}

.body-sign-custom .center-sign {
	display: table-cell;
	padding-top: 0;
	vertical-align: middle;
}

/* Profile Dashboard */
.profile-dashboard .nav-tabs {
	border: 0;
	padding: 0;
	margin: 0;
}

.profile-dashboard .nav-tabs .nav-link {
	padding: 8px;
	font-size: 0.800rem;
	border: 0;
}

.profile-dashboard .nav-tabs .nav-link:not(.active) {
	background: none;
	border: 0;
	color: #ffff;
}

.profile-dashboard .nav-tabs .nav-link.active, .profile-dashboard .nav-tabs .nav-link:not(.active):hover {
	background-color: #000000;
	color: #fff;
}

.profile-dashboard .nav-tabs .nav-link.active:hover {
	color: #fff;
	border: 0;
}

.profile-dashboard .tab-content {
	background-color: #00000022;
	border: 0;
	border-radius: 4px;
}

/* Modal */
.modal-header h5.modal-title {
	font-size: 1.25em;
	font-weight: 500;
	margin-top: 0px;
}

.modal-header.modal-grey {
	background: rgb(79,66,158);
	background: -moz-linear-gradient(50deg, rgba(79,66,158,1) 14%, rgba(83,147,242,1) 93%);
	background: -webkit-linear-gradient(50deg, rgba(79,66,158,1) 14%, rgba(83,147,242,1) 93%);
	background: linear-gradient(50deg, rgba(79,66,158,1) 14%, rgba(83,147,242,1) 93%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#5393f2",GradientType=1);
}

.modal-header.modal-grey h5.modal-title {
	color: #ffffff;
}

.modal-header.modal-grey h5.modal-title .red {
	color: #ff5252;
}

.modal-header.modal-grey .close {
	color: #ffffff;
	opacity: 1;
}

/* Pagination */
.pagination {
	-ms-flex-pack: center !important;
	justify-content: center !important;
}

/* Accordion */
.accord-btn {
	color: #273856 !important;
}

.accord-btn:focus, .accord-btn:active {
	outline: none !important;
}

.accord-btn:hover {
	color: #3498db !important;
}

.accord-btn:not(.collapsed) {
	color: #3498db !important;
}

.accord-title:not(:first-child) {
	margin-top: 40px;
}

/* Shadow */
.shadow {
	-webkit-box-shadow: 0 1px 5px rgb(0 0 0 / 10%);
	box-shadow: 0 1px 5px rgb(0 0 0 / 10%);
}

/* Content Body Container - Centralizar e alinhar com navbar */
.content-body.container {
	display: block !important;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	width: 100%;
	padding-left: 15px;
	padding-right: 15px;
}

/* Garantir que o container tenha o mesmo padding horizontal da navbar */
@media (min-width: 576px) {
	.content-body.container {
		max-width: 540px;
	}
}

@media (min-width: 768px) {
	.content-body.container {
		max-width: 720px;
	}
}

@media (min-width: 992px) {
	.content-body.container {
		max-width: 960px;
	}
}

@media (min-width: 1200px) {
	.content-body.container {
		max-width: 1140px;
	}
}

/* Bordas arredondadas em todas as telas de login/cadastro (body-sign-custom) */
.body-sign-custom .form-control,
.body-sign-custom input.form-control,
.body-sign-custom select.form-control {
	border-radius: 500px;
}

/* Fix para bordas arredondadas dos inputs de login */
/* Garantir que as bordas direitas sejam mantidas mesmo quando há um addon depois do input */
.input-group-icon input.form-control,
.input-group-icon input.form-control.form-control-lg,
.input-group-icon .form-control:not(:last-child) {
	border-top-right-radius: 500px !important;
	border-bottom-right-radius: 500px !important;
}

/* Alinhar ícones verticalmente ao centro dos campos */
.input-group-icon .input-group-addon span.icon,
.input-group-icon .input-group-addon span.icon.icon-lg {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* Permitir clique no ícone de mostrar/ocultar senha (o tema usa pointer-events: none nos ícones) */
.input-group-icon .input-group-addon span.icon.toggle-password {
	pointer-events: auto;
	cursor: pointer;
}

/* Fix para campos preenchidos não ficarem cinza */
/* Garantir que o texto dos campos preenchidos fique preto */
input.form-control:-webkit-autofill,
input.form-control:-webkit-autofill:hover,
input.form-control:-webkit-autofill:focus,
input.form-control:-webkit-autofill:active,
input[type="text"]:-webkit-autofill,
input[type="text"]:-webkit-autofill:hover,
input[type="text"]:-webkit-autofill:focus,
input[type="text"]:-webkit-autofill:active,
input[type="email"]:-webkit-autofill,
input[type="email"]:-webkit-autofill:hover,
input[type="email"]:-webkit-autofill:focus,
input[type="email"]:-webkit-autofill:active,
input[type="tel"]:-webkit-autofill,
input[type="tel"]:-webkit-autofill:hover,
input[type="tel"]:-webkit-autofill:focus,
input[type="tel"]:-webkit-autofill:active,
input[type="date"]:-webkit-autofill,
input[type="date"]:-webkit-autofill:hover,
input[type="date"]:-webkit-autofill:focus,
input[type="date"]:-webkit-autofill:active,
input[type="password"]:-webkit-autofill,
input[type="password"]:-webkit-autofill:hover,
input[type="password"]:-webkit-autofill:focus,
input[type="password"]:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
	-webkit-text-fill-color: #000000 !important;
	color: #000000 !important;
	-webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
	box-shadow: 0 0 0px 1000px #ffffff inset !important;
	transition: background-color 5000s ease-in-out 0s;
}

/* Garantir que campos preenchidos manualmente também fiquem com texto preto */
input.form-control:not(:placeholder-shown),
input[type="text"]:not(:placeholder-shown),
input[type="email"]:not(:placeholder-shown),
input[type="tel"]:not(:placeholder-shown),
input[type="date"]:not(:placeholder-shown),
input[type="password"]:not(:placeholder-shown) {
	color: #000000 !important;
}

/* Garantir que selects preenchidos também fiquem com texto preto */
select.form-control:not([value=""]),
select:not([value=""]) {
	color: #000000 !important;
}

/* Fix específico para campos do login dentro de input-group-icon */
.input-group-icon input.form-control:-webkit-autofill,
.input-group-icon input.form-control:-webkit-autofill:hover,
.input-group-icon input.form-control:-webkit-autofill:focus,
.input-group-icon input.form-control:-webkit-autofill:active,
.input-group-icon input.form-control-lg:-webkit-autofill,
.input-group-icon input.form-control-lg:-webkit-autofill:hover,
.input-group-icon input.form-control-lg:-webkit-autofill:focus,
.input-group-icon input.form-control-lg:-webkit-autofill:active {
	-webkit-text-fill-color: #000000 !important;
	color: #000000 !important;
	-webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
	box-shadow: 0 0 0px 1000px #ffffff inset !important;
	transition: background-color 5000s ease-in-out 0s;
}

/* Garantir que campos do login preenchidos manualmente também fiquem com texto preto */
.input-group-icon input.form-control:not(:placeholder-shown),
.input-group-icon input.form-control-lg:not(:placeholder-shown),
.input-group-icon input[type="text"]:not(:placeholder-shown),
.input-group-icon input[type="email"]:not(:placeholder-shown),
.input-group-icon input[type="password"]:not(:placeholder-shown) {
	color: #000000 !important;
}

/* Toastr: a lib não define font-size no corpo da mensagem (só herda do body ~13px). */
#toast-container > div {
	font-size: 14px;
	line-height: 1.4;
}
#toast-container .toast-title {
	font-size: 15px;
	margin-bottom: 0.2em;
}

/* Sign screens - increase typography a bit */
.body-sign-custom .center-sign .panel form label,
.body-sign-custom .center-sign .panel form a,
.body-sign-custom .center-sign .panel form .text-center,
.body-sign-custom .center-sign .panel form .text-muted,
.body-sign-custom .center-sign .panel form .alert,
.body-sign-custom .center-sign .panel form .checkbox-custom label {
	font-size: 0.95rem;
	line-height: 1.4;
}

.body-sign-custom .center-sign > p.text-muted {
	font-size: 0.95rem;
}