.saas-app-device-planning-sider {
  display: flex;
  flex: 0 0 220px;
  flex-direction: column;
  width: 220px;
  min-height: 0;
  padding: 16px;
  background: #fff;
  border-right: 1px solid #f0f0f0;

  &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  &__title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
  }

  &__desc {
    margin-top: 2px;
    font-size: 12px;
    line-height: 16px;
    color: rgba(0, 0, 0, 0.45);
  }

  &__list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow: auto;
  }

  &__loading {
    display: flex;
    justify-content: center;
    padding: 24px 0;
  }
}

.saas-app-device-planning-workarea-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.18s;

  &:hover {
    background: #f8fbff;
    border-color: #d6e4ff;
  }

  &.is-selected {
    background: #e6f4ff;
    border-color: #91caff;
  }

  &__icon {
    color: rgba(0, 0, 0, 0.25);
  }

  &__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.88);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__more {
    flex: 0 0 auto;
  }
}

.saas-app-device-planning-sider.saas-app-device-planning-sider--drawer {
  flex: 1 1 100%;
  flex-basis: 100%;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  border-right: none;

  .saas-app-device-planning-sider__header {
    margin-bottom: 10px;
  }

  .saas-app-device-planning-sider__list {
    gap: 10px;
  }

  .saas-app-device-planning-workarea-item {
    min-height: 44px;
    padding: 0 10px;
  }
}
