html,
body {
  /*width: 90%;
  height: 100%;*/
}

body {
  background: #f5f7fa;
  padding: 0;
  margin : 0;
  box-sizing: border-box;
  font-family: Montserrat, sans-serif;
  color: #51565d;
  min-width: 700px;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    'header'
    'navigation'
    'main'
    'footer';

}

a {
  text-decoration: none;
  color:inherit;
  padding-left: 1px;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1;
}

.masthead {
	grid-template-columns: 200px 1fr 175px;
}

.navigation {
  grid-area: navigation;
  background: #f5f7fa;
  margin-bottom: .2rem;
}

.buttons-options,
.sort-options {
  display: flex;
  justify-content: center;
  padding: 5px 0 5px;
  color: #ACAEB0;
}

.btn-role,
.btn-sort,
.btn-show {
  font-size: .8em;
  padding: 2px;
  margin: 0 5px;
  border-radius: 8px;
  border: 1px solid #5C5C5C;
  width: 150px;
  text-align: center;
}

.buttons-options .selected {
  background-color: #71CC98;
  color: white;
}

.btn-sort.selected {
  background-color: #009CDE;
  color: white;
}

.btn-show.selected {
  background-color: #DF4661;
  color: white;
}


.btn-role:hover,
.btn-sort:hover,
.btn-show:hover {
  color: #5C5C5C ;
  cursor: pointer;
}

.btn-role.selected:hover,
.btn-sort.selected:hover,
.btn-show.selected:hover {
  color: white ;
  cursor: pointer;
}


.datepicker img {
  display: inline;
  width: 16px;
  height: 16px;
}

#datePrev:hover,
#dateNext:hover {
  color: #009CDE;
  cursor: pointer;
}

.center-block {
  /* display: block;
  margin-right: auto;
  margin-left: auto; */
  text-align: center;
}

.datepicker-day, .datepicker-date {
  border: none;
  font-family: Montserrat, sans-serif;
  font-size: 1em;
  font-weight: 400;
  color: #51565d;
  background-color: inherit;
}

.datepicker-date:hover {
  color: #009CDE ;
  cursor: pointer;
  text-decoration: underline;
}

.main-content {
  display:block;
  margin: 0 5% 100px 5%;
  overflow: hidden;
}

.page-format-browser {
  min-width: 780px;
  background-color: #f5f7fa;
  overflow: hidden;
}

.map-date {
  width: 80%;
  margin: auto;
  min-width: 600px;
  max-width: 800px;
  text-align: center;
  border: 2px solid gray;
  border-radius: 10px;
}

.map-date h1, h4 {
  margin: 5px 20% 5px 20%;
}

.map-date h4 {
  margin-top: -5px;
}

.staff-consults {
  display: flex;
  justify-content: center;
  /* grid-template-columns: 20% 1fr 10px 1fr 20%; */
  /*grid-gap: 10px;*/
  font-family: Arial, Helvetica, sans-serif;
  font-size: .6em;
  margin-bottom: 15px;
}


.staff-consults-mpls, .staff-consults-stp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 10px 2px 10px;
  border-radius: 6px;
  width: 150px;
  margin: 0 5px;
}

.staff-consults-mpls {
  background: rgba(246, 205, 129, .5);
  border: 1px solid rgba(208,152,47, .5);
}

.staff-consults-stp {
  background: rgba(148, 239, 214, .5);
  border: 1px solid rgba(31,197,153, .5);
}

.provider-template-container {
  display: grid;
  grid-template-columns: .8em 30px repeat( 5 , 282px ) ;
  grid-gap: 5px;
}

.coverage-map {
  width: 100%;
}

.coverage-map-grid {
  width: 100%;
  margin-top: 10px;
}

.coverage-map > .app,
.coverage-map > .slp,
.coverage-map > .audiologist {
  border-top: 3px dotted #009CDE;
  padding-top: 4px;
}
.coverage-map > .app ~ .app,
.coverage-map > .slp ~ .slp,
.coverage-map > .audiologist ~ .audiologist {
  border: none;
  padding-top: 0;
}

.template-map {
  border: 1px solid gray;
  border-radius: 4px;
  /* width: 100%; */
  /* max-width: 300px; */
}

.template-heading {
  justify-self: center;
}

.template-provider-label{
  /* border: 1px solid red; */
  transform: rotate(-90deg);
  transform-origin: top;
  top: 3em;
  position: relative;
  justify-self: center;
  height: 1.2em;
  font-weight: bold;
}

.template-line {
  /*border: 1px solid green;*/
  width: 98%;
  height: 1em;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 2px 0 2px 0;
  font-weight: bold;
}

.template-line-label {
  display: flex;
  font-weight: normal;
  font-size: .8em;
  font-family: Arial, sans-serif;
}

.provider-line {
  /*border: 1px solid green;*/
  width: 100%;
  display: flex;
  padding: 1px;
  margin: 4px 0;
  font-weight: bold;
}

.provider-name {
  font-weight: normal;
  font-size: 1em;
  width: 150px;
  font-family: Arial, sans-serif;
}

.provider-name:hover {
  cursor:pointer;
}

.provider-line-btn img {
  width: 20px;
  height: 20px;
  padding-right: .5rem;
  opacity: .3;
}
.provider-line-btn:hover img{
  opacity: 1;
}

.tick-mark-label {
  /*border: 1px solid red;*/
  border: transparent;
  text-align: center;
  font-size: .6em;
}

.tick-mark {
  height: auto;
  padding: 0;
  overflow-x: hidden;
}

.horizontal-bar-container {
  /* border: 1px solid red; */
  width: 100%;
  /* height: 1em; */
  display: flex;
}

.duty-bar {
  box-sizing: border-box;
  border-left-width: 3px;
  border-left-style: solid;
  padding: 2px;
  font-size: .8em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  white-space: nowrap;
}

.duty-bar:hover {
  cursor: pointer;
}

.duty-bar div{
  padding: 0 .25em;
}

.duty-bar.hide,
.h-bar.hide {
  visibility: hidden;
}


.empty {
  background: none;
  border-left-color: transparent;
}

.mpls {
  --rgb: 246, 205, 129;
}

.mpls {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(208,152,47);
}

.msp {
  --rgb: 246, 205, 129;
}

.msp {
  --alpha: 1.0;
  background-image: repeating-linear-gradient(180deg, rgba(246,205,129,1), rgba(246,205,129,1) 8px, rgba(148, 239, 214, 1) 0px, rgba(148, 239, 214, 1) 20px);
  border-left-color: rgb(208,152,47);
}

.all-sites {
  --rgb: 96, 149, 117;
}

.all-sites {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(10,96,44);
}

.annex {
  --rgb: 228, 192, 181;
}

.annex {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(227,138,110);
}

.stp {
  --rgb: 148, 239, 214;
}

.stp {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(31,197,153);
}

.mtka {
  --rgb: 132, 138, 239;
}

.mtka {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(82,86,149);
}

.university {
  /*--rgb: 163, 111, 124;*/
  --rgb: 237, 142, 144;
}

.university {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(128,67,83);
}

.wbry {
  --rgb: 99, 171, 151;
}

.wbry {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(66,116,102);
}

.remote {
  --rgb: 230, 230, 230;
}

.remote {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(200, 200, 200);
}

.vac , .cme {
  --rgb: 189, 212, 242;
}

.vac , .cme {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(139, 165, 199);
}

.surgery {
  --alpha: 1;
}

.clinic {
  --alpha: 0.5;
}

.audiology {
  --alpha: 0.4;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0), rgba(0,0,0,0) 17px, rgba(255,255,255,0.75) 0px, rgba(255,255,255,0.75) 20px);
}

.ooo {
  --alpha: 0.7;
  background-color: rgb(178, 152, 184);
}

.research {
  --alpha: 1;
  background-color: rgb(219, 201, 223);
  /* background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0), rgba(0,0,0,0) 10px, rgba(255,255,255,0.75) 0px, rgba(255,255,255,0.75) 20px); */
}

.rounder {
  --alpha: 1;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0), rgba(0,0,0,0) 10px, rgba(255,255,255,0.75) 0px, rgba(255,255,255,0.75) 20px);
}

.admin {
  /*background-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(197,25,209,0.5) 50%);*/
  --alpha: 0.3;
  color: rgba(0, 0, 0, 0.3);
  /*background-image: repeating-linear-gradient(30deg, rgba(0,0,0,0), rgba(0,0,0,0) 15px, rgba(120,0,255,0.1) 0px, rgba(120,0,255,0.1) 20px);*/

}

.template-change {
  color: blue;
  font-style: italic;
}

.admin.template-change {
  color: rgba(0, 0, 255, 0.5);
}

span.tooltip {
  display: none;
}

.empty {
  background: none;
  border-left-color: transparent;
}



/* New tooltip */
.duty-bar .tooltip-text,
.provider-line .bottom {
  visibility: hidden;
  min-width: 200px;
  background-color: rgba(0, 156, 222, 0.7);
  transform:translate(-51.5%, 67.5%);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  font-weight: normal;
  font-style: normal;

  /* Position the tootip */
  position: absolute;
  z-index: 1;
}


.provider-line-btn .bottom {
  transform:translate(-25%, 10%);
}
.provider-line-btn .bottom i {
  transform:translate(-40px, 0%);
}

.duty-bar:hover .tooltip-text{
  visibility: visible;
}

.provider-line-btn a {
  padding:0;
}

.provider-line .bottom {
    width:200px;
    /* top:40px; */
    /* left:50%; */
    /* transform:translate(-50%, 0); */
    padding:10px 20px;
    color:#444444;
    background-color:#EEEEEE;
    font-weight:normal;
    font-size:13px;
    border-radius:8px;
    /* position:absolute; */
    z-index:1;
    box-sizing:border-box;
    box-shadow:0 1px 8px rgba(0,0,0,0.5);
    word-break: break-word;
    white-space: normal;
  /* display:none; */
    visibility: hidden;
}

.duty-bar .bottom p {
  margin: 0 0 .5em 0;
}

.provider-line-btn:hover .bottom,
.duty-bar:hover .bottom {
    /* display:block; */
    visibility: visible;
    cursor: pointer;
}

.provider-line-btn .bottom i {
    position:absolute;
    bottom:100%;
    left:50%;
    margin-left:-12px;
    width:24px;
    height:12px;
    overflow:hidden;
}

.provider-line-btn .bottom i::after {
    content:'';
    position:absolute;
    width:12px;
    height:12px;
    left:50%;
    transform:translate(-50%,50%) rotate(45deg);
    background-color:#EEEEEE;
    box-shadow:0 1px 8px rgba(0,0,0,0.5);
}

.footer-content {
  position: fixed;
  bottom: 0;
  width: 100vw;
}
