/* ============================================================
   FVS SISTEMA - Temas - Tabara Tenis Clube - Resets
   ============================================================ */
table.dataTable tbody>tr.selected, 
table.dataTable tbody>tr>.selected {
	background-color: #CCC !important;
	color: #333 !important;
}

table.dataTable tbody>tr.selected a, 
table.dataTable tbody>tr>.selected a:hover {
	color: #333 !important;
}

.page-item.active .page-link {
	border-color: #222A60;
	background-color: #222A60;
}

.page-link, 
.page-link:hover {
	color: #222A60;
}



/* ============================================================
   FVS SISTEMA - Temas - Tabara Tenis Clube - Basico
   ============================================================ */
a {
	color: #222A60;
}
a:hover {
	color: #233982;
}

.fvss-button-padrao-1 {
	background-color: #222A60;
	color: #fff;
}
.fvss-button-padrao-1:hover {
	background-color: #233982;
	color: #fff;
}

.fvss-button-padrao-2 i,
.fvss-button i {
	color: inherit;
}

/* ============================================================
   FVS SISTEMA - Temas - Tabara Tenis Clube - Navegacao global
   ============================================================ */
.fvss-navglobal {
	background-color: #0072C0;
}

.fvss-navglobal .badge-primary {
	color: #000;
	background-color: #FFDF00;
}

@media (min-width: 992px) {
	.fvss-ng-lista {
		background-color: #0072C0;
		border-top: 1px solid;
	}
}

/* ============================================================
   FVS SISTEMA - Temas - Tabara Tenis Clube - Conteudo principal
   ============================================================ */
/*navegacao local*/
.fvss-nl-link, 
.fvss-nl-link:hover {
	color: #000;
}

.fvss-nl-titulo {
	color: #222A60;
}

/*boxes*/
.box-titulo {
	color: #222A60;
}

.box-conteudo-icone {
	color: #6c8e76;
}

/*tabs*/
.nav-tabs .nav-link {
	color: #6c8e76;
}
.nav-tabs .nav-link:hover {
	color: #597562;
}

@media (max-width: 991px) {
	.botoes-container:not(.botoes-barra) {
		background-color: #597562;
	}
}

/* ============================================================
   FVS SISTEMA - Temas - Tabara Tenis Clube - Paginas - Dashboard
   ============================================================ */
.dashboard-estats-num {
	color: #222A60;
}

/* Adicionar estas regras mais específicas */
.dataTables_wrapper table.dataTable tbody>tr.selected,
.dataTables_wrapper table.dataTable tbody>tr>.selected {
    background-color: #CCC !important;
    color: #333 !important;
}

.dataTables_wrapper table.dataTable tbody>tr.selected td,
.dataTables_wrapper table.dataTable tbody>tr>.selected td {
    border-color: #CCC !important;
}

/* Padrão aprovado: barra clássica, modal e tipografia */
.fvss-button:focus-visible,
.crm-cli-btn:focus-visible {
	outline: 2px solid #222A60 !important;
	outline-offset: 2px;
}

.fvss-button:disabled,
.fvss-button.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.fvss-button-padrao-2:hover:not(:disabled) {
	background-color: #f7f8fa;
	color: #3c4a5c;
}

.fvss-button-padrao-2.success:hover:not(:disabled) {
	background-color: #233982;
	color: #fff;
}

.botoes-barra .botoes-lista {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.botoes-barra .botoes-item {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.botoes-barra .botoes-item:has(.success) {
	order: -1;
	gap: 10px;
}

.botoes-barra .botoes-lista:has(.botoes-item:nth-child(2)) .botoes-item:has(.success)::after {
	content: "";
	width: 1px;
	height: 24px;
	background: #d5dbe3;
	margin-left: 2px;
}

.botoes-barra .botoes-item:has(#visualizar) { order: 3; }
.botoes-barra .botoes-item:has(#editar) { order: 4; }
.botoes-barra .botoes-item:has(#restaurar) { order: 4; }
.botoes-barra .botoes-item:has(#remover) { order: 5; }

.botoes-barra .botoes-item:has(#exportar),
.botoes-barra .botoes-item:has(#exportarEventos),
.botoes-barra .botoes-item:has(#lixeira),
.botoes-barra .botoes-item:has(#btnPdf) {
	order: 6;
	margin-left: auto;
}

.botoes-barra #btnPdf {
	background: transparent;
	border-color: transparent;
	color: #243044;
}

.botoes-barra .botoes-item:has(#exportar) ~ .botoes-item:has(#lixeira),
.botoes-barra .botoes-item:has(#exportarEventos) ~ .botoes-item:has(#lixeira) {
	order: 7;
	margin-left: 0;
}

.botoes-barra #remover,
.fvss-acao-destrutiva {
	background: #fff;
	border: 1px solid #f0d5da;
	color: #c4475a;
}

.botoes-barra #remover:hover:not(:disabled),
.fvss-acao-destrutiva:hover:not(:disabled) {
	background: #fdf6f7;
	color: #c4475a;
}

.botoes-barra #exportar,
.botoes-barra #exportarEventos,
.botoes-barra #lixeira,
.fvss-acao-discreta {
	background: transparent;
	border-color: transparent;
	color: #243044;
	box-shadow: none;
}

.botoes-barra #exportar:hover,
.botoes-barra #exportarEventos:hover,
.botoes-barra #lixeira:hover,
.fvss-acao-discreta:hover:not(:disabled) {
	background: #eef1f5;
	color: #243044;
}

.botoes-barra #lixeira {
	width: 40px;
	padding: 0;
}

.modal-footer {
	justify-content: flex-end;
	gap: 10px;
	background: #fff;
	border-top: 1px solid #e4e8ee;
}

.modal-footer .btn-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 14px;
	border: 1px solid #e1e5ec;
	border-radius: 8px;
	background: #fff;
	color: #3c4a5c;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
}

.modal-footer .btn-link:hover {
	background: #f7f8fa;
	color: #3c4a5c;
	text-decoration: none;
}

.nav-tabs {
	border-bottom: 1px solid #e4e8ee;
}

.nav-tabs .nav-link,
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: #66788a;
	font-weight: 500;
	text-transform: none;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
	color: #222A60;
	background: transparent;
	border-bottom-color: #222A60;
}

.dataTables_wrapper table,
table.dataTable {
	font-size: 13px;
}

.fvss-num { font-variant-numeric: tabular-nums; }
.fvss-moeda,
th.fvss-moeda,
td.fvss-moeda {
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.crm-money {
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.dataTables_info,
.dataTables_length,
.dataTables_filter,
.fvss-nl-lista {
	font-size: 12px;
}

@media (max-width: 991px) {
	.botoes-container.botoes-barra {
		position: relative;
		right: auto;
		bottom: auto;
		left: auto;
		z-index: auto;
		height: auto;
		overflow: visible;
		background: transparent;
	}

	.botoes-container.botoes-barra .botoes-item {
		flex: 0 1 auto;
		text-align: left;
	}

	.botoes-container.botoes-barra .fvss-button,
	.botoes-container.botoes-barra .fvss-button-padrao-2,
	.botoes-container.botoes-barra .fvss-button-padrao-2.success {
		width: auto;
		border-radius: 8px;
		font-size: 14px;
		font-weight: 500;
	}

	.botoes-container.botoes-barra .fvss-button i,
	.botoes-container.botoes-barra .fvss-button-padrao-2 i {
		display: inline-block;
		margin: 0;
		font-size: 16px;
		color: inherit;
	}

	.botoes-barra .botoes-item:has(#exportar),
	.botoes-barra .botoes-item:has(#exportarEventos),
	.botoes-barra .botoes-item:has(#lixeira),
	.botoes-barra .botoes-item:has(#btnPdf) {
		margin-left: 0;
	}

	input.fvss-input,
	textarea.fvss-textarea,
	select.fvss-select,
	.form-control,
	input[type="text"],
	input[type="email"],
	input[type="password"],
	input[type="search"],
	input[type="tel"],
	input[type="number"],
	input[type="date"],
	input[type="url"],
	select,
	textarea {
		font-size: 16px;
	}
}

[data-bs-theme=dark] .fvss-button-padrao-2 {
	background: var(--bs-body-bg);
	border-color: var(--bs-border-color);
	color: var(--bs-body-color);
}

[data-bs-theme=dark] .botoes-barra #exportar,
[data-bs-theme=dark] .botoes-barra #lixeira,
[data-bs-theme=dark] .botoes-barra #exportarEventos,
[data-bs-theme=dark] .fvss-acao-discreta {
	color: var(--bs-body-color);
}

[data-bs-theme=dark] .modal-header,
[data-bs-theme=dark] .modal-footer,
[data-bs-theme=dark] .modal-content {
	background: var(--bs-body-bg);
	color: var(--bs-body-color);
}

[data-bs-theme=dark] .modal-title,
[data-bs-theme=dark] .modal-titulo {
	color: var(--bs-body-color);
}

[data-bs-theme=dark] .modal-body {
	background: rgba(255, 255, 255, 0.03);
}