.light-theme  {
  --bg-title-color: #f7d069;
  --bg-color-1: #D9D9D9;
  --bg-color-2: #FEFEFE;
  --bg-color-3: #E9E9E9;
  --bg-color-4: #F8F8F8;
  --border-color: #B9B9B9;
  --border-bottom-color: #B9B9B9;
  --border-color-hover: #0c8cee;
  --title-hover-color: #D9D9D9;
  --hover-filter: brightness(0.85);
  --input-bg-color: #fff;
  --text-color: black;
  --card-meta-color: #000000;
  --card-header-color: rgba(0, 0, 0, 0.8);
  --thead-bg: #e9ecef;
  --thead-color: #495057;
  --scrollbar-track: #f8f8f8;
  --scrollbar-thumb: #D9D9D9;
  --scrollbar-thumb-hover: #B9B9B9;
  --ag-header-bg: #e9ecef;
  --ag-header-fg: #495057;
  --tree-hover-bg: #bee0f5;
  --tree-toggler-bg: #009fda;
  --fabric-colour-background: rgba(50, 50, 50, 0.8);
}
.dark-theme  {
  --bg-title-color: #f7d069;
  --bg-color-1: #141414;
  --bg-color-2: #262626;
  --bg-color-3: #202020;
  --bg-color-4: #282828;
  --border-color: #464646;
  --border-bottom-color: #464646;
  --border-color-hover: #4DA6FF;
  --title-hover-color: #141414;
  --hover-filter: brightness(0.85);
  --input-bg-color: #0f0f22;
  --text-color: #DDDDDD;
  --card-meta-color: #ffffff;
  --card-header-color: rgba(255, 255, 255, 0.8);
  --thead-bg: #1e1e2f;
  --thead-color: #ffffff;
  --scrollbar-track: #242424;
  --scrollbar-thumb: #141414;
  --scrollbar-thumb-hover: #050505;
  --ag-header-bg: #333;
  --ag-header-fg: #fff;
  --tree-hover-bg: #444;
  --tree-toggler-bg: #333;
  --fabric-colour-background: rgba(20, 20, 20, 0.8);
}
a {
  color: var(--border-color-hover);
  text-decoration: none;
}
::-webkit-scrollbar {
  width: thin;
  -webkit-appearance: none;
}
::-webkit-scrollbar:vertical {
  width: 10px;
}
::-webkit-scrollbar:horizontal {
  height: 10px;
}
/* Track */
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  border: 2px solid var(--scrollbar-track);
  background-color: var(--scrollbar-thumb);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
html,
body {
  padding: 0;
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  width: 100%;
  height: 100%;
}
html.ios,
html.ios body {
  width: 100% !important;
  height: 100% !important;
}
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  overflow: auto;
  -webkit-overflow-scrolling: auto;
  background: #fff;
}
.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.hidden {
  display: none !important;
}
.full-screen-panel {
  min-width: 400px;
  max-width: 60%;
  width: 100%;
  margin: 0px auto;
  margin-top: 20px;
  margin-bottom: 20px;
}
.flex-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 100%;
}
.flex-panel > .title {
  flex-shrink: 0;
}
.flex-panel > .title .icon,
.flex-panel > .title .value {
  float: left;
}
.flex-panel > .content {
  position: relative;
  flex-grow: 1;
  overflow: auto;
  margin: 0;
  padding: 0;
}
.flex-panel > .content .inner {
  width: 100%;
}
.flex-panel > .buttons {
  padding: 5px;
  border: 1px solid var(--border-color);
}
.panel .header .menu {
  border-radius: 0;
}
.panel .title {
  padding: 10px;
  font-size: 1.4rem;
  background: #ddd;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.panel .title .icon.button {
  background: none;
  padding: 0;
  margin: 0;
  margin-left: 5px;
  float: right;
  opacity: 0.6;
}
.panel .title .icon.button .icon {
  font-size: 1.2rem !important;
  line-height: 1.6rem;
}
.panel .subtitle,
.panel .crud.form form .subtitle {
  padding: 8px;
  background: #eee;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.panel .subsubtitle,
.panel .crud.form form > .subsubtitle {
  font-weight: bold;
  background: #f8f8f8;
  padding-bottom: 6px;
  padding-top: 6px;
}
.units {
  float: left;
  color: #999;
}
.units:not(:empty)::before {
  content: '(';
}
.units:not(:empty)::after {
  content: ')';
}
.input-group-addon {
  display: none !important;
}
.unselectable {
  -webkit-user-select: none;
  /* Chrome/Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE10+ */
  /* Rules below not implemented in browsers yet */
  -o-user-select: none;
  user-select: none;
}
.ui.popup,
.ui.popup:before {
  background-color: var(--bg-color-1);
}
.ui.menu .item {
  cursor: pointer;
}
.ui.menu .item .item {
  color: rgba(0, 0, 0, 0.8);
}
.ui.menu .item .ui.selection.dropdown {
  min-width: inherit;
  border: none;
}
.toolbar.ui.menu:not(.vertical) .item > .button {
  padding: 0.78571em 0.95em;
}
.ui.button {
  text-transform: uppercase;
}
::selection {
  background-color: rgba(172, 218, 254, 0.5);
}
.ui.selection.dropdown .menu {
  max-height: 300px;
}
.ui.input input {
  font-family: Helvetica, Arial, sans-serif;
}
.ui.menu.basic {
  box-shadow: none;
  border: 0;
}
.ui.icon.menu .icon.button {
  padding: 0.2rem 0.6rem;
  font-size: 1.1rem;
}
.ui.table.borderless {
  border: 0;
}
.ui.table.borderless td {
  border: 0;
}
.table-form {
  width: 100% !important;
}
.table-form tr {
  row-gap: .5rem;
  margin-bottom: .25rem;
  display: grid;
  width: 100%;
}
.table-form tr td {
  width: 100%;
}
.alert {
  padding: 0.5rem;
}
.alert.warning {
  background-color: yellow;
}
.form-error {
  background-color: #ff000066;
  border-radius: .25rem;
  border: solid 2px #d40202;
  padding: .5rem;
  list-style: none;
}
.form-error li {
  display: block;
}
