/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  background-color: #f5f5f5;
}

/* Input overflow fix for radio/checkbox
-------------------------------------------------- */
.radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] {
  margin-left: -19px;
}

/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */
footer .container .text-muted {
  margin: 20px 0;
}


.growl-container.growl-fixed {
    width : auto !important;
}

.navbar-brand {
  background: url(../img/logo-nvkl.png) no-repeat;
  background-size: 60px;
  padding-left: 85px;
  background-position: 17px center;
}

.control-label,
.panel strong,
.form-label {
  color: #007397;
  font-weight: bold;
}

.navbar-inverse .navbar-nav>li>a {
  text-shadow: #00516F 0 -1px 0;
}

h1 i {
  color: #0077a3;
}

h3 {

    margin: 0;
    padding: 0;
    margin-bottom: 20px;
    font-size: 21px;
    line-height: inherit;
    color: #333;
    border-bottom: 2px solid #AAD7E6;
}

.form-inline > div.form-group.has-success .form-control {
  border-color: #008abc;
}

input { box-shadow: none; }
legend { border-bottom: 2px solid #AAD7E6; }
a.label.label-default { background-color: #0077a3; border-radius: 3px; }
a.label.label-default:hover { background-color: #005270; }
a.label.label-default i { color: #fff; }


.form-signin {
    max-width: 330px;
    padding: 15px;
    margin: 0 auto;
}

.form-signin .form-signin-heading,
.form-signin .checkbox {
    margin-bottom: 10px;
}

.form-signin .checkbox {
    font-weight: normal;
}

.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.action-bar {
  margin-bottom: 1em;
}

.export-list-item {
    margin: 0;
}

.export-list-item label {
    display: block;
}

.exportable-installations {
    display: none;
}

.bottom-margin {
    margin-bottom: 20px;
}


.export-report.list-group .list-group-item {
    padding: 0 15px;
}

.export-report.list-group .list-group-item label {
    padding-top: 10px;
    padding-bottom: 10px;
}

div.report-header {
  background: #FFF;
  z-index: 2;
  margin-bottom: 9px;
  overflow: visible;
  -webkit-transition: box-shadow .3s;
  -moz-transition: box-shadow .3s;
  transition: box-shadow .3s;
}

div.report-header.affix + * {
  margin-top: 42px;
}

.report-header.affix {
  box-shadow: 0px 8px 13px -9px;
}

.report-header h4 {
  transition: font-size .3s;
}
.report-header.affix h4 {
  font-size: 1em;
}

.form-group.extra-large textarea {
  min-height: 400px;
}

tr.remove-in-progress td {
  opacity: 0.2;
  background: #FAA;

  -webkit-transition: opacity .3s, background .3s;
  -moz-transition: opacity .3s, background .3s;
  -ms-transition: opacity .3s, background .3s;
  -o-transition: opacity .3s, background .3s;
  transition: opacity .3s, background .3s;
}

.nv-file-over { border: solid 1px green; }


/** Table **/

div.table {
  width: 100%;
  max-width: 100%;
}

div.table > .row {
  margin: 0;
}

div.table .thead {
  font-weight: bold;
}

div.table .thead .column {
  border-top: 0;
  border-bottom: 2px solid #ddd;
  vertical-align: bottom;
}

div.table .column {
  padding: 8px;
  border-top: 1px solid #ddd;
}

div.table .row .column {

}

div.table-striped .row:nth-child(odd) {
  background: #f9f9f9;
}

nvkl-question-image input[type=file] {
  border: 0;
}

.nvkl-question-image .image-preview {
  width: auto;
  min-width: 100px;
  max-height: 100px;
}

.nvkl-question-image .image-preview img {
  max-width: 100%;
  max-height: 100px;
}

nvkl-question-image-list .image-description textarea {
  height: 100px;
}

.statistics-container {
  padding-bottom: 2em;
}

.statistic {
  text-align: center;
}

  .statistic span.count {
    font-size: 4em;
  }

nvkl-question-overridable {
    display: block;
    position: relative;
}

nvkl-question-overridable [nvkl-question] > label {
    display: none;
}

nvkl-question-overridable button.disable-override {
    position: absolute;
    right: 6px;
    top: 6px;
}

nvkl-question-overridable .default-value {
    line-height:34px;
}

.context-section-title {
  display: inline-block;
}

.context-section-title .group-title {
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  line-height: 1.2em; /* fixes chopped of characters */
  vertical-align: top; /* fixes alignment */
}

.context-section-title .groups {
  display: inline-block;
}

.context-section-title .group-container {
  display: none;
}
.context-section-title .group-container.active {
  display: inline-block;
}

.context-section-title .dropdown {
  display: inline-block;
}
.context-section-title .dropdown-menu {
  max-width: 315px;
}
.context-section-title .dropdown-menu a {
  cursor: pointer;
}
.context-section-title .dropdown-menu .dropdown-item-title {
  max-width: 86%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: top;
}
/* On older browsers it looks fine without flexbox */
.context-section-title .dropdown-menu li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.question-group-stats.label {
  font-size: 10.5px; /* Same size as in report header labels. */
  display: inline-block;
  vertical-align: middle;
}

.form-control.ng-invalid {
  border-color: #d43f3a;
}
