/* Copyright 2022 */

@media screen{
  body{
    padding-top: 3.4rem;
  }

  div#print-header{
    display: none;
  }

  div.notes{
    display: none;
  }

  .navbar, div.remove{
    display: inherit;
  }
}

@media print{
  @page{
    size: letter;
    margin: 0in;
  }

  .navbar, div.remove, div#getting-started, div#top-message{
    display: none;
  }

  .tooltip{
    display: none;
  }

  table#rounding-table{
    max-width: 8.5in;
    font-size: 5pt !important;
  }

  td.tail div.handoff{
    width: 100%;
  }
}

.btn:focus, .btn:active{
  outline: none !important;
  box-shadow: none !important;
}

a#notes-width-glyph i{
  color: white;
}

a#notes-width-glyph > div{
  border-bottom: 1px solid white;
  border-right: 1px solid white;
  height: 0.5em;
  width: 2.25em;
  margin-left: 0.75em;
  color: white;
}

a#notes-width-glyph > div > span{
  position: absolute;
  top: 1em;
  font-size: 0.75em;
}

input#list-title{
  background-color: transparent;
  border: 0;
  font-size: 1.5em;
  text-align: center;
  color: darkgray;
}

input#list-title:focus{
  outline: none;
}

textarea{
  height: calc(1.5em + .75rem + 2px);
}

div#getting-started{
  background-image: url("getting-started.png");
  height: 50px;
  width: 300px;
  position: fixed;
  z-index: -999;
  right: 24px;
}

div#rex-smartphrase{
  display: none;
}

div#top-message{
  z-index: 10;
  position: fixed;
  width: 75%;
  left:50%;
  transform:translateX(-50%);
  top: 5rem;
}

.container{
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

div#print-header{
  max-width: 8.5in;
  text-align: center;
  line-height: 0.7em;
  margin: 0;
}

div#print-header img{
  height: 0.1in;
  margin-bottom: 0.2em;
}

div#print-header h6,
div#print-header p{
  margin: 0;
  display: inline;
}

div#print-header h6{
  font-weight: bold;
  font-size: 0.7em;
}

div#print-header p{
  font-size: 0.5em;
}

table.non-fluid{
   display: block;
   width: auto !important;
}

table#rounding-table{
   font-size: 0.8rem;
   line-height: 1em;
   page-break-inside: auto;
}

table#rounding-table > tbody > tr{
  break-inside: avoid;
  page-break-inside: avoid;
  page-break-after: auto;
  height: 1px;
}

table#rounding-table > tbody > tr > td{
  padding: 0.2rem;
  break-inside: avoid;
  page-break-inside: avoid;
  page-break-after: auto;
}

td.demo, td.vitals, td.io, td.labs{
  white-space: nowrap;
}

td.vitals, td.io, td.labs, td.tail div.handoff{
  padding: 0.2rem;
  border-left: 1px dashed darkgray;
}

td.demo span.last-name, td.demo span.roombed{
  font-size: 1.25em;
  font-weight: 600;
}

td.demo span.roombed span.roombed-prefix{
  font-size: 0.5em;
  font-weight: 500;
}

td.demo span.roombed span.roombed-floor{
  font-size: 1.1em;
  font-weight: 775;
}

td.demo .mrn::before{
  content: "MRN: ";
}

td.demo > span, td.demo .diet-meds > span{
  display: block;
}

td.demo .diet-meds{
  margin: 1em 0 0 2em;
  width: 0;
  word-wrap: normal;
}

td.vitals > span{
  display: block;
}

td.vitals table.bp{
  text-align: center;
}

td.vitals table.bp .sbp{
  border-bottom: 1px black solid;
}

td.vitals table.bp .dbp{
}

td.vitals table.bp .hr{
  padding-left: 0.75em;
}

td.vitals span.range-bmi:not(:empty):before{
  content: 'BMI ';
}

td.io h6{
  font-size: 1em;
  font-weight: 610;
  margin: 0;
  display: inline-block;
}

td.io span{
  display: block;
  margin-left: 0.7em;
}

td.labs{
  padding: 0;
}

div.labs{
  /*display: inline-block;
  vertical-align: top;
  white-space: nowrap;*/
}

td.labs > div{
  text-align: center;
}

td.labs table{
  margin-left: auto;
  margin-right: auto;
}

td.labs td .lab-current{
}

td.labs td .lab-last:not(:empty):before{
  content: '(';
}

td.labs td .lab-last:not(:empty):after{
  content: ')';
}

td.labs td .lab-vert{
  display: block;
}

table.bmp, table.cbc, table.lft{
  text-align: center;
}

table.bmp, div.electrolytes, table.cbc, table.lft, div.abg, div.vent-settings{
  margin-bottom: 5px;
}

table.bmp tr:first-child td:nth-child(-n+3){
  border-bottom: 1px black solid;
}

table.bmp td:nth-child(-n+2){
  border-right: 1px black solid;
}

table.cbc tr:first-child td:nth-child(3){
  border-bottom: 1px black solid;
}

div.ts, div.fxa{
  font-size: 0.7em;
  margin: 0.5em 0;
}

div.ts span.badge{
  margin-right: 1em;
  padding: 2px;
}

div.fxa i.bi{
  font-size: 1.5em;
}

div.fxa i.bi:first-child{
  margin-right: 0.5em;
}

table.lft tr:nth-child(-n+2){
  border-bottom: 1px black solid;
}

table.lft tr:nth-child(-n+3) td:first-child{
  border-right: 1px black solid;
}

/*table.lft tr:nth-child(-n+3) td{
  text-align: left;
  padding-left: 0.2em;
}

table.lft tr:nth-child(-n+3) td:first-child{
  text-align: right;
  padding-left: inherit;
  padding-right: 0.2em;
}*/

div.abg .lab-current.lab-fio2:not(:empty):after{
  content: '%';
}

div.abg .lab-current:not(:first-child):not(:empty):before{
  content: '/';
}

td.diag-up{
  background-image: linear-gradient(
    to bottom right,
    rgba(0,0,0,0) calc(50% - 0.75px),
    black,
    rgba(0,0,0,0) calc(50% + 0.75px)
  )
}

td.diag-down{
  background-image: linear-gradient(
    to top right,
    rgba(0,0,0,0) calc(50% - 0.75px),
    black,
    rgba(0,0,0,0) calc(50% + 0.75px)
  )
}

td.diag-vert{
  width: 7px;
  min-width: 7px;
}

td.diag-horiz{
  height: 7px;
  min-height: 7px;
}

td.tail{
  /* This must be 'inherit' for Edge/Chrome and 100% for Firefox */
  height: inherit;
  width: 100%;
  padding: 0 !important;
}

td.tail > div{
  height: 100%;
}

td.tail div.handoff > p{
  margin-bottom: 0;
  white-space: pre-wrap;
  overflow-y: unset;
  display: -webkit-inline-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: unset;

  break-inside: avoid;
  page-break-inside: avoid;
  page-break-after: auto;

  scrollbar-width: none;
}

td.tail div.handoff > p::-webkit-scrollbar{
  height: 0;
  width: 0;
}

td.tail div.notes{
  min-width: 1.25in;
  border-left: 1px dashed darkgray;
  position: relative;
}

td.tail div.notes canvas{
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 0.35in!important;
}

td.tail div.remove{
  vertical-align: middle;
  text-align: right;
}

td.tail div.remove i{
  font-size: 1.5rem;
  color: firebrick;
}