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

html {
  color-scheme: light only;
  font-size: 14px;
}

body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-hover);
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
}

th {
  font-size: 13px;
  font-weight: 600;
  height: 40px;
  background: var(--color-primary-bg);
  color: var(--color-text);
  white-space: nowrap;
}

td {
  height: 36px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-divider);
}

tr:nth-child(even) td {
  background: var(--color-surface-alt);
}

tr:hover td {
  background: rgba(232, 243, 236, 0.5);
}

.table-wrap {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'ss06' 1;
}

.center {
  text-align: center;
}

.text-secondary { color: var(--color-text-secondary); }
.text-tertiary  { color: var(--color-text-tertiary); }
.text-danger    { color: var(--color-danger); }
.text-success   { color: var(--color-success); }
.text-debit     { color: var(--color-debit); }
.text-credit    { color: var(--color-credit); }

.empty-dash {
  color: var(--color-text-tertiary);
}

h1 { font-size: 20px; line-height: 28px; font-weight: 600; }
h2 { font-size: 18px; line-height: 26px; font-weight: 600; }
h3 { font-size: 15px; line-height: 22px; font-weight: 600; }

input, select, textarea {
  font-family: var(--font-family);
  font-size: 14px;
}
