/* This file is part of 'The Ember Factory' or CREE tool, but you may copy anything from it without giving credit */

@font-face {
  font-family: 'firasans-regular';
  src: url('../fonts/firasans-regular-webfont.woff2') format('woff2'),
  url('../fonts/firasans-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'firasanscondensed-medium';
  src: url('../fonts/firasanscondensed-medium-webfont.woff2') format('woff2'),
  url('../fonts/firasanscondensed-medium-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'firasanscondensed-book';
  src: url('../fonts/firasanscondensed-book-webfont.woff2') format('woff2'),
  url('../fonts/firasanscondensed-book-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'firasans-regular';
  src: url('../fonts/firasans-italic-webfont.woff2') format('woff2'),
  url('../fonts/firasans-italic-webfont.woff') format('woff');
  font-weight: normal;
  font-style: italic;

}

@font-face {
  font-family: 'firasans-regular';
  src: url('../fonts/firasans-semibold-webfont.woff2') format('woff2'),
  url('../fonts/firasans-semibold-webfont.woff') format('woff');
  font-weight: bold;
  font-style: normal;

}

html {
  font-size: 16px
}

body {
  font-family: firasans-regular, Roboto, Helvetica, sans-serif;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.2rem;
  counter-reset: h1counter;
  background-color: white;
}

.btn-dark {
  fill: #FFFFFFAA;
}

.dark .btn-dark {
  fill: white;
}

.docu {
  font-size: 0.88rem;
  line-height: 1.3rem;
}

.redubox, .outerbox {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

.outerbox {
  padding: 5px 20px 0 20px;
  border: 0;
  min-height: calc(100vh - 75px);
}

body.dark {
  background-color: #00002C;
  color: white;
}

footer {
  border-top: 1px solid #000;
  clear: both;
}

.dark footer {
  border-top: 1px solid white;
}

footer p {
  margin: 0;
  padding: 5px 0 5px 0;
  color: #777;
}

.update-line {
  color: #777;
}

.sticky {
  position: fixed;
  width: 100%;
  top: 0;
  box-shadow: 0 1px 7px -1px rgba(0, 0, 0, 0.5);
}

/* push the content down so that it is not placed under the navbar and does not skip when the nav becomes sticky */
.sticky + .outerbox {
  padding-top: 45px;
}

.header-wrap {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 10px;
}

.header-img {
  grid-column: 1;
}

.header-txt {
  grid-column: 2;
  margin-left: 10%;
  align-self: flex-end;
}

.innerframe {
  border-radius: 5px;
  border: thin solid #999;
  padding: 10px;
  margin-top: 12px;
}

.icon {
  width: 1.5em;
  height: 1em;
  vertical-align: text-bottom;
}

.menu-icon {
  vertical-align: middle;
  margin-bottom: 3px;
  height: 1.3rem;
  width: 1.3rem;
  stroke: white;
}

.btn-icon {
  width: 1.2rem;
  height: 1.7rem;
  vertical-align: middle;
  stroke: #8E0000;
}

.dark .btn-icon{
  stroke: white;
}

img {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

img.preview, object.preview {
  max-width: 100%;
}

img[src*="#img-small-right"] {
  width: 200px;
  max-width: 33%;
  padding: 0 0 5px 20px;
  float: right;
}

img[src*="#img-right"], object[data*="#img-right"] {
  width: 400px;
  max-width: 50%;
  padding: 15px 0 15px 20px;
  float: right;
}

img[src*="#600"] {
  width: 600px;
}

img.small-right {
  width: 250px;
  max-width: 40%;
  padding: 0 0 10px 20px;
  clear: right;
  float: right;
}

hr {
  clear: both;
  margin-bottom: 18px;
  border-top: 1px solid black;
  border-bottom: 0;
}

/* Main layout elements */
p {
  margin-top: 6px;
  margin-bottom: 9px;
}

h1, .hh1, h2, h3, h4 {
  clear: left;
  margin-top: 1.4rem;
}

.dark h1{
  color: #E0A0FF;
}

.dark h2, .dark p {
   color: white;
}

.dark h3 {
   color: #fec7b8;
}


h1.num:before {
  content: counter(h1counter) ".\0000a0";
  counter-increment: h1counter;
}

h1, .hh1 {
  font: 1.7rem firasanscondensed-book, Helvetica, Arial, sans-serif;
  line-height: 2rem;
  color: #A02020;
  margin-bottom: 0.7rem;
}

h2 {
  font: 1.4rem firasanscondensed-book, Helvetica, Arial, sans-serif;
  color: #800060;
  margin-bottom: 0.5rem;
}

h1 ~ h2 {
  margin-top: 0.8rem;
}

h3 {
  font: 1.1rem firasanscondensed-book, Helvetica, Arial, sans-serif;
  line-height: 1.2rem;
  color: #202075;
  margin-bottom: 0.3rem;
}

h4, h5 {
  font-size: 1em;
  font-weight: normal;
  font-style: oblique;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

a {
  word-break: break-word;
}

.subtitle {
  margin-top: -0.2rem;
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
  font-weight: normal;
  line-height: 1.15;
  color: #444;
}

.boxcontent strong {
  background-color: #FFFA8A;
  font-weight: normal;
}

.dark .boxcontent strong {
  background-color: #9a00c3;
}

.framedbox {
  font-size: 0.85rem;
  border: 1px solid black;
  border-radius: 3px;
  flex: 2;
  overflow: visible;
  display: flex;
}

.dark .framedbox {
  border: 1px solid white;
}

.alert-mask {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: auto;
  background-color: #0002;
}

.alert-box {
  z-index: 3;
  min-height: calc(20% + 30px);
  width: calc(min(90%, 850px));
  position: fixed;
  left: calc(50% - min(90%, 850px) / 2);
  padding-top: calc(10% + 30px);
  background-color: #50015e;
  color: white;
  font-size: 18px;
  line-height: 22px;
  box-shadow: 0 1px 7px -1px #00000080;
  top: 30px;
  border-radius: 0.3rem;
}

.dark .alert-box {
  background-color: #400160;
}

.alert-box-close {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
}

.alert-box-close div {
  float: right;
  padding: 0.4rem 0.5rem;
  border: 0.15rem solid #DDD;
  cursor: pointer;
  border-radius: 0.3rem;
}

.alert-box-close div:hover {
  border-color: white;
}

.alert-box-inner {
  float: left;
  margin: 1rem;
}

.top-box {
  position: absolute;
  padding: 5px;
  top: 5px;
  left: calc(50% - 8rem);
  margin: 0 auto;
  background-color: #CD1525;
  color: white;
  box-shadow: 0 1px 7px -1px #999;
  z-index: 1;
}

.editbox {
  margin: 0;
  flex: 1;
  display: flex;
  position: relative;
  border-radius: 0.2rem;
}

.boxcontent {
  padding: 0.2rem;
}

.editbox .boxcontent {
  flex: 1 1 auto;
  width: 100%;
}

.hh1 .editbox .boxcontent {
  padding-left: 0 !important;
  border-radius: 0.3rem;
}

.errorlist, .alert, .btn .error, div.error {
  color: #D53030;
}

.editbox .boxcontent:not(h1 .editbox .boxcontent), .editbox select {
}

.editbox .boxcontent p {
  margin-top: 0;
  margin-bottom: 0;
}


/* Paragraphs inside edit box which follow a paragraph (=> in-between only) */
.editbox .boxcontent p + p {
  margin-top: 0.5rem;
}

.editbox:has(div[contenteditable="true"]){
  background-color: #F0F0FFF0;
}

.dark .editbox:has(div[contenteditable="true"]){
  background-color: #A0A0A040;
}

td .boxcontent {
  margin-top: auto;
  margin-bottom: auto;
}

.boxcontent:focus {
  outline: none;
  border-radius: 1pt;
  border: none;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.formbox {
  margin: 3rem auto 2rem auto;
  border: 2px solid lightgrey;
  padding: 0.5rem 1rem 0.5rem 1rem;
  border-radius: 0.3rem;
}

.formbox#login {
  max-width: 20rem;
}

.flex {
  display: flex;
  flex-wrap: wrap;
}

label.radio {
  display: inline-block;
  width: calc(100% - 3rem);
  margin-left: 0.7rem;
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

input[type=radio]{
  margin-left:0.7rem;
  vertical-align: top;
}

.form-field {
  margin: 0.2rem 0.3rem 0.5rem 0.3rem;
  flex: 3 1 20rem;
}

.form-field label {
  min-width: 8rem;
}

.form-field-in {
  flex: 3;
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.1rem;
}

.form-field-in input, .form-field-in select {
  flex: 1 1 90%;
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  border: 0.08rem solid grey;
}

.form-field-in input {
  padding: 0.5rem 0.1rem 0.5rem 0.1rem;
  border-radius: 0.2rem;
}

.dark .form-field-in input {
  border-color: #C0C0C0;
  color: white;
  background-color: unset;
}

select {
  height: 2.2rem;
  color: inherit;
  background-color: transparent;
  border-radius: 0.2rem;
  outline: none !important;
  appearance: none;
  -moz-appearance: none;
  padding: 0 1.5rem 0 0.3rem;
  /* This may move to a better place if we keep the layout! */
  /* Based on https://stackoverflow.com/questions/14218307/select-arrow-style-change */
  background-image: url("data:image/svg+xml;utf8,<svg stroke='black' fill='none' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M2 10 l7 7 7 -7'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 100%;
  background-position-y: 50%;
}
select[disabled] {
    background-image: none;
}

.form-text ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 1rem;
}

small.form-text {
  flex: 0.5 1 22rem;
  color: #777;
}

.dark small.form-text {
  color: #AAA;
}


#login .btn {
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.submit {
  display: inline-flex;
  height: 2.4rem;
  width: 25rem;
  max-width: 100%;
  margin: 0.3rem auto;
}

.submit a, .submit .btn {
  flex: 1 1 18rem;
}

code {
  background-color: #EEE;
}

em {
  color: #715;
}

.dark em {
  color: #fec7b8;
}

.h2 > em {
  color: inherit;
}

.reference {
  color: black;
}

.reference strong {
  font-weight: normal;
  background-color: unset;
  color: #707070;
}

.dark .reference strong {
  color: #C0C0C0;
}

.reference em {
  color: inherit;
}

.compact {
  margin-top: 2px;
  margin-bottom: 1px;
}

legend {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
}

.switches {
  margin-top: 0;
  margin-bottom: 1em;
}

.switches input {
  clear: left;
  float: left;
  margin-top: 2px;
}

.switches label {
  margin-top: 3px;
  margin-left: 20px;
  display: block;
}

.banclicks {
  pointer-events: none;
}

.checkbox {
  pointer-events: auto;
  width: 0.9rem;
  height: 0.9rem;
}

button {
  background-color: unset;
  border: none;
}

.btn {
  display: flex;
  line-height: 1rem;
}

.btn, .btn-std, a[href*="#button"] {
  padding: 3px 5px 3px 5px;
  background-color: white;
  border: 1px solid #8E0000;
  border-radius: 3px;
  color: #8E0000;
  cursor: default;
  font-size: 0.9rem;
  font-family: Helvetica, Arial, sans-serif;
  text-align: center;
  justify-content: center;
  align-items: center;
  margin: 0.1rem 0.3rem 0.2rem 0.3rem;
  min-height: 1.2rem;
  text-decoration: none;
}

.dark .btn, .dark .btn-std, .dark a[href*="#button"] {
  background-color: unset;
  border: 1px solid #CCCCCC;
  color: white;
}

a[href*="#button"] {
  display: inline-block;
  line-height: unset;
}

.btn svg, button svg{
  stroke: #8E0000;
  fill: #8E0000;
}

.dark .btn svg, .dark button svg{
  stroke: white;
  fill: white;
}

.btn a {
  text-decoration: none;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.btn-std {
  width: 18rem;
  max-width: 30vw;
}

.btn-right {
  float: right;
}

.btn:hover:not(.disabled), .btn:hover:not(.disabled) .error, a:hover[href*="#button"] {
  background-color: #8E0000;
  color: white;
  cursor: pointer;
  text-decoration: none;
}

.dark .btn:hover:not(.disabled), .dark a:hover[href*="#button"] {
  background-color: #7e03b4;
}

.btn:hover:not(.disabled) svg {
  stroke: white;
}

.btn-box {
  background-color: #F8F8FF;
  flex-direction: row;
  position: absolute;
  left: calc(50% - 3rem);
  top: -34px;
  border-radius: 5px 5px;
  border-width: 1px 1px;
  border-style: solid solid;
}

.dark .btn-box {
  background-color: #5100a2;
}

.btn-rec {
  border-radius: 4px;
  border: 0!important;
  padding: 0.3rem;
  margin: 0;
  background-color: unset;
  font-size: 0.8rem;
  color: white;
  cursor: pointer;
}

.btn-rec.mark, .btn-rec.save, .btn-rec.rev {
  stroke: #FFF;
  vertical-align: center;
}

.svg-btn {
  width: 1.2rem;
  height: 1.1rem;
  pointer-events: none;
}

.btn-rec:hover {
  background-color: white;
  color: black;
  stroke: black;
}

.btn-rec.rev:hover {
  stroke: red;
}

.btn-rec.pending {
  background-color: #FCC;
  color: black;
}

.btn-rec.error {
  background-color: #F33;
  color: white;
}

/* links */
a[href*="#example"] {
  float: none;
  margin-left: 0;
}

a, .link {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: #777;
}

a:hover, .link:hover {
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-color: #801010;
  cursor: pointer;
}

.btn a:hover {
  text-decoration: none;
}

.btn-danger {
  background-color: #6C1051;
  color: white;
  border-color: black;
}

a.btn-danger {
  color: white;
}

a.anchor {
  display: block;
  position: relative;
  top: -30px;
  visibility: hidden;
}

.hidden {
  display: none !important;
}

.clearfix {
  overflow: auto;
}

/* Tables */

table {
  border-collapse: collapse;
  height: 100%;
}

table.listitems {
width: 100%;
margin-bottom: 1.2rem;
box-sizing: border-box;
}

td > a {
  text-decoration: none;
}

td, th {
  border: 1px solid #BBB;
  padding: 0;
}

th {
  padding-top: 6px;
  padding-bottom: 6px;
  text-align: left;
  font-weight: normal;
  border-bottom: 2px solid black;
  border-top: 0;
  font-size: 1.1rem;
}

.dark th {
  border-bottom: 2px solid white;
}

td:has(.checkbox) {
  text-align: center;
}

td[colspan] {
  padding-bottom: 0;
  margin-bottom: 0
}

td p {
  margin-bottom: 0;
  margin-top: 0;
}

tr.intro-row {
  color: black;
}

tr.intro-row + tr td {
  padding-top: 0;
  border-top: 0;
}

.light-txt {
  color: #909090;
}

.dark .light-txt {
  color: #C0C0C0;
}

sup {
  vertical-align: 0.4em;
  font-size: 0.8em;
  line-height: 1em;
}

sub {
  vertical-align: -0.4em;
  font-size: 0.8em;
  line-height: 1em;
}

.showover:hover {
  background-color: #FDC;
  cursor: pointer;
}

.dark .showover:hover {
  background-color: #7e03b4;
}

.subdrop .showover:hover {
  background-color: unset;
}

.borderless tr:first-child td {
  border-top: 0;
}

.borderless tr td {
  border-bottom: 0;
  border-right: 0;
}

.borderless tr:first-child td:first-child {
  border-left: 0;
}

.novertlines th, .novertlines td {
  border-left: 0;
  border-right: 0;
}

.listitem > td {
  border-bottom: 0;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.nolines > td {
  border-top: 0;
  border-bottom: 0;
}

.addirow > td {
  padding-top: 0;
  padding-bottom: 5px;
  color: #888;
}

/* Move anchors so that the text scrolls up to under the sticky navbar - not useful or working? */
:target {
  padding-top: 60px;
  margin-top: -60px;
}

.navbar {
  margin-bottom: 0;
  letter-spacing: -0.015em;
  background-color: #C2001F;
  background-image: linear-gradient(to right, #C2001F, #D33, #E84);
  z-index: 4;
}

.dark .navbar {
  background-color: #200050;
  background-image: linear-gradient(to right, #62002B, #40006A, #500070);
}

.navbar a, .navbar button, .navbar .item {
  font-family: firasanscondensed-book, helvetica, arial, sans-serif;
  font-size: 1.2rem;
  color: #D0D0DA;
  padding: 6px 12px 6px 12px;
  line-height: 30px;
  border-bottom: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  text-align: center;
  text-decoration: none;
}

.navbar .subdrop .item, .navbar .subdrop a {
  font-size: 1.1rem;
}

.navbar button {
  padding-left: 16px;
  padding-right: 16px;
}

.navbar a:hover, .navbar button:hover {
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
}

.navbar a.active {
  color: white;
}

.in-page.subdrop {
  text-align: center;
}

.subdrop{
  position: relative;
}

.subdrop:hover .subdrop-content {
  display: block;
}

.navbar .respmenu-button {
  display: none;
}

.navbar .appname {
  font-family: firasanscondensed-medium, Helvetica, sans-serif;
  font-weight: bold;
  color: white;
  padding-left: 0;
}

.nav-right {
  float: right;
  display: flex;
  margin-right: -5px;
}

.nav-left {
  float: left;
  display: flex;
}

.nav-right a, .nav-right button {
  background: none;
  color: white;
}

.subdrop > button {
}

.nav-right .subdrop-content {
  right: 0;
}

.subdrop-content {
  display: none;
  position: absolute;
  background-color: #920000E4;
  backdrop-filter: blur(2px);
  min-width: 160px;
  box-shadow: 3px 3px 10px 0 rgba(0, 0, 0, 0.25);
  z-index: 4;
}

.dark .subdrop-content {
  background-color: #45005AE0;
}

.in-page .subdrop-content {
  right: 0;
  padding-top: 3px;
  padding-bottom: 3px;
  color: white;
  border-radius: 5px;
  min-width: 100px;
  line-height: 1.2rem;
}

.subdrop-content a, .subdrop-content button, .subdrop-content .item {
  padding: 5px 10px 5px 10px;
  margin-right: 0;
  float: none;
  text-decoration: none;
  display: block;
  text-align: left;
  white-space: nowrap;
}

.subdrop-content button {
  background: none!important;
  border: none;
  color: white;
  font: inherit;
  cursor: pointer;
  width: 100%;
}

.navbar .subdrop-content .item {
  color: white;
  cursor: pointer;
  text-align: left;
}

.subdrop-content a:hover, .subdrop-content button:hover, .subdrop-content .item:hover {
  background-color: #8E0000 !important;
}

.dark .subdrop-content a:hover, .dark .subdrop-content button:hover, .dark .subdrop-content .item:hover {
  background-color: #7e03b4 !important;
}

.nav-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-pagination p {
  text-align: center;
}

.pagination {
  display: flex;
  padding-left: 0;
  margin: 0.5rem auto 0.5rem auto;
  list-style: none;
  border-radius: 0.3rem;
  border: solid #8E0000 1px;
  color: #8E0000;
  width: min-content;
}

.dark .pagination {
  border-color: white;
  color: white;
}

.pagination li {
  border-style: solid;
  border-color: inherit;
  border-width: 0 1px 0 0;
  line-height: 1.2rem;
  width: 2rem;
  text-align: center;
}

.pagination li > div {
  padding-bottom: 4px;
  padding-top: 4px;
}

.pagination a {
  font-size: 1rem;
  text-decoration: none;
  word-break: unset;
}

.pagination li:hover:not(.active) {
  background-color: #8E0000;
  color: white;
}

.dark .pagination li:hover:not(.active) {
  background-color: #7e03b4;
}

.pagination li:hover:not(.active) svg {
  stroke: white;
}

.pagination li.active {
  background-color: #FDC;
}

.dark .pagination li.active {
  background-color: #6C1051;
}

.pagination .first {
  border-radius: 0.25rem 0 0 0.25rem;
}

.pagination .last {
  border-right: 0;
  border-radius: 0 0.25rem 0.25rem 0;
}

.loginfoline {
  margin-left: auto;
  margin-top: -4px;
  margin-bottom: -1.8rem;
  font-size: 0.8rem;
  color: #AAA;
}

.disabled a svg {
  fill: #CCC;
  stroke: #CCC;
}

.pagination li.disabled:hover {
  background-color: white;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0.2rem auto;
}

.eat-margin {
  margin-left: -0.2rem;
  margin-right: -0.2rem;
}

.row-small {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.2rem;
}

.row .col {
  flex: 1 1 50%;
  display: flex;
  flex-flow: column;
  margin-left: 0;
  margin-right: 0.4rem;
}

.row .col:last-child {
  margin-right: 0;
}

.editwrapper {
  display: flex;
  flex-flow: column;
  flex: 1;
  margin: 0;
  height: 100%;
}

.row .emberdata {
  flex: 1 0 300px;
  margin-right: 0;
  margin-bottom: 0;
  padding: 0;
  font-size: 0.82rem;
  border-right: 1px solid #BBB;
}

.row.framedbox {
  margin: 5px 0 0 0;
}

select.framedbox {
  margin-top: 0;
}

.explanation {
  flex: 30 0 250px;
  position: relative;
}

.explanation .wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.explanation .detailbutton-wrapper {
  border-radius: 4px 4px 0 0;
}

.explanation .boxcontent::before {
  content: "";
  display: block;
  float: right;
  height: 100%;
  pointer-events: none;
}

.detailbutton-wrapper {
  transform: translateX(44px) translateY(-22px) rotate(90deg);
  background-color: #999;
  position: absolute;
  margin-bottom: 0;
}

.detailbutton {
  height: fit-content;
  background-color: #999;
  width: 60px;
  color: white;
  cursor: pointer;
  border-radius: 2px 2px 0 0;
  border: 0;
  margin: 2px 2px 1px 2px;
  padding: 0 3px 0 3px;
  line-height: unset;
}

.detailbutton.has-notes {
  background-color: #C88;
}

.explanation-box {
  width: 100%;
}

.explanation-arrow-wrapper {
  width: 100%;
  margin-top: 0;
  height: 16px;
}

.explanation-arrow-wrapper svg {
  position: relative;
  top: 2px;
  margin-left: calc(100% - 35px);
}

.explanation-content {
  border: solid 2px #999;
  border-radius: 0.2rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.explanation-header {
  display: flex;
  flex-direction: row;
  font-size: 0.9rem;
  margin: 2px 4px 2px 4px;
}

.explanation-header span {
  display: block;
  background-color: #999;
  width: 2px;
  height: 1em;
  margin: auto 12px auto 12px;
}

.explanation-header div {
  color: #999;
  cursor: pointer;
  user-select: none;
}

.explanation-header div[selected=true] {
  color: black;
}

.dark .explanation-header div[selected=true] {
    color: white
  }

.explanation-header div.close-btn {
  transition: color 150ms;
}

.explanation-header :not(div[selected=true]):hover {
  color: #555;
}

.explanation-content .content {
  width: 100%;
  margin: 0;
  padding: 0;
}

.explanation-content .content [content-hide=true] {
  display: none;
}

.eformcell{
  margin-top: auto;
  margin-bottom: auto;
}

.eformcell > div{
  padding: 0.2rem;
}


.single-ember {
  float: right;
  width: 160pt;
  min-height: 320pt;
  margin: auto;
  padding-top: 20px;
}

.h-divider {
  width: 100%;
  height: 2px;
  background-color: #999;
  display: block;
}

.hastooltip {
  position: relative;
}

.tooltiptext {
  left: calc(50% - 4.5rem);
  position: absolute;
  font-style: normal;
  font: 0.8rem firasans-book, Helvetica, Arial, sans-serif;
  visibility: hidden;
  opacity: 0;
  line-height: 1rem;
  width: 8rem;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 6px 8px 6px 8px;
  z-index: 5;
  bottom: 130%;
  box-shadow: 0 1px 7px -1px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease-in 0.1s;
}

.hastooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.hastooltip:focus-visible .tooltiptext {
  transition: none;
  visibility: visible;
  opacity: 1;
}

.tooltipbox {
  max-width: 1000px;
  top: -10px;
  position: absolute;
}

.tooltipbox ul {
  margin-top: -4px;
  margin-bottom: 4px;
}

.tooltipbox em {
  color: #FED;
}

.tooltipbox strong {
  background-color: #862;
  font-weight: normal;
}

.tooltipbox p:last-child {
  margin-bottom: 0;
}

.tooltipbox p:first-child {
  margin-top: 0;
}

.tooltipbox > div {
  width: 90%;
  background-color: #444;
  color: white;
  box-shadow: 3px 3px 12px #000000A0;
  padding: 0.7rem;
  border-radius: 6px;
}

.dark .tooltipbox > div {
  background-color: #404055;
  box-shadow: 1px 1px 12px #000000F0;
}

.select-ember {
  display: flex;
  justify-content: center;
}

.hastooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.hastooltip .no-arrow.tooltiptext::after {
  border: none;
}

.tooltip-bottom {
  top: 110%;
  bottom: unset;
}

.hastooltip .tooltip-bottom::after {
  border-color: transparent transparent #555 transparent;
  top: -10px;
}

.editbox select:focus {
  outline: none;
}

.editbox .select-status {
  position: absolute;
  right: 20px;
  top: 8px;
  pointer-events: none;
  user-select: none;
}

.editbox .select-status[data-eid-type="error"] {
  background-color: #CD1525;
  color: #FFF;
}

div[data-select-button="true"] .error {
  display: none;
}

div[data-select-button="true"].haserror .error {
  display: inline;
}

div[data-select-button="true"].haserror .normal {
  display: none;
}

select[disabled] {
  border-radius: 3px;
  flex: 2;
  overflow: visible;
  display: flex;
}

.dark select {
  border-color: #C0C0C0;
  background-color: unset;
}

.disabled {
  color: #CCC;
  border-color: #ECC;
}

.disabled svg {
  stroke: #CCC;
}

.dark .disabled {
  color: #888;
  border-color: #555;
}

.dark .disabled svg {
  stroke: #888;
}

.disabled .error {
  color: #FDD;
}

.emberid {
  margin-top: 0.8rem;
  margin-bottom: -1.5rem;
}

.disclaimer {
  font-size: 0.8rem;
  line-height: 1.1rem;
  color: grey;
}

.dark .disclaimer p{
  color: #C0C0C0;
}

.disclaimer em {
  font-weight: bold;
  font-style: normal;
}

.modbox {
  display: none;
  position: fixed;
  z-index: 20;
  left: 0;
  top: 0;
  overflow: auto;
  width: 100%;
  height: 100%;
  background-color: #000000A0;
}

.modbox h1 {
  color: white;
}

.modbox > div {
  border-radius: 6px;
  width: calc(min(50rem, 80vw));
  background-color: #640023;
  color: white;
  margin: 10vh auto auto auto;
  padding: 1rem;
  box-shadow: 4px 4px 12px 2px rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modclose {
  width: 18px;
  text-align: center;
  height: 18px;
  color: white;
  border: 1px solid white;
  border-radius: 4px;
  padding: 8px;
  font-size: 30px;
  transition: 0.2s;
  float: right;
  margin-top: -10px;
}

.modclose:hover, .modclose:focus {
  color: #FAA;
  text-decoration: none;
  cursor: pointer;
}

.resp-dropdown .nav-left, .resp-dropdown .nav-right{
    display: block;
    float: none;
}

.small-show {
  display: none;
}

.small-hide{
  display: inline;
}

.no-overflow-x {
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  .no-overflow-x {
    overflow-x: clip;
  }
}

@media screen and (max-width: 800px) {

  .nav-pagination li {
    width: 1.5rem;
  }

  .outerbox {
    padding: 3px 8px 0 9px;
  }

  .redubox {
    padding: 1px 8px 0 9px;
  }

  img[src*="#img-right"] {
    width: 380px;
    max-width: 80%;
    max-height: 80vh;
    float: none;
    padding: 12px 0 12px 0;
  }

  .navbar a, .navbar button, .navbar .item {
    padding-left: 10px;
    padding-right: 6px;
  }

  th {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .tooltiptext {
    display: none;
  }
}

@media screen and (max-width: 580px) {

  .navbar a:not(.appname), .navbar button:not(.appname) {
    display: none;
  }

  .navbar a.active {
    text-align: left;
    display: block;
  }

  .navbar a.respmenu-button, .navbar button.respmenu-button {
    float: right;
    display: block;
    background-color: transparent;
    border: 0;
    margin-right: 5px;
  }

  .resp-dropdown .menu:not(.hidden) {
    color: white;
    clear: left;
    display: block;
    text-align: left;
  }

  .resp-dropdown button.menu:not(.hidden) {
    display: flex;
  }

  .subdrop-content {
    position: unset;
    box-shadow: unset;
    background-color: #900000
  }

  .subdrop {
    position: unset;
  }

  .small-inactive {
    pointer-events: none;
  }

 .resp-dropdown .small-show {
    display: inline;
    margin-left: 0.8rem;
  }

.small-hide {
    display: none;
}

  :not(.respmenu-button) > svg.menu-icon{
    margin: auto 0 auto 0;
  }

  .in-page .subdrop-content {
    position: absolute;
  }

  .btn {
    font-size: 0.8rem;
    min-height: 1.4rem;
    min-width: 1.4rem;
  }

  th {
    font-size: 0.8rem;
    color: #9D2747;
  }

  .dark th {
    color: #D0D0FF;
  }

  tr {
    font-size: 0.8rem;
  }

  td:nth-child(1) {
    width: 50%;
  }

  td:nth-child(2) {
    width: 12%;
  }

  td:nth-child(3) {
    width: 18%;
  }

  .nav-pagination li {
    width: 0.9rem;
  }

  .nav-pagination li:first-child, .nav-pagination li:last-child {
    width: 1.9rem;
  }

  .pagination a {
    font-size: 0.75rem;
  }

  .explanation-header {
    font-size: 1em;
  }

  .tooltipbox{
    font-size: 0.7rem;
    line-height: 1rem;
  }

  .tooltipbox > div {
    padding: 0.4rem;
  }

  .single-ember {
    float: none;
    padding-right: 50px;
  }

}


@media print {
  html {
    font-size: 12px;
  }

  .light-txt {
    color: #20202080;
  }

  .outerbox {
    max-width: 95%;
  }

  .row .emberdata {
    max-width: 18rem;
  }

  .navbar, footer, .pagination {
    display: none;
  }

  .btn {
    display: none;
  }
}