/**fuentes de modo local para firefox**/
@font-face {
	font-family: 	'gobCL';
	/*  Para el resto de navegadores */
	src: 			local('gobCL'), url('../font/gobcl_regular-webfont.ttf') format('truetype');
}

/* Custom classes for Bootstrap 5 compatibility */
.font-gob {
	font-family: 'gobCL', 'museo-sans', sans-serif !important;
}

/* Alias for userinfo -> user-info (staticv3 naming) */
.userinfo {
	margin-top: 5px;
	margin-bottom: 5px;
	padding: 0px !important;
	font-size: smaller;
}

/* Login form card override - remove default card padding/cursor */
.login-form.card {
	padding: 0 !important;
	cursor: default !important;
	box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08), 0 0 6px rgba(0, 0, 0, 0.05) !important;
}

.login-form .card-body {
	padding: 1.5rem;
}

/* Login form link styling */
.login-form a {
	color: #0063af;
	text-decoration: none;
}

.login-form a:hover {
	color: #00376E;
	text-decoration: underline;
}

.login-form .btn-link {
	color: #0063af;
	text-decoration: none;
	padding: 0;
	vertical-align: baseline;
}

.login-form .btn-link:hover {
	color: #00376E;
	text-decoration: underline;
}

/* Modal header fix - ensure title displays correctly with flexbox */
.modal-header {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1rem;
	border-bottom: 1px solid #dee2e6;
}

.modal-header .btn-close {
	margin: -0.5rem -0.5rem -0.5rem auto;
}

/* ============================================
   Alert Styling - staticv3 compatible
   ============================================ */

/* Alert icon styling - display inline with proper spacing */
.alert > .bi,
.alert > span.bi {
	font-size: 1.2rem;
	margin-right: 0.5rem;
	vertical-align: middle;
}

/* Alert paragraph styling */
.alert p {
	display: inline;
	margin-bottom: 0;
	font-family: "museo-sans", sans-serif;
}

/* Alert-success icon color */
.alert-success > .bi,
.alert-success > span.bi {
	color: #4f8a10;
}

/* Alert-danger icon color */
.alert-danger > .bi,
.alert-danger > span.bi {
	color: #842029;
}

/* Alert-warning icon color */
.alert-warning > .bi,
.alert-warning > span.bi {
	color: #664d03;
}

/* Alert-info icon color */
.alert-info > .bi,
.alert-info > span.bi {
	color: #055160;
}

/* Close button positioning in alerts */
.alert.alert-dismissible {
	padding-right: 3rem;
}

.alert.alert-dismissible .btn-close {
	position: absolute;
	top: 50%;
	right: 1rem;
	transform: translateY(-50%);
	padding: 0.5rem;
}

/* Well class for staticv3 compatibility */
.well {
	min-height: 20px;
	padding: 19px;
	margin-bottom: 20px;
	background-color: #f5f5f5;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* ============================================
   DataTables Sorting Icons - Bootstrap 5
   ============================================ */

/* Ensure sorting icons are visible and properly positioned */
table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:before,
table.dataTable thead > tr > th.sorting_desc:after,
table.dataTable thead > tr > td.sorting:before,
table.dataTable thead > tr > td.sorting:after,
table.dataTable thead > tr > td.sorting_asc:before,
table.dataTable thead > tr > td.sorting_asc:after,
table.dataTable thead > tr > td.sorting_desc:before,
table.dataTable thead > tr > td.sorting_desc:after {
	opacity: 0.3;
}

/* Active sorting icon should be fully visible */
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:before,
table.dataTable thead > tr > td.sorting_asc:after,
table.dataTable thead > tr > td.sorting_desc:before {
	opacity: 1;
}

/* Ensure sorting headers have pointer cursor */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
	cursor: pointer;
	position: relative;
}
