#opensumi-left-tabbar {
  .kt-badge {
    top: 0;
    right: -8px;
    font-size: 10px;
    min-width: 16px;
    padding: 0 2px;
    height: 14px;
    line-height: 14px;
    letter-spacing: -0.5px;
  }
}

#opensumi-statusbar {
  border-top: 0;
}

#top {
  margin-bottom: 1px;
  #opensumi-menubar {
    border-radius: 12px;
  }
}

#statusbar {
  padding-top: 1px;
  #opensumi-statusbar {
    border-radius: 12px;
    overflow: hidden;
  }
}

.kt-menu {
  &::-webkit-scrollbar {
    width: 4px;
    margin: 20px;
    &:hover {
      width: 10px;
    }
  }
}

.kt-menu.kt-inner-menu-submenu {
  background-color: transparent !important;
  border-radius: 8px !important;

  ul.kt-inner-menu-sub {
    backdrop-filter: saturate(150%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(150%) blur(20px) !important;
    border: 0 none !important;
    box-shadow: 0px 9px 28px 8px var(--design-boxShadow-primary), 0px 3px 6px -4px var(--design-boxShadow-secondary),
      0px 6px 16px 0px var(--design-boxShadow-tertiary) !important;
    border-radius: 8px !important;
    margin-left: 2px;

    .kt-icon {
      display: none;
    }
  }
}

.kt-menu.kt-inner-menu,
.kt-menu .kt-inner-menu {
  backdrop-filter: saturate(150%) blur(20px) !important;
  -webkit-backdrop-filter: saturate(150%) blur(20px) !important;
  border: 0 none !important;
  box-shadow: 0px 9px 28px 8px var(--design-boxShadow-primary), 0px 3px 6px -4px var(--design-boxShadow-secondary),
    0px 6px 16px 0px var(--design-boxShadow-tertiary) !important;
  border-radius: 8px !important;
  min-width: initial;
  padding: 4px 0 !important;

  .kt-inner-menu-submenu-title,
  .kt-inner-menu-item {
    height: 28px !important;
    padding: 0 !important;
    line-height: 28px !important;
  }

  li.kt-inner-menu-submenu {
    line-height: 28px;
    padding-bottom: 0;
  }
}

.kt-menu.kt-inner-menu .kt-inner-menu-item {
  margin: 0 !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  color: inherit !important;
  transition: none !important;
}

.kt-menu.kt-inner-menu .kt-inner-menu-item-divider,
.kt-menu .kt-inner-menu .kt-inner-menu-item-divider {
  pointer-events: none !important;
  opacity: 1 !important;
  margin: 4px 0 !important;
}

.kt-popover-content {
  box-shadow: 0px 9px 28px 8px var(--design-boxShadow-primary), 0px 3px 6px -4px var(--design-boxShadow-secondary),
    0px 6px 16px 0px var(--design-boxShadow-tertiary);
  border-radius: 6px;
  line-height: 18px;
  padding: 4px 6px;

  .kt-popover-title {
    margin-bottom: 0;
    font-size: 12px;
  }
}

html {
  ::-webkit-scrollbar-thumb {
    border-radius: 4px !important;
  }
}

#workbench-editor .monaco-editor {
  .decorationsOverviewRuler {
    width: 4px !important;
  }

  .find-widget {
    border-radius: 6px;
  }

  .minimap {
    left: auto !important;
    right: 4px !important;
  }

  .monaco-hover,
  .suggest-widget,
  .suggest-details {
    background-color: var(--kt-modal-background) !important;
    border-color: transparent;
    box-shadow: 0px 9px 28px 8px var(--design-boxShadow-primary), 0px 3px 6px -4px var(--design-boxShadow-secondary),
      0px 6px 16px 0px var(--design-boxShadow-tertiary) !important;
    border-radius: 8px !important;
  }

  .suggest-widget {
    overflow: hidden;
  }

  .monaco-scrollable-element {
    > .scrollbar > .slider {
      background: var(--scrollbarSlider-background);
    }

    .vertical {
      width: 4px !important;
      &:hover {
        width: 10px !important;
      }

      .slider {
        width: 4px !important;
        &:hover {
          width: 10px !important;
        }
        left: unset !important;
        right: 0;
        border-radius: 4px !important;
      }
    }

    .horizontal {
      height: 4px !important;
      &:hover {
        height: 10px !important;
      }
      .slider {
        border-radius: 4px !important;
        height: 4px !important;
        &:hover {
          height: 10px !important;
        }
      }
    }
  }

  .action-widget {
    backdrop-filter: saturate(150%) blur(20px);
    -webkit-backdrop-filter: saturate(150%) blur(20px);
    border: 0 none !important;
    box-shadow: 0px 9px 28px 8px var(--design-boxShadow-primary), 0px 3px 6px -4px var(--design-boxShadow-secondary),
      0px 6px 16px 0px var(--design-boxShadow-tertiary);
    border-radius: 8px;
    background-color: var(--menu-background);
    padding: 4px 0;
  }
}

.basic_tree {
  .tree_node {
    border-radius: 4px;
  }
}

.xterm .xterm-viewport {
  &::-webkit-scrollbar {
    width: 4px;
    &:hover {
      width: 10px;
    }
  }
}

// 对话框
.kt-modal-content {
  border-radius: 8px;
  background-color: transparent;
}
.kt-overlay .kt-modal-body {
  border-radius: 8px;
  border: 0 none !important;
  padding: 24px;
  box-shadow: 0px 9px 28px 8px var(--design-boxShadow-primary), 0px 3px 6px -4px var(--design-boxShadow-secondary),
    0px 6px 16px 0px var(--design-boxShadow-tertiary) !important;
}

.kt-dialog-buttonWrap button {
  border-radius: 4px;
}

.kt-notification-notice {
  border-radius: 8px;
}

// 全局按钮、下拉框、输入框设置调整
.input-box .validate-message.popup {
  padding: 8px;
}
.input-box .validate-message.popup.validate-warning {
  border-radius: 6px;
}

.kt-input {
  border-radius: 6px;
}

.default-button-size,
.kt-button {
  border-radius: 4px;
}

.large-button-size,
.kt-dialog-buttonWrap button {
  border-radius: 6px;
}

.kt-select-container .kt-select-value {
  border-radius: 4px;
}

.kt-select-options {
  border-radius: 8px;
}

.kt-clickable-icon:hover {
  transform: none;
}

#opensumi-quickpick {
  border: 0 none !important;
  box-shadow: 0px 9px 28px 8px var(--design-boxShadow-primary), 0px 3px 6px -4px var(--design-boxShadow-secondary),
    0px 6px 16px 0px var(--design-boxShadow-tertiary) !important;
  border-radius: 8px 8px 0 0 !important;
  padding: 4px 0;
}

.design_left_slot {
  display: flex;
}

.design_bottom_slot {
  background-color: var(--design-container-background);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;

  .kt-select-container {
    .kt-select-value > span {
      color: var(--design-text-foreground);
    }

    .kt-select-options {
      padding: 4px 0;
      border-radius: 8px;
      box-shadow: 0px 9px 28px 8px var(--design-boxShadow-primary), 0px 3px 6px -4px var(--design-boxShadow-secondary),
        0px 6px 16px 0px var(--design-boxShadow-tertiary);

      > div {
        line-height: 26px;
        height: 26px;
      }

      span {
        margin: 0;
        width: 100%;
      }

      &::-webkit-scrollbar {
        width: 4px !important;
        &:hover {
          width: 10px;
        }
      }
    }
  }
}

.design-dark,
.design-light {
  .monaco-editor,
  .monaco-editor-background,
  .monaco-editor .margin {
    background-color: var(--design-monaco-background) !important;
  }
}

/**
* layout 面板
**/
.design-slot_resize_horizontal {
  width: 2px;
  height: 100%;
  margin: 0 2px;
  position: relative;
}
