@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,700);

@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,700italic,400italic);

a:focus {
  /*border: 2px solid #d90118;
  outline: none !important;*/
}

.limpiarMarginPadding {
  margin: 0;
  padding: 0;
}

.posicionRepeticionImg {
  background-repeat: no-repeat;
  background-position: 1px 1px;
}

.estilosLis {
  margin: 0;
  padding: 0;
  line-height: 1.34;
  margin-bottom: 12px;
}

.tituloSideBar {
  padding-top: 1em;
  padding-bottom: 1em;
}

body {
  background-position: left -10px;
}

body #estructura {
  width: 95%;
  background-image: url("../images/BolasCabecera.png");
  background-repeat: no-repeat;
  background-position: 54% 8%;
}
/* Añadido para eliminar líneas de las tablas*/
tbody{
   border:none !important;
}
#header {
  position: relative;
  overflow: auto;
}

#header #menuEspecial ul {
  background-color: transparent;
  font-family: 'Source Sans Pro',sans-serif;
  font-weight: normal;
  font-size: 14px;
}

#header #menuEspecial ul a:hover {
  background-color: transparent;
  color: #d90118;
}

#idiomasBuscador .language-switcher-locale-url {
  font-size: 100%;
  float: right;
  width: auto;
  margin-top: 1.2em;
  margin-right: 17px;
}

#idiomasBuscador .language-switcher-locale-url li {
  float: right;
}

#idiomasBuscador .language-switcher-locale-url li a {
  font-family: 'Source Sans Pro',sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  padding: 7px;
}

#idiomasBuscador .language-switcher-locale-url li a:hover {
  color: #d90118;
}

#idiomasBuscador .language-switcher-locale-url li span {
  display: block;
  padding: 7px;
  text-transform: uppercase;
  font-family: 'Source Sans Pro',sans-serif;
  font-size: 12px;
}

#idiomasBuscador .language-switcher-locale-url li.active a {
  color: #333;
  font-weight: 700;
}

#idiomasBuscador .buscador {
  float: right;
  width: 165px;
  border: solid 1px #dbdbdb;
  background-color: #525252;
}

#idiomasBuscador .buscador .cajabuscador {
  font-family: 'Source Sans Pro',sans-serif;
  font-size: 14px;
  color: #999;
  border: 0;
  margin-bottom: 0;
  padding: 7px 0 7px 10px;
  width: 74%;
  min-height: 21px;
  border-radius: 0;
}

#idiomasBuscador .buscador .btn-lupa {
  height: 30px;
  overflow: hidden;
  display: block;
  float: right;
  margin-top: 1.5%;
}

#idiomasBuscador .buscador input[type="image"] {
  float: right;
  margin-top: -1px;
}

#header .contenedor {
  position: absolute;
  width: auto;
}

#header .contenedor .titulo {
  width: 100%;
}

#header .contenedor .titulo {
  margin-top: 13px;
}
/*Sustituido el h2 { por h1 { */
#header .contenedor .titulo h1,#header .contenedor .titulo h1 {
  font-size: 25px;
}

#main {
  margin-top: 0px;
  /* COMENTADO ya que no permite el uso de la barra de desplazamiento lateral 
  overflow: hidden;*/
  clear: both;
}

#main #content {
  background: #fff;
  opacity: 1;
}

.front #main {
  padding-top: 0px;
  margin-top: 0;
}

#main #navigation #main-menu {
  min-height: initial;
  opacity: .9;
  background-color: #525252;
  margin-bottom: 15px;
}

#main #navigation #main-menu ul li {
  background-color: transparent;
  /*width: auto !important;*/
  width: 100% !important;
  display:flex;
  flex-flow:row;
}

#main #navigation #main-menu ul li .menu {
  min-height: initial;
  width: 100%;
  /*width: auto;*/
  /*min-width:150px;*/
  border-right: solid 1px #9a9a9a;
}

#main #navigation #main-menu ul li .menu img {
  margin-top: 0;
}

#main #navigation #main-menu ul li.primero .menu a {
  display: block;
  text-decoration: none;
  text-align:center;
}

#main #navigation #main-menu ul li a {
  font-family: 'Source Sans Pro',sans-serif;
  font-weight: normal;
  font-size: 18px;
  text-transform: uppercase;
  color: #fff;
  /*width: auto;*/
  width: 100%;
  /*padding: 17px;*/
  padding: 17px 0;
  text-align:center;
}

#main #navigation #main-menu ul li a:hover {
  text-decoration: none;
  opacity: 1;
  background-color: #404040;
}

#main #navigation #main-menu ul li span {
  margin-top: 0;
  width: auto;
  float: none;
}

#main #navigation #main-menu ul li .borde {
  display: none;
}

#main #navigation #main-menu ul>.menu {
  float: left;
}

#main #navigation #main-menu ul>.menu a {
  font-family: 'Source Sans Pro',sans-serif;
  font-weight: normal;
  font-size: 18px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  width: auto;
  padding: 17px;
  display: block;
}

#main #navigation #main-menu ul>.menu a:hover {
  text-decoration: none;
  opacity: 1;
  background-color: #404040;
}

body {
  color: #333 !important;
}

body p,body .field-item,body .field-content,body tr,body td {
  color: #333 !important;
}

body #estructura #page #main .panels-flexible-row {
  padding: 0;
  width: 100%;
}

body #estructura #page #main #content h1 {
  border-top: 0;
}

body #estructura #page #main #content article .field-type-text .field-item,body #estructura #page #main #content article .field-name-field-listado-titulo .field-item {
  color: #333;
}

body #estructura #page #main #content p {
  color: #333;
}

body #estructura #page #content .view .view-content {
  padding: 15px 0;
}

body #estructura #page #content .view .view-content .views-table {
  width: 100%;
}

body #estructura #page #content .view .view-content .views-table thead tr {
  background-color: #eee;
}

body #estructura #page #content .view .view-content .views-table thead tr th {
  padding: 15px 15px 10px 15px;
}

body #estructura #page #content .view .view-content .views-table tbody tr {
  background-color: #fff;
}

body #estructura #page #content .view .view-content .views-table tbody tr.even {
  background-color: #f5f5f5;
}

body #estructura #page #content .view .view-content .views-table tbody tr.even:hover {
  background-color: #efefef;
}

body #estructura #page #content .view .view-content .views-table tbody tr.odd:hover {
  background-color: #efefef;
}

body #estructura #page #content .view .view-content .views-table tbody tr td {
  padding: 10px 15px;
}

body #estructura #page #content .webform-results-analysis {
  margin-top: 25px;
}

body #estructura #page #content .webform-results-analysis thead tr {
  background-color: #dbdbdb;
}

body #estructura #page #content .webform-results-analysis thead tr th {
  text-transform: uppercase;
  padding: 15px 15px 10px 15px;
}

body #estructura #page #content .webform-results-analysis tbody tr.webform-results-question.odd,body #estructura #page #content .webform-results-analysis tbody tr.webform-results-question.even {
  background-color: #eee;
  border-top: solid 4px #fff;
}

body #estructura #page #content .webform-results-analysis tbody tr.webform-results-question.odd td,body #estructura #page #content .webform-results-analysis tbody tr.webform-results-question.even td {
  padding-left: 10px;
  background-color: transparent;
}

body #estructura #page #content .webform-results-analysis tbody tr.webform-results-question.odd td.active,body #estructura #page #content .webform-results-analysis tbody tr.webform-results-question.even td.active {
  background-color: #e3e3e3;
}

body #estructura #page #content .webform-results-analysis tbody tr.even,body #estructura #page #content .webform-results-analysis tbody tr.odd {
  background-color: #fff;
}

body #estructura #page #content .webform-results-analysis tbody tr.even td,body #estructura #page #content .webform-results-analysis tbody tr.odd td {
  background-color: #fff;
  padding-left: 30px;
}

body #estructura #page #content .webform-results-analysis tbody tr td {
  background-color: #fff;
  padding: 8px;
}

body #estructura #page #content .webform-results-analysis tbody tr td .active {
  padding: 0;
}

body #estructura #page #content .webform-results-analysis tbody tr td table thead tr {
  background-color: #eee;
}

body #estructura #page #content .webform-results-analysis tbody tr td table thead tr th {
  border-bottom: 0;
}

body #estructura #page #content .webform-results-analysis tbody tr td table tbody td {
  padding-left: 15px !important;
}

body.front #estructura #page #main #content {
  padding: 15px;
  width: auto;
}

#footer {
  width: 100%;
  min-height: auto;
  margin: 13px 0 0 0;
  padding: 0;
  background-image: url("../images/colores-pie.jpg");
  background-repeat: no-repeat;
  background-position: top left;
  opacity: .9;
  float: none;
  overflow: hidden;
  position: relative;
  clear: both;
}

#footer .pieGN {
  border: 0;
  background-color: transparent;
  width: 100%;
  margin: 0;
  padding: 0;
}

#footer #block-block-3,#footer #block-block-1 {
  padding: 8px 15px 7px 15px;
  overflow: auto;
  clear: both;
}

#footer .pieGN p {
  font-family: 'Source Sans Pro',sans-serif;
  font-size: 14px;
  margin: 0;
}

#footer .pieGN p a {
  text-decoration: none;
  padding: 9px 0;
}

#footer .pieGN p a:hover {
  color: #d90118;
}

#footer .pieGN span {
  margin-top: 9px;
}

/* Subvenciones estilos para frontend */

div.info-aportada div  div.field-items  div.field-item{
	margin-right: 1.25%;
	float: left;
	margin-bottom: 10px;
	height: auto;
	border: 1px solid #dcdcdc;
	background-color: rgba(0,0,0,0.05);
	padding: 10px 30px;
	border-radius: 50px;
	display: block;
	transition: background-color ease-in-out 0.3s;  
}



div.info-aportada div  div.field-items  div.field-item:hover{
  background-color:rgba(0,0,0,0);
  transition: background-color ease-in-out 0.7s;  

}

/*

div.desglose.ds-3col-equal > div.info-aportada{
	width:20%;
	float:none;
}

div.desglose{
  /*width:550px;
  min-width:100%;*/
}

/*
div.desglose > div.field-collection-view{
  margin-left: 0 !important;
}
div.desglose div.field-collection-view.clearfix.view-mode-tabla{
  padding:0px 20px 0px;
  margin-left:20px;
  margin-bottom:20px;
  background: linear-gradient(145deg, rgba(200,200,200,0.3), rgba(255,255,255,0));
  position:relative;
  border-top-left-radius:10px;
}

div.desglose > div.field-collection-view:not(:nth-child(2)) >  div > div > div > div.field-label{
  display:none;
}
div.desglose > div > div{
  overflow:hidden;
}


div.desglose > div > div > div.group-left.display-izquierda,
div.desglose > div > div > div.group-middle.info-aportada{
  width:10% !important;
  min-width:100px;
  float:left;
  margin-right:10px;
}

div.desglose div.info-aportada{
  background:none;
  margin:0;
  padding:0;
}

div.desglose div.group-right.display-derecha{
	float:left;
	width:50% !important;
}
div.desglose  div.field-label{
	padding-left:10px;
}
*/


/*Se añade para que quede bien configurada la presentación de las pestañas*/
.ui-tabs .ui-tabs-nav li.ui-tabs-selected {
  margin-bottom: 1px !important;
}

div.field-name-field-informacion-aportada div.field-items{
	float:none !important;
}


/*Backend desglose en subvenciones

table#field-importe-desglose-values{
  width:100%;
}

table#field-importe-desglose-values tbody > tr.draggable{
  height: 70px;
  border-bottom: 10px solid white;
}

table#field-importe-desglose-values tbody > tr > td:nth-child(1){
  width:15px;
}

table#field-importe-desglose-values tbody > tr > td:nth-child(2){
  overflow:hidden;
}

table#field-importe-desglose-values tbody > tr > td.delta-order{
  vertical-align: top !important;
  padding-top:27px;
}


table#field-importe-desglose-values tbody > tr > td:nth-child(2) > div.field-name-field-observaciones,
table#field-importe-desglose-values tbody > tr > td:nth-child(2) > div.field-name-field-subvenciones-importe{
  width:100px;
  float:left;
  margin-bottom:5px;
}

table#field-importe-desglose-values tbody > tr > td:nth-child(2) > div.field-name-field-observaciones  input,
table#field-importe-desglose-values tbody > tr > td:nth-child(2) > div.field-name-field-subvenciones-importe  input{
  width:90px;
}

table#field-importe-desglose-values tbody > tr > td:nth-child(2) > div.field-name-field-subvenciones-rescon{
  float:left;
  width:75%;
}

table#field-importe-desglose-values tbody > tr > td:nth-child(2) > div.field-name-field-subvenciones-rescon input{
  width:95%;
  margin-bottom:5px;
}

table#field-importe-desglose-values tbody > tr > td:nth-child(2) > input[id^="edit-field-importe-desglose"]{
  display:block !important;
  clear:both !important;
  margin:5px 0;
}/*


/* Acceder a pestañas de edición de una subvencion/nodo */
#content ul.tabs-primary.tabs.primary{
  z-index:1;
  position:relative;
}



.field.field-name-field-subvenciones-rescon.field-type-text.field-label-above.expediente-data{
  margin-left:1.25%;
  width:25%;
  min-width:250px; 
  float:left; 
  margin-bottom:20px; 
  height:auto; 
  border:1px solid #dcdcdc;
  background-color:rgba(0,0,0,0.03);  
  padding:15px 20px; 
  border-radius:3px; 
  display:block;
}

/* ESTILOS TABLA */

.table-responsive{
	width:100%;
	overflow-y:hidden;
	overflow-x:auto;
}

.table{
  width:90%;
  max-width:90%;
  border:1px solid #dcdcdc;
  border-radius:3px;
  margin-bottom:10px;
}

.table tbody tr:nth-child(even){
  background-color:rgba(0,0,0,0.05);  
}

.table tbody tr td:nth-child(1),
.table tbody tr td:nth-child(2){
  min-width:100px;  
}

.table tbody tr td:nth-child(3){
	min-width: 350px;
}

.table tbody tr td{
	padding:20px 10px;
}

.table tr td,
.table tr th{
	cursor: default;
}


.table thead tr th{
	padding:10px;
	text-transform:uppercase;
}

.table tbody tr:hover{
	background-color:#d2504914;
}


#main #navigation #main-menu ul li{
  width:100% !important;
}

#references-dialog-page{
  background-color:rgba(255,255,255,0.95);
  padding:20px 40px;
  margin:0 10px;
}

#references-dialog-page table{
  width:100% !important;
}

#references-dialog-page table tr:hover{
  background-color:#ccc !important;
}

#references-dialog-page table tr td{
  padding:0.4em 1em !important;
  cursor:default !important;
}
@media (min-width: 350px) 
{ 
  #main #navigation #main-menu ul li{
    width:50% !important;
  }
}


@media (min-width: 768px) 
{ 
    #main #navigation #main-menu ul li{
    width:25% !important;
  }
}

@media (min-width: 1024px) 
 { 
    #main #navigation #main-menu ul li{
      width:16.66% !important;
  }
}

@supports (display: grid) {

  #main #navigation #main-menu ul li{
    width:inherit !important;
  }

  #main-menu ul{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(150px, 100%));
    grid-gap:0;

  }

  @media (min-width: 350px) 
  { 
    #main-menu ul{
      grid-template-columns:repeat(auto-fit, minmax(150px, 50%));
    }
  }


  @media (min-width: 768px) 
  { 
      #main-menu ul{
      grid-template-columns: 50px repeat(5, [col-start] minmax(100px, 33%) [col-end]);    
    }
  }

  @media (min-width: 1024px) 
  { 
     #main-menu ul{  
      grid-template-columns: 50px repeat(5, [col-start] minmax(150px, 19.45%) [col-end]);
    }
  }
}

/* CALENDARIO PROCESOS HOME */
.calendar-calendar tr th.days{
  border: none;
  padding:7px;
}

.calendar-calendar div.mini-day-off{
  padding:7px;
}

.calendar-calendar td.mini{
  text-align:center;
}

.view .date-nav-wrapper li.date-prev,
.view .date-nav-wrapper li.date-next{
  background-color:#eeeeee;
}

.view .date-nav-wrapper li.date-prev a,
.view .date-nav-wrapper li.date-next a{
  font-size:20px;
}

.view .date-nav-wrapper li.date-prev{
  right:inherit;
  left:0;
}


.date-nav-wrapper .date-heading h3 a{
  text-decoration:none;
  font-size:0.8em;
}

