#nui-grayout {
  position: fixed;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
  z-index: 495;
  opacity: 0.8;
  -webkit-backdrop-filter: brightness(30%) blur(4px);
          backdrop-filter: brightness(30%) blur(4px);
}

.nui-button, div[data-nui=Button] {
  min-width: 90px;
  margin: 0px 15px;
  padding: 1px 20px 3px 20px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  flex-direction: row;
  background: rgb(233, 233, 233);
  background: linear-gradient(0deg, rgb(212, 212, 212) 0%, rgb(255, 255, 255) 100%);
  border: 1px solid #c1c1c1;
  border-radius: 10px;
  color: #303030;
  /*
  // todo: also implement in btn-warn and btn-okay
  &:hover {
      background: linear-gradient(0deg, rgb(189 189 189) 0%, rgb(244 244 244) 100%);
      border: 1px solid #454545;
  }

  &:active  {
      background: linear-gradient(0deg, rgb(244 244 244) 0%, rgb(189 189 189) 100%) !important;      
      border: 1px solid #454545 !important;
  }
  */
}
.nui-button[data-nui-disabled=true], div[data-nui=Button][data-nui-disabled=true] {
  color: #171717 !important;
  background: rgb(164, 164, 164) !important;
  background: linear-gradient(0deg, rgb(155, 155, 155) 0%, rgb(195, 195, 195) 100%) !important;
  border: 1px solid #4f4f4f;
  opacity: 0.25;
}
.nui-button > i, div[data-nui=Button] > i {
  padding-right: 5px;
}
.nui-button.nui-btn-warn, div[data-nui=Button].nui-btn-warn {
  background: #b1433c;
  background: linear-gradient(0deg, rgb(151, 33, 33) 0%, rgb(247, 133, 133) 100%);
  color: white;
}
.nui-button.nui-btn-okay, div[data-nui=Button].nui-btn-okay {
  background: #3dd033;
  background: linear-gradient(0deg, rgb(37, 138, 43) 0%, rgb(111, 236, 134) 100%);
  color: white;
}

.nui-treeview {
  position: relative;
  overflow: auto;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9em;
  color: #303070;
}
.nui-treeview .spinner {
  font-size: 32px;
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: gray;
}
.nui-treeview ol {
  padding-left: 0px;
  list-style: none;
}
.nui-treeview > * ol {
  padding-left: 15px;
}
.nui-treeview li {
  white-space: nowrap;
  font-weight: normal;
  cursor: pointer;
}
.nui-treeview li[data-nui-state=collapsed] > i:before {
  content: "\f07b";
}
.nui-treeview li[data-nui-state=collapsed] > ol {
  display: none;
}
.nui-treeview li[data-nui-state=loading] > i:before {
  content: "\f110";
  font-weight: 900;
}
.nui-treeview li[data-nui-state=loading] > i {
  animation: fa-spin 2s infinite linear;
}
.nui-treeview li[data-nui-state=expanded] > i:before {
  content: "\f07c";
}
.nui-treeview li[data-nui-state=expanded] > ol {
  display: block;
}
.nui-treeview li[data-nui-selected=true] {
  font-weight: bold;
}
.nui-treeview li i {
  margin: 0px 5px 0px 0px;
  font-size: 14px;
  color: gray;
  width: 16px;
  text-align: center;
}
.nui-treeview > ol > li:before {
  background: conic-gradient(from 90deg at 0px 2px, #606060 90deg, #fff 0) calc(100% + 1px) calc(100% + 1px)/calc(50% + 2px) calc(50% + 2px);
}

.nui-listview {
  position: relative;
  overflow: auto;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9em;
  color: #303070;
}
.nui-listview .spinner {
  font-size: 32px;
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: gray;
}

div[data-nui=SwitchBar] {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: stretch;
  justify-content: center;
  align-items: center;
}
div[data-nui=SwitchBar] > * {
  padding: 2px 7px;
  border: 1px solid #454545;
  border-right-width: 0px;
  background: #eeeeee;
  cursor: pointer;
  color: gray;
}
div[data-nui=SwitchBar] > *[data-nui-selected=true] {
  background: #49a4ff;
  color: white;
  cursor: default;
}
div[data-nui=SwitchBar] > *[data-nui-selected=true]:hover {
  background: #49a4ff;
}
div[data-nui=SwitchBar] > *.label {
  background: #fff;
  color: #454545;
  cursor: default;
}
div[data-nui=SwitchBar] > *.label:hover {
  background: inherit;
}
div[data-nui=SwitchBar] > *:first-child {
  border-radius: 5px 0px 0px 5px;
}
div[data-nui=SwitchBar] > *:last-child {
  border-radius: 0px 5px 5px 0px;
  border-right-width: 1px;
}
div[data-nui=SwitchBar] > *:hover {
  background: #b2d8ff;
}
.nui-media-manager {
  position: fixed;
  left: 25px;
  top: 25px;
  right: 25px;
  bottom: 25px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  border-radius: 10px;
  border: 3px solid #303070;
  padding: 5px 10px;
  color: #606060;
}
.nui-media-manager > div:first-child {
  margin: -5px -10px;
  background: #303070;
  color: white;
  padding: 3px 10px;
}
.nui-media-manager > div:nth-child(2) {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
}
.nui-media-manager > div:nth-child(2) > div:first-child {
  min-width: 150px;
  width: 300px;
  padding: 0px 5px 0px 0px;
  margin: 15px 0px 0px 0px;
  overflow: auto;
}
.nui-media-manager > div:nth-child(2) > div:last-child {
  flex: 1;
  margin: 15px 0px 0px 5px;
  border-left: 1px dotted gray;
  padding: 0px 5px;
  display: flex;
  flex-direction: column;
}
.nui-media-manager > div:nth-child(2) > div:last-child > div:first-child {
  display: flex;
  flex-direction: row;
  padding: 5px 0px;
}
.nui-media-manager > div:nth-child(2) > div:last-child > div:last-child {
  margin: 5px 0px;
}
.nui-media-manager > div:last-child {
  display: flex;
  padding: 5px 0px;
}
.nui-media-manager > div:last-child > div:first-child {
  flex: 1;
}
.nui-media-manager .files > ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.nui-media-manager .files > ol li {
  width: 357px;
  padding: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}
.nui-media-manager .files > ol li > div:first-child {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  margin: 0px 5px;
  align-items: center;
}
.nui-media-manager .files > ol li > div:first-child i {
  font-size: 28px;
  margin: 0px 0px;
  color: gray;
  text-align: center;
}
.nui-media-manager .files > ol li > div:first-child img {
  max-width: 36px;
  max-height: 36px;
}
.nui-media-manager .files > ol li > div:first-child .process {
  position: absolute;
  text-align: center;
  font-weight: bold;
}
.nui-media-manager .files > ol li > div:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.nui-media-manager .files > ol li > div:last-child > div {
  white-space: nowrap;
}
.nui-media-manager .files > ol li > div:last-child > div:first-child {
  font-weight: bold;
}
.nui-media-manager .files > ol li > div:last-child > div:last-child {
  color: gray;
}
.nui-media-manager .files > ol li:hover {
  border: 1px dotted #6a75c1;
  padding: 5px;
}
.nui-media-manager .files > ol li[data-nui-selected=true] {
  border: 1px dotted #6a75c1;
  padding: 5px;
  background: #d3e9ff;
}
.nui-media-manager .files > ol li.dummy-item > div > i:before {
  content: "\f110";
  font-weight: 900;
}
.nui-media-manager .files > ol li.dummy-item > div > i {
  opacity: 0.2;
  animation: fa-spin 2s infinite linear;
}

div[data-nui=Dialog] {
  z-index: 1000;
  position: fixed;
  min-width: 300px;
  min-height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  background: #303070;
  border: 3px solid #303070;
  border-radius: 7px;
  box-shadow: 2px 2px 5px 1px rgba(173, 173, 173, 0.7882352941);
}
div[data-nui=Dialog] > .nui-header {
  background: none;
  text-align: center;
  padding: 1px 5px 3px 5px;
  color: white;
}
div[data-nui=Dialog] > .nui-content {
  background: white;
  margin-bottom: -1px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  padding: 10px;
}
div[data-nui=Dialog] > .nui-footer {
  background: white;
  border-radius: 0px 0px 7px 7px;
  padding: 5px 10px 7px 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-evenly;
  align-items: center;
}
div[data-nui=Dialog].nui-red {
  background: #7a1508;
  border-color: #7a1508;
}
div[data-nui=Dialog] input, div[data-nui=Dialog] textarea {
  padding: 2px 5px;
  border: 1px solid #414141;
  border-radius: 4px;
  background: papayawhip;
  margin: 10px 2px 5px 2px;
  color: #303060;
}

div.nui-dialog-grayout {
  display: none;
  position: fixed;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
  z-index: 999;
  background: none;
  -webkit-backdrop-filter: grayscale(1) opacity(0.8) blur(5px);
          backdrop-filter: grayscale(1) opacity(0.8) blur(5px);
}

ol[data-nui=MessageStack] {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 250px;
  max-width: 250px;
  display: flex;
  flex-direction: column-reverse;
  list-style: none;
}
ol[data-nui=MessageStack] > li {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  background: #999;
  border: 1px solid gray;
  margin-top: 10px;
  padding: 5px;
  color: white;
  opacity: 0.8;
  cursor: pointer;
}
ol[data-nui=MessageStack] > li > i {
  font-size: 1.5em;
  padding: 2px 10px 2px 2px;
}
ol[data-nui=MessageStack] > li > span {
  font-size: 0.9em;
}
ol[data-nui=MessageStack] > li.nui-error {
  background: #840404;
}
ol[data-nui=MessageStack] > li.nui-error > i:before {
  content: "\f06a";
}
ol[data-nui=MessageStack] > li.nui-warning {
  background: #b17f2b;
}
ol[data-nui=MessageStack] > li.nui-warning > i:before {
  content: "\f071";
}
ol[data-nui=MessageStack] > li.nui-success {
  background: #00cc3b;
}
ol[data-nui=MessageStack] > li.nui-success > i:before {
  content: "\f058";
}
ol[data-nui=MessageStack] > li.nui-info {
  background: #273ede;
}
ol[data-nui=MessageStack] > li.nui-info > i:before {
  content: "\f05a";
}
ol[data-nui=MessageStack] > li.nui-debug {
  background: #00acb1;
}
ol[data-nui=MessageStack] > li.nui-debug > i:before {
  content: "\f188";
}

.nui-no-text-select {
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
}

.nui-separator {
  flex: 1;
}