/* Compact merchant console. Keep native routes, permissions and business controls. */
html[data-admin-theme="pdd"] {
  --theme-primary: #407cff;
  --theme-primary-hover: #2866ed;
  --theme-on-primary: #fff;
  --theme-accent: #edf3ff;
  --theme-on-accent: #407cff;
  --theme-bg: #f2f3f5;
  --theme-surface: #fff;
  --theme-soft: #f1f5ff;
  --theme-ink: #333;
  --theme-muted: #666;
  --theme-line: #e8e8e8;
  --theme-nav: #fff;
  --theme-nav-secondary: #fff;
  --theme-nav-text: #555;
  --theme-nav-strong: #333;
  --theme-nav-hover: #f5f6f8;
  --theme-nav-line: #eee;
  --theme-hero: #fff;
  --theme-hero-ink: #333;
  --theme-hero-muted: #666;
  --theme-radius: 2px;
  --theme-control-radius: 3px;
  --theme-shadow: none;
  --theme-art-filter: none;
  --theme-pattern-opacity: 0;
  --admin-rail: 80px;
  --admin-nav: 132px;
  --admin-header-height: 56px;
  --admin-page-heading-height: 48px;
  --ui-primary: var(--theme-primary);
  --ui-primary-hover: var(--theme-primary-hover);
  color-scheme: light;
}
html[data-admin-theme="pdd"] body.admin-ui {
  color: #333;
  background: #f2f3f5;
  font: 13px/1.5 Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
html[data-admin-theme="pdd"] body.admin-ui .header-c {
  height: var(--admin-header-height);
  background: #fff;
  border-bottom: 1px solid #eee;
}
html[data-admin-theme="pdd"] body.admin-ui .container-23234 .logo-c {
  padding: 0 12px;
  color: #333 !important;
  font-size: 16px;
  background: #fff !important;
  border-right: 1px solid #eee;
}
html[data-admin-theme="pdd"] body.admin-ui .container-23234 .logo-c .logo {
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 2px;
  filter: none;
}
html[data-admin-theme="pdd"] body.admin-ui .container-23234 .right :is(.export-btn-c, .stats-btn-c) {
  color: #666 !important;
}
html[data-admin-theme="pdd"] body.admin-ui .admin-search-trigger {
  width: 220px;
  height: 28px;
  margin-left: 16px;
  color: #777;
  background: #f8f8f8;
  border-color: #ddd;
  border-radius: 3px;
}
html[data-admin-theme="pdd"] body.admin-ui .admin-theme-trigger {
  min-height: 28px;
  padding: 3px 8px;
  border-color: #ddd;
}
html[data-admin-theme="pdd"] body.admin-ui :is(.first-bar, .second-bar) {
  background: #fff !important;
  border-color: #eee;
}
html[data-admin-theme="pdd"] body.admin-ui .first-bar { padding: 10px 0; }
html[data-admin-theme="pdd"] body.admin-ui .first-bar .list .item {
  width: calc(100% - 8px);
  height: auto !important;
  min-height: 40px;
  margin: 2px 4px;
  padding: 8px;
  gap: 6px;
  border-radius: 2px;
}
html[data-admin-theme="pdd"] body.admin-ui .first-bar .list .item .iconfont { font-size: 15px !important; }
html[data-admin-theme="pdd"] body.admin-ui .first-bar .list .item .title {
  min-width: 0;
  font-size: 12px !important;
  line-height: 20px;
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-admin-theme="pdd"] body.admin-ui .first-bar .list .item.activated {
  color: #407cff !important;
  font-weight: 500;
  background: #edf3ff !important;
}
html[data-admin-theme="pdd"] body.admin-ui .second-bar { padding: 10px 0; }
html[data-admin-theme="pdd"] body.admin-ui .admin-nav-heading {
  margin: 4px 12px 12px;
  color: #333;
  font-size: 13px;
  font-weight: 500;
}
html[data-admin-theme="pdd"] body.admin-ui .second-bar :is(.ant-menu-item, .ant-menu-submenu-title, .pm-admin-menu-link) {
  width: calc(100% - 8px) !important;
  min-height: 36px;
  height: auto !important;
  margin: 2px 4px !important;
  padding: 7px 8px !important;
  font-size: 12px;
  line-height: 22px !important;
  white-space: normal;
  overflow-wrap: anywhere;
  border-radius: 2px;
}
html[data-admin-theme="pdd"] body.admin-ui .second-bar .ant-menu-submenu .ant-menu-item {
  padding-left: 16px !important;
}
html[data-admin-theme="pdd"] body.admin-ui .second-bar .ant-menu-item > a {
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-admin-theme="pdd"] body.admin-ui .second-bar :is(.ant-menu-item-selected, .pm-admin-menu-link.active) {
  color: #407cff !important;
  background: #edf3ff !important;
  font-weight: 500;
}
html[data-admin-theme="pdd"] body.admin-ui[data-admin-extension] .second-bar .ant-menu-item-selected:not([data-admin-category]) {
  color: #555 !important;
  background: transparent !important;
  font-weight: 400;
}
html[data-admin-theme="pdd"] body.admin-ui .admin-category-tools button {
  height: auto;
  min-height: 36px;
  padding: 7px 8px;
  font-size: 12px;
  line-height: 22px;
  white-space: normal;
}
html[data-admin-theme="pdd"] body.admin-ui .main-c > .page-header {
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
html[data-admin-theme="pdd"] body.admin-ui .main-content {
  margin: 16px !important;
  padding: 16px !important;
  border: 0;
  border-radius: 2px;
  box-shadow: none !important;
}
html[data-admin-theme="pdd"] body.admin-ui[data-admin-extension] .main-content,
html[data-admin-theme="pdd"] body.admin-home .main-content {
  padding: 0 !important;
  background: transparent !important;
}
html[data-admin-theme="pdd"] body.admin-ui :is(.content-head, .sort-keys, .filter-bar, .ci-toolbar-group, .pm-admin-filters) {
  gap: 8px 12px;
}
html[data-admin-theme="pdd"] body.admin-ui .content-head { margin-bottom: 16px !important; }
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-btn, .pm-admin-btn, .ci-button, .sp-button) {
  height: 28px;
  min-height: 28px;
  padding: 0 12px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 26px;
  background: #fff;
  border: 1px solid #adadad;
  border-radius: 3px !important;
  box-shadow: none;
  transition: color .15s, border-color .15s, background-color .15s;
}
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-btn, .pm-admin-btn, .ci-button, .sp-button):hover:not(:disabled):not([aria-disabled="true"]) {
  color: #407cff;
  background: #fff;
  border-color: #407cff;
}
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-btn-primary, .ci-button.primary, .sp-button.primary, .pm-admin-btn.primary) {
  color: #fff !important;
  background: #407cff !important;
  border-color: #407cff !important;
}
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-btn-primary, .ci-button.primary, .sp-button.primary, .pm-admin-btn.primary):hover:not(:disabled):not([aria-disabled="true"]) {
  color: #fff !important;
  background: #2866ed !important;
  border-color: #2866ed !important;
}
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-btn-danger, .ci-button.danger, .sp-button.danger, .pm-admin-btn.danger) {
  color: #e04444 !important;
  background: #fff !important;
  border-color: #e04444 !important;
}
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-btn-danger, .ci-button.danger, .sp-button.danger, .pm-admin-btn.danger):hover:not(:disabled):not([aria-disabled="true"]) {
  color: #fff !important;
  background: #e04444 !important;
  border-color: #e04444 !important;
}
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-btn, .pm-admin-btn, .ci-button, .sp-button):is(:disabled, [aria-disabled="true"]) {
  color: #999 !important;
  background: #f5f5f5 !important;
  border-color: #ddd !important;
  cursor: not-allowed;
  opacity: 1;
}
html[data-admin-theme="pdd"] body.admin-ui .ant-btn-sm { height: 24px; min-height: 24px; padding: 0 8px; font-size: 12px; line-height: 22px; }
html[data-admin-theme="pdd"] body.admin-ui .ant-btn-lg { height: 36px; min-height: 36px; line-height: 34px; }
html[data-admin-theme="pdd"] body.admin-ui .ant-btn-link {
  padding: 0 4px;
  color: #407cff;
  background: transparent;
  border-color: transparent;
}
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-input, .ant-select-selection, .ant-input-number, .ci-input, .ci-select, .sp-input) {
  min-height: 28px;
  height: 28px;
  color: #333;
  font-size: 13px;
  background: #fff;
  border-color: #d9d9d9 !important;
  border-radius: 3px !important;
  box-shadow: none;
}
html[data-admin-theme="pdd"] body.admin-ui :is(textarea.ant-input, .ant-select-selection--multiple) { height: auto; }
html[data-admin-theme="pdd"] body.admin-ui textarea.ant-input { min-height: 64px; }
html[data-admin-theme="pdd"] body.admin-ui .ant-select-selection--single .ant-select-selection__rendered { line-height: 26px; }
html[data-admin-theme="pdd"] body.admin-ui .ant-input-number-input { height: 26px; }
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-input, .ci-input, .sp-input):focus,
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-select-focused .ant-select-selection, .ant-input-number-focused) {
  border-color: #407cff !important;
  box-shadow: 0 0 0 2px rgba(64, 124, 255, .12) !important;
}
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-input-disabled, .ant-select-disabled .ant-select-selection, .ant-input-number-disabled) {
  color: #999;
  background: #f5f5f5;
  cursor: not-allowed;
}
html[data-admin-theme="pdd"] body.admin-ui .has-error :is(.ant-input, .ant-select-selection, .ant-input-number) { border-color: #e04444 !important; }
html[data-admin-theme="pdd"] body.admin-ui :focus-visible { outline: 2px solid #407cff; outline-offset: 2px; }
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-table-wrapper, .ci-panel, .sp-panel, .pm-admin-card, .ant-card) {
  border-color: #eee;
  border-radius: 2px;
  box-shadow: none;
}
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-table-thead > tr > th, .ci-table th) {
  padding: 10px 12px;
  color: rgba(0, 0, 0, .6) !important;
  font-size: 12px;
  font-weight: 400 !important;
  background: #f7f7f8 !important;
  border-color: #eee;
}
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-table-tbody > tr > td, .ci-table td) {
  padding: 12px;
  color: #333;
  font-size: 13px;
  border-color: #eee !important;
}
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-table-tbody > tr:hover > td, .ci-table tr:hover td) { background: #fafbfc !important; }
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-table-tbody > tr.ant-table-row-selected > td, .ant-table-tbody > tr.ant-table-row-selected:hover > td) { background: #f1f5ff !important; }
html[data-admin-theme="pdd"] body.admin-ui :is(.main-content a, .ant-table a, .ci-link, .sp-link) { color: #407cff; }
html[data-admin-theme="pdd"] body.admin-ui :is(.main-content a, .ant-table a, .ci-link, .sp-link):hover { color: #2866ed; }
html[data-admin-theme="pdd"] body.admin-ui :is(.ci-link.danger, .sp-link.danger) { color: #e04444; }
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-pagination-item, .ant-pagination-prev .ant-pagination-item-link, .ant-pagination-next .ant-pagination-item-link) {
  border-color: #ddd;
  border-radius: 3px;
}
html[data-admin-theme="pdd"] body.admin-ui .ant-pagination-item-active { background: #fff; border-color: #407cff; }
html[data-admin-theme="pdd"] body.admin-ui .ant-tabs-bar { border-bottom-color: #eee; }
html[data-admin-theme="pdd"] body.admin-ui .ant-tabs-nav .ant-tabs-tab {
  margin-right: 28px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 400;
}
html[data-admin-theme="pdd"] body.admin-ui .ant-tabs-nav .ant-tabs-tab-active { color: #407cff; font-weight: 500; }
html[data-admin-theme="pdd"] body.admin-ui .ant-tabs-ink-bar { height: 2px; background: #407cff; }
html[data-admin-theme="pdd"] body.admin-ui .ci-tabs { gap: 24px; padding: 0; background: transparent; border-bottom: 1px solid #eee; border-radius: 0; }
html[data-admin-theme="pdd"] body.admin-ui .ci-tab { padding: 10px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
html[data-admin-theme="pdd"] body.admin-ui .ci-tab.active { color: #407cff; background: transparent; border-bottom-color: #407cff; box-shadow: none; }
html[data-admin-theme="pdd"] body.admin-ui :is(.ant-modal-content, .ci-modal, .pm-admin-modal) {
  border-radius: 3px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .14) !important;
}
html[data-admin-theme="pdd"] body.admin-ui .ant-modal-header { padding: 16px 20px; border-radius: 3px 3px 0 0; border-color: #eee; }
html[data-admin-theme="pdd"] body.admin-ui .ant-modal-title { color: #333; font-size: 16px; font-weight: 500; }
html[data-admin-theme="pdd"] body.admin-ui .ant-modal-body { padding: 20px; }
html[data-admin-theme="pdd"] body.admin-ui .ant-modal-footer { padding: 12px 20px; border-color: #eee; }
html[data-admin-theme="pdd"] body.admin-ui :is(.admin-overview, .admin-shortcut-section, .admin-finance, .admin-shortcut, .admin-metric, .admin-tech-hero) {
  background: #fff;
  border-radius: 2px;
  box-shadow: none;
}
html[data-admin-theme="pdd"] body.admin-ui .admin-tech-hero { border: 1px solid #eee; }
html[data-admin-theme="pdd"] body.admin-ui .admin-tech-hero::before,
html[data-admin-theme="pdd"] body.admin-ui .admin-tech-hero::after,
html[data-admin-theme="pdd"] body.admin-ui .admin-tech-orbit,
html[data-admin-theme="pdd"] body.admin-ui .admin-metric:first-child::after { display: none; }
html[data-admin-theme="pdd"] body.admin-ui .admin-merchant-intro .admin-workbench-title { font-size: 18px; font-weight: 500; }
html[data-admin-theme="pdd"] body.admin-ui :is(.admin-section-heading h2, .admin-data-heading) { font-size: 14px; font-weight: 500; }
html[data-admin-theme="pdd"] body.admin-ui .admin-metric:first-child { background: #fff; }
html[data-admin-theme="pdd"] body.admin-ui .admin-finance-profit { background: #f6f8fc; }
html[data-admin-theme="pdd"] body.admin-ui .admin-shortcut:hover { background: #fafbfc; border-color: #ccd9f9; transform: none; box-shadow: none; }
html[data-admin-theme="pdd"] body.admin-ui .admin-overview-periods button { min-height: 28px; padding: 3px 14px; border-radius: 3px; }
html[data-admin-theme="pdd"] body.admin-ui .admin-overview-periods button[aria-pressed="true"] { color: #407cff; background: #fff; border-color: #407cff; }
html[data-admin-theme="pdd"] body.admin-ui .admin-theme-dialog button:focus-visible { outline-color: #407cff; }
html[data-admin-theme="pdd"] body.admin-ui .admin-theme-option[aria-pressed="true"] { border-color: #407cff; box-shadow: inset 0 0 0 1px #407cff; }
html[data-admin-theme="pdd"] body.admin-ui .admin-theme-option[aria-pressed="true"] .admin-theme-selected { color: #407cff; }
html[data-admin-theme="pdd"] body.admin-ui .admin-theme-done { color: #fff; background: #407cff; border-color: #407cff; }
html[data-admin-theme="pdd"] body.admin-ui .admin-theme-done:hover { background: #2866ed; border-color: #2866ed; }
/* Show the blue theme accurately when another stored theme is being previewed. */
html[data-admin-theme] body.admin-ui .admin-theme-option[data-admin-theme-option="pdd"] {
  --sample-bg: #f2f3f5;
  --sample-nav: #fff;
  --sample-nav-text: #555;
  --sample-primary: #407cff;
  --sample-ink: #333;
  --sample-paper: #fff;
  --sample-line: #eee;
}
@media (max-width: 1000px) {
  html[data-admin-theme="pdd"] body.admin-ui .admin-search-trigger { width: 176px; }
}
@media (max-width: 680px) {
  html[data-admin-theme="pdd"] { --admin-header-height: 52px; --admin-page-heading-height: 44px; }
  html[data-admin-theme="pdd"] body.admin-ui .container-23234 .logo-c { width: auto; min-width: 0; padding: 0 8px; border: 0; font-size: 13px; }
  html[data-admin-theme="pdd"] body.admin-ui .container-23234 .logo-c .logo { width: 24px; height: 24px; margin-right: 6px; }
  html[data-admin-theme="pdd"] body.admin-ui .admin-search-trigger { width: 28px; min-width: 28px; margin-left: auto; padding: 5px; }
  html[data-admin-theme="pdd"] body.admin-ui .admin-theme-trigger { min-width: 36px; margin-left: 4px; padding: 3px 6px; }
  html[data-admin-theme="pdd"] body.admin-ui .main-content { margin: 12px 10px !important; padding: 14px !important; }
  html[data-admin-theme="pdd"] body.admin-ui[data-admin-extension] .main-content,
  html[data-admin-theme="pdd"] body.admin-home .main-content { padding: 0 !important; }
  html[data-admin-theme="pdd"] body.admin-ui .main-c > .page-header { padding: 0 10px; }
  html[data-admin-theme="pdd"] body.admin-ui .ci-tabs { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-admin-theme="pdd"] body.admin-ui :is(.ant-btn, .pm-admin-btn, .ci-button, .sp-button) { transition: none; }
}
