/*  Home CSS  */
/**CSS FOR THE RING**/
.card {
    background-color: rgba(57, 181, 74, 0.63);
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    border-radius: 5px; /* 5px rounded corners */
}
.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}
.card-content {
    padding: 2px 16px;
}
.glyphicon-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid white;
  color: white;
  display: inline-table;
  text-align: center;
}
/**CSS FOR ICON WITH NO BACKGROUND COLOR**/

.glyphicon-ring .glyphicon-bordered {
  font-size: 20px;
  vertical-align: middle;
  display: table-cell;
}
/**WITH AN ADDED BACKGROUND COLOR**/

.glyphicon-white {
    margin: 0 auto;
  color: black;
     background: rgba(57, 181, 74, 0.44);
    border: 4px solid #39b54a;
}
.icon-box {
    min-height: 100px;
    text-align: center;
}
.icon-box span {
    vertical-align: middle;
    line-height: 60px;
}
.glyphicon-teal {
  background: teal;
  color: orange;
}
.glyphicon-red {
  background: red;
}
.icon-big {
    font-size: 35px !important;
}
.card-row .card {
    margin-bottom: 20px;
}

.occupancy_over_90 {
  background-color: #ff3333 !important;
}
.occupancy_over_70 {
  background-color: #ffcc33 !important;
}
.occupancy_over_10 {
  background-color: #8bc86f !important;
}
.occupancy_over_5 {
  background-color: #8bc8ff !important;
}
.occupancy_over_0 {
  background-color: #c17329 !important;
}
.occupancy_0 {
  background-color: #ffffff !important;
}
.green {
    background-color: #008000b0 !important;
}
.red {
    background-color: #ff0000c7 !important;
}
.dark-border {
  border-left: 1px solid #a5a5a5 !important;
  border-right: 1px solid #a5a5a5 !important;
  border-top: 1px solid #a5a5a5 !important;
  border-bottom: 0px solid #a5a5a5 !important;
}
.dark-border-foot {
  border-left: 1px solid #a5a5a5 !important;
  border-right: 1px solid #a5a5a5 !important;
  border-top: 1px solid #a5a5a5 !important;
  border-bottom: 1px solid #a5a5a5 !important;
}

.dark-border-sides {
  border-left: 1px solid #a5a5a5 !important;
  border-right: 1px solid #a5a5a5 !important;

}
.combine-row-top {
  border-left: 1px solid #a5a5a5 !important;
  border-right: 1px solid #a5a5a5 !important;
  border-bottom:none !important;
}
.combine-row-bottom {
  border-left: 1px solid #a5a5a5 !important;
  border-right: 1px solid #a5a5a5 !important;
  border-bottom:none !important;
}
.greyed-out {
  background-color: #3c3c3c !important;
  color: red !important;
  border-color: #3c3c3c !important;
}

.greyed-out td {
    border-color: #3c3c3c !important;
}

select.form-control {
    font-size: 16px;
}

/*some stuff for mobile/tablets*/
@media screen and (max-width: 768px) {
  nav {
    width: 100% !important;
    margin-top: 0px !important;
  }
  .panel-body {
    width: 100% !important;
  }
  .navbar-form {
    width: 70%;
    margin-left: 10px;
  }
  .navbar-header button {
    margin-top: 15px;
  }
}


/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    transform: translate(-50%, 0);
    background-color: #a4b9a4; /* Black background color */
    color: #000; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 3050; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    top: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
    visibility: visible; /* Show the snackbar */

/* Add animation: Take 0.5 seconds to fade in and out the snackbar.
However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 3.5s;
    animation: fadein 0.5s, fadeout 0.5s 3.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {top: 0; opacity: 0;}
    to {top: 30px; opacity: 1;}
}

@keyframes fadein {
    from {top: 0; opacity: 0;}
    to {top: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {top: 30px; opacity: 1;}
    to {top: 0; opacity: 0;}
}

@keyframes fadeout {
    from {top: 30px; opacity: 1;}
    to {top: 0; opacity: 0;}
}

.bold-group-perms {
    font-weight: bold;
}

.permissions {
    max-height: 30vh;
    overflow-y: scroll;
}

input[type=checkbox]
{
    vertical-align: middle;
    width: 20px;
}
.permissions label {
    display: contents;
    margin-left: 20px;
    vertical-align: top;
}

.form-check {
    display: flex;
}

.navbar-form .form-control {
    display: block;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.navbar-nav > li > a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

/* loader overlay */
.base_loader_overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
    z-index: 5000; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
}

.base_loader_overlay .loader {
    position: absolute;
    z-index: 6000;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}

.loader {
        border: 5px solid #f3f3f3;
        border-top: 5px solid #39b54a;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        animation: spin 1s linear infinite;
        margin: 0 auto;
    }

@keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }


td[data-click-thru] {
    cursor: pointer;
    text-decoration: underline;
}

.navbar-logged-in {
    width: 100%;
    margin-top: 0;
}

.panel-body {
    width: 100%;
}


table.dataTable.fixedHeader-floating {
    table-layout: auto !important;
    display: block !important;
    overflow-x: auto !important;
    top: 0 !important;
    width: 100% !important;
}

/* Make checkbox align for firefox  */
    @media screen and (min--moz-device-pixel-ratio:0){
        input[type="checkbox"] {
            vertical-align: middle;
            width: 12px;
            margin: 0 10px 0 0;
        }
        input[type="checkbox"]:focus{
            outline: none;
        }
    }

.dataTable > tbody > tr:hover {
    background-color: #b3b0ad;
    cursor: pointer;
}
.dataTable td.hilite_bad {
  background-color: #ff3333;
}
.dataTable td.hilite_bad2 {
  background-color: #dd5555;
}
.dataTable td.hilite_bad3 {
  background-color: #bb7777;
}
.dataTable td.hilite_good {
  background-color: #8bc86f ;
}
.dataTable td.hilite_good2 {
  background-color: #8bc8ff ;
}
.dataTable td.hilite_good3 {
  background-color: #c17329 ;
}

/* STYLING FOR FORM MODALS/TABS */

/* 3 Columns - use full width labels above fields*/
.rcs-3col-div label.control-label {
    text-align:left;
    white-space: nowrap;
}

/* Field Widths */
   form .controls .rcs_medium:not(.radio-inline),
   form .controls :not(.radio-inline) .form-control.rcs_medium
   {
             width: 100%;
             max-width: 340px;
   }
   form .controls .form-control.rcs_narrow:not(.radio-inline),
   form .controls .input-group.rcs_narrow:not(.radio-inline),
   form .controls :not(.radio-inline) .form-control.rcs_narrow
   {
             width: 100%;
             max-width: 160px;
   }
   form .controls .rcs_input_on_select {
        width:80%;
        max-width: 300px;
   }

@media screen and (max-width: 585px) {
   form .controls .rcs_input_on_select {
        max-width: 200px;
   }
}


th { text-transform:capitalize;}

/* In customer_segmentation- toggle choice of date range*/
tr.rcs_inactive {
    opacity:0.5;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
    width: auto;
}

/* Report Threshold Highlighting*/
.report-highlight-success {
  background: green;
  color: white;
}

.report-highlight-warning1 {
  background: orange;
  color: white;
}

.report-highlight-warning2 {
  background: red;
  color: white;
}

input.select2-search__field {
  width: 100% !important;
}