/*
Theme Name: Synectic Theme
Theme URI: 
Description: Custom Child theme based on Viusal Composer Starter
Author: Synectic
Author URI: synectic.com
Template: visual-composer-starter
Version: 1
*/

@import url("facturas-template.css"); /* Herencia */

/*LAYOUT*/
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main, 
#facturas-template {
	flex: 1;
}

/*GRID BASE*/
.form-grid, 
.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.col-span-1  { grid-column: span 1; }
.col-span-2  { grid-column: span 2; }
.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-5  { grid-column: span 5; }
.col-span-6  { grid-column: span 6; }
.col-span-7  { grid-column: span 7; }
.col-span-8  { grid-column: span 8; }
.col-span-9  { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }
.col-span-11 { grid-column: span 11; }
.col-span-12 { grid-column: span 12; }

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  [class^="col-span-"] {
    grid-column: span 1 !important;
  }
}


/* CUSTOM FACTURAS */
#home-facturas {
	padding-bottom: 4em;
}

#home-facturas h1,
#tus-facturas h1 {
	font-size: 3.5em;
    font-weight: 700;
}

#home-facturas .custom-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 16px rgba(0,0,0,0.2);
	padding: 24px;
}

#home-facturas input {
	margin-bottom: 24px;
}

#home-facturas .action-buttons {
	margin-top: 20px;
}

#home-facturas .action-buttons input {
	font-weight: bold;
	width: 100%;
	margin-bottom: 0px;
}

#home-facturas .form-grid div:nth-child(2) {
    padding: 0 2.5em;
}

/*Tus facturas*/

#tus-facturas .inv-email-err {
    color: red;
    font-size: 14px;
}

#tus-facturas .flex-column {
    display: flex;
    flex-direction: column;
}

#tus-facturas .flex-column > * {
    width: -webkit-fill-available;
}

#invoice-summary {
	margin-top: 3em;
    background: #98a6b221;
    border: 1px solid #5b7489a3;
    border-radius: 8px;
    padding: 20px;
} 

#invoice-summary .title,
#invoice-summary .amount {
    font-size: 1.8em;
}

#invoice-summary input {
	float: right;
}

#tus-facturas input.btn,
#tus-facturas a.btn{
	border: none;
    padding: 4px 16px;
    font-weight: bold;
}

#invoice-summary input.btn[disabled] {
    background: #5b7489a3 !important;
}

#tus-facturas .invoices-table br {
	display: none !important;
}

#tus-facturas .invoices-table a.btn.inv-select {
	color: #00afb2 !important;
}

#tus-facturas .invoices-table .inv-selected a.btn.inv-select  {
    background: linear-gradient(90deg, #0059b2, #00afb2) !important; 
    color: #fff !important; 
    border-radius: 5em;
}

#tus-facturas table {
	border: none;
	border-radius: 8px;
    overflow: hidden;
}

#tus-facturas th, 
#tus-facturas td {
	border: none;
}

#tus-facturas thead {
    background: #5b7489a3;
    color: #fff;
}

#tus-facturas head {
      background-color: #333;
      color: white;
}

#tus-facturas tbody tr:nth-child(even) {
      background-color: #98a6b221;
}

#tus-facturas tbody tr:nth-child(odd) {
      background-color: #ffffff;
}

/*CANCEL REDSYS*/
.datos-redsys-ko,
.datos-redsys-ok{
    margin-top: 20vh;
}