/* Палітра за темою Cybron (tytanovi.com). Значення оцінені зі скриншотів, підправте тут. */
.tr-report {
  --tr-accent: #f1dcb0;
  --tr-ink: #232320;
  --tr-muted: #5c5a55;
  --tr-panel: #f6f4ef;
  --tr-line: #e2dccd;
  margin: 1.5em 0;
  font-size: 15px;
  font-family: inherit;
}
.tr-report, .tr-report button, .tr-report input, .tr-report select { font-family: inherit; }

/* Фільтри: допоміжний блок, тому світла панель і компактні поля */
.tr-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: end;
  margin: 0 0 24px;
  padding: 18px 20px;
  background: var(--tr-panel);
  border: 1px solid var(--tr-line);
  border-radius: 12px;
}
.tr-filters label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--tr-muted); min-width: 0; }
.tr-filters label:first-of-type { grid-column: span 2; }
.tr-filters .tr-search { grid-column: span 1; }
.tr-filters input, .tr-filters select {
  box-sizing: border-box;
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tr-ink);
  font-size: 14px;
  line-height: 1.2;
  outline: none;
  min-width: 0;
}
.tr-filters select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23232320' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
.tr-filters select:hover { border-color: #cfc7b3; }
.tr-filters input::placeholder { color: #9a968c; }
.tr-filters input:focus, .tr-filters select:focus { border-color: var(--tr-accent); box-shadow: 0 0 0 3px rgba(241, 220, 176, .55); }

.tr-buttons {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 4px;
}
.tr-buttons button {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--tr-accent);
  color: var(--tr-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tr-buttons button:hover { background: var(--tr-ink); color: #fff; }
.tr-buttons a { font-size: 14px; color: var(--tr-ink); text-decoration: underline; text-underline-offset: 3px; }
.tr-buttons a:hover { color: var(--tr-muted); }

@media (max-width: 900px) {
  .tr-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tr-filters { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .tr-filters > * { grid-column: 1 / -1 !important; }
}

.tr-table-wrap { overflow-x: auto; }
.tr-table { width: 100%; border-collapse: collapse; }
.tr-table th, .tr-table td { padding: 9px 10px; border-bottom: 1px solid #e3e5e8; text-align: left; vertical-align: top; }
.tr-table thead th { background: #f0f1f3; font-weight: 600; white-space: nowrap; }
.tr-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-income.tr-num { color: #15803d; }
.tr-expense.tr-num { color: #b91c1c; }
.tr-orig { display: block; color: #666; font-size: 12px; }
.tr-date { white-space: nowrap; }
.tr-wait { color: #777; font-style: italic; }
.tr-empty { text-align: center; padding: 24px; color: #666; }
.tr-pagination { margin-top: 16px; }
.tr-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 8px; }
.tr-pagination li a, .tr-pagination li span { display: block; padding: 5px 11px; border: 1px solid #c9ccd1; border-radius: 4px; text-decoration: none; }
.tr-pagination li a:hover { background: var(--tr-accent); border-color: var(--tr-accent); color: var(--tr-ink); }
.tr-pagination li .current { background: var(--tr-ink); border-color: var(--tr-ink); color: #fff; }
.tr-total { color: #666; font-size: 13px; margin: 0; }

/* Дашборд */
.tr-dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 24px; }
.tr-block { padding: 16px; border: 1px solid #e3e5e8; border-radius: 8px; background: #fff; }
.tr-block h3 { margin: 0 0 12px; font-size: 16px; }
.tr-block-months, .tr-block-dist, .tr-block-activity { grid-column: 1 / -1; }
.tr-pair { display: flex; gap: 12px; flex-wrap: wrap; }
.tr-stat { flex: 1 1 120px; display: flex; flex-direction: column; gap: 2px; }
.tr-stat span { font-size: 13px; color: #555; }
.tr-stat strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.tr-stat small { color: #666; font-size: 12px; }
.tr-stat.tr-income strong { color: #15803d; }
.tr-stat.tr-expense strong { color: #b91c1c; }
.tr-chart { position: relative; height: 240px; margin-top: 14px; }
.tr-table-compact th, .tr-table-compact td { padding: 6px 10px; }
.tr-period { margin: -6px 0 10px; color: #666; font-size: 13px; }
.tr-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
