/*
 * Tema de SIAL (mismo lenguaje visual que Boletas Farmacos).
 * Bootstrap 3: se carga DESPUES de bootstrap, datatables y styless.css.
 * Solo cambia apariencia: no depende de ids nuevos ni cambia el comportamiento.
 */

:root {
	--sial-primary: #1f7a52;
	--sial-primary-dark: #17603f;
	--sial-primary-soft: #e7f3ec;
	--sial-teal: #2f7f8e;
	--sial-teal-soft: #e5f2f4;
	--sial-gold: #d99a1e;
	--sial-gold-soft: #fff4dc;
	--sial-red: #d64545;
	--sial-red-soft: #fdecec;
	--sial-blue: #2f6db5;
	--sial-blue-soft: #e8f0fa;
	--sial-text: #1f2d3d;
	--sial-muted: #6b7a89;
	--sial-border: #e2e7ec;
	--sial-border-soft: #eef1f4;
	--sial-page-bg: #f3f5f7;
	--sial-head-bg: #f6f8fa;
	--sial-stripe: #fafbfc;
	--sial-hover: #eef6f1;
	--sial-radius: 12px;
	--sial-radius-sm: 8px;
	--sial-shadow-sm: 0 1px 3px rgba(17, 38, 60, .06), 0 1px 2px rgba(17, 38, 60, .04);
	--sial-shadow-md: 0 8px 24px rgba(17, 38, 60, .10);
	--sial-shadow-lg: 0 20px 50px rgba(17, 38, 60, .20);
	--sial-font: "Source Sans Pro", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
	font-family: var(--sial-font);
	font-size: 14px;
	color: var(--sial-text);
	background: var(--sial-page-bg);
}

/* ================= Inicio de sesion ================= */

.sial-login-body {
	min-height: 100vh;
	overflow: auto !important;
	height: auto !important;
}

.sial-login {
	display: flex;
	min-height: 100vh;
}

.sial-login-brand {
	position: relative;
	overflow: hidden;
	display: flex;
	flex: 1 1 55%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3rem;
	background: linear-gradient(150deg, #1f7a52 0%, #17603f 55%, #0f4a30 100%);
	color: #fff;
	text-align: center;
}

.sial-login-brand-logo {
	display: none;
	height: 52px;
	width: auto;
}

.sial-login-brand::before {
	content: "";
	position: absolute;
	top: 18%;
	left: 50%;
	width: 520px;
	height: 520px;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(247, 196, 79, .22) 0%, rgba(247, 196, 79, 0) 65%);
	pointer-events: none;
}

.sial-login-brand::after {
	content: "";
	position: absolute;
	left: -10%;
	right: -10%;
	bottom: -62%;
	height: 80%;
	border-top: 3px solid rgba(160, 196, 64, .45);
	border-radius: 50%;
	pointer-events: none;
}

.sial-hero {
	position: relative;
	z-index: 1;
	width: 460px;
	max-width: 100%;
	height: 230px;
	margin-bottom: 1.5rem;
}

.sial-hero-card {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 200px;
	height: 150px;
	margin: -75px 0 0 -100px;
	padding: 16px 18px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
	color: var(--sial-text);
	text-align: left;
	overflow: hidden;
	animation: sial-flotar 6s ease-in-out infinite;
}

.sial-hero-card-left {
	rotate: -10deg;
	translate: -175px 22px;
	filter: brightness(.97);
	animation-delay: -2s;
}

.sial-hero-card-right {
	rotate: 10deg;
	translate: 175px 22px;
	filter: brightness(.97);
	animation-delay: -4s;
}

.sial-hero-card-front {
	z-index: 2;
	translate: 0 -10px;
}

.sial-hero-card-front::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 100%);
	animation: sial-brillo 5s ease-in-out infinite;
}

.sial-hero-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--sial-primary-soft);
	color: var(--sial-primary);
	font-size: 17px;
}

.sial-hero-icon-gold {
	background: var(--sial-gold-soft);
	color: var(--sial-gold);
}

.sial-hero-icon-teal {
	background: var(--sial-teal-soft);
	color: var(--sial-teal);
}

.sial-hero-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #a0c040;
}

.sial-hero-value {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--sial-teal);
}

.sial-hero-brand {
	margin-top: 4px;
	font-size: 12px;
	color: #8a96a3;
}

.sial-hero-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--sial-primary-soft);
	color: var(--sial-primary);
	font-size: 12px;
	font-weight: 600;
}

.sial-hero-bar {
	display: block;
	width: 100%;
	height: 8px;
	margin-top: 10px;
	border-radius: 999px;
	background: #eef1f4;
	overflow: hidden;
}

.sial-hero-bar > span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #a0c040, #1f7a52);
}

.sial-hero-wordmark {
	position: relative;
	z-index: 1;
	height: 92px;
	width: auto;
	margin-bottom: 1rem;
}

@keyframes sial-flotar {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@keyframes sial-brillo {
	0%, 55% { left: -60%; }
	85%, 100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
	.sial-hero-card,
	.sial-hero-card-front::after {
		animation: none;
	}
}

.sial-login-brand-title {
	position: relative;
	z-index: 1;
	margin: 0 0 .5rem;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: .04em;
}

.sial-login-brand-text {
	position: relative;
	z-index: 1;
	max-width: min(420px, 100%);
	margin: 0;
	font-size: 17px;
	opacity: .85;
}

.sial-login-brand,
.sial-login-panel {
	min-width: 0;
}

.sial-login-panel {
	display: flex;
	flex: 1 1 45%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.5rem;
}

.sial-login-card {
	width: 100%;
	max-width: 400px;
	padding: 2.25rem 2rem;
	background: #fff;
	border: 1px solid var(--sial-border);
	border-top: 4px solid var(--sial-primary);
	border-radius: var(--sial-radius);
	box-shadow: 0 10px 35px rgba(17, 38, 60, .10);
}

.sial-login-logo {
	max-width: 170px;
	height: auto;
	margin-bottom: 1.5rem;
}

.sial-login-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--sial-text);
}

.sial-login-subtitle {
	margin: 4px 0 22px;
	font-size: 14px;
	color: var(--sial-muted);
}

.sial-login-card label {
	font-size: 13px;
	font-weight: 600;
	color: var(--sial-muted);
	margin-bottom: 5px;
}

.sial-login-card .form-control,
.sial-login-card .input-group-addon,
.sial-login-card .input-group-btn > .btn {
	height: 44px;
}

.sial-login-card .input-group-addon {
	min-width: 42px;
	background: var(--sial-head-bg);
	border-color: #d7dde3;
	color: var(--sial-muted);
	border-radius: var(--sial-radius-sm) 0 0 var(--sial-radius-sm);
}

#tusuario {
	text-transform: uppercase;
}

#tusuario::placeholder {
	text-transform: none;
}

.sial-login-error {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: var(--sial-radius-sm);
	background: var(--sial-red-soft);
	color: #a12d2d;
	font-size: 13px;
}

.sial-login-submit {
	height: 46px;
	margin-top: 6px;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 6px 16px rgba(31, 122, 82, .25);
}

.sial-login-footer {
	margin: 20px 0 0;
	font-size: 12px;
	color: var(--sial-muted);
}

.sial-login-footer a {
	color: var(--sial-primary);
}

.sial-login-footer .fa {
	font-size: 15px;
	vertical-align: -1px;
}

@media (max-width: 860px) {
	.sial-login {
		flex-direction: column;
	}

	.sial-login-brand {
		flex: 0 0 auto;
		padding: 1.75rem 1.5rem;
	}

	.sial-login-illustration,
	.sial-login-brand::before,
	.sial-login-brand::after {
		display: none;
	}

	.sial-login-brand-logo {
		display: block;
		margin-bottom: .75rem;
	}

	.sial-login-brand-title {
		font-size: 22px;
	}

	.sial-login-brand-text {
		font-size: 14px;
	}

	.sial-login-card {
		padding: 1.75rem 1.4rem;
	}
}

/* ================= Barra superior ================= */

#menu.navbar {
	min-height: 56px;
	background: linear-gradient(100deg, #1f7a52 0%, #17603f 70%, #125235 100%);
	border: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

#menu .navbar-brand {
	height: 56px;
	padding: 18px 12px;
	color: #fff !important;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: .02em;
}

#menu .sial-brand-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 4px 0 12px;
}

#menu .sial-brand-logo img {
	height: 40px;
	width: auto;
}

#menu .sial-brand-logo::after {
	content: "";
	width: 1px;
	height: 26px;
	background: rgba(255, 255, 255, .3);
}

#menu #Software {
	padding-left: 14px;
}

#LinkBtnPpalVolver,
#LinkBtnPpalVolver2 {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px !important;
	margin: 9px 0 0 6px;
	padding: 0 !important;
	border-radius: 50%;
	transition: background-color .15s;
}

#LinkBtnPpalVolver:hover,
#LinkBtnPpalVolver2:hover {
	background: rgba(255, 255, 255, .15);
}

#menu .navbar-nav > li > a {
	padding-top: 18px;
	padding-bottom: 18px;
	color: #fff !important;
}

#menu .navbar-nav > li > a:hover,
#menu .navbar-nav > .open > a,
#menu .navbar-nav > .open > a:hover,
#menu .navbar-nav > .open > a:focus {
	background: rgba(255, 255, 255, .12) !important;
}

#menu .user-image {
	width: 28px;
	height: 28px;
	margin: -4px 6px 0 0;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .6);
	object-fit: cover;
}

#menu .dropdown-menu {
	min-width: 240px;
	padding: 0;
	border: 0;
	border-radius: var(--sial-radius);
	box-shadow: var(--sial-shadow-lg);
	overflow: hidden;
}

#menu .user-header {
	padding: 20px 16px 14px;
	background: var(--sial-primary-soft);
	color: var(--sial-text);
}

#menu .user-header img {
	border: 3px solid #fff;
	object-fit: cover;
	box-shadow: var(--sial-shadow-sm);
}

#menu .user-header p {
	margin: 10px 0 0;
	font-weight: 600;
}

#menu .user-header small {
	display: block;
	color: var(--sial-muted);
	font-weight: 400;
}

#menu .user-footer {
	padding: 10px 14px;
	background: #fff;
	overflow: hidden;
}

#menu .navbar-toggle {
	margin-top: 11px;
	border-color: rgba(255, 255, 255, .4);
}

#menu .navbar-toggle .icon-bar {
	background: #fff;
}

#menu .navbar-collapse {
	border-color: rgba(255, 255, 255, .15);
	box-shadow: none;
}

/* El contenido empieza debajo de la barra (era de 50px) */
#main > div {
	margin-top: 56px !important;
}

@media (max-width: 767px) {
	#menu .sial-brand-logo {
		display: none;
	}
}

/* ================= Menu de modulos (tarjetas) ================= */

.DivEscritorio {
	padding-top: 28px;
	padding-bottom: 40px;
	height: 100%;
	overflow-y: auto !important;
}

.sial-bienvenida {
	max-width: 1080px;
	margin: 0 auto 24px;
	padding: 0 15px;
	text-align: center;
}

.sial-bienvenida h1 {
	margin: 0 0 4px;
	font-size: 26px;
	font-weight: 700;
	color: var(--sial-text);
}

.sial-bienvenida p {
	margin: 0;
	font-size: 15px;
	color: var(--sial-muted);
}

.DivEscritorio .btn-lg.col-xs-12 {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 150px;
	margin-bottom: 6px;
	padding: 22px 12px 16px;
	background: #fff !important;
	border: 1px solid var(--sial-border) !important;
	border-radius: 16px;
	box-shadow: var(--sial-shadow-sm);
	color: var(--sial-text) !important;
	white-space: normal;
	text-shadow: none;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.DivEscritorio .btn-lg.col-xs-12:hover,
.DivEscritorio .btn-lg.col-xs-12:focus {
	transform: translateY(-3px);
	border-color: transparent !important;
	box-shadow: var(--sial-shadow-md);
	outline: none;
}

.DivEscritorio .btn-lg.col-xs-12:active {
	transform: translateY(-1px);
}

/* El icono va dentro de un circulo del color del modulo */
.DivEscritorio .btn-lg .BtnsMenu {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	font-size: 28px !important;
	background: var(--sial-primary-soft);
	color: var(--sial-primary);
	transition: transform .15s ease;
}

.DivEscritorio .btn-lg .BtnsMenu br {
	display: none;
}

.DivEscritorio .btn-lg:hover .BtnsMenu {
	transform: scale(1.06);
}

.DivEscritorio .btn-lg h5 {
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .05em;
	color: var(--sial-text);
}

.DivEscritorio .btn-info .BtnsMenu { background: var(--sial-teal-soft); color: var(--sial-teal); }
.DivEscritorio .btn-success .BtnsMenu { background: var(--sial-primary-soft); color: var(--sial-primary); }
.DivEscritorio .btn-primary .BtnsMenu { background: var(--sial-blue-soft); color: var(--sial-blue); }
.DivEscritorio .btn-warning .BtnsMenu { background: var(--sial-gold-soft); color: var(--sial-gold); }
.DivEscritorio .btn-danger .BtnsMenu { background: var(--sial-red-soft); color: var(--sial-red); }
.DivEscritorio .btn-default .BtnsMenu { background: #eef1f4; color: #4a5a6a; }

/* Linea de color abajo de cada tarjeta, como acento del modulo */
.DivEscritorio .btn-lg.col-xs-12::after {
	content: "";
	width: 34px;
	height: 3px;
	margin-top: 10px;
	border-radius: 999px;
	background: currentColor;
	opacity: .0;
	transition: opacity .15s, width .15s;
}

.DivEscritorio .btn-lg.col-xs-12:hover::after {
	opacity: .25;
	width: 54px;
}

#BtnSialEventos h5 b {
	font-weight: 700;
}

@media only screen and (max-width: 500px) {
	.DivEscritorio .btn-lg.col-xs-12 {
		flex-direction: row;
		justify-content: flex-start;
		min-height: 0;
		padding: 12px 16px;
		gap: 14px;
		border-radius: 14px;
	}

	.DivEscritorio .btn-lg .BtnsMenu {
		width: 46px;
		height: 46px;
		font-size: 20px !important;
	}

	.DivEscritorio .btn-lg h5 {
		margin: 0;
	}

	.DivEscritorio .btn-lg.col-xs-12::after {
		display: none;
	}

	.sial-bienvenida h1 {
		font-size: 21px;
	}
}

/* ================= Pantallas de los modulos ================= */

#DivFrame {
	background: #fff !important;
}

#PpalIframe {
	padding: 6px 14px 60px;
}

#PpalIframe h1,
#PpalIframe h2,
#PpalIframe > h3 {
	margin: 10px 0 16px;
	font-size: 24px;
	font-weight: 700;
	color: var(--sial-text);
}

#PpalIframe h1 > .glyphicon:not(.btn),
#PpalIframe h1 > .fa:not(.btn),
#PpalIframe h2 > .glyphicon:not(.btn),
#PpalIframe h2 > .fa:not(.btn) {
	color: var(--sial-primary);
	margin-right: 8px;
	font-size: .85em;
}

/* Botones dentro de los titulos (Nuevo, Actualizar...) */
#PpalIframe h1 .btn,
#PpalIframe h2 .btn,
#PpalIframe h3 .btn {
	margin-left: 6px;
	padding: 7px 13px;
	font-size: 13px;
	line-height: 1.4;
	vertical-align: middle;
	top: 0;
}

/* Algunos botones llevan la clase del icono en el propio boton: el texto va con
   la letra normal y solo el icono con la fuente de iconos */
.btn.glyphicon {
	font-family: var(--sial-font);
	font-weight: 600;
	line-height: 1.4;
	top: 0;
}

.btn.glyphicon::before {
	font-family: "Glyphicons Halflings";
	font-weight: 400;
	position: relative;
	top: 1px;
}

.btn.fa {
	font-family: var(--sial-font);
	font-weight: 600;
}

.btn.fa::before {
	font-family: FontAwesome;
	font-weight: 400;
}

#PpalIframe hr {
	border-color: var(--sial-border-soft);
}

#PpalIframe label,
#PpalIframe .control-label {
	font-weight: 600;
	color: #4a5a6a;
}

/* ---------- Paneles ---------- */

.panel {
	border-radius: var(--sial-radius);
	box-shadow: var(--sial-shadow-sm);
	border-color: var(--sial-border);
	overflow: hidden;
}

.panel-primary,
.panel-info,
.panel-success,
.panel-default {
	border-color: var(--sial-border);
}

.panel > .panel-heading,
.panel-primary > .panel-heading,
.panel-info > .panel-heading,
.panel-success > .panel-heading,
.panel-default > .panel-heading {
	padding: 12px 18px;
	background: #fff !important;
	background-image: none !important;
	border-top: 4px solid var(--sial-primary);
	border-bottom: 1px solid var(--sial-border);
	color: var(--sial-text) !important;
	font-weight: 600;
}

.panel-warning > .panel-heading { border-top-color: var(--sial-gold); }
.panel-danger > .panel-heading { border-top-color: var(--sial-red); }
.panel-info > .panel-heading { border-top-color: var(--sial-teal); }

.panel-footer {
	background: #f8f9fb;
	border-top-color: var(--sial-border);
}

/* ---------- Formularios ---------- */

.form-control {
	height: 36px;
	border-color: #d7dde3;
	border-radius: var(--sial-radius-sm);
	box-shadow: none;
	color: var(--sial-text);
}

textarea.form-control {
	height: auto;
}

.form-control:focus {
	border-color: var(--sial-primary);
	box-shadow: 0 0 0 3px rgba(31, 122, 82, .15);
}

.form-control[disabled],
.form-control[readonly] {
	background-color: #f5f7f9;
}

.input-group-addon {
	background: var(--sial-head-bg);
	border-color: #d7dde3;
	color: var(--sial-muted);
	border-radius: var(--sial-radius-sm);
}

.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

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

/* ---------- Botones ---------- */

.btn {
	border-radius: var(--sial-radius-sm);
	font-weight: 600;
	background-image: none !important;
	text-shadow: none !important;
	box-shadow: none;
	transition: background-color .15s, border-color .15s, box-shadow .15s;
}

.btn:focus,
.btn:active:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 122, 82, .2);
}

.btn-primary {
	background-color: var(--sial-primary);
	border-color: var(--sial-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
	background-color: var(--sial-primary-dark) !important;
	border-color: var(--sial-primary-dark) !important;
}

.btn-success {
	background-color: #2e9e6a;
	border-color: #2e9e6a;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
	background-color: #258557 !important;
	border-color: #258557 !important;
}

.btn-info {
	background-color: var(--sial-teal);
	border-color: var(--sial-teal);
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
	background-color: #276b78 !important;
	border-color: #276b78 !important;
}

.btn-warning {
	background-color: #e0a526;
	border-color: #e0a526;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
	background-color: #c98f16 !important;
	border-color: #c98f16 !important;
}

.btn-danger {
	background-color: var(--sial-red);
	border-color: var(--sial-red);
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
	background-color: #bb3535 !important;
	border-color: #bb3535 !important;
}

.btn-default,
.btn-secondary,
.sial-btn-outline {
	background: #fff;
	border: 1px solid #d7dde3;
	color: var(--sial-text);
}

.btn-default:hover,
.btn-secondary:hover,
.sial-btn-outline:hover {
	background: #f3f5f7;
	border-color: #c9d1d9;
}

/* Botones pequenos de las tablas (editar / eliminar) */
.table .btn,
.dataTable .btn {
	padding: 4px 9px;
	font-size: 12px;
	border-radius: 7px;
}

/* ---------- Tablas ---------- */

.table {
	margin-bottom: 0;
	color: var(--sial-text);
	font-size: 13px;
	background: #fff;
}

/* Algunas pantallas pintan el encabezado azul con un <style> propio: se unifica aqui */
.table > thead > tr,
.table > thead > tr > th,
.table > tfoot > tr,
.table > tfoot > tr > th,
table.dataTable thead tr,
table.dataTable thead th {
	background: var(--sial-head-bg) !important;
	color: #4a5a6a !important;
}

.table > thead > tr > th,
table.dataTable thead th {
	padding: 10px 10px !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
	vertical-align: middle !important;
	border-top: 0 !important;
	border-bottom: 1px solid var(--sial-border) !important;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td {
	padding: 8px 10px;
	vertical-align: middle;
	border-top: 1px solid var(--sial-border-soft);
}

/* Sin lineas verticales: tablas limpias con separadores horizontales */
.table-bordered,
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > td,
.table-bordered > tfoot > tr > th,
table[border] td,
table[border] th {
	border-left: 0 !important;
	border-right: 0 !important;
}

.table-bordered,
table[border] {
	border: 1px solid var(--sial-border) !important;
	border-radius: var(--sial-radius-sm);
}

.table-striped > tbody > tr:nth-of-type(odd) {
	background-color: var(--sial-stripe);
}

.table > tbody > tr {
	transition: background-color .12s;
}

.table-hover > tbody > tr:hover,
.table > tbody > tr:hover {
	background-color: var(--sial-hover);
}

.table > tbody > tr > td.dataTables_empty {
	padding: 28px 10px;
	color: var(--sial-muted);
	font-style: italic;
	text-align: center;
	background: #fff;
}

/* Fotos de usuario en las tablas */
.table img.img-circle {
	border-radius: 50%;
}

/* ---------- DataTables ---------- */

.dataTables_wrapper {
	padding: 4px 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info {
	color: var(--sial-muted);
	font-size: 13px;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
	height: 34px;
	margin: 0 6px;
	padding: 4px 10px;
	border: 1px solid #d7dde3;
	border-radius: var(--sial-radius-sm);
	background: #fff;
	color: var(--sial-text);
}

.dataTables_wrapper .dataTables_filter input {
	width: 220px;
	margin-right: 0;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
	outline: none;
	border-color: var(--sial-primary);
	box-shadow: 0 0 0 3px rgba(31, 122, 82, .15);
}

.dataTables_wrapper > .row:last-child,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
	margin-top: 10px;
}

.pagination > li > a,
.pagination > li > span {
	margin: 0 2px;
	border: 0;
	border-radius: var(--sial-radius-sm) !important;
	color: var(--sial-text);
}

.pagination > li > a:hover {
	background: var(--sial-hover);
	color: var(--sial-primary);
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span {
	background: var(--sial-primary);
	color: #fff;
}

.pagination > .disabled > a,
.pagination > .disabled > a:hover {
	background: transparent;
	color: #b6c0ca;
}

/* Botones de exportar (Excel) */
.dt-buttons .dt-button,
div.dt-buttons > .dt-button {
	height: 34px;
	margin-right: 6px;
	padding: 6px 14px;
	border: 1px solid #c8e2d3 !important;
	border-radius: var(--sial-radius-sm) !important;
	background: var(--sial-primary-soft) !important;
	color: var(--sial-primary) !important;
	font-weight: 600;
	font-size: 13px;
	box-shadow: none !important;
}

.dt-buttons .dt-button:hover {
	background: #d6ecdf !important;
}

/* ---------- Modales ---------- */

.modal-backdrop.in {
	opacity: .45;
}

.modal-content {
	border: 0;
	border-radius: var(--sial-radius);
	box-shadow: var(--sial-shadow-lg);
	overflow: hidden;
}

/* Los modales usan modal-content + panel-xxx: el color va en el borde superior y el icono */
.modal-content > .modal-header,
.modal-content.panel-primary > .modal-header,
.modal-content.panel-success > .modal-header,
.modal-content.panel-info > .modal-header,
.modal-content.panel-warning > .modal-header,
.modal-content.panel-danger > .modal-header {
	display: flex;
	align-items: center;
	padding: 14px 22px;
	background: #fff !important;
	background-image: none !important;
	border-top: 4px solid var(--sial-primary);
	border-bottom: 1px solid var(--sial-border);
	color: var(--sial-text) !important;
}

.modal-content.panel-info > .modal-header { border-top-color: var(--sial-teal); }
.modal-content.panel-warning > .modal-header { border-top-color: var(--sial-gold); }
.modal-content.panel-danger > .modal-header { border-top-color: var(--sial-red); }

.modal-title {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	font-weight: 600;
	color: var(--sial-text);
}

.modal-title > i,
.modal-title > .glyphicon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--sial-primary-soft);
	color: var(--sial-primary);
	font-size: 14px;
	top: 0;
}

.panel-info .modal-title > i { background: var(--sial-teal-soft); color: var(--sial-teal); }
.panel-warning .modal-title > i { background: var(--sial-gold-soft); color: var(--sial-gold); }
.panel-danger .modal-title > i { background: var(--sial-red-soft); color: var(--sial-red); }

.modal-header .close {
	order: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0 0 0 auto;
	border-radius: 50%;
	font-size: 22px;
	color: var(--sial-text);
	text-shadow: none;
	opacity: .5;
}

.modal-header .close:hover {
	opacity: 1;
	background: #eef1f4;
}

.modal-body {
	padding: 18px 22px;
}

.modal-footer {
	padding: 12px 22px;
	background: #f8f9fb;
	border-top: 1px solid var(--sial-border);
}

/* ---------- Mensajes (sweetalert) ---------- */

.sweet-alert {
	border-radius: var(--sial-radius) !important;
	font-family: var(--sial-font) !important;
	box-shadow: var(--sial-shadow-lg);
}

.sweet-alert h2 {
	font-size: 22px !important;
	font-weight: 700 !important;
	color: var(--sial-text) !important;
}

.sweet-alert p {
	color: var(--sial-muted) !important;
}

.sweet-alert button {
	border-radius: var(--sial-radius-sm) !important;
	font-weight: 600 !important;
}

.sweet-alert button.confirm {
	background-color: var(--sial-primary) !important;
	box-shadow: none !important;
}

/* ---------- Autocompletar (jQuery UI) ---------- */

.ui-autocomplete.ui-menu {
	padding: 4px 0;
	border: 0 !important;
	border-radius: var(--sial-radius-sm);
	box-shadow: 0 10px 30px rgba(17, 38, 60, .15);
	font-family: var(--sial-font);
	font-size: 13px;
	max-height: 340px;
	overflow-y: auto;
	overflow-x: hidden;
}

.ui-autocomplete .ui-menu-item-wrapper {
	padding: 7px 12px;
	border: 0 !important;
}

.ui-autocomplete .ui-state-active {
	margin: 0 !important;
	background: var(--sial-hover) !important;
	color: var(--sial-text) !important;
}

/* ---------- Cargando ---------- */

#loading_1 {
	background: rgba(17, 38, 60, .35) !important;
	z-index: 3000 !important;
}

#loading_1 > div {
	border-radius: var(--sial-radius) !important;
	box-shadow: var(--sial-shadow-lg);
	color: var(--sial-muted);
}
