/**
 * Compatibilidad markup legacy (Bootstrap 3) sobre Bootstrap 5 CDN.
 * Evita migrar todos los formularios de una sola vez.
 */

.hidden {
	display: none !important;
}

.pull-right {
	float: right !important;
}

.pull-left {
	float: left !important;
}

.text-right {
	text-align: right !important;
}

.btn-default {
	color: #333;
	background-color: #fff;
	border-color: #ccc;
}

.btn-default:hover,
.btn-default:focus {
	color: #333;
	background-color: #e6e6e6;
	border-color: #adadad;
}

.btn-xs {
	padding: 1px 5px;
	font-size: 12px;
	line-height: 1.5;
	border-radius: 3px;
}

.panel {
	margin-bottom: 20px;
	background-color: #fff;
	border: 1px solid transparent;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.panel-body {
	padding: 15px;
}

.panel-heading {
	padding: 10px 15px;
	border-bottom: 1px solid transparent;
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
}

.panel-footer {
	padding: 10px 15px;
	background-color: #f5f5f5;
	border-top: 1px solid #ddd;
	border-bottom-right-radius: 3px;
	border-bottom-left-radius: 3px;
}

.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);
}

.input-group-addon {
	padding: 6px 12px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	color: #555;
	text-align: center;
	background-color: #eee;
	border: 1px solid #ccc;
	border-radius: 4px;
}

/* BS3: solo grupos con .input-group-addon (no interferir con BS5 .input-group-text) */
.input-group:has(.input-group-addon) {
	position: relative;
	display: table;
	border-collapse: separate;
	width: 100%;
}

.input-group:has(.input-group-addon) .input-group-addon {
	display: table-cell;
	width: 1%;
	vertical-align: middle;
	white-space: nowrap;
}

.input-group:has(.input-group-addon) .form-control {
	display: table-cell;
	position: relative;
	z-index: 2;
	float: none;
	width: 100%;
	margin-bottom: 0;
}

.form-group {
	margin-bottom: 15px;
}

.checkbox {
	min-height: 20px;
	margin-bottom: 15px;
}

.checkbox label {
	font-weight: 400;
	cursor: pointer;
}

.radio-inline,
.checkbox-inline {
	position: relative;
	display: inline-block;
	padding-left: 20px;
	margin-bottom: 0;
	font-weight: 400;
	vertical-align: middle;
	cursor: pointer;
}

.thumbnail {
	display: block;
	padding: 4px;
	line-height: 1.42857143;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.thumbnail > img {
	display: block;
	max-width: 100%;
	height: auto;
}

.navbar-nav.navbar-right {
	margin-left: auto;
}

@media (min-width: 992px) {
	.navbar-nav.navbar-right {
		flex-direction: row;
	}
}
