.dash-main {
  max-width: 1000px;
}

.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.dash-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dash-button-ghost {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.dash-button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.dash-tab {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.dash-tab:hover {
  color: var(--ink);
}

.dash-tab-active {
  background: var(--accent);
  color: #ffffff;
}

.dash-flash {
  margin: 20px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.dash-flash-notice {
  background: #e6efe9;
  color: #123b31;
}

.dash-flash-alert {
  background: #f6e6e2;
  color: #7a2e1d;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.dash-stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.dash-stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-stat-value {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dash-stat-text {
  font-size: 15px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.dash-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dash-card-title {
  font-size: 15px;
  font-weight: 600;
}

.dash-card-amount {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dash-card-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.dash-va-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.dash-va-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(15, 92, 70, 0.06);
}

.dash-va-bank {
  color: var(--muted);
}

.dash-va-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dash-card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.dash-card-link:hover {
  text-decoration: underline;
}

.dash-section {
  margin-top: 36px;
}

.dash-section-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-empty {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dash-table th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.dash-table-amount {
  text-align: right;
}

.dash-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-chip-active,
.dash-chip-success,
.dash-chip-processed,
.dash-chip-approved,
.dash-chip-reimbursed {
  background: rgba(15, 92, 70, 0.12);
  color: #0f5c46;
}

.dash-chip-pending,
.dash-chip-frozen,
.dash-chip-ignored,
.dash-chip-draft,
.dash-chip-submitted,
.dash-chip-open {
  background: rgba(92, 98, 94, 0.12);
  color: #5c625e;
}

.dash-chip-failed,
.dash-chip-cancelled,
.dash-chip-rejected,
.dash-chip-void {
  background: #f6e6e2;
  color: #7a2e1d;
}

.dash-chip-posted {
  background: rgba(15, 92, 70, 0.12);
  color: #0f5c46;
}

.dash-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.dash-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.dash-field input,
.dash-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}

.dash-field input:focus,
.dash-field select:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(15, 92, 70, 0.2);
}

.dash-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dash-submit {
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.dash-pagination {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.dash-page-indicator {
  font-size: 12px;
}

.dash-inline-form {
  margin: 0;
}

.dash-inline-form .dash-button-ghost {
  cursor: pointer;
  font-family: inherit;
}

.dash-panel {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.dash-panel .dash-filters {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.dash-button-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.dash-button-active:hover {
  color: #ffffff;
}

.dash-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.dash-stat-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.dash-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 0;
}

.dash-detail dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-detail dd {
  margin: 4px 0 0;
  font-size: 14px;
}

.dash-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.dash-muted {
  font-size: 12px;
  color: var(--muted);
}

.dash-inline-forms {
  display: grid;
  gap: 16px;
}

.dash-field-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.dash-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

.dash-link:hover {
  text-decoration: underline;
}

.dash-progress {
  width: 140px;
  height: 8px;
  border-radius: 999px;
  background: rgba(92, 98, 94, 0.16);
  overflow: hidden;
}

.dash-progress-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #0f5c46;
}

.dash-progress-warning {
  background: #b7791f;
}

.dash-progress-exceeded {
  background: #b42318;
}

.dash-progress-unset {
  background: rgba(92, 98, 94, 0.4);
}
