html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

/*
 * Blog posts
 */

.blog-post {
    margin-bottom: 60px;
}
.blog-post-title {
    margin-bottom: 5px;
    font-size: 40px;
}
.blog-post-meta {
    margin-bottom: 20px;
    color: #999;
}

/*Timeline*/
.timeline {
    list-style: none;
    padding: 20px 0 20px;
    position: relative;
}

.timeline:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: #eeeeee;
    left: 50%;
    margin-left: -1.5px;
}

.timeline > li {
    margin-bottom: 20px;
    position: relative;
}

.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}

.timeline > li:after {
    clear: both;
}

.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}

.timeline > li:after {
    clear: both;
}

.timeline > li > .timeline-panel {
    width: 46%;
    float: left;
    border: 1px solid #d4d4d4;
    border-radius: 2px;
    padding: 20px;
    position: relative;
    -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
}

.timeline > li > .timeline-panel:before {
    position: absolute;
    top: 26px;
    right: -15px;
    display: inline-block;
    border-top: 15px solid transparent;
    border-left: 15px solid #ccc;
    border-right: 0 solid #ccc;
    border-bottom: 15px solid transparent;
    content: " ";
}

.timeline > li > .timeline-panel:after {
    position: absolute;
    top: 27px;
    right: -14px;
    display: inline-block;
    border-top: 14px solid transparent;
    border-left: 14px solid #fff;
    border-right: 0 solid #fff;
    border-bottom: 14px solid transparent;
    content: " ";
}

.timeline > li > .timeline-badge {
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.4em;
    text-align: center;
    position: absolute;
    top: 16px;
    left: 50%;
    margin-left: -25px;
    background-color: #999999;
    z-index: 100;
    border-top-right-radius: 50%;
    border-top-left-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
}

.timeline > li.timeline-inverted > .timeline-panel {
    float: right;
}

.timeline > li.timeline-inverted > .timeline-panel:before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
}

.timeline > li.timeline-inverted > .timeline-panel:after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -14px;
    right: auto;
}

.timeline-badge.primary {
    background-color: #2e6da4 !important;
}

.timeline-badge.success {
    background-color: #3f903f !important;
}

.timeline-badge.warning {
    background-color: #f0ad4e !important;
}

.timeline-badge.danger {
    background-color: #d9534f !important;
}

.timeline-badge.info {
    background-color: #5bc0de !important;
}

.timeline-heading p {
    margin-top: -2em;
    float: right;
}

.timeline-title {
    margin-top: 0;
    color: #2e6da4;
    font-size: 110%;
}

.timeline-body > p,
.timeline-body > ul {
    margin-bottom: 0;
    font-size: 0.9em;
}

.timeline-body > p + p {
    margin-top: 5px;
}
/*End Timeline*/

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .row .response {
    float: none;
    position: fixed;
    background: rgba(255,255,255, 0.85);
    bottom: 0;
    left: 15%;
    width: auto;
    max-height: 80%;
	overflow-y: auto;
    padding: 1rem;
    z-index: 999;
    border: 1px;
    -webkit-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.59);
    -moz-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.59);
    box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.59);
    border-radius: 2px 2px 0 0;
  }
}

@media screen and (min-width: 1025px) {
  .row .response {
    float: none;
    position: fixed;
    background: rgba(255,255,255, 0.85);
    bottom: 0;
    left: 25%;
    /*left: 50%;*/
    width: auto;
    max-height: 80%;
	overflow-y: auto;
    padding: 1rem;
    z-index: 999;
    border: 1px;
    -webkit-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.59);
    -moz-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.59);
    box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.59);
    border-radius: 2px 2px 0 0;
  }
}

@media screen and (max-width: 1024px) {
  .row .response .form-response {
    margin: 1rem;
    width: 600px !important;
  }
}

@media screen and (min-width: 1025px) {
  .row .response .form-response {
    margin: 1rem;
    width: 600px;
  }
}

.row .response .form-response textarea {
    width: 100%;
    margin: 1em inherit 0 inherit;

}

.row .response .form-response .boto-enviar {
    margin-top: 1em;
    min-width: 10em;
}

.responses-classic {
    padding: 1em;
}

.responses-classic .panel-title {
    font-weight: bold;
    color: #2e6da4;
}

.responses-classic .panel-body {
    font-size: 0.9em;
}

/*Sidebar*/
.topic-info-list {
  max-width: 350px;
}

.topic-info-list li {
  line-height: 2;
}

.topic-info-list li small {
  float: right;
  font-size: 0.7em;
}

/*
 * Footer
 */

.blog-footer {
    padding: 40px 0;
    color: #999;
    text-align: center;
    background-color: #f9f9f9;
    border-top: 1px solid #e5e5e5;
}
.blog-footer p:last-child {
    margin-bottom: 0;
}

.global-action-button {
    margin-top: 2%;
}

/**
Posem logo diferent quan es contrau el sidebar
 */
/*.logo-mini {
    color: transparent;
    background: url('../img/logo-tmh-topbar_invert.svg') no-repeat;
    background-size: 4.25rem;
    background-position: center;
}*/

.logo-lg {
    color: transparent;
    background: url('../img/logo-tmh-topbar_invert.svg') no-repeat;
    background-size: 12rem;
    background-position: left;
    height: 52px;
}

/**
Slogan del top bar
 */
.slogan-top-bar {
    color: #ffffff;
    font-size: 1.40rem;
    text-transform: uppercase;
    margin-left: 2rem;
    /*padding-top: 10px !important;*/
}

/**
Sobreescriure color header top bar amb RGB TMH
 */
.skin-red-light .main-header .navbar {
    background-color: #c8102e;
}

.skin-red-light .main-header .logo {
    background-color: #c8102e;
    color: #fff;
    border-bottom: 0 solid transparent;
}

.skin-red-light .main-header li.user-header {
    background-color: #c8102e;
}
