:root {
  --mes-page-bg: linear-gradient(180deg, #f6f9fc 0%, #edf3f8 100%);
  --mes-surface: rgba(255, 255, 255, 0.96);
  --mes-surface-soft: linear-gradient(135deg, #f9fbfd 0%, #f1f6fb 100%);
  --mes-border: #d6e1ec;
  --mes-border-strong: #c3d3e4;
  --mes-text: #243447;
  --mes-text-soft: #5f7186;
  --mes-primary: #1f78d1;
  --mes-primary-soft: #eef6ff;
  --mes-success-soft: #edf8f1;
  --mes-warning-soft: #fff5e9;
  --mes-shadow: 0 10px 24px rgba(31, 57, 90, 0.08);
  --mes-radius-lg: 16px;
  --mes-radius-md: 12px;
}

.mes-admin-page {
  min-height: calc(100vh - 84px);
  padding: 14px !important;
  background:
    radial-gradient(circle at top right, rgba(31, 120, 209, 0.08), transparent 28%),
    radial-gradient(circle at top left, rgba(38, 166, 154, 0.06), transparent 24%),
    var(--mes-page-bg);

  .el-card {
    border: 1px solid var(--mes-border);
    border-radius: var(--mes-radius-lg);
    background: var(--mes-surface);
    box-shadow: var(--mes-shadow);
    overflow: hidden;
  }

  .el-card__body {
    padding: 16px !important;
    margin: 0 !important;
  }

  .topCard,
  > .el-card {
    margin: 0 !important;
  }

  .topDiv,
  .toolbarRow {
    //display: flex;
    //flex-wrap: wrap;
    //align-items: center;
    //gap: 10px 12px;
    //margin-bottom: 14px;
    //padding: 14px 16px;
    //border: 1px solid var(--mes-border);
    //border-radius: var(--mes-radius-md);
    //background: var(--mes-surface-soft);
  }

  .promptText,
  .topDiv > span,
  .toolbarRow > span {
    color: var(--mes-text);
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .el-input__inner,
  .el-textarea__inner {
    border-color: var(--mes-border);
    border-radius: 10px;
    color: var(--mes-text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  }

  .el-input__inner:hover,
  .el-textarea__inner:hover {
    border-color: var(--mes-border-strong);
  }

  .el-input__inner:focus,
  .el-textarea__inner:focus {
    border-color: var(--mes-primary) !important;
    box-shadow: 0 0 0 3px rgba(31, 120, 209, 0.12);
  }

  .el-select,
  .el-date-editor {
    max-width: 100%;
  }

  .el-button {
    min-height: 34px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .el-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(31, 57, 90, 0.08);
  }

  .el-button--primary.is-plain {
    color: var(--mes-primary);
    border-color: rgba(31, 120, 209, 0.22);
    background: var(--mes-primary-soft);
  }

  .el-button--info.is-plain,
  .el-button--info {
    border-color: rgba(86, 119, 153, 0.2);
    background: #f3f7fb;
    color: #4a627d;
  }

  .el-button--warning {
    border-color: rgba(236, 160, 71, 0.22);
    background: var(--mes-warning-soft);
    color: #b66f10;
  }

  .el-button--distribution {
    border-color: rgba(236, 122, 57, 0.26);
    background: #fff2e8;
    color: #d16a21;
  }

  .el-button--success,
  .el-button--success.is-plain {
    border-color: rgba(46, 174, 96, 0.22);
    background: var(--mes-success-soft);
    color: #1f8a4c;
  }

  .el-table {
    margin-top: 6px;
    border: 1px solid var(--mes-border) !important;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
  }

  .el-table::before,
  .el-table--border::after,
  .el-table--group::after {
    background-color: var(--mes-border) !important;
  }

  .el-table th {
    background: linear-gradient(180deg, #f7fafc 0%, #edf3f8 100%) !important;
    color: var(--mes-text) !important;
    font-weight: 700;
  }

  .el-table td {
    color: #31465c;
  }

  .el-table--striped .el-table__body tr.el-table__row--striped td {
    background-color: #f8fbfd;
  }

  .el-table__body tr:hover > td {
    background-color: #f0f7ff !important;
  }

  .el-table__body tr.current-row > td {
    background: linear-gradient(90deg, #2f8be5 0%, #57a5ec 100%) !important;
    color: #fff !important;
  }

  .block,
  .el-pagination {
    padding-top: 10px;
  }

  .el-pagination button,
  .el-pagination .el-pager li {
    border-radius: 8px;
  }

  .chartCard {
    border: 1px solid var(--mes-border);
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 252, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .el-tabs__item {
    height: 38px;
    line-height: 38px;
    font-weight: 600;
    color: var(--mes-text-soft);
  }

  .el-tabs__item.is-active {
    color: var(--mes-primary);
  }

  .el-dialog {
    border-radius: 16px;
    overflow: hidden;
  }

  .el-dialog__header {
    background: linear-gradient(180deg, #f8fbfd 0%, #eef4f9 100%);
    border-bottom: 1px solid var(--mes-border);
  }

  .el-dialog__title {
    color: var(--mes-text);
    font-weight: 700;
  }
}
