:host {
  height: 600px;

  display: flex;
  flex-direction: column;
  user-select: none;

  background-color: var(--color-bg-secondary);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 4px 12px;
  border-bottom: 1px solid gray; // TODO

  p {
    font-weight: 500;
  }

  .buttons {
    display: flex;
  }
}

.content {
  height: 100%;
  display: flex;

  .drawer {
    position: relative;
    width: 45%; // TODO: fix this
    height: 100%;
    border-right: 1px solid gray; // TODO
    overflow: hidden;

    transition: width ease-in-out 0.5s;

    xui-tab-group {
      height: 100%;
      transition: opacity ease-in-out 0.5s;
    }

    &.closed {
      width: 45px;

      xui-tab-group {
        opacity: 0;
      }
    }

    .toggle {
      position: absolute;
      top: 4px;
      right: 4px;
    }
  }

  .charts {
    flex: 1;
    display: flex;
    gap: 12px;
    flex-direction: column;

    padding: 24px 16px 0 16px;
    overflow-y: auto;

    .placeholder-group {
      position: relative;
      width: 100%;

      .placeholder {
        position: absolute;
        inset: 0 0 0 0;
        height: auto;
      }
    }

    .placeholder {
      flex: 0 0 auto;
      height: 48px;

      display: grid;
      place-items: center;

      font-size: 1.3rem;
      font-weight: 600;

      color: var(--color-primary-default);
      border: 3px dashed currentColor;
      border-radius: 8px;

      background: oklch(var(--color-primary-default-lch) / 0.2)
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'  width='24' height='24' viewBox='0 0 24 24'><path fill='#4CAF50' d='M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z' /></svg>")
        center no-repeat;
      background-size: 100px auto;

      &:hover {
        color: var(--success-color-default);
        border-color: currentColor;
        background: oklch(var(--color-success-default-lch) / 0.2);
      }
    }
  }
}
