:root {
  color-scheme: light;
  font-family: "DM Sans", sans-serif;
  color: #152923;
  background: #eaf1ec;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: radial-gradient(ellipse at 85% 4%, #cceddb, transparent 44rem); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #38866e; outline-offset: 4px; }
.site-header { border-bottom: 1px solid #cddbd3; }
.site-nav, .page { max-width: 1380px; margin: auto; padding-inline: clamp(16px, 4.5vw, 70px); }
.site-nav, .wordmark, .site-links, .setup-link { display: flex; align-items: center; gap: 12px; }
.site-nav { min-height: 76px; justify-content: space-between; }
.wordmark { font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: -.045em; gap: 8px; }
.wordmark span { color: #536d61; font-weight: 600; }
.site-links { gap: 24px; font-size: .875rem; font-weight: 700; }
.overview-link:hover { text-decoration: underline; }
.setup-link { background: #102820; color: white; padding: 10px 13px; border-radius: 8px; }
.setup-link:hover { background: #23483a; }
.setup-link span { padding-left: 10px; border-left: 1px solid #567264; color: #b9f3d1; }
.page { padding-bottom: 64px; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: clamp(28px, 4vw, 58px) 0 28px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; }
h1 { font-size: clamp(2.25rem, 5.4vw, 5rem); line-height: .99; letter-spacing: -.075em; font-weight: 800; }
h1 em { color: #225e48; font-style: normal; }
.intro p { margin-top: 16px; color: #415c50; max-width: 45ch; line-height: 1.5; }
.demo-indicator { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 12px; border-radius: 100px; border: 1px solid #b3cebe; background: #edf8f1; font-weight: 700; font-size: .875rem; }
.demo-indicator span { border-radius: 50%; width: 8px; height: 8px; background: #22865d; }
.demo-shell {
  --demo-accent: #4f46e5;
  display: grid; grid-template-columns: 222px minmax(0, 1fr);
  border: 1px solid #becfc4; border-radius: 20px; overflow: hidden;
  background: #f5f8f6; box-shadow: 0 22px 60px #244c3623;
}
.demo-sidebar { display: flex; flex-direction: column; padding: 20px 13px; background: #102820; color: #ecf7f0; }
.workspace-brand { display: flex; align-items: center; gap: 10px; padding: 3px 4px 22px; margin-bottom: 14px; border-bottom: 1px solid #345045; }
.workspace-avatar { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border-radius: 10px; background: #b6edce; color: #153c2c; font-weight: 800; }
.workspace-brand strong, .workspace-brand small { display: block; }
.workspace-brand strong { font-size: .875rem; line-height: 1.25; overflow-wrap: anywhere; }
.workspace-brand small { margin-top: 3px; color: #a9c4b7; font-size: .75rem; }
.workspace-nav { display: grid; gap: 4px; }
.demo-nav-btn { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; border-radius: 8px; padding: 11px; background: transparent; color: #c3d6cc; font-size: .875rem; font-weight: 700; text-align: left; }
.demo-nav-btn:hover { background: #243e34; color: #fff; }
.demo-nav-btn.active { background: #b6edce; color: #14372a; }
.nav-icon { display: grid; place-items: center; width: 18px; height: 18px; font-size: 1.15rem; line-height: 1; }
.icon-dashboard::before { content: "⊞"; }
.icon-invoice::before { content: "▤"; }
.icon-customers::before { content: "♙"; }
.icon-branding::before { content: "◇"; }
.reset-btn { margin-top: auto; }
.reset-btn span { width: 18px; text-align: center; font-size: 1.2rem; line-height: 1; }
.demo-main { min-width: 0; min-height: 530px; padding: clamp(16px, 2.5vw, 32px); }
.panel-heading, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-heading { margin-bottom: 20px; }
.panel-heading h2 { letter-spacing: -.06em; font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; }
.panel-heading p { margin-top: 4px; color: #52665c; font-size: .9375rem; }
.demo-btn { border: 1px solid transparent; border-radius: 8px; background: #173c2d; color: white; padding: 10px 14px; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.demo-btn:hover { background: #286047; }
.demo-btn span { margin-right: 4px; }
.demo-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.demo-kpi { min-width: 0; border: 1px solid #dbe6df; border-radius: 13px; background: #fff; padding: clamp(10px, 1.45vw, 18px); }
.demo-kpi small { display: block; color: #4c6357; font-size: .875rem; font-weight: 700; }
.demo-kpi strong { display: block; margin-top: 7px; font: 800 clamp(1.15rem, 2.2vw, 1.9rem)/1.1 Manrope, sans-serif; letter-spacing: -.065em; overflow-wrap: anywhere; }
.kpi-total { background: #d7f4e4; border-color: #c0e6d0; }
.payment-card { display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; gap: 20px; margin: 12px 0 16px; background: #fff; border: 1px solid #dbe6df; border-radius: 13px; padding: 15px 18px; }
h3 { font-size: 1rem; font-weight: 800; }
.payment-copy p { margin-top: 4px; color: #52665c; font-size: .875rem; }
.payment-copy strong { color: #1b5a42; }
.payment-track { background: #dce8e0; height: 10px; border-radius: 20px; overflow: hidden; }
.payment-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #328762; transition: width .25s ease; }
.payment-legend { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 6px; font-size: .8125rem; color: #52665c; }
.payment-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: #328762; }
.payment-legend span + span::before { background: #dce8e0; }
.table-card, .editor, .brand-preview { background: #fff; border: 1px solid #dbe6df; border-radius: 13px; }
.section-heading { min-height: 52px; padding: 8px 16px; }
.text-btn { background: transparent; border: 0; padding: 6px 0; font-size: .875rem; font-weight: 700; color: #225e48; }
.text-btn:hover { text-decoration: underline; }
.table-scroll { overflow-x: auto; border-radius: 0 0 13px 13px; }
.demo-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
.demo-table th { color: #455d51; background: #edf3ef; font-weight: 700; }
.demo-table td, .demo-table th { padding: 10px 12px; }
.demo-table td:first-child, .demo-table th:first-child { padding-left: 16px; white-space: nowrap; }
.demo-table tr + tr td { border-top: 1px solid #edf3ef; }
.demo-table td:nth-child(2) { overflow-wrap: anywhere; }
.invoice-amount { font-weight: 700; white-space: nowrap; }
.invoice-actions { display: flex; gap: 5px; }
.row-btn { color: #234c3a; background: #fff; border: 1px solid #cfded5; border-radius: 6px; padding: 5px 7px; white-space: nowrap; font-size: .8125rem; font-weight: 700; }
.row-btn:hover { background: #edf7f0; }
.status { display: inline-block; padding: 3px 8px; border-radius: 20px; background: #e8eff8; color: #345275; font-weight: 700; }
.status-paid { background: #dbf3e5; color: #1b5f41; }
.status-overdue { background: #fbe8e3; color: #913c29; }
.editor { margin-bottom: 16px; padding: 16px; }
.editor h3 { margin-bottom: 12px; }
.editor-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.invoice-fields { grid-template-columns: 1.15fr 1.2fr .65fr auto; }
.editor label { display: grid; gap: 5px; min-width: 0; font-size: .875rem; font-weight: 700; }
.editor input, .editor select { width: 100%; min-width: 0; min-height: 42px; padding: 7px 9px; border: 1px solid #bacdc1; border-radius: 7px; background: #fff; color: #152923; font-size: 1rem; }
.branding-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.branding-layout .editor { margin: 0; }
.branding-layout label { margin-bottom: 12px; }
.editor input[type=color] { width: 66px; padding: 3px; }
.brand-preview { align-self: start; padding: 18px; border-top: 5px solid var(--demo-accent); }
.brand-preview div { display: grid; gap: 6px; padding-bottom: 14px; overflow-wrap: anywhere; }
.brand-preview span { color: #52665c; font-size: .8125rem; font-weight: 700; }
.brand-preview div strong { font: 800 1.35rem Manrope, sans-serif; }
.brand-preview p { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid #dbe6df; }
.demo-feedback { min-height: 1.25em; margin-top: 10px; font-size: .875rem; color: #225e48; }
.demo-feedback:empty { margin-top: 0; min-height: 0; }
#pdfSampleTemplate { padding: 24px; color: #152923; background: white; overflow-wrap: anywhere; }
@media (max-width: 970px) {
  .demo-shell { grid-template-columns: 176px minmax(0, 1fr); }
  .invoice-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .demo-shell { grid-template-columns: minmax(0, 1fr); }
  .demo-sidebar { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; }
  .workspace-brand { padding: 0; margin: 0; border: 0; }
  .workspace-nav { grid-row: 2; grid-column: 1 / -1; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .workspace-nav .demo-nav-btn { justify-content: center; padding-inline: 4px; gap: 5px; }
  .reset-btn { grid-column: 2; grid-row: 1; width: auto; }
  .demo-main { min-height: 0; }
}
@media (max-width: 520px) {
  .site-nav { min-height: 64px; }
  .site-links { gap: 0; }
  .overview-link, .wordmark span, .nav-icon { display: none; }
  .intro { flex-direction: column; align-items: start; gap: 12px; }
  .demo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-card, .branding-layout, .customer-fields { grid-template-columns: minmax(0, 1fr); }
  .payment-card { gap: 8px; }
  .panel-heading { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .payment-track span { transition: none; }
}

.quote-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid #dbe6df; }
.quote-row small { display: block; color: #52665c; }
.quote-preview { margin-top: 16px; border-top: 4px solid var(--demo-accent); }
.quote-preview p { margin-bottom: 8px; }
@media (max-width: 520px) {
  .workspace-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cash-demo-totals { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .875rem; color: #52665c; }
.cash-demo-totals strong { display: block; color: #173c2d; font-size: 1.25rem; }
