body {
  color: var(--color-primary-text);

  font-size: 1.5rem;
  line-height: 2.8rem;

  overflow: hidden;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 62.5%;
}

h2 {
  font-weight: 700;
}

h3 {
  font-weight: 600;
  margin: 3.2rem 0;
}

#wrapper {
  padding-left: 0;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
  margin-top: 50px;
  display: flex;
}

#wrapper.toggled {
  padding-left: 0px;
}

#page-content-wrapper {
  background-color: var(--color-neutral-light);
  box-shadow: 0.1rem 0 0.2rem rgb(6 13 42 / 5%) inset;

  width: calc(100% - 28rem);
  height: calc(100vh - 5rem);

  flex-grow: 1;

  display: flex;
  flex-direction: column;
}

.page-header {
  position: relative;
}

.page-content-area {
  padding: 1.5rem;
  flex: 1 1 auto;
  overflow-y: auto;
}

::-webkit-scrollbar {
  width: 1.6rem;
}

::-webkit-scrollbar-thumb {
  background: var(--color-neutral-highlight);
  border-radius: 0.8rem;
  border: 0.4rem solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.row > * {
  width: auto;
}

.module-container {
  background: white;

  height: 100%;
  overflow-y: hidden;

  box-shadow: 0 12px 24px rgba(20, 27, 37, 0.11), 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 4px;

  position: relative;
}

.module-container > div {
  padding: 2.8rem 4.4rem;

  height: 100%;
  overflow-y: auto;
}

.module-container h2 {
  font-size: 1.7rem;
  font-weight: 600;

  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 0.1rem solid var(--color-neutral-light);
}

.module-container h2 + .options-row,
.module-container .page-header + .options-row {
  margin-top: -0.8rem;
  padding-bottom: 1.2rem;
}

.page-header__info-area {
  position: absolute;
  top: -1.6rem;
  right: 0;
  padding: 0.4rem 0;
  color: var(--color-neutral-highlight);
  font-size: 1.4rem;

  display: flex;
  align-items: center;
  width: auto;

  gap: 1.2rem;
  height: 5.2rem;
}

.page-header__info-area .header-action {
  margin-left: 2rem;
}

.component {
  margin: 1.4rem 0;
}

.component.fill-screen {
  height: calc(100vh - 28rem);
}

.component.fill-screen .component-content,
.component.fill-screen .dash-graph {
  height: 95%;
}

.page-actions {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
}

.page-actions.with-divider {
  padding-top: 2rem;
  border-top: 0.1rem solid var(--color-neutral-light);
}

.subpage-with-sidebar {
  display: flex;
}

.subpage-sidebar {
  width: 26rem;
  flex-shrink: 0;
  padding: 0.4rem 0;
  overflow-y: auto;
}

.subpage-main {
  flex-grow: 1;
  padding-right: 0;
  overflow-y: auto;

  border: 0.1rem solid #eee;
  border-radius: 0.5rem;
  margin-top: 0.4rem;
  margin-left: 2rem;
  padding: 0 1.2rem;
}

.subpage-main .component.border.border-dark {
  border: none !important;
  padding: 0;
  border-top: 0.1rem solid var(--color-neutral-light) !important;
  padding-top: 1rem;
  border-radius: 0;
}

.subpage-main h3 {
  margin-bottom: 2.4rem;
}

.subpage-main .page-actions {
  padding: 2rem 0;
  border-top: 0.1rem solid var(--color-neutral-light);
}

.subpage-main .component:first-child {
  margin-top: 0.4rem;
}

.subpage-main .component .settings-form-block .row .col-3:first-child {
  padding-left: 0;
}

.tab-parent .tabs-source-list.tab-container .tab span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subpage-with-sidebar {
  max-height: calc(100vh - 26rem);
  padding: 1.8rem 0;
}

.module-flex-view {
  display: flex;
  flex-direction: column;
}

.module-flex-view .page-title,
.module-flex-view .options-row {
  flex-shrink: 0;
}

.module-flex-view .subpage-with-sidebar {
  flex-shrink: 1;
  flex-grow: 1;
}

hr:not([size]) {
  height: 0;
}

p.small-hint {
  opacity: 0.8;
  font-size: 1.4rem;
  line-height: 140%;
}

.flyout-container {
  position: absolute;
  top: 6.9rem;
  right: 4.2rem;
  z-index: 10;
}

.flyout,
.floem-ui-menu {
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.2),
    0 0.1rem 0.3rem rgba(0, 0, 0, 0.15);
  border-radius: 0.3rem;
  padding: 1rem 2rem;
  width: 40rem;
  height: calc(100vh - 18rem);
  background: white;
  overflow-y: auto;
}

.flyout.auto-height,
.floem-ui-menu {
  height: auto;
  padding-bottom: 2rem;
}

.floem-ui-menu-button {
  position: relative;
}

.floem-ui-menu {
  position: absolute;
  z-index: 999;
  width: auto;
  min-width: 25rem;
}

.flyout .flyout-title,
.floem-ui-menu .flyout-title {
  display: block;
  font-size: 1.7rem;
  font-weight: 600;
  padding: 0.8rem 0;
}

.floem-ui-menu .flyout-title {
  font-size: 1.5rem;
}

.floem-ui-menu .btn {
  width: 100%;
  text-align: left;
  margin: 0.1rem 0;
  padding: 0.6rem 0;
  border-bottom: 0.1rem solid #eee;
  border-radius: 0;
}

.floem-ui-menu .btn:last-child {
  border-bottom: none;
}

.floem-ui-menu .btn .btn-icon.before-label {
  margin-right: 1.4rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state span {
  margin-top: 1.4rem;
  color: var(--color-neutral-highlight);
}

.empty-state .empty-state-icon {
  margin-bottom: 1.4rem;
}

.empty-state span.title {
  color: var(--color-text);
}

.divided-area {
  padding: 1.2rem 0;
  margin: 1.2rem 0 !important;
  border-top: 0.1rem solid var(--color-neutral-light);
  border-bottom: 0.1rem solid var(--color-neutral-light);
}

.modal {
  z-index: 1100;
}

.modal-content {
  padding: 1.6rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.3rem rgba(0, 0, 0, 0.05),
    0 1rem 3rem rgba(0, 0, 0, 0.2);
  border: none;
}

.modal-header {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 2.8rem;

  margin: 0 1rem;
  padding: 1rem 0;
}

.modal-body {
  padding-top: 2rem;
}

.modal-footer {
  margin-top: 2rem;
  padding: 1.8rem 0;
  padding-bottom: 0;
}

.modal-backdrop {
  background-color: rgba(22, 34, 62, 0.76);
}

.modal h3 {
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 1.4rem;
  padding-top: 2.2rem;
}

@media screen and (max-height: 650px) {
  .modal-dialog-centered {
    padding-top: 4rem;
  }
}

div#alerts .maintenance-alert[data-alert-id] {
  /* Initially hide alert before window is ready to determine if alert was already dismissed. */
  display: none;
}

.maintenance-alert {
  background: #eef4fa;
  box-shadow: 0.1rem 0.1rem 0.3rem rgba(0, 0, 0, 0.15);
  display: flex;
  line-height: 2.2rem;
  padding: 0.8rem 1.8rem;
}

.maintenance-alert--text {
  flex-grow: 1;
}

.maintenance-alert--updated-at {
  margin: 0 1.8rem;
  opacity: 0.5;
  flex-shrink: 0;
}

.maintenance-alert--actions {
  flex-shrink: 0;
}

.maintenance-alert.type-warning {
  background: #fff8df;
}

.maintenance-alert.type-warning .maintenance-alert--text {
  background: transparent url("/assets/iconography/warning.svg") no-repeat
    center left;
  padding-left: 3rem;
}

.collapsible {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  padding: 10px 20px;
  gap: 10px;

  background: #ffffff;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.06);

  border-radius: 4px;
  margin-bottom: 3px;

  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
}

.collapsible summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.6rem;
}

.collapsible summary .disclosure {
  content: "";

  background: transparent url("/assets/disclosure.svg") no-repeat center center;
  background-size: 1.4rem;

  width: 2rem;
  height: 2.8rem;
  transition: 0.2s transform ease-in-out;
}

.collapsible[open] summary .disclosure {
  transform: rotate(90deg);
}

.collapsible summary .status {
  margin-left: auto;
  opacity: 0.6;
}

.collapsible summary .indicator {
  width: 10px;
  height: 10px;

  background: #cecece;
  border-radius: 14px;

  flex-grow: 0;
  flex-shrink: 0;
}

.collapsible summary .title {
  flex-grow: 1;
}

.collapsible summary .indicator.active {
  background: #2ea65a;
}
