.page-bills {
  background: linear-gradient(180deg, #eef5ff 0%, var(--app-bg) 32%);
}

.bills-main {
  padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
}

.bills-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bills-tabs::-webkit-scrollbar {
  display: none;
}

.bills-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 6px rgba(26, 45, 77, 0.06);
  white-space: nowrap;
}

.bills-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #0052d9, #003a9e);
  box-shadow: 0 4px 12px rgba(0, 82, 217, 0.25);
}

.bills-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.bills-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border-bottom: 1px solid #f0f2f5;
  -webkit-tap-highlight-color: transparent;
}

.bills-list .ledger-row--bill {
  display: block;
  padding: 0;
}

.bills-list .ledger-row--bill > a,
.bills-list .ledger-row--bill:not(.ledger-row--link) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
}

.bills-list .ledger-row--link > a {
  position: relative;
  padding-right: 28px;
}

.bills-list .ledger-row--link > a:active {
  background: #f8f9fc;
}

.ledger-row__info {
  flex: 1;
  min-width: 0;
}

.ledger-row__info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.ledger-row__info small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  word-break: break-word;
}

.ledger-row__amt {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 1px;
}

.ledger-row__amt.in {
  color: var(--gov-green);
}

.ledger-row__amt.out {
  color: var(--gov-red);
}

.ledger-row__chev {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #c0c4cc;
  font-size: 18px;
  line-height: 1;
}

.ledger-row--empty,
.bills-empty {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 20px !important;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  display: flex;
}

.ledger-row--empty::before,
.bills-empty::before {
  display: none;
  content: none;
}

.bills-empty--illus {
  padding: 20px 16px 28px !important;
}

.bills-empty__visual {
  width: 100%;
  max-width: 280px;
  height: 140px;
  margin: 0 auto 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f8fc;
}

.bills-empty__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bills-empty--illus p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.bill-info {
  flex: 1;
  min-width: 0;
}

.bill-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.bill-info small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  word-break: break-word;
}

.bill-amt {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 1px;
}

.bill-amt.in {
  color: var(--gov-green);
}

.bill-amt.out {
  color: var(--gov-red);
}

.bills-list li:last-child,
.bills-list .ledger-row:last-child {
  border-bottom: none;
}
