html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: Roboto, Helvetica, sans-serif;
  font-size: 15px;
  background: #fff;
  color: #000;
  text-align: center;
  margin: 0;
  min-height: 100vh;
}

site-content {
  display: block;
  padding-left: 165px;
  padding-right: 15px;
}

header {
  display: block;
  width: calc(100% + 30px);
  height: 80px;
  background: #c00;
  color: #fff;
  position: relative;
  margin-left: -15px;
  margin-right: -15px;
  margin-bottom: 15px;

  h1, h2 {
    position: absolute;
    margin: 0;
    line-height: 1em;
    color: #fff;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
  }

  h1 {
    top: 4px;
    left: 15px;
    font-size: 72px;
    color: #fbb;
    cursor: pointer;
    font-weight: normal;
  }

  a {
    position: absolute;
    right: 10px;
    bottom: 10px;
    color: #fff;
  }

  h1:hover {
    color: #fff;
  }

  h2 {
    top: 20px;
    left: 240px;
    font-size: 40px;
    font-weight: normal;
  }

  #todays-date {
    position: absolute;
    right: 8px;
    top: 8px;
    font-size: 20px;
  }
}

.centered {
  text-align: center;
}

main {
  display: block;
  text-align: left;
}

h4 {
  font-weight: normal;
  font-size: 17px; 
  margin-bottom: 3px;
}

meter {
  width: calc(100vw - 400px);
}

input[type="button"],
input[type="submit"],
button,
a.buttonlink {
  font-family: Roboto, Helvetica, sans-serif;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #559;
  background: linear-gradient(to bottom, #88f, #66c);
  font-size: 14px;
  font-weight: normal;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}

input[type="button"]:focus,
input[type="submit"]:focus,
button:focus,
a.buttonlink:focus {
  color: #8f8;
}

input[type="button"]:active,
input[type="submit"]:active,
button:active,
a.buttonlink:active {
  color: #ccc;
  background: linear-gradient(to bottom, #66c, #88f);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
}

output {
  display: block;
  font-weight: bold;
}

#body_inner {
  margin: 0 auto;
}

tr {
  vertical-align: top;
}

error-notification {
  display: block;
  width: 540px;
  padding: 8px;
  text-align: center;
  margin: 0 auto;
  background: #a00;
  color: #fdd;
  border-radius: 8px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}

error-heading {
  display: block;
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

data-card {
  display: block;
  border: 1px solid #5a6e7f;
  padding: 10px;
  border-radius: 8px;
  background: #b4dcfe;
  margin: 8px 0;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}

data-heading {
  display: block;
  background: linear-gradient(to bottom, #90889e, #5a6e7f);
  color: #fff;
  font-size: 19px;
  font-weight: normal;
  padding: 10px;
  padding-left: 12px;
  margin-bottom: 10px;
  width: calc(100% + 20px);
  margin-left: -10px;
  margin-top: -10px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  a {
    color: #dbf;
    margin-left: 20px;
    font-size: 15px;
    font-weight: normal;
  }

  strong {
    color: #ff0;
    margin-left: 20px;
    font-size: 15px;
    font-weight: normal;
  }
}

.wide {
  width: 100%;
}

data-card table,
table.datable {
  border: 1px solid #999;
  border-collapse: separate;
  border-spacing: 0;
  border-right: 1px solid #999;
  border-top: 0;
}
  
data-card table {
  width: 100%;
}

data-card table td,
data-card table th,
table.datable td,
table.datable th {
  border: 1px solid #999;
  padding: 10px;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
}

data-card table th,
table.datable th {
  font-size: 18px;
  font-weight: normal;
  text-align: left;
  background: #ccc;
}

data-card table tr.grouped-row td,
table.datable tr.grouped-row td {
  border-top: none;
}

data-card table thead th,
table.datable thead th {
  position: sticky;
  top: 0;
  white-space: nowrap;
}

data-card table tr.highlight td {
  background: #f8feb4;
}

data-card table td {
  background: #eee;
}

table {
  border: 0;
}

table.datable {
  margin: 0 auto;
}

table.datable td.unread {
  font-weight: bold;
  background-color: #eee;
}

table.datable.ajax-table-loading {
  border: 1px solid #f66;
}

td.right, th.right {
  text-align: right;
}

.main { background: #b4dcfe; }
.items { background: #eee; }
.title {
  background: #ccc;
  text-align: center
}

.highlight,
table.calendar td.highlight {
  background: #f8feb4;
}

table tr.brighthead th { background: #ff0; }
.deleted { background: #f49393; }
.heading { font-size: 17px;  }
.name { font-size: 19px;  }
.plain_med { font-size: 13px; }
.search {
  font-size: 18px;
  background: #bbb;
  text-align: left;
}

p.heading { font-size: 19px;  }
  
a {
  color: #b30505;
}

a.current-folder {
  color: #000;
}

a:link, a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

nav { 
  position: fixed;
  background: #e1f1fe;
  padding-top: 30px;
  width: 150px;
  height: 100vh;
  z-index: 3;
  box-shadow: 0 0 5px #0009;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  position: sticky;
  top: 0;
}

nav ul li {
  padding: 0;
  text-align: left;
}

nav a {
  display: inline-block;
  font-size: 15px;
  color: #36424c;
  text-shadow: 0 0 1px #36424c88;
  width: 100%;
  padding: 10px;
}

nav a:hover {
  background-color: #0003;
  text-decoration: none;
}

nav > ul li ul {
  display: block;
  position: absolute;
  left: -500px;
  top: -30px;
  width: 310px;
  height: calc(100vh + 30px);
  padding-right: 0;
  padding-top: 30px;
  padding-left: 140px;
  background: #5a6066dd;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  z-index: 5;
  cursor: pointer;
  transition: left 0.5s ease;
}

nav > ul li ul::before {
  position: absolute;
  right: 3px;
  top: calc(100vh / 2 - 16px);
  content: '\2039';
  font-size: 20px;
  color: #fff;
}

nav > ul li ul.popped {
  left: 0;
}

nav > ul a[onclick]::after {
  content: "\25ba";
  display: block;
  float: right;
  margin-right: 5px;
}

nav > ul li ul li a {
  color: #fff;
  text-shadow: 0 0 1px #fff8;
}

form-field {
  display: block;
  margin: 4px 0;
}

form-field label {
  font-weight: normal;
  display: inline-block;
  vertical-align: top;
  padding-top: 3px;
  width: 150px;
}

form-field label.short {
  width: 100px;
}

th.edits {
  width: 10px;
}

td.edits {
  text-align: center;
  white-space: nowrap;
  margin: 0 -5px;
}

td.breakable {
  min-width: 150px;
  word-break: break-all;
}

td.edits form {
  display: inline-block;
}

input[type="image"] {
  display: block;
  margin: 0 5px;
  height: 25px;
}

img.imgbutton {
  display: block;
  height: 25px;
  cursor: pointer;
}

img.imgbutton.inl {
  display: inline;
}

input[type="text"], input[type="number"], input[type="password"], input[type="email"], input[type="tel"], input[type="date"],
input[type="search"], textarea, select {
  border: 1px solid #999;
  padding: 4px;
  border-radius: 4px;
  font-family: Roboto, Helvetica, sans-serif;
  font-size: 15px;
  background: linear-gradient(to bottom, #fff, #eee);
  transition: box-shadow 1s ease;
}

input[type="text"], input[type="number"], input[type="password"], input[type="email"], input[type="tel"], input[type="date"],
input[type="search"], select:not([multiple]) {
  height: 28px;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="email"]:focus,
input[type="tel"]:focus, input[type="date"]:focus, input[type="search"]:focus, textarea:focus, select:focus {
  outline: none;
  background: #fff;
  border: 1px solid #666;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}

hr {
  border: none;
  color: #000;
  background-color: #000;
  height: 1px;
}

auto-grid {
  display: grid;
  grid-template-rows: 1fr;
  grid-gap: 8px;
}

auto-grid.two {
  grid-template-columns: 1fr 1fr;
}

auto-grid.three {
  grid-template-columns: 1fr 1fr 1fr;
}

auto-grid.three-offbal {
  grid-template-columns: 150px 250px 1fr;
}

auto-grid.two-offbal {
  grid-template-columns: 350px 1fr;
}

grid-col {
  display: block;
}

.statcard {
  display: block;
  width: 400px;
  border: 1px solid #000;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  background-color: #eee;
  transition: background-color linear 4s;
}

.new {
  background-color: #99f;
}

.paginate a, .paginate span {
  display: inline-block;
  text-align: center;
  width: 30px;
  padding: 5px;
  border-radius: 5px;
}

.paginate a {
  background: #b30505;
  color: #fff;
}

table.saqtable, table.rovtable {
  line-height: 1.4em;
  background: #fff;
  border-right: 0;
}

table.saqtable th,
table.rovtable th {
  font-weight: bold;
  vertical-align: middle;
  height: 120px;
  border-bottom: 1px solid #999;
  border-right: 1px solid #999;
  background: #d0d0d0dd;
}

table.saqtable th[colspan="5"] {
  height: 60px;
  vertical-align: top;
}

table.rovtable th[colspan="3"] {
  width: 170px;
  height: 60px;
  font-size: 13px;
  vertical-align: top;
}

table.saqtable th.check,
table.rovtable th.check {
  width: 50px;
  font-size: 12px;
  line-height: 15px;
  background: #fffd;
  height: 60px;
  top: 60px;
  vertical-align: bottom;
  white-space: normal;
}

table.saqtable th em,
table.rovtable th em {
  position: absolute;
  top: 35px;
  left: 10px;
  font-weight: normal;
  font-size: 13px;
}

table.saqtable td.no-answer {
  background: #999;
}

table.saqtable ul,
table.rovtable ul {
  margin: 0;
  margin-top: 10px;
  padding-left: 16px;
}

table.saqtable td > ul:first-child,
table.rovtable td > ul:first-child {
  margin-top: 0;
}

table.saqtable ul li,
table.rovtable ul li {
  padding: 5px 0;
}

table.saqtable ul li:first-child,
table.rovtable ul li:first-child {
  padding-top: 0;
}

table.saqtable ul li:last-child,
table.rovtable ul li:last-child {
  padding-bottom: 0;
}

table.saqtable .qtext {
  vertical-align: top;
  display: inline-block;
  width: calc(100% - 50px);
  margin-left: 5px;
}

table.saqtable td,
table.rovtable td {
  padding: 12px;
  border-right: 1px solid #999;
}

table.saqtable td.check,
table.rovtable td.check {
  text-align: center;
}

table.saqtable .qnote,
table.rovtable .qnote {
  background: #fff;
  padding: 16px;
  border: 1px solid #aaa;
  margin-top: 10px;
  font-style: italic;
}

table.saqtable input[type="radio"][disabled],
table.rovtable input[type="radio"][disabled] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: #ddd;
  border: 1px solid #aaa;
}

table.saqtable input[type="radio"][disabled]:checked,
table.rovtable input[type="radio"][disabled]:checked {
  background: #000 !important;
  border-color: #333;
}

table.saqtable input[type="text"][disabled],
table.rovtable input[type="text"][disabled] {
  color: #000;
  background: #ddd;
  border: 0;
  font-weight: bold;
}

table.saqtable .qnav {
  margin-top: 10px;
}

table.rovtable th.inst {
  background-color: #cdcd;
}

table.rovtable td.inst {
  background-color: #cdc;
}

table.rovtable td.findings {
  background-color: #fff;
}

table.calendar {
  font-size: 17px;
  border: 1px solid #ccc;
  border-collapse: collapse;
}

.centered table.calendar {
  margin: 0 auto;
}

table.calendar td {
  border: 1px solid #ccc;
  padding: 8px;
  background: #fff;
}

table.calendar td.empty {
  background: #ddd;
}

table.calendar tr.monthline td {
  color: #00c;
  font-weight: normal;
  font-size: 20px;
  text-align: center;
  background: #ddd;
}

table.calendar tr.daysline td {
  background: #fcc;
  color: #000;
  font-weight: bold;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 10px #0008;
  padding: 20px;
}

.modal > a:first-child {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 18px;
  font-weight: bold;
}

canvas {
  border: 1px solid #aaa;
}

.browser {
  display: inline-block;
  color: #fff;
  background: #888;
  border-radius: 8px;
  width: auto;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.browser:hover {
  transform: scale(1.1);
}

.subnav-menu {
  font-size: 18px;
  text-align: center;
}

img.file-image {
  max-width: 100%;
  max-height: 500px;
}

@media (max-width: 900px) {
  nav {
    left: -135px;
    transition: left 0.5s ease;
    cursor: pointer;
  }

  nav::before {
    content: '\203a';
    display: block;
    position: absolute;
    right: 3px;
    font-size: 20px;
    top: calc(100vh / 2 - 16px);
  }

  nav > ul a[onclick]::after {
    display: none;
  }

  nav li {
    pointer-events: none;
  }

  nav.popped {
    left: 0;
  }
  
  nav.popped::before {
    content: '\2039';
  }

  nav.popped > ul a[onclick]::after {
    display: block;
  }

  nav.popped li {
    pointer-events: auto;
  }

  site-content {
    padding-left: 30px;
  }

  meter {
    width: calc(100vw - 250px);
    min-width: 200px;
  }

  select, input[type="text"], textarea {
    max-width: 500px;
  }

  #body_inner {
    width: 100%;
  }
  
  header h1 {
    font-size: 45px;
  }

  header h2 {
    font-size: 23px;
    top: 50px;
    left: 10px;
  }
}

@media (max-width: 600px) {
  select, input[type="text"], textarea {
    max-width: 100%;
  }
}

#email-line.notify {
  font-weight: bold;
}

body.printable {
  color-adjust: exact;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  width: 670px;
  display: block;
}

body.printable site-content {
  width: 670px;
  background: #fff;
}

body.printable header {
  display: none;
}

body.printable nav {
  display: none;
}

body.printable data-card {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  page-break-before: always;
}

body.printable data-card table th {
  font-size: 13px;
}

body.printable table.saqtable,
body.printable table.rovtable {
  font-size: 11px;
}

body.printable table.saqtable th em {
  font-size: 10px;
}

body.printable table.saqtable th,
body.printable table.rovtable th {
  height: 90px;
}

body.printable table.saqtable th.check,
body.printable table.rovtable th.check,
body.printable table.saqtable th[colspan="5"],
body.printable table.rovtable th[colspan="3"] {
  height: 45px;
}

body.printable table.saqtable th.check,
body.printable table.rovtable th.check {
  top: 45px;
}

body.printable table.saqtable th.check {
  width: 40px;
  font-size: 8px;
}

body.printable table.saqtable input[type="radio"][disabled],
body.printable table.rovtable input[type="radio"][disabled] {
  background: #fff;
}

body.printable table.saqtable td span:before {
  content: ' ';
  display: block;
  margin-bottom: 10px;
}

body.printable table.saqtable .qnote,
body.printable table.rovtable .qnote {
  padding: 5px;
  margin-top: 0;
}

body.printable table.saqtable td,
body.printable table.rovtable td {
  padding: 3px;
}

body.printable table.saqtable td span {
  clear: left;
  font-weight: bold;
}

body.printable data-card:first-child {
  page-break-before: avoid;
}

body.printable data-card table td { 
  background: #fff;
}

body.printable data-heading {
  background: #fff;
  color: #000;
}

.code-block {
  font-family: "Courier New", monospace;
  border: 1px solid #ccc;
  background: #000;
  color: #fff;
  border-radius: 8px;
  padding: 8px;
}

.ai-question {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  font-weight: bold;
  margin-top: 8px;
  margin-bottom: 8px;
}
