.ll-fin-page {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}
.ll-fin-page h1 {
  font-size: 1.5rem;
  font-weight: 650;
}
.ll-fin-page h2,
.ll-fin-card h2 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 0.7rem;
}
.ll-fin-card {
  background: var(--card, #fff);
  border: 1px solid #dce6e0;
  border-radius: 0.8rem;
  padding: 1.1rem;
  min-width: 0;
  margin-bottom: 1rem;
}
.ll-fin-card h3 {
  font-size: 0.8rem;
  color: #42594d;
  margin-bottom: 0.6rem;
}
.ll-fin-number {
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}
.ll-fin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1rem;
}
.ll-fin-metrics .ll-fin-card {
  margin: 0;
}
.ll-fin-metrics p,
.ll-fin-notice {
  font-size: 0.85rem;
  color: #42594d;
}
.ll-fin-row,
.ll-fin-actions,
.ll-fin-presets {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.ll-fin-row {
  justify-content: space-between;
}
.ll-fin-button {
  border: 1px solid #b8cfc1;
  border-radius: 0.45rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  background: #fff;
  color: #175b47;
  cursor: pointer;
}
.ll-fin-button:disabled {
  opacity: 0.5;
  cursor: default;
}
.ll-fin-button[aria-pressed="true"] {
  background: #18765b;
  color: white;
}
.ll-fin-button:focus-visible,
svg g:focus-visible {
  outline: 3px solid #1c887b;
  outline-offset: 2px;
}
.ll-fin-dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(180px, 1fr);
  gap: 1rem;
}
.ll-fin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.ll-fin-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  min-width: 0;
}
.ll-fin-field input,
.ll-fin-field select {
  border: 1px solid #b9ccbf;
  border-radius: 0.35rem;
  padding: 0.55rem;
  width: 100%;
  min-width: 0;
  background: #fff;
  color: #172c25;
}
.ll-fin-field input:disabled,
.ll-fin-field select:disabled {
  background: #f0f3f1;
  color: #617269;
}
.ll-fin-chart svg {
  width: 100%;
  height: auto;
  min-height: 160px;
}
.ll-fin-scroll {
  overflow: auto;
  max-width: 100%;
}
.ll-fin-scroll table {
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 100%;
}
.ll-fin-scroll td,
.ll-fin-scroll th {
  padding: 0.6rem;
  text-align: left;
  border-bottom: 1px solid #dce6e0;
  white-space: nowrap;
}
.ll-fin-error {
  border: 1px solid #b52626;
  color: #9d2020;
  padding: 0.8rem;
  border-radius: 0.5rem;
}
.ll-fin-history {
  border-top: 1px solid #dce6e0;
  padding: 1rem 0;
}
.ll-fin-history pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ll-fin-chart summary {
  cursor: pointer;
}
@media (max-width: 760px) {
  .ll-fin-grid,
  .ll-fin-dashboard-bottom {
    grid-template-columns: minmax(0, 1fr);
  }
  .ll-fin-presets {
    gap: 0.3rem;
  }
  .ll-fin-button {
    padding: 0.5rem;
  }
  .ll-fin-chart {
    padding: 0.6rem;
  }
}
@media print {
  nav,
  aside,
  button,
  .ll-fin-presets {
    display: none !important;
  }
  .ll-fin-card {
    break-inside: avoid;
  }
  .ll-fin-scroll {
    overflow: visible;
  }
  .ll-fin-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  details > summary {
    display: none;
  }
  details > * {
    display: block;
  }
  .ll-fin-dashboard-bottom {
    display: block;
  }
}
.ll-fin-page {
  grid-template-columns: minmax(0, 1fr);
}
.ll-fin-print-records {
  display: none;
}
@media print {
  html,
  body,
  #root,
  main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .ll-fin-page {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
  }
  .ll-fin-page > section,
  .ll-fin-card {
    max-width: 100%;
    min-width: 0;
  }
  .ll-fin-chart svg {
    width: 100% !important;
    max-width: 100% !important;
  }
  .ll-fin-chart svg text {
    font-size: 20px !important;
  }
  .ll-fin-scroll {
    overflow: visible;
    min-width: 0;
    max-width: 100%;
  }
  .ll-fin-scroll table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .ll-fin-scroll th,
  .ll-fin-scroll td {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 10px;
    padding: 4px;
  }
  .ll-fin-screen-wide {
    display: none !important;
  }
  .ll-fin-print-records {
    display: block;
  }
  .ll-fin-print-record {
    break-inside: avoid;
    border: 1px solid #dce6e0;
    padding: 8px;
    margin: 8px 0;
  }
  .ll-fin-print-record table {
    width: 100%;
    table-layout: fixed;
    font-size: 11px;
  }
  .ll-fin-print-record th,
  .ll-fin-print-record td {
    padding: 4px;
    overflow-wrap: anywhere;
    vertical-align: top;
    text-align: left;
    border-bottom: 1px solid #dce6e0;
  }
  .ll-fin-print-record th {
    width: 36%;
  }
  thead {
    display: table-header-group;
  }
  tr {
    break-inside: avoid;
  }
}
