/*

* Override Pages default styles or create your own styles here

*/

/* Helpers */
.full-width {
	width: 100%;
}
/* Form multilanguage > label - flags */
form.has-multilanguage .form-group img.flag {
	padding-left: 6px;
    position: relative;
    top: -1px;
	width: 22px;
}

/* jquery autocomplete */
ul.ui-autocomplete {
	list-style: none;
	background-color: #FFF;
	padding: 0;
	border-radius: 2px;
	border: 1px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.07);
	z-index: 999;
}

.ui-autocomplete .ui-menu-item {
	padding: 5px 10px;
	background-color: #fff;
	border-radius: 3px;
	margin: 6px;
	cursor: pointer;
}

.ui-autocomplete .ui-menu-item.ui-state-focus {
	background-color: #f0f0f0;
}

.ui-autocomplete-loading {
	background: transparent url(../pages/img/progress/spinner.gif) no-repeat right center !important;
}

/* Busqueda */
.search-column .hint-text {
	color: #333 !important;
}

/* Inputs */
input.tarifa-total, input.alt-bg {
	background-color: #FEFFD2;
}

/* Totalizacion */
#totalizacion td, #totalizacion th {
	text-align: right;
}

#totalizacion td:first-child, #totalizacion th:first-child {
	text-align: left;
}

#totalizacion .top-divider td {
	cursor: default !important;
	border-top: 1px solid #606060;
}

#totalizacion .no-details td {
	cursor: default !important;
}

#totalizacion .no-details td:first-child:before {
	content: '';
	display: none;
	background: none;
}

/* Fake list header */
.fake-list-header {
	background: #fafafa;
    color: #232830;
    font: normal 12px/14px 'Montserrat', Arial;
    text-transform: uppercase;
    margin: 0;
    padding: 8px 0 7px 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* Common styles */
.no-show{
	display:none!important;
}

.no-border td{
	border: none!important;
}

.text-align-center {
	text-align: center;
}

/* Communications */
.communications div {
	padding: 10px 0;
}

.communications .separator {
	border-bottom: 1px solid #eee;
}

/* Agenda */
.agenda-item .left {
	float: left;
}

.agenda-item .right {
	padding-left: 96px;
}

/* Responsive */
@media screen and (max-width: 980px) {
	
	#totalizacion {
		width: 600px;
	}
	
	.agenda-item .left {
		float: none;	
	}
	
	.agenda-item .right {
		padding: 10px 0 0 0;
	}
}

/* Select */
select.select-no-border {
	background: transparent;
	border: 1px solid transparent;
}

/* Form control */
.form-control-inline
{
	display: inline-block;
	width: auto;
}

/* Cards */
.cards-container[data-cols="2"] {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 15px;
}

.cards-container[data-cols="2"] .card {
	margin-bottom: 45px;
}

.cards-container .card {
	margin-bottom: 15px;
}

.card-content h4 {
	font-size: var(--font-size-md);
	font-weight: 500;
	color: var(--gray);
	margin: 0 0 5px;
}

.card-content h4 a {
	color: var(--gray);
	text-decoration: none;
}

.card-content p {
	margin: 0 0 5px;
}

.card-content p:last-child {
	margin: 0;	
}

.card-content-details h4 {
	font-size: 18px;
	font-weight: 500;
	color: var(--gray);
	margin-bottom: 15px;
}

.card-content-details h5 {
	font-weight: 500;
	color: var(--gray);
	margin-bottom: 15px;
}

.card-content-details p {
	margin-bottom: 15px;
}

.card-content.with-icons {
	display: flex;
	flex-flow: row;
}

.card-content.with-icons .card-content-col:first-child {
	flex: 1;
}

.card-image {
	position: relative;
}

.card-image .card-image-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 85px;
	height: 85px;
	background: var(--pt-main-bg);
	border-radius: 50%;
	overflow: hidden;
}

.card-image img {
	max-width: 100%;
	border-radius: var(--pt-border-radius);
}

.card-image .super-label {
	position: absolute;
	top: 17px;
	left: 17px;
}

.card-image figcaption {
	position: absolute;
    width: 100%;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.card-image .card-image-hover {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-flow: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(255, 255, 255, .75);
	opacity: 0;
	transition: all .2s;
	z-index: 2;
	overflow: hidden;
	border-radius: var(--pt-border-radius);
}

.card-image:hover .card-image-hover {
	opacity: 1;
	backdrop-filter: blur(5px);
}

.card-image .card-image-hover > * {
	margin: 5px 0;
}

@media all and (max-width: 768px) {
	.cards-container[data-cols="2"] {
		grid-template-columns: repeat(1, 1fr);	
	}
}

.card.card-hero-image {
	background-color: transparent !important;
}

.card-hero-image .card-image {
    margin-bottom: 15px;
    background: var(--pt-main-bg);
    border-radius: var(--pt-border-radius);
}

.card-hero-image .card-image img {
    width: 100%;
    border: 1px solid var(--pt-main-bg);
}

.card-image img {
    max-width: 100%;
    border-radius: var(--pt-border-radius);
}

/* Plantillas */
.templates .card {
	border: none;
}

.templates-filter .container {
	display: flex;
	align-items: center;
    justify-content: center;
    max-width: 100%;
}

.templates-filter.fixed {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: #fff;
	box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
	padding: 10px 0;
	z-index: 10;
	animation: showTemplatesFilter 1s;
}

.templates-filter.fixed .container {
	display: flex;
	flex-flow: row;
	align-items: center;
}

.templates-filter .chips label {
	font-size: var(--pt-font-size-sm);
	font-weight: normal;
	padding: 5px 10px;
	background: var(--pt-main-bg);
	border-radius: var(--pt-border-radius);
	cursor: pointer;
}

.templates-filter .chips input:checked + label {
	background: var(--primary);
	color: #fff;
}

.templates-filter .chips input {
	display: none;	
}

/* Página de plantilla */
.template-nav {
	text-align: center;
	margin: 0 auto;
}

.template-nav td {
	vertical-align: middle;
}

.template-nav .center-arrow a {
	font-size: 30px;
	position: relative;
	top: 5px;
	text-decoration: none !important;
	background: transparent;
	text-shadow: none;
	margin: 0 5px;
}

.templates-navigation-bar
{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0 20px;
    height: 110px;
}

.templates-navigation-bar a:not(.btn)
{
    color: var(--gray);
    text-decoration: none !important;
}

.templates-navigation-bar .btn
{
    width: auto !important;
}

.templates-navigation-bar .nav-col-1
{
	display: flex;
	align-items: center;
}

.templates-navigation-bar .nav-col-1,
.templates-navigation-bar .nav-col-3
{
    width: 25%;
}

.templates-navigation-bar .nav-col-3
{
    text-align: right;
}

.templates-navigation-bar .nav-col-2
{
    width: 50%;
}

.templates-navigation-bar .nav-col-1 .template-switch
{
    margin-right: 10px;
    color: var(--gray-dark);
    line-height: 14px;
}

.templates-navigation-bar .nav-col-1 .template-switch i
{
    font-size: 28px;
    opacity: .5;
}

.templates-navigation-bar .nav-col-1 .template-switch.active i
{
    opacity: 1;
}

.templates-navigation-bar h1
{
    font-size: 40px;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.templates-navigation-bar h2
{
    font-size: 15px;
    font-weight: 300;
    margin: 0;
    position: relative;
    top: -5px;
}

.iframe-wrapper {
	width: 1200px;
    max-width: 80%;
    margin: 0 auto;
    height: calc(100vh - 150px);
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--pt-border-radius);
    overflow: hidden;
    box-shadow: 0 0 35px rgba(0, 0, 0, .3);
    transition: all .2s;
}

.iframe-wrapper.mobile {
	width: 425px;
	left: 50%;
	transform: translateX(-50%);
}

.iframe-wrapper .iframe-templates {
	border: none;
	margin: 0 auto;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding-bottom: 1px;
}

@media all and (max-width: 768px) {
	.templates-navigation-bar .nav-col-1
	{
		width: auto;
		text-align: left;
	}
	
	.templates-navigation-bar .nav-col-2 {
		display: none;
	}

	.templates-navigation-bar .nav-col-3
	{
		width: 50%;
		flex: 1;
	}

	.templates-navigation-bar .nav-col-3 .btn {
		width: auto;
		display: inline-block;
	}

	.template-nav {
		margin: 0;
	}
}
