.th-inner{
	padding: 0px !important;
}
.filter-control input, .filter-control select{
	padding: 0px !important;
	text-align: center;
}
.bootstrap-table .fixed-table-container .table td, .bootstrap-table .fixed-table-container .table th{
	padding: 0px !important;
}
/* Header superior y preferencias de usuario */
.topbar {
	position: sticky;
	top: .75rem;
	z-index: 30;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: .6rem;
	padding: .4rem .55rem;
	box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .04);
}
body.theme-dark .topbar {
	background: #1e1e2d;
	border-color: #2b2b40;
}
.topbar .btn-light {
	background: #f4f6f9;
	border-color: #e9ecef;
}
body.theme-dark .topbar .btn-light {
	background: #2b2b40;
	border-color: #3a3a55;
	color: #e9ecef;
}
.avatar-sm {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #435ebe;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: .85rem;
}
.topbar .dropdown-menu { min-width: 220px; }
body.menu-oculto #sidebar { display: none !important; }
body.menu-oculto #main { margin-left: 0 !important; }

/* ===== Select2 integrado con el tema ===== */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
	height: calc(1.5em + .75rem + 2px);
	padding: .375rem .75rem;
	border: 1px solid #dce7f1;
	border-radius: .25rem;
	background-color: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 1.5;
	padding-left: 0;
	padding-right: 1.5rem;
	color: #25396f;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: calc(1.5em + .75rem);
	top: 0;
	right: .25rem;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #6c757d; }
.select2-container--default .select2-selection--single .select2-selection__clear { margin-right: 1.25rem; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
	border-color: #435ebe;
	box-shadow: 0 0 0 .25rem rgba(67, 92, 190, .25);
}
.select2-dropdown { border-color: #dce7f1; }
.select2-container--default .select2-search--dropdown .select2-search__field {
	border: 1px solid #dce7f1;
	border-radius: .25rem;
	padding: .375rem .5rem;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background-color: #435ebe; }


/* Barra de herramientas unificada: buscador junto a refrescar/columnas/exportar */
.fixed-table-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
}
.fixed-table-toolbar .bs-bars {
	flex: 0 1 auto;
	margin: 0;
}
.fixed-table-toolbar .fe-table-actions {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-left: auto;
}
.fixed-table-toolbar .fe-table-actions .search {
	margin: 0;
}
.fixed-table-toolbar .fe-table-actions .search .input-group {
	width: 250px;
}
.fixed-table-toolbar .fe-table-actions .columns {
	margin: 0;
}
.fixed-table-toolbar .filter-control .form-control,
.fixed-table-toolbar .filter-control .form-select {
	font-size: .78rem;
}
@media (max-width: 767.98px) {
	.fixed-table-toolbar .fe-table-actions {
		width: 100%;
		justify-content: flex-end;
	}
	.fixed-table-toolbar .fe-table-actions .search .input-group {
		width: 180px;
	}
}

/* ===== Tablas: alto de ventana y scroll interno ===== */
.bootstrap-table .fixed-table-container .fixed-table-body {
	max-height: calc(100vh - 300px);
	overflow-y: auto;
	overflow-x: auto;
	scrollbar-gutter: stable;
}
.bootstrap-table .fixed-table-container .fixed-table-body::-webkit-scrollbar {
	width: 9px;
	height: 9px;
}
.bootstrap-table .fixed-table-container .fixed-table-body::-webkit-scrollbar-thumb {
	background: #c3cfdd;
	border-radius: 8px;
}
.table-responsive {
	max-height: calc(100vh - 300px);
	overflow-y: auto;
	overflow-x: auto;
}
@media (max-width: 767.98px) {
	.bootstrap-table .fixed-table-container .fixed-table-body,
	.table-responsive {
		max-height: calc(100vh - 255px);
	}
}

/* Encabezado fijo dentro del cuerpo con scroll de Bootstrap Table */
.bootstrap-table .fixed-table-container .fixed-table-body table {
	border-collapse: separate;
	border-spacing: 0;
}
.bootstrap-table .fixed-table-container .fixed-table-body thead {
	position: sticky;
	top: 0;
	z-index: 11;
	background: #ffffff;
}
.bootstrap-table .fixed-table-container .fixed-table-body thead th {
	position: sticky;
	top: 0;
	z-index: 12;
	background: #ffffff !important;
	box-shadow: inset 0 -1px 0 #dee2e6;
}
body.theme-dark .bootstrap-table .fixed-table-container .fixed-table-body thead th {
	background: #1e1e2d !important;
	box-shadow: inset 0 -1px 0 #35354f;
}
.bootstrap-table .fixed-table-container .fixed-table-body thead th .filter-control input,
.bootstrap-table .fixed-table-container .fixed-table-body thead th .filter-control select {
	background: inherit;
}

.bootstrap-table.fe-has-fixed-header .fixed-table-body thead {
	display: none !important;
}
