/*!
    
=========================================================
* WebEngine CMS
* https://webenginecms.org/
=========================================================

* Author Lautaro Angelico (https://lautaroangelico.com/)
* Copyright (c) 2013-2020 Lautaro Angelico, All Rights Reserved

* Licensed under the MIT license
* http://opensource.org/licenses/MIT

=========================================================
*/


/* =====================================================
   BOOTSTRAP / GENERAL OVERRIDES
===================================================== */

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
	border-top: none !important;
}

a:focus,
a:hover {
	color: inherit !important;
	text-decoration: none !important;
}


/* =====================================================
   FORM CONTROLS
===================================================== */

.form-control {
	background: #fafafa;
	border: 1px solid #e3e3e3;
	color: #666;
}

.form-control:focus {
	border: 1px solid #ccc;
}


/* =====================================================
   HELPERS
===================================================== */

.nopadding {
	padding: 0 !important;
	margin: 0 !important;
}

.vcenter {
	display: inline-block;
	vertical-align: middle;
	float: none;
}


/* =====================================================
   THUMBNAILS
===================================================== */

.thumbnail {
	background-color: #f1f1f1;
	border: 1px solid #e3e3e3;
}

a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
	border-color: #ff0000;
}


/* =====================================================
   PRIMARY BUTTONS
===================================================== */

.btn-primary {
	color: #ff0000;
	background-color: transparent;
	border-color: #ff0000;

	-moz-transition: all .1s ease-in;
	-o-transition: all .1s ease-in;
	-webkit-transition: all .1s ease-in;
	transition: all .1s ease-in;

	-moz-border-radius: 0;
	border-radius: 0;
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
	color: #fff !important;
	background-color: #ff0000 !important;
	border-color: #ff0000 !important;
}


/* =====================================================
   USER CP SIDEBAR
   Icono izquierda + texto derecha
===================================================== */

.panel-usercp .panel-body {
	padding: 10px 14px;
}

.panel-usercp ul {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}

/*
 * El LI completo es una fila.
 * Esto funciona aunque templateBuildUsercp()
 * genere el icono y el texto en enlaces separados.
 */
.panel-usercp ul li {
	display: flex !important;
	align-items: center !important;

	width: 100% !important;
	min-height: 44px;

	margin: 0 !important;
	padding: 5px 0 !important;

	line-height: normal !important;
}

/* Eliminar cualquier salto de línea generado por el PHP */
.panel-usercp ul li > br,
.panel-usercp ul li a br {
	display: none !important;
}

/* Enlaces dentro de cada opción */
.panel-usercp ul li a {
	display: inline-flex !important;
	align-items: center !important;

	width: auto !important;
	min-height: 0 !important;

	margin: 0 !important;
	padding: 0 !important;

	color: #444 !important;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.2 !important;

	white-space: nowrap;
}

/* Iconos */
.panel-usercp ul li img {
	display: block !important;

	width: 34px !important;
	height: 34px !important;
	max-width: 34px !important;

	object-fit: contain;

	position: static !important;
	top: auto !important;

	padding: 0 !important;
	margin: 0 10px 0 0 !important;

	flex: 0 0 34px;
}

/* Hover */
.panel-usercp ul li:hover a,
.panel-usercp ul li a:hover {
	color: #ff0000 !important;
}

/* =====================================================
   USER CP PRINCIPAL
   /usercp/
===================================================== */

.usercp-main-grid {
	margin-top: 30px;
	margin-bottom: 30px;
}

.usercp-main-item {
	margin-bottom: 24px;
}

.usercp-main-item a {
	display: block;

	color: #444 !important;
	font-weight: bold;

	padding: 10px 5px;

	border-radius: 4px;

	transition:
		background .2s ease,
		color .2s ease;
}

.usercp-main-item a:hover {
	background: #f5f5f5;
	color: #ff0000 !important;
}

.usercp-main-icon {
	display: block;

	width: 64px;
	height: 64px;

	object-fit: contain;

	margin: 0 auto 8px auto;

	transition:
		transform .2s ease,
		filter .2s ease;
}

.usercp-main-item a:hover .usercp-main-icon {
	transform: scale(1.08);
	filter: brightness(1.15);
}

.usercp-main-title {
	display: block;
	line-height: 1.3;
}