#overview.templates {
  display: flex;
  background-color: var(--board-background);
  justify-content: space-between;
  padding-top: 2em;
  padding-bottom: 2em;
  gap: 2em;
  height: 100%;
  width: 100vw;
  max-width: 100vw;
  position: static;

  .template-preview {
    flex: 0 1 auto;
    display: flex;
    gap: 1em;
    flex-direction: column;
    background-color: var(--bg-dark);
    padding: 2em;
    border-radius: 5px;
    margin-right: 1em;
    margin-bottom: 4em;
    overflow-x: auto;

    .node-view {
      position: static;
    }

    .header {
      display: flex;
      flex-direction: column;
      gap: 1em;
      position: relative;

      p {
        margin-top: 1em;
      }

      button {
        width: fit-content;
        position: absolute;
        right: 0;
        bottom: 0;
        font-size: 1.25em;
        flex-direction: row-reverse;

        svg {
          color: var(--dark-gray);
        }
      }
    }

    .body {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr 1fr;
      grid-auto-rows: 1fr;
      gap: 1em;
      overflow: auto;
      cursor: default;
    }

    .node-view {
      background-color: var(--bg);
      border-radius: 8px;
      padding: 1em;
      display: flex;
      flex-direction: column;
      gap: 1em;

      .title-container {
        display: flex;
        gap: 0.5em;
        align-items: center;

        input {
          outline: unset;
          box-shadow: unset;
          accent-color: var(--bg-dark);
          color-scheme: dark;

          &:disabled {
            color: green !important;
            background-color: green !important;
            /*filter: grayscale(0.7);*/
          }
        }
      }

      .data-fields {
        display: flex;
        flex-direction: column;
        gap: 0.5em;
        flex: 0 1 auto;

        .data-field-item {
          flex: 0 1 auto;
          display: flex;
          gap: 1em;
          background-color: var(--bg-alt);
          padding: 0.5em;
          border-radius: 4px;
          justify-content: space-between;

          > :first-child {
            width: 8em;
            font-weight: bold;
            color: var(--disabled-bg);
            margin-right: 1em;
          }

          > :last-child {
            width: 8em;
            color: var(--bg-active);
            margin-right: 1em;
          }
        }
      }
    }
  }

  .templates-search {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 1em;

    .items-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 0.25em;
      gap: 1em;
      flex: 1 0 auto;
      height: 60vh;
      overflow: auto;
      padding-left: 1em;
      padding-right: 1em;
    }

    .item {
      width: 300px;
      color: whitesmoke;
      background-color: var(--primary);
      font-size: 22px;
      padding: 8px;
      cursor: pointer;
      border-radius: 5px;
      display: flex;
      gap: 0.5em;
      align-items: center;

      &:has(.selected-point) {
        filter: brightness(0.5);
      }

      &.cursor {
        outline: 1px solid var(--white);
        filter: unset;
      }

      .selected-point {
        background: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 1em;
        height: 1em;
        font-size: 0.5em;
        border-radius: 50%;
        color: black;
      }
    }
  }
}
