.finance-workspace {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
  color: #182d37;
}
.finance-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.finance-heading h1 {
  font-size: 30px;
  font-weight: 650;
  margin: 8px 0;
}
.finance-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #54736e;
  font-weight: 700;
}
.finance-mode {
  white-space: nowrap;
  border: 1px solid #b7cfc7;
  background: #edf6f1;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
}
.finance-notice {
  background: #fff8e9;
  border: 1px solid #e5d5a8;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}
.finance-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid #dce4e4;
  padding-bottom: 12px;
}
.finance-workspace button,
.finance-import {
  border: 1px solid #c7d5d4;
  border-radius: 7px;
  padding: 8px 12px;
  background: #fff;
  color: #173c38;
  cursor: pointer;
  font-size: 14px;
}
.finance-workspace button:hover {
  background: #edf4f1;
}
.finance-tabs button[aria-current="page"],
.finance-workspace .finance-primary {
  background: #16594e;
  color: white;
  border-color: #16594e;
}
.finance-workspace button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.finance-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.finance-import input {
  display: block;
  max-width: 230px;
  font-size: 12px;
  margin-top: 6px;
}
.finance-panel {
  border: 1px solid #dce4e4;
  border-radius: 12px;
  padding: 22px;
  background: #fff;
  margin: 18px 0;
}
.finance-panel h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.finance-panel h3 {
  font-weight: 600;
  margin: 16px 0 8px;
}
.finance-panel p {
  line-height: 1.6;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.finance-panel ul {
  padding-left: 20px;
  list-style: disc;
  line-height: 1.8;
}
.finance-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.finance-stats article {
  border: 1px solid #dce4e4;
  border-radius: 12px;
  background: #f6faf8;
  padding: 20px;
}
.finance-stats span {
  display: block;
  font-size: 13px;
  color: #526b69;
}
.finance-stats strong {
  display: block;
  font-size: 32px;
  margin-top: 10px;
}
.finance-stats strong.finance-small {
  font-size: 19px;
}
.finance-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.finance-columns > .finance-panel {
  margin: 0;
}
.finance-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  counter-reset: flow;
}
.finance-flow li {
  counter-increment: flow;
  background: #f1f5f4;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.finance-flow li:before {
  content: counter(flow) ". ";
  color: #567770;
}
.finance-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 16px 0;
}
.finance-links a {
  color: #176457;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.finance-muted {
  font-size: 13px;
  color: #5c6e72;
}
.finance-form {
  display: grid;
  gap: 14px;
}
.finance-form label,
.finance-review-note {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.finance-workspace input,
.finance-workspace textarea {
  border: 1px solid #b9ccca;
  border-radius: 6px;
  padding: 9px;
  background: #fff;
  color: #182d37;
  min-width: 0;
  width: 100%;
}
.finance-workspace textarea {
  min-height: 80px;
  resize: vertical;
}
.finance-workspace :focus-visible {
  outline: 3px solid #58a998;
  outline-offset: 2px;
}
.finance-fields {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.7fr;
  gap: 12px;
}
.finance-table-wrap {
  overflow: auto;
}
.finance-workspace table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.finance-workspace th {
  font-size: 12px;
  color: #5c6e72;
  font-weight: 500;
}
.finance-workspace td,
.finance-workspace th {
  padding: 14px 10px;
  border-bottom: 1px solid #e7eceb;
}
.finance-workspace td small {
  display: block;
  margin-top: 4px;
  color: #5c6e72;
}
.finance-empty {
  padding: 22px 0;
  color: #526b69;
}
.finance-error {
  padding: 12px;
  background: #fff0ef;
  color: #9c2420;
  border-radius: 6px;
}
.finance-workspace details {
  margin-top: 16px;
}
.finance-workspace summary {
  cursor: pointer;
}
@media (max-width: 800px) {
  .finance-workspace {
    padding: 16px;
  }
  .finance-heading {
    flex-direction: column;
    gap: 12px;
  }
  .finance-columns {
    grid-template-columns: 1fr;
  }
  .finance-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .finance-tabs button {
    font-size: 12px;
  }
  .finance-fields {
    grid-template-columns: 1fr;
  }
  .finance-panel {
    padding: 16px;
  }
}
.finance-existing-frame{display:block;width:100%;height:75vh;min-height:560px;border:1px solid #dce4e4;border-radius:8px;background:white}.finance-existing-records{padding:16px}.finance-links button[aria-pressed=true]{background:#16594e;color:white}.finance-workspace td a{color:#176457;text-decoration:underline}@media(max-width:800px){.finance-existing-frame{height:75vh;min-height:500px}}
.finance-mode{white-space:normal;max-width:100%;overflow-wrap:anywhere}

.finance-workspace{max-width:none;width:100%;min-width:0;box-sizing:border-box}
