/* ------------------------------------------------------------------------- */
/* Base */

.preInit {
  visibility: hidden;
  opacity: 0;
}

.live {
  visibility: visible !important;
  opacity: 1 !important;
  transition: opacity 1s;
}

@media (prefers-color-scheme: light) {
  :root {
    background-color: #FFFFFF;
    color: black;
    border-color: #E3E4E5;
  }

  select,
  input[type="button"],
  input[type="text"],
  input[type="password"] {
    border: solid #E3E4E5 1px;
  }

  option {
    background-color: white;
    color: black;
  }

  a {
    color: blue;
  }

  *:focus {

  }

  select:read-only,
  input:read-only
  textarea:read-only {
    background-color: transparent;
    color: gray;
    cursor: default !important;
  }

  *:disabled {
    color: gainsboro !important;
    background-color: transparent !important;
    border-color: gainsboro !important;
    cursor: default !important;
  }

  *::placeholder,
  *::-webkit-input-placeholder {
    color: lightgray;
  }
  
  *:disabled::placeholder,
  *:disabled::-webkit-input-placeholder {
    visibility: hidden;
  }

  textarea:focus {
    background-color: white;
    color: black;
  }

  button {
    background-color: #DFDFDF;
  }

  button:focus {
    background-color: gray;
    color: white;
  }

  dialog {
    background-color: #F5F6F7;
    color: black;
    border-color: #E3E4E5 !important;
    box-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5);
  }

  .formSheet {
    background-color: #F5F6F7;
    color: black;
  }

  .border {
    border-color: #E3E4E5;
  }

  .divider {
    border-color: #E3E4E5;
  }

  .menu {
    background-color: white;
    color: black;
    border-color:gray;
    box-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5);
  }

  .menuActive {
    background-color: white;
    color: black;
    border-color:gray !important;
    box-shadow: 2px 0px 2px rgba(200, 200, 200, 0.5);
  }

  .tab.first {
    background-color: #F5F6F7;
    border-color: #E3E4E5;
  }

  .ribbon {
    background-color: #F5F6F7;
  }

  .sidePanel {
    background-color: #F5F6F7;
  }

  .ui-splitbar {
    background: #F5F6F7 !important;
  }

  .canvas {
    background-color: #FFFFFF;
  }

  .appLogo {
    filter: invert(0.6);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    background-color: #1E1E1E;
    color: #D5D5D5;
  }

  select,
  input[type="button"],
  input[type="text"],
  input[type="password"],
  textarea {
    border: solid gray 1px;
    background-color: #656565;
    color: white;
  }

  *:focus {

  }

  select:read-only,
  input:read-only,
  textarea:read-only {
    background-color: transparent !important;
    color: gray;
    cursor: default !important;
  }

  *:disabled {
    color: #505050 !important;
    background-color: transparent !important;
    border-color: #505050 !important;
    cursor: default !important;
  }

  *::placeholder,
  *::-webkit-input-placeholder {
    color: lightgray;
  }

  *:disabled::placeholder,
  *:disabled::-webkit-input-placeholder {
    visibility: hidden;
  }  

  option {
    background-color: #292929;
    color: white;
  }

  a {
    color: steelblue;
  }

  button {
    background-color: #DFDFDF;
  }

  button:focus {
    background-color: gray;
    color: white;
  }

  dialog {
    background-color: #292929;
    color: white;
    border-color:gray !important;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
  }

  .formSheet {
    background-color: #292929;
    color: white;
  }

  .border {
    border-color: #656565;
  }

  .divider {
    border-color: #656565;
  }

  .menu {
    background-color: #292929;
    color: white;
    border-color:#454545;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);
  }

  .menuActive {
    background-color: #292929;
    color: white;
    border-color:#454545 !important;
    box-shadow: 2px 0px 2px rgba(0, 0, 0, 0.7);
  }

  /*
  .tab.first {
    background-color: #454545;
    border-color: #656565;
  }
  */

  .ribbon {
    background-color: #454545;
  }

  .expansion {
    background-color: #454545;
  }

  .sidePanel {
    background-color: #292929;
  }

  .ui-splitbar {
    background: #292929 !important;
  }

  .canvas {
    background-color: #1E1E1E;
  }
}

/* ------------------------------------------------------------------------- */

.lds-dual-ring {
  display: inline-block;
  width: 80px;
  height: 80px;
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 32px;
  height: 32px;
  margin: 8px;
  border-radius: 50%;
  border-width: 6px;
  border-style: solid;
  border-color: gray transparent gray transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------------------- */
