@import url("https://fonts.googleapis.com/css2?family=Nunito&display=swap");

html.light,
html.light * {
  --red: #e57373;
  --green: #81c784;

  --primary: #f96332;
  --secondary: #1b384f;
  --background: #f2f2f3;
  --border: #ccc;
  --black: #333333;
  --white: #ffffff;
}

html.dark,
html.dark * {
  --red: #e57373;
  --green: #81c784;

  --primary: #443737;
  --secondary: #ff4d00;
  --background: #272121;
  --border: #443737;
  --black: #ffffff;
  --white: #333333;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--black);
}

html {
  /* box-sizing: border-box; */
  font-family: sans-serif;
  background-color: var(--background);
}

.container {
  display: inline-flex;
  flex-direction: column;
  margin: 0.5rem;
  padding: 1rem;
  border: solid 1px var(--border);
  border-radius: 0.25rem;
}

.logo {
  transition: 0.3s;
}

.logo:hover {
  opacity: 0.8;
}

.logo:active {
  opacity: 0.6;
}

.logo > img {
  height: 38px;
}

#container {
  position: fixed;
  display: flex;
  left: 0;
  right: 0;
  top: 50px;
  bottom: 0px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  width: 280px;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 280px;
  height: 100%;
  z-index: 5;
}

.sidebar.left {
  border-right: 1px solid var(--border);
}

.sidebar.right {
  width: 300px;
  flex-basis: 300px;
}

#content {
  display: flex;
  margin: auto;
  width: 100%;
  height: 100%;
}

.divider {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.resize {
  resize: vertical;
  overflow: auto;
  height: 400px;
}

.list {
  display: flex;
  flex-wrap: wrap;
  width: calc(100% - 1rem);
  max-height: 100%;
  overflow: auto;
  padding: 0.5rem;
  background-color: var(--background);
}

.list-item {
  position: relative;
  flex: 0 calc(50% - 2rem - 2px);
  display: flex;
  width: 100%;
  flex-direction: column;
  border: 1px solid var(--border);
  background-color: var(--white);
  padding: 0.8rem 0.5rem;
  margin: 0.5rem;
  cursor: pointer;
  transition: 0.3s;
  color: var(--secondary);
}

.list-item.disabled {
  background-color: var(--border);
  cursor: not-allowed;
}

.list-item:not(.disabled):hover {
  opacity: 0.8;
}

.list-item:not(.disabled):active {
  opacity: 0.6;
}

.list-item > i {
  margin: auto;
  padding-bottom: 0.6rem;
  font-size: 1.6rem;
}

.list-item > span {
  margin: auto;
  font-size: 0.75rem;
  text-align: center;
}

.list-item > img:not(.special) {
  position: absolute;
  height: 40px;
  top: 0;
  right: 0;
}

.list-item > .special {
  margin: auto;
}

.w-100 {
  width: 100%;
}

.hide {
  display: none;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.ml-0 {
  margin-left: 0 !important;
}

.mr-0 {
  margin-right: 0 !important;
}

.mt-5 {
  margin-top: 5px;
}

.mb-5 {
  margin-bottom: 5px;
}

.ml-5 {
  margin-left: 5px;
}

.mr-5 {
  margin-right: 5px;
}

.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.ml-10 {
  margin-left: 10px;
}

.mr-10 {
  margin-right: 10px !important;
}

.pl-10 {
  padding-left: 10px;
}

.pr-10 {
  padding-right: 10px;
}

.m-auto {
  margin: auto;
}

.d-flex {
  display: flex;
}

ul > li {
  cursor: pointer;
}

li.selectPage > div > span,
li.selectModule > div > span {
  background-color: var(--green);
  padding: 0.3rem;
  border-radius: 0.25rem;
}

#data-explorer > li > ul {
  min-height: 1rem;
  width: 100%;
}

/* start header */

.header {
  position: relative;
  display: flex;
  background-color: var(--white);
  height: 50px;
  width: 100%;
  max-height: 80%;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-left {
  margin: auto;
  margin-left: 0;
  padding-left: 0.6rem;
}

.header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 0.6rem;
}

.header-right {
  margin: auto;
  margin-right: 0;
  padding-right: 0.6rem;
}

/* end header */

/* start tabs */

.tabs {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tabs-header {
  display: flex;
  border: solid 1px var(--border);
  border-bottom: none;
  overflow-x: auto;
  flex-shrink: 0;
}

.tabs-header > .tabs-item {
  display: flex;
  flex-direction: column;
  color: var(--secondary);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.6rem 0.8rem;
  transition: 0.3s;
  background-color: var(--border);
  border: solid 1px transparent;
  border-top: none;
  border-bottom-color: var(--border);
  width: 100%;
}

.tabs-header > .tabs-item:first-child,
.tabs-header > .tabs-item:first-child {
  border-left: none;
}

.tabs-header > .tabs-item:last-child,
.tabs-header > .tabs-item:last-child {
  border-right: none;
}

.tabs-header > .tabs-item:hover {
  opacity: 0.8;
}

.tabs-header > .tabs-item:active,
.tabs-header > .tabs-item.active {
  border-color: var(--border);
  background-color: var(--white);
  border-bottom-color: transparent;
}

.tabs-header > .tabs-item > i {
  margin: auto;
}

.tabs-header > .tabs-item > span {
  text-align: center;
  margin: auto;
}

.tabs-body {
  overflow: auto;
  padding: 0.6rem 0.4rem;
  border-left: solid 1px var(--border);
  border-bottom: solid 1px var(--border);
  border-right: solid 1px var(--border);
}

.tabs-body > .tabs-item {
  display: none;
  width: 100%;
}

/* end tabs */

/* start button */

.button {
  display: inline-flex;
  background-color: var(--secondary);
  color: var(--white);
  padding: 0 0.8rem;
  height: 32px;
  min-height: 32px;
  font-size: 0.9rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.3s;
}

.button.red {
  background-color: var(--red);
}
.button.green {
  background-color: var(--green);
}

button.max {
  width: 100%;
}

button.small {
  font-size: 0.8rem;
  height: 22px;
  min-height: 22px;
}

button.big {
  font-size: 1.2rem;
  height: 42px;
}

.button:hover {
  opacity: 0.8;
}

.button:active {
  opacity: 0.6;
}

.button:focus {
  outline: none;
}

.button > i {
  margin: auto;
  margin-right: 0.4rem;
}

.button > i:last-child {
  margin: auto;
}

.button.icon > span {
  margin: auto;
  margin-left: 0;
}

.button > span {
  margin: auto;
}

button.outline {
  background-color: transparent;
  color: var(--secondary);
}

button.simple {
  background-color: transparent;
  color: var(--secondary);
  border: none;
}

/* end button */

/* start link */

.link {
  display: inline-flex;
  color: var(--secondary);
  transition: 0.3s;
}

.link:hover {
  opacity: 0.8;
}

.link:active {
  opacity: 0.6;
}

.link > span {
  margin: auto;
}

.link.icon > i {
  margin: auto;
  margin-right: 0.4rem;
}

.link.icon > i:last-child {
  margin: auto;
}

/* end link */

/* start input */

.input {
  border-radius: 0.25rem;
  height: 32px;
  min-height: 32px;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  border: solid var(--border) 1px;
  font-size: 0.8rem;
  background-color: var(--white);
  color: var(--black);
}

.input.icon {
  display: flex;
  padding: 0;
  overflow: hidden;
}

.input.icon > i {
  margin: auto;
  margin-left: 0.6rem;
  /* margin-right: 0.4rem; */
}

.input.icon > input {
  border: none;
  height: 32px;
  padding-left: 0.4rem;
  background-color: var(--white);
  color: var(--black);
  width: 100%;
}

.input.icon > input:focus {
  outline: none;
}

.input.icon:focus-within {
  outline: rgb(94, 158, 215) auto 5px;
}

.text-input {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

/* end input */

/* start textarea */

.textarea {
  border-radius: 0.25rem;
  padding: 0.4rem;
  border: solid var(--border) 1px;
  font-size: 1rem;
  background-color: var(--white);
  color: var(--black);
}

/* end textarea */

/* start select */

.select {
  border-radius: 0.25rem;
  height: 32px;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  border: solid var(--border) 1px;
  font-size: 0.8rem;
  background-color: var(--white);
  color: var(--black);
}

/* end select */

/* start modal */

#modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.modal {
  display: flex;
  flex-direction: column;
  margin: auto;
  width: 380px;
  background-color: var(--background);
  border-radius: 0.25rem;
  max-height: 95%;
  overflow: hidden;
}

@media (min-width: 700px) {
  .modal {
    width: 600px;
  }

  .modal .list-item {
    flex: 0 calc(25% - 2rem - 2px);
  }
}

@media (min-width: 1000px) {
  .modal {
    width: 900px;
  }

  .modal .list-item {
    flex: 0 calc(14% - 2rem - 2px);
  }
}

.modal-header {
  display: flex;
  margin: 1rem;
}
.modal-header h3 {
  margin: 0;
}

.modal-header-left {
  margin: auto;
  margin-left: 0;
}

.modal-header-right {
  margin: auto;
  margin-right: 0;
}

.modal-body {
  display: flex;
  flex-direction: column;
  margin: 1rem;
  overflow: hidden;
}

/* end modal */
