/*@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700|Roboto:300,400,500,700&subset=latin-ext');*/

:root {
    /* base color 1 */
    --base-color1: 208;
    /* base color 2 */
    --base-color2: 120;
    /*base color 3 */
    --base-color3: 200;
}

* {
    /*font-family: 'Open Sans', sans-serif;*/
}

body {
    font-size: initial;
    font-family: inherit;
    padding: 0.5em;
    background-color: rgba(0, 0, 0, 0);
}

*[data-text-web] {
    visibility: hidden;
}

.nopadding {
    padding: 0;
}

.padding-sm {
    padding: 0 2px 0 2px;
}

.padding-md {
    padding: 0 5px 0 5px;
}

.container-fluid {
    padding: 0;
    margin: 0 8px 0 8px;
}

#mainContent {
    margin-top: 70px;
}

#mainContent.no-menu {
    margin-top: auto;
}

input.ui-autocomplete-loading {
    /*noinspection CssUnknownTarget*/
    background-image: url('/aplicatiu/webServices/views/img/spinner.gif');
    background-repeat: no-repeat;
    background-position-x: right;
    background-size: contain;
}

.help-block {
    color: #a94442;
}

.error {
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #a94442;
}

div.missatges-sistema {
    width: 100%;
}

div.legend {
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    font-size: 21px;
    line-height: inherit;
    color: #333;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
}

.form-inline-2 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
}

.form-inline-2 .form-group:not(.no-grow) {
    flex-grow: 1;
}

.form-inline-2 .form-group label:not(.radio-inline) {
    display: block;
}

td .form-inline-2 .form-group {
    padding-bottom: 0;
}

.form-inline-2 .form-group {
    margin-right: 1em;
    padding-bottom: 1em;
}

.form-inline-2 .form-group div.flex {
    display: flex;
    align-items: center;
}

.form-inline-2.form-group > * {
    margin-right: 1em;
    width: auto;
}

.form-group.flex {
    display: flex;
    align-items: center;
}

.form-group.flex select,
.form-inline-2 .form-group .flex select,
.form-inline-2 .form-group .flex input:not([type="radio"]) {
    margin: 0 1em;
    flex: 1 1;
}

.form-inline-2 .form-group .form-control[size] {
    width: auto;
}

.form-inline-2 .form-group .form-control:not([size]) {
    width: 100%;
}

.radio,
.checkbox {
    margin-bottom: 5px;
    margin-top: 5px;
}

.checkbox > label {
    display: flex;
}

.curs .panel-body {
    height: 6em;
    overflow-y: hidden;
    text-overflow: ellipsis;
}

.oferta .panel {
    padding-bottom: 1em;
}

.sel-generic {
}

.ui-autocomplete {
    max-height: 10em;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
}

.checkbox label,
.radio label {
    margin-right: 1em;
}

.checkbox > span, .radio span {
    margin-right: 0;
}

.checkbox span .radio-inline {
    margin-left: 1em;
    margin-right: 0;
}

fieldset:last-child:after {
    font-size: smaller;
    font-style: italic;
    display: block;
    padding-top: 1em;
    content: "Els camps marcats amb * són obligatoris.";
}

.required > label:first-child:before {
    color: #e32;
    content: "* ";
    display: inline;
}

/* dani */
/* http://bootsnipp.com/snippets/featured/content-in-bootstrap-tabs */
.board {
    /*width: 90%;*/
    margin: 5px auto;
    /*height: 340px;*/
    background: #fff;
    /*box-shadow: 10px 10px #ccc,-10px 20px #ddd;*/
}

.board .nav-tabs {
    position: relative;
    border-bottom: 0;
    /*width: 80%;*/
    margin: 40px auto 0;
    box-sizing: border-box;
}

.board > div.board-inner {
    background: #fafafa;
}

p.narrow {
    width: 60%;
    margin: 10px auto;
}

.liner {
    height: 2px;
    background: #ddd;
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: 3.25em;
}

.curs img {
    max-width: 100%;
    height: auto;
}

span.round-tabs {
    width: 2.5em;
    height: 2.5em;
    padding: .5em;
    display: inline-block;
    border-radius: 100px;
    background: white;
    z-index: 2;
    text-align: center;
    font-size: 2em;
}

span.round-tabs.verd {
    color: rgb(34, 194, 34);
    border: 2px solid rgb(34, 194, 34);
}

span.round-tabs.groc {
    color: #febe29;
    border: 2px solid #febe29;
}

span.round-tabs.vermell {
    color: #f1685e;
    border: 2px solid #f1685e;
}

li.active span.round-tabs.verd {
    background: #fff !important;
    border: 2px solid rgb(34, 194, 34);
    color: rgb(34, 194, 34);
}

li.active span.round-tabs.groc {
    background: #fff !important;
    border: 2px solid #febe29;
    color: #febe29;
}

li.active span.round-tabs.vermell {
    background: #fff !important;
    border: 2px solid #f1685e;
    color: #f1685e;
}

.nav-tabs > li.active > a {
    background: none;
    border: none;
}

.nav-tabs > li.active > a span.round-tabs {
    background: #fafafa;
}

li.active {
    background: #e6e6e6;
}

/*li.active:before {
    content: " ";
    position: absolute;
    left: 45%;
    opacity:0;
    margin: 0 auto;
    bottom: -2px;
    border: 10px solid transparent;
    border-bottom-color: #fff;
    z-index: 1;
    transition:0.2s ease-in-out;
}*/
li:after {
    content: " ";
    position: absolute;
    left: 45%;
    opacity: 0;
    margin: 0 auto;
    bottom: 0;
    border: 5px solid transparent;
    border-bottom-color: #ddd;
    transition: 0.1s ease-in-out;
}

li.active:after {
    content: " ";
    position: absolute;
    left: 45%;
    opacity: 1;
    margin: 0 auto;
    bottom: 0;
    border: 10px solid transparent;
    border-bottom-color: #ddd;
}

.tab-content {
}

.tab-pane {
    position: relative;
    padding-top: 10px;
}

.tab-content .head {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 25px;
    text-transform: uppercase;
    padding-bottom: 10px;
}

.btn-outline-rounded {
    padding: 10px 40px;
    margin: 20px 0;
    border: 2px solid transparent;
    border-radius: 25px;
}

.btn.green {
    background-color: #5cb85c;
    /*border: 2px solid #5cb85c;*/
    color: #ffffff;
}

.nav-tabs li {
    display: table-cell;
}

.nav-tabs li p {
    text-align: center;
}

@media (max-width: 585px) {
    .board {
        width: 90%;
        height: auto !important;
    }

    .nav-tabs .liner {
        display: none;
    }

    .nav-tabs li {
        display: table;
        float: none;
        width: 100%;
    }

    .tab-content .head {
        font-size: 20px;
    }

    .nav-tabs li p {
        text-align: left;
        margin-top: 15px;
    }

    li.active:after {
        content: " ";
        position: absolute;
        left: 35%;
    }

    .btn-outline-rounded {
        padding: 12px 20px;
    }
}

.row.flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
}

.row.flex > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.row.flex div.panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.row.flex div.panel-body {
    flex: 1 1;
}

/* fi dani */

.modal-vertical-centered {
    transform: translate(0, 50%) !important;
    -ms-transform: translate(0, 50%) !important; /* IE 9 */
    -webkit-transform: translate(0, 50%) !important; /* Safari and Chrome */
}

div.llista-cursos .panel-title span.pull-left {
    width: 85%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

div.llista-cursos .panel-title div.pull-right {
    width: 15%;
}

.llista-cursos div.panel-body {
    /* max-height: 140px; */
    overflow: hidden;
    margin-bottom: 10px;
}

div.share-buttons {
    display: inline-block;
    font-size: small;
}

div.st-custom-button {
    display: inline-block;
    padding: 0 0.25em;
}

input[type="text"] {
    display: inherit;
}

input[type="number"] {
    text-align: right;
}

.retallar-5 {

    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    display: block;
    display: -webkit-box;
}

.retallar-4 {
    max-height: 4em;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    display: block;
    display: -webkit-box;
}

.retallar-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: block;
    display: -webkit-box;
}

.detallOferta-sexe {
    display: none;
}

/* detallFormacio tipusVista=2*/
div.formacio-tipusVista-2 {
    margin-left: -7px !important;
    margin-right: -7px !important;
}

div.formacio-tipusVista-2 .row {
    margin-left: -15px;
    margin-right: -15px;
}

div.formacio-tipusVista-2 > div.detall-curs {
    margin-bottom: 10px;
}

div.formacio-tipusVista-2 > div.detall-curs > div.detall-curs {
    margin-right: -10px;
    margin-left: -10px;
}

div.formacio-tipusVista-2 h4 {
    text-transform: uppercase;
}

div.formacio-tipusVista-2 div.estatCurs {
    position: absolute;
    bottom: 1em;
    right: 1em;
    padding: 0;
    text-align: left;
}

div.formacio-tipusVista-2 div.modalitatCurs {
    position: absolute;
    bottom: 3em;
    right: 1em;
    padding: 0;
    text-align: left;
}

div.formacio-tipusVista-2 div.detall-curs {
    margin-bottom: 0.6em;
}

div.formacio-tipusVista-2 span.titol {
    font-weight: bold;
    margin-right: 10px;
}

div.formacio-tipusVista-2 > div.detall-curs ul.llista-detall-curs {
    list-style: none;
    padding: 0;
}

div.formacio-tipusVista-2 > div.detall-curs ul.llista-detall-curs > li {
    margin-bottom: 0.3em;
}

div.formacio-tipusVista-2 div.imatge-curs {
    padding-left: 5px;
    padding-right: 5px;
}

div.formacio-tipusVista-2 img {
    max-height: 50vh;
    width: 100%;
    object-fit: cover;
    object-position: top;
}

.titol-pagina {
    border-bottom: 1px solid #e5e5e5;
    font-size: 21px;
    margin-bottom: 1em;
    color: #333;
}

/* fi detallFormacio tipusVista=2*/

.btn-xat-usuaris-edit {
    overflow-y: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.xat-form {
    display: flex;
    flex-flow: column;
    height: 95vh;
}

.xat-form li {
    margin: 0.25em;
    padding: 0.25em;
}

.xat-form time {
    font-size: smaller;
}

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

.xat-usuaris {
    padding-bottom: 1em;
    flex: none;
    font-size: smaller;
}

li.xat-usuari {
    display: flex;
    justify-content: space-between;
}

.xat-missatges {
    flex: 1 1;
    display: flex;
    flex-flow: column;
}

.xat-missatges-historia {
    flex: 1 1;
    overflow-y: auto;
}

li[class*=" xat-missatge-"] > div {
    padding: 0.25em 0.5em;
    border: 1px solid lightgrey;
    border-radius: 5px;
    display: inline-block;
}

.xat-missatge-meu > div {
    background-color: lightyellow;
}

.xat-missatge-altre > div {
    background-color: white;
}

.xat-missatge-nou,
.xat-usuari-nou {
    flex: none;
    display: flex;
    flex-flow: row;
}

.xat-form input[type="text"],
.xat-form textarea {
    flex: 1 1;
}

li.xat-missatge-altre {
}

li.xat-missatge-meu {
    text-align: right;
}

li > div > div:not(:first-child) {
    font-size: smaller;
}

.ofertes-detallOferta .cv-antic,
.ofertes-detallOferta .cv-antic .glyphicon {
    color: red;
}

.taula-ofertes td > div {
    max-height: 30vh;
    overflow: auto;
}

.taula-ofertes tr.divisio {
    font-size: larger;
    text-transform: uppercase;
    font-weight: bolder;
}

h4.ofertes {
    display: flex;
    justify-content: space-between;
}

/*Llistat empreses*/

div.llistat-empreses .seccio-titol-empresa {
    background: #0a52a7;
    margin: 0;
}

div.llistat-empreses .seccio-titol-empresa h3 {
    font-size: 1em;
    color: #fff;
    font-weight: 600;
    padding: 10px;
    margin: 0;
}

div.llistat-empreses .seccio-fitxa-empresa {
    border: 1px solid #7586a7;
    border-top: none;
    padding: 0.5em;
}

div.llistat-empreses .seccio-fitxa-empresa .row {
    margin: 0;
}

div.llistat-empreses .seccio-fitxa-empresa h3 {
    font-size: 0.9em;
    font-weight: 600;
    color: #3e5fa7;
    margin-bottom: 10px;
}

div.llistat-empreses .box-dades-empresa {
    border: 2px solid #7586a7;
    background: #f8fbfe;
}

div.llistat-empreses .box-dades-empresa ul li {
    border-bottom: 1px solid #cbe2f6;
    padding: 0.7em 1.5em 0.7em;
}

div.llistat-empreses .box-dades-empresa ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

div.llistat-empreses .box-dades-empresa h4 {
    font-size: 1em;
    font-weight: 600;
    color: #1051a7;
    margin: 0 0 7px 0;
}

div.llistat-empreses .box-dades-empresa p {
    font-size: 1em;
    margin: 0;
}

.llistat-espais .filtre-espais-items {
    display: none;
}

/*Mapa*/
.mapContainer {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-items: center;
}

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

.mapContainer div {
    padding: 0.5rem;
    max-height: 90vh;
    overflow-y: auto;
}

.mapContainer #map {
    flex: 1;
    min-width: 350px;
}

.mapContainer td,
.mapContainer td div {
    font-size: smaller;
    padding: 0.5em;
}

#mapid {
    height: 90vh;
}

#mapid .legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: rgba(255, 255, 255, 0.75);
    margin: 0.5em;
    padding: 0.25em 0.5em;
    border-radius: 4px;
    max-height: 75vh;
    overflow: auto;
}

#mapid .legend > * {
    margin: 0 0.5em;
}

#mapid .legend tr:hover {
    background-color: lightgrey;
}

#mapid .legend td {
    padding: 0.25em;
    vertical-align: baseline;
}

#mapid .leaflet-control-layers-toggle,
#mapid .leaflet-control-easyPrint-button-export {
    display: none;
}

.detall-espai .mapa-foto {
    display: flex;
    flex-flow: row wrap;
}

.detall-espai .mapa-foto > div {
    display: flex;
    flex-flow: column;
}

.detall-espai .mapa,
.detall-espai .foto {
    min-height: 200px;
    flex: 1;
}

.persones-forms-formPersona .llocNaixement {
    display: none;
}

.form-persona-laboral .apartat-soc {
    display: none;
}

.documents {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20em, auto));
}

.documents .document {
    margin: 1rem;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
}

.assistent .nav-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8em, auto));
}

.assistent .nav-tabs::before, .assistent .nav-tabs::after {
    content: none;
}

.assistent .nav-tabs > li {
    display: grid;
    grid-auto-rows: min-content;
    justify-items: center;
    padding: .5em 0 0 0;
}

.assistent .nav-tabs > li a {
    padding: .5em 1em 0;
    height: initial;
}

.assistent .nav-tabs > li a p {
    text-align: center;
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assistent .nav-tabs > li a:hover {
    color: initial;
    background-color: initial;
    border: initial;
}

.marc-foto {
    margin-top: .5em;
    width: 2em;
    min-width: 2em;
    height: 2em;
    min-height: 2em;
    border-radius: 50%;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-facebook {
    color: #3b5998;
}

.color-facebook:hover {
    color: #2f477a;
}

.color-twitter {
    color: #00acee;
}

.color-twitter:hover {
    color: #1b87b5;
}

.color-linkedin {
    color: #0e76a8;
}

.color-linkedin:hover {
    color: #0b5e86;
}

.color-instagram {
    color: #3f729b;
}

.color-instagram:hover {
    color: #325b7c;
}

.color-pinterest {
    color: #c8232c;
}

.color-pinterest:hover {
    color: #a01c23;
}

.color-youtube {
    color: #c4302b;
}

.color-youtube:hover {
    color: #9d2622;
}

.color-blog {
    color: #fc4f08;
}

.color-blog:hover {
    color: #ce3e02;
}

.color-ecommerce {
    color: #96bf48;
}

.color-ecommerce:hover {
    color: #799c37;
}

@media print {
    a[href]:after {
        content: none !important;
    }

    .container, .container-fluid {
        width: 100%;
    }

    th.hidden-xs,
    td.hidden-xs {
        display: table-cell !important;
    }

}
