.tm-root {
  min-width: 0;
  color: #182e29;
  margin-bottom: 28px;
}
.tm-finance-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #dce6e2; margin: 0 0 18px; }
.tm-finance-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 7px 7px 0 0; padding: 11px 16px; background: transparent; color: #50665c; font: inherit; font-size: 13px; cursor: pointer; }
.tm-finance-tabs button[aria-selected="true"] { background: #e4f0ea; border-bottom-color: #29725b; color: #173e2f; font-weight: 700; }
.tm-finance-tabs button:focus-visible { outline: 2px solid #29725b; outline-offset: 2px; }
.tm-business-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.tm-business-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.tm-pnl-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tm-business-summary article { padding: 18px; border: 1px solid #dce6e2; border-radius: 9px; background: #fff; min-width: 0; }
.tm-business-summary article span, .tm-business-summary article small { display: block; color: #61756d; font-size: 12px; line-height: 1.5; }
.tm-business-summary article strong { display: block; font-size: 26px; margin: 8px 0; overflow-wrap: anywhere; }
.tm-expenses-table { min-width: 650px; }
.tm-expenses-table td:last-child { min-width: 230px; max-width: 480px; overflow-wrap: anywhere; }
.tm-pnl-result { border-top: 2px solid #dce6e2; padding-top: 16px; margin-top: 10px; }
@media (max-width: 1150px) { .tm-business-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .tm-business-summary { grid-template-columns: 1fr; } .tm-finance-tabs button { padding: 10px; } }
.tm-spend-breakdown { margin: 20px 0; min-width: 0; }
.tm-spend-note { color: #60736c; font-size: 12px; line-height: 1.5; }
.tm-spend-breakdown article small { display: block; margin: 6px 0; }
.tm-spend-breakdown summary { font-size: 12px; cursor: pointer; }
.tm-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 18px;
}
.tm-heading h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
  margin: 4px 0 7px;
}
.tm-heading p {
  font-size: 13px;
  color: #60736c;
  margin: 0;
}
.tm-root .card {
  padding: 20px;
  min-width: 0;
  margin: 0;
}
.tm-root button:disabled {
  cursor: default;
  opacity: 0.55;
}
.tm-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.tm-summary article {
  border: 1px solid #dce6e2;
  background: #fff;
  border-radius: 9px;
  padding: 17px;
  min-width: 0;
}
.tm-summary article span,
.tm-tenant-stats span {
  font-size: 11px;
  color: #61756d;
  display: block;
}
.tm-summary article strong {
  font-size: 25px;
  letter-spacing: -0.6px;
  display: block;
  margin: 9px 0;
  overflow-wrap: anywhere;
}
.tm-summary small,
.tm-note {
  font-size: 11px;
  line-height: 1.6;
  color: #6d7d77;
}
.tm-section-title {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.tm-root h3 {
  font-size: 14px;
  margin: 0 0 6px;
  letter-spacing: -0.15px;
}
.tm-section-title span {
  font-size: 11px;
  color: #6d7d77;
}
.tm-toolbar {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  padding: 14px 0 18px;
  border-top: 1px solid #e6ece9;
}
.tm-toolbar form {
  display: flex;
  gap: 8px;
  align-items: end;
  margin-right: auto;
}
.tm-root label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #5d726a;
}
.tm-root input,
.tm-root select {
  border: 1px solid #d3dfd9;
  background: #fff;
  border-radius: 6px;
  min-height: 33px;
  padding: 5px 9px;
  font-size: 12px;
  max-width: 100%;
  box-sizing: border-box;
}
.tm-toolbar input {
  width: 230px;
}
.tm-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  border-radius: 4px;
  padding: 5px 7px;
  background: #edf1f0;
  color: #61746c;
  margin: 2px;
  white-space: nowrap;
}
.tm-reconciled {
  background: #eaf4ee;
  color: #317450;
}
.tm-provisional,
.tm-unreconciled {
  background: #fff4d9;
  color: #916b1f;
}
.tm-negative {
  color: #a44c44 !important;
}
.tm-table-scroll {
  overflow: auto;
  max-width: 100%;
}
.tm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.tm-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #65796d;
  border-bottom: 1px solid #dce5e0;
  padding: 11px 12px;
  white-space: nowrap;
}
.tm-table td {
  padding: 17px 12px;
  border-bottom: 1px solid #edf1ee;
  white-space: nowrap;
}
.tm-table td:first-child {
  min-width: 175px;
  max-width: 310px;
}
.tm-table td:first-child button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.tm-table td small {
  display: block;
  font-size: 10px;
  color: #6a7d72;
  margin-top: 5px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.tm-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: #245e50;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.tm-link:hover {
  text-decoration: underline;
}
.tm-link span {
  color: #8fa49a;
  padding-left: 8px;
}
.tm-back {
  font-size: 11px;
  margin-bottom: 8px;
}
.tm-pagination {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 15px;
  font-size: 11px;
  color: #65796d;
}
.tm-pagination span {
  margin-right: auto;
}
.tm-foot {
  font-size: 11px;
  color: #65796d;
  line-height: 1.7;
  margin: 18px 0;
}
.tm-foot details {
  margin-top: 5px;
  max-width: 850px;
}
.tm-foot summary,
.tm-issues summary {
  cursor: pointer;
  color: #427362;
}
.tm-empty {
  text-align: center;
  padding: 40px !important;
  color: #65796d;
}
.tm-ledger-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 18px;
}
.tm-tenant-picker {
  align-self: start;
}
.tm-tenant-picker form {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.tm-tenant-picker input {
  width: 100%;
  min-width: 0;
}
.tm-tenant-picker > div {
  max-height: 540px;
  overflow: auto;
}
.tm-tenant-choice {
  display: block;
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
  padding: 16px 10px;
  border-radius: 6px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.tm-tenant-choice.active {
  background: #eaf3ed;
  color: #28634e;
}
.tm-tenant-choice strong {
  font-size: 12px;
  display: block;
}
.tm-tenant-choice span {
  font-size: 11px;
  color: #65796d;
  display: block;
  margin-top: 7px;
}
.tm-ledger-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.tm-tenant-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #e5ece8;
}
.tm-tenant-stats strong {
  display: block;
  font-size: 19px;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.tm-ledger-main svg {
  width: 100%;
  height: 200px;
  display: block;
}
.tm-ledger-main svg text {
  fill: #65796d;
  font-size: 11px;
  font-family: inherit;
}
.tm-ledger-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tm-cost-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0ee;
  font-size: 12px;
}
.tm-cost-row strong {
  font-weight: 600;
  white-space: nowrap;
}
.tm-tenant-stats strong small,
.tm-cost-row strong small {
  display: block;
  margin-top: 4px;
  color: #65796d;
  font-size: 11px;
  font-weight: 400;
}
.tm-note {
  margin: 12px 0 0;
}
.tm-evidence {
  padding: 10px 0;
  border-bottom: 1px solid #edf0ee;
}
.tm-evidence span {
  display: block;
  color: #65796d;
  font-size: 11px;
}
.tm-evidence strong {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.tm-chart-empty {
  padding: 60px 20px;
  text-align: center;
  color: #65796d;
  font-size: 12px;
  border-top: 1px dashed #dce7de;
}
.tm-root .compact {
  font-size: 11px;
  min-height: 30px;
}
.tm-alert {
  border: 1px solid #e5d8b8;
  background: #fffaf0;
  color: #79623a;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.tm-progress {
  font-size: 12px;
  color: #427362;
}
.tm-issues {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 16px;
}
.tm-issues li {
  margin-bottom: 8px;
}
.tm-ledger-table td:nth-child(2) {
  white-space: normal;
  min-width: 190px;
  max-width: 330px;
  overflow-wrap: anywhere;
}
.tm-ledger-table td:first-child {
  min-width: 100px;
}
@media (max-width: 1150px) {
  .tm-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tm-ledger-layout {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .tm-ledger-columns {
    grid-template-columns: 1fr;
  }
  .tm-tenant-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .tm-heading {
    display: block;
  }
  .tm-heading > .tm-tag {
    margin-top: 12px;
  }
  .tm-summary article {
    padding: 12px;
  }
  .tm-summary article strong {
    font-size: 21px;
  }
  .tm-root .card {
    padding: 13px;
  }
  .tm-toolbar input {
    width: 160px;
  }
  .tm-ledger-layout {
    grid-template-columns: 1fr;
  }
  .tm-tenant-picker > div {
    max-height: 170px;
  }
  .tm-section-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .tm-toolbar {
    gap: 10px;
  }
}

[data-tm-trial-spend] small {
  display: block;
}
[data-tm-trial-spend] details {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
[data-tm-trial-spend] summary {
  cursor: pointer;
}
