@use '@vizality' as vz;

/**
 * Vizality (Dashboard) Settings Context Menu
 */
.vz-settings-context-menu {
  &-search {
    [vz-addon-icon] .label-2gNW3x {
      display: flex;
      align-items: center;
      &::before {
        @include vz.size(20px);
        content: '';
        background: var(--vz-addon-icon) no-repeat center / contain;
        display: flex;
        border-radius: 4px;
        margin-right: 12px;
      }
    }
    .groupLabel-16o1xl {
      justify-content: flex-start;
      background: none !important;
      padding: 0;
      > div {
        pointer-events: all;
        width: 100%;
        padding: 3px 6px;
      }
      + .separator-1So4YB {
        margin: 5px 0 10px;
      }
    }
  }
  &-no-results {
    &-text {

    }
    &-image {
      
    }
  }
}

.menu-1QACrS {
  .textBadge-1fdDPJ {
    display: inline;
    margin-left: 6px;
    font-size: 10px;
  }
}

.vz-dashboard-content-sidebar {
  $base: &;
  [vz-builtin='settings'] & {
    height: fit-content;
    width: 240px;
    background: var(--background-secondary-alt);
    border-radius: 8px;
    padding: 16px;
    z-index: 1;
    margin: 40px 0 0 40px;
    top: 90px;
    &[vz-collapsed] {
      flex-direction: column;
      width: 60px !important;
      min-width: 60px;
      max-width: 60px;
      height: fit-content !important;
      padding: 16px;
      #{$base}-inner {
        width: 60px;
        display: flex;
      }
      #{$base}-expander {
        @include vz.size(42px);
      }
      /**
       * Expander wrapper
       */
      > div:first-of-type {
        margin-top: -10px;
        margin-bottom: 10px;
      }
      #{$base}-items {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }
      #{$base}-header-wrapper {
        display: none;
      }
      #{$base}-item-wrapper {
        margin: 2px 0;
        &:last-of-type {
          margin: 2px 0 0;
        }
        .vz-dashboard-sidebar-item-inner {
          padding: 2px;
        }
      }
      .vz-dashboard-sidebar-item-icon-wrapper {
        margin: 0;
      }
      .content-1U25dZ {
        display: none;
      }
    }
  }
}

.vz-dashboard-settings {
  &-content-inner {
    flex: 1;
    margin-top: 40px;
  }
  &-search-outer-wrapper {
    position: sticky;
    padding-top: 20px;
    background: var(--background-primary);
    top: 0;
    z-index: 1;
    margin-top: -20px;
    padding-bottom: 20px;
  }
  &-search-wrapper {
    flex: 0 auto;
    background: var(--background-secondary-alt);
    border-radius: 8px;
    border: 1px solid transparent;
    > div {
      align-items: center;
    }
    input {
      padding: 10px;
      font-size: 16px;
      + div {
        margin: 0 10px;
        width: 30px;
        height: 30px;
        > div {
          width: 24px;
          height: 24px;
        }
        svg {
          width: 24px;
          height: 24px;
        }
      }
    }
    &:focus-within {
      border-color: var(--brand-experiment);
    }
  }
}

.vz-filter-input {
  width: 100%;
  position: sticky;
  top: 0;
  padding: 20px 0;
  box-sizing: border-box;
  background: var(--background-primary);
  z-index: 1;
}
