
._dash-loading {
  margin: auto;
  color: transparent;
  width: 0;
  height: 0;
  text-align: center;
}

._dash-loading::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2rem;
  color: #e8e8e8;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  -webkit-animation: spinner-border 0.75s linear infinite;
  animation: spinner-border 2s linear infinite;
  margin-top: 50vh;
}

@keyframes spinner-border {
  100% {
    transform: rotate(360deg);
  }
}

[data-mantine-color-scheme="light"] .custom-switch {
  --switch-bg: var(--mantine-color-iron-9);
  --switch-text-color: var(--mantine-color-white);
}

.app-main {
  height: 100%;
  min-height: 0;
}

.app-main > div {
  height: 100%;
  min-height: 0;
}

.components-tree .component-tree-node {
  align-items: center;
  border-radius: var(--mantine-radius-sm);
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  gap: 4px;
  padding: 3px 6px;
  transition: background-color 120ms ease;
  width: 100%;
}

.components-tree .component-tree-node:hover,
.components-tree .component-tree-node[data-hovered] {
  background-color: rgba(0, 73, 102, 0.14);
}

.components-tree .component-tree-node__icon {
  background-color: currentColor;
  flex: 0 0 14px;
  height: 14px;
  mask: url("/assets/component-cube-outline.svg") center / contain no-repeat;
  width: 14px;
}

.components-tree .component-tree-node--pending {
  color: var(--mantine-color-orange-7);
}

.subsystems-tree .subsystem-tree-node {
  align-items: center;
  border-radius: var(--mantine-radius-sm);
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  gap: 4px;
  padding: 3px 6px;
  transition: background-color 120ms ease;
  width: 100%;
}

.subsystems-tree .subsystem-tree-node:hover,
.subsystems-tree .subsystem-tree-node[data-hovered] {
  background-color: rgba(0, 73, 102, 0.14);
}

.subsystems-tree .subsystem-tree-node__icon {
  background-color: currentColor;
  flex: 0 0 14px;
  height: 14px;
  mask: url("/assets/component-cube-outline.svg") center / contain no-repeat;
  width: 14px;
}

.subsystems-tree .subsystem-tree-node__icon--subsystem {
  mask-image: url("/assets/subsystem-source-branch.svg");
}

.subsystems-tree .subsystem-tree-node__chevron,
.subsystems-tree .subsystem-tree-node__chevron-spacer {
  align-items: center;
  display: inline-flex;
  flex: 0 0 18px;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.subsystems-tree .subsystem-tree-node__chevron {
  background: transparent;
  border: 0;
  border-radius: var(--mantine-radius-sm);
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.subsystems-tree .subsystem-tree-node__chevron:hover {
  background-color: rgba(0, 73, 102, 0.14);
}

.subsystems-tree .subsystem-tree-node__chevron svg {
  transition: transform 120ms ease;
}

.subsystems-tree .subsystem-tree-node__chevron--expanded svg {
  transform: rotate(90deg);
}

.subsystems-tree .subsystem-tree-node--pending {
  color: var(--mantine-color-orange-7);
}

@media (max-width: 48em) {
  .library-tree-detail-layout {
    flex-direction: column !important;
  }

  .library-tree-detail-layout .library-tree-pane,
  .library-tree-detail-layout .library-detail-pane {
    flex: 1 1 50% !important;
    max-width: 100%;
    min-height: 0;
    width: 100%;
  }
}

#_pages_content {
  height: 100%;
  min-height: 0;
}

input[data-mission-segment-bound="end"][aria-invalid="true"],
input[data-probability-input][aria-invalid="true"] {
  border-color: var(--mantine-color-red-6);
  background-color: var(--mantine-color-red-0);
  padding-right: 2rem;
}

.input-validation-invalid {
  position: relative;
}

.input-validation-error {
  align-items: center;
  background: var(--mantine-color-red-6);
  border-radius: 50%;
  color: var(--mantine-color-white);
  display: flex;
  font-size: 0.75rem;
  font-weight: 700;
  height: 1rem;
  justify-content: center;
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
}

.component-table-modifier-pills {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  height: 100%;
}

.component-table-modifier-pill {
  background: var(--component-table-modifier-color);
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.25rem 0.45rem;
}

.component-table-no-modifiers {
  color: var(--ag-secondary-foreground-color, #868e96);
}

.component-table-name {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  height: 100%;
  width: 100%;
}

#component-table {
  --ag-row-hover-color: rgba(52, 159, 219, 0.16);
}

#component-table .component-table-name-cell {
  cursor: pointer;
}

#component-table .component-table-name-cell:hover .component-table-name > span {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

#component-table .ag-row-hover .ag-cell {
  background-color: var(--ag-row-hover-color);
}

/* Mantine keeps each notification container fixed across the available page
 * height.  It must not intercept grid interactions outside its visible card. */
#calculation-notification-container {
  pointer-events: none;
}

#calculation-notification-container > * {
  pointer-events: auto;
}

.component-table-name-icon {
  color: var(--mantine-color-deep_space-7, #349fdb);
  flex: 0 0 auto;
}

.component-table-birnbaum {
  align-items: center;
  display: flex;
  height: 100%;
  min-width: 0;
  position: relative;
}

.component-table-birnbaum-track {
  background: rgba(52, 159, 219, 0.12);
  border-radius: 0.25rem;
  height: 1.25rem;
  overflow: hidden;
  width: 100%;
}

.component-table-birnbaum-fill {
  background: rgba(52, 159, 219, 0.35);
  height: 100%;
}

.component-table-birnbaum-label {
  color: var(--ag-foreground-color, #212529);
  font-variant-numeric: tabular-nums;
  left: 0;
  line-height: 1.25rem;
  position: absolute;
  right: 0;
  text-align: center;
}

.component-table-no-birnbaum {
  color: var(--ag-secondary-foreground-color, #868e96);
}
