:root {
  --primary:         #165DFF;
  --primary-hover:   #4080FF;
  --primary-light:   #E8F3FF;
  --primary-border:  #BEDAFF;
  --text-primary:    #1D2129;
  --text-secondary:  #4E5969;
  --text-tertiary:   #86909C;
  --bg-page:         #F2F3F5;
  --bg-white:        #FFFFFF;
  --border-color:    #E5E6EB;
  --shadow-card:     0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 2px 8px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ── Element Plus global overrides ──────────────────────────────────────── */

/* Table header */
.el-table th.el-table__cell {
  background-color: #F7F8FA !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  border-bottom: 1px solid var(--border-color) !important;
}

/* Table row hover */
.el-table__row:hover > td.el-table__cell {
  background-color: var(--primary-light) !important;
}

/* Table selected row */
.el-table__body tr.current-row > td.el-table__cell {
  background-color: var(--primary-light) !important;
}

/* Table body font */
.el-table td.el-table__cell {
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

/* Card */
.el-card {
  --el-card-border-color: var(--border-color);
  border-radius: 4px;
  box-shadow: var(--shadow-card) !important;
}

/* Button sizes */
.el-button {
  font-size: 13px;
  font-weight: 500;
}

/* Primary button */
.el-button--primary {
  --el-button-bg-color: var(--primary);
  --el-button-border-color: var(--primary);
  --el-button-hover-bg-color: var(--primary-hover);
  --el-button-hover-border-color: var(--primary-hover);
  --el-button-active-bg-color: #0E4FD9;
  --el-button-active-border-color: #0E4FD9;
}

/* Primary outlined button */
.el-button--primary.is-plain {
  --el-button-bg-color: transparent;
  --el-button-text-color: var(--primary);
  --el-button-border-color: var(--primary);
  --el-button-hover-bg-color: var(--primary-light);
  --el-button-hover-border-color: var(--primary);
  --el-button-hover-text-color: var(--primary);
}

/* Input */
.el-input__wrapper {
  font-size: 13px;
}

/* Tag */
.el-tag {
  font-size: 12px;
}

/* Empty description */
.el-empty__description p {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Tree node */
.el-tree-node__content {
  height: 32px;
  font-size: 13px;
}

.el-tree-node.is-current > .el-tree-node__content {
  background-color: var(--primary-light) !important;
  color: var(--primary) !important;
  font-weight: 600;
  border-left: 3px solid var(--primary);
}

.el-tree-node__content:hover {
  background-color: #F2F3F5 !important;
}

/* Radio button (outlined style) */
.el-radio-button__inner {
  font-size: 13px;
  font-weight: 500;
}

.el-radio-button:first-child .el-radio-button__inner {
  border-left: 1px solid var(--border-color);
}

.el-radio-button__original-radio:checked + .el-radio-button__inner {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: none !important;
}

/* Dialog */
.el-dialog__header {
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

/* Tabs (navigation) */
.el-tabs__item {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
}

.el-tabs__item.is-active {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

.el-tabs__active-bar {
  background-color: var(--primary) !important;
  height: 2px !important;
}

.el-tabs__item:hover {
  color: var(--primary) !important;
}
