﻿body {
  font-size: .875rem;
}

pre {
    color: inherit;
}

.detail-icon:before {
  content: "+";
}

.svg-inline--fa {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
  margin-right: 0.5em;
}

/*
 * Sidebar
 */

.sidebar {
    width: 180px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100; /* Behind the navbar */
    padding: 48px 0 0; /* Height of navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-show {
    left:0;
}

/*
 * Navbar
 */

.navbar-brand {
    width: 180px;
    padding-top: .75rem;
    padding-bottom: .75rem;
    padding-left: .75rem;
    font-size: 1rem;
    background-color: #e0e0e0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
    font-weight: bold;
}

.rainbow {
    background: linear-gradient(to right, red, orange, yellow, green, cyan, blue, violet);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.powerprice {
    display:none;
}

#version {
    font-size: .6rem;
    -webkit-text-fill-color: #fff;
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

.navbar div {
    padding-right: 0.5em
}


.navbar select {
    background-color: #343a40 !important;
    color: #f8f9fa !important;
    border: none;
}

.navbar a#updatenow {
    line-height: 0.8;
    margin-top: 2px;
    margin-bottom: 3px;
    display: block;
}

.navbar #rigstat h6 {
    min-width: 180px;
}

.navbar #rigtime h6 {
    min-width: 82px;
}

.h-selector {
    cursor: pointer;
}

.h-selector:hover {
    color: #212529;
    background-color: rgba(0,0,0,.075);
}


.navbar div#rigstat, .navbar div#updatemsg, .navbar div#rigrates, .navbar div#rigtime, .hide-on-mobile {
    display: none;
}

@media screen and (min-width: 440px) {
    .navbar div#rigstat {
        display: block;
    }
}

@media screen and (min-width: 600px) {
    .hide-on-mobile {
        display:inline;
    }
}

@media screen and (min-width: 768px) {
    .main {
        padding-right: 40px;
        padding-left: 220px;
    }

    .navbar div#rigtime {
        display: block;
    }

    div#menubutton {
        display:none;
    }
}

@media screen and (min-width: 1024px) {
    .navbar div#rigrates {
        display: block;
    }
}

@media screen and (min-width: 1152px) {
    .navbar div#updatemsg {
        display: block;
    }
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
  .sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
  }
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link-dark {
  color: #AAA;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #999;
}

.sidebar .nav-link.active {
  color: #007bff;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/*
 * Content
 */

[role="main"] {
  padding-top: 48px; /* Space for fixed navbar */
}


/*
 * Utilities
 */

.border-top { border-top: 1px solid #e5e5e5; }
.border-bottom { border-bottom: 1px solid #e5e5e5; }

