[data-view="maes-partnership"] .mae-ledger-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  align-items: start;
  gap: 24px;
}
[data-view="maes-partnership"] .mae-month-ledger { min-width: 0; }
[data-view="maes-partnership"] .mae-lifetime {
  min-width: 0;
  position: sticky;
  top: 90px;
  border-left: 1px solid #d7e0e4;
  padding: 8px 0 8px 20px;
  color: #172127;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.mae-lifetime h2 { margin: 0; font-size: 17px; line-height: 1.4; }
.mae-lifetime .mae-lifetime-period { margin: 4px 0 18px; color: #61717b; font-size: 12px; }
.mae-lifetime .mae-balance-label { display: block; font-size: 12px; color: #465b64; }
.mae-lifetime .mae-balance-amount { display: block; margin: 5px 0 14px; font-size: 28px; line-height: 1.25; font-weight: 800; color: #176548; }
.mae-lifetime .mae-balance-amount.is-negative { color: #b53939; }
.mae-lifetime dl { margin: 0; }
.mae-lifetime dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, auto); align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid #e1e7ea; }
.mae-lifetime dt { margin: 0; color: #52656e; font-size: 12px; }
.mae-lifetime dd { margin: 0; text-align: right; font-size: 14px; font-weight: 700; }
.mae-lifetime .mae-balance-note { font-size: 11px; color: #61717b; line-height: 1.6; margin: 12px 0 18px; }
.mae-lifetime details { border-top: 1px solid #d7e0e4; padding: 12px 0; }
.mae-lifetime summary { cursor: pointer; font-size: 12px; font-weight: 700; line-height: 1.5; }
.mae-lifetime .mae-lifetime-table-wrap { max-height: 340px; overflow: auto; margin-top: 12px; }
.mae-lifetime table { width: 100%; min-width: 0; table-layout: fixed; margin: 0; font-size: 11px; }
.mae-lifetime th, .mae-lifetime td { padding: 8px 3px; white-space: normal; overflow-wrap: anywhere; }
.mae-lifetime th { font-size: 10px; }
.mae-lifetime th:not(:first-child), .mae-lifetime td:not(:first-child) { text-align: right; }
.mae-lifetime tbody tr:last-child td { border-bottom: 0; }
.mae-lifetime .mae-lifetime-vehicle { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e1e7ea; }
.mae-lifetime .mae-lifetime-vehicle strong { font-size: 12px; }
.mae-lifetime .mae-lifetime-vehicle dl > div { padding: 6px 0; border: 0; }
.mae-lifetime .mae-lifetime-vehicle dd { font-size: 12px; }
@media (max-width: 1199px) {
  [data-view="maes-partnership"] .mae-ledger-layout { grid-template-columns: minmax(0, 1fr); }
  [data-view="maes-partnership"] .mae-lifetime { grid-row: 1; position: static; border-left: 0; border-top: 1px solid #d7e0e4; border-bottom: 1px solid #d7e0e4; padding: 18px 0; }
  .mae-lifetime .mae-lifetime-table-wrap { max-width: 520px; }
}
@media print {
  [data-view="maes-partnership"] .mae-ledger-layout { display: block; }
  [data-view="maes-partnership"] .mae-lifetime { position: static; break-inside: avoid; border-left: 0; padding-left: 0; margin-top: 20px; }
}
