/* GLOBAL
 */

html {
  font-family: Roboto, sans-serif;
  font-size: 18px;
}

body {
  overflow: hidden;
}

body,
p {
  margin: 0;
}

.white-text {
  color: #ffffff !important;
}

input,
textarea {
  font: inherit;
  border: none;
  /* Don't use color with alpha channel because it will break some things visually. */
  background-color: #ebf0f6;
  padding: .4rem .5rem;
  outline: none;
}

button {
  padding: .5rem 1rem;
  border: 0;
  margin: 0;
  border-radius: 2px;
  font-size: .8rem;
  font-weight: 700;
  min-width: 64px;
  cursor: pointer;
  outline: none;
  transition: background-color 300ms ease;
  background-color: #efefef;
}

button.disabled {
  opacity: .2;
  background-color: transparent;
  cursor: not-allowed;
}

button:not(.disabled):focus {
  text-decoration: underline;
  text-decoration-style: dotted;
}

button:not(.disabled):hover {
  background-color: #d3d3d3;
}

button+button {
  margin-left: 0.5rem;
}

button.blue {
  color: #fff;
  background-color: #0d4d95dd;
}

button.blue:not(.disabled):hover {
  background-color: #0d4d95;
}

button.transparent {
  border: 2px solid rgba(0, 0, 0, .4);
  background-color: transparent;
}

button.transparent:not(.disabled):hover {
  background-color: rgba(0, 0, 0, .1);
}

button.transparent.white {
  color: #ffffff;
  border: 2px solid #ffffffa0;
}

button.transparent.white:not(.disabled):hover {
  background-color: #ffffff30;
}

button.transparent.blue {
  color: #0d4d95;
  border: 2px solid #0d4d95;
}

button.transparent.blue:not(.disabled):hover {
  background-color: #0d4d9520;
}

button.toolbar {
  padding: .25rem .5rem;
  min-width: 0;
  font-size: 1.2rem;
  border: none;
  background-color: transparent;
}

button.toolbar:not(.disabled):hover {
  background-color: rgba(0, 0, 0, .1);
}

button.icon-button {
  font: inherit;
  color: inherit;
  padding: 0;
  background-color: transparent;
  min-width: unset;
}

.blue-text {
  color: #0d4d95;
}

/* Pulsator
 */

.pulsator {
  background: #0d4d9550;
  border-radius: 50%;
  margin: 10px;
  height: 20px;
  width: 20px;

  box-shadow: 0 0 0 0 #0d4d9550;
  transform: scale(1);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.5);
    box-shadow: 0 0 0 0 #0d4d9550;
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px #0d4d9500;
  }

  100% {
    transform: scale(0.5);
    box-shadow: 0 0 0 0 #0d4d9500;
  }
}

/* Ellipsis.js
 */

.ellipsis-dot1 {
  animation: dot1-visibility 2s ease-in-out infinite;
}

@keyframes dot1-visibility {
  0% {
    opacity: 1;
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.ellipsis-dot2 {
  animation: dot2-visibility 2s ease-in-out infinite;
}

@keyframes dot2-visibility {
  0% {
    opacity: 0;
  }
  21% {
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.ellipsis-dot3 {
  animation: dot3-visibility 2s ease-in-out infinite;
}

@keyframes dot3-visibility {
  0% {
    opacity: 0;
  }
  43% {
    opacity: 0;
  }
  44% {
    opacity: 1;
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Overlay.js
 */

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: auto;
  transition: opacity 0.3s;
  animation: fade-in 0.3s;
  z-index: 1;
  background-color: #00000060;
}

.overlay.transparent {
  background-color: transparent;
}

.overlay.hide {
  animation: fade-out 100ms;
}

.overlayElement {
  margin: auto;
}

@media screen and (max-width: 800px) {
  .overlayElement {
    padding: 0;
  }
}

.overlayElement.popup {
  position: absolute;
  margin: 0;
  padding: 0;
}

/* Dialog
 */

.dialog {
  background-color: #FFF;
  max-width: calc(100vw - 4rem); /* Take padding into account */
  border-radius: 3px;
  overflow: hidden;
  padding: 2rem;
  margin: 2rem;
  color: #0d4d95;
}

@media screen and (max-width: 700px) {
  .dialog {
    max-width: calc(100vw - 3rem); /* Take padding/margin into account */
    padding: 1rem;
    margin: .5rem;
  }
}

.dialog-header {
  position: relative;
  color: #0d4d95dd;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.dialog-header > div {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dialog-header > button {
  margin-left: .5rem;
  flex: 0 0 auto;
  cursor: pointer;
}

.dialog-content {
  position: relative;
}

.dialog-buttons {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.dialog-buttons > button {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-right: .25rem;
  color: #ffffff;
  background-color: #0d4d95dd;
  transition: background-color 300ms ease;
}

.dialog-buttons > button:last-child {
  margin-right: 0;
}

.dialog-buttons > button:not(.disabled):hover {
  background-color: #0d4d95a0;
}

.dialog-buttons > button + button {
  margin-left: .25rem;
}

.dialog-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.dialog-line {
  display: flex;
  flex-direction: row;
}

.dialog-line.column {
  flex-direction: column;
}

.dialog-line.vertical-centered {
  align-items: center;
}

.dialog-line + .dialog-line {
  margin-top: 10px;
}

.dialog-field {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dialog-field + .dialog-field {
  margin-left: 10px;
}

.dialog-label {
  color: #0d4d95;
  font-size: .9rem;
}

.dialog-input {
  width: 20rem;
}

.dialog-field > .dialog-input {
  width: unset;
  flex: 1 1 auto;
}

.dialog-field.invalid > .dialog-input {
  background-color: #ffdfdf;
}

/* Submit dialog
 */

.submit-info {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 750px;
}

/* Announcements dialog
 */

.announcements-dialog {
  max-height: calc(90vh - 4rem);
  display: flex;
  flex-direction: column;
}

.announcements-dialog .dialog-content {
  padding: 1rem;
  border-top: 1px solid #0d4d95dd;
  border-bottom: 1px solid #0d4d95dd;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #0d4d9510;
}

.announcement + .announcement {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dotted #0d4d95;
}

.announcement-header {
  display: flex;
  flex-direction: row;
}

.announcement-header h2 {
  flex: 1 1 auto;
  margin-top: 0;
  font-size: 1rem;
  font-weight: 700;
}

.announcement-date {
  flex: 0 0 auto;
  font-size: .8rem;
  color: #0d4d95;
  margin-left: .5rem;
}

/* Settings dialog
 */

/* Styling for select from here:
 * https://www.sliderrevolution.com/resources/css-select-styles/
 * https://codepen.io/5t3ph/pen/MWyyYNz
 */

.settings-dialog .dialog-content {
  display: grid;
  place-content: center;
  grid-gap: 0.1rem;
}

:root {
  --select-border: #0d4d95dd;
  --select-focus: blue;
  --select-arrow: var(--select-border);
}

.settings-dialog select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: transparent;
  border: none;
  padding: 0 1em 0 0;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
  z-index: 1;
  outline: none;
}

.settings-dialog select::-ms-expand {
  display: none;
}

.settings-dialog .select {
  display: grid;
  grid-template-areas: "select";
  align-items: center;
  position: relative;
  min-width: 15ch;
  max-width: 30ch;
  padding: 0.4rem 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1.1;
  background-color: #ebf0f6;
}

.settings-dialog .select select, .select::after {
  grid-area: select;
}

.settings-dialog .select:not(.select--multiple)::after {
  content: "";
  justify-self: end;
  width: 0.8em;
  height: 0.5em;
  background-color: var(--select-arrow);
  -webkit-clip-path: polygon(100% 0%, 0 0%, 50% 100%);
          clip-path: polygon(100% 0%, 0 0%, 50% 100%);
}

.settings-dialog select:focus + .focus {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 2px solid var(--select-focus);
  border-radius: inherit;
}

.settings-dialog select[multiple] {
  padding-right: 0;
  /*
   * Safari will not reveal an option
   * unless the select height has room to
   * show all of it
   * Firefox and Chrome allow showing
   * a partial option
   */
  height: 6rem;
  /*
   * Experimental - styling of selected options
   * in the multiselect
   * Not supported crossbrowser
   */
}

.settings-dialog select[multiple] option {
  white-space: normal;
  outline-color: var(--select-focus);
}

.settings-dialog .select--disabled {
  cursor: not-allowed;
  background-color: #eee;
  background-image: linear-gradient(to top, #ddd, #eee 33%);
}

.settings-dialog label {
  color: #0d4d95dd;
  font-size: .9rem;
}

.settings-dialog .select + label {
  margin-top: 1rem;
}

/* Issue dialog
 */

.issue-dialog {
  min-width: 0;
  max-width: 750px;
  margin: 2rem auto;
  padding: 1rem;
}

/* Insert popup.
 */

.insertPopup {
  display: flex;
  flex-direction: column;
  box-shadow: 4px 4px 5px #888;
  border-radius: 3px;
  overflow: hidden;
}

.insertPopup button {
  border-radius: 0;
  background-color: white;
  color: #0d4d95;
  font-size: 1rem;
  font-weight: 300;
  padding: .5rem 2rem;
}

.insertPopup button:hover {
  background-color: #f0f0f0;
}

.insertPopup button+button {
  margin: 0;
  border-top: 1px dotted #0d4d95;
}

/* App layout
 */

.app-layout {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  display: flex;
  flex-direction: column;
}

.app-content {
  position: relative;
  flex: 1 1 auto;
}

.app-footer {
  flex: 0 0 auto;
  color: white;
  font-size: .6rem;
  background-color: #111;
  display: flex;
  flex-direction: row;
}

.app-terms {
  flex: 1 1 auto;
}

.app-terms a {
  color: white !important;
  text-decoration: none;
}

.app-copyright {
  flex: 0 0 auto;
}

/* Lookup
 */

.lookup {
  position: relative;
  display: flex;
  flex-direction: column;
}

.lookup-input {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: .5rem .5rem 0 .5rem;
}

.lookup-input > .lookup-placeholder {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 3px;
  background-color: transparent;
  border: 2px solid #8dabcd;
  color: #ffffff40;
  padding: .4rem .5rem;
  pointer-events: none; /* Otherwise we can't click into input */
}

.lookup-input > input {
  flex: 1 1 auto;
  border-radius: 3px;
  background-color: transparent;
  border: 2px solid #8dabcd;
  color: #ffffffc0;
  text-transform: uppercase;
}

.lookup-desc {
  font-size: .9rem;
  color: #ffffff40;
  margin: .1rem .6rem .3rem .6rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lookup-results {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lookup-results-viewport {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
  padding: 0 .5rem .5rem .5rem;
}

.lookup-alias {
  position: relative;
  padding: .25rem;
  background-color: #ffffff60;
  cursor: pointer;
  transition: background-color 300ms ease;
  color: #0d4d95;
  display: flex;
  flex-direction: row;
}

.lookup-alias:hover {
  background-color: #ffffffa0;
}

.lookup-alias + .lookup-alias {
  margin-top: 3px;
}

.lookup-alias.focused {
  background-color: #ffffffa0;
}

.lookup-alias > .modelNum {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lookup-alias > .fa-caret-right {
  color: transparent;
  margin-right: .25rem;
}

.lookup-alias.focused > .fa-caret-right {
  color: unset;
}

/* Designer
 */

.designer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
}

.designer-drop-target {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #0d4d9560;
  z-index: 10000;
  color: #333;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.designer-sidebar {
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1 1 33%;
  width: 510px;
  min-width: 510px;
  max-width: 510px;
  background-color: #2b63a2;
  overflow-x: hidden;
  overflow-y: auto;
}

.designer-sidebar-header {
  flex: 0 0 auto;
  padding: .5rem;
  background-color: #0d4d95;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.designer-sidebar-header > img {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 2.5rem;
  max-height: 2.5rem;
}

.designer-sidebar-header > button {
  position: relative;
  flex: 0 0 auto;
  font-size: 1.25rem;
  padding: 0.5rem;
  min-width: 0;
  color: #ffffff;
  background-color: transparent;
  transition: background-color 300ms ease;
}

.designer-sidebar-header > button.hidden {
  visibility: hidden
}

.designer-sidebar-header > button:hover {
  background-color: #ffffff30;
}

.designer-sidebar-badge {
  /* circle shape, size and position */
  position: absolute;
  right: -.2rem;
  top: -.1rem;
  min-width: 1.2rem; /* or width, explained below. */
  height: 1.2rem;
  border-radius: 0.6rem; /* or 50%, explained below. */
  background-color: red;

  /* number size and position */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: .8rem;
  color: white;
}

.designer-sidebar-content {
  flex: 1 1 auto;
  position: relative;
}

.designer-sidebar-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin-left: 0;
  transition: left 300ms ease, right 300ms ease;
  display: flex;
  flex-direction: column;
  scrollbar-color: #ffffff40 transparent;
  overflow-x: hidden;
  overflow-y: auto;
}

.designer-sidebar-panel.left {
  left: -100%;
  right: 100%;
}

.designer-sidebar-panel.right {
  left: 100%;
  right: -100%;
}

.designer-sidebar-panel-tabs {
  flex: 0 0 auto;
  color: #ffffffc0;
  border-bottom: 2px solid #8dabcd;
  display: flex;
  flex-direction: row;
  padding: .5rem 1rem 0 1rem;
}

.designer-sidebar-panel-tab {
  flex: 1 1 auto;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: .5rem;
  border: 2px solid transparent;
  background-color: transparent;
  transition: background-color 300ms ease;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #ffffff20;
}

.designer-sidebar-panel-tab.icon-tab {
  flex: 0 0 auto;
  width: unset;
}

.designer-sidebar-panel-tab.selected {
  margin-bottom: -2px;
  border-color: #8dabcd;
  border-bottom-color: #2b63a2;
  background-color: #2b63a2;
  font-weight: 700;
}

.designer-sidebar-panel-tab + .designer-sidebar-panel-tab {
  margin-left: .5rem;
}

.designer-sidebar-config-header {
  flex: 0 0 auto;
  color: #ffffffd0;
  border-bottom: 2px solid #8dabcd;
  display: flex;
  flex-direction: row;
}

.designer-sidebar-config-title {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: .25rem 1rem;
}

.designer-sidebar-config-subtitle {
  font-size: .9rem;
}

.designer-sidebar-config-maintitle {
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.designer-sidebar-config-header > button {
  margin: .5rem;
}

.designer-sidebar-panel-viewport {
  position: relative;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.designer-sidebar-panel-viewport > .lookup {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.designer-sidebar-products {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  padding: .25rem;
}

.designer-product-button {
  position: relative;
  margin: .25rem;
  padding-top: .5rem;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  border: 1px solid #ffffffa0;
  cursor: pointer;
  transition: background-color 300ms ease;
  color: #0d4d95;
}

.designer-product-button:hover {
  background-color: #ffffff40;
}

.designer-product-button > img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
  object-position: center center;
}

.designer-product-label {
  background-color: #fffffff0;
  flex: 1 1 auto;
  margin-top: .5rem;
  padding: .5rem;
  box-sizing: border-box;
  width: 150px;
  max-width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.designer-product-family {
  text-align: center;
  font-weight: 700;;
}

.designer-product-desc {
  font-size: .9rem;
  text-align: center;
  overflow: hidden;
}

@media screen and (max-width: 1400px) {
  .designer-sidebar {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
  }
}

@media screen and (max-width: 800px) {
  .designer-sidebar {
    width: 225px;
    min-width: 225px;
    max-width: 225px;
  }

  .designer-sidebar-header>img {
    height: 2rem;
    max-height: 2rem;
  }

  .designer-sidebar-header>button {
    padding: .25rem;
  }

  .designer-sidebar-panel-tabs {
    padding: .5rem .25rem 0 .25rem;
    font-size: .7rem;
  }

  .designer-sidebar-panel-tab + .designer-sidebar-panel-tab {
    margin-left: .25rem;
  }

  .designer-sidebar-config-subtitle {
    font-size: .8rem;
  }

  .designer-sidebar-config-maintitle {
    font-size: .9rem;
  }
}

.designer-content {
  position: relative;
  flex: 1 1 100%;
  overflow: hidden;
}

.designer-content > .canvas {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.designer-name-banner {
  color: #0d4d95dd;
  margin-bottom: 5px;
  pointer-events: none;
}

.designer-buttons {
  position: absolute;
  pointer-events: none;
}

.designer-buttons.top {
  top: 5px;
}

.designer-buttons.bottom {
  bottom: 5px;
}

.designer-buttons.left {
  left: 5px;
}

.designer-buttons.right {
  right: 5px;
}

.designer-buttons.stretch {
  left: 5px;
  right: 5px;
  text-align: center;
}

.designer-status-message {
  margin-top: 1rem;
  color: #0d4d95;
  font-size: .9rem;
}

.designer-toolbar-loading {
  color: #0d4d9590;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: #ffffff80;
}

/* ConfigSidebar
 */

.config-sidebar {
  padding: 1rem;
  color: #ffffffd0;
}

.config-sidebar > * + * {
  margin-top: 1rem;
}

.config-sidebar-group {
  border: 1px solid #ffffffa0;
}

.config-sidebar-group .config-oneOf {
  border: none;
}

.config-sidebar-group .config-oneOf-values {
  margin: 0;
}

.config-sidebar-group + * {
  margin-top: 1rem;
}

.config-sidebar-group-name {
  font-size: 1rem;
  font-weight: 700;
  background-color: #ffffffa0;
  color: #0d4d95;
  padding: 0 .25rem;
}

.config-sidebar-group-options {
  padding: .25rem;
}

.config-sidebar-group-options .config-oneOf-title {
  background-color: transparent;
  color: #ffffffa0;
  font-size: .8rem;
}

.config-sidebar-group-options .config-oneOf + * {
  margin-top: .5rem;
}

.slideDown {
  overflow: hidden;
  animation: slide-down 600ms;
  transform-origin: top;
}

@keyframes slide-down {
  from {
    opacity: 0;
    max-height: 0;
  }

  to {
    opacity: 1;
    max-height: 750px;
  }
}

.slideUp {
  overflow: hidden;
  animation: slide-up 200ms;
  transform-origin: top;
}

@keyframes slide-up {
  from {
    max-height: 750px;
  }

  to {
    max-height: 0;
  }
}

* + .config-sidebar-globals {
  margin-top: 1rem;
}

.config-sidebar-globals::before {
  content: "Overrides";
  margin-bottom: .25rem;
  display: block;
  font-weight: 700;
  text-align: center;
}

/* ScrollableToolbar
 */

.scrollable-toolbar {
  display: inline-flex;
  flex-direction: row;
  pointer-events: all;
  max-width: 100%;
}

.scrollable-toolbar > button {
  flex: 0 0 auto;
  font-size: 2rem;
  padding: 0;
  width: 2.5rem;
  min-width: 0;
  color: #0d4d9590;
  background-color: transparent;
  transition: opacity 300ms ease, color 300ms ease;
  opacity: 1;
}

.scrollable-toolbar > button.hidden.disabled {
  opacity: 0;
  cursor: revert;
}

.scrollable-toolbar > button:not(.disabled):hover {
  background-color: transparent;
  color: #0d4d95;
}

.scrollable-toolbar-buttons {
  min-width: 0;
  flex: 1 1 auto;
  position: relative;
  display: inline-flex;
  border: 2px solid #0d4d9550;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollable-toolbar-buttons::-webkit-scrollbar {
  display: none;
}

.scrollable-toolbar-buttons > button {
  flex: 0 0 auto;
  font-size: 1.75rem;
  padding: .25rem;
  background-color: #ffffff80;
  border-radius: 0;
  color: #0d4d9590;
  transition: background-color 400ms ease-in-out;
}

.scrollable-toolbar-buttons > button.disabled {
  opacity: 1;
  color: #0d4d9520 !important;
}

.scrollable-toolbar-buttons > button:not(.disabled):hover {
  background-color: #0d4d9530;
}

.scrollable-toolbar-buttons > button + button {
  margin: 0;
  border-left: 2px solid #0d4d9550
}

.scrollable-toolbar-buttons > button.text {
  font-size: revert;
  padding: 10px;
}

.scrollable-toolbar-buttons > .hide {
  opacity: 0 !important;
}

/* OneOf
 */

.config-detail {
  display: flex;
  flex-direction: column;
}

.config-oneOf,
.config-detail {
  border: 1px solid #ffffffa0;
}

.config-oneOf + *,
.config-detail + * {
  margin-top: 1rem;
}

.config-oneOf:last-child {
}

.config-oneOf-title,
.config-detail-title {
  font-size: 1rem;
  font-weight: 700;
  background-color: #ffffffa0;
  color: #0d4d95;
  padding: 0 .25rem;
}

.config-oneOf-values,
.config-detail-value {
  margin: .25rem;
  background-color: #ffffff30;
}

.config-detail-value {
  color: inherit;
  padding: .25rem;
}

.config-oneOf-option {
  cursor: pointer;
  padding: .25rem;
  transition: color 300ms ease, background-color 300ms ease;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.config-oneOf-option > span {
  flex: 1 1 auto;
  width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.config-oneOf-option > i {
  flex: 0 0 auto;
  display: none;
}

.config-oneOf-option.selected > i {
  display: unset;
}

.config-oneOf-values.expanded > .config-oneOf-option.selected {
  border-bottom: 1px dashed #ffffffa0;
}

.config-oneOf-option:hover {
  color: #ffffff;
  background-color: #ffffff40;
}

.config-oneOf.filtered .config-oneOf-option {
  cursor: initial;
}

.config-oneOf.filtered .config-oneOf-option > span {
  white-space: normal;
}

.config-oneOf.filtered .config-oneOf-option:hover {
  color: unset;
  background-color: unset;
}

/* Checkbox
 */

.form-control {
  line-height: 1.1;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.form-control input[type=checkbox] {
  /* Add if not using autoprefixer */
  -webkit-appearance: none;
  /* Remove most all native input styles */
  -moz-appearance: none;
       appearance: none;
  /* For iOS < 15 */
  background-color: white;
  /* Not removed via appearance */
  margin: 0;
  margin-right: .5em;
  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
  padding: 0;
}

.form-control input[type=checkbox]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  -webkit-clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
          clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em currentColor;
}

.form-control input[type=checkbox]:checked::before {
  transform: scale(1);
}

.form-control input[type=checkbox]:focus {
  outline: 1px solid currentColor;
  outline-offset: 1px;
}

.form-control input[type=checkbox]:disabled {
  background-color: #0d4d9520;
  color: #0d4d9540;
  cursor: not-allowed;
}

/* Canvas
 */

.canvas {
  position: relative;
}

.canvas > canvas {
  width: 100%;
  height: 100%;
}

/* ClickThrough dialog
 */

.clickthrough > .dialog-content {
  font-size: 1.2rem;
  max-width: 750px;
}

/* Welcome
 */

.welcome {
  position: relative;
  width: 90%;
  height: 90%;
  background-color: #0d4d95;
  color: #ffffff;
  border-radius: 3px;
  box-shadow: 3px 3px 8px #00000088;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
}

.welcome-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.welcome-header {
  flex: 0 0 auto;
}

.welcome-content {
  flex: 1 1 auto;
  height: 0;
  display: flex;
  flex-direction: column;
}

.welcome-tutorial {
  text-align: right;
  margin-bottom: 1rem;
}

.welcome-tutorial > button {
  border: none !important;
  font-size: .9rem;
}

.welcome-title {
  flex: 0 0 auto;
  font-size: 1.75rem;
  padding: 0 .5rem .5rem .5rem;
  text-align: center;
  margin-bottom: .5rem;
}

.welcome-title-sub {
  font-size: .9rem;
}

.welcome-title-main {
  font-weight: 700;
}

.welcome-title-main > img {
  height: 3rem;
}

.welcome-title > p {
  font-size: 1.2rem;
}

.welcome-screen {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease;
  background-color: #0d4d95;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.welcome-screen.visible {
  opacity: 1;
  visibility: visible;
}

.welcome-screen.scrollable {
  display: block;
  overflow-y: auto;
}

.welcome-video-iframe {
  width: calc(160vh);
  height: calc(90vh);
  box-sizing: border-box;
  padding: 2.5rem 4.4444444444rem;
}

@media (max-aspect-ratio: 16/9) {
  .welcome-video-iframe {
    width: calc(90vw);
    height: calc(50.625vw);
    padding: 1.40625rem 2.5rem;
  }
}


.welcome-screen-closer {
  position: absolute;
  top: .5rem;
  right: .5rem;
  font-size: .9rem;
  font-weight: 700;
  min-width: unset;
}

.welcome-tabs {
  flex: 0 0 auto;
  padding-top: .5rem;
  color: #ffffffc0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #2b63a2;
  border-bottom: 2px solid #8dabcd;
}

.welcome-tab {
  cursor: pointer;
  padding: .5rem 1rem;
  border: 2px solid transparent;
  margin-bottom: -2px;
  background-color: #ffffff20;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.welcome-tab.selected {
  background-color: #2b63a2;
  border-color: #8dabcd;
  border-bottom-color: #2b63a2;
  font-weight: 700;
}

.welcome-tab + .welcome-tab {
  margin-left: .5rem;
}

.welcome-tabs-content {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  background-color: #2b63a2;
  position: relative;
}

.welcome-designs-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #2b63a2;
  visibility: hidden;
  opacity: 0;
}

.welcome-designs-wrapper.visible {
  visibility: visible;
  opacity: 1;
}

.welcome-designs {
  position: relative;
  padding: .5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.design {
  flex: 0 1 100%;
  color: black;
  transition: background-color ease 300ms;
  cursor: pointer;
}

@media screen and (min-width: 800px) {
  .design {
    flex: 0 1 50%;
  }
}

@media screen and (min-width: 1400px) {
  .design {
    flex: 0 1 33%;
  }
}

.design:hover {
  background-color: #ffffff30;
}

.design-padding {
  background-color: #ffffff;
  margin: .75rem;
  height: calc(100% - 1.5rem); /* exclude top/bottom margin */
  position: relative;
}

.design-image {
  height: 0;
  padding-top: 56.25%;
  max-height: 50vh;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.design-detail {
  padding: 1rem;
}

.design-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0d4d95;
  margin-bottom: .25rem;
}

.design-desc {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.design-desc > span {
  flex: 1 1 auto;
}

.design-desc > button {
  margin-left: .5rem;
  flex: 0 0 auto;
}

.welcome-footer {
  flex: 0 0 auto;
  font-size: .8rem;
  padding: .25rem;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}

.welcome-footer-button {
  border: none !important;
}

.welcome-footer-button.disabled {
  opacity: .3;
}

.welcome-footer-button > i {
  margin-right: .25rem;
  color: #ffffff40;
  padding: 2px;
}

.welcome-footer-button > i.bordered {
  border: 1px solid white;
}

.welcome-footer-button.checked > i {
  color: #ffffff;
}

@media screen and (max-height: 500px) {
  .welcome-body {
    flex-direction: row;
  }

  .welcome-header {
    flex: 0 0 33%;
  }

  .welcome-content {
    height: unset;
  }

  .welcome-tutorial {
    text-align: center;
  }

  .welcome-title-main > img {
    height: 2rem;
  }

  .welcome-title {
    margin-bottom: 0;
  }

  .welcome-title > p {
    font-size: 1rem;
  }

  .welcome-tabs-content {
    height: 0;
  }

  .welcome-designs {
    justify-content: center;
  }

  .welcome-footer {
    padding: .5rem;
  }

  .welcome-footer-button {
    padding: .25rem 1rem;
  }

  .design {
    flex: 0 1 60%;
  }
}


/* Equipment list
 */

.eql {
  font-size: .9rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.eql-header {}

.eql-header-content {
  padding: 1rem;
  text-align: center;
}

.eql-logo {
  font-size: 2.25rem;
  line-height: 0;
  font-weight: 700;
}

.eql-logo>img {
  width: 33%;
}

.eql-address-block {
  margin-top: 1rem;
  font-size: .9rem;
  color: #0d4d95;
}

.eql-address+.eql-address::before {
  content: " • ";
}

.eql-content {
  overflow: hidden;
  margin: 2rem 3rem;
}

@media screen and (max-width: 700px) {
  .eql-content {
    margin: 1rem .5rem;
  }
}

.eql-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5rem 0;
}

.eql-job {
  position: relative;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.eql-job.uninitialized {
  color: #00000030;
}

.eql-job.uninitialized::after {
  content: "Enter job name";
}

.eql-job input {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.eql-table-wrapper {
  overflow-y: auto;
}

.eql-table {
  display: table;
  border-spacing: 0;
}

.eql-table-cell {
  display: table-cell;
  white-space: nowrap;
  vertical-align: top;
  text-align: left;
}

.eql-table-cell+.eql-table-cell {
  padding-left: 1rem;
}

.eql-table-cell.right {
  text-align: right;
}

.eql-table-cell.center {
  text-align: center;
}

.eql-table-cell.expanded {
  width: 100%;
  white-space: normal;
}

.eql-table-cell a {
  text-decoration: none;
  color: #0d4d95;
}

.eql-table-cell img {
  width: 175px;
  height: 175px;
  object-fit: contain;
  display: block;
}

.eql-table-header {
  display: table-header-group;
}

.eql-table-header .eql-table-cell {
  font-weight: 700;
  color: #0d4d95;
  padding-bottom: 1rem;
}

.eql-table-line {
  display: table-row;
  break-inside: avoid;
}

.eql-table-line + .eql-table-line {
  padding-top: 1rem;
}

.eql-table-line.first > .eql-table-cell {
  border-top: 1px solid #0d4d95;
}

.eql-table-line.first > td {
  padding-top: 1rem;
}

.eql-table-line.last > td {
  padding-bottom: 1rem;
}

.eql-item-num,
.eql-model-num,
.eql-model-desc {
  font-size: 1rem;
  font-weight: 700;
}

.eql-item-num {
  color: #0d4d95;
}

.eql-model-details {
  display: flex;
  flex-direction: column;
}

.eql-model-option {
  display: inline;
}

.eql-model-option::after {
  content: ", ";
}

.eql-model-option:last-child::after {
  content: none;
}

.eql-option-value {
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
}

.eql-disclaimer {
  margin-top: 1rem;
  font-size: .8rem;
  font-style: italic;
  float: right;
}

.eql-renders {
  page-break-before: always;
  max-width: 1280px;
  margin: 0 auto;
}

.eql-render {
  border: 1px solid #0d4d95;
  margin: 2rem auto;
  break-before: auto;
  break-after: auto;
  break-inside: avoid;
}

.eql-render>img {
  display: block;
  width: 100%;
}

.eql-render-label {
  color: #0d4d95;
  font-weight: 700;
  padding: .5rem 1rem;
}

.eql-render-label img {
  height: 1rem;
  margin-bottom: -2px;
}

.report-buttons {
  position: absolute;
  top: 0;
  right: 0;
}

.report-buttons > button {
  border-radius: 0;
}

.report-buttons > button + button {
  margin-left: 0;
  border-left: none !important;
}

.print-only {
  display: none;
}

.status-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.status-notification.success {
  background-color: #4CAF50;
}

.status-notification.error {
  background-color: #F44336;
}

.status-notification.progress {
  background-color: #2196F3;
}

.status-notification.hidden {
  display: none;
}

.status-icon {
  margin-right: 10px;
  font-size: 1.2em;
}

@media print {

  @page {
    margin: 10mm;
  }

  html {
    font-size: 9pt;
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #000000;
  }

  body {
    margin: 0;
  }

  .print-only {
    display: revert;
  }

  .eql {
    max-width: unset;
    margin: 0;
  }

  .eql-renders {
    max-width: unset;
    margin: 0 3rem;
  }

  .eql-logo > img {
    width: auto;
    height: 3rem;
  }

  .eql-title {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .eql-title > div {
    display: inline;
  }

  .eql-job.uninitialized {
    display: none;
  }

  .eql-job + div {
    margin-left: .3rem;
  }

  .app-layout {
    display: none;
  }

  .overlay {
    position: relative;
    margin: 0;
    width: auto;
    height: auto;
    display: block;
  }

  .overlayElement {
    padding: 0;
  }

  .dialog {
    margin: 0;
    padding: 0;
    max-width: unset;
    border: none;
    border-radius: 0;
  }

  .dialog-header {
    display: none;
  }

  .dialog-content {
    margin: 0;
  }

  .dialog-buttons {
    display: none;
  }

  .report-print-button {
    display: none;
  }
}
