/* Custom hledger CSS to match plain theme */
body {
  font-family: Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.5;
  background-color: white;
  color: #333;
}

h1,
h2,
h3 {
  color: #333;
  margin-top: 0;
}

h2 {
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  font-size: 14px;
}

th,
td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background-color: #f5f5f5;
  font-weight: bold;
  border-bottom: 2px solid #ddd;
}

td.account {
  padding-left: 0;
}

td:nth-child(1) {
  white-space: nowrap;
}

tr:nth-child(odd) td {
  background-color: #fafafa;
}

.amount {
  text-align: right;
  font-family: monospace;
}

.coltotal {
  font-weight: bold;
}

/* Style for totals and net lines */
td[style*="border-top:double black"] {
  border-top: 2px solid #333 !important;
  font-weight: bold;
}

/* Navigation link back to index */
.nav-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
}

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

/* Responsive design */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  table {
    font-size: 12px;
  }

  th,
  td {
    padding: 6px 8px;
  }
}
