/* For AG-Grid set parent heights - https://www.ag-grid.com/javascript-data-grid/grid-size/#example-example */
html, body, .container-fluid {
  height: 100%;
  width: 100%;
}
.container-fluid{
  height: calc(100% - 55px);
}

/* Bootstrap fixed navbar */

body {
  /* min-height: 1000px; */
  padding-top: 70px;
  /* Bootstrap 3 styles */
  font-size: 14px;
  line-height: 1;
}

.alert {
  line-height: 1.15;
}

.card-header {
  padding: .5rem 1.25rem;
}  

.breeding-cage-card {
  width: calc(100% - 30px);
}

.ag-header-cell-filtered {
  background-color: #f0ad4e !important;
  color: #fff !important;
}

.ag-header-cell-filtered span {
  color: #fff !important;
}

.table-caption { /* align with toolbar elements */
  display: inline-block;
  padding-top: .5rem;
  font-weight: bold;
}

.dropdown-menu{
  max-height: 200px;
  overflow-y: auto;
}

.navbar-dark .navbar-nav .nav-link.help{
  color: #FF851B;
  font-weight: bold;
}

.bootstrap-table .table td, .table th { /* Use nowrap as in Bootstrap 3 based table lib */
  /* line-height: 0.25; */
  white-space: nowrap;
}

.fixed-table-border{
  display: none; /* hide because border looks strange when viewing only 10 items */
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02); 
}

.table-hover tbody tr:hover {
  color: #212529;
  background-color: rgba(0, 0, 0, 0.075);
}

.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .loading-text {
  font-size: 1rem;
  margin-right: 6px;
}

.check {
  color: #dc3545;
  font-weight: 700;
  font-style: italic;
}

body.background { 
  background-image: url('/images/cutemouse.jpg'); 
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-background-size: auto;
  -moz-background-size: cover;
  -o-background-size: cover;
}

fieldset {
  border: 1px solid rgba(0, 0, 0, .125);
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 1px 1px 15px rgba(33, 150, 243, 0.1);
}

legend {
  font-size: 1rem;
  font-weight: 600;
  width: fit-content;
  padding: 0.2em 0.5em;
  border: 1px solid rgba(0, 0, 0, .125);;
  border-radius: 4px;
  background-color: rgba(33, 150, 243, 0.1); 
}

/* Boostrap XS */
@media (max-width: 767px) {
  body.background { /* iOS workaround */
    background-position: center top;
    background-image: url('/images/cutemouse_xs.jpg'); 
  }
}

.transparent {
  background-color: rgba(0,0,0,0.4);
  border-radius: 6px;
  padding: 5px;
  color: #fff;
  margin: 0 0 30px 0;
}

.jumbotron.transparent-light {
  background-color: rgba(220,220,220,0.7);
}

.orange {
  color: #f0ad4e;
}

/*
#toolbar {
  float: right;
  list-style: none;
}

#toolbar li {
  display: inline;
  list-style-type: none;
  padding-right: 10px;  
}
*/
.navbar {
  padding: 0 1rem;
}
.navbar-dark {
    background-color: #333;
    border-color: #080808;
}

.navbar-dark .navbar-brand {
  color: #83d0f2;
}

.navbar-dark .navbar-nav>.active>.nav-link, .navbar-dark .navbar-nav>.active>.nav-link:focus, .navbar-dark .navbar-nav>.active>.nav-link:hover {
    color: #83d0f2;
    background-color: #080808;
}

.navbar-dark .navbar-brand .hover {
  color: #79ccf5;
}

.navbar-nav>li>a {
  padding-top: 15px;
  padding-bottom: 15px;
}

#contact-btn .btn {
  border-color: #8c8c8c;
}

/* forms */
label.required:after {
  content: " *";
  color: red;  
}

/* forms */
th.required:after {
  content: " *";
  color: red;  
}

/* bring back come BS 3 styles */
label {
  font-weight: 600;
}

.honeypot {
  display: none;
}

#toolbar .btn.active {
  border: 1px solid #007bff;
  box-shadow: 0px 0px 10px #007bff;
}

.btn-primary {
  color: #fff;
  background-color: #337ab7;
  border-color: #2e6da4;
}

.btn-primary:hover {
  color: #fff;
  background-color: #286090;
  border-color: #204d74;
}

.btn-default {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}

.btn-default:hover {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

.btn-warning {
  color: #fff;
  background-color: #f0ad4e;
  border-color: #eea236;
}

.btn-warning:hover {
  color: #fff;
  background-color: #ec971f;
  border-color: #d58512;
}

.card-header.bg-warning {
  background-color: #f0ad4e !important;
}

.btn.disabled, .btn[disabled], fieldset[disabled] .btn {
  cursor: not-allowed;
}
/* index page */

#beta{
  height: 33px;
  float: right;
  position: relative;
  bottom: 11px;
}

ul.stats {
  text-align: center;
  list-style: none;
  padding-left: 0px;
  margin: 2rem 0;
}

ul.stats li {
  display: inline-block;
  padding-left: 20px;
}

.circles-text {
  font-size: 20px !important;
}

.circle-value {
  font-weight: bold;
}

#circle-caption-mice, #circle-caption-rats {
  margin-left: 5px;
  color: #001f3f;
}

#circle-caption-cages {
  margin-left: 5px;
  color: #FF4136;
}

#circle-caption-breeding {
  margin-left: 5px;
  color: #4B253A;
}

#circle-caption-samples {
  margin-left: 5px;
  color: #2ECC40;
}

#circle-caption-projects {
  margin-left: 5px;
  color: #85144b
}

.scrolling-check-boxes {
  min-height: 75px;
  max-height: 135px;
  overflow-y: scroll;
  border:1px solid #ccc;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  padding-left: 12px;
}

.scrolling-check-boxes.fixed-height {
  height: 135px;
}

.scrolling-check-boxes label{
  font-weight: normal;
}

.searched {
  background-color: blanchedalmond;
  color: black !important; /* overwrite select list color */
}

/*
#search-form select, #form select {
  color: #999;
}
*/

#search-form select.changed, #form select.changed {
  color: #555;
}

/* spinner */
.glyphicon-refresh-animate {
  -animation: spin .7s infinite linear;
  -webkit-animation: spin2 .7s infinite linear;
}

@-webkit-keyframes spin2 {
    from { -webkit-transform: rotate(0deg);}
    to { -webkit-transform: rotate(360deg);}
}

@keyframes spin {
    from { transform: scale(1) rotate(0deg);}
    to { transform: scale(1) rotate(360deg);}
}

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

/* match font awesome icon with bootstrap card */
.card-title .fa-envelope{
  color: #555;
}

/* typehead */
label.typeahead-position-fix { /* issue 52: for input fields without a label the suggesions cover the whole input field */
  width: 50px;
}

.typeahead, .tt-query, .tt-hint {
  width: 396px;
  border: 1px solid #CCCCCC;
  outline: medium none;
  padding: 2px 2px 0px 6px;
  width: 100%;
}

span.twitter-typeahead .tt-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  list-style: none;
  /* font-size: 14px; */
  text-align: left;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  background-clip: padding-box;
}

span.twitter-typeahead .tt-suggestion {
  display: block;
  padding: 5px 10px;
  margin-bottom: 0px;
  clear: both;
  font-weight: normal;
  color: #333333;
  white-space: nowrap;
}

span.twitter-typeahead .tt-suggestion:hover,
span.twitter-typeahead .tt-suggestion:focus {
  color: #000;
  text-decoration: none;
  outline: 0;
  background-color: #fefcd3;
}

/*div.tt-suggestion:nth-child(even) {
  background: #f9f9f9;
}
*/
span.twitter-typeahead .tt-suggestion.tt-cursor {
  color: #000;
  background-color: #fefcd3;
}

span.twitter-typeahead {
  width: 100%;
}

.input-group span.twitter-typeahead {
  display: block !important;
}

.input-group span.twitter-typeahead .tt-dropdown-menu {
  top: 32px !important;
}

.input-group.input-group-lg span.twitter-typeahead .tt-dropdown-menu {
  top: 44px !important;
}

.input-group.input-group-sm span.twitter-typeahead .tt-dropdown-menu {
  top: 28px !important;
}

.no-suggestion {
  margin: 5px;
}

.badge.mouse-count {
  margin-left: 10px;
}

span.twitter-typeahead div.tt-dataset div.tt-suggestion:hover {
  cursor: pointer;
}

/* no longer used because suggesions are now filttered instead of disabled
span.twitter-typeahead div.tt-dataset div.tt-suggestion.disabled div {
  background-color: #eee;
  color: #aaa;
  cursor: not-allowed;
}
*/

span.twitter-typeahead div.tt-dataset div.tt-suggestion.count-warning div.count {
  color: red;
}

/* display suggestions for cage, mother, and father as table */
span.twitter-typeahead div.tt-dataset {
  display: block;
  overflow-y: auto;
  max-height: 200px;
}
span.twitter-typeahead div.tt-dataset div.tt-suggestion.table-row {
  display: table-row;
}
span.twitter-typeahead div.tt-dataset div.tt-suggestion.table-row.header {
  font-weight: bold;
}
span.twitter-typeahead div.tt-dataset div.tt-suggestion.table-row.header:hover {
  cursor: auto;
}
span.twitter-typeahead .tt-dataset div.tt-suggestion.table-row div {
  display: table-cell;
  padding: 5px;
  color: gray;
  border-bottom: 1px solid #ddd;
}
span.twitter-typeahead div.tt-dataset div.tt-suggestion.table-row.header div{
  border-bottom: 1px solid #555;
}
span.twitter-typeahead .tt-dataset div.tt-suggestion.table-row div:first-child {
  font-weight: bold;
  color: #555;
}
span.twitter-typeahead .tt-dataset div.tt-suggestion.table-row:last-child div {
  border-style: none;
}
span.twitter-typeahead .tt-dataset div.tt-suggestion.table-row.dead div {
  color: #dc3545;
}

/* import */
.invalid {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}

.invalid .error {
  font-weight: bold;
  /*font-style: italic;*/
}

.hide-it {
  display: none;
}

#notes {
  height: calc(1.5em + .75rem + 2px);
}

.float-right {
  float: right;
}

#forgot-password {
  float: right;
  margin-top: 5px;
}

#forgot-password a {
  color: #333;
}

.jumbotron {
  background-color: #eee;
}

.datepicker td, .datepicker th {
  padding: 5px;
}


/* http://1000hz.github.io/bootstrap-validator only suport  Bootstrap 3 - add styles for Bootstrap 4 */
.has-error .checkbox, .has-error .checkbox-inline, .has-error .control-label, .has-error .help-block, .has-error .radio, .has-error .radio-inline, .has-error.checkbox label, .has-error.checkbox-inline label, .has-error.radio label, .has-error.radio-inline label {
  color: #a94442;
}

.has-error .form-control {
  border-color: #a94442;
}

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

.has-error .input-group-prepend .input-group-text{
  color: #a94442;
  background-color: #f2dede;
  border-color: #a94442;
}

/* cage cards with drag & drop */
#cost {
  font-size: 100%;
}

.dragicon {
  font-size: 90%;
}

tr[draggable="true"] {
  cursor: move;
}

.search-help {
  margin: 12px 0 0 5px;
  cursor: help;
}

#confirmation {
  margin-top: 10px;
  display: none;
}

.card {
  box-shadow: 3px 3px 10px #888888;
}

.card.active-drop-zone {
  border: 1px solid lightskyblue;
  /* background-color: lightskyblue; */
  box-shadow: 5px 5px 15px lightskyblue;
}

.origin-of-drag-element {
  opacity: .5;
  background-color: lightskyblue !important;
}

/* Bootstrap sets flex: 1 0 0% which doesn't allow the card to grow and shows a horizontal scrollbar which is particular bad for the print view */
.card-deck .card {
  flex: 1 0 auto;
}

.card-header.with-content h5{
  display: inline-block;
  margin-right: 0.9rem;
}

/* genotype colors */

.genotype-WT {
  color: #FFFFFF;
  background-color: #0074D9;
}

.genotype-HET {
  color: #FFFFFF;
  background-color: #28a745;
}

.genotype-HOM {
  background-color: #FFDC00;
}

.check-pregnancy-reminder, .check-litter-reminder {
  color: #dc3545;
  font-weight: 700;
  font-style: italic;
}

.check-pregnancy-reminder::before, .check-litter-reminder::before, .check-weaning-reminder::before {
  content: "Check";
}

/* nicer default colors */

.navy { color: #001F3F; }
.blue { color: #0074D9; }
.aqua { color: #7FDBFF; }
.teal { color: #39CCCC; }
.olive { color: #3D9970; }
.green { color: #2ECC40; }
.lime { color: #01FF70; }
.yellow { color: #FFDC00; }
.orange { color: #FF851B; }
.red { color: #FF4136; }
.fuchsia { color: #F012BE; }
.purple { color: #B10DC9; }
.maroon { color: #85144B; }
.white { color: #FFFFFF; }
.silver { color: #DDDDDD; }
.gray { color: #AAAAAA; }
.black { color: #111111; }
  

/* print styles */

.print-header{
  display: none;
}

@media print {
  body {
    margin-top: 10px;
    padding-top: 0;
  }
  .container-fluid.print-header {
    display: block;
    height: 10px;
    margin-bottom: 1rem;
  }
  .print-header .date, .print-header .user {
    font-weight: 700;
    font-style: italic;
  }
  .card-deck {
    break-inside: avoid;
  }
  .ag-checkbox-input-wrapper, .ag-drag-handle {
    display: none !important; 
  }
  .bootstrap-table .fixed-table-container .fixed-table-body {
    overflow: visible;
  }
  .badge {
    color: black;
    background-color: white;
  }
  a:not(.btn){
    color: black;
    text-decoration: none;
  }
}

/* match styles for custom filter component with alpine theme */

select.ag-input-field-input {
  border-color: #babfc7;
  border-radius: 3px;
  padding: 1px 2px;
}

select.ag-input-field-input:focus {
  outline: none;
  -webkit-box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);
          box-shadow: 0 0 2px 0.1rem rgba(33, 150, 243, 0.4);
  border-color: rgba(33, 150, 243, 0.4);
  border-color: var(--ag-input-focus-border-color, rgba(33, 150, 243, 0.4));
}