/*-------------------------------------------------------
    
    comun.css

    Hoja de estilo comun de las aplicaciones

    Servei TIC. ETSAB.

--------------------------------------------------------*/

/******* Generales *******************/

html {
    padding: 0px;
    margin: 0px;
}

body {
    padding: 0px;
    font-family: 'Open Sans', 'century gothic', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 12pt;    
    background-color: #ffffff;
    color: #505050;
    text-decoration: none;    
}

select {
    -webkit-appearance: none;
}

a {
    color: #505050;
}

a:hover {
    color: #505050;
    text-decoration: none;
}

th a {
    color: #fff;
}

th.orden-ascendente:after {
    font-family: 'Font Awesome 5 Free';
    content: '\f0de';
}

th.orden-descendente:after {
    font-family: 'Font Awesome 5 Free';
    content: '\f0dd';
}

strong  {
    font-weight: 600;
}

.input-group {
    margin-bottom: 1rem;
}

.form-group {
    position: relative;
    margin-bottom: 0.5rem !important;
}

.fecha:before {
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    top: 39px;
    right: 15px;
    content: "\f273";
}

.hora:before {
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    top: 39px;
    right: 15px;
    content: "\f017";
}

.dropdown-item {
    font-size: 0.9rem;
    text-decoration: none !important;
    cursor:pointer;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #666;
}

.dropdown-toggle {
    min-width: 0px !important;
    padding: 0.1rem 0.5rem !important;
}

h3.seccion {
    margin-bottom: 20px;
    padding: 0px 0px 10px 0px;
    border-bottom: 1px solid #a0a0a0;    
}

.m-t-40 {
    margin-top: 40px;
}

.m-b-40 {
    margin-bottom: 40px;
}

input, select, textarea {
    border-radius: 0px !important;
    border: 1px solid rgba(178, 178, 178, 0.8);
    box-shadow: none !important;
    background-color: #fff;
}

button.disabled {
    cursor: not-allowed;
}

input:focus, select:focus, textarea:focus {
    border-color: rgba(82, 168, 236, 0.8) !important;
    box-shadow: none !important;
    background-color: #fff;
}

select optgroup {
    font-size: 1.1rem;
}

.cargando-campo:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50px;
    right: 25px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 2px solid #ccc;
    border-top-color: #000;
    animation: cargando-campo .6s linear infinite;
    z-index: 99;
}

@keyframes cargando-campo {
    to {
        transform: rotate(360deg);
    }
}

.cargando {
    font-size: 10px;
    margin: 50px auto;
    text-indent: -9999em;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #505050;
    background: -moz-linear-gradient(left, #505050 10%, rgba(80,80,80, 0) 42%);
    background: -webkit-linear-gradient(left, #505050 10%, rgba(80,80,80, 0) 42%);
    background: -o-linear-gradient(left, #505050 10%, rgba(80,80,80, 0) 42%);
    background: -ms-linear-gradient(left, #505050 10%, rgba(80,80,80, 0) 42%);
    background: linear-gradient(to right, #505050 10%, rgba(80,80,80, 0) 42%);
    position: relative;
    -webkit-animation: cargando 1.4s infinite linear;
    animation: cargando 1.4s infinite linear;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

.cargando:before {
    width: 50%;
    height: 50%;
    background: #505050;
    border-radius: 100% 0 0 0;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
}
  
.cargando:after {
    background: #ffffff;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    content: '';
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.boton-tabla {
    width: 40px;
    text-align: center;
}

.boton-tabla button {
    width: 31px;
    margin-top: 5px;
}

@-webkit-keyframes cargando {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes cargando {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.is-invalid {
    border: 1px solid #f00;
}

select.form-control.is-invalid {
    background-position: right 20px center !important;
}

.fecha .form-control.is-invalid {
    background-position: right 30px center !important;
}

span.twitter-typeahead {
    width: 100% !important;
}

div.tt-menu {
    background-color: #fff;
    width: 100% !important;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

div.tt-suggestion {
    padding: 10px 5px;
    cursor: pointer;
    text-align: left;
}

div.tt-suggestion:hover {
    background-color: rgb(102,175,233);
}

span.nombre {
    text-transform: capitalize;
}

table {
    font-size: 0.9rem;
}

table .thead-dark th {
    background-color: #999 !important;
    border-color: #999 !important;
}

ul.pagination li a {
    border-radius: 0px !important;
    border-color: rgba(178, 178, 178, 0.8) !important;
    color: #505050 !important;
}

ul.pagination li.active a {
    color: #fff !important;
    background-color: #505050 !important;
}

input[type="file"] {
    height: auto !important;
}

.autoAncho {
    width: auto !important;
}

/******* Cabecera *******************/

#cabecera {
    font-size: 2.2rem;
}

#cabecera a {
    color: #505050;
}

#cabecera img.logo-upc {
    width: 200px;
    filter: brightness(0%);
}

#cabecera img.logo-upc:hover {
    filter: brightness(100%);
}

#cabecera div.titulo {
    border-bottom: 1px solid #a0a0a0;
}

#cabecera div.subtitulo {
    font-size: 1.6rem;
}

#cabecera .soporte {
    font-size: 1.0rem;
    margin-bottom: 20px;
}

#cabecera .btn-outline-dark {
    min-width: 36px;
}

/******* Contenido *******************/

#contenido {
    padding-bottom: 40px;
}

/******* Pie *******************/

#pie a {
    color: #505050;
}

#pie div.info {
    border-top: 1px solid #777;
}

#pie img.logo-etsab {
    width: 56px;
}

#pie div.info p.unidad {
    margin: 0px;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

#pie div.info p.direccion {
    margin: 0px;
    margin-bottom: 5px;
    font-size: 0.75rem;
}

/******* Adaptaciones para dispositivos moviles y tablets *******************/

@media (max-width: 768px) {
    .logo-etsab-letras {
        width: 100%;
    }
}