﻿/* tokens loaded separately */

/* ============================================================
 * 鍏ㄥ眬鍩虹锛氶噸缃€佸钩婊戞粴鍔ㄣ€乼oast
 * ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* ---------- Toast ---------- */

.toast-host {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  min-width: 220px;
  max-width: min(92vw, 360px);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  box-shadow: var(--shadow-md);
}

.toast-error {
  background: #3a1612;
  color: #ffd7cc;
}

.toast-ok {
  background: #12312e;
  color: #d7f3ee;
}

@media (max-width: 768px) {
  .toast-host {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
 * 浼氬憳鍚庡彴鍒楄〃鍒嗛〉锛堝榻愬晢鍝佸垪琛?/ front/table-ui.mdc锛?
 * Element Plus 鎺у埗鍙板垪琛ㄥ鐢?.pager + .pager-sizes-popper
 * ============================================================ */

.pager {
  margin-top: 10px;
  padding: 0 4px;
  display: flex;
  justify-content: flex-end;

  .el-pagination__total,
  .el-pagination__sizes,
  .el-pager li,
  .btn-prev,
  .btn-next {
    font-size: 12px;
    font-weight: 400;
  }

  .el-pagination__sizes {
    .el-select {
      width: 96px;
    }

    .el-select__wrapper {
      min-height: 24px;
      height: 24px;
      padding: 0 8px;
      font-size: 12px;
    }

    .el-select__selected-item,
    .el-select__placeholder,
    .el-select__caret {
      font-size: 12px;
    }
  }
}

.pager-sizes-popper {
  .el-select-dropdown__item {
    font-size: 12px;
    height: 28px;
    line-height: 28px;
    padding: 0 12px;
  }
}

