.accurate-additional-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  padding: 8px 10px;
  align-items: start;
}
.accurate-additional-info.single-column {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}
.accurate-additional-info section {
  margin-bottom: 16px;
}
.accurate-additional-info h3 {
  font-size: 22px;
  font-weight: 400;
  color: #2e67fe;
  border-bottom: 1px solid #c9cdd5;
  padding: 0 0 5px;
  margin: 0 0 10px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.accurate-additional-info h3 i {
  font-size: 20px;
}
.accurate-additional-info .field,
.accurate-additional-info .additional-field {
  display: grid;
  grid-template-columns: 32% minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 9px;
  padding-left: 20px;
}
.accurate-additional-info label {
  font-size: 15px;
  text-align: left;
  padding-top: 7px;
}
.accurate-additional-info textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
}
.accurate-additional-info textarea[name='toAddress'] {
  min-height: 85px;
}
.accurate-additional-info .tax-options {
  grid-template-columns: 30% 1fr 1.2fr;
  gap: 8px;
}
.accurate-additional-info .tax-options .field {
  padding: 0;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}
.accurate-additional-info .tax-options .field label {
  font-size: 14px;
  white-space: nowrap;
  padding-top: 0;
}
.accurate-additional-info .tax-options input[type='checkbox'] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  flex: none;
}
.accurate-additional-info input[readonly] {
  background: #f5f7fb;
}
.accurate-additional-info .accurate-date {
  max-width: 233px;
}
.document-total-box {
  display: flex;
  justify-content: flex-end;
  border: 1px solid #bcc0c8;
  border-radius: 6px;
  background: #f8fafe;
  box-shadow: 0 1px 2px rgba(16, 29, 66, 0.06), 0 2px 8px rgba(16, 29, 66, 0.06) ;
  padding: 8px 12px;
  min-width: min(590px, 100%);
  max-width: 100%;
}
.document-total-cell {
  padding: 3px 18px;
  min-width: 150px;
  border-right: 1px solid #d1d5dd;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.document-total-cell:last-child {
  border-right: 0;
}
.document-total-cell > span,
.document-total-cell > div:first-child {
  font-size: 15px;
}
.document-total-cell strong {
  text-align: right;
  font-size: 15px;
}
.document-discount > div {
  display: flex;
  gap: 5px;
  align-items: center;
}
.document-discount button {
  padding: 0 4px;
  min-height: 20px;
  height: 20px;
  font-size: 12px;
}
.document-discount input {
  height: 32px;
  width: 165px;
  text-align: right;
}
@media (max-width: 850px) {
  .accurate-additional-info {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .document-total-box {
    flex-wrap: wrap;
    min-width: 0;
  }
  .document-total-cell {
    min-width: 110px;
    padding: 3px 8px;
  }
  .document-discount input {
    width: 130px;
  }
}
@media (max-width: 500px) {
  .accurate-additional-info .field,
  .accurate-additional-info .additional-field {
    grid-template-columns: 90px minmax(0, 1fr);
    padding-left: 0;
    gap: 8px;
  }
  .accurate-additional-info .tax-options {
    display: flex;
    flex-wrap: wrap;
  }
  .accurate-additional-info .tax-options > label {
    width: 100%;
  }
}
.import-dialog {
  width: min(1080px, 80vw);
  max-height: 70vh;
  overflow: auto;
}
.import-dialog > div:first-child,
.import-dialog > div:nth-child(3) {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.import-dialog table {
  width: 100%;
}
.import-dialog table select {
  width: 100%;
}
.import-dialog > button {
  margin: 10px 8px 10px 0;
}

.expense-grid-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
}
.expense-grid-controls > .lookup {
  width: 380px;
  max-width: 45%;
}
.expense-grid-controls h2 {
  font-size: 23px;
  font-weight: 400;
  margin: 0;
}
.expense-detail-grid th:nth-child(1) {
  width: 58%;
}
.expense-detail-grid th:nth-child(2) {
  width: 11%;
}
.expense-detail-grid th:nth-child(3) {
  width: 13%;
}
.expense-detail-grid th:nth-child(4) {
  width: 18%;
}

.form-page:has(> .report-paper) {
  background: #62666d;
  overflow: auto;
  padding: 0 0 24px;
}
.form-page:has(> .report-paper) > .report-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ebeff8;
  justify-content: center;
  min-height: 42px;
  margin: 0;
  padding: 4px 12px;
}
.report-toolbar button {
  border: 0;
  background: transparent;
  color: #0b1424;
  min-width: 32px;
  padding: 5px;
}
.report-paper {
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 40px 30px;
  min-height: 1054px;
}
.report-paper:has(.financial-statement) {
  width: 744px;
  max-width: calc(100vw - 82px);
  padding: 40px 40px;
}
.report-paper > h3 {
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 400;
  margin: 0 0 3px;
}
.report-paper > h2 {
  font: 700 24px 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: #a60037;
  margin: 0 0 2px;
}
.report-paper > .period {
  font: 13px 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  text-align: center;
  color: #0a111e;
}
.financial-statement.report-summary {
  width: 490px;
  max-width: 100%;
  margin: 46px auto 15px;
}
.statement-table,
.report-paper .statement-table td,
.report-paper .statement-table .report-link {
  font: 11px 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}
.statement-table td {
  padding: 3px 6px;
}
.statement-table .statement-heading td {
  padding-top: 19px;
  padding-bottom: 6px;
}
.statement-table .statement-parent td {
  font-weight: bold;
}
.report-paper .statement-table .statement-parent .report-link,
.report-paper .statement-table .statement-total .report-link,
.report-paper .statement-table .statement-net .report-link {
  font-weight: inherit;
}
.statement-table .statement-total td {
  padding-top: 6px;
  font-weight: normal;
}
.statement-table .statement-net td {
  padding-top: 21px;
  font-weight: bold;
}
.statement-table .statement-net .num {
  border-top: 1px solid #0a111e;
}
.report-ledger {
  width: 1182px;
  max-width: calc(100vw - 82px);
  min-height: 835px;
}
.report-ledger .drill-reconciliation {
  font: italic 9px 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  text-align: right;
  margin: 8px 0 29px;
}
.report-ledger .data-grid {
  font: 11px 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  border: 0;
  background: #fff;
}
.report-ledger .data-grid th {
  background: white;
  color: #183670;
  border: 0;
  border-bottom: 1px solid #303339;
  padding: 4px 7px;
}
.report-ledger .data-grid td {
  border: 0;
  background: white;
  padding: 4px 7px;
}
.report-ledger .report-link {
  font: 11px 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: #0a111e;
  text-decoration: none;
}
.report-ledger .report-link:hover {
  text-decoration: underline;
  color: #2149a9;
}
@media (max-width: 700px) {
  .report-paper:has(.financial-statement) {
    padding: 30px 15px;
  }
  .financial-statement.report-summary {
    margin-top: 30px;
  }
  .report-paper > h2 {
    font-size: 20px;
  }
}

.coa-section h2 {
  font-size: 22px;
  font-weight: 400;
  color: #2e67fe;
  border-bottom: 1px solid #c9cdd5;
  padding-bottom: 5px;
  margin: 0 0 10px;
}
.account-page .coa-section {
  padding: 20px 10px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 26px;
}
.coa-section .field {
  grid-template-columns: 32% minmax(0, 1fr);
  gap: 12px;
  margin: 9px 20px;
  align-items: center;
}
.coa-section .field label {
  font-size: 15px;
  text-align: left;
}
.coa-section .coa-example {
  margin-left: calc(32% + 28px);
  font-style: italic;
  font-size: 15px;
}
.coa-sub-row {
  margin: 14px 20px 17px;
}
.coa-section .field:has(.coa-sub-auto) {
  grid-template-columns: 32% minmax(0, 1fr) auto;
}
.coa-section label.coa-sub-auto {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  white-space: nowrap;
}
.coa-sub-auto input {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
}
.account-page .coa-section > section {
  min-width: 0;
}
@media (max-width: 850px) {
  .account-page .coa-section {
    grid-template-columns: 1fr;
  }
  .coa-section .field {
    margin: 9px 0;
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .coa-section .field:has(.coa-sub-auto) {
    grid-template-columns: 120px minmax(0, 1fr) auto;
  }
}

.statement-table th {
  background: #fff !important;
}
.statement-table .statement-heading td {
  font-weight: 600;
}
.report-paper .statement-table th:last-child {
  font-size: 10px;
}
.invoice-header-exact input.invoice-currency[hidden] {
  display: none;
}
.invoice-header-exact .accurate-date {
  max-width: 178px;
}
.expense-grid-controls > .lookup {
  flex: none;
  min-width: 0;
  width: 380px;
  max-width: 45%;
}

.report-filter-info {
  font: italic 9px 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  text-align: right;
  margin: 7px 0 0;
  color: #0a111e;
}
.report-paper.report-ledger .report-filter-info {
  margin-bottom: 28px;
}
.report-paper:has(.financial-statement) .report-filter-info {
  margin-bottom: -17px;
}

/* Address pin dropdown (Send Address / Address) as in the original. */
.accurate-additional-info .address-picker-field { position: relative; }
.accurate-additional-info .address-pin { position: absolute; left: calc(32% - 56px); top: 0; width: 48px; height: 34px; border: 1px solid #2e5bcf; border-radius: 6px; background: #fff; color: #2e5bcf; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; }
.accurate-additional-info .address-entry { position: relative; min-width: 0; }
.accurate-additional-info .address-entry textarea { padding-right: 62px; }
.accurate-additional-info .address-entry .address-pin { left: auto; right: 6px; top: 6px; }
.accurate-additional-info .address-menu { position: absolute; z-index: 30; left: 0; top: 36px; min-width: 100%; max-width: 90vw; background: #fff; border: 1px solid #c8ccd4; box-shadow: 0 12px 32px rgba(16, 29, 66, 0.16), 0 2px 6px rgba(16, 29, 66, 0.08) ; display: flex; flex-direction: column; }
.accurate-additional-info .address-menu button { border: 0; background: #fff; text-align: left; padding: 10px 12px; font-size: 13px; white-space: nowrap; cursor: pointer; }
.accurate-additional-info .address-menu button:hover { background: #f2f4f9; }

/* Report toolbar: larger Print / Save PDF (and sibling) buttons. */
.form-page:has(> .report-paper) > .report-toolbar { min-height: 52px; gap: 6px; }
.report-toolbar button { min-width: 42px; min-height: 40px; padding: 7px 9px; border-radius: 8px; }
.report-toolbar button i, .report-toolbar button [class^="icn-"], .report-toolbar button [class*=" icn-"] { font-size: 22px; transform: scale(1.3); }
.report-toolbar button:hover { background: #e3e8f0; }
/* Multi Period / Multi Year / Quarterly statements: one column per period plus Total, as in the original. */
.statement-periods .statement-table { width: max-content; min-width: 100%; table-layout: auto; }
.statement-periods .statement-table th.num { text-align: right; white-space: nowrap; }
.statement-periods .statement-table .num { min-width: 0; white-space: nowrap; padding-left: 10px; }
.statement-periods .statement-table td:first-child { white-space: nowrap; }
.statement-periods .statement-table .statement-total td { font-weight: bold; }
.statement-periods .statement-table .statement-total .num { border-top: 1px solid #0a111e; }
.statement-periods .statement-table .statement-period-total { font-weight: bold; }
.report-paper:has(.statement-periods) { width: max-content; max-width: none; min-width: min(100%, 744px); }
.report-paper .financial-statement.statement-periods { width: max-content; min-width: 490px; max-width: none; margin-left: auto; margin-right: auto; }
.report-multi-year .statement-table th:first-child { min-width: 250px; }
.report-multi-year .statement-table .num { min-width: 110px; }

/* Jasper's currency/partner tables use compact rows on a white report page. */
.report-paper.report-partners { width: 1122px; max-width: none; min-height: 794px; padding: 40px 30px; font: 12px 'Plus Jakarta Sans', 'Segoe UI', sans-serif; }
.report-partners > h3 { font: 13px 'Courier New', monospace; }
.report-partners > h2 { color: #a60037; font: bold 24px 'Plus Jakarta Sans', 'Segoe UI', sans-serif; }
.report-partners > .period { font: 13px 'Courier New', monospace; }
.report-partners .partner-report-body { margin-top: 28px; }
.report-partners .report-currency-section { margin-bottom: 25px; }
.report-partners .report-partner-section { margin: 0 0 18px; break-inside: avoid; }
.report-partners h4, .report-partners h5 { font: bold 12px 'Plus Jakarta Sans', 'Segoe UI', sans-serif; margin: 8px 0; }
.report-partners .report-currency-heading { margin: 10px 0 12px; }
.report-partners .partner-existing-credit { font-weight: bold; margin: 0 0 8px; }
.report-partners .partner-report-table { width: 100%; border-collapse: collapse; table-layout: fixed; font: 12px 'Plus Jakarta Sans', 'Segoe UI', sans-serif; color: #0a111e; }
.report-partners .partner-report-table th { height: auto; padding: 4px 5px; text-align: left; background: #fff; color: #0a111e; border: 0; border-bottom: 1px solid #0a111e; font-weight: bold; overflow-wrap: anywhere; }
.report-partners .partner-report-table td { height: auto; padding: 4px 5px; border: 0; background: #fff; vertical-align: top; overflow-wrap: anywhere; }
.report-partners .partner-report-table .num { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: normal; }
.report-partners .partner-report-table .report-link { font: inherit; color: inherit; text-align: inherit; text-decoration: none; padding: 0; border: 0; background: none; min-height: 0; }
.report-partners .partner-report-table .report-link:hover { color: #2149a9; text-decoration: underline; }
.report-partners .partner-report-table tfoot td { font-weight: bold; padding-top: 5px; }
.report-partners .partner-report-table tfoot .subtotal-value { border-top: 1px solid #0a111e; }
.report-partners .partner-report-table th:first-child { width: 22%; }
.report-partners[data-partner-layout='currency-summary'] .partner-report-table th:first-child,
.report-partners[data-partner-layout='currency-ledger'] .partner-report-table th:first-child { width: 24%; }
.report-partners[data-partner-layout='partner-history'] .partner-report-table th:nth-child(3),
.report-partners[data-partner-layout='partner-ledger-detail'] .partner-report-table th:nth-child(3),
.report-partners[data-partner-layout='partner-statement'] .partner-report-table th:nth-child(3) { width: 32%; }
.report-partners .partner-statement-contact { display: grid; grid-template-columns: 100px 1fr; gap: 4px; margin: 0 0 12px; font-weight: bold; }
.report-partners .partner-statement-contact dd { margin: 0; }
.report-partners .partner-ending-total { text-align: right; border-top: 1px solid #0a111e; font-weight: bold; padding-top: 5px; }
.report-partners .currency-subtotal-table { margin-top: 12px; }
.report-partners .currency-summary-table th,
.report-partners .currency-summary-table td { border: 1px solid #0a111e; padding: 4px 7px; }
.report-partners .currency-summary-table th { background: #f5f7fa; font-weight: normal; }
.report-partners .currency-summary-table th:first-child { width: 10%; background: #c9ddfe; }
.report-partners .currency-summary-table th:nth-child(2) { width: 22%; background: #c9ddfe; }
.report-partners .currency-summary-table td.currency-name { vertical-align: middle; background: #f5f7fa; }
.report-partners .currency-summary-table td:not(.num) { background: #f5f7fa; }
.report-partners .currency-summary-table .partner-subtotal td { background: #c9ddfe; font-weight: normal; }
.report-partners[data-partner-layout='currency-summary'] .aging-summary-table th:first-child { width: 10%; }
.report-partners .invoice-summary-table { width: 744px; max-width: 100%; margin: 0 auto; }
.report-partners .partner-report-table th { color: #183670; }
.report-partners .currency-summary-table th { color: #0a111e; }
.report-partners[data-report-id='06-013'] { width: 1587px; }
.report-partners[data-report-id='06-013'] .partner-report-table { table-layout: auto; font-size: 11px; }
.report-partners[data-report-id='06-013'] .partner-report-table th { min-width: 80px; overflow-wrap: normal; }
.report-partners[data-report-id='06-013'] .partner-report-table th:first-child { width: 210px; min-width: 210px; }

/* All ordinary report grids share the compact Jasper table metrics. */
.report-paper .data-grid { font: 11px 'Plus Jakarta Sans', 'Segoe UI', sans-serif; border-collapse: collapse; color: #0a111e; }
.report-paper .data-grid th { height: auto; padding: 4px 7px; font-weight: bold; vertical-align: bottom; }
.report-paper .data-grid td { height: auto; padding: 4px 7px; border: 0; vertical-align: top; }
.report-paper .data-grid tbody tr:nth-child(even) { background: #fff; }
.report-paper .data-grid td.num { white-space: nowrap; }
.report-paper .data-grid .report-link { font: inherit; color: inherit; padding: 0; min-height: 0; text-decoration: none; }
.report-paper .data-grid .report-link:hover { color: #2149a9; text-decoration: underline; }
.report-paper .data-grid .flow-reference { white-space: pre-line; }
.report-paper .data-grid .report-group-total td.num,
.report-paper .data-grid tfoot td.num { font-weight: bold; border-top: 1px solid #0a111e; }
@media print {
  .report-paper.report-partners { width: 100%; max-width: 100%; min-height: 0; padding: 0; }
  .report-partners thead { display: table-header-group; }
  .report-partners .report-currency-section { break-inside: auto; }
}
