/* Accountive Lite v97: credits banner + dialogs (acv97-credits.js) */
.acv97-credits { display: grid; gap: 8px; margin: 8px 0 4px; }
.acv97-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #b7d7c4; border-radius: 6px; background: #eef8f2; color: #14532d; font-size: 13.5px; }
.acv97-link { border: 0; background: none; padding: 0; color: #1d4ed8; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.acv97-link:focus-visible, .acv97-primary:focus-visible, .acv97-ghost:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }
.acv97-applied { border: 1px solid #e3e6ec; border-radius: 6px; padding: 6px 10px; background: #fff; }
.acv97-applied summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.acv97-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.acv97-table th, .acv97-table td { border-bottom: 1px solid #e8eaef; padding: 6px 8px; text-align: left; }
.acv97-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: #5b6475; background: #f6f7f9; }
.acv97-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.acv97-table input { width: 110px; text-align: right; border: 1px solid #c9ced8; border-radius: 4px; padding: 4px 6px; font: inherit; }
.acv97-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow: auto; }
.acv97-dialog { background: #fff; color: #111827; border-radius: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); width: min(820px, 100%); padding: 18px 20px; display: grid; gap: 12px; }
.acv97-dialog.acv97-small { width: min(480px, 100%); }
.acv97-dialog h2 { margin: 0; font-size: 17px; }
.acv97-dialog p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.acv97-dialog label { display: grid; gap: 4px; font-size: 12.5px; color: #374151; }
.acv97-dialog label input, .acv97-dialog label select { border: 1px solid #c9ced8; border-radius: 4px; padding: 6px 8px; font: inherit; font-size: 13.5px; }
.acv97-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.acv97-due { display: grid; gap: 2px; text-align: right; font-size: 12.5px; color: #374151; }
.acv97-tablewrap { overflow-x: auto; border: 1px solid #e3e6ec; border-radius: 6px; }
.acv97-sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 0 0 0 auto; min-width: 260px; font-size: 13.5px; }
.acv97-sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.acv97-err { color: #b42318; font-size: 13px; min-height: 1em; }
.acv97-err:empty { display: none; }
.acv97-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.acv97-primary, .acv97-ghost { border-radius: 6px; padding: 7px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.acv97-primary { background: #167d91; color: #fff; border: 1px solid #167d91; }
.acv97-primary:disabled { opacity: .55; cursor: default; }
.acv97-ghost { background: #fff; color: #1f2937; border: 1px solid #c9ced8; }
.acv97-flash { position: fixed; right: 16px; bottom: 16px; z-index: 1001; max-width: min(420px, calc(100vw - 32px)); background: #14532d; color: #fff; padding: 10px 14px; border-radius: 6px; font-size: 13.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .acv97-dialog, :root:not([data-theme="light"]) .acv97-applied { background: #1b2230; color: #e5e7eb; }
  :root:not([data-theme="light"]) .acv97-banner { background: #10301f; color: #c6f0d6; border-color: #22543a; }
}
