/* Profit and loss statement and balance sheet maker. Loaded after demo.css, getpaid.css and calc.css. */
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; padding-bottom: 2.5rem; }
.st-form h2 { margin: 1.75rem 0 0.35rem; font-size: 1.125rem; }
.st-form h2:first-of-type { margin-top: 0; }
.st-form > .hint { margin: 0.75rem 0; max-width: 70ch; }
.st-form h2 + .hint { margin-top: 0; }
.st-form .cf { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.st-form .cf input, .st-form .cf select { font-size: 1rem; }
.st-form .cl-check { margin: 1rem 0 0.25rem; }
#st-cmp-wrap { margin: 0.75rem 0 0.5rem; }
.st-cols, .st-row { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem 5.5rem; gap: 0.4rem 0.6rem; align-items: center; }
.st-on .st-cols, .st-on .st-row { grid-template-columns: minmax(0, 1fr) 7rem 7rem 5.5rem; }
.st-form:not(.st-on) .st-b { display: none; }
.st-cols { font-size: 0.8125rem; color: var(--muted); padding: 0.25rem 0; }
.st-cols span:nth-child(n+2) { text-align: right; padding-right: 0.65rem; }
.st-row { padding: 0.3rem 0; }
.st-row input { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 0.45rem 0.65rem; width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.st-row input[inputmode] { text-align: right; }
.st-x { padding: 0.35rem 0.6rem; font-size: 0.875rem; }
.st-share { grid-column: 2 / span 1; font-size: 0.8125rem; color: var(--muted); text-align: right; padding-right: 0.65rem; margin-top: -0.2rem; }
.st-share:empty { display: none; }
.st-foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; margin-top: 0.5rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--rule); }
.st-foot span { font-weight: 500; font-variant-numeric: tabular-nums; }
.st-form textarea { width: 100%; font: 0.875rem/1.5 "DM Mono", ui-monospace, Menlo, Consolas, monospace; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 0.6rem 0.7rem; resize: vertical; display: block; margin-top: 0.3rem; }
.st-paste { display: block; margin-top: 0.9rem; font-size: 0.875rem; color: var(--muted); }
.st-acts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
#st-msg { margin: 0.75rem 0 0; color: var(--ink); }
#st-msg:empty { display: none; }
.st-side { position: sticky; top: 1rem; min-width: 0; }
.st-side .gp-out { margin: 0 0 0.9rem; }
.st-check { margin: 0 0 0.9rem; padding: 0.7rem 0.9rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; font-size: 0.9375rem; max-width: 70ch; }
.st-check.bad { color: var(--neg); border-color: var(--neg); background: #fff; }
.st-scroll { overflow-x: auto; }
.st-paper { background: #fff; color: #181715; border: 1px solid #d4d4cc; box-shadow: 0 1px 2px rgba(24, 23, 21, 0.06), 0 6px 18px rgba(24, 23, 21, 0.06); padding: 2.25rem 2.25rem 1.5rem; font-size: 0.9375rem; line-height: 1.4; }
.st-paper p { margin: 0; }
.st-dh { text-align: center; padding-bottom: 1rem; margin-bottom: 0.5rem; border-bottom: 2px solid #181715; }
.st-co { font-weight: 600; font-size: 1.0625rem; }
.st-dh h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0.15rem 0 0.2rem; }
.st-dh p:last-child { color: #4a4945; }
.st-phc, .st-ph td { color: #a3a29b; }
.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-t { width: 100%; font-size: 0.875rem; border-collapse: separate; border-spacing: 0; }
.st-t.st-cmp { min-width: 36rem; font-size: 0.8125rem; }
.st-t td:first-child { min-width: 9.5rem; }
.st-cmp td:first-child { min-width: 10.5rem; }
.st-t th, .st-t td { border: 0; padding: 0.22rem 0.45rem; position: static; vertical-align: baseline; }
.st-t th:first-child, .st-t td:first-child { padding-left: 0; }
.st-t th:last-child, .st-t td:last-child { padding-right: 0; }
.st-t thead th { color: #6a6964; font-weight: 500; font-size: 0.8125rem; border-bottom: 1px solid #181715; padding-top: 0.5rem; white-space: normal; vertical-align: bottom; }
.st-t td.r { white-space: nowrap; }
.st-t tbody, .st-t tbody tr { break-inside: avoid; page-break-inside: avoid; }
.st-gh th { font-size: 1rem; font-weight: 600; color: #181715; padding-top: 1.1rem; border-bottom: 1px solid #c9c9c1; }
.st-sh th { font-weight: 600; color: #181715; padding-top: 0.85rem; white-space: normal; }
.st-l td:first-child { padding-left: 1rem; overflow-wrap: anywhere; }
.st-ph td { padding-left: 1rem !important; font-size: 0.8125rem; }
.st-pc { color: #6a6964; }
.st-st td { font-weight: 500; }
.st-st td.r:not(.st-pc), .st-kt td.r:not(.st-pc), .st-gt td.r:not(.st-pc) { background: linear-gradient(#181715, #181715) no-repeat right top / calc(100% - 0.6rem) 1px; }
.st-kt td, .st-gt td { border-top: 0.45rem solid transparent; padding-top: 0.3rem; }
.st-kt td { font-weight: 600; }
.st-gt td { font-weight: 700; }
.st-gt td.r:not(.st-pc) { background: linear-gradient(#181715, #181715) no-repeat right top / calc(100% - 0.6rem) 1px, linear-gradient(#181715, #181715) no-repeat right bottom 3px / calc(100% - 0.6rem) 1px, linear-gradient(#181715, #181715) no-repeat right bottom / calc(100% - 0.6rem) 1px; padding-bottom: 0.45rem; }
@media print { .st-st td.r, .st-kt td.r, .st-gt td.r { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.st-m td { font-size: 0.8125rem; color: #6a6964; padding-bottom: 0.4rem; }
.st-kf { margin-top: 1.25rem; }
.st-kf td.r { width: 8rem; }
.st-off td { color: #9c3320; font-weight: 600; }
.st-note { margin-top: 1.5rem !important; font-size: 0.75rem; color: #6a6964; }
.st-made { margin-top: 0.4rem !important; font-size: 0.75rem; color: #8a8983; }
@media (max-width: 899px) {
  .st-grid { grid-template-columns: 1fr; }
  .st-side { position: static; }
}
@media (max-width: 599px) {
  .st-paper { padding: 1.25rem 1rem 1rem; font-size: 0.875rem; }
  .st-t { font-size: 0.8125rem; }
  .st-l td:first-child, .st-ph td { padding-left: 0.6rem !important; }
  .st-cols, .st-row, .st-on .st-cols, .st-on .st-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .st-form:not(.st-on) .st-cols, .st-form:not(.st-on) .st-row { grid-template-columns: minmax(0, 1fr) auto; }
  .st-cols span:first-child, .st-row input[data-f="name"] { grid-column: 1 / -1; }
  .st-cols span:nth-child(n+2) { text-align: left; }
  .st-row { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
  .st-row:last-child { border-bottom: 0; }
  .st-share { grid-column: 1 / -1; text-align: left; margin-top: 0; }
  .st-acts .gp-btn, .st-acts .btn, .st-side .gp-out .gp-btn { flex: 1 1 100%; }
}
@media print {
  @page { margin: 0.6in; }
  .st-form, .st-side > .gp-out, .st-side > .hint, .st-check, .st-ph, .st-phc { display: none !important; }
  .st-grid { display: block; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .st-side { position: static; }
  .st-scroll { overflow: visible; }
  .st-paper { border: 0; box-shadow: none; padding: 0; font-size: 10.5pt; }
  .st-t.st-cmp { min-width: 0; }
  .st-t thead { display: table-header-group; }
  .st-made { color: #777; font-size: 8pt; }
}
