html {
  height: 100vh;
  width: 100vw;
}
body {
  font-size: 16px;
  width: 100%;
  height: 100%;
}
body.is-demo {
  border: 5px solid darkorange;
  border-top: 0;
}
body.is-demo .root-header__demo-label {
  display: block;
}
a,
button {
  cursor: pointer;
}
a:link,
a:visited,
a:active {
  text-decoration: none;
}
button {
  background-color: transparent;
  border: 0;
  box-shadow: none;
}
button > .fa,
button > .far,
button > .fas,
a > .fa,
a > .far,
a > .fas {
  pointer-events: none;
}

textarea:not([data-is-tagify="true"]) {
  resize: vertical;
  overflow-x: hidden;
  overflow-y: scroll;
  min-height: 4em;
  height: auto;
  max-height: 200px;
}
label,
input,
select,
textarea {
  font-size: 12px;
}
input,
select,
textarea {
  border: 1px solid var(--true-grey-bright-color);
}
input:hover,
select:hover,
textarea:hover,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
  border: 1px solid var(--vibrant-color);
  outline: none;
}
label {
  white-space: nowrap;
  color: #4d4d4d;
}
select {
  color: black;
  background-color: #fff;
}
select:not('.editable') {
  appearance: none;
}
img {
  height: auto;
  width: auto;
}
ol,
ul,
li {
  margin: 0;
  padding: 0;
}
ul {
  list-style-type: none;
}
.demo-label {
  background-color: darkorange;
  text-align: center;
  font-size: 1.3rem;
  color: #223a73;
  padding: 0.5rem;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  font-weight: 700;
  width: 100vw;
}
.root-header__demo-label {
  background-color: darkorange;
  text-align: center;
  font-size: 1.3rem;
  color: #223a73;
  padding: 0.5rem;
  font-weight: 700;
  display: none;
}
.text-base-color {  /* Hand written font color utility */
  color: var(--base-font-color);
}
.root-container {
  display: grid;
  grid-template: var(--root-header-height) 1fr / minmax(0, auto) minmax(0, 1fr);
  height: 100vh;
  max-width: 100vw;
  overflow: hidden;
}
.root-header {
  grid-column: 1 / 3;
  background-color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  z-index: 1100;
  color: #fff; /* TODO: Very bright, especially given the background */
  padding-right: 10px;
}
.root-header__titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.root-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.root-sidebar {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: auto; /* Otherwise small screens put header off the viewport */
}
.root-main {
  grid-column: 2 / 3;
  background-color: var(--white-bg-color);
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-self: stretch;
  min-width: 0;
  min-height: 0;
}
.formcontainer {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}
.fieldcontainer {
  margin: 5px 0px;
  position: relative;
}
/* IDEA: These should all become a .form-control */
.formcontainer label,
.formcontainer input, /* TODO: This is disruptive */
.formcontainer select,
.formcontainer button[type="submit"],
.btn--yes,
.modal__btn--confirm {
  font-weight: normal;
  padding: 5px 5px;
  margin: 1px 0px;
  width: 100%;
}
.formcontainer input[type='checkbox'] {
  width: auto;
}
.formcontainer button[type="submit"],
.formcontainer input[type='submit'],
.btn--yes,
.modal__btn--confirm {
  background-color: var(--vibrant-color);
  color: white;
  transition: background-color 0.3s ease-out;
}
.formcontainer button:enabled:hover,
.formcontainer input[type='submit']:enabled:hover,
.btn--yes:enabled:hover,
.modal__btn--confirm:enabled:hover {
  background-color: var(--vibrant-color-brighter);
}
.formerrors {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-red);
  padding-left: 5px;
}
.instructions {
  background-color: white;
  color: #4d4d4d;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: justify;
}
.infocontent,
.errorcontent,
.confirmcontent {
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  margin: 10px 0px;
}
.infocontent {
  background-color: #edf2f7;
  color: #5485b3;
}
.errorcontent {
  background-color: #ffe6e6;
  color: var(--color-red);
}
.confirmcontent {
  background-color: #edf2f7;
  color: #5485b3;
}
.confirmactions input[type='submit'] {
  float: right;
  width: 80px;
}
button[type='button']:disabled,
input[type='submit']:disabled,
input[type='select']:disabled {
  background: #dddddd;
}
textarea:read-only {
  color: #888888;
  font-size: 12px;
  width: 100%;
}
.actionbutton {
  float: right;
  text-align: center;
  background-color: white;
  color: black;
  width: 15px;
  height: 15px;
  border: none;
  font-size: 100%;
  font-weight: 700;
}
.actionbutton:hover {
  background-color: white;
  color: #5485b3;
  border: none;
}

/* TODO: This seems too generic to impose margins */
.linkbutton {
  text-align: center;
  background-color: inherit;
  color: var(--vibrant-color);
  border: none;
  width: auto;
  margin-top: 10px;
}
.tab-menu .linkbutton.inactive {
  color: var(--true-grey-bright-color);
}
.linkbutton:not(:disabled):not(.inactive):hover {
  color: var(--vibrant-color);
  text-decoration: underline;
  background-color: inherit;
}

.iconbutton {
  text-align: center;
  font-size: 15px;
  background-color: inherit;
  color: var(--base-font-color);
  border: none;
  width: auto;
  margin: 10px;
}
.iconbutton.inactive {
  color: var(--true-grey-bright-color);
}
.iconbutton:not(:disabled):not(.inactive):hover {
  border: none;
  background-color: inherit;
  color: var(--vibrant-color);
  text-decoration: underline;
}

p.message {
  position: relative;
  line-height: 1.8;
  font-size: 12px;
  text-align: justify;
}
.tbl-cellHover {
  cursor: pointer;
  text-decoration: underline;
  color: var(--vibrant-color);
}

.linkbutton:disabled,
.linkbutton:disabled:hover {
  color: var(--true-grey-bright-color);
  text-decoration: none;
}
.data-table {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}
.data-table__menu {
  position: relative;
  background-color: var(--white-bg-color);
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  gap: 4px;
  /* border-top: 1px solid var(--true-grey-bright-color); */
  width: 33px;
}
.data-table__menu:empty {
  width: 0;
  display: none;
}
.data-table__menu .tbbutton {
  width: 100%;
}
.data-table__menu .linkbutton {
  margin: 0;
  margin-top: 10px;
}
.data-table__grid {
  flex-grow: 1;
  overflow: auto;
  height: 100%;
  width: 100%;
}
.tab-menu {
  padding-top: 4px;
  position: sticky;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  top: 0;
  width: 100%;
  z-index: 2;
  /* HACK: Use variables below instead */
  background-color: #eff1f5;
  /* border-bottom: 1px solid rgba(0,0,0,0.1); */
}
.tab-menu .linkbutton {
  margin: 0;
  margin-right: 10px;
}

.tbbutton {  /* This is a tab menu button or a grid side menu button */
  border-radius: 2px;
  border: 0;
  background-color: transparent;
  margin: 0;
  transition: color 200ms ease-out;
  cursor: pointer;
  padding: 6px;
  color: #47546699;
  vertical-align: bottom;
  text-align: center;
}
.tbbutton:not(:disabled):hover {
  color: #475466ff;
  /* border: 1px solid var(--vibrant-color); */
}
.tbbutton:disabled {
  color: #47546633;
  cursor: not-allowed;
  background-color: transparent !important; /* TODO: When button:disabled styling is removed, remove !important */
}
.tbbutton > i {
  pointer-events: none;
  font-size: 18px;
}
.tbbutton > i.fa-save {
  font-size: 21px;
}
.drop-down-menu {
  position: relative;
  display: inline-block;
  margin-left: 20px;
  color: var(--base-font-color);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.drop-down-menu.is-open {
  color: var(--vibrant-color);
}
.drop-down-menu.inactive {
	color: var(--true-grey-bright-color);
}
.drop-down-menu > span {
  pointer-events: none;
}
.drop-down-menu > span > i {
  margin-left: 5px;
}
.drop-down-menu:not(.is-open) .drop-down-menu-tasks {
  display: none;
}
.drop-down-menu-tasks {
  position: absolute;
  background-color: #f4f5f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  padding-bottom: 2px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.drop-down-menu-tasks .linkbutton {
  padding-bottom: 10px;
  white-space: nowrap;
  font-size: 12px;
}
.drop-down-menu-tasks .linkbutton.inactive {
	display: none;
}
.drop-down-menu-tasks i {
  margin-right: 5px;
  color: var(--primary-color);
}
button.linkbutton.inactive > i {
  color: var(--true-grey-bright-color);
}
/*LISTBOX START*/
.ddi_values .multi-select {
  padding: 10px;
}
.ddi_values .multi-drop-down {
  background: inherit;
  color: var(--true-grey-bright-color);
  /* flex: 0 0 auto; */
  width: 15px;
  position: relative;
  display: inline-block;
  margin-left: -20px;
  font-weight: normal;
  border: none;
}
.ddi_values .multi-drop-down:hover {
  color: var(--vibrant-color);
  cursor: pointer;
}
div.multi-drop-down > i {
  pointer-events: none;
}
.multi-drop-down-items button.actionbutton {
  background: white;
  color: var(--vibrant-color);
  width: 100%;
  height: 20px;
  margin: 0;
  border-radius: 0;
}
.multi-drop-down-items button.actionbutton:hover {
  color: var(--vibrant-color);
  cursor: pointer;
  text-decoration: underline;
}
.multi-drop-down-items {
  /* display: none; */
  position: absolute;
  background-color: white;
  min-width: 300px;
  height: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding-bottom: 2px;
  z-index: 2;
}
.multi-drop-down-items > div:first-child {
  overflow-y: auto;
  height: calc(200px - 20px);
  padding: 12px 10px;
}
.drop-down-item {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  color: var(--base-font-color);
  cursor: default;
  padding: 3px 0px;
  align-items: center;
}
.drop-down-item > input[type='checkbox'] {
  width: 30px;
}
/*LISTBOX END*/
.form-container {
  position: relative;
  /* background-color: #f5f6f7; */
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;

  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.img-container img {
  object-fit: contain;
  height: 100%;
  width: 100%;
}
.scrollable {
  /* pvt container */
  height: calc(100% - 30px);
  overflow: auto;
}
.task-container {
  position: relative;
  background-color: var(--white-bg-color);
  height: 100%;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 25px;
  overflow: auto;
  /* margin-left: 100px; */
}
.modal__body .task-container {
	margin:0;
}
.step {
  height: auto;
  width: auto;
  flex-direction: column;
  justify-content: flex-start;
  margin: 5px 15px;
}
.tab-body--main .step {
	width: 800px;
}
.stepheader {
  font-size: 15px;
  color: var(--vibrant-color);
  font-weight: 700;
  padding: 10px 10px 10px 10px;
}
.modal__body .stepheader {
	padding: 0;
}
.stepresult {
  font-size: 12px;
  font-weight: 700;
  padding-top: 5px;
  padding-bottom: 50px;
  background-color: var(--white-bg-color);
}
h1.stepresult {
  color: green;
  background-color: var(--white-bg-color);
  text-align: center;
}
.step_card.stepresult {
  box-shadow: none;
  margin-top: -40px;
  margin-bottom: 50px;
}
.modal__body .stepresult {
	margin-bottom: 0;
}
.step-nav {
  text-align: right;
  padding: 0px 5px 5px 0px;
}
.step-nav-step { /* TODO: This seems to be unused */
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbbbbb;
  border: none;
  border-radius: 50%;
  display: inline-block;
}
.confirm-nav {
  text-align: center;
  position: absolute;
  bottom: 0;
  left:0;
  right:0;
  padding: 10px;
  /* width: 100%; */
}
.CONFIRMATION,
.steperror {
  font-size: 13px;
  line-height: 1.5;
  margin: auto;
  margin-bottom: 70px;
}
.step-nav .linkbutton {
  margin: 0;
  padding: 5px;
}
.confirm-nav button {
  width: auto;
  margin: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
  color: white;
  min-width: 50px;
  cursor: pointer;

/*   padding: 10px;
  border-radius: 5px;
  background-color: white;
  font-weight: 700;
  margin-left: 5px; */
}
.confirm-nav button:disabled {
	display:none;
/*   color: var(--true-grey-bright-color);
  border: 2px solid var(--true-grey-bright-color); */
}
.confirm-nav button:hover {
  cursor: pointer;
  text-decoration: underline;
}
.confirm-nav button:disabled:hover {
  cursor: auto;
  text-decoration: none;
}
.js-hidden {
	display: none !important;
}
button.linkbutton.capture {
  margin: 0;
  padding: 5px;
}
a.linkbutton.red {
	color: red;
}
a.linkbutton.green {
	color: green;
}
#printme {
  height: 0;
  width: 0;
}
.pdf-viewer {  /* The iframe holding the pdf viewer */
  border: 1px solid #ccc;
  width: 100% !important;
  height: 100% !important;
}
