/***************************************
    general page colors:
    color: #80E800;
    color: #73AE2C;
    color: #539700;
    color: #A1F43D;
    color: #B7F46E;
***************************************/
.label-danger {
    background-color: #d9534f !important;
}

hidden {
  visibility: hidden;
  position: absolute;
}

body {
  background-color: #f7feef;
}

h1, h2, h3, h4 {
  color: #539700;
}

a, .ui-widget-content a, .leaflet-container .leaflet-popup-content>a, .pagination>a {
  color: #539700;
}

.btn-danger {
  color: #fff !important;
}

.btn {
  border-radius: 5px !important;
}

.alert-info {
  background-color: #539700;
  color: #FFFFFF;
}

.form-control:focus, .ui-inputfield.ui-state-focus, .ui-widget-content .ui-inputfield.ui-state-focus {
  border-color: #539700;
  box-shadow: 0 1px 1px #000000 inset, 0 0 8px #539700;
}

.btn-primary, .badge-primary {
  text-shadow: none;
  background-image: none;
  color: #FFFFFF !important;
  border-color: #FFFFFF;
  background-color: #539700;
}

.btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover,
  .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus,
  fieldset[disabled] .btn-primary:focus, .btn-primary.disabled.focus, .btn-primary[disabled].focus, fieldset[disabled] .btn-primary.focus,
  .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active,
  .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active {
  border-color: #FFFFFF;
  background-color: #539700;
}

.ui-state-active, .ui-state-hover, .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .open .dropdown-toggle.btn-primary,
  .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open>.dropdown-toggle.btn-primary, .badge-primary:hover {
  background-color: #B7F46E;
  border-color: #000000;
  color: #000000 !important;
}

.thumbnail {
  padding: 15px;
}

.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {
  border: 1px solid #a94442 !important;
}

.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
  background-color: #539700;
  background-image: linear-gradient(to bottom, #B7F46E, #539700);
}

h5 {
  font-weight: 700;
}

.ui-editor iframe {
  background-color: #f5f5f5;
}

textarea {
  resize: none;
}

@media ( max-width : 767px) {
  div.col-xs-1, div.col-sm-1, div.col-md-1, div.col-lg-1, div.col-xs-2, div.col-sm-2, div.col-md-2, div.col-lg-2, div.col-xs-3,
    div.col-sm-3, div.col-md-3, div.col-lg-3, div.col-xs-4, div.col-sm-4, div.col-md-4, div.col-lg-4, div.col-xs-5, div.col-sm-5,
    div.col-md-5, div.col-lg-5, div.col-xs-6, div.col-sm-6, div.col-md-6, div.col-lg-6, div.col-xs-7, div.col-sm-7, div.col-md-7,
    div.col-lg-7, div.col-xs-8, div.col-sm-8, div.col-md-8, div.col-lg-8, div.col-xs-9, div.col-sm-9, div.col-md-9, div.col-lg-9,
    div.col-xs-10, div.col-sm-10, div.col-md-10, div.col-lg-10, div.col-xs-11, div.col-sm-11, div.col-md-11, div.col-lg-11,
    div.col-xs-12, div.col-sm-12, div.col-md-12, div.col-lg-12 {
    padding-right: 0px;
    padding-left: 0px;
  }
  #headline {
    padding-right: 15px;
    padding-left: 15px;
  }
}

/***************************************
    trackbib-font icons
***************************************/
@font-face {
  font-family: 'trackbib-font';
  src: url("/javax.faces.resource/fonts/trackbib-font.eot.html?ln=trackbib");
  src: url("/javax.faces.resource/fonts/trackbib-font.eot.html?ln=trackbib?#iefix") format('embedded-opentype'),
    url("/javax.faces.resource/fonts/trackbib-font.woff.html?ln=trackbib") format('woff'),
    url("/javax.faces.resource/fonts/trackbib-font.ttf.html?ln=trackbib") format('truetype'),
    url("/javax.faces.resource/fonts/trackbib-font.svg.html?ln=trackbib#trackbib-font") format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="trackbib-"], [class*=" trackbib-"] {
  font-family: 'trackbib-font';
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.trackbib-logo:before {
  content: "\e600";
}

/***************************************
    error logo
***************************************/
.error-logo {
  font-size: 25em;
}

/***************************************
    menu bar
***************************************/
body {
  padding-top: 70px;
}

.navbar-brand .trackbib-icon {
  font-size: 46px;
}

.navbar-trackbib {
  background-color: #73AE2C;
  border-color: #f7feef;
}

.navbar-trackbib .navbar-brand {
  color: #FFFFFF !important;
  padding: 2px 15px;
}

.navbar-trackbib .navbar-brand:hover, .navbar-trackbib .navbar-brand:focus {
  color: #B7F46E !important;
}

.navbar-trackbib .navbar-nav>li>a {
  color: #FFFFFF !important;
}

.navbar-trackbib .navbar-nav>li>a:hover, .navbar-trackbib .navbar-nav>li>a:focus {
  background-color: #B7F46E;
  color: #000000;
}

.navbar-trackbib .navbar-nav>.active>a, .navbar-trackbib .navbar-nav>.active>a:hover, .navbar-trackbib .navbar-nav>.active>a:focus
  {
  background-color: #f7feef;
  color: #000000 !important;
}

.navbar-trackbib .navbar-toggle {
  border-color: #FFFFFF;
}

.navbar-trackbib .navbar-toggle:hover, .navbar-trackbib .navbar-toggle:focus {
  background-color: #B7F46E;
}

.navbar-trackbib .navbar-toggle .icon-bar {
  background-color: #FFFFFF;
}

.navbar-trackbib .navbar-collapse, .navbar-trackbib .navbar-form {
  border-color: #FFFFFF;
}

.navbar-trackbib .navbar-nav>.open>a, .navbar-trackbib .navbar-nav>.open>a:hover, .navbar-trackbib .navbar-nav>.open>a:focus
  {
  background-color: #B7F46E;
  color: #000000;
}

@media ( max-width : 768px) {
  .navbar-trackbib .navbar-nav .open .dropdown-menu>li>a {
    color: #FFFFFF;
  }
  .navbar-trackbib .navbar-nav .open .dropdown-menu>li>a:hover, .navbar-trackbib .navbar-nav .open .dropdown-menu>li>a:focus
    {
    background-color: #B7F46E;
    color: #000000;
  }
}

.navbar-trackbib .dropdown-menu {
  background-color: #73AE2C;
}

.navbar-trackbib .dropdown-menu>li>a {
  color: #FFFFFF !important;
}

.navbar-trackbib .dropdown-menu>li>a:hover, .navbar-trackbib .dropdown-menu>li>a:focus {
  background-color: #B7F46E;
  color: #000000;
}

.navbar-trackbib .dropdown-menu>.active>a, .navbar-trackbib .dropdown-menu>.active>a:hover, .navbar-trackbib .dropdown-menu>.active>a:focus
  {
  background-color: #f7feef;
  color: #000000 !important;
}

h1.headline:before, h2.headline:before, h3.headline:before, h4.headline:before, h5.headline:before {
  display: block;
  content: " ";
  margin-top: -70px;
  height: 70px;
  visibility: hidden;
}

.ui-growl {
  margin-top: 50px;
  z-index: 1031 !important;
}

/***************************************
    sticky footer
***************************************/
#footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #73AE2C;
}

#footer>.container>.credit {
  margin: 20px 0;
  color: #B7F46E;
}

#footer>.container>.text-muted>a {
  color: #FFFFFF;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 80px;
}

/***************************************
    popover
***************************************/
.helper {
  padding: 3px 6px;
  vertical-align: top;
  cursor: pointer;
}

.helper:hover {
  background-color: #6F6A6A;
}

.popover-title {
  font-weight: bold;
}

.popover {
  z-index: 2010;
}

/***************************************
    error/info message dialogs
***************************************/
.ui-widget {
  font-size: 1em;
}

.ui-messages-info, .ui-message-info {
  color: #3C763D;
  background-color: #DFF0D8;
  border-color: #D6E9C6
}

/***************************************
    affix
***************************************/
.affix {
  position: static;
}

@media ( min-width : 768px) {
  .affix {
    position: fixed;
  }
  .sidebar {
    padding-left: 20px;
  }
}

.sidebar .nav>li>a {
  color: #999999;
  /* display: block;*/
  font-size: 13px;
  font-weight: 500;
  padding: 4px 20px;
}

.nav-sidenav {
  margin-bottom: 20px;
  margin-top: 20px;
}

.sidebar .nav>li>a:hover, .sidebar .nav>li>a:focus {
  background-color: #FFFFFF;
  border-left: 1px solid #539700;
  color: #539700;
  padding-left: 19px;
  text-decoration: none;
}

.sidebar .nav>.active>a, .sidebar .nav>.active:hover>a, .sidebar .nav>.active:focus>a {
  border-left: 2px solid #539700;
  color: #539700;
  font-weight: 700;
  padding-left: 18px;
}

.sidebar .nav .nav {
  display: none;
  padding-bottom: 10px;
}

.sidebar .nav .nav>li>a {
  font-size: 12px;
  font-weight: 400;
  padding-bottom: 1px;
  padding-left: 30px;
  padding-top: 1px;
}

.sidebar .nav .nav>li>a:hover, .sidebar .nav .nav>li>a:focus {
  padding-left: 29px;
}

.sidebar .nav .nav>.active>a, .sidebar .nav .nav>.active:hover>a, .sidebar .nav .nav>.active:focus>a {
  font-weight: 500;
  padding-left: 28px;
}

.sidebar>.nav-sidenav>li>.nav-support:hover {
  border-left: none;
}

@media ( min-width : 992px) {
  .sidebar .nav>.active>ul {
    display: block;
  }
}

/***************************************
    Select One Menu with icon
***************************************/
.select-one-menu-with-icon td:nth-child(1) {
  width: 5px !important;
}

/***************************************
    Data Scroller
***************************************/
.no-thumbnail .ui-widget-content {
  border: none;
}

/***************************************
    Sortable Image List
***************************************/
.sortable-poi-list {
  list-style-type: none;
}

.sortable-poi-list .panel-title {
  float: left;
}

.sortable-poi-list .panel-body {
  padding: 0;
  overflow: hidden;
  position: relative;
  height: 150px;
}

.edit-poi-modal-delete-btn {
  position: absolute;
  right: 25px;
  bottom: 25px;
}

.sortable-poi-list a:hover img {
  opacity: 0.5;
}

.sortable-poi-list img {
  height: 100% !important;
  position: absolute;
  left: 50%;
  display: block;
  max-width: none !important;
  transform: translateX(-50%);
}

.poi-panel-location-indicator {
  position: absolute;
  margin-top: 22px;
  right: 4px;
}

.triangle-bottom-right {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-bottom: 45px solid #539700;
  border-left: 45px solid transparent;
  color: #FFFFFF !important;
}

.triangle-bottom-right:hover {
  border-bottom-color: #B7F46E;
  color: #000000 !important;
}

.shortened-text {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.sortable-poi-list .shortened-text {
  float: left;
  max-width: 90%;
  margin-right: 5px;
}

/***************************************
    Edit POI modal
***************************************/
.modal-editor {
  padding-top: 35px;
  padding-right: 5px;
}

/***************************************
    Statistic
***************************************/
.table-borderless-top tbody tr:first-child td {
  border: none;
}

.modification-date {
  position: absolute;
  bottom: 0px;
  right: 4px;
  font-size: 11px;
  color: #999999;
  text-align: right;
}

/***************************************
    Accordion
***************************************/
.ui-accordion .ui-accordion-header {
  background-color: #f5f5f5;
  background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
}

.ui-accordion>h3 {
  font-weight: bold;
}

.ui-accordion .ui-accordion-header.ui-state-active {
  margin-bottom: 2px;
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ui-accordion .ui-accordion-header .ui-icon {
  display: block;
}

/***************************************
    Select One Menu
***************************************/
.ui-selectonemenu-panel {
  z-index: 2010 !important;
}

/***************************************
    Edit Tour
***************************************/
.tour-description-editor {
  margin-bottom: 20px;
}

.btn-margin-left {
  margin-left: 5px;
}

.space-right {
  padding-right: 3px;
}

/***************************************
    Carousel
***************************************/
.no-control-shadow .carousel-control {
  background-image: none;
}

/***************************************
    Modal Image
***************************************/
.modal img {
  width: 100%;
}

.modal {
  z-index: 2010;
}

.big-triangle {
  border-bottom-width: 60px;
  border-left-width: 60px;
}

.big-triangle .poi-panel-location-indicator {
  margin-top: 33px;
  right: 8px;
}

/***************************************
    Tour View
***************************************/
.empty-message {
  display: none;
}

.empty-message:last-child {
  display: block;
}

.comment-list {
  list-style: none;
  padding-left: 0;
}

.comment-list > li {
  padding: 10px;
}

.comment-list > hr {
  margin-top: 5px;
  margin-bottom: 5px;
}

.create-comment-form {
  padding: 0;
}

.stage-text {
  padding-top: 10px;
  padding-bottom: 10px;
}

.subscribe-btn {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 2em !important;
  padding-bottom: 0px;
  padding-left: 9px;
  padding-right: 6px;
  padding-top: 5px;
  border: 0;
  color: #D3D3D3 !important;
}

.subscribe-btn:hover, .subscription-active {
  color: #539700 !important;
}

.download-modal-form .checkbox>label, .download-modal-form .form-group>label {
  font-weight: bold;
}

.download-modal-footer .checkbox {
  float: left;
}

.download-modal-footer .checkbox>label {
  font-weight: bold;
}

@media ( min-width : 768px) {
  .download-modal-form .form-control {
    width: auto;
  }
  #downloadForm-inputMapScale {
    width: 100px;
  }
  #downloadForm-inputMapPadding {
    width: 50px;
  }
  .bottom-space {
    padding-bottom: 40px;
  }
}

#downloadForm-inputStages {
  clear: none;
}

.modal-map {
  height: 300px;
}

.request-download-error {
  padding-right: 0;
}

/***************************************
    Cookie Consent Popup
***************************************/
#cookie-popup {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background-color: #777;
  color: #fff;
  padding: 10px;
  z-index: 1030;
  opacity: 0.9;
  text-align: center;
}

#cookie-popup>a {
  color: #80E800;
  font-weight: bold;
}

#cookie-popup .btn {
  margin-left: 5px;
}

/***************************************
    Tour List
***************************************/
.label-success {
    background-color: #5cb85c !important;
}

.table>tbody>tr>td {
  vertical-align: middle;
}

div.loader {
  text-align: center;
}

.glyphicon-star:before, .glyphicon-star-empty:before {
  font-size: 1.2em;
}

.inactive {
  color: grey;
}

.order-param:hover {
  cursor: pointer;
  background-color: #f5f5f5;
}

.order-param>span {
  opacity: 0;
}

.order-param.active>span {
  opacity: 1;
}

tbody:empty {
    margin-bottom: 20px;
    display: block;
}

tbody:empty:after {
  position: absolute;
  left: 15px;
}

/***************************************
    Search Filter
***************************************/
@media ( min-width : 768px) {
  .form-vertical {
    padding-right: 0;
    padding-left: 0;
  }
  .form-vertical .btn-block {
    display: inline-block;
  }
}

/***************************************
    Tiles
***************************************/
.tile-header {
  border: 1px solid #FFFFFF;
  padding: 0px;
  text-align: center;
}

.tile-header a {
  padding: 0;
}

.tile-header a img {
  max-height: 65vh;
}

.tile-header:hover a img {
  opacity: 0.5;
}

@media ( min-width : 768px) {
  .tile-header a h1 {
    position: absolute;
    font-size: 3.5em;
    padding-top: 20px;
    top: 60%;
    bottom: 0%;
    left: 0%;
    right: 0%;
  }
}

@media ( min-width : 992px) {
  .tile-header a h1 {
    visibility: hidden;
    font-size: 4em;
  }
}

.tile-header a h1 {
  margin: auto;
  color: #000000;
  text-shadow: 0 0 25px #FFFFFF;
  font-weight: bold;
}

.tile-header:hover a h1 {
  visibility: visible;
}

.tiles {
  background-color: #73AE2C;
  padding: 0;
}

.tiles>div {
  flex: 1;
  padding: 10px;
  border-right: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
}

.tiles a {
  color: #FFFFFF;
  font-size: 1.2em;
  text-align: center;
}

.tiles>div:hover {
  background-color: #B7F46E;
}

.tiles>div:hover a {
  color: #000000;
  text-decoration: none;
}

.tiles .glyphicon {
  font-size: 2em;
}

.tiles .glyphicon-star {
  font-size: 1.65em;
}

.tiles .trackbib-icon {
  font-size: 2em;
}

/***************************************
    Pagination
***************************************/
.pagination {
  display: block;
}

.pagination > div {
  text-align: center;
  width: 85px;
  display: inline-block;
  vertical-align: top;
  cursor: default;
  padding: 0;
  border: 0;
}

.pagination > div > * {
  width: 100%;
}

.btn-group > .btn:not (:first-child ):not (:last-child ):not (.dropdown-toggle ) {
  border-radius: 0 !important;
}

.pagination .btn-group > .btn {
  height: 30px;
}

.btn-group > a > .glyphicon-arrow-right, .btn-group > a > .glyphicon-arrow-left {
  margin-top: 5px;
}

.btn-group > .btn-danger {
  margin-left: 23px;
}

.btn-group > a ~ .btn-danger {
  margin-left: 0;
}

.pagination > div > a > div {
  border: 1px solid rgb(221, 221, 221);
  padding: 5px;
  height: 64px;
  position: relative;
}

.pagination div.active > a > div {
  background-color: #539700;
  border-color: #539700;
}

.pagination div > a > div > span {
  position: absolute;
  bottom: 5px;
  left: 5px;
  right: 5px;
}

.pagination div:not(.active ):hover > a > div {
  background-color: #B7F46E;
}

.pagination > .btn-default.active {
  background-color: #fff;
  -webkit-box-shadow: none;
  box-shadow: none;
}
}

/***************************************
    User Profile
***************************************/
.double-glyphicon > span:nth-child(2) {
  left: -6px;
}
.double-glyphicon > span:nth-child(3) {
  left: -6px;
  position: relative;
}

.top-aligned {
  vertical-align: top;
}

/***************************************
    Manage Groups
***************************************/
.badge-primary a {
  color: #fff;
  font-size: 1.5em;
}

.badge-primary:hover a {
  text-decoration: none;
  color: #000000 !important:
}

.clickable:hover {
  cursor: pointer;
}

/***************************************
    Manage Tours
***************************************/
.btn-stacked {
    margin-top: 0 !important;
}

.tour-container {
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 20px;
}

/***************************************
    Select Many Checkbox
***************************************/
.select-many-checkbox {
  margin-top: -5px;
}

/***************************************
    Messages
***************************************/

.chat-list {
  overflow: hidden;
}

.chat-list ul {
  list-style: none;
  padding: 0;
  max-height: 65vh;
  overflow: hidden;
  overflow-y: auto;
}

.chat-list ul:empty {
  overflow: visible;
  overflow-y: visible;
}

.chat-list ul:empty::after {
  content: "No messages available. Use the button above to create a new message."
}

.chat-list .badge {
  vertical-align: middle;
}

.chat-list li {
    display: inline-block;
    width: 100%;
    padding: 10px;
    float: left;
}

.chat-list li:hover, .chat-list li.active {
  background-color: #B7F46E !important;
}

.chat-list li:hover {
  cursor: pointer;
}

.chat-list #btnNewChat {
  position: absolute;
  right: 15px;
  top: 15px;
}

.chat-list li:nth-child(n+2) {
  border-top: 1px solid grey;
}

.chat-list li:nth-child(even) {
  background-color: #f5f5f5;
}

.chat-name {
  float: left;
  width: 70%;
  font-weight: bold;
}

.message-age {
  float: right;
  font-size: 0.9em;
}

.last-chat-message {
  float: left;
  width: 100%;
  margin-top: 5px;
}

.chats-unread {
  color: #111;
  background-color: #f8f9fa;
}

.unread-chat {
  background-color: #539700 !important;
  color: #FFFFFF;
  border: 1px solid #FFF
}

.messages-column { 
  max-height: 74vh;
}

.messages-panel {
  position: absolute;
  top: 63px;
  bottom: 150px;
  left: 0;
  right: 0;
  overflow: hidden;
  overflow-y: auto;
}

#formMessages {
  height: 100vh;
}

.message {
  overflow: hidden;
  margin-right: 5px;
  margin-bottom: 5px;
  margin-left: 5px;
}

.message > div {
  background-color: #ebebeb;
  float: left;
  border-radius: 5px;
  padding: 10px;
}

.message-author, .last-chat-message {
  font-size: 0.9em;
  line-height: 0.9em;
}

.own-message > div {
  float: right;
}

.send-message-form {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.send-message-form {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.send-message-form .editor {
  height: 150px;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.send-message-form .btn-send-sessage {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.loading-bar {
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}
