.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-actions .saved { margin-left: 0; }
.logout-button {
  padding: 7px 11px;
  border: 1px solid #cad8d2;
  border-radius: 9px;
  background: transparent;
  color: var(--green);
  font-size: 12px;
}
.logout-button:hover { background: #eef4f1; }
.login-page {
  min-height: 100vh;
  background: radial-gradient(circle at 18% 20%, #fffdf8 0, transparent 34%), var(--cream);
}
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: min(430px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(32, 62, 54, .1);
}
.login-brand { display: flex; align-items: center; gap: 14px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.login-brand h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 24px; }
.login-copy { padding: 26px 0 18px; }
.login-copy h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 30px; }
.login-copy > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.login-form { display: grid; gap: 17px; }
.login-form label { display: grid; gap: 8px; color: #4b615b; font-size: 13px; font-weight: 700; }
.login-form input { height: 48px; padding: 0 13px; outline: 0; border: 1px solid #cedbd5; border-radius: 11px; background: #fbfcfa; }
.login-form input:focus { border-color: #5f9885; background: #fff; box-shadow: 0 0 0 3px rgba(95, 152, 133, .13); }
.login-form .primary-button { width: 100%; margin-top: 4px; }
.login-error { margin: 0 0 18px; padding: 11px 13px; border-radius: 10px; background: #f9e9e6; color: #914d44; font-size: 13px; }
.report-toolbar { display: grid; grid-template-columns: 1fr 165px 165px auto; gap: 14px; align-items: end; padding: 19px 30px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8faf8; }
.report-label { align-self: center; }
.report-label span { display: block; color: var(--green); font-size: 13px; font-weight: 750; }
.report-label small { color: var(--muted); font-size: 11px; }
.report-toolbar label { display: grid; gap: 7px; color: #596d67; font-size: 11px; font-weight: 700; }
.report-toolbar input { width: 100%; height: 42px; min-width: 0; padding: 0 11px; border: 1px solid #cedbd5; border-radius: 10px; outline: 0; background: white; color: var(--ink); color-scheme: light; transition: border-color .18s, box-shadow .18s; }
.report-toolbar input:focus { border-color: #5f9885; box-shadow: 0 0 0 3px rgba(95,152,133,.13); }
.report-buttons { display: flex; gap: 8px; }
.report-buttons button { height: 42px; padding: 0 15px; border: 1px solid var(--green); border-radius: 10px; background: var(--green); color: white; font-size: 12px; font-weight: 700; white-space: nowrap; }
.report-buttons .print-button { background: white; color: var(--green); }
.date-group { vertical-align: middle; background: #f1f5f2; color: var(--green); font-weight: 700; text-align: center; border-right: 1px solid var(--line); }
.date-group-start td { border-top-color: #cbd9d3; }
td.date-cell { width: 28%; }
td.content-cell { width: auto; }
td.amount { width: 20%; text-align: right; }
td.actions { width: 80px; text-align: right; }
@media (max-width: 640px) {
  .login-card { padding: 28px 22px; }
  .header-actions { gap: 10px; }
  .header-actions .saved { display: none; }
  .report-toolbar { grid-template-columns: 1fr 1fr; padding: 17px 18px; }
  .report-label, .report-buttons { grid-column: 1 / -1; }
  .report-buttons button { flex: 1; }
  tbody tr.date-group-start { margin-top: 9px; border-top: 1px solid #cbd9d3; }
  tbody tr.date-group-start:first-child { margin-top: 0; }
  td.date-cell { padding: 8px 0 5px !important; background: transparent; border-right: 0; color: var(--green); font-size: 11px; text-align: left !important; }
  td.content-cell { color: var(--ink); font-size: 15px; font-weight: 700; }
  td.amount { width: 100%; margin-top: 4px; }
  tr.date-group-continuation td.content-cell { padding-top: 9px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .report-toolbar { grid-template-columns: 1fr 1fr; }
  .report-label, .report-buttons { grid-column: 1 / -1; }
}
