/* this is a file which defines CSS classes for the Shiny application. */


/* TODO from KR 2022-11-29 

    - font and heading hierarchies
    */

/* right-align navbar on desktop*/
@media screen and (min-width: 800px) {
  .navbar .nav {
  float: right;
}
}

/* left-align navbar on mobile and tablet-ish */
@media screen and (max-width: 800px) {
  .navbar .nav {
  float: left;
}
}

label {
  font-weight: 300;
  margin-bottom: 0px;
  padding-left: 12px;
}
.form-group {
    margin-bottom: 0px;
}
/* Define the colors and border for the navigation bar at the top */
.navbar-default {
  /*position: fixed;*/
  background-color: #F0EFEC;
  border-bottom: 3px solid #9C978A;
  font-weight: bold;
  /*font-size: 0.875em;*/
  font-size: 20px;
  margin-bottom: 0px;
}

/* Define the font color and weight for when a navigation tab is hovered over */
.navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.active>a:hover {
  color: #9C978A;
  background-color: transparent;
  font-weight: bold;
}

/* Define the font color and weight for when a navigation tab is hovered over */
.navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover {
    color: #9C978A;
  background-color: transparent;
  font-weight: bold;
}

/* Define the font color and weight for when the selected navigation tab (active tab) */
.navbar-default .navbar-nav>.active>a {
  color: #9C978A;
  background-color: transparent;
  padding-bottom: 2px;
  border-bottom: 2px solid #9C978A;
  font-weight: bold;
}


.navbar-default .navbar-nav>li>a {
  color: #76376B;
  font-weight: bold;
  font-size: 20px;
}

.dropdown-menu {
  background-color: #E5E3DF;
  font-size: 18px
}

.dropdown-menu>li>a {
  color: #76376B;
  font-weight: 600;
}

.dropdown-menu>.active>a{
    background-color: #FFF;
    color: #9C978A;
    font-weight: bold;
}

.dropdown-menu>.active>a:focus, .dropdown-menu>.active>a:hover {
  background-color: #FFF;
  color: #76376B;
  font-weight: bold;
}

.dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover {
  background-color: #FFF;
  color: #9C978A;
  font-weight: bold;
}

.nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover {
  
  color: white;
  background-color: #76376B;
  font-family: 'Roboto', sans-serif;
}

.nav-pills > li > a{
  
  border: 0px;
  color: #76376B;
  background-color: white;
  font-family: 'Roboto', sans-serif;
  /*padding: 5px 8px;*/
  /*width: 20vw;*/
  font-size: 12pt;
  font-weight: 600;
  border-radius: 0px;
}

.nav-pills>li+li {
    margin-left:6px;
}

/*html {
  position: relative;
  min-height: 100%; 
}*/

/* Define the background color for the whole app */
body {
  background-color: #F3F3F3;
  /*margin-bottom: 36px; */
}

.footer1 {
  position: fixed;
  bottom: 0;
  height: 26px;
  width: 100%;
  background-color: #9C978A;
  color: white;
  z-index: 1000;
}

.text-footer1 {
  padding-top: 5px;
  text-align: center;
  padding-bottom: 5px;
  font-size: 12px;
  font-family: 'Roboto Light', sans-serif;
  font-weight: bold;
  color: #FFFFFF;
}

.text-footer1 > a {
  color: #FFFFFF;
  font-weight:bold;
  text-decoration: underline;
}

/* Change font family throughout app */

html, body, h2, h3, h4, h5, h6, p {
  font-family: Roboto, sans-serif !important;
}

h1, .h1 {
  font-family: 'Roboto', sans-serif !important;
  font-weight: 300 !important;
}

.navbar {
  position: sticky;
  top: 0px;
  z-index: 2000;
}

/* Change drop-down menu styling */
.bootstrap-select > .dropdown-toggle {
  /*color: #76376B;*/
  color: #000000;
  background-color: #FBE3D5;
  /*border-bottom: 2px solid #76376B;*/
  border-radius: 0px;
  border-left: 0px;
  border-top: 0px;
  border-right: 0px;
  border-bottom: 0px;
  font-weight: 800;
  font-size: 18px;
}

a.action-button {
  font-size: 12pt;
  color: #76376B;
  font-weight: bold;
  padding-left: 10px;
  padding-right: 10px;
}

.methodology-link {
  padding-left: 0px !important;
}

a {
  font-weight: bold;
  color: #76376B;
}

/* CSS for hover-over for reactables*/ 
/* CSS for reactable tooltip on main page */             

[datatitle] {
    position: relative;
    overflow: visible !important;
}

[datatitle]:after {
    content: attr(datatitle);
    background-color: #FBE3D5;
    color: black;
    /*font-size: 80%; */
    font-family: "Roboto", sans-serif;
    /*width:120px; */
    height:max-content;
    padding: 2px 5px 2px 5px;
    /*bottom: -1em;*/
      /*border: 1px solid #eb702d;
      border-radius: 2px; */
    top: 100%;
    position: absolute;
    z-index: 99999 !important;
    visibility: hidden;
    text-align: left;
    white-space: pre-line;
  box-shadow: rgb(235 112 46 / 15%) 1.95px 1.95px 2.6px;
}

/*[datatitle]:hover {
  background-color:#c0efd8;
}*/

/** > [datatitle] { background: black; }*/
  
[datatitle]:hover > div > div > div {
  /*border:2px solid black; */
}

[datatitle]:hover > div > div {
  font-weight: 700;
}

[datatitle]:hover:after {
    opacity: 1;
    transition: all 0.1s ease 0.2s;
    visibility: visible;
}

.Reactable, .ReactTable, .rt-td, .rt-tr, .rt-table {
  overflow: visible !important; 
  
}

.Reactable .rt-table {
  overflow: visible !important; 
} 

.Reactable .rt-td-inner {
  overflow: visible !important;
} 

.rt-td-inner {
   padding-left: 8px;
   padding-top: 4px;
   padding-bottom: 4px;
}

.bar-cell {
  display: flex;
  align-items: center;
}

.number {
  font-family: "Roboto", sans-serif;
  font-size: 13.5px;
  white-space: pre;
  text-align:right;
}

.bar-chart {
  flex-grow: 1;
  margin-left: 6px;
  height: 14px;
}

.bar {
  height: 100%;
}

.orangebox {
  background-color: #FBE3D5;
}

.homepagebox {
  background-size: 140px; 
  background-repeat: no-repeat;
  background-position: center;
  height: 150px; 
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.homepagecard {
  background-color: white;
  height: 100px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  margin-bottom: 10px;
  /*justify-content: center; */
}

.stickyheader {
  position: sticky;
  top: 50px;
  z-index: 1000;
  background-color: #F3F3F3
}


/* boxes */

.box.box-solid.box-primary>.box-header {
color:#000;
background:#ffffff;
}

.box.box-solid.box-primary{
/*border-bottom-color:#7d7470;
border-left-color:#d5d0ca;
border-right-color:#7d7470;
border-top-color:#d5d0ca;*/
border: 0px;
border-radius: 0px;
background:#ffffff
}

.box.box-solid.box-primary>.box-header .btn, .box.box-solid.box-primary>.box-header a {
  color: #76376B;
}
