:root {
  --pk-primary: #409eff;
  --pk-primary-hover: #66b1ff;
  --pk-primary-active: #3a8ee6;
  --pk-primary-light: #ecf5ff;
  --pk-text: #303133;
  --pk-text-strong: #333;
  --pk-text-regular: #606266;
  --pk-text-secondary: #909399;
  --pk-placeholder: #c0c4cc;
  --pk-border: #dcdfe6;
  --pk-border-light: #e4e7ed;
  --pk-control-border: #dcdfe6;
  --pk-table-border: #e8eaec;
  --pk-input-border: #ebebeb;
  --pk-table-head: #f8f8f9;
  --pk-table-head-active: #eaf8ff;
  --pk-disabled-bg: #f5f7fa;
  --pk-bg: #f3f5f7;
  --pk-panel: #fff;
  --pk-danger: #f56c6c;
  --pk-radius: 4px;
  --pk-font: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --pk-line-soft: #edf1f5;
  --pk-field-line: #d8e0e8;
  --pk-form-row-gap: 8px;
  --pk-form-column-gap: 10px;
  --pk-master-form-row-gap: 18px;
  --pk-master-form-column-gap: 28px;
  --pk-label-line-height: 18px;
  --pk-label-control-gap: 4px;
  --pk-control-height: 28px;
  --pk-control-font-size: 14px;
  --pk-control-inline-padding: 8px;
}

* {
  box-sizing: border-box;
}

.pk-page {
  min-height: 100vh;
  margin: 0;
  background: var(--pk-bg);
  color: var(--pk-text);
  font-family: var(--pk-font);
  font-size: 14px;
}

.pk-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 100vh;
}

.pk-layout--full {
  grid-template-columns: minmax(0, 1fr);
}

.pk-layout--catalog {
  grid-template-columns: 240px minmax(0, 1fr);
  background: #fff;
}

.pk-side {
  background: var(--pk-panel);
  border-right: 1px solid var(--pk-border-light);
  padding: 14px 0;
  overflow-y: auto;
}

.pk-side-title {
  padding: 0 16px 10px;
  color: var(--pk-text-secondary);
  font-size: 12px;
}

.pk-tag-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 14px;
}

.pk-tag {
  width: fit-content;
  max-width: 100%;
  padding: 4px 14px;
  border-radius: 16px;
  color: #1f2d3d;
  font-size: 18px;
  line-height: 24px;
  white-space: nowrap;
}

.pk-tag.is-blue { background: #bcd2ff; }
.pk-tag.is-orange { background: #ffd49b; }
.pk-tag.is-cyan { background: #b7ecfa; }
.pk-tag.is-red { background: #ffd9dc; }
.pk-tag.is-green { background: #aeeedf; }
.pk-tag.is-purple { background: #e6d6ff; }
.pk-tag.is-mint { background: #d8f5d5; }
.pk-tag.is-pink { background: #f7d5f4; }
.pk-tag.is-lime { background: #edf6c7; }

.pk-main {
  min-width: 0;
  padding: 14px 16px 36px;
  overflow: auto;
}

.pk-component-main {
  max-width: 1220px;
  padding: 42px 34px 56px;
}

.pk-doc-side {
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 36px 22px 28px;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--pk-border-light);
}

.pk-doc-side-title {
  margin-bottom: 26px;
  color: var(--pk-text);
  font-size: 18px;
  font-weight: 600;
}

.pk-doc-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pk-doc-nav-group {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.pk-doc-nav-heading {
  color: #b0b7c3;
  font-size: 12px;
  line-height: 18px;
}

.pk-doc-nav a,
.pk-doc-nav-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--pk-text-regular);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.pk-doc-nav a:hover,
.pk-doc-nav a:focus-visible {
  color: var(--pk-primary);
  outline: none;
}

.pk-doc-nav-item.is-empty {
  color: var(--pk-text-secondary);
}

.pk-doc-count {
  flex: 0 0 auto;
  color: #b0b7c3;
  font-size: 12px;
}

.pk-doc-nav a:hover .pk-doc-count,
.pk-doc-nav a:focus-visible .pk-doc-count {
  color: var(--pk-primary);
}

.pk-waterfall {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pk-component-card {
  width: 100%;
  margin: 0;
  padding: 22px 0 28px;
  border: none;
  border-radius: 0;
  background: #fff;
}

.pk-component-card--wide {
  display: block;
}

.pk-component-title {
  margin: 0 0 16px;
  color: #1f2d3d;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}

.pk-component-stack {
  width: calc((100% - 30px) / 4);
  min-width: 210px;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pk-kit-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pk-kit-summary-card {
  min-width: 0;
  min-height: 136px;
  padding: 14px;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  background: #fff;
}

.pk-kit-summary-label {
  display: block;
  margin-bottom: 8px;
  color: var(--pk-text-secondary);
  font-size: 12px;
  line-height: 18px;
}

.pk-kit-summary-card strong {
  display: block;
  overflow: hidden;
  color: #1f2d3d;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-kit-summary-card p {
  margin: 8px 0 0;
  color: var(--pk-text-regular);
  font-size: 12px;
  line-height: 20px;
}

.pk-kit-coverage {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  background: #fbfcfe;
}

.pk-kit-coverage-head {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pk-kit-coverage-head h3 {
  margin: 0;
  color: #1f2d3d;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.pk-kit-coverage-head span {
  color: var(--pk-text-secondary);
  font-size: 12px;
  line-height: 18px;
}

.pk-kit-coverage-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.pk-kit-coverage-row {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pk-kit-coverage-row > span {
  overflow: hidden;
  color: var(--pk-text-regular);
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-kit-coverage-row em {
  color: var(--pk-text-secondary);
  font-size: 12px;
  font-style: normal;
  line-height: 18px;
}

.pk-kit-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.pk-kit-meter span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--pk-primary);
}

.pk-kit-meter.is-warning span {
  background: #e6a23c;
}

.pk-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pk-rule-item {
  min-width: 0;
  min-height: 132px;
  padding: 14px;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  background: #fff;
}

.pk-rule-item strong {
  display: block;
  color: #1f2d3d;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.pk-rule-item p {
  margin: 8px 0 0;
  color: var(--pk-text-regular);
  font-size: 12px;
  line-height: 20px;
}

.pk-code-sample {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  background: #fff;
}

.pk-code-sample-head {
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #ebeef5;
  background: #fbfcfe;
}

.pk-code-sample-head h3 {
  margin: 0;
  color: #1f2d3d;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.pk-code-sample-head button {
  height: 26px;
  min-width: 48px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: var(--pk-text-regular);
  font-family: var(--pk-font);
  font-size: 12px;
  cursor: pointer;
}

.pk-code-sample-head button:hover,
.pk-code-sample-head button.is-copied {
  border-color: #b3d8ff;
  background: #ecf5ff;
  color: var(--pk-primary);
}

.pk-code-sample pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  background: #fff;
}

.pk-code-sample code {
  color: #303133;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 20px;
  white-space: pre;
}

.pk-gap-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pk-gap-column {
  min-width: 0;
  padding: 14px;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  background: #fff;
}

.pk-gap-column h3 {
  margin: 0 0 10px;
  color: #1f2d3d;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.pk-gap-column ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.pk-gap-column li {
  color: var(--pk-text-regular);
  font-size: 12px;
  line-height: 20px;
}

.pk-gap-priority {
  height: 18px;
  min-width: 28px;
  margin-right: 6px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fef0f0;
  color: #f56c6c;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  vertical-align: 1px;
}

.pk-gap-priority.is-mid {
  background: #fdf6ec;
  color: #e6a23c;
}

.pk-gap-priority.is-low {
  background: #f0f9eb;
  color: #67c23a;
}

.pk-option-row {
  width: calc((100% - 30px) / 4);
  min-width: 210px;
  max-width: none;
  min-height: var(--pk-control-height);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.pk-component-card:not(.pk-component-card--wide) > .pk-field,
.pk-component-card:not(.pk-component-card--wide) > .el-form-item__content {
  width: calc((100% - 30px) / 4);
  min-width: 210px;
  max-width: none;
}

.pk-button-component-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pk-button-component {
  min-width: 0;
}

.pk-button-component-head {
  min-height: 24px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pk-button-component-head h3 {
  margin: 0;
  color: #1f2d3d;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.pk-button-kind {
  height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #b3d8ff;
  border-radius: 4px;
  background: #ecf5ff;
  color: #409eff;
  font-size: 12px;
  line-height: 20px;
}

.pk-button-demo-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pk-basic-component-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pk-basic-component {
  min-width: 0;
}

.pk-basic-component-head {
  min-height: 24px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pk-basic-component-head h3 {
  margin: 0;
  color: #1f2d3d;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.pk-basic-kind {
  height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #f5f7fa;
  color: #606266;
  font-size: 12px;
  line-height: 20px;
}

.pk-color-token-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pk-color-token-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pk-color-token {
  min-width: 0;
  min-height: 78px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
}

.pk-color-swatch {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  background: var(--pk-token-color);
}

.pk-color-token strong,
.pk-color-token code,
.pk-color-token em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-color-token strong {
  color: #303133;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.pk-color-token code {
  color: #909399;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 18px;
}

.pk-color-token em {
  margin-top: 2px;
  color: #606266;
  font-size: 12px;
  font-style: normal;
  line-height: 18px;
}

.pk-type-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 116px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #ebeef5;
}

.pk-basic-component:last-child .pk-type-row {
  border-bottom: none;
}

.pk-type-label {
  color: #909399;
  font-size: 12px;
  line-height: 20px;
}

.pk-type-title,
.pk-type-section,
.pk-type-body,
.pk-type-caption,
.pk-type-font-stack,
.pk-type-tab,
.pk-type-table-head,
.pk-type-table-cell {
  min-width: 0;
  overflow: hidden;
  color: #303133;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-type-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.pk-type-section {
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.pk-type-font-stack {
  color: #303133;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.pk-type-tab {
  color: #409eff;
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
}

.pk-type-table-head {
  color: #333;
  font-family: "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.pk-type-table-head .required {
  margin-right: 4px;
  color: #f56c6c;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.pk-type-table-cell {
  color: #666;
  font-family: "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
}

.pk-type-body {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.pk-type-caption {
  color: #909399;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}

.pk-type-row code {
  color: #909399;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.pk-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.pk-icon-item {
  height: 94px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  font-size: 12px;
  box-sizing: border-box;
}

.pk-icon-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pk-icon-item.is-danger svg {
  color: var(--pk-danger);
}

.pk-icon-item span {
  max-width: 100%;
  overflow: hidden;
  padding: 0 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-icon-item code {
  max-width: 100%;
  overflow: hidden;
  padding: 0 6px;
  color: #909399;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-toolbar-demo {
  min-height: 44px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eef2f7;
  box-sizing: border-box;
}

.pk-toolbar-left,
.pk-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pk-toolbar-left {
  flex: 1 1 auto;
  min-width: 0;
}

.pk-toolbar-right {
  flex: 0 0 auto;
}

.pk-toolbar-btn {
  height: 28px;
  min-width: 44px;
  max-width: 120px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #ebebeb;
  border-radius: 3px;
  background: #fff;
  color: #666;
  font-family: var(--pk-font);
  font-size: var(--pk-control-font-size);
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  user-select: none;
  transition: color 0.1s ease, border-color 0.1s ease, background-color 0.1s ease;
}

.pk-toolbar-btn:hover {
  border-color: #c6e2ff;
  background: #ecf5ff;
  color: #409eff;
}

.pk-toolbar-btn.is-primary {
  border-color: #409eff;
  background: #409eff;
  color: #fff;
}

.pk-toolbar-btn.is-primary:hover {
  border-color: #66b1ff;
  background: #66b1ff;
  color: #fff;
}

.pk-toolbar-btn:active {
  border-color: #3a8ee6;
  color: #3a8ee6;
}

.pk-toolbar-btn:focus-visible,
.pk-toolbar-dropdown-trigger:focus-visible,
.pk-save-submit-btn:focus-visible,
.pk-save-drop-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.22);
}

.pk-save-group {
  position: relative;
  height: 26px;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.pk-save-submit-btn,
.pk-save-drop-btn {
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #409eff;
  background: #409eff;
  color: #fff;
  font-family: var(--pk-font);
  font-size: var(--pk-control-font-size);
  line-height: 1;
  cursor: pointer;
  outline: none;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pk-save-submit-btn {
  min-width: 54px;
  padding: 0 12px;
  border-radius: 4px 0 0 4px;
}

.pk-save-drop-btn {
  width: 26px;
  padding: 0;
  border-left-color: rgba(255, 255, 255, 0.34);
  border-radius: 0 4px 4px 0;
}

.pk-save-submit-btn:hover,
.pk-save-drop-btn:hover,
.pk-save-group.is-open .pk-save-submit-btn,
.pk-save-group.is-open .pk-save-drop-btn {
  border-color: #66b1ff;
  background: #66b1ff;
}

.pk-save-submit-btn:active,
.pk-save-drop-btn:active {
  border-color: #3a8ee6;
  background: #3a8ee6;
}

.pk-save-caret,
.pk-toolbar-dropdown-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.15s ease;
}

.pk-save-caret {
  color: #fff;
}

.pk-save-group.is-open .pk-save-caret,
.pk-toolbar-dropdown.is-open .pk-toolbar-dropdown-caret {
  transform: rotate(180deg);
}

.pk-save-menu,
.pk-toolbar-dropdown-menu {
  position: absolute;
  top: 31px;
  left: 0;
  z-index: 60;
  min-width: 104px;
  margin: 0;
  padding: 5px 0;
  display: none;
  list-style: none;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.pk-toolbar-dropdown-menu {
  min-width: 132px;
}

.pk-save-group.is-open .pk-save-menu,
.pk-toolbar-dropdown.is-open .pk-toolbar-dropdown-menu {
  display: block;
}

.pk-save-menu::before,
.pk-toolbar-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -5px;
  width: 8px;
  height: 8px;
  border-left: 1px solid #e4e7ed;
  border-top: 1px solid #e4e7ed;
  background: #fff;
  transform: rotate(45deg);
}

.pk-save-menu::before {
  left: 66px;
}

.pk-toolbar-dropdown-menu::before {
  left: 24px;
}

.pk-save-menu li,
.pk-toolbar-dropdown-menu li {
  height: 28px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  color: #606266;
  font-size: var(--pk-control-font-size);
  white-space: nowrap;
  cursor: pointer;
}

.pk-save-menu li:hover,
.pk-toolbar-dropdown-menu li:hover {
  background: #ecf5ff;
  color: #409eff;
}

.pk-toolbar-dropdown {
  position: relative;
  height: 26px;
  display: inline-block;
  color: #666;
  font-family: var(--pk-font);
  font-size: var(--pk-control-font-size);
  font-weight: 400;
  line-height: 26px;
  box-sizing: border-box;
  outline: none;
}

.pk-toolbar-dropdown-trigger {
  height: 26px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #d7dfe8;
  border-radius: 4px;
  background: #fff;
  color: #566273;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.pk-toolbar-dropdown-trigger:hover,
.pk-toolbar-dropdown.is-open .pk-toolbar-dropdown-trigger {
  border-color: #409eff;
  background: #ecf5ff;
  color: #409eff;
}

.pk-heading {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
}

.pk-subtitle {
  margin: 0 0 18px;
  color: var(--pk-text-secondary);
  font-size: 12px;
}

.pk-section {
  margin-bottom: 16px;
  background: var(--pk-panel);
  border-radius: var(--pk-radius);
  padding: 0 10px 12px;
}

.pk-section-title {
  height: 40px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e4e7ed;
  color: var(--pk-primary);
  font-size: 14px;
  font-weight: 600;
}

.pk-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--pk-form-row-gap) var(--pk-form-column-gap);
  align-items: start;
}

.pk-unit-form-grid {
  max-width: 100%;
}

.pk-field {
  min-width: 0;
}

.pk-field.is-full {
  grid-column: 1 / -1;
}

.pk-label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: var(--pk-label-line-height);
  margin-bottom: var(--pk-label-control-gap);
  color: #6a7686;
  font-size: var(--pk-control-font-size);
  line-height: var(--pk-label-line-height);
}

.pk-required {
  color: var(--pk-danger);
}

.pk-help {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca8b8;
  font-size: 11px;
}

.pk-control {
  position: relative;
  min-height: var(--pk-control-height);
  border: none;
  padding: 0;
  background: #fff;
}

.pk-input-shell,
.pk-textarea-shell {
  position: relative;
  min-height: var(--pk-control-height);
  border: none;
  border-bottom: 1px solid var(--pk-field-line);
  border-radius: 0;
  background: transparent;
  color: #394455;
  font-size: var(--pk-control-font-size);
}

.pk-input-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 var(--pk-control-inline-padding);
}

.pk-input-shell:hover,
.pk-input-shell:focus,
.pk-input-shell:focus-within,
.pk-input-shell[aria-expanded="true"],
.pk-date-input-shell.is-open {
  border-bottom-color: var(--pk-primary);
  outline: none;
}

.pk-input-shell[aria-expanded="true"],
.pk-date-input-shell.is-open {
  box-shadow: 0 1px 0 var(--pk-primary);
}

.pk-input-shell.is-disabled {
  background: #f5f7fa;
  color: #9ca6b5;
}

.pk-input-shell[data-pk-reference-trigger] {
  cursor: pointer;
}

.pk-input-shell.is-disabled[data-pk-reference-trigger] {
  cursor: default;
}

.pk-input-shell .value,
.pk-input-shell .placeholder,
.pk-input-shell .suffix-text,
.pk-input-shell .prefix-icon {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pk-input-shell .value,
.pk-shell-input {
  flex: 1;
}

.pk-input-shell .placeholder {
  color: #a7b0bf;
}

.pk-shell-input {
  width: 100%;
  height: calc(var(--pk-control-height) - 1px);
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #394455;
  font-family: var(--pk-font);
  font-size: var(--pk-control-font-size);
}

.pk-shell-input::placeholder {
  color: #a7b0bf;
}

.pk-input-shell .prefix-icon,
.pk-input-shell .suffix-text {
  flex: 0 0 auto;
  color: #768396;
}

.input-clear-btn {
  width: 16px;
  height: 16px;
  padding: 0;
  display: none;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  position: relative;
  border: none;
  border-radius: 50%;
  background: #c0c4cc;
  color: #fff;
  cursor: pointer;
  outline: none;
}

.input-clear-btn::before,
.input-clear-btn::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 1px;
  border-radius: 1px;
  background: currentColor;
}

.input-clear-btn::before {
  transform: rotate(45deg);
}

.input-clear-btn::after {
  transform: rotate(-45deg);
}

.input-clear-btn:hover {
  background: #909399;
}

.pk-input-shell.is-clearable.has-clear-value:hover .input-clear-btn,
.pk-input-shell.is-clearable.has-clear-value:focus-within .input-clear-btn,
.pk-textarea-shell.is-clearable.has-clear-value:hover .input-clear-btn,
.pk-textarea-shell.is-clearable.has-clear-value:focus-within .input-clear-btn {
  display: inline-flex;
}

.pk-input-shell.is-disabled .input-clear-btn {
  display: none !important;
}

.pk-input-shell .suffix-button {
  width: 24px;
  height: 26px;
  margin-right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #97a3b2;
  letter-spacing: 1px;
}

.pk-date-input-shell .prefix-icon {
  color: #c0c4cc;
}

.pk-date-input-shell .value {
  color: #303133;
  font-size: 14px;
  line-height: 28px;
}

.pk-textarea-shell {
  min-height: 56px;
  padding: 6px 8px 18px;
}

.pk-textarea-shell.is-clearable {
  padding-right: 30px;
}

.pk-textarea-shell .input-clear-btn {
  position: absolute;
  top: 7px;
  right: 8px;
}

.pk-textarea-shell:focus-within {
  border-bottom-color: var(--pk-primary);
}

.pk-textarea-input {
  width: 100%;
  min-height: 32px;
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  resize: none;
  overflow: auto;
  background: transparent;
  color: #394455;
  font-family: var(--pk-font);
  font-size: var(--pk-control-font-size);
  line-height: 18px;
}

.pk-textarea-shell.is-clearable .pk-textarea-input {
  padding-right: 20px;
}

.pk-textarea-input::placeholder {
  color: #a7b0bf;
}

.pk-input,
.pk-textarea,
.pk-rich-editor,
.pk-select-trigger,
.pk-reference,
.pk-cascader-trigger {
  width: 100%;
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius);
  background: #fff;
  color: var(--pk-text);
  font-family: var(--pk-font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pk-input {
  height: var(--pk-control-height);
  padding: 0 var(--pk-control-inline-padding);
  border: none;
  border-bottom: 1px solid var(--pk-field-line);
  border-radius: 0;
  font-size: var(--pk-control-font-size);
}

.pk-input:focus,
.pk-textarea:focus,
.pk-select.is-open .pk-select-trigger,
.pk-reference:focus-within,
.pk-cascader.is-open .pk-cascader-trigger {
  border-color: var(--pk-primary);
}

.pk-input::placeholder,
.pk-textarea::placeholder {
  color: var(--pk-placeholder);
}

.pk-input-wrap {
  position: relative;
}

.pk-input-prefix,
.pk-input-suffix {
  position: absolute;
  top: 0;
  height: var(--pk-control-height);
  display: flex;
  align-items: center;
  color: var(--pk-text-secondary);
  font-size: 13px;
  pointer-events: none;
}

.pk-input-prefix {
  left: 12px;
}

.pk-input-suffix {
  right: 12px;
}

.pk-input-wrap.has-prefix .pk-input {
  padding-left: 28px;
}

.pk-input-wrap.has-suffix .pk-input {
  padding-right: 38px;
}

.pk-textarea-wrap {
  position: relative;
}

.pk-textarea {
  min-height: 76px;
  padding: 8px 12px 22px;
  resize: vertical;
  line-height: 20px;
}

.pk-textarea-count {
  position: absolute;
  right: 10px;
  bottom: 6px;
  color: var(--pk-text-secondary);
  font-size: 12px;
}

.pk-select,
.pk-cascader {
  position: relative;
}

.pk-select-trigger,
.pk-cascader-trigger {
  height: var(--pk-control-height);
  padding: 0 34px 0 var(--pk-control-inline-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  border-bottom: 1px solid var(--pk-field-line);
  border-radius: 0;
  background: transparent;
  color: #394455;
  font-size: var(--pk-control-font-size);
  cursor: pointer;
  text-align: left;
}

.pk-caret {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid #97a3b2;
  border-bottom: 1px solid #97a3b2;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.16s ease;
  pointer-events: none;
}

.pk-select.is-open .pk-caret,
.pk-cascader.is-open .pk-caret {
  transform: translateY(-30%) rotate(225deg);
}

.pk-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  z-index: 30;
  display: none;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid var(--pk-border-light);
  border-radius: var(--pk-radius);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.pk-select.is-open .pk-menu,
.pk-cascader.is-open .pk-menu {
  display: block;
}

.pk-option {
  height: 30px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  font-size: var(--pk-control-font-size);
  color: var(--pk-text-regular);
  cursor: pointer;
}

.pk-option:hover,
.pk-option.is-selected {
  background: var(--pk-primary-light);
  color: var(--pk-primary);
}

.pk-reference {
  min-height: var(--pk-control-height);
  padding: 0 34px 0 var(--pk-control-inline-padding);
  display: flex;
  align-items: center;
  border: none;
  border-bottom: 1px solid var(--pk-field-line);
  border-radius: 0;
  font-size: var(--pk-control-font-size);
  cursor: pointer;
}

.pk-reference::after {
  content: "...";
  position: absolute;
  right: var(--pk-control-inline-padding);
  color: var(--pk-text-secondary);
  letter-spacing: 1px;
}

.pk-table-sample {
  overflow: auto;
  background: #fff;
}

.pk-table-component .pk-table-sample {
  height: 220px;
}

.pk-table-sample table,
.pk-reference-popover table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.pk-table-sample th {
  height: 28px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f6f9fc;
  color: #586476;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
}

.pk-table-sample td,
.pk-table-sample tfoot td {
  height: 28px;
  color: #394355;
  font-size: 11px;
  background: #fff;
}

.pk-table-sample th,
.pk-table-sample td,
.pk-table-sample tfoot td {
  padding: 0;
  border-right: 1px solid var(--pk-line-soft);
  border-bottom: 1px solid var(--pk-line-soft);
  white-space: nowrap;
}

.pk-table-sample tbody tr:hover td {
  background: #eaf5fd;
}

.pk-table-sample tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: #fff3e0;
  font-weight: 600;
}

.pk-table-sample .cell {
  min-height: 28px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pk-table-sample--unit-reference .cell {
  min-height: 36px;
}

.pk-table-spacer-row td,
.pk-erp-table .pk-table-spacer-row td {
  height: 0;
  padding: 0;
  border-right: none;
  border-bottom: none;
  background: #fff;
}

.pk-table-spacer-row .cell,
.pk-erp-table .pk-table-spacer-row .cell {
  min-height: 0;
  height: 0;
  padding: 0;
}

.pk-table-component-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pk-table-component {
  min-width: 0;
}

.pk-table-component-head {
  min-height: 26px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pk-table-component-head h3 {
  margin: 0;
  color: #1f2d3d;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.pk-table-kind {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: 22px;
  padding: 0 8px;
  border: 1px solid #b3d8ff;
  border-radius: 4px;
  background: #ecf5ff;
  color: #409eff;
  font-size: 12px;
  line-height: 20px;
}

.pk-table-toolbar {
  min-height: 40px;
  padding: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}

.pk-table-tools {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pk-grid-btn {
  height: 28px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  font-family: var(--pk-font);
  font-size: var(--pk-control-font-size);
  line-height: 26px;
  cursor: pointer;
}

.pk-grid-btn:hover {
  border-color: #c6e2ff;
  background: #ecf5ff;
  color: #409eff;
}

.pk-grid-btn--primary {
  border-color: #409eff;
  background: #409eff;
  color: #fff;
}

.pk-grid-btn--primary:hover {
  border-color: #66b1ff;
  background: #66b1ff;
  color: #fff;
}

.pk-grid-search {
  width: 190px;
  height: 28px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #909399;
}

.pk-grid-search:focus-within {
  border-color: #409eff;
}

.pk-grid-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #606266;
  font-family: var(--pk-font);
  font-size: var(--pk-control-font-size);
}

.pk-grid-search input::placeholder {
  color: #c0c4cc;
}

.pk-grid-icon-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  font-size: 13px;
  cursor: pointer;
}

.pk-grid-icon-btn:hover {
  border-color: #c6e2ff;
  color: #409eff;
}

.pk-table-grid-wrap {
  height: 240px;
  min-height: 0;
  overflow: auto;
  border: 1px solid #e8eaec;
  background: #fff;
}

.pk-erp-table {
  min-width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
  background: #fff;
  box-sizing: border-box;
}

.pk-editable-table {
  width: 7970px;
  min-width: 7970px;
}

.pk-advanced-table {
  width: 100%;
  min-width: 100%;
}

.pk-erp-table th {
  height: 40px;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 3;
  border-right: 1px solid #e8eaec;
  border-bottom: 1px solid #e8eaec;
  background: #eaf8ff;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
  white-space: nowrap;
}

.pk-erp-table td,
.pk-erp-table tfoot td {
  height: 36px;
  padding: 0;
  border-right: 1px solid #e8eaec;
  border-bottom: 1px solid #e8eaec;
  background: #fff;
  color: #666;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  white-space: nowrap;
}

.pk-erp-table tbody tr:hover td {
  background: #eaf5fd;
}

.pk-erp-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: #fff3e0;
  font-weight: 600;
}

.pk-erp-table th .cell,
.pk-erp-table td .cell {
  min-height: 36px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

.pk-erp-table th .cell {
  min-height: 40px;
  padding: 0 10px;
}

.pk-erp-table .required {
  margin-right: 4px;
  color: #f56c6c;
  font-weight: 400;
}

.pk-editable-table th.is-bulk-editable .cell {
  position: relative;
  padding-right: 28px;
}

.pk-editable-table th.is-bulk-editable .cell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 15px;
  height: 15px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 14.5l1-4.2 8.7-8.7 3.7 3.7-8.7 8.7-4.7.5z' fill='none' stroke='%23333' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M4 18h13' fill='none' stroke='%23333' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  transform: translateY(-50%);
}

.pk-row-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pk-row-actions button {
  width: 20px;
  height: 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #409eff;
  font-family: var(--pk-font);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.pk-row-actions button:hover {
  background: #ecf5ff;
}

.pk-row-actions .is-danger {
  color: #f56c6c;
}

.pk-table-field {
  position: relative;
  width: 100%;
  height: 30px;
  min-width: 0;
}

.pk-table-input,
.pk-table-select {
  width: 100%;
  height: 30px;
  min-width: 0;
  margin: 0;
  padding: 0 15px;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  outline: none;
  background-color: #fff;
  color: #666;
  display: inline-block;
  font-family: var(--pk-font);
  font-size: 14px;
  line-height: 30px;
  text-align: left;
  box-sizing: border-box;
  transition: border-color .2s cubic-bezier(.645,.045,.355,1);
  -webkit-appearance: none;
}

.pk-table-input::placeholder {
  color: #c0c4cc;
}

.pk-table-input:focus,
.pk-table-select:focus,
.pk-table-field:hover .pk-table-input,
.pk-table-field:hover .pk-table-select {
  border-color: #409eff;
}

.pk-table-number {
  text-align: left;
}

.pk-table-select {
  padding-right: 26px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #c0c4cc 50%),
    linear-gradient(135deg, #c0c4cc 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 12px,
    calc(100% - 11px) 12px;
  background-repeat: no-repeat;
  background-size:
    5px 5px,
    5px 5px;
}

.pk-table-field.has-clear-value .pk-table-input {
  padding-right: 30px;
}

.pk-table-field.has-clear-value .pk-table-select {
  padding-right: 48px;
}

.pk-table-field.has-clear-value .pk-table-select ~ .pk-table-clear-btn {
  right: 28px;
}

.pk-table-field.has-clear-value:hover .pk-table-clear-btn,
.pk-table-field.has-clear-value:focus-within .pk-table-clear-btn {
  display: inline-flex;
}

.pk-table-date-field {
  width: 100%;
  height: 30px;
  min-height: 30px;
  padding: 0 30px;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  background: #fff;
  color: #666;
  font-size: 14px;
  line-height: 30px;
  box-sizing: border-box;
}

.pk-table-date-field:hover,
.pk-table-date-field:focus,
.pk-table-date-field:focus-within,
.pk-table-date-field[aria-expanded="true"],
.pk-table-date-field.is-open {
  border-color: #409eff;
  box-shadow: none;
}

.pk-table-date-field .value {
  color: #666;
}

.pk-table-date-field .prefix-icon {
  position: absolute;
  left: 8px;
  color: #c0c4cc;
}

.pk-table-date-field:hover .prefix-icon,
.pk-table-date-field.is-open .prefix-icon {
  color: #409eff;
}

.pk-table-readonly {
  min-width: 0;
  overflow: hidden;
  color: #666;
  text-overflow: ellipsis;
}

.pk-table-reference {
  position: relative;
  width: 100%;
  height: 30px;
  min-width: 0;
  color: #666;
  cursor: pointer;
  box-sizing: border-box;
}

.pk-table-reference.has-clear-value .pk-table-reference-input {
  padding-right: 54px;
}

.pk-table-reference-input {
  width: 100%;
  height: 30px;
  min-width: 0;
  margin: 0;
  padding: 0 30px 0 15px;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  outline: none;
  background-color: #fff;
  color: #666;
  display: inline-block;
  font-family: var(--pk-font);
  font-size: 14px;
  line-height: 30px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color .2s cubic-bezier(.645,.045,.355,1);
  -webkit-appearance: none;
}

.pk-table-reference-input::placeholder {
  color: #c0c4cc;
}

.pk-table-reference:hover .pk-table-reference-input,
.pk-table-reference:focus-within .pk-table-reference-input,
.pk-table-reference[aria-expanded="true"] .pk-table-reference-input {
  border-color: var(--pk-primary);
}

.pk-table-reference-suffix {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 3px 3px 0;
  background: #fff;
  color: #909399;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

.pk-table-clear-btn {
  position: absolute;
  top: 50%;
  right: 32px;
  z-index: 2;
  width: 16px;
  height: 16px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #c0c4cc;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  outline: none;
}

.pk-table-clear-btn::before,
.pk-table-clear-btn::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 1px;
  border-radius: 1px;
  background: currentColor;
}

.pk-table-clear-btn::before {
  transform: rotate(45deg);
}

.pk-table-clear-btn::after {
  transform: rotate(-45deg);
}

.pk-table-clear-btn:hover {
  background: #909399;
}

.pk-table-reference.has-clear-value:hover .pk-table-clear-btn {
  display: inline-flex;
}

.pk-table-reference.is-disabled {
  color: #909399;
  cursor: default;
}

.pk-table-reference.is-disabled .pk-table-reference-input,
.pk-table-reference.is-disabled .pk-table-reference-suffix {
  background: #f5f7fa;
  color: #909399;
  cursor: default;
}

.pk-table-reference.is-disabled .pk-table-clear-btn,
.pk-table-reference.is-disabled.has-clear-value:hover .pk-table-clear-btn {
  display: none;
}

.pk-table-checkbox,
.pk-column-option > input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-block;
  flex: 0 0 14px;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

.pk-table-checkbox:checked,
.pk-table-checkbox.is-indeterminate,
.pk-column-option > input[type="checkbox"]:checked {
  border-color: var(--pk-primary);
  background: var(--pk-primary);
}

.pk-table-checkbox:checked::after,
.pk-column-option > input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pk-table-checkbox.is-indeterminate::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 6px;
  height: 2px;
  background: #fff;
}

.pk-reference-popover {
  position: fixed;
  width: auto;
  min-width: min(320px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  min-height: 213px;
  display: none;
  padding: 12px;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  background: #fff;
  color: #666;
  font-family: var(--pk-font);
  font-size: var(--pk-control-font-size);
  line-height: 1.4;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  z-index: 2115;
}

.pk-reference-popover.is-open {
  display: block;
}

.pk-reference-popover .popper-arrow,
.pk-reference-popover .popper-arrow::after {
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
}

.pk-reference-popover .popper-arrow {
  top: -6px;
  border-width: 0 6px 6px;
  border-bottom-color: #ebeef5;
}

.pk-reference-popover .popper-arrow::after {
  content: "";
  top: 1px;
  margin-left: -6px;
  border-width: 0 6px 6px;
  border-bottom-color: #fff;
}

.pk-reference-popover .popover-table {
  height: 197px;
  overflow: auto;
  border: 1px solid #e8eaec;
  background: #fff;
}

.pk-reference-popover th,
.pk-reference-popover td {
  height: 36px;
  padding: 0;
  border-right: 1px solid #e8eaec;
  border-bottom: 1px solid #e8eaec;
  color: #333;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
  white-space: nowrap;
}

.pk-reference-popover th {
  height: 40px;
  background: #eaf8ff;
  font-size: 14px;
  font-weight: 600;
}

.pk-reference-popover .cell {
  min-height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-reference-popover th .cell {
  min-height: 40px;
}

.pk-reference-popover tbody tr {
  cursor: pointer;
}

.pk-reference-popover tbody tr:nth-child(even) {
  background: #fafafa;
}

.pk-reference-popover tbody tr:hover td {
  background: #f5f7fa;
}

.pk-reference-popover tbody tr.is-selected td {
  background: #e6f7ff;
}

.pk-date-panel {
  position: fixed;
  width: 322px;
  min-height: 343px;
  display: none;
  z-index: 2119;
  color: #606266;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  font-family: var(--pk-font);
  user-select: none;
}

.pk-date-panel.is-open {
  display: block;
}

.pk-date-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  left: var(--pk-date-arrow-left, 72px);
  width: 10px;
  height: 10px;
  border-left: 1px solid #e4e7ed;
  border-top: 1px solid #e4e7ed;
  background: #fff;
  transform: rotate(45deg);
}

.pk-date-panel-head {
  height: 64px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 8px;
}

.pk-date-panel-head span {
  color: #606266;
  font-size: 18px;
  text-align: center;
  letter-spacing: 2px;
}

.pk-date-panel-head button,
.pk-date-days button {
  border: none;
  background: transparent;
  color: #606266;
  cursor: pointer;
}

.pk-date-panel-head button {
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 22px;
}

.pk-date-panel-head button:hover,
.pk-date-days button:hover {
  color: var(--pk-primary);
}

.pk-date-weekdays,
.pk-date-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.pk-date-weekdays {
  height: 44px;
  margin: 0 30px;
  align-items: center;
  border-bottom: 1px solid #ebeef5;
  color: #606266;
  font-size: 13px;
}

.pk-date-days {
  row-gap: 12px;
  padding: 14px 30px 22px;
}

.pk-date-days button {
  height: 26px;
  padding: 0;
  font-size: 13px;
  line-height: 26px;
}

.pk-date-days button::before {
  content: attr(data-empty);
}

.pk-date-days button {
  border-radius: 50%;
}

.pk-date-days button.is-muted {
  color: #c0c4cc;
}

.pk-date-days button.is-selected {
  color: #fff;
  background: var(--pk-primary);
  font-weight: 600;
}

.pk-time-panel {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 30px 10px;
  border-bottom: 1px solid #ebeef5;
}

.pk-date-panel.is-datetime .pk-time-panel {
  display: flex;
}

.pk-time-label {
  margin-right: 4px;
  color: #606266;
  font-size: 13px;
}

.pk-time-picker {
  width: 116px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  color: #303133;
  font-family: var(--pk-font);
  font-size: 13px;
  outline: none;
}

.pk-time-picker:focus {
  border-color: var(--pk-primary);
}

.pk-time-confirm {
  height: 26px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid var(--pk-primary);
  border-radius: 4px;
  background: var(--pk-primary);
  color: #fff;
  cursor: pointer;
  font-family: var(--pk-font);
  font-size: var(--pk-control-font-size);
}

.pk-rich-shell {
  width: 100%;
}

.pk-rich {
  width: 100%;
  background: #fff;
  color: #666;
  font-family: PingFang SC, sans-serif;
  font-size: var(--pk-control-font-size);
  line-height: normal;
  outline: none;
  box-sizing: border-box;
}

.w-e-toolbar {
  min-height: 35px;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid #c9d8db;
  border-bottom: 1px solid #eee;
  background: #fff;
  z-index: 10;
}

.w-e-menu {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: none;
  background: transparent;
  color: #595f66;
  cursor: pointer;
  box-sizing: border-box;
}

.w-e-menu:hover {
  color: var(--pk-primary);
  background: #f5f7fa;
}

.w-e-menu:focus-visible {
  outline: 1px solid var(--pk-primary);
  outline-offset: -2px;
}

.w-e-menu i {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 14px;
  line-height: 1;
}

.w-e-menu .w-e-icon-header::before { content: "H"; font-weight: 700; }
.w-e-menu .w-e-icon-bold::before { content: "B"; font-weight: 700; }
.w-e-menu .w-e-icon-text-heigh::before { content: "T"; font-weight: 700; }
.w-e-menu .w-e-icon-font::before { content: "F"; font-family: Georgia, serif; }
.w-e-menu .w-e-icon-italic::before { content: "I"; font-style: italic; font-family: Georgia, serif; }
.w-e-menu .w-e-icon-underline::before { content: "U"; text-decoration: underline; }
.w-e-menu .w-e-icon-strikethrough::before { content: "S"; text-decoration: line-through; }
.w-e-menu .w-e-icon-indent-increase::before { content: "→"; }
.w-e-menu .w-e-icon-row-height::before { content: "↕"; }
.w-e-menu .w-e-icon-pencil2::before { content: "A"; color: #d94841; font-weight: 700; }
.w-e-menu .w-e-icon-paint-brush::before { content: "▣"; color: #d9a441; }
.w-e-menu .w-e-icon-link::before { content: "🔗"; font-size: 13px; }
.w-e-menu .w-e-icon-list2::before { content: "≡"; font-size: 18px; }
.w-e-menu .w-e-icon-checkbox-checked::before { content: "☑"; }
.w-e-menu .w-e-icon-paragraph-left::before { content: "☰"; }
.w-e-menu .w-e-icon-quotes-left::before { content: "“"; font-size: 20px; font-family: Georgia, serif; }
.w-e-menu .w-e-icon-happy::before { content: "☺"; }
.w-e-menu .w-e-icon-image::before { content: "▧"; }
.w-e-menu .w-e-icon-table2::before { content: "▦"; }
.w-e-menu .w-e-icon-split-line::before { content: "—"; font-size: 18px; }
.w-e-menu .w-e-icon-undo::before { content: "↶"; font-size: 18px; }
.w-e-menu .w-e-icon-redo::before { content: "↷"; font-size: 18px; }
.w-e-menu .w-e-icon-fullscreen::before { content: "⛶"; }

.w-e-up-btn {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.w-e-upload-hidden,
.w-e-upload-hidden input {
  display: none;
}

.w-e-menu-tooltip {
  visibility: hidden;
  position: absolute;
  z-index: 10;
  left: 689px;
  top: -35px;
  padding: 5px 8px;
  border-radius: 3px;
  background: #303133;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.w-e-text-container {
  height: 100px;
  position: relative;
  border: 1px solid #c9d8db;
  border-top: none;
  background: #fff;
  z-index: 9;
}

.w-e-text {
  width: 100%;
  height: 100%;
  padding: 0 10px;
  overflow-y: auto;
  outline: none;
  color: #333;
  font-family: PingFang SC, sans-serif;
  font-size: var(--pk-control-font-size);
  line-height: 20px;
  box-sizing: border-box;
}

.w-e-text p {
  margin: 0;
}

.w-e-text-container .placeholder {
  position: absolute;
  left: 10px;
  top: 6px;
  color: #c0c4cc;
  pointer-events: none;
}

.w-e-text-container .placeholder::before {
  content: "请输入内容";
}

.w-e-text:not(:empty) + .placeholder {
  display: none;
}

.w-e-img-drag-mask {
  display: none;
}

.pk-check-line,
.pk-radio-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
  color: var(--pk-text-regular);
  cursor: pointer;
}

.pk-checkbox,
.pk-radio {
  width: 16px;
  height: 16px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  border: 1px solid var(--pk-border);
  background: #fff;
  cursor: pointer;
}

.pk-checkbox {
  border-radius: 3px;
}

.pk-radio {
  border-radius: 50%;
}

.pk-checkbox:checked,
.pk-radio:checked {
  border-color: var(--pk-primary);
  background: var(--pk-primary);
}

.pk-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pk-radio:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.pk-switch {
  width: 40px;
  height: 20px;
  padding: 0;
  position: relative;
  border: none;
  border-radius: 10px;
  background: #dcdfe6;
  cursor: pointer;
  transition: background 0.16s ease;
}

.pk-switch::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.16s ease;
}

.pk-switch[aria-checked="true"] {
  background: var(--pk-primary);
}

.pk-switch[aria-checked="true"]::before {
  transform: translateX(20px);
}

.pk-address {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pk-address .pk-input {
  grid-column: 1 / -1;
}

.pk-upload {
  min-height: 98px;
  border: 1px dashed var(--pk-border);
  padding: 20px;
  background: #fff;
}

.pk-upload-button {
  width: 88px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius);
  background: #fff;
  color: var(--pk-text-regular);
  font-size: 28px;
  cursor: pointer;
}

.pk-upload-button:hover {
  border-color: var(--pk-primary);
  color: var(--pk-primary);
}

.pk-upload-input {
  display: none;
}

.pk-upload-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--pk-text-regular);
  font-size: var(--pk-control-font-size);
}

.pk-upload-list li {
  height: 24px;
  display: flex;
  align-items: center;
}

.el-form-item__content {
  position: relative;
  min-height: 28px;
  line-height: normal;
  font-size: var(--pk-control-font-size);
  color: #666;
}

.com-drag-box.file {
  position: relative;
  min-height: 56px;
  padding: 0;
  border: none;
  background: transparent;
  box-sizing: border-box;
}

.com-drag-box.file.active {
  border-color: transparent;
  background: #fff;
}

.com-wrapper {
  min-height: 34px;
}

.ddp-layout-upload {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 34px;
}

.el-upload {
  display: inline-flex;
  align-items: center;
  outline: none;
}

.el-button.ddp-layout-upload-click {
  width: 34px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  font-family: var(--pk-font);
  font-size: 12px;
  cursor: pointer;
}

.el-button.ddp-layout-upload-click:hover,
.el-upload:focus-within .el-button.ddp-layout-upload-click {
  border-color: #409eff;
  color: #409eff;
}

.iconfont {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  line-height: 1;
}

.icon-upload::before {
  content: "↑";
  font-size: 16px;
  font-weight: 700;
}

.icon-drag::before {
  content: "↕";
  font-size: 14px;
}

.icon-delete::before {
  content: "×";
  font-size: 16px;
}

.el-upload__input {
  display: none;
}

.el-upload-list {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.el-upload-list--text li {
  height: 28px;
  max-width: 100%;
  display: flex;
  align-items: center;
  color: #606266;
  font-size: var(--pk-control-font-size);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.el-upload-list--text li::before {
  content: "📎";
  margin-right: 6px;
  color: #909399;
}

.pk-slider {
  width: 100%;
  accent-color: var(--pk-primary);
}

/* ERP list workbench */
.pk-list-page {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  background: #f7f8fa;
  color: #2f3a4a;
  font-family: var(--pk-font);
  font-size: 14px;
}

.pk-query-panel {
  position: relative;
  z-index: 10;
  flex: 0 0 auto;
  padding: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 45, 61, 0.08);
}

.pk-query-summary,
.pk-query-left,
.pk-query-actions {
  display: flex;
  align-items: center;
}

.pk-query-summary {
  justify-content: space-between;
  gap: 16px;
}

.pk-query-left,
.pk-query-actions {
  gap: 8px;
  min-width: 0;
}

.pk-query-filter {
  position: relative;
}

.pk-query-view,
.pk-query-input,
.pk-query-field input,
.pk-query-field select {
  height: 28px;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  outline: none;
  background: #fff;
  color: #666;
  font: inherit;
  line-height: 28px;
}

.pk-query-view {
  width: 200px;
  padding: 0 30px 0 15px;
}

.pk-query-input {
  width: 250px;
  padding: 0 30px;
}

.pk-query-input::placeholder,
.pk-query-field input::placeholder {
  color: #c0c4cc;
}

.pk-query-view:hover,
.pk-query-input:hover,
.pk-query-field input:hover,
.pk-query-field select:hover {
  border-color: #c0c4cc;
}

.pk-query-view:focus,
.pk-query-input:focus,
.pk-query-field input:focus,
.pk-query-field select:focus {
  border-color: #409eff;
}

.pk-query-filter-btn,
.pk-query-btn,
.pk-list-toolbar-btn,
.pk-dialog-btn {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  background: #fff;
  color: #606266;
  font: inherit;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.pk-query-filter-btn,
.pk-query-btn.is-text {
  border-color: transparent;
  background: transparent;
  color: #409eff;
}

.pk-query-filter-btn::after,
.pk-query-btn[data-pk-query-toggle]::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.18s ease;
}

.pk-query-filter-btn[aria-expanded="true"]::after,
.pk-query-btn[data-pk-query-toggle][aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.pk-query-filter-panel {
  position: absolute;
  z-index: 70;
  top: 32px;
  left: 0;
  width: 188px;
  padding: 6px 0;
  border: 1px solid #e4e7ed;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.pk-query-filter-panel[hidden] {
  display: none;
}

.pk-query-filter-title {
  padding: 4px 12px 6px;
  color: #303133;
  font-weight: 600;
  line-height: 20px;
}

.pk-query-filter-empty {
  min-height: 30px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: #909399;
  line-height: 20px;
}

.pk-query-filter-option {
  width: 100%;
  height: 30px;
  padding: 0 12px;
  border: 0;
  background: #fff;
  color: #606266;
  font: inherit;
  line-height: 30px;
  text-align: left;
  cursor: pointer;
}

.pk-query-filter-option:hover,
.pk-query-filter-option.is-selected {
  background: #f5f7fa;
  color: #409eff;
}

.pk-query-filter-list {
  min-height: 30px;
}

.pk-query-filter-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.pk-query-filter-entry .pk-query-filter-option {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-query-filter-entry-action {
  width: 38px;
  height: 30px;
  padding: 0;
  border: 0;
  background: #fff;
  color: #909399;
  font: inherit;
  cursor: pointer;
}

.pk-query-filter-entry-action:hover {
  background: #f5f7fa;
  color: #409eff;
}

.pk-query-btn.is-primary,
.pk-list-toolbar-btn.is-primary,
.pk-dialog-btn.is-primary {
  border-color: #409eff;
  background: #409eff;
  color: #fff;
}

.pk-query-btn:hover,
.pk-query-filter-btn:hover,
.pk-list-toolbar-btn:hover,
.pk-dialog-btn:hover {
  border-color: #b3d8ff;
  background: #ecf5ff;
  color: #409eff;
}

.pk-query-btn.is-primary:hover,
.pk-list-toolbar-btn.is-primary:hover,
.pk-dialog-btn.is-primary:hover {
  border-color: #66b1ff;
  background: #66b1ff;
  color: #fff;
}

.pk-query-advanced {
  margin-top: 10px;
}

.pk-query-advanced[hidden] {
  display: none;
}

.pk-query-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 20px;
}

.pk-query-tabs {
  height: 34px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #e4e7ed;
}

.pk-query-tab {
  position: relative;
  height: 34px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: #606266;
  font: inherit;
  cursor: pointer;
}

.pk-query-tab.is-active {
  color: #409eff;
}

.pk-query-tab.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #409eff;
}

.pk-query-field {
  min-width: 0;
}

.pk-query-field label {
  height: 18px;
  display: block;
  overflow: hidden;
  color: #333;
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pk-query-field input,
.pk-query-field select {
  width: 100%;
  padding: 0 10px;
  border-width: 0 0 1px;
  border-radius: 0;
}

.pk-query-field .pk-input-shell,
.pk-query-field .pk-select,
.pk-query-field .pk-select-trigger {
  width: 100%;
}

.pk-query-field [data-pk-query-reference-trigger] {
  cursor: pointer;
}

.pk-query-mode {
  min-width: 0;
  display: flex;
  align-items: flex-end;
}

.pk-query-mode-switch {
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #409eff;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.pk-list-surface {
  position: relative;
  min-height: 0;
  margin: 8px 10px 10px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.pk-list-surface > .pk-loading-mask {
  z-index: 80;
}

.pk-list-surface.is-loading > .pk-loading-mask {
  display: flex;
}

.pk-list-toolbar {
  min-height: 48px;
  padding: 10px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}

.pk-list-toolbar-left,
.pk-list-toolbar-right {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pk-list-toolbar-right {
  margin-left: auto;
}

.pk-list-toolbar-btn {
  padding: 0 8px;
}

.pk-list-toolbar-btn:disabled {
  border-color: #e4e7ed;
  background: #f5f7fa;
  color: #c0c4cc;
  cursor: not-allowed;
}

.pk-list-toolbar .pk-grid-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  font-size: 14px;
}

.pk-list-table-wrap {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  background: #fff;
  scrollbar-gutter: stable;
}

.pk-list-table-inner {
  width: max-content;
  min-width: 100%;
  display: inline-block;
  vertical-align: top;
}

.pk-list-table {
  width: max-content;
  min-width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
  background: #fff;
  color: #606266;
  font-family: var(--pk-font);
  font-size: 14px;
}

.pk-list-table th,
.pk-list-table td {
  height: 48px;
  padding: 10px 8px;
  border-right: 1px solid #e8eaec;
  border-bottom: 1px solid #e8eaec;
  background: #fff;
  color: #606266;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
  white-space: nowrap;
}

/* List workbenches use one scanning edge for every header and body value. */
.pk-list-table thead th,
.pk-list-table tbody td {
  text-align: left !important;
}

.pk-list-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #e6f4fc;
  color: #333;
  font-weight: 600;
}

.pk-list-table tbody tr:hover td {
  background: #eaf5fd;
}

.pk-list-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #409eff;
  font: inherit;
  cursor: pointer;
}

.pk-list-footer {
  min-height: 38px;
  padding: 0 8px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  color: #5e6b7a;
  font-size: 14px;
}

.pk-list-result-summary {
  color: #909399;
}

.pk-list-selected strong {
  color: #409eff;
  font-weight: 400;
}

.pk-query-reference-popover {
  position: fixed;
  z-index: 2300;
  width: min(720px, calc(100vw - 24px));
  border: 1px solid #e4e7ed;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
}

.pk-query-reference-popover[hidden] {
  display: none;
}

.pk-query-reference-arrow,
.pk-query-reference-arrow::after {
  position: absolute;
  width: 0;
  height: 0;
  border: 7px solid transparent;
}

.pk-query-reference-arrow {
  top: -14px;
  left: 24px;
  border-bottom-color: #dcdfe6;
}

.pk-query-reference-arrow::after {
  content: "";
  top: -6px;
  left: -7px;
  border-bottom-color: #fff;
}

.pk-query-reference-table-wrap {
  max-height: 260px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.pk-query-reference-popover .pk-list-table th,
.pk-query-reference-popover .pk-list-table td {
  height: 40px;
  padding: 8px;
}

.pk-query-reference-popover .pk-list-table tbody tr.is-selected td {
  background: #eaf5fd;
}

.pk-query-reference-footer {
  min-height: 46px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #ebeef5;
  color: #606266;
}

.pk-query-reference-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pk-query-reference-btn {
  height: 28px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  background: #fff;
  color: #606266;
  font: inherit;
  cursor: pointer;
}

.pk-query-reference-btn:hover {
  border-color: #b3d8ff;
  background: #ecf5ff;
  color: #409eff;
}

.pk-query-reference-btn.is-primary {
  border-color: #409eff;
  background: #409eff;
  color: #fff;
}

.pk-query-reference-btn.is-primary:hover {
  border-color: #66b1ff;
  background: #66b1ff;
  color: #fff;
}

.pk-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pk-pagination-size {
  height: 26px;
  padding: 0 22px 0 8px;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  background: #fff;
  color: #606266;
  font: inherit;
}

.pk-pagination-pages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pk-pagination-btn,
.pk-pagination-page {
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e7ed;
  border-radius: 2px;
  background: #fff;
  color: #606266;
  font: inherit;
}

.pk-pagination-page.is-active {
  border-color: #409eff;
  background: #409eff;
  color: #fff;
}

.pk-pagination-btn:disabled,
.pk-pagination-page:disabled {
  border-color: #ebeef5;
  background: #f5f7fa;
  color: #c0c4cc;
  cursor: not-allowed;
}

.pk-pagination-input {
  width: 38px;
  height: 26px;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  text-align: center;
  color: #606266;
  font: inherit;
}

.pk-field.has-error .pk-input-shell,
.pk-field.has-error .pk-select-trigger {
  border-bottom-color: #f56c6c;
}

.pk-field-error {
  min-height: 18px;
  margin-top: 2px;
  color: #f56c6c;
  font-size: 12px;
  line-height: 18px;
}

.pk-filter-name-field {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  color: #303133;
  font: inherit;
  outline: none;
}

.pk-filter-name-field:focus {
  border-color: #409eff;
}

.pk-filter-dialog-body {
  display: block;
}

.pk-filter-dialog-field {
  display: grid;
  gap: 8px;
  color: #606266;
  font-size: 14px;
}

.pk-column-manager,
.pk-row-menu {
  position: relative;
}

.pk-column-panel,
.pk-row-menu-popover {
  position: absolute;
  z-index: 60;
  border: 1px solid #e4e7ed;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.pk-column-panel[hidden],
.pk-row-menu-popover[hidden] {
  display: none;
}

.pk-column-panel {
  top: 32px;
  right: 0;
  width: 188px;
  padding: 6px 0;
}

.pk-column-panel-title {
  padding: 4px 12px 6px;
  color: #303133;
  font-weight: 600;
  line-height: 20px;
}

.pk-column-option {
  min-height: 30px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: #606266;
  cursor: pointer;
  white-space: nowrap;
}

.pk-column-option:hover,
.pk-row-menu-popover button:hover {
  background: #f5f7fa;
  color: #409eff;
}

.pk-column-option > input[type="checkbox"] {
  margin: 0 8px 0 0;
}

.pk-column-option > input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(64, 158, 255, 0.45);
  outline-offset: 1px;
}

.pk-list-column-hidden {
  display: none !important;
}

.pk-row-menu-trigger {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #409eff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.pk-row-menu-popover {
  top: 30px;
  left: 0;
  min-width: 88px;
  padding: 4px 0;
}

.pk-row-menu-popover button {
  width: 100%;
  height: 30px;
  padding: 0 14px;
  border: 0;
  background: #fff;
  color: #606266;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.pk-list-fullscreen-active {
  overflow: hidden;
}

body.pk-dialog-open {
  overflow: hidden;
}

.pk-list-surface.is-fullscreen {
  position: fixed;
  z-index: 2100;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  background: #fff;
}

/* Dialog variants: keep master-data CRUD separate from document detail. */
.pk-dialog-mask {
  position: fixed;
  z-index: 2200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.42);
}

.pk-dialog-mask.is-visible {
  display: flex;
}

.pk-dialog {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  background: #fff;
  color: #606266;
  font-family: var(--pk-font);
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.pk-dialog--master-detail {
  width: min(960px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
}

.pk-dialog--document-detail {
  width: min(1280px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 32px));
}

.pk-dialog-header {
  min-height: 55px;
  padding: 20px 20px 10px;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #dcdfe6;
  background: linear-gradient(180deg, #f2fbff 0, #fff 100%);
}

.pk-dialog--document-detail .pk-dialog-header {
  min-height: 48px;
  padding: 12px 16px;
  align-items: center;
  background: #fff;
}

.pk-dialog-title {
  margin: 0;
  color: #409eff;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}

.pk-dialog--document-detail .pk-dialog-title {
  color: #303133;
  font-size: 16px;
}

.pk-dialog-close {
  width: 20px;
  height: 20px;
  padding: 0;
  position: relative;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #409eff;
  cursor: pointer;
}

.pk-dialog-close::before,
.pk-dialog-close::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 2px;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

.pk-dialog-close::after {
  transform: rotate(-45deg);
}

.pk-dialog-close:focus-visible {
  outline: 1px solid #409eff;
  outline-offset: 2px;
}

.pk-dialog-body {
  min-height: 0;
  padding: 14px 20px 22px;
  flex: 1 1 auto;
  overflow: auto;
}

.pk-dialog--master-detail .pk-dialog-body {
  min-height: 260px;
}

.pk-dialog--document-detail .pk-dialog-body {
  padding: 0;
  overflow: auto;
}

.pk-master-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pk-master-form-row-gap) var(--pk-master-form-column-gap);
}

.pk-document-summary {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 20px;
  border-bottom: 1px solid #ebeef5;
  background: #fafafa;
}

.pk-document-summary-item {
  min-width: 0;
  display: flex;
  gap: 8px;
  color: #606266;
}

.pk-document-summary-item span:first-child {
  flex: 0 0 auto;
  color: #909399;
}

.pk-document-summary-item strong {
  overflow: hidden;
  color: #303133;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-document-title-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pk-document-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pk-document-status {
  height: 22px;
  padding: 0 8px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid #b3d8ff;
  border-radius: 3px;
  background: #ecf5ff;
  color: #409eff;
  font-size: 12px;
}

.pk-document-code {
  overflow: hidden;
  color: #909399;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-document-toolbar {
  min-height: 45px;
  padding: 8px 16px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
}

.pk-document-section {
  min-width: 0;
  border-bottom: 8px solid #f5f7fa;
  background: #fff;
}

.pk-document-section:last-child {
  border-bottom: 0;
}

.pk-document-tabs {
  min-height: 40px;
  padding: 0 16px;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 24px;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
}

.pk-document-tab {
  height: 40px;
  padding: 0;
  position: relative;
  border: 0;
  background: transparent;
  color: #606266;
  font: inherit;
  cursor: pointer;
}

.pk-document-tab.is-active {
  color: #409eff;
}

.pk-document-tab:hover,
.pk-document-tab:focus-visible {
  color: #409eff;
}

.pk-document-tab:focus-visible {
  outline: 2px solid rgba(64, 158, 255, 0.24);
  outline-offset: -2px;
}

.pk-document-tab.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #409eff;
}

.pk-document-content {
  min-height: 0;
  padding: 12px 16px;
  overflow: auto;
}

.pk-document-content[hidden] {
  display: none;
}

.pk-document-form-panel {
  min-height: 144px;
}

.pk-document-common-panel,
.pk-document-table-panel {
  padding: 0;
}

.pk-document-detail-layout .pk-erp-module {
  min-height: 240px;
}

.pk-document-detail-layout .pk-erp-empty {
  min-height: 140px;
}

.pk-document-detail-layout .pk-erp-module-table-wrap {
  min-height: 180px;
}

.pk-document-detail-layout .pk-erp-module .pk-empty-row td {
  height: 180px;
}

.pk-document-table-toolbar {
  min-height: 45px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
}

.pk-document-table-toolbar strong {
  color: #606266;
  font-size: 13px;
  font-weight: 400;
}

.pk-document-table-wrap {
  height: 222px;
  border: 0;
}

.pk-document-line-table {
  width: 1440px;
  min-width: 1440px;
}

.pk-document-summary-table {
  width: 100%;
  min-width: 1010px;
}

.pk-document-payment-table {
  width: 930px;
  min-width: 930px;
}

.pk-document-terms-table {
  width: 960px;
  min-width: 960px;
}

.pk-document-layout-map {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.pk-document-layout-map span {
  min-height: 54px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #ebeef5;
  color: #606266;
  font-size: 13px;
  text-align: center;
}

.pk-document-layout-map span:last-child {
  border-right: 0;
}

@media (max-width: 900px) {
  .pk-document-toolbar,
  .pk-document-table-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pk-document-toolbar .pk-toolbar-right,
  .pk-document-table-toolbar .pk-list-toolbar-right {
    margin-left: 0;
  }

  .pk-document-layout-map {
    grid-template-columns: 1fr;
  }

  .pk-document-layout-map span {
    border-right: 0;
    border-bottom: 1px solid #ebeef5;
  }

  .pk-document-layout-map span:last-child {
    border-bottom: 0;
  }
}

.pk-list-demo {
  height: 560px;
  border: 1px solid #ebeef5;
}

.pk-component-desc {
  margin: -8px 0 16px;
  color: #909399;
  font-size: 14px;
  line-height: 22px;
}

.pk-dialog-demo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pk-dialog-footer {
  min-height: 45px;
  padding: 8px 20px 9px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid #ebeef5;
  background: #fff;
}

.pk-dialog--document-detail .pk-dialog-footer {
  justify-content: flex-end;
  padding-right: 16px;
}

.pk-dialog-btn {
  min-width: 56px;
  height: 30px;
  padding: 0 14px;
  font-size: 14px;
}

.pk-gap-priority.is-done {
  background: #f0f9eb;
  color: #67c23a;
}

.pk-component-actions {
  min-height: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Shared page composition and feedback components. */
.pk-page-header {
  overflow: visible;
  border: 1px solid #ebeef5;
  border-radius: 2px;
  background: #fff;
}

.pk-page-header-main {
  min-height: 48px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #ebeef5;
}

.pk-page-header-back {
  width: 28px;
  height: 28px;
  padding: 0;
  position: relative;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #606266;
  cursor: pointer;
}

.pk-page-header-back::before {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  top: 9px;
  left: 10px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.pk-page-header-back:hover,
.pk-page-header-back:focus-visible {
  color: #409eff;
}

.pk-page-header-back:focus-visible {
  outline: 2px solid rgba(64, 158, 255, 0.24);
  outline-offset: 0;
}

.pk-page-header-title-group {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pk-page-header-title-group h3 {
  margin: 0;
  color: #303133;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.pk-page-header-title-group span {
  overflow: hidden;
  color: #909399;
  font-size: 12px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-page-header-status {
  height: 22px;
  padding: 0 8px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid #b3d8ff;
  border-radius: 3px;
  background: #ecf5ff;
  color: #409eff;
  font-size: 12px;
}

.pk-page-header-toolbar {
  min-height: 44px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pk-tabs {
  border: 1px solid #ebeef5;
  border-radius: 2px;
  background: #fff;
}

.pk-tabs-nav {
  min-height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
}

.pk-tab {
  height: 33px;
  padding: 0 14px;
  flex: 0 0 auto;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6b7788;
  font-family: var(--pk-font);
  font-size: 14px;
  cursor: pointer;
}

.pk-tab:hover,
.pk-tab:focus-visible {
  color: #409eff;
}

.pk-tab:focus-visible {
  outline: 2px solid rgba(64, 158, 255, 0.24);
  outline-offset: -2px;
}

.pk-tab.is-active {
  border-bottom-color: #409eff;
  color: #409eff;
  font-weight: 600;
}

.pk-tab-panel {
  min-height: 88px;
  padding: 14px 16px;
  color: #606266;
  font-size: 14px;
  line-height: 22px;
}

.pk-tab-panel[hidden] {
  display: none;
}

.pk-tab-summary {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
  gap: 8px 14px;
}

.pk-tab-summary span {
  color: #909399;
}

.pk-tab-summary strong {
  min-width: 0;
  overflow: hidden;
  color: #303133;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-erp-common-tabs > .pk-tab-panel {
  min-height: 420px;
  padding: 0;
}

.pk-erp-module {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #606266;
}

.pk-erp-module.is-fullscreen {
  position: fixed;
  inset: 12px;
  z-index: 2400;
  min-height: 0;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  box-shadow: 0 8px 30px rgba(31, 45, 61, 0.18);
}

body.pk-erp-fullscreen-active {
  overflow: hidden;
}

.pk-erp-module-toolbar,
.pk-erp-module-heading,
.pk-erp-log-filters {
  min-height: 48px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
}

.pk-erp-module-toolbar {
  justify-content: space-between;
}

.pk-erp-module-heading {
  justify-content: space-between;
}

.pk-erp-module-heading strong {
  color: #303133;
  font-size: 14px;
  font-weight: 600;
}

.pk-inline-upload,
.pk-toolbar-upload {
  min-height: 28px;
}

.pk-communication-composer {
  padding: 14px 16px 12px;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
}

.pk-communication-input {
  width: 100%;
  height: 76px;
  padding: 8px 10px;
  display: block;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  outline: none;
  resize: none;
  background: #fff;
  color: #303133;
  font-family: var(--pk-font);
  font-size: 14px;
  line-height: 20px;
  box-sizing: border-box;
}

.pk-communication-input:focus {
  border-color: #409eff;
}

.pk-communication-input::placeholder {
  color: #c0c4cc;
}

.pk-communication-actions {
  min-height: 38px;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pk-communication-search {
  width: min(260px, 48%);
}

.pk-erp-empty {
  min-height: 180px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #909399;
  font-size: 14px;
}

.pk-erp-empty.is-large {
  min-height: 360px;
}

.pk-erp-empty.is-table {
  min-height: 190px;
}

.pk-erp-empty-icon {
  color: #c0c4cc;
  font-size: 46px;
  line-height: 1;
}

.pk-erp-module-table-wrap {
  min-height: 220px;
  flex: 1 1 auto;
  overflow: auto;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
  scrollbar-gutter: stable;
}

.pk-erp-module .pk-list-table th,
.pk-erp-module .pk-list-table td {
  height: 40px;
  padding: 8px;
}

.pk-erp-module .pk-empty-row td {
  height: 220px;
  padding: 0;
}

.pk-attachment-table {
  min-width: 1096px;
}

.pk-erp-log-filters {
  flex-wrap: wrap;
}

.pk-erp-filter-input {
  width: 156px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  outline: none;
  background: #fff;
  color: #606266;
  font-family: var(--pk-font);
  font-size: 14px;
  box-sizing: border-box;
}

.pk-erp-filter-input:focus {
  border-color: #409eff;
}

.pk-erp-filter-input::placeholder {
  color: #c0c4cc;
}

.pk-erp-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #909399;
}

.pk-audit-log-search {
  width: 220px;
}

.pk-audit-log-table-wrap {
  min-height: 240px;
}

.pk-audit-log-table {
  min-width: 1340px;
}

.pk-audit-log-panel .pk-list-footer {
  border-top: 0;
}

@media (max-width: 900px) {
  .pk-erp-common-tabs > .pk-tab-panel,
  .pk-erp-module {
    min-height: 460px;
  }

  .pk-erp-module-toolbar,
  .pk-erp-module-heading,
  .pk-erp-log-filters {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pk-erp-module-toolbar .pk-list-toolbar-right {
    margin-left: 0;
  }

  .pk-erp-date-range {
    width: 100%;
  }

  .pk-erp-date-range .pk-erp-filter-input {
    min-width: 0;
    flex: 1 1 0;
  }

  .pk-audit-log-search,
  .pk-communication-search {
    width: 100%;
  }
}

.pk-alert-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pk-alert {
  min-height: 58px;
  padding: 10px 36px 10px 12px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 13px;
}

.pk-alert.is-success {
  border-color: #e1f3d8;
  background: #f0f9eb;
  color: #67c23a;
}

.pk-alert.is-info {
  border-color: #d9ecff;
  background: #f4f4f5;
  color: #409eff;
}

.pk-alert.is-warning {
  border-color: #faecd8;
  background: #fdf6ec;
  color: #e6a23c;
}

.pk-alert.is-error {
  border-color: #fde2e2;
  background: #fef0f0;
  color: #f56c6c;
}

.pk-alert-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.pk-alert strong,
.pk-alert p {
  display: block;
  color: inherit;
}

.pk-alert strong {
  line-height: 20px;
}

.pk-alert p {
  margin: 2px 0 0;
  color: #606266;
  line-height: 20px;
}

.pk-alert-close {
  width: 24px;
  height: 24px;
  padding: 0;
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  color: #909399;
  cursor: pointer;
}

.pk-alert-close::before,
.pk-alert-close::after {
  content: "";
  width: 12px;
  height: 1px;
  position: absolute;
  top: 11px;
  left: 6px;
  background: currentColor;
  transform: rotate(45deg);
}

.pk-alert-close::after {
  transform: rotate(-45deg);
}

.pk-loading-surface {
  min-height: 150px;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid #ebeef5;
  border-radius: 2px;
  background: #fff;
}

.pk-loading-content {
  padding: 18px;
  color: #606266;
  font-size: 13px;
  line-height: 22px;
}

.pk-loading-content strong {
  color: #303133;
  font-size: 14px;
}

.pk-loading-content p {
  margin: 8px 0 0;
}

.pk-loading-mask {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #409eff;
  font-size: 13px;
}

.pk-loading-surface.is-loading .pk-loading-mask {
  display: flex;
}

.pk-inline-loading {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #606266;
  font-size: 13px;
}

.pk-spinner {
  width: 20px;
  height: 20px;
  display: inline-block;
  border: 2px solid #d9ecff;
  border-top-color: #409eff;
  border-radius: 50%;
  animation: pk-spin 0.8s linear infinite;
}

.pk-inline-loading .pk-spinner {
  width: 16px;
  height: 16px;
}

.pk-message-host {
  width: min(460px, calc(100vw - 32px));
  position: fixed;
  z-index: 3600;
  top: 20px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  pointer-events: none;
  transform: translateX(-50%);
}

.pk-message {
  min-height: 38px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1f3d8;
  border-radius: 3px;
  background: #f0f9eb;
  color: #67c23a;
  font-size: 13px;
  line-height: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.pk-message.is-warning {
  border-color: #faecd8;
  background: #fdf6ec;
  color: #e6a23c;
}

.pk-message.is-error {
  border-color: #fde2e2;
  background: #fef0f0;
  color: #f56c6c;
}

.pk-state-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pk-empty {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ebeef5;
  color: #909399;
  font-size: 14px;
}

.pk-empty-table-demo {
  height: 160px;
}

.pk-empty-row td {
  height: 120px;
  color: #909399;
  text-align: center;
}

.pk-skeleton,
.pk-skeleton-table {
  min-height: 150px;
  padding: 16px;
  border: 1px solid #ebeef5;
  background: #fff;
}

.pk-skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pk-skeleton-line,
.pk-skeleton-table-row span {
  display: block;
  border-radius: 2px;
  background: #ebeef5;
  animation: pk-skeleton-pulse 1.4s ease-in-out infinite;
}

.pk-skeleton-line {
  width: 100%;
  height: 14px;
}

.pk-skeleton-line.is-title {
  width: 38%;
  height: 18px;
}

.pk-skeleton-line.is-short {
  width: 68%;
}

.pk-skeleton-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pk-skeleton-table-row {
  min-height: 32px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #f2f4f7;
}

.pk-skeleton-table-row:last-child {
  border-bottom: 0;
}

.pk-skeleton-table-row span {
  height: 10px;
}

.pk-skeleton-table-row.is-head span {
  height: 12px;
  background: #dcdfe6;
}

.pk-messagebox-mask {
  align-items: flex-start;
}

.pk-dialog--messagebox {
  width: min(460px, calc(100vw - 48px));
  margin-top: 24vh;
}

.pk-messagebox-body {
  min-height: 96px;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #303133;
  font-size: 14px;
  line-height: 24px;
}

.pk-messagebox-body p {
  margin: 0;
}

.pk-messagebox-icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6a23c;
  border-radius: 50%;
  color: #e6a23c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.pk-drawer-mask {
  position: fixed;
  z-index: 2300;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: background-color 0.18s ease, visibility 0.18s ease;
}

.pk-drawer-mask.is-visible {
  background: rgba(0, 0, 0, 0.42);
  visibility: visible;
  pointer-events: auto;
}

.pk-drawer {
  width: min(480px, calc(100vw - 24px));
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.16);
  transform: translateX(100%);
  transition: transform 0.18s ease;
}

.pk-drawer-mask.is-visible .pk-drawer {
  transform: translateX(0);
}

.pk-drawer-header {
  min-height: 48px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #ebeef5;
}

.pk-drawer-header h2 {
  margin: 0;
  color: #303133;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.pk-drawer-body {
  min-height: 0;
  padding: 16px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
}

.pk-drawer-summary {
  padding: 12px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 12px;
  background: #f5f7fa;
  color: #606266;
  font-size: 13px;
  line-height: 20px;
}

.pk-drawer-summary span {
  color: #909399;
}

.pk-drawer-summary strong {
  min-width: 0;
  overflow: hidden;
  color: #303133;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-drawer-footer {
  min-height: 48px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #ebeef5;
  background: #fff;
}

@keyframes pk-spin {
  to { transform: rotate(360deg); }
}

@keyframes pk-skeleton-pulse {
  0%, 100% { opacity: 0.48; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pk-spinner,
  .pk-skeleton-line,
  .pk-skeleton-table-row span {
    animation: none;
  }

  .pk-drawer-mask,
  .pk-drawer {
    transition: none;
  }
}

@media (max-width: 900px) {
  .pk-query-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .pk-query-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .pk-query-grid,
  .pk-document-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pk-master-detail-grid {
    grid-template-columns: 1fr;
  }

  .pk-alert-list,
  .pk-state-example-grid {
    grid-template-columns: 1fr;
  }
}

.pk-color {
  width: 40px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius);
  background: #fff;
}

.pk-disabled {
  background: #f5f7fa;
  color: #a8abb2;
  cursor: not-allowed;
}

@media (max-width: 1180px) {
  .pk-component-stack,
  .pk-option-row,
  .pk-component-card:not(.pk-component-card--wide) > .pk-field,
  .pk-component-card:not(.pk-component-card--wide) > .el-form-item__content {
    width: calc((100% - 10px) / 2);
    min-width: 0;
  }

  .pk-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pk-kit-summary-grid,
  .pk-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pk-kit-coverage-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pk-gap-board {
    grid-template-columns: 1fr;
  }

  .pk-color-token-grid--four,
  .pk-icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pk-layout--catalog {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .pk-component-main {
    padding: 32px 22px 44px;
  }

  .pk-waterfall {
    display: flex;
  }
}

@media (max-width: 760px) {
  .pk-component-stack,
  .pk-option-row,
  .pk-component-card:not(.pk-component-card--wide) > .pk-field,
  .pk-component-card:not(.pk-component-card--wide) > .el-form-item__content {
    width: 100%;
  }

  .pk-layout {
    grid-template-columns: 1fr;
  }

  .pk-layout--catalog {
    display: block;
  }

  .pk-side {
    border-right: none;
    border-bottom: 1px solid var(--pk-border-light);
  }

  .pk-doc-side {
    height: auto;
    position: static;
    padding: 14px 12px;
    border-right: none;
    border-bottom: 1px solid var(--pk-border-light);
  }

  .pk-doc-side-title {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .pk-doc-nav {
    gap: 14px;
  }

  .pk-doc-nav-group {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .pk-doc-nav-heading {
    position: sticky;
    left: 0;
    align-self: center;
    padding-right: 6px;
    background: #fff;
  }

  .pk-doc-nav a,
  .pk-doc-nav-item {
    font-size: 13px;
    white-space: nowrap;
  }

  .pk-tag-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .pk-tag {
    font-size: 13px;
    line-height: 18px;
  }

  .pk-main {
    padding: 12px;
  }

  .pk-component-main {
    max-width: none;
  }

  .pk-waterfall {
    display: flex;
  }

  .pk-component-card {
    padding: 18px 0 22px;
  }

  .pk-kit-summary-grid,
  .pk-kit-coverage-list,
  .pk-rule-grid,
  .pk-gap-board,
  .pk-color-token-grid,
  .pk-color-token-grid--four,
  .pk-icon-grid {
    grid-template-columns: 1fr;
  }

  .pk-kit-summary-card,
  .pk-rule-item {
    min-height: 0;
  }

  .pk-kit-coverage-head {
    display: block;
  }

  .pk-type-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .pk-type-row code {
    grid-column: 2;
    text-align: left;
  }

  .pk-form-grid {
    grid-template-columns: 1fr;
  }

  .pk-page-header-main,
  .pk-page-header-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pk-tab-summary {
    grid-template-columns: 1fr;
  }

  .pk-page-header-toolbar {
    flex-direction: column;
  }

  .pk-page-header-title-group {
    max-width: calc(100% - 74px);
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .pk-page-header-toolbar .pk-toolbar-right {
    width: 100%;
  }

  .pk-reference-popover {
    min-width: 0;
  }
}
