@sale-detail-prefix: pisell-sale-detail;

.@{sale-detail-prefix}-tmpl-b {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #181818;

  .@{sale-detail-prefix}-tmpl-overview {
    flex: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .@{sale-detail-prefix}-tmpl-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background-color: #0a0a10;
  }

  .@{sale-detail-prefix}-tmpl-aside {
    flex: none;
    width: 100px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  .@{sale-detail-prefix}-tmpl-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .@{sale-detail-prefix}-inline-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .@{sale-detail-prefix}-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
    padding: 12px 6px 8px;
  }

  .@{sale-detail-prefix}-scroll-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
      display: none;
    }
  }

  .@{sale-detail-prefix}-footer {
    flex: none;
    overflow: hidden;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
  }

  .@{sale-detail-prefix}-button-actions {
    flex: none;
    padding: 8px 10px 8px;
    background: #fff;

    .pisell-lowcode-flex {
      gap: 8px;
      margin-bottom: 0 !important;
    }

    .pisell-lowcode-space {
      display: flex;
      width: 100%;
    }

    .pisell-lowcode-space:nth-child(2) {
      .pisell-lowcode-space-item:first-child {
        flex: 0 0 48px;
        max-width: 48px;
      }
    }

    .pisell-lowcode-space-item {
      flex: 1;
      min-width: 0;

      > .pisell-lowcode-btn {
        width: 100%;
        height: 48px;
        border-radius: 8px;
      }
    }

    &__button {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 48px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
      line-height: 16px;
      white-space: normal;
      word-break: normal;
      overflow-wrap: normal;

      .pisell-lowcode-btn-icon {
        display: inline-flex;
        flex: none;
        align-items: center;
        font-size: 18px;

        svg {
          width: 18px;
          height: 18px;
        }
      }

      > span:not(.pisell-lowcode-btn-icon) {
        display: -webkit-box;
        flex: 0 1 auto;
        min-width: 0;
        max-height: 32px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
      }

      &--primary {
        background: #7f56da;
      }

      &--edit {
        color: #2563eb;
        border-color: #2563eb;

        &:not(:disabled):hover,
        &:not(:disabled):active {
          color: #2563eb;
          border-color: #2563eb;
        }
      }

      &:disabled {
        color: #fff;
        cursor: not-allowed;
        background: #bfbfbf;
        border-color: #bfbfbf;

        &:hover {
          color: #fff;
          background: #bfbfbf;
          border-color: #bfbfbf;
        }
      }
    }
  }
}

.@{sale-detail-prefix}--phone {
  .@{sale-detail-prefix}-tmpl-b {
    .@{sale-detail-prefix}-tmpl-aside {
      width: 56px;
    }

  }
}

.@{sale-detail-prefix}-tmpl-b--mobile-sheet {
  height: 0;
  overflow: visible;
  background: transparent;
}
