/* 
    Document   : Estilo
    Created on : Jul 8, 2014, 11:30:43 AM
    Author     : onev88
    Description:
        Purpose of the stylesheet follows.
*/


@import "compass";
@import "mixins";

@import url(portlet.css);

$color1: #009EE3;
$color2: #073E65;
$color3: #003C66;

root { 
    display: block;
}

.oculto{
	display:none;
}


/* T�tulos */

.portlet-content h1, .portlet-body h1{

    border-bottom: 2px ridge #144767;
    margin-bottom: 30px;
    color: #144767;
    text-transform: uppercase;
}
.portlet-content h1 i, .portlet-body h1 i{
    padding-right: 5px !important;
}

.portlet-content h6, .portlet-body h6{
    border-bottom: 2px ridge;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 16px !important;
}

/* fieldset */
.fieldset{
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	padding: 20px 10px 0px;
}
.fieldset-title{
	font-weight: bold;
	position: absolute;
	margin-top: -35px;
	width: auto;
	color: $color1;
	background: #fff;
	padding: 0 5px;
}

/* Arcgis*/
#map_root
{
    width:97% !important;
    height:96% !important;
    border-style: ridge; 
    border-width: 4px; 
    border-color: #A0D186;
    padding:3px;
    margin:0 auto;
}
.esriControlsBR{
    display:none;
}

/*Tablas y Datatables*/

#responsivedt{
    width: 90%;
    margin: 0 auto;
}
#responsivedt .row{
    margin: 0 auto;
}
#responsivedt table tbody td {
    font-size: 12px !important;
}

.dataTables_wrapper table th{
    background-color: #134666 !important;
    color: #FFFFFF;
    font-weight: bold;
    padding: 5px 10px;
    text-align: center;
    vertical-align: middle !important;
}

table{
	.dataTable{
		>.row-border, >.display{
			tbody{
				tr{
					&:first-child{
						th, td{
							border-top: 1px solid #ddd;	
						}
					}
					th{
						text-align: center !important;
					}
				}
			}
		}
	}
	
	.tabla-interna{
		width: 100%;
		diplay:block;
		padding: 0;
		background: none !important;
		tr{
			background: none !important;
		}
		th{
			background: none !important;
			color: $color2;
			text-align:center !important;
			border-bottom: 2px solid $color2 !important;
		}
	}
}



/*Inputs y Botones */

input, select{
  border: 0 !important;
  border-bottom: 1px solid !important;
  box-shadow: 0 0 0 !important;
  border-radius: 0 !important;
}
select {
  display: none;
   /* reset */
  margin: 0;      
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  background-image:
    linear-gradient(45deg, transparent 50%, #a0a0a0 50%),
    linear-gradient(135deg, #a0a0a0 50%, transparent 50%);
  background-position:	
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px);
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

select:focus {
  background-image:
    linear-gradient(45deg, #a0a0a0 50%, transparent 50%),
    linear-gradient(135deg, transparent 50%, #a0a0a0 50%);
  background-position:
    calc(100% - 15px) 1em,
    calc(100% - 20px) 1em;
  outline: 0;
}

input[type="radio"], input[type="checkbox"]
{
    margin: 0px 8px !important;
    vertical-align: center !important;
}

input[type="submit"], .btn, .btnOk, .btnWarn, .btnCancel {
    background: none repeat scroll 0 0 #134666 !important;
    border: medium none !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
    font-family: 'Oswald',Helvetica,Arial,sans-serif !important;
    font-weight: normal !important;
    margin: 1.5px !important;
    padding: 5px 10px !important;
    text-align: center !important;
    text-shadow: none !important;
    width: auto;
}
.btnOk {
    background-color: #6AA30A !important;
}
.btnWarn {
    background-color: #D77A26 !important;
}
.btnCancel {
    background-color: #B80000 !important;
}
.btnDireccion{
	float:right;
	position:absolute;
	top:-1px;
}

input[type="submit"]:hover, .btn:hover, .btnOk:hover, btnWarn:hover, .btnCancel:hover  {
    background: none repeat scroll 0 0 #8CC53F !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    text-shadow: none !important;
}
.btnCancel:hover{
    background-color: #F47B7B !important;
}
.btnWarn:hover{
    background-color: #E8BB75 !important;
}


/* Tooltip */
.ui-tooltip {
    font-family: 'Oswald', Helvetica, Arial, sans-serif; 
    font-size: 12px;
    color: #fff !important;
    background: rgba(20,71,103,0.90) !important; 
    border-radius: 8px !important;
}


#deco_lista ul li{
    list-style: square !important;
}


/* Mejora al estilo */

.float-right{
	float:right;
}

sup i{
	color: #CBCBCB;
	&:hover{
		color: #999;
	}
}


#labelForm{
    width: 20%;
    min-width: 150px;
    display: inline-block;
    text-align: left;
}
#divisionForm{
    width: 48%;
    min-width: 250px;
    display: inline-block;
    padding-left: 1%;
    position: relative;
}

.expandible{
    font-family: 'Oswald', Helvetica, Arial, sans-serif; 
    font-size: 15px;
    text-align: justify;
    color: #144767;
    cursor:pointer;
}

.expandible:hover{
    text-decoration: underline;
}

.respuesta{
    display: none;
    padding : 5px;
    text-align: justify;
}

textarea {
    resize: none;
  	width: 90% !important;
}

.centered {
    margin: 7px auto !important;
}

.indented{
    padding-left: 15% !important;;
}

.width65{
    width: 65% !important;
}

.width67{
    width: 67% !important;
}

.label-largo{
    width: 30% !important;
}

.link-subtitle{
    font-family: 'Oswald', Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: large;
    cursor: pointer;
}

.subpanel{
    border: 1px solid #DDD;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    border-radius: 8px;
    padding: 10px 50px;
}

.acordeon {
    margin:1em 0
}
.acordeon h3 {
    background:#91C84B;
    color:#fff;
    cursor:pointer;
    margin:0 0 1px 0;
    padding:1px 2px;
    font-size: 15px; 
    margin-bottom: 1px;
}
.acordeon h3.current {
    background:#144767;
    cursor:default
}
.acordeon div.pane {
    padding:5px 10px
}

.acordeon > div {
    display: none;
}

.lista{
    list-style: initial !important;
}

/* Modal */
.yui3-widget-mask {
    background: none repeat scroll 0 0 #333333 !important;
    position: absolute;
    z-index: 999 !important;
}

.modal{
   z-index:1000 !important;
}

/*
We set the element we are applying our loading mask to relative  
*/
.loading-mask {
  position: relative;
}

/*
Because we set .loading-mask relative, we can span our ::before  
element over the whole parent element  
*/
.loading-mask::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.25);
  z-index:1000;
}

/*
Spin animation for .loading-mask::after  
*/
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

/*
The loading throbber is a single spinning element with three  
visible borders and a border-radius of 50%.  
Instead of a border we could also use a font-icon or any  
image using the content attribute.  
*/
.loading-mask::after {
  content: "";
  position: absolute;
  border-width: 3px;
  border-style: solid;
  border-color: #f0f0f0 #019ee1;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  top: calc(50% - 12px);
  left: calc(50% - 12px);
  background-image: url(/suma-portlet/images/arbol-suma.png);
  background-size: 35px;
  background-position: center;
  background-repeat: no-repeat;
  animation: 5s linear 0s normal none infinite running spin;
  filter: drop-shadow(0 0 2 rgba(0, 0, 0, 0.33));
}


@media (min-width: 992px){
	*{
		
	}
	.aui{
		label{
			display: inline-block;
			width: 200px;
			
			&.checkbox{
				width: auto;
				display:block;
			}
		}
		.textarea{
			label{
				display: block;
			}
			textarea{
				width: 96%;
			}
		}
		.tab-content{
			overflow: hidden;
		}
	}
	.column-content{
		position: relative;
		.help-inline{
			padding-left: 0px;
			display:block !important;
		}
		div[role=alert]{
			color: #C00;
			font-size: 12px;
		}
	}
	.btnDireccion{
		right: 160px;
	}
}
.error label, .error{
	color: #C00 !important;
}
.tituloForm {
    padding: 10px 0;
    background: #00374a;
    margin-bottom: 20px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    width: 100%;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: 0;
}

.contenido {
    border: 2px solid #00374A;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.elementotemp {
    margin: 20px auto;
    width: 80%;
    max-width: 780px;
    color: #00374A;
}

.options {
    display: block !important;
    clear: both !important;
    -ms-text-size-adjust: 100%;
    text-align: center;
}

.aui .nav-tabs > .active > a, .aui .nav-tabs > .active > a:hover, .aui .nav-tabs > .active > a:focus {
    color: #FFFFFF !important;
    background-color: #00374A;
    border: 1px solid #00374A;
    border-bottom-color: #00374A;
    cursor: default;
}

.aui .nav-tabs > li > a {
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 20px;
    border: 1px solid #00374A;
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
}

.aui .control-group.success input, .aui .control-group.success select, .aui .control-group.success textarea {
    border-color: #00374A !important;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.aui .control-group.success .control-label, .aui .control-group.success .help-block, .aui .control-group.success .help-inline {
    color: #00374A !important;
}


.aui .control-group.success .checkbox, .aui .control-group.success .radio, .aui .control-group.success input, .aui .control-group.success select, .aui .control-group.success textarea {
	color: #00374A !important;
}

table.dataTable.display tbody tr.odd>.sorting_1, table.dataTable.order-column.stripe tbody tr.odd>.sorting_1 {
    background-color: #f1f1f1;
    font-size: 12px;
    width: 117px;
}

table.dataTable.display tbody tr.even>.sorting_1, table.dataTable.order-column.stripe tbody tr.even>.sorting_1 {
    background-color: #f9f9f9;
    font-size: 12px;
    
}

.aui select{
    width: 200px !important;
}

.aui .control-group.error .control-label, .aui .control-group.error .help-block, .aui .control-group.error .help-inline {
    color: #ffffff;
}


.aui .control-group.error .checkbox, .aui .control-group.error .radio, .aui .control-group.error input, .aui .control-group.error select, .aui .control-group.error textarea {
    color: #00374A !important;
}


.error label, .error {
    color: #00374A !important;
}