[class^="pv-"],
[class*=" pv-"] {
  box-sizing: border-box;
}

.pv-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
}

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

.pv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--pv-height);
  padding: 0 15px;
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius);
  background: var(--pv-bg);
  color: var(--pv-text);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  transition: color .15s, background .15s, border-color .15s;
}

.pv-btn-sm { height: var(--pv-height-sm); padding: 0 7px; }
.pv-btn-lg { height: var(--pv-height-lg); padding: 0 15px; font-weight: 600; }
.pv-btn-long { width: 100%; }
.pv-btn:hover { color: var(--pv-primary-hover); border-color: var(--pv-primary-hover); }
.pv-btn-primary { color: #fff; background: var(--pv-primary); border-color: var(--pv-primary); }
.pv-btn-primary:hover { color: #fff; background: var(--pv-primary-hover); border-color: var(--pv-primary-hover); }
.pv-btn-primary:active { color: #fff; background: var(--pv-primary-active); border-color: var(--pv-primary-active); }
.pv-btn-success { color: #fff; background: var(--pv-success); border-color: var(--pv-success); }
.pv-btn-success:hover { color: #fff; background: var(--pv-success-hover); border-color: var(--pv-success-hover); }
.pv-btn-ghost { color: var(--pv-primary); background: transparent; border-color: var(--pv-primary); }
.pv-btn-ghost:hover { color: var(--pv-primary-hover); background: transparent; border-color: var(--pv-primary-hover); }
.pv-btn:disabled,
.pv-btn.is-loading { cursor: not-allowed; opacity: .65; }
.pv-btn-spin {
  display: none;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pv-spin .6s linear infinite;
}
.pv-btn.is-loading .pv-btn-spin { display: inline-block; }
.pv-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.pv-btn-icon .pv-icon {
  width: 16px;
  height: 16px;
}
.pv-btn-icon-only {
  width: var(--pv-height);
  padding: 0;
}
.pv-btn-icon-only.pv-btn-sm { width: var(--pv-height-sm); }
.pv-btn-icon-only.pv-btn-lg { width: var(--pv-height-lg); }
.pv-btn-group {
  display: inline-flex;
  vertical-align: middle;
}
.pv-btn-group > .pv-btn,
.pv-btn-group > .pv-btn-wrap > .pv-btn {
  position: relative;
  border-radius: 0;
  margin-left: -1px;
}
.pv-btn-group > .pv-btn:first-child,
.pv-btn-group > .pv-btn-wrap:first-child > .pv-btn {
  margin-left: 0;
  border-radius: var(--pv-radius) 0 0 var(--pv-radius);
}
.pv-btn-group > .pv-btn:last-child,
.pv-btn-group > .pv-btn-wrap:last-child > .pv-btn {
  border-radius: 0 var(--pv-radius) var(--pv-radius) 0;
}
.pv-btn-group > .pv-btn:only-child,
.pv-btn-group > .pv-btn-wrap:only-child > .pv-btn {
  border-radius: var(--pv-radius);
}
.pv-btn-group > .pv-btn:hover,
.pv-btn-group > .pv-btn:focus,
.pv-btn-group > .pv-btn-wrap > .pv-btn:hover,
.pv-btn-group > .pv-btn-wrap > .pv-btn:focus {
  z-index: 2;
}
.pv-btn-group > .pv-btn.is-active,
.pv-btn-group > .pv-btn-wrap > .pv-btn.is-active {
  z-index: 1;
  color: #fff;
  background: var(--pv-primary);
  border-color: var(--pv-primary);
}
.pv-btn-group > .pv-btn-wrap {
  display: inline-flex;
  position: relative;
}

.pv-input-wrap {
  position: relative;
  display: inline-flex;
  width: 100%;
  align-items: center;
}
.pv-input {
  width: 100%;
  height: var(--pv-height);
  padding: 4px 7px;
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius);
  background: var(--pv-bg);
  color: var(--pv-title);
  font: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
/* 表格单元格内嵌编辑：只保留单元格选区边框，控件本身无边框/聚焦环 */
.pv-cell-editor {
  box-sizing: border-box;
  background: var(--pv-bg);
}
.pv-cell-editor .pv-input-wrap {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--pv-bg);
}
.pv-cell-editor .pv-input {
  height: 100%;
  min-height: 0;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 7px;
  background: var(--pv-bg);
}
.pv-cell-editor .pv-input:hover,
.pv-cell-editor .pv-input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.pv-cell-editor-area {
  overflow: hidden;
}
.pv-cell-editor-area .pv-input-wrap {
  flex-direction: column;
  overflow: hidden;
}
.pv-cell-editor textarea.pv-input,
.pv-cell-editor-area textarea.pv-input {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100%;
  resize: none;
  line-height: 1.4;
  padding: 4px 7px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.28) transparent;
}
.pv-cell-editor textarea.pv-input::-webkit-scrollbar,
.pv-cell-editor-area textarea.pv-input::-webkit-scrollbar {
  width: 8px;
}
.pv-cell-editor textarea.pv-input::-webkit-scrollbar-thumb,
.pv-cell-editor-area textarea.pv-input::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 4px;
}
.pv-cell-editor textarea.pv-input::-webkit-scrollbar-track,
.pv-cell-editor-area textarea.pv-input::-webkit-scrollbar-track {
  background: transparent;
}
.pv-cell-editor-number .pv-input {
  text-align: right;
}
.pv-cell-editor-select .pv-select,
.pv-cell-editor-date .pv-date {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.pv-cell-editor-select .pv-select-trigger,
.pv-cell-editor-date .pv-input-wrap {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: var(--pv-bg);
}
.pv-cell-editor-select .pv-select-trigger:hover,
.pv-cell-editor-select .pv-select.is-open .pv-select-trigger,
.pv-cell-editor-select .pv-select.is-open .pv-select-trigger:focus,
.pv-cell-editor-select .pv-select-trigger:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.pv-cell-editor-date .pv-input {
  height: 100%;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 28px 0 7px;
}
.pv-cell-editor-date .pv-input:hover,
.pv-cell-editor-date .pv-input:focus,
.pv-cell-editor-date .pv-date.is-open .pv-input {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.pv-cell-editor-select .pv-select-label {
  line-height: 1.2;
}
.pv-cell-editor-dragform,
.pv-cell-editor-dragform .esao-dragform-drop,
.pv-cell-editor-dragform .pv-cell-dragform {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: var(--pv-bg);
}
.pv-cell-editor-dragform .esao-dragform-drop:hover,
.pv-cell-editor-dragform .esao-dragform-drop:focus,
.pv-cell-editor-dragform .pv-cell-dragform:hover,
.pv-cell-editor-dragform .pv-cell-dragform:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.pv-cell-editor-dragform .esao-dragform-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pv-text-secondary, #808695);
}
.pv-cell-editor-dragform .esao-dragform-arrow svg {
  width: 14px;
  height: 14px;
}
/* 单元格内 select 再压一层，避免基类 hover/open 边框漏出 */
.pv-cell-editor-select .pv-select,
.pv-cell-editor-select .pv-select-trigger,
.pv-cell-editor-select .pv-select.is-open,
.pv-cell-editor-select .pv-select.is-open .pv-select-trigger {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.pv-popup-cell-drop {
  padding: 0;
  overflow: hidden;
}
.pv-cell-drop-panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  background: var(--pv-bg, #fff);
}
.pv-cell-drop-title {
  flex: 0 0 auto;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pv-text, #515a6e);
  border-bottom: 1px solid var(--pv-border, #e8eaec);
}
.pv-cell-drop-list {
  flex: 1 1 auto;
  overflow: auto;
  max-height: inherit;
  padding: 4px 0;
}
.pv-cell-drop-item {
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--pv-text, #515a6e);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-cell-drop-item:hover,
.pv-cell-drop-item.is-active {
  background: var(--pv-bg-selected, rgba(64, 158, 255, 0.12));
  color: var(--pv-primary, #2d8cf0);
}
.pv-cell-drop-empty {
  padding: 16px 10px;
  text-align: center;
  color: var(--pv-placeholder, #c5c8ce);
  font-size: 12px;
}
textarea.pv-input {
  height: auto;
  min-height: 52px;
  padding: 4px 7px;
  resize: vertical;
  line-height: 1.5;
}
.pv-input::placeholder { color: var(--pv-placeholder); }
.pv-input:hover { border-color: var(--pv-primary-hover); }
.pv-input:focus { border-color: var(--pv-primary-hover); box-shadow: var(--pv-focus-ring); }
.pv-date.is-open .pv-input { border-color: var(--pv-primary-hover); box-shadow: var(--pv-focus-ring); }
.pv-input[readonly] { background: var(--pv-bg); color: var(--pv-text); cursor: default; }
.pv-input:disabled { background: var(--pv-bg-disabled); color: #ccc; cursor: not-allowed; }
.pv-input-wrap.has-suffix .pv-input { padding-right: 28px; }
.pv-input-lg .pv-input { height: var(--pv-height-lg); }
.pv-input-sm .pv-input { height: var(--pv-height-sm); }
.pv-input-prefix {
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  display: none;
  align-items: center;
  color: var(--pv-placeholder);
  pointer-events: none;
}
.pv-input-wrap.has-prefix .pv-input-prefix { display: flex; }
.pv-input-wrap.has-prefix .pv-input { padding-left: 32px; }
.pv-input-suffix {
  position: absolute;
  right: 7px;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 4px;
  color: var(--pv-placeholder);
  pointer-events: none;
}
.pv-input-wrap.has-suffix .pv-input-suffix { display: flex; }
.pv-input-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
}
.pv-input-icon-btn:hover { color: var(--pv-text); }
.pv-input-clear {
  width: 16px;
  height: 16px;
  color: #c5c8ce;
}
.pv-input-clear:hover { color: #808695; }
.pv-input-clear .pv-icon { width: 14px; height: 14px; }

.pv-select { position: relative; display: inline-block; width: 100%; }
.pv-select-trigger {
  appearance: none;
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--pv-height);
  padding: 0 28px 0 8px;
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius);
  background: var(--pv-bg);
  color: var(--pv-title);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pv-select-sm .pv-select-trigger { height: var(--pv-height-sm); }
.pv-select-lg .pv-select-trigger { height: var(--pv-height-lg); }
.pv-select-prefix {
  display: none;
  align-items: center;
  margin-right: 6px;
  color: var(--pv-placeholder);
}
.pv-select.has-prefix .pv-select-prefix { display: flex; }
.pv-select-clear {
  display: none;
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pv-placeholder);
  cursor: pointer;
  z-index: 1;
}
.pv-select.is-clearable.has-value:hover .pv-select-clear,
.pv-select.is-clearable.has-value:focus-within .pv-select-clear { display: flex; }
.pv-select.is-clearable.has-value:hover .pv-select-arrow,
.pv-select.is-clearable.has-value:focus-within .pv-select-arrow { visibility: hidden; }
.pv-select-trigger:hover,
.pv-select.is-open .pv-select-trigger { border-color: var(--pv-primary-hover); }
.pv-select.is-open .pv-select-trigger { box-shadow: var(--pv-focus-ring); }
.pv-select.is-disabled .pv-select-trigger {
  background: var(--pv-bg-disabled);
  color: #ccc;
  cursor: not-allowed;
}
.pv-select.is-readonly .pv-select-trigger {
  background: var(--pv-bg);
  color: var(--pv-text);
  cursor: default;
}
.pv-select-label { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pv-select-label.is-placeholder { color: var(--pv-placeholder); }
/* 多选与单选同高：不随 tag 增高，多余 tag 横向裁切 */
.pv-select.is-multiple .pv-select-trigger {
  flex-wrap: nowrap;
  overflow: hidden;
}
.pv-select.is-multiple .pv-select-label {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
}
.pv-select.is-multiple .pv-select-tag {
  flex: 0 0 auto;
  max-width: 120px;
}
.pv-select.is-multiple .pv-select-tag > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pv-select-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 22px;
  padding: 0 4px 0 8px;
  border: 1px solid var(--pv-border);
  border-radius: 3px;
  background: #f7f7f7;
  color: var(--pv-title);
  font-size: 12px;
}
.pv-select-tag-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #999;
  cursor: pointer;
}
.pv-select-tag-x .pv-icon { width: 12px; height: 12px; }
.pv-select-query {
  flex: 1 1 auto;
  min-width: 24px;
  width: auto;
  height: 24px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--pv-title);
  font: inherit;
  padding: 0;
}
.pv-select-query[hidden] { display: none; }
.pv-select.is-filterable.is-open .pv-select-label { flex: 0 1 auto; }
.pv-select.is-filterable.is-open:not(.is-multiple) .pv-select-label { display: none; }
.pv-select-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -7px;
  color: var(--pv-placeholder);
  transition: transform .15s;
}
.pv-select.is-open .pv-select-arrow { transform: rotate(180deg); }
.pv-select-list { margin: 0; padding: 0; list-style: none; max-height: 200px; overflow: auto; }
.pv-select-list.is-fit { max-height: none; overflow: visible; }
.pv-select-option {
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-select-option:hover,
.pv-select-option.is-active { background: var(--pv-bg-hover); }
.pv-select-option.is-selected { color: var(--pv-primary); background: var(--pv-bg-selected); }
.pv-select-empty { padding: 8px 12px; color: var(--pv-placeholder); }
.pv-select-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  margin: 0;
  background: #fff;
  border-radius: var(--pv-radius);
  box-shadow: var(--pv-shadow);
}
.pv-date-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 20;
  background: #fff;
  border-radius: var(--pv-radius);
  box-shadow: var(--pv-shadow);
  padding: 8px 12px 10px;
}

@keyframes pv-grow-in {
  from { opacity: 0; transform: scale(0.15); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pv-grow-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.15); }
}
@keyframes pv-shade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pv-shade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
.pv-popup.is-grow,
.pv-select-dropdown.is-grow,
.pv-date-dropdown.is-grow,
.pv-layx.is-grow {
  animation: pv-grow-in .22s cubic-bezier(.16, .84, .32, 1) both;
}
.pv-layx.is-shrink {
  animation: pv-grow-out .18s cubic-bezier(.4, 0, .7, .2) both;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .pv-popup.is-grow,
  .pv-select-dropdown.is-grow,
  .pv-date-dropdown.is-grow,
  .pv-layx.is-grow,
  .pv-layx.is-shrink,
  .pv-layx-shade.is-in,
  .pv-layx-shade.is-out { animation: none; }
}

.pv-popup {
  position: fixed;
  z-index: var(--pv-z-popup);
  background: #fff;
  border-radius: var(--pv-radius);
  box-shadow: var(--pv-shadow);
  padding: 4px 0;
}
.pv-popup-date { padding: 8px 12px 10px; }
.pv-date { position: relative; display: inline-block; width: 100%; }
.pv-date-panel { width: 252px; }
.pv-date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pv-date-title { display: flex; justify-content: center; gap: 6px; flex: 1; font-weight: 600; color: var(--pv-title); }
.pv-date-label {
  border: 0;
  background: transparent;
  padding: 0 2px;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.pv-date-label:hover { color: var(--pv-primary); }
.pv-date-panel.is-range { width: auto; }
.pv-date-sides { display: flex; }
.pv-date-side { width: 252px; }
.pv-date-side + .pv-date-side { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--pv-split); }
.pv-date-year-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.pv-date-month-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.pv-date-year-grid .pv-date-cell,
.pv-date-month-grid .pv-date-cell { height: 40px; }
.pv-date-cell.is-in-range { background: var(--pv-bg-selected); border-radius: 0; }
.pv-date-cell.is-start { border-radius: 4px 0 0 4px; }
.pv-date-cell.is-end { border-radius: 0 4px 4px 0; }
.pv-date-cell.is-start.is-end { border-radius: 4px; }
.pv-date-nav {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--pv-text);
  cursor: pointer;
  border-radius: var(--pv-radius);
}
.pv-date-nav:hover { background: var(--pv-bg-hover); color: var(--pv-primary); }
.pv-date-week,
.pv-date-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.pv-date-week { color: var(--pv-placeholder); text-align: center; font-size: 12px; margin-bottom: 4px; }
.pv-date-cell {
  height: 28px;
  border: 0;
  background: transparent;
  border-radius: 4px;
  color: var(--pv-title);
  cursor: pointer;
  font: inherit;
}
.pv-date-cell:hover { background: var(--pv-bg-hover); }
.pv-date-cell.is-muted { color: #c5c8ce; }
.pv-date-cell.is-today { color: var(--pv-primary); font-weight: 600; }
.pv-date-cell.is-selected,
.pv-date-cell.is-selected.is-today { background: var(--pv-primary); color: #fff; }
.pv-date-panel.is-datetime { width: auto; }
.pv-date-datetime { display: flex; align-items: flex-start; }
.pv-date-time {
  display: flex;
  width: 168px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--pv-split);
}
.pv-date-time-list { width: 56px; height: 216px; overflow: auto; }
.pv-date-time-item {
  display: block;
  width: 100%;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--pv-text);
  font: inherit;
  cursor: pointer;
}
.pv-date-time-item:hover { background: var(--pv-bg-hover); }
.pv-date-time-item.is-selected { color: var(--pv-primary); background: var(--pv-bg-selected); font-weight: 600; }
.pv-date-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--pv-split);
}
.pv-date-foot-actions { display: inline-flex; gap: 12px; }
.pv-date-link {
  border: 0;
  background: transparent;
  color: var(--pv-primary);
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.pv-date-link:hover { color: var(--pv-primary-hover); }

.pv-form { margin: 0; }
.pv-form-item { margin-bottom: 16px; }
.pv-form-top .pv-form-item-label { display: block; margin-bottom: 4px; }
.pv-form-left .pv-form-item,
.pv-form-right .pv-form-item { display: flex; align-items: flex-start; }
.pv-form-left .pv-form-item-label,
.pv-form-right .pv-form-item-label {
  flex: 0 0 var(--pv-label-width, 80px);
  width: var(--pv-label-width, 80px);
  line-height: var(--pv-height);
  padding-right: 12px;
}
.pv-form-right .pv-form-item-label { text-align: right; }
.pv-form-left .pv-form-item-content,
.pv-form-right .pv-form-item-content { flex: 1; min-width: 0; }
.pv-form-item-label { color: var(--pv-text); }
.pv-form-item-star { display: none; color: var(--pv-danger); margin-right: 4px; font-family: SimSun, sans-serif; }
.pv-form-item.is-required .pv-form-item-star { display: inline; }
.pv-display {
  display: none;
  width: 100%;
  min-height: 32px;
  line-height: 30px;
  padding: 0 7px;
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius);
  background: #fff;
  color: var(--pv-title);
  word-break: break-word;
}
.pv-display.is-empty { color: var(--pv-placeholder); }
.pv-display.is-multiline { height: auto; line-height: 1.5; padding: 6px 7px; white-space: pre-wrap; }
.pv-display-text { min-width: 0; }
.pv-display-eye {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #808695;
  cursor: pointer;
  vertical-align: middle;
}
.pv-display-eye[hidden] { display: none; }
.pv-display-eye:hover { color: var(--pv-text); }
.pv-input-wrap.is-display .pv-input,
.pv-date.is-display .pv-input { cursor: default; }
.pv-input-wrap.is-display .pv-input[readonly],
.pv-date.is-display .pv-input[readonly] { background: var(--pv-bg); color: var(--pv-title); }
/* 展示态：鼠标进入仍高亮边框；focus 不套光晕（不可编辑） */
.pv-input-wrap.is-display .pv-input:focus,
.pv-date.is-display .pv-input:focus {
  border-color: var(--pv-border);
  box-shadow: none;
}
.pv-input-wrap.is-display:hover .pv-input,
.pv-date.is-display:hover .pv-input,
.pv-select.is-display:hover .pv-select-trigger {
  border-color: var(--pv-primary-hover);
}
.pv-select.is-display .pv-select-trigger { cursor: default; pointer-events: none; }
.pv-date.is-display .pv-input,
.pv-date.is-display .pv-input-suffix { pointer-events: none; }
.pv-checkbox.is-display,
.pv-checkbox-group.is-display .pv-checkbox,
.pv-radio.is-display,
.pv-radio-group.is-display .pv-radio { pointer-events: none; }

.pv-radio-group { display: inline-flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.pv-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  color: var(--pv-text);
  cursor: pointer;
  user-select: none;
}
.pv-radio-input { position: absolute; opacity: 0; width: 0; height: 0; }
.pv-radio-dot {
  width: 16px;
  height: 16px;
  border: 1px solid var(--pv-border);
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex: none;
}
.pv-radio.is-checked .pv-radio-dot { border-color: var(--pv-primary); }
.pv-radio.is-checked .pv-radio-dot::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pv-primary);
}
.pv-radio.is-disabled { color: #ccc; cursor: not-allowed; }
.pv-radio.is-disabled .pv-radio-dot { background: var(--pv-bg-disabled); }
.pv-radio.is-disabled.is-checked .pv-radio-dot::after { background: #ccc; }
.pv-radio-group.is-button { gap: 0; }
.pv-radio-group.is-button .pv-radio {
  height: 32px;
  padding: 0 15px;
  margin-left: -1px;
  border: 1px solid var(--pv-border);
  border-radius: 0;
  background: #fff;
}
.pv-radio-group.is-button .pv-radio:first-child { margin-left: 0; border-radius: 4px 0 0 4px; }
.pv-radio-group.is-button .pv-radio:last-child { border-radius: 0 4px 4px 0; }
.pv-radio-group.is-button .pv-radio-dot { display: none; }
.pv-radio-group.is-button .pv-radio.is-checked {
  z-index: 1;
  color: var(--pv-primary);
  border-color: var(--pv-primary);
}
.pv-radio-group.is-button .pv-radio.is-disabled.is-checked { color: #ccc; border-color: var(--pv-border); }
.pv-radio-group.pv-radio-sm.is-button .pv-radio { height: 24px; padding: 0 8px; }

.pv-layx-shade {
  position: fixed;
  inset: 0;
  z-index: var(--pv-z-modal);
  background: var(--pv-mask);
}
.pv-layx-shade.is-clear { background: transparent; }
.pv-layx-shade.is-in { animation: pv-shade-in .22s ease both; }
.pv-layx-shade.is-out { animation: pv-shade-out .18s ease both; }
@keyframes pv-layx-blink {
  0%, 100% { box-shadow: 1px 1px 50px rgba(0, 0, 0, .3); }
  50% { box-shadow: 0 0 0 4px var(--pv-primary), 1px 1px 50px rgba(0, 0, 0, .3); }
}
.pv-layx.is-blink { animation: pv-layx-blink .1s ease-in-out 3; }
.pv-layx {
  position: fixed;
  z-index: calc(var(--pv-z-modal) + 1);
  display: flex;
  flex-direction: column;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  background: #fff;
  border-radius: var(--pv-radius);
  overflow: hidden;
  box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
  outline: none;
}
.pv-layx:focus,
.pv-layx:focus-visible { outline: none; }
.pv-layx.is-over-drop {
  z-index: var(--pv-z-layx-over);
}
.pv-layx-shade.is-over-drop {
  z-index: calc(var(--pv-z-layx-over) - 1);
}
.pv-layx.is-max {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  border-radius: 0;
}
.pv-layx.is-min {
  height: auto !important;
  min-height: 0;
}
.pv-layx.is-min .pv-layx-body,
.pv-layx.is-min .pv-layx-resize { display: none; }
.pv-layx-title {
  display: flex;
  align-items: center;
  height: 32px;
  padding-left: 12px;
  background: var(--pv-primary);
  cursor: default;
  user-select: none;
  touch-action: none;
  flex: none;
}
.pv-layx-title-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 14px;
}
.pv-layx-controls { display: flex; flex: none; }
.pv-layx-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.pv-layx-controls .pv-icon { width: 20px; height: 20px; }
.pv-layx-controls button:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.pv-layx-close:hover { background: var(--pv-danger); color: #fff; }
.pv-layx-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
/* iframe HTML 加载：盖在宿主（壳 body / Layx body）正中；由 PV.PageWait 挂载 */
.pv-page-wait {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, .92);
  pointer-events: none;
}
.pv-page-wait.is-open { display: flex; }
.pv-page-wait-spin {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border: 2px solid color-mix(in srgb, var(--pv-primary, #2d8cf0) 18%, transparent);
  border-top-color: var(--pv-primary, #2d8cf0);
  border-radius: 50%;
  animation: pv-page-wait-spin .7s linear infinite;
}
.pv-page-wait-text {
  margin: 0;
  color: #808695;
  font-size: 14px;
  line-height: 1.4;
}
@keyframes pv-page-wait-spin { to { transform: rotate(360deg); } }
/* 短请求等待（删除等）：PV.Wait 挂到主页壳 body，盖住确认框，低于 Message */
.pv-wait {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--pv-z-message, 1200) - 1);
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .45);
}
.pv-wait.is-open { display: flex; }
.pv-wait-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 148px;
  padding: 22px 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.pv-wait-text {
  margin: 0;
  color: #808695;
  font-size: 14px;
  line-height: 1.4;
}
.pv-layx-resize { position: absolute; z-index: 3; touch-action: none; }
.pv-layx-resize-n,
.pv-layx-resize-s { left: 8px; right: 8px; height: 6px; cursor: ns-resize; }
.pv-layx-resize-n { top: 0; }
.pv-layx-resize-s { bottom: 0; }
.pv-layx-resize-e,
.pv-layx-resize-w { top: 8px; bottom: 8px; width: 6px; cursor: ew-resize; }
.pv-layx-resize-e { right: 0; }
.pv-layx-resize-w { left: 0; }
.pv-layx-resize-nw,
.pv-layx-resize-ne,
.pv-layx-resize-sw,
.pv-layx-resize-se { width: 12px; height: 12px; z-index: 4; }
.pv-layx-resize-nw { top: 0; left: 0; cursor: nwse-resize; }
.pv-layx-resize-ne { top: 0; right: 0; cursor: nesw-resize; }
.pv-layx-resize-sw { bottom: 0; left: 0; cursor: nesw-resize; }
.pv-layx-resize-se { bottom: 0; right: 0; cursor: nwse-resize; }
.pv-layx.is-max .pv-layx-resize { display: none; }
.pv-layx.is-sized .pv-layx-body,
.pv-layx.is-max .pv-layx-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.pv-layx.is-sized .pv-modal-content,
.pv-layx.is-max .pv-modal-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.pv-layx.is-sized .pv-modal-body,
.pv-layx.is-max .pv-modal-body { flex: 1; min-height: 0; overflow: auto; }
.pv-layx.is-sized .pv-modal-footer,
.pv-layx.is-max .pv-modal-footer { flex: none; }
.pv-modal-body { padding: 16px; }
.pv-modal-footer {
  padding: 12px 16px;
  text-align: right;
}
.pv-modal-footer .pv-btn + .pv-btn { margin-left: 8px; }

.pv-page { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pv-page-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pv-page-btn,
.pv-page-item,
.pv-page-ellipsis {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius);
  background: #fff;
  color: var(--pv-text);
  font: inherit;
  cursor: pointer;
}
.pv-page-ellipsis { display: inline-flex; align-items: center; justify-content: center; border-color: transparent; background: transparent; cursor: default; }
.pv-page-btn:hover,
.pv-page-item:hover { border-color: var(--pv-primary); color: var(--pv-primary); }
.pv-page-item.is-active { border-color: var(--pv-primary); color: var(--pv-primary); font-weight: 600; }
.pv-page-btn:disabled { color: #ccc; cursor: not-allowed; background: #fff; border-color: var(--pv-border); }
.pv-page-total { color: var(--pv-text); }

.pv-menu { margin: 0; padding: 0; list-style: none; background: #fff; color: var(--pv-text); }
.pv-menu-vertical { width: 220px; border-right: 1px solid var(--pv-split); }
.pv-menu-horizontal { display: flex; width: 100%; border-bottom: 1px solid var(--pv-split); }
.pv-menu-item,
.pv-menu-submenu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 16px;
  padding-left: calc(16px + var(--pv-menu-depth, 0) * 16px);
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pv-menu-horizontal > .pv-menu-item-wrap > .pv-menu-item,
.pv-menu-horizontal > .pv-menu-item-wrap > .pv-menu-submenu-title { padding-left: 16px; }
.pv-menu-item:hover,
.pv-menu-submenu-title:hover,
.pv-menu-submenu-title.is-active { color: var(--pv-primary); }
.pv-menu-item.is-active { color: var(--pv-primary); background: var(--pv-bg-selected); }
.pv-menu-vertical .pv-menu-item.is-active { box-shadow: inset -2px 0 0 var(--pv-primary); }
.pv-menu-sub { display: none; margin: 0; padding: 0; list-style: none; }
.pv-menu-vertical .pv-menu-item-wrap.is-open > .pv-menu-sub { display: block; }
.pv-menu-submenu-title .pv-icon { transition: transform .15s; }
.pv-menu-item-wrap.is-open > .pv-menu-submenu-title .pv-icon { transform: rotate(180deg); }
.pv-menu-popup .pv-menu { border: 0; width: 180px; }

.pv-tabs-nav {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--pv-split);
}
.pv-tabs-tab {
  position: relative;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: var(--pv-text);
  font: inherit;
  cursor: pointer;
}
.pv-tabs-tab:hover { color: var(--pv-primary-hover); }
.pv-tabs-tab.is-active { color: var(--pv-primary); }
.pv-tabs-line .pv-tabs-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--pv-primary);
}
.pv-tabs-card .pv-tabs-nav { gap: 4px; border-bottom: 1px solid var(--pv-split); }
.pv-tabs-card .pv-tabs-tab {
  margin-bottom: -1px;
  border: 1px solid var(--pv-split);
  border-radius: 4px 4px 0 0;
  background: #f7f7f7;
}
.pv-tabs-card .pv-tabs-tab.is-active { background: #fff; color: var(--pv-primary); border-bottom-color: #fff; }

.pv-theme-list,
.pv-lang-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-theme-item,
.pv-lang-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--pv-height);
  padding: 0 12px 0 8px;
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius);
  background: #fff;
  color: var(--pv-text);
  font: inherit;
  cursor: pointer;
}
.pv-theme-item:hover,
.pv-lang-item:hover { border-color: var(--pv-primary-hover); color: var(--pv-primary-hover); }
.pv-theme-item.is-active,
.pv-lang-item.is-active { border-color: var(--pv-primary); color: var(--pv-primary); box-shadow: var(--pv-focus-ring); }
.pv-theme-swatch { width: 14px; height: 14px; border-radius: 2px; }

.pv-drop {
  position: fixed;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: var(--pv-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
  z-index: var(--pv-z-drop);
  opacity: 0;
  transition: height .35s ease, width .35s ease, top .35s ease, left .35s ease, opacity .28s ease;
}
.pv-drop.is-open { opacity: 1; }
.pv-drop-body {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: auto;
  box-sizing: border-box;
  background: #fff;
}

.pv-side-mask {
  position: fixed;
  inset: 0;
  z-index: var(--pv-z-side);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0);
  transition: background .28s ease;
}
.pv-side-mask.is-open { background: rgba(0, 0, 0, .45); }
.pv-side {
  height: 100%;
  min-width: 320px;
  max-width: 100vw;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.pv-side-mask.is-open .pv-side { transform: none; }
.pv-side-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  color: var(--pv-title);
}
.pv-side-title { flex: 1; min-width: 0; }
.pv-side-close {
  display: inline-flex;
  border: 0;
  background: transparent;
  color: #999;
  cursor: pointer;
  padding: 2px 6px;
}
.pv-side-close:hover { color: var(--pv-text); }
.pv-side-body { flex: 1; min-height: 0; overflow: auto; position: relative; }
.pv-tabs-panel { display: none; padding: 12px 0; }
.pv-tabs-panel.is-active { display: block; }
.pv-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--pv-text);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
}
.pv-checkbox-box { position: relative; width: 16px; height: 16px; flex: none; }
.pv-checkbox-sm .pv-checkbox-box { width: 14px; height: 14px; }
.pv-checkbox-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pv-checkbox-inner {
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid var(--pv-border);
  border-radius: 2px;
  background: #fff;
  position: relative;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.pv-checkbox-sm .pv-checkbox-inner { width: 14px; height: 14px; }
.pv-checkbox-inner::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg) scale(0);
  transition: transform .2s ease;
}
.pv-checkbox-sm .pv-checkbox-inner::after { top: 0; left: 3px; height: 7px; }
.pv-checkbox:hover .pv-checkbox-inner { border-color: #bcbcbc; }
.pv-checkbox.is-checked .pv-checkbox-inner,
.pv-checkbox.is-indeterminate .pv-checkbox-inner { border-color: var(--pv-primary); background: var(--pv-primary); }
.pv-checkbox.is-checked:hover .pv-checkbox-inner,
.pv-checkbox.is-indeterminate:hover .pv-checkbox-inner { border-color: var(--pv-primary); }
.pv-checkbox.is-checked .pv-checkbox-inner::after { transform: rotate(45deg) scale(1); }
.pv-checkbox.is-indeterminate .pv-checkbox-inner::after {
  top: 6px;
  left: 3px;
  width: 8px;
  height: 0;
  border: 0;
  border-top: 2px solid #fff;
  transform: none;
}
.pv-checkbox-sm.is-indeterminate .pv-checkbox-inner::after { top: 5px; left: 2px; width: 8px; }
.pv-checkbox.is-disabled { cursor: not-allowed; }
.pv-checkbox.is-disabled .pv-checkbox-input { cursor: not-allowed; }
.pv-checkbox.is-disabled .pv-checkbox-text { color: #ccc; cursor: not-allowed; }
.pv-checkbox.is-disabled .pv-checkbox-inner,
.pv-checkbox.is-disabled:hover .pv-checkbox-inner { border-color: var(--pv-border); background: #f3f3f3; }
.pv-checkbox.is-disabled.is-checked .pv-checkbox-inner::after { border-color: #ccc; }
.pv-checkbox.is-disabled.is-indeterminate .pv-checkbox-inner::after { border-top-color: #c5c8ce; }
.pv-checkbox:focus-within .pv-checkbox-inner { box-shadow: var(--pv-focus-ring); }
.pv-checkbox-border {
  height: 32px;
  padding: 0 15px;
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius);
  transition: border-color .2s ease;
}
.pv-checkbox-sm.pv-checkbox-border { height: 24px; padding: 0 7px; }
.pv-checkbox-border:hover { border-color: var(--pv-primary-hover); }
.pv-checkbox-border.is-checked { border-color: var(--pv-primary); }
.pv-checkbox-border.is-disabled,
.pv-checkbox-border.is-disabled:hover { border-color: var(--pv-border); }
.pv-checkbox-group { display: flex; flex-wrap: wrap; gap: 8px 16px; }

.pv-message {
  position: fixed;
  z-index: var(--pv-z-message);
  left: 0;
  width: 100%;
  pointer-events: none;
  font-size: 14px;
}
.pv-message-item {
  padding: 8px;
  text-align: center;
  overflow: hidden;
  max-height: 120px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, max-height .2s ease, padding .2s ease;
}
.pv-message-item:first-child { margin-top: -8px; }
.pv-message-item.is-open { opacity: 1; transform: none; }
.pv-message-item.is-leave {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  visibility: hidden;
}
/* 显示时长由脚本写成 animation。定时器若停在被挡住的 iframe 里，这段动画仍会把提示收掉。 */
@keyframes pv-message-life {
  0% { opacity: 0; transform: translateY(-8px); max-height: 120px; padding-top: 8px; padding-bottom: 8px; visibility: visible; }
  10% { opacity: 1; transform: none; max-height: 120px; padding-top: 8px; padding-bottom: 8px; visibility: visible; }
  75% { opacity: 1; transform: none; max-height: 120px; padding-top: 8px; padding-bottom: 8px; visibility: visible; }
  100% { opacity: 0; transform: translateY(-8px); max-height: 0; padding-top: 0; padding-bottom: 0; visibility: hidden; }
}
.pv-message-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(520px, calc(100% - 32px));
  padding: 8px 16px;
  border-radius: var(--pv-radius);
  background: #fff;
  box-shadow: var(--pv-shadow);
  pointer-events: auto;
  position: relative;
  line-height: 1.5;
  text-align: left;
  color: var(--pv-text);
}
.pv-message-content.is-closable { padding-right: 32px; }
.pv-message-text { vertical-align: middle; }
.pv-message-info .pv-toast-icon,
.pv-message-info .pv-toast-spin,
.pv-message-loading .pv-toast-spin { color: var(--pv-primary); }
.pv-message-success .pv-toast-icon { color: var(--pv-success); }
.pv-message-warning .pv-toast-icon { color: var(--pv-warning); }
.pv-message-error .pv-toast-icon { color: var(--pv-danger); }
.pv-message-content.is-background { box-shadow: none; border: 1px solid transparent; }
.pv-message-info.is-background {
  background: color-mix(in srgb, var(--pv-primary) 10%, #fff);
  color: var(--pv-primary);
  border-color: color-mix(in srgb, var(--pv-primary) 28%, #fff);
}
.pv-message-success.is-background { background: #edfff3; color: #19be6b; border-color: #bbf2cf; }
.pv-message-warning.is-background { background: #fff9e6; color: #ff9900; border-color: #ffe7a3; }
.pv-message-error.is-background { background: #ffefe6; color: #ed4014; border-color: #ffcfb8; }
.pv-toast-icon { width: 16px; height: 16px; }
.pv-toast-spin {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pv-spin .6s linear infinite;
  flex: none;
}
.pv-toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #999;
  cursor: pointer;
  padding: 0;
}
.pv-toast-close:hover { color: #444; }
.pv-message-content .pv-toast-close {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}
.pv-message-content .pv-toast-close .pv-icon { width: 14px; height: 14px; }

.pv-notice-host {
  position: fixed;
  z-index: var(--pv-z-notice);
  right: 0;
  width: 335px;
  margin-right: 24px;
  pointer-events: none;
}
.pv-notice {
  position: relative;
  margin-bottom: 10px;
  padding: 16px;
  border-radius: var(--pv-radius);
  background: #fff;
  box-shadow: var(--pv-shadow);
  pointer-events: auto;
  overflow: hidden;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .28s ease, transform .28s ease;
}
.pv-notice.is-open { opacity: 1; transform: none; }
.pv-notice.is-leave { opacity: 0; transform: translateX(24px); }
.pv-notice-title {
  font-size: 16px;
  line-height: 22px;
  color: var(--pv-title);
  padding-right: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pv-notice.is-desc .pv-notice-title { margin-bottom: 8px; }
.pv-notice-desc { font-size: 14px; line-height: 1.5; color: var(--pv-text); text-align: justify; }
.pv-notice.has-icon .pv-notice-title { margin-left: 28px; }
.pv-notice.has-icon.is-desc .pv-notice-title,
.pv-notice.has-icon.is-desc .pv-notice-desc,
.pv-notice.has-icon.is-desc .pv-notice-render { margin-left: 48px; }
.pv-notice .pv-toast-icon,
.pv-notice .pv-toast-spin { position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; }
.pv-notice.is-desc .pv-toast-icon,
.pv-notice.is-desc .pv-toast-spin { width: 32px; height: 32px; top: 16px; }
.pv-notice-info .pv-toast-icon { color: var(--pv-primary); }
.pv-notice-success .pv-toast-icon { color: var(--pv-success); }
.pv-notice-warning .pv-toast-icon { color: var(--pv-warning); }
.pv-notice-error .pv-toast-icon { color: var(--pv-danger); }
.pv-notice .pv-toast-close { position: absolute; right: 8px; top: 12px; }
.pv-notice .pv-toast-close .pv-icon { width: 14px; height: 14px; }
.pv-notice-render { margin-top: 8px; }

.pv-image {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 58px;
  padding: 4px 7px;
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius);
  background: var(--pv-bg);
  line-height: 1;
  cursor: default;
  outline: none;
}
.pv-image:hover { border-color: var(--pv-primary-hover); }
.pv-image:focus,
.pv-image:focus-visible,
.pv-image:focus-within,
.pv-image.is-paste-focus {
  border-color: var(--pv-primary);
  box-shadow: var(--pv-focus-ring);
}
.pv-image.is-display:focus,
.pv-image.is-display:focus-visible,
.pv-image.is-display:focus-within,
.pv-image.is-display.is-paste-focus,
.pv-image.is-disabled,
.pv-image.is-disabled:hover,
.pv-image.is-disabled:focus,
.pv-image.is-disabled:focus-within {
  border-color: var(--pv-border);
  box-shadow: none;
}
.pv-image.is-display:hover {
  border-color: var(--pv-primary-hover);
}
.pv-image.is-disabled {
  background: var(--pv-bg-disabled);
  cursor: not-allowed;
  pointer-events: none;
}
.pv-image-item,
.pv-image-add {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 3px;
  box-sizing: border-box;
}
.pv-image-item {
  position: relative;
  overflow: hidden;
  border: 1px solid #d5d0d0;
  background: #fff;
}
.pv-image-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pv-image-cover {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.6);
}
.pv-image-item:hover .pv-image-cover,
.pv-image-item.is-hot .pv-image-cover,
.pv-image-item:focus-within .pv-image-cover { display: flex; }
.pv-image-preview,
.pv-image-remove,
.pv-image-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.pv-image-preview,
.pv-image-remove { width: 20px; height: 20px; }
.pv-image-cover .pv-icon { width: 16px; height: 16px; }
.pv-image.is-display .pv-image-remove,
.pv-image.is-readonly .pv-image-remove { display: none; }
.pv-image.is-uploading .pv-image-add {
  opacity: 0.55;
  pointer-events: none;
}
.pv-image-add {
  border: 1px dashed #d5d0d0;
  background: #fff;
  color: #6a6464;
}
.pv-image-add:hover { border-color: var(--pv-primary); }
.pv-image-add .pv-icon { width: 28px; height: 28px; }
.pv-image-add[hidden],
.pv-viewer-btn[hidden] { display: none !important; }
.pv-image-file {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.pv-viewer {
  position: fixed;
  inset: 0;
  z-index: var(--pv-z-viewer);
}
.pv-viewer-mask {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.5;
}
.pv-viewer-btn {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: #606266;
  opacity: 0.8;
  cursor: pointer;
  user-select: none;
}
.pv-viewer-close {
  top: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  background: transparent;
  opacity: 1;
}
.pv-viewer-close .pv-icon { width: 32px; height: 32px; }
.pv-viewer-prev,
.pv-viewer-next {
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
}
.pv-viewer-prev { left: 10px; }
.pv-viewer-next { right: 10px; }
.pv-viewer-prev .pv-icon,
.pv-viewer-next .pv-icon { width: 24px; height: 24px; }
.pv-viewer-actions {
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 282px;
  height: 44px;
  padding: 0 23px;
  border-radius: 22px;
  opacity: 1;
  cursor: default;
}
.pv-viewer-actions-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #fff;
}
.pv-viewer-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.pv-viewer-zoom { font-size: 28px; line-height: 1; }
.pv-viewer-orig {
  font-size: 13px;
  font-weight: 600;
  padding: 0 10px;
  min-width: 44px;
}
.pv-viewer-actions .pv-icon { width: 22px; height: 22px; }
.pv-viewer-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.35);
}
.pv-viewer-canvas {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pv-viewer-img {
  max-width: 100%;
  max-height: 100%;
  user-select: none;
  cursor: grab;
  touch-action: none;
}
.pv-viewer-img.is-thumb {
  filter: blur(1.2px);
  opacity: 0.92;
}
.pv-viewer-loading {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  font-size: 13px;
  pointer-events: none;
  user-select: none;
}
.pv-viewer-loading[hidden] { display: none !important; }
.pv-viewer-loading-spin {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pv-viewer-spin 0.7s linear infinite;
}
@keyframes pv-viewer-spin {
  to { transform: rotate(360deg); }
}

.pv-tree {
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  outline: none;
}
.pv-tree.is-disabled { background: var(--pv-bg-disabled); pointer-events: none; }
.pv-tree-empty { padding: 6px 12px; color: var(--pv-placeholder); }
.pv-tree-row {
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--pv-height-sm);
  padding: 0 8px 0 calc(8px + var(--pv-tree-depth, 0) * 16px);
  color: var(--pv-text);
  cursor: pointer;
  user-select: none;
}
.pv-tree-row:hover { background: var(--pv-bg-hover); }
.pv-tree-row.is-selected { background: var(--pv-bg-selected); color: var(--pv-primary); }
.pv-tree.is-display .pv-tree-row,
.pv-tree-row.is-disabled { cursor: default; }
.pv-tree.is-display .pv-tree-row:hover,
.pv-tree-row.is-disabled:hover { background: transparent; }
.pv-tree.is-display .pv-tree-row.is-selected,
.pv-tree.is-display .pv-tree-row.is-selected:hover {
  background: var(--pv-bg-selected);
  color: var(--pv-primary);
}
.pv-tree-row.is-disabled { color: #ccc; }
.pv-tree-arrow,
.pv-tree-spacer {
  width: 16px;
  height: 16px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #808695;
}
.pv-tree-arrow { cursor: pointer; }
.pv-tree-arrow .pv-icon { width: 14px; height: 14px; transition: transform .15s; }
.pv-tree-row.is-open .pv-tree-arrow .pv-icon { transform: rotate(90deg); }
.pv-tree-check {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  border: 1px solid var(--pv-border);
  border-radius: 2px;
  background: #fff;
}
.pv-tree-row.is-checked .pv-tree-check,
.pv-tree-row.is-indeterminate .pv-tree-check {
  border-color: var(--pv-primary);
  background: var(--pv-primary);
}
.pv-tree-row.is-checked .pv-tree-check::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}
.pv-tree-row.is-indeterminate .pv-tree-check::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 3px;
  width: 8px;
  height: 0;
  border-top: 2px solid #fff;
}
.pv-tree-row.is-disabled .pv-tree-check { border-color: var(--pv-border); background: var(--pv-bg-disabled); }
.pv-tree-row.is-disabled.is-checked .pv-tree-check,
.pv-tree-row.is-disabled.is-indeterminate .pv-tree-check { border-color: var(--pv-border); background: var(--pv-bg-disabled); }
.pv-tree-row.is-disabled.is-checked .pv-tree-check::after,
.pv-tree-row.is-disabled.is-indeterminate .pv-tree-check::after { border-color: #ccc; }
.pv-tree-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* StatusBadge：语义色 pill + 圆点 */
.pv-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  color: var(--pv-tone-neutral);
  background: var(--pv-tone-neutral-bg);
}
.pv-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.pv-status-info { color: var(--pv-tone-info); background: var(--pv-tone-info-bg); }
.pv-status-success { color: var(--pv-tone-success); background: var(--pv-tone-success-bg); }
.pv-status-warning { color: var(--pv-tone-warning); background: var(--pv-tone-warning-bg); }
.pv-status-danger { color: var(--pv-tone-danger); background: var(--pv-tone-danger-bg); }
.pv-status-neutral { color: var(--pv-tone-neutral); background: var(--pv-tone-neutral-bg); }
.pv-status-teal { color: var(--pv-tone-teal); background: var(--pv-tone-teal-bg); }

/* DocLink：单据编号 / 账号，下划线单击开二级窗 */
.pv-doc-link {
  display: inline;
  color: var(--pv-primary);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  vertical-align: middle;
  user-select: none;
}
.pv-doc-link:hover { color: var(--pv-primary-hover); }
.pv-doc-link:active { color: var(--pv-primary-active); }
.pv-doc-link.is-empty {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

/* 编辑页侧栏裁切层：滑入/滑出不撑宽文档，避免出现横向滚动条 */
.pv-edit-side-layer {
  position: absolute;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  pointer-events: none;
}

/* Approve toolbar + side drawer */
.pv-approve-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-right: 4px;
}
/* 审批抽屉：贴视口高度，不随页面文档变高（窗口滚动条出现）被拉长 */
.pv-approve-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  /* 略宽于原 380：五个 small 操作钮（撤回提交/通过/驳回/撤回审批/取消）可同行 */
  width: 420px;
  max-width: 100%;
  background: #fff;
  border-left: 1px solid #e8eaec;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
  z-index: 90;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transform: translate3d(100%, 0, 0);
  pointer-events: none;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.pv-approve-drawer.is-open {
  transform: none;
  pointer-events: auto;
}
.pv-approve-drawer-hd {
  flex-shrink: 0;
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8eaec;
  font-size: 14px;
  font-weight: 600;
  color: #17233d;
}
.pv-approve-drawer-close {
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 2px 6px;
}
.pv-approve-drawer-close:hover {
  color: #515a6e;
}
.pv-approve-drawer-bd {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.pv-approve-time-row {
  font-size: 13px;
  color: #515a6e;
  line-height: 1.6;
  padding: 2px 0 4px;
}
.pv-approve-time-label {
  color: #80848f;
  margin-right: 4px;
}
.pv-approve-badge-host,
.pv-approve-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pv-approve-meta {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #80848f;
  font-size: 12px;
}
.pv-approve-btn-host {
  display: inline-flex;
}
.pv-approve-panel {
  box-sizing: border-box;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.pv-approve-alert {
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.45;
}
.pv-approve-alert.is-warn {
  background: #fff9e6;
  color: #ad6800;
  border: 1px solid #ffe58f;
}
.pv-approve-alert.is-info {
  background: #f0f5ff;
  color: #2d8cf0;
  border: 1px solid #d6e4ff;
}
.pv-approve-remark {
  width: 100%;
  box-sizing: border-box;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid #dcdee2;
  border-radius: 4px;
  resize: vertical;
  font: inherit;
  font-size: 13px;
}
.pv-approve-remark:disabled {
  background: #f7f7f7;
  color: #c5c8ce;
}
.pv-approve-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
/* 操作钮尽量同行；极窄时仍允许换行兜底 */
.pv-approve-actions .pv-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.pv-approve-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e8eaec;
}
.pv-approve-tab {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 13px;
  color: #80848f;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.pv-approve-tab.is-active {
  color: var(--pv-primary);
  border-bottom-color: var(--pv-primary);
  font-weight: 600;
}
.pv-approve-pane {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.pv-approve-empty {
  padding: 24px 8px;
  text-align: center;
  color: #80848f;
  font-size: 13px;
}
.pv-approve-log-list,
.pv-approve-node-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pv-approve-log-list li,
.pv-approve-node-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #515a6e;
}
.pv-approve-log-act {
  font-weight: 600;
  color: #17233d;
  margin-right: 8px;
}
.pv-approve-log-who {
  margin-right: 8px;
}
.pv-approve-log-time {
  color: #80848f;
  font-size: 12px;
}
.pv-approve-log-cmt {
  margin-top: 4px;
  color: #80848f;
}
.pv-approve-log-more {
  display: block;
  width: 100%;
  margin: 4px 0 8px;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: var(--pv-primary);
  font-size: 13px;
  cursor: pointer;
}
.pv-approve-log-more:hover {
  text-decoration: underline;
}
.pv-approve-log-more:disabled {
  color: #80848f;
  cursor: default;
  text-decoration: none;
}
.pv-approve-node-list {
  list-style: decimal;
  padding-left: 22px;
}
.pv-approve-node-list li.is-current {
  color: var(--pv-primary);
  font-weight: 600;
}
.pv-approve-node-list li.is-passed {
  color: var(--pv-success, #19be6b);
}
