:root {
  --green: #173f35;
  --green-2: #236550;
  --gold: #d5b97e;
  --ink: #24372f;
  --muted: #738078;
  --line: #e4e9e5;
  --paper: #fff;
  --bg: #f4f6f3;
  --radius: 14px;
  --shadow: 0 3px 12px #173f3505;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--green-2);
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.7px;
}
.initial-loading {
  padding: 80px;
  text-align: center;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}
.sidebar {
  background: var(--green);
  color: white;
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 20px;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 9px 35px;
}
.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid #d5b97e44;
  border-radius: 11px;
}
.brand strong {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.brand span {
  display: block;
  font-size: 10px;
  color: #a6bdb1;
  margin-top: 5px;
  letter-spacing: 1.9px;
  text-transform: uppercase;
}
.nav-label {
  color: #8daa9c;
  padding: 22px 12px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.9px;
  text-transform: uppercase;
}
.nav-item {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #bccdc4;
  padding: 13px 14px;
  border-radius: 9px;
  margin-bottom: 4px;
  font-size: 13px;
}
.nav-item:hover {
  background: #ffffff0a;
  color: white;
}
.nav-item.active {
  background: #ffffff12;
  color: white;
  box-shadow: inset 3px 0 var(--gold);
}
.nav-item.active svg {
  color: var(--gold);
}
.sidebar-footer {
  margin-top: auto;
  padding: 22px 12px 6px;
  border-top: 1px solid #ffffff10;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #9bb5a7;
  font-size: 11px;
}
.sidebar-footer svg {
  width: 18px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 20px;
}
.company-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}
.company-selector > svg {
  color: var(--green-2);
  width: 23px;
}
.company-selector label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.company-selector select {
  padding: 0 24px 0 0;
  background: transparent;
  border: none;
  font-weight: 600;
  max-width: 320px;
  color: var(--ink);
  font-size: 13px;
}
.user-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edf2ec;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
}
.user-name strong {
  display: block;
  font-size: 12px;
}
.user-name span {
  font-size: 10px;
  color: var(--muted);
}
.icon-button {
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: 6px;
  color: var(--muted);
}
.icon-button:hover {
  background: #edf2ec;
  color: var(--green);
}
.mobile-toggle {
  display: none;
}
.content {
  padding: 34px 38px 48px;
  max-width: 1700px;
  margin: auto;
}
.breadcrumbs {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.breadcrumbs svg {
  width: 12px;
  height: 12px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.heading-tag {
  color: var(--green-2);
  border: 1px solid #d7e3d9;
  background: #eef5ef;
  border-radius: 20px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.heading-tag svg {
  width: 14px;
  height: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn:hover {
  border-color: #b5c6b9;
  background: #fafcf9;
}
.btn.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn.primary:hover {
  background: #245747;
}
.btn.soft {
  background: #edf3ee;
  color: var(--green-2);
  border-color: #edf3ee;
}
.btn.danger {
  color: #a63232;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.banner {
  border: 1px solid #e7d8b6;
  background: #fffbef;
  color: #826324;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.banner svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.banner.info {
  background: #eef5f1;
  border-color: #dae7df;
  color: #466153;
}
.banner.error {
  background: #fdf1f0;
  border-color: #f0d2cf;
  color: #a13830;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 11px;
  font-weight: 600;
  color: #65746a;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #dde5de;
  border-radius: 7px;
  min-height: 39px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-2);
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.filters .field {
  min-width: 150px;
}
.filters .bank-filter {
  min-width: 220px;
  flex: 1;
}
.filters .actions {
  margin-left: auto;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 14px;
  gap: 12px;
}
.section-heading h2 {
  font-size: 14px;
  margin: 0;
}
.section-heading span {
  font-size: 11px;
  color: var(--muted);
}
.bank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.bank-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 20px;
  box-shadow: var(--shadow);
}
.bank-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.bank-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #f0f4ef;
  border-radius: 9px;
  color: var(--green-2);
}
.bank-top strong {
  font-size: 12px;
  font-weight: 600;
}
.bank-card:nth-child(2) .bank-icon {
  background: #eef5ea;
  color: #6b8729;
}
.bank-card:nth-child(3) .bank-icon {
  background: #faf2e7;
  color: #ac7637;
}
.bank-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.bank-amount {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.bank-updated {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 16px;
}
.bank-updated svg {
  width: 12px;
  height: 12px;
}
.consolidated {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eaf1e9;
  border: 1px solid #dce6d9;
  border-radius: 9px;
  padding: 13px 20px;
  margin-bottom: 26px;
  gap: 14px;
}
.consolidated .label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #4b6554;
}
.consolidated strong {
  font-size: 20px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.consolidated small {
  display: block;
  font-size: 10px;
  color: #74846d;
  margin-top: 5px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px 20px;
}
.metric label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 9px;
}
.metric strong {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.metric small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.metric.highlight {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.metric.highlight label,
.metric.highlight small {
  color: #b3c9ba;
}
.table-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.table-title h2 {
  margin: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.counter {
  font-size: 10px;
  border-radius: 4px;
  background: #eef3ed;
  padding: 3px 7px;
  color: #64745d;
  font-weight: 500;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
}
th {
  background: #f8faf7;
  color: #7b867e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 13px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 12px;
  border-bottom: 1px solid #eef1ec;
  vertical-align: top;
  line-height: 1.5;
}
td:first-child,
th:first-child {
  padding-left: 20px;
}
td:last-child,
th:last-child {
  padding-right: 20px;
}
tbody tr:hover {
  background: #fafcf9;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.description {
  font-weight: 600;
  min-width: 160px;
  color: #314536;
}
.description small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
}
.reason {
  min-width: 150px;
  max-width: 200px;
  color: #647367;
}
.property-cell {
  min-width: 130px;
  color: #647367;
}
.money {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.date-cell {
  white-space: nowrap;
  color: #647367;
}
.method {
  font-size: 10px;
  background: #f1f4ef;
  border: 1px solid #e6ebe3;
  display: inline-block;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.bank-cell {
  min-width: 100px;
  max-width: 145px;
  color: #647367;
}
.status {
  display: inline-block;
  font-size: 9px;
  white-space: nowrap;
  border-radius: 20px;
  padding: 4px 8px;
}
.status.open {
  background: #fbf4e3;
  color: #957023;
}
.status.paid {
  background: #eaf4ec;
  color: #3b8053;
}
.status.partial {
  background: #eef1fa;
  color: #677daf;
}
.status.overdue {
  background: #fbedeb;
  color: #a75d52;
}
.row-edit {
  padding: 3px;
}
.row-edit svg {
  width: 13px;
  height: 13px;
}
.table-footer {
  padding: 17px 20px;
  background: #f8faf7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 14px;
  border-top: 1px solid var(--line);
}
.table-footer strong {
  font-size: 17px;
  color: var(--green);
}
.subtotals {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.subtotals strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  margin-top: 5px;
}
.footnote {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin-top: 16px;
}
.footnote svg {
  width: 13px;
  height: 13px;
  margin-top: 3px;
}
.empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.empty svg {
  width: 35px;
  height: 35px;
  color: #9cae9e;
  margin-bottom: 14px;
}
.empty h3 {
  color: var(--ink);
  font-size: 16px;
}
.empty p {
  max-width: 500px;
  margin: 0 auto 18px;
}
.empty .btn {
  margin-top: 10px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.panel h2 {
  font-size: 16px;
  margin-bottom: 9px;
}
.panel .intro {
  font-size: 12px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.panel .actions {
  margin-top: 22px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}
.details {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding: 18px 0;
}
.details label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.details strong {
  font-size: 12px;
  font-weight: 600;
}
.list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  gap: 16px;
}
.list-card h3 {
  margin: 0 0 5px;
  font-size: 14px;
}
.list-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.list-card .left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.list-card .left > svg {
  color: var(--green-2);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child {
  border: 0;
}
.step-number {
  background: #edf3ee;
  color: var(--green);
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.step h3 {
  margin: 0 0 4px;
  font-size: 12px;
}
.step p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.login-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-brand {
  background: var(--green);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}
.login-brand .brand {
  padding: 0;
}
.login-brand .brand strong {
  font-size: 25px;
}
.login-message {
  max-width: 470px;
}
.login-message .eyebrow {
  color: var(--gold);
  margin-bottom: 24px;
}
.login-message h1 {
  font-size: 48px;
  font-weight: 550;
  letter-spacing: -1.8px;
  line-height: 1.16;
}
.login-message p {
  color: #b5c9bd;
  font-size: 15px;
  max-width: 360px;
  margin-top: 24px;
}
.login-brand footer {
  color: #8fae9c;
  font-size: 11px;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form {
  width: 100%;
  max-width: 350px;
}
.login-form h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
}
.login-form p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 30px;
}
.login-form .field {
  margin-bottom: 18px;
}
.login-form .btn {
  width: 100%;
  margin-top: 10px;
}
.login-security {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  justify-content: center;
  margin-top: 24px;
}
.login-security svg {
  width: 13px;
  height: 13px;
}
.login-error {
  color: #a13830;
  font-size: 12px;
  min-height: 20px;
  margin-top: 16px;
  line-height: 1.6;
}
.login-help {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.print-only {
  display: none;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 450px;
  background: var(--green);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 12px;
  z-index: 100;
  box-shadow: 0 4px 30px #0002;
  display: none;
  line-height: 1.6;
}
#toast.visible {
  display: block;
}
#toast.error {
  background: #8f3d36;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 28px;
  width: calc(100% - 32px);
  max-width: 530px;
  color: var(--ink);
  box-shadow: 0 20px 100px #0002;
}
dialog::backdrop {
  background: #0c231966;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 19px;
}
dialog p {
  font-size: 12px;
  color: var(--muted);
}
dialog .field {
  margin-bottom: 18px;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 24px;
}
.modal-error {
  font-size: 12px;
  color: #a13830;
  line-height: 1.6;
}
.check-list {
  display: flex;
  gap: 10px;
  flex-direction: column;
  margin: 15px 0;
}
.check-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.check-list input {
  accent-color: var(--green);
}
.loading {
  padding: 55px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 9px;
  background: #eef3ed;
  color: var(--green);
}
.badge.demo {
  background: #fbf2db;
  color: #967633;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #93ac8e;
  margin-right: 5px;
}
@media (min-width: 1450px) {
  table {
    font-size: 12px;
  }
  td {
    padding: 19px 16px;
  }
  .content {
    padding: 38px 44px;
  }
  .topbar {
    padding: 0 44px;
  }
  .shell {
    grid-template-columns: 252px minmax(0, 1fr);
  }
  .sidebar {
    width: 252px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    width: 205px;
    padding: 28px 14px;
  }
  .brand strong {
    font-size: 18px;
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .bank-grid {
    gap: 10px;
  }
  .bank-card {
    padding: 16px;
  }
  .bank-amount {
    font-size: 22px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 20px;
  }
  .filters {
    gap: 12px;
  }
  .filters .actions {
    width: 100%;
    justify-content: flex-end;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 0 0 100vw #0005;
  }
  .topbar {
    height: 70px;
    padding: 0 16px;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .company-selector {
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  .company-selector > svg {
    display: none;
  }
  .company-selector select {
    font-size: 12px;
    max-width: 210px;
  }
  .user-name {
    display: none;
  }
  .user-block {
    gap: 4px;
  }
  .avatar {
    width: 29px;
    height: 29px;
  }
  .content {
    padding: 24px 16px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 24px;
  }
  .heading-tag {
    display: none;
  }
  .breadcrumbs {
    margin-bottom: 18px;
  }
  .bank-grid {
    grid-template-columns: 1fr;
  }
  .bank-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 12px;
  }
  .bank-top {
    grid-column: 1;
    grid-row: 1/3;
    margin: 0;
  }
  .bank-label {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    margin: 0;
    font-size: 9px;
  }
  .bank-amount {
    grid-column: 2;
    grid-row: 2;
    font-size: 20px;
    text-align: right;
  }
  .bank-updated {
    grid-column: 1/-1;
    margin-top: 12px;
    font-size: 9px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 20px 0;
  }
  .metric strong {
    font-size: 19px;
  }
  .filters {
    padding: 16px;
    gap: 13px;
  }
  .filters .field {
    flex: 1;
    min-width: 130px;
  }
  .filters .bank-filter {
    min-width: 100%;
    order: 2;
  }
  .filters .actions {
    order: 3;
    justify-content: stretch;
    margin-top: 3px;
  }
  .filters .btn {
    flex: 1;
    white-space: nowrap;
    padding: 9px 10px;
  }
  .consolidated {
    padding: 14px;
  }
  .consolidated strong {
    font-size: 18px;
  }
  .consolidated small {
    font-size: 9px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: 1;
  }
  .panel {
    padding: 20px;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 30px;
    min-height: 250px;
    gap: 25px;
  }
  .login-brand .brand strong {
    font-size: 20px;
  }
  .login-message h1 {
    font-size: 30px;
    max-width: 310px;
  }
  .login-message .eyebrow,
  .login-message p,
  .login-brand footer {
    display: none;
  }
  .login-form-wrap {
    padding: 32px 24px;
  }
  .login-form h2 {
    font-size: 23px;
  }
  .login-help {
    margin-top: 24px;
  }
  .list-card {
    padding: 16px;
    align-items: flex-start;
  }
  .list-card .left > svg {
    display: none;
  }
  .details {
    gap: 20px;
  }
  .section-heading span {
    font-size: 9px;
  }
  .table-footer {
    font-size: 11px;
  }
  .table-footer strong {
    font-size: 15px;
  }
  #toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
  dialog {
    padding: 22px;
  }
}
@page {
  size: A4 landscape;
  margin: 12mm;
}
@media print {
  body {
    background: white;
    font-size: 9px;
    color: black;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .sidebar,
  .topbar,
  .breadcrumbs,
  .no-print,
  .page-heading,
  .filters,
  #toast,
  dialog,
  .footnote,
  .row-edit {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .main {
    display: block;
  }
  .content {
    padding: 0;
    max-width: none;
  }
  .print-only {
    display: block;
  }
  .print-header {
    margin-bottom: 6mm;
    border-bottom: 2px solid var(--green);
    padding-bottom: 4mm;
  }
  .print-header .print-brand {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
  }
  .print-header h1 {
    font-size: 18px;
    margin: 12px 0 6px;
    letter-spacing: 0;
  }
  .print-header p {
    font-size: 10px;
    margin: 0;
  }
  .banner {
    font-size: 9px;
    padding: 6px 9px;
    margin-bottom: 10px;
  }
  .bank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
  }
  .bank-card {
    padding: 10px;
    break-inside: avoid;
    box-shadow: none;
  }
  .bank-top {
    margin-bottom: 8px;
  }
  .bank-icon {
    display: none;
  }
  .bank-amount {
    font-size: 17px;
  }
  .bank-updated {
    margin-top: 6px;
    font-size: 8px;
  }
  .bank-label {
    font-size: 8px;
  }
  .bank-top strong {
    font-size: 9px;
  }
  .consolidated {
    padding: 8px 12px;
    margin-bottom: 14px;
  }
  .consolidated .label {
    font-size: 9px;
  }
  .consolidated strong {
    font-size: 16px;
  }
  .consolidated small {
    font-size: 8px;
  }
  .metrics {
    grid-template-columns: repeat(4, 1fr);
    margin: 12px 0;
    gap: 8px;
  }
  .metric {
    padding: 9px 12px;
    break-inside: avoid;
  }
  .metric label,
  .metric small {
    font-size: 8px;
  }
  .metric strong {
    font-size: 16px;
  }
  .table-card {
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
  }
  .table-scroll {
    overflow: visible;
  }
  .table-title {
    padding: 10px;
  }
  .table-title h2 {
    font-size: 11px;
  }
  .table-title span {
    font-size: 8px;
  }
  table {
    font-size: 8px;
    table-layout: fixed;
  }
  th {
    font-size: 7px;
    white-space: normal;
    padding: 8px 5px;
  }
  td {
    font-size: 8px;
    padding: 9px 5px;
    word-break: break-word;
  }
  td:first-child,
  th:first-child {
    padding-left: 8px;
    width: 8%;
  }
  td:last-child,
  th:last-child {
    padding-right: 8px;
    width: 8%;
  }
  th:nth-child(2) {
    width: 20%;
  }
  th:nth-child(3) {
    width: 11%;
  }
  th:nth-child(4) {
    width: 16%;
  }
  th:nth-child(5) {
    width: 13%;
  }
  th:nth-child(6) {
    width: 11%;
  }
  th:nth-child(7) {
    width: 13%;
  }
  .description,
  .reason,
  .property-cell,
  .bank-cell {
    min-width: 0;
    max-width: none;
  }
  .description small {
    font-size: 7px;
  }
  .date-cell {
    white-space: normal;
  }
  .method,
  .status {
    font-size: 7px;
    white-space: normal;
    padding: 2px 4px;
  }
  thead {
    display: table-header-group;
  }
  tr {
    break-inside: avoid;
  }
  .table-footer {
    padding: 9px 12px;
    font-size: 10px;
    break-inside: avoid;
  }
  .table-footer strong {
    font-size: 13px;
  }
  .subtotals {
    padding: 9px 12px;
    font-size: 8px;
    break-inside: avoid;
  }
  .subtotals strong {
    font-size: 10px;
  }
  .section-heading h2 {
    font-size: 10px;
  }
  .section-heading span {
    font-size: 8px;
  }
  .empty {
    padding: 20px;
  }
  .print-note {
    font-size: 8px;
    color: #666;
    line-height: 1.6;
    margin-top: 12px;
  }
}

.status.unknown {
  background: #f3ede3;
  color: #98783c;
}
.overdue-text {
  color: #a75d52;
  margin-top: 4px;
}
@media print {
  .print-header {
    margin-bottom: 4mm;
    padding-bottom: 3mm;
  }
  .print-header .print-brand {
    font-size: 12px;
  }
  .print-header h1 {
    font-size: 16px;
    margin: 7px 0 4px;
  }
  .print-header p {
    font-size: 9px;
  }
  .banner {
    font-size: 8px;
    padding: 4px 8px;
    margin-bottom: 8px;
  }
  .bank-card {
    padding: 7px;
  }
  .bank-top {
    margin-bottom: 4px;
  }
  .bank-label {
    font-size: 7px;
  }
  .bank-amount {
    font-size: 15px;
  }
  .bank-updated {
    font-size: 7px;
    margin-top: 4px;
  }
  .consolidated {
    padding: 6px 10px;
    margin-bottom: 10px;
  }
  .consolidated strong {
    font-size: 14px;
  }
  .consolidated small {
    font-size: 7px;
  }
  .metrics {
    margin: 8px 0;
    gap: 6px;
  }
  .metric {
    padding: 6px 9px;
  }
  .metric label {
    font-size: 7px;
    margin-bottom: 4px;
  }
  .metric strong {
    font-size: 14px;
  }
  .metric small {
    display: none;
  }
  .table-title {
    padding: 7px 10px;
  }
  td {
    font-size: 7.5px;
    padding: 7px 5px;
    line-height: 1.3;
  }
  .description small {
    font-size: 6.5px;
  }
  .table-footer {
    padding: 7px 10px;
  }
  .subtotals {
    padding: 7px 10px;
    gap: 18px;
  }
  .subtotals strong {
    font-size: 9px;
  }
  .print-note {
    font-size: 7px;
    margin-top: 8px;
  }
}

@media print {
  .metrics {
    display: none;
  }
  .small {
    font-size: 7px;
  }
  .print-summary {
    font-size: 8px;
    padding-top: 8px;
    font-weight: 600;
  }
  .bank-grid {
    margin-bottom: 6px;
  }
  .consolidated {
    margin-bottom: 8px;
  }
  .print-note {
    margin-bottom: 0;
  }
}
