/* yaki.soulwaves.org — RTL ledger */

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

html { font-size: 16px; }

body {
  font-family: 'Rubik', 'Assistant', Tahoma, Arial, sans-serif;
  background: #f4f6fa;
  color: #1a1a1a;
  line-height: 1.5;
  direction: rtl;
}

/* keyboard skip link */
.skip-link {
  position: absolute;
  top: -100%;
  right: 0;
  background: #1565c0;
  color: #fff;
  padding: 10px 20px;
  z-index: 100000;
  font-size: 16px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

header {
  background: #1565c0;
  color: #fff;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

header h1 { font-size: 26px; margin-bottom: 4px; font-weight: 700; }
header .subtitle { font-size: 15px; opacity: 0.92; }

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.empty-state {
  background: #fff;
  border: 2px dashed #b0bec5;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  color: #455a64;
  font-size: 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: #546e7a;
  margin-bottom: 12px;
  padding: 0 4px;
}
.meta time { font-variant-numeric: tabular-nums; }

/* table */
table.ledger {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  font-size: 15px;
}

table.ledger thead th {
  background: #1565c0;
  color: #fff;
  text-align: right;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

table.ledger tbody td,
table.ledger tfoot th,
table.ledger tfoot td {
  padding: 11px 14px;
  border-top: 1px solid #eceff1;
  vertical-align: middle;
}

table.ledger tbody tr:nth-child(even) { background: #f7f9fc; }
table.ledger tbody tr:hover           { background: #e3f2fd; }

td.date   { font-variant-numeric: tabular-nums; white-space: nowrap; color: #37474f; }
td.amount { font-variant-numeric: tabular-nums; text-align: left; direction: ltr; font-weight: 600; }
td.actions { white-space: nowrap; text-align: left; }

table.ledger tfoot {
  background: #eceff1;
  font-weight: 700;
}
table.ledger tfoot th { text-align: right; padding-right: 14px; }
.total { font-size: 17px; color: #0d47a1; }

/* buttons */
.btn {
  display: inline-block;
  padding: 6px 14px;
  margin-inline-start: 4px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-show { background: #1565c0; color: #fff; }
.btn-show:hover, .btn-show:focus-visible { background: #0d47a1; }
.btn-dl   { background: #43a047; color: #fff; }
.btn-dl:hover, .btn-dl:focus-visible   { background: #2e7d32; }
.btn:focus-visible {
  outline: 3px solid #ffab00;
  outline-offset: 2px;
}

.missing {
  display: inline-block;
  padding: 4px 10px;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
  border-radius: 6px;
  font-size: 13px;
}

footer {
  text-align: center;
  color: #607d8b;
  font-size: 13px;
  padding: 18px;
}
footer a { color: #1565c0; }

/* mobile */
@media (max-width: 720px) {
  header h1 { font-size: 20px; }
  main { padding: 16px 8px 40px; }
  table.ledger { font-size: 13px; }
  table.ledger thead th,
  table.ledger tbody td,
  table.ledger tfoot th,
  table.ledger tfoot td { padding: 8px 8px; }
  .btn { padding: 5px 10px; font-size: 13px; }
}
