.tooltip {position:fixed !important;min-width:100px;}
/* ------------------ BOOTSTRAP GLOBAL CHANGES ------------------ */

/* A BIT MORE COMPACT LAYOUT */

body {font-size:14px;}
.row {margin-right:-5px;margin-left:-5px;}
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {	padding-right:5px;padding-left:5px;}
.form-group {margin-bottom:5px;}
.form-horizontal .form-group {margin-right: -5px;margin-left: -5px;}
.table-condensed td, .table-condensed th {line-height:1 !important; padding:4px 5px 4px 10px !important;min-width:20px;}
.table-condensed td.td-icon {text-align:center; font-size:1.2em; padding:3px 5px !important;}
.table-condensed td input, .table-condensed th input{margin:0 !important;}
.btn {line-height:1;}
.btn-toolbar .btn {margin-left:5px;margin-right:0;}
.alert {margin-bottom:10px;}
.modal-header {padding: 5px 10px;}
.modal-header h4 {margin:3px;}
.modal-body {padding:10px 25px 0 25px;}
.modal-body section.content {min-height:100px;}

/* ------------------ MAIN INTERFACE BLOCKS ------------------ */

/* main areas */
.content-wrapper, .main-footer { border-left: 1px solid #d2d6de;}
.content {padding:5px 10px 5px 10px;}

/* topbar */
a.mobile_logo {	display:none;}
.navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a > h4 {margin-left: 0;}
@media (max-width: 767px) {
	a.logo {display:none !important;}
	a.mobile_logo {display:block; float:left;}
	}
.navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a > p {
	margin-left: 0;
	white-space:normal;
	}
.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a {
	margin-left: 0;
	white-space:normal;
	text-overflow:inherit !important;
	}
.main-header .saving {		/* saving message */
		float: left;
		padding:15px;
	}

.saving {		
	float: left;
	padding:15px;
	color:var(--alternate1);
	}
.browsing {
	float: left;
	padding:4px 0;
	height:32px;
	margin:8px 0 0 10px;
	background-color:var(--alternate1);
	border:2px solid var(--alternate1);
	}
	.browsing a {padding:5px 8px; margin:0; background-color:var(--secondary);color:var(--alternate1);}
	.browsing span {padding:0 14px; -color:var(--secondary);}
	

/* right sidebar */
.control-sidebar-bg {
	overflow-y:scroll;
	box-shadow: 10px 10px 8px 10px #888888;
	opacity:0.98;
	}
	.control-sidebar-25 {width:25%; right:-25%;}
	.control-sidebar-50 {width:50%; right:-50%;}
	.control-sidebar-75 {width:75%; right:-75%;}
	@media (max-width: 767px) {
		.control-sidebar-bg {
			padding:60px 30px;
			width:80%;
			right:-80%;
			}
		}
.control-sidebar-title {
	background:var(--clear);
	min-height:50px;
	max-height:50px;
	padding:10px;
	}
	.control-sidebar-title h4 {
	margin:5px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow:ellipsis;
	}
.control-sidebar-content {			/* scrollable */
	height: calc(100% - 50px);
    overflow-y: auto;
	padding:50px 0;
	}
	.control-sidebar-content > section.content {padding:25px 15px;}
	.control-sidebar-content > section.content > ul.nav-tabs {margin-left:-15px; margin-right:-15px;}
.control-sidebar-bg {z-index:1040;padding:0;border-left:1px solid var(--alternate1)}
.modal-open {overflow:hidden;}
.control-sidebar-open {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width:100%;
	z-index: 1035;
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
	outline: 0;
	background:rgba(0,0,0,0.3);
	opacity:1;
	padding-top:0;
	}
	
/* left (main) sidebar */
.sidebar-collapse li.treeview ul.treeview-menu {
	margin-top:-44px;
	padding:0 !important;
	width:200px !important;
	background-color:var(--secondary) !important;
	}
.sidebar-collapse li.treeview > a {height:44px !important;}
.sidebar-collapse ul.treeview-menu li {width:200px;}
.sidebar-collapse .treeview-menu a {color:var(--alternate2) !important;}
.sidebar-collapse .treeview-menu li:hover{background-color:var(--main) !important;}
.sidebar-collapse .treeview-menu li:hover i{color:var(--alternate2) !important;}
.sidebar-mini.sidebar-collapse .sidebar-menu > li > .treeview-menu {
	border-left-width:1px;
	border-left-style:solid;
  }																								
.sidebar-form {
	border-radius: 3px;
	border: 1px solid #d2d6de;
	margin: 10px 10px;
	}
.sidebar-form input[type="text"],.sidebar-form .btn {
	box-shadow: none;
	background-color: #fff;
	border: 1px solid transparent;
	height: 35px;
	}
.sidebar-form input[type="text"]:focus,.sidebar-form input[type="text"]:focus + .input-group-btn .btn {
	background-color: #fff;
	color:var(--inputtext);
	}
.sidebar-form input[type="text"]:focus + .input-group-btn .btn {border-left-color: #fff;}
.sidebar-form button.btn {
	 color: #999 !important;
	 background:white !important;
	}
.sidebar-menu {margin-top:15px;}
.sidebar-menu > li > a {
	border-left: 3px solid transparent;
	font-weight: 600;
	}
.sidebar-menu li a {
	display:block;
	overflow:hidden;
	white-space:nowrap;
	text-overflow: ellipsis;
	}
.sidebar-menu > li.active > a {font-weight:600;}
.sidebar-menu > li > .treeview-menu {
	padding-top:5px;
	padding-bottom:15px;
	box-shadow: inset 0 -7px 9px -7px rgba(0,0,0,0.4);
	}
.sidebar-menu .treeview-menu > li > a {padding:8px 25px 8px 15px;}
.sidebar-menu .treeview-menu > li > ul > li > a {padding:6px 25px 6px 15px;}
.sidebar-menu .treeview-menu i { font-size:0.8em;}
.sidebar-menu .treeview-menu > li > ul > li > ul > li a{
	padding-top:0;
	padding-bottom:0;
	}
.sidebar a:hover { text-decoration: none;}
.treeview-menu > li.active > a {font-weight: 600;}

/* ------------------  COMPONENTS ---------------------------- */

/* icons */
.field-icon { /* options embedded into input fields */
	float: right;
	margin-right: 10px;
	margin-top: -25px;
	position: relative;
	z-index: 2;
	font-size:1.2em;
	opacity:0.8;
	cursor:pointer;
  }

/* tables */
.table-button {width:40px;}
.table-responsive {border:none;padding-left:5px;padding-right:5px;}
.table-condensed, table.dataTable {	margin-top:15px !important;}
.table-hasfilters  table.table {margin-top:0 !important;}
.table-fields-data {margin-top:0 !important;margin-bottom:10px;} /* table for non-editable fields data */
.table-fields-data tr td:first-child {font-weight:bold;text-align:right;}
@media (max-width:767px){.table-fields-data tr td {width:50%;}}
.table td, .table-condensed td {vertical-align:top;}

.pagination { margin: 0 } /* pagination under tables */
.pagination-sm>li>a, .pagination-sm>li>span {
    padding: 3px 6px;
    font-size: 12px;
    line-height: 1.2;
	}
.table-bottom-options {
	float:right;
	margin-top:15px;
	}
table.table-double > thead > tr:first-child > th:first-child {
	background-color:
	var(--main);
	color:white;
	text-transform:uppercase;
	text-align:center;
	max-width:300px;
	}
.table-counter { /* table registry counter */
	display: inline-block;
	padding: 1px 10px;
	margin-bottom: 0;
	font-size: 14px;
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	margin-right:5px;
	background-color:white;
	}
	.table-counter select {
		background:transparent;
		border:none;
		padding-left:0;
		}
.table-quickfilter {display: inline-block;padding-top:1px;}
	.table-quickfilter input {height:25px;padding-bottom:8px;}

.table-pagination { /* pagination over tables */
	display: inline-block;
	padding: 1px 2px 1px 0;
	margin-bottom: 0;
	font-size: 14px;
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	margin-right:5px;
	background-color:white;
	}
	.table-pagination select {
				border:none !important;
				background:white;
				text-align-last:center;
		}

/* buttons */
.btn-group  button .caret {margin-left:5px;}
.btn {
	margin-right:5px;
	text-transform:uppercase;
	}
.btn-group > .btn {
	border-bottom-right-radius:4px ;
	border-top-right-radius:4px ;
	}
.btn-switch > .btn:not(:last-child) {
	margin-right:0;
	border-bottom-right-radius:0 ;
	border-top-right-radius:0 ;
	}
.btn-switch > .btn[disabled] {
	opacity:1;
	cursor:default;
	}
	button.switch1 {background-color:blue !important;color:white !important;}
	button.switch2 {background-color:green !important;color:white !important;}
	button.switch3 {background-color:red !important;color:white !important;}
	button.switch4 {background-color:white !important;color:#555 !important; border:1px solid #555;}

.dropdown-menu {box-shadow: 0 6px 12px rgba(0, 0, 0, 0.176);}

/* tabs */
.nav-tabs-custom > .nav-tabs > li > a:hover {
    background:var(--main);
	color:var(--alternate1);
	border-bottom:0;
	}
.nav-tabs-custom > .nav-tabs > li.active {border-top-color: var(--main);}
.nav-tabs-custom > .tab-content {padding:20px;}
.nav-tabs > li.pull-right > a, .nav-tabs-custom > .nav-tabs > li.pull-right a:hover  {
	background:var(--main);
	color:var(--alternate1) !important;
	border-top-left-radius:5px;
	border-top-right-radius:5px;
	margin-right:25px;
	padding:5px 10px;
	margin-top:8px;
	}
.nav-stacked li a {padding-left:0;}
.nav-stacked li a i {
	font-size:18px;
	margin-right:10px;
	}

/* labels (as classes for tags or similar, not for <label> */
.label	{font-weight:normal;text-transform:uppercase;}
.alert  {padding:5px 10px !important;}
.alert-static {background-color:var(--dark);color:var(--alternate1);}
.alert-static .pull-right {margin-right:-12px;}
	.alert-static span.pull-right a {
		background-color:var(--main);
		border-top-right-radius:4px;
		border-top-left-radius:0;
		border-bottom-left-radius:0px;
		border-bottom-right-radius:4px;
		padding:7px 10px;
		color:var(--alternate1);
		border-left:1px solid var(--alternate1)
		}
		.alert-static span.pull-right a:hover, .alert-static span.pull-right a:hover i {
				background-color:var(--links);
				color:var(--alternate1) !important;
			}
.alert-dismissable, .alert-dismissible { padding-right: 35px !important;}
a label {cursor:pointer !important;}

/* ---------------------------- FORMS ---------------------------- */

.input-group .input-group-addon {border-color:transparent;padding:6px 2px;}

.datepicker {padding:6px 12px; border-radius:0;}

.has-error .form-control {
    background: #eec8c8 none repeat scroll 0 0;
}
.radio {
	margin-top:0;
	}
.options-grid {
	background-color:#eee;
	padding:10px 20px;
	line-height:25px;
	border-radius:5px;
	margin-top:10px;
	}
.dropzone {
	border:2px dotted var(--secondarytext);
	background-color:var(--clear);
	}
	.dropzone .dz-message {
		font-size:2em;
		font-weight:bold;
		color:var(--secondarytext);
		margin:1em;
	}

/* 100-LISTING */

.listado-100 {
	line-height:14px;
}
.listado-100 label {
    width:100%;
    font-weight: normal;
	margin-bottom:0;
	padding:2px;
	}
.listado-100 label input {
	margin-right: 2px;
	}


/* extra-compact forms */
.form-compact .form-group {margin-bottom:3px;}
.form-compact input.form-control, .form-compact select:not([multiple]) {
    width: 100%;
    height: 25px;
    padding: 2px 4px;
    font-size: 14px;
    line-height: 1.3;
    color: #555;
	border-radius: 2px;
	}
	.form-compact select
.form-compact input[type=checkbox], .form-compact input[type=radio] {margin: 0;}
.form-compact .input-group-addon {padding: 2px 4px;border-radius: 2px;}
.form-compact label {font-size:0.9em;}
.form-compact .form-group {
    margin-right: -5px !important;
    margin-left: -5px !important;
	}

.form-footer {margin:15px 0;}
.form-footer button.pull-right {margin-right:10px;}

.modal .content {padding-bottom:0;}

.modal .form-footer {
	margin: 15px -30px 0 -30px;
	background: var(--clear);
	padding: 15px 20px;
	width: 107.1%;
	}
	@media (max-width:990px) {.modal .form-footer {background:transparent;}}

.modal .form-footer button.pull-right {margin-right:0;}

/* ---------------------------- BOXES ---------------------------- */

div.small-box {background-color:var(--secondary) !important;}
.box {
    border:1px solid #eee;
	box-shadow: 3px 3px 6px  rgba(0, 0, 0, 0.1);
	margin-bottom:5px;
	}
.box-header {
	padding:7px 10px;
	text-transform:uppercase;
	}
.box-header.bg-gray {
	background-color:var(--back1) !important;
	border-bottom:1px solid #ddd;
	}
.box-footer.bg-gray {
	background-color:var(--back1) !important;
	border-top:1px solid #ddd;
	}
.collapsed-box .box-header.bg-gray {border-bottom:none;}
.box-header.bg-red a {color:white;}
.box-title {font-size:16px !important;}
.box-body {padding:15px;}
.box-commands {
	padding:5px;
	border-bottom: 2px dotted #ddd;
	}
.box-commands button {
	text-transform:uppercase;
	width:16%;
	}
.box-footer:not(:last-child) {border-top:1px dotted #ddd !important;}

/* ----------------------- PAGE CONTENT HEADER------------------------------- */

.content-header .box {margin-bottom:5px;}
.content-header .page-name {margin-bottom:10px;}
.content-header .page-button {text-align:right;}
	@media (max-width:990px) {.content-header .page-button {text-align:left;}}

.content-header .fake-textarea {margin-bottom:10px;}
.content-header h1 {
	text-transform:uppercase;
	font-size:24px;
	font-weight:500;
	margin:0;
	line-height:1em;
	}
.content-header h2 {
	font-size:22px;
	font-weight:300;
	margin:5px 0 0 0;
	line-height:1em;
	}
.content-header .btn-global  {
	font-size:30px;
	padding:0;
	background:transparent !important;
	}
	.content-header .btn-global i {color:var(--main) !important;}
	.content-header .btn-global:hover {
		color:var(--secondary) !important;
		background:transparent !important;
		}
.content-header .tags {margin-bottom:10px;}
.content-header .quicklinks a {
	padding:0 10px;
	border-right:1px solid #ddd;
	}
 	.content-header.quicklinks a:last-child {border-right:none;}
.content-header .box .alert-danger i, .content-header .box .alert-danger a {color:white;}
@media(max-width:1199px) {
	.content-header h1 {
		font-size:20px;
		}
	}
.context-menu .box-body {text-transform:uppercase;}
.square-thumb {
	max-width:150px;
	max-height:150px;
	}

/* ----------------------- INFO and FILTER BOXES ------------------------------- */

.info-box {
    min-height: 40px;
	background: repeating-linear-gradient(
	  45deg,
	  #fafafa,
	  #fafafa 5px,
	  #ffffff 5px,
	  #ffffff 10px
	  );
	border:1px solid #eee;
	margin-bottom:0;
	}
.info-box-icon {
    height: 30px;
    width: 30px;
    font-size: 15px;
    line-height: 30px;

	}
.info-box-content {
	padding-top:15px;
	padding-bottom:15px;
	margin-left:40px;
	}
@media (max-width:767px) {
	.info-box-content {
		padding-top:35px;
		}
	}
.info-box input.form-control, .info-box .select2-container--default .select2-selection--single, .info-box select.form-control:not([multiple]) {
	width: 100%;
	height: 25px;
	padding: 2px 8px;
	font-size: 13px;
	line-height: 1em;
	}
.info-box .select2-selection__arrow {
	height: 18px;
	}
	.info-box .form-group {
		margin-bottom:0;
		}
.info-box .form-group b {
	font-size:13px !important;
	}
.info-box .form-group button {
	margin-top:17px;
	}
@media (max-width:768px) {
	.info-box span.info-box-icon {
		width:100%;
		}
	.info-box-icon {
		height: 25px;
		font-size: 15px;
		line-height: 25px;
		}
	.info-box-content {
		margin-left:0;
		}
	.info-box-content button {
		margin-bottom:10px;
		}
	}

/* ----------------------- TABLE FILTERING ------------------------------- */

.buttons-row {margin-bottom:15px !important;}
.form-inline {
    height: 25px;
    padding: 2px 8px;
    font-size: 14px;
    line-height: 1.3;
	margin-right:10px;
	border: 1px solid #ccc;
	}
.filters-row .label-sm {font-size: 14px; padding:4px 15px; margin-right:5px; line-height:30px;}
.filters-row .label-grey {background-color:#eee; color:#222;}
.filters-row b {font-size:13px;}
.filters-button {margin-top:20px;}

/* inline forms in filters*/
.form-inline {
    height: 25px;
    padding: 2px 8px;
    font-size: 14px;
    line-height: 1.3;
	margin-right:10px;
	}

.columns-header {
	width:100%;
	background:var(--secondary);
	text-align:center;
	color:var(--alternate1);
	}
.columns-fields {
	width:100%;
	}

/* ----------------------------------- SPACING---------------------------- */

.space {position:relative; display:block; width:100%;min-height:2px;}
.space5 {height:5px;}
.space10 {height:10px;}
.space15 {height:15px;}
.space20 {height:20px;}
.space25 {height:25px;}
.space30 {height:30px;}
.space50 {height:50px;}
.space100 {height:100px;}

/* ----------------------------------- IMAGE GALLERIES---------------------------- */

.gallery div.gal-image {
    height: 25vh;
    margin: 0 0 2px 0;
    padding-left: 1px;
    padding-right: 1px;
	}
.gallery a:hover .fake-img {
    /*transform: scale(1.2);*/
    border: 5px solid var(--main);
    z-index: 100;
	}
.fake-img {
    display: block;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    transition: all .1s;
	}
div.gal-image a:not(:first-child) {
	position:relative;
	float:right;
	z-index:9000;
	top:-30px;
	background:rgba(255,255,255,0.8);
	padding:5px;
	margin-left:1px;
	}

	div.gal-image a:not(:first-child):hover, a.icoFotoSelected, a.icoPdfSelected, a.icoFotoWebSelected {
		background-color:green !important;
		color:white !important;
		}


