/* receivables-payables-reconciliation-001 — cream shell, light surfaces, one primary action */
[data-recon-page] {
  margin: 0;
  min-height: 100vh;
  background: var(--bg, #f7f3ea);
  color: var(--ink, #17211d);
  font: 16px/1.45 system-ui, -apple-system, sans-serif;
}

.recon-topbar {
  display: none;
}

[data-recon-page] .topbar {
  width: min(100%, 1440px);
  margin-inline: auto;
}

[data-recon-page] .homepage-peer-nav-host {
  width: min(100%, 1100px);
  margin: 4px auto 0;
  padding: 0 16px;
}

.recon-entry-tools,
.recon-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: stretch;
  margin-top: 12px;
}

.recon-tools {
  margin: 0 0 14px;
}

.recon-settings-gate {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f3eee3;
}

.recon-settings-gate p {
  margin: 0 0 10px;
}

.recon-settings-gate p:last-child {
  margin-bottom: 0;
}

.recon-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px 8px;
}

.recon-lead h1 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 600;
  color: #165536;
}

.recon-lead p,
.recon-note,
.recon-help {
  margin: 0 0 8px;
  color: var(--muted, #64716b);
  font-weight: 400;
}

.recon-workspace-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  width: 100%;
  max-width: 100%;
  margin: 8px 0 0;
}

.recon-workspace-back {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid #165536;
  border-radius: 8px;
  background: #fff;
  color: #165536;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.recon-workspace-back:hover,
.recon-workspace-back:focus-visible {
  background: #edf5f1;
  color: #0f3f28;
  border-color: #0f3f28;
  outline: none;
}

.recon-workspace-back:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, #165536 22%, transparent);
}

.recon-workspace-list {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  box-sizing: border-box;
  min-height: 36px;
  margin: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #165536;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.recon-workspace-list:hover,
.recon-workspace-list:focus-visible {
  color: #0f3f28;
  text-decoration: underline;
  outline: none;
}

.recon-workspace-list:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, #165536 22%, transparent);
  border-radius: 6px;
}

.recon-basis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  width: 100%;
  margin: 0 0 12px;
}

.recon-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 44px;
  height: 100%;
  padding: 8px 10px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  line-height: 1.25;
}

.recon-chip input[type="checkbox"] {
  position: absolute;
  inset: 8px auto auto 10px;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  opacity: 0;
  pointer-events: none;
}

.recon-chip__box {
  box-sizing: border-box;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin-top: 0;
  border: 1.5px solid #165536;
  border-radius: 3px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #165536;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.recon-chip.is-on {
  background: #e8f3ec;
  border-color: #165536;
}

.recon-chip.is-on .recon-chip__box {
  background: #e8f3ec;
}

.recon-chip.is-on .recon-chip__box::after {
  content: "✓";
}

.recon-chip:focus-within {
  outline: 3px solid color-mix(in srgb, #165536 28%, transparent);
  outline-offset: 2px;
}

.recon-chip.is-on:focus-within {
  outline-color: color-mix(in srgb, #165536 28%, transparent);
}

.recon-chip__label {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.recon-field-error {
  margin: 4px 0 0;
  color: #9f1239;
  font-size: 0.85rem;
}

.recon-profile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.recon-profile-head h3 {
  margin: 0;
  font-size: 1rem;
}

.recon-cash-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.recon-cash-kinds button {
  min-height: 40px;
}

.recon-secondary.is-current,
.recon-peer-btns > button.is-current {
  background: #e8f3ec;
  border-color: #165536;
  color: #165536;
}

.recon-ledger-toolbar .recon-peer-btns > button {
  background: #fff;
  border-color: #165536;
  color: #165536;
}

.recon-ledger-toolbar .recon-peer-btns > button:hover:not(.is-current):not(:disabled) {
  background: #f4faf6;
}

.recon-ledger-toolbar .recon-peer-btns > button.is-current {
  background: #e8f3ec;
  box-shadow: inset 0 0 0 1px #165536;
}

.recon-ledger-toolbar .recon-peer-btns > button:focus {
  outline: none;
}

.recon-ledger-toolbar .recon-peer-btns > button:focus-visible {
  outline: 2px solid #0b3d2a;
  outline-offset: 3px;
}

.recon-note {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.recon-help-panel {
  margin: 8px 0 0;
  color: var(--muted, #64716b);
}

.recon-help-panel > summary {
  cursor: pointer;
  color: #165536;
  list-style: none;
}

.recon-help-panel > summary::-webkit-details-marker {
  display: none;
}

.recon-entry-switch,
.recon-dir-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.recon-entry-tab,
.recon-dir-switch button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
  color: #165536;
  font: inherit;
  font-size: 1rem;
  line-height: 1.25;
  cursor: pointer;
}

.recon-entry-tab.is-current,
.recon-dir-switch button.is-current {
  border-color: #165536;
  background: #165536;
  color: #fff;
}

.recon-party-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

.recon-party-current__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.recon-party-current strong {
  display: block;
  font-size: 1.05rem;
}

.recon-party-current__head strong {
  display: inline;
  min-width: 0;
  overflow-wrap: anywhere;
}

.recon-party-current .recon-actions {
  margin-top: 0;
}

.recon-add-party {
  width: 100%;
  min-height: 44px;
  white-space: normal;
}

.recon-party-list:empty {
  display: none;
}

.recon-profile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  container-type: inline-size;
  container-name: recon-profile;
}

.recon-profile .recon-more {
  margin: 0;
}

.recon-profile .recon-entry-actions {
  margin-top: 6px;
}

.recon-required-legend {
  margin: 0;
  font-size: 0.9rem;
  color: #3d4a44;
}

.recon-req {
  color: #9f1239;
  font-weight: 600;
}

.recon-profile-row {
  display: grid;
  gap: 12px 12px;
  min-width: 0;
}

.recon-profile .recon-field > span {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.recon-profile-more {
  display: grid;
  gap: 8px 16px;
}

.recon-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  width: auto;
  margin-top: 2px;
}

.recon-profile-actions > .recon-primary,
.recon-profile-actions > .recon-secondary {
  width: auto;
  min-width: 7.5rem;
  flex: 0 0 auto;
  padding-inline: 1rem;
}

.recon-profile .recon-field--note textarea {
  min-height: 40px;
}

@container recon-profile (min-width: 720px) {
  .recon-profile-row--identity {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .recon-profile-row--contact,
  .recon-profile-row--extra {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

@container recon-profile (min-width: 560px) and (max-width: 719px) {
  .recon-profile-row--identity,
  .recon-profile-row--contact,
  .recon-profile-row--extra {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 721px) {
  .recon-profile-more {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .recon-profile-more > details[open] {
    grid-column: 1 / -1;
  }
}

.recon-party-switch {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recon-party-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 16rem;
  overflow: auto;
}

.recon-ledger-currency {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
  color: #165536;
}

.recon-import-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0e8da;
}

.recon-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecec;
  color: #9f1239;
}

.recon-ok {
  margin: 0 0 12px;
  color: #165536;
}

.recon-block {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: #fffdfc;
  border-radius: 12px;
}

.recon-block--tight {
  padding: 12px 14px;
}

.recon-now {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recon-agreement-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding-top: 8px;
  border-top: 1px solid #f0e8da;
}

.recon-agreement-bar strong {
  display: block;
}

.recon-agreement-editor {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #f0e8da;
  min-width: 0;
  overflow-wrap: anywhere;
}

.recon-last-saved {
  margin-top: 12px;
  padding: 10px 12px;
  background: #edf5f1;
  border-radius: 10px;
}

.recon-last-saved__label {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: #3d4a44;
}

.recon-last-saved p {
  margin: 0 0 6px;
}

.recon-last-saved p:last-child {
  margin-bottom: 0;
}

.recon-block h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.recon-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 10px;
}

.recon-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recon-row--agree-detail {
  align-items: start;
}

.recon-term-row__money {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recon-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.recon-field span {
  font-size: 0.9rem;
  color: #3d4a44;
  overflow-wrap: anywhere;
}

.recon-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: #3d4a44;
}

.recon-check input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  flex: 0 0 16px;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.recon-order-terms {
  margin: 8px 0 12px;
}

.recon-order-terms__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
}

.recon-order-terms__summary {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.4;
}

.recon-order-terms [data-action="edit-order-terms"] {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 12px;
}

.recon-order-terms .recon-terms {
  margin-top: 10px;
}

@media (max-width: 430px) {
  .recon-order-terms__bar {
    flex-direction: column;
  }

  .recon-order-terms [data-action="edit-order-terms"] {
    align-self: flex-start;
  }
}

.recon-order-switch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(100%, 28rem);
}

.recon-order-switch__label {
  font-weight: 600;
}

.recon-order-switch__value {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.recon-order-switch__toggle {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
  padding: 10px 2.4rem 10px 10px;
  font: inherit;
  cursor: pointer;
  position: relative;
}

.recon-order-switch__toggle::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #165536;
  border-bottom: 2px solid #165536;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.recon-order-switch__toggle[aria-expanded="true"]::after {
  transform: translateY(-20%) rotate(225deg);
}

.recon-order-switch__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 16rem;
  overflow: auto;
}

.recon-order-switch__list[hidden] {
  display: none;
}

.recon-order-switch__option {
  text-align: left;
  border: 1px solid #eadfce;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.recon-order-switch__option.is-current {
  border-color: #165536;
  background: #edf5f1;
}

.recon-field input,
.recon-field select,
.recon-field textarea {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  font: inherit;
}

.recon-field textarea {
  min-height: 88px;
  resize: vertical;
  overflow-wrap: anywhere;
}

.recon-field--grow textarea {
  min-height: 40px;
  height: auto;
  overflow-x: hidden;
  overflow-y: hidden;
  resize: none;
}

.recon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  margin-top: 8px;
}

.recon-primary,
.recon-secondary {
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  border-width: 1px;
  border-style: solid;
  font: inherit;
  font-size: 1rem;
  line-height: 1.25;
  cursor: pointer;
}

.recon-primary {
  border-color: #165536;
  background: #165536;
  color: #fff;
}

.recon-secondary {
  border-color: #165536;
  background: #fff;
  color: #165536;
}

.recon-primary:disabled,
.recon-secondary:disabled,
.recon-entry-tab:disabled,
.recon-peer-btns > button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.recon-peer-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.recon-dir-switch.recon-peer-btns,
.recon-entry-switch.recon-peer-btns,
.recon-actions.recon-peer-btns {
  display: grid;
  flex-wrap: unset;
}

.recon-peer-btns--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recon-peer-btns > button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 100%;
  margin: 0;
  padding: 8px 10px;
  border-width: 1px;
  border-style: solid;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.recon-party-current .recon-peer-btns {
  width: min(100%, 22rem);
  flex: 1 1 12rem;
}

.recon-actions--mixed {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.recon-actions--mixed > .recon-primary,
.recon-actions--mixed > .recon-secondary,
.recon-actions--mixed > .recon-peer-btns {
  width: 100%;
  min-width: 0;
  height: 100%;
}

.recon-actions--mixed > .recon-primary,
.recon-actions--mixed > .recon-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow: visible;
}

.recon-entry-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px 14px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
}

.recon-entry-actions > .recon-primary,
.recon-entry-actions > .recon-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 44px;
  margin: 0;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 1rem;
  line-height: 1.25;
}

.recon-linkish {
  border: 0;
  background: transparent;
  color: #165536;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
}

.recon-party-list button {
  text-align: left;
  border: 1px solid #eadfce;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.recon-party-list button.is-current {
  border-color: #165536;
  background: #edf5f1;
}

.recon-table-wrap {
  overflow-x: auto;
}

.recon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.recon-table th,
.recon-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #f0e8da;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.recon-table th {
  font-weight: 600;
  color: #3d4a44;
}

.recon-card-list {
  display: none;
}

.recon-card {
  padding: 10px 0;
  border-bottom: 1px solid #f0e8da;
}

.recon-card strong {
  font-weight: 600;
}

.recon-more {
  margin-top: 8px;
}

.recon-more > summary {
  cursor: pointer;
  color: #165536;
  list-style: none;
}

.recon-more > summary::-webkit-details-marker {
  display: none;
}

.recon-more--notes > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 6px 0;
  cursor: pointer;
}

.recon-more--notes > summary::-webkit-details-marker,
.recon-more--notes > summary::marker {
  display: none;
  content: "";
}

.recon-more--notes > summary:focus-visible {
  outline: 3px solid color-mix(in srgb, #165536 28%, transparent);
  outline-offset: 2px;
}

.recon-more--notes > summary::before {
  content: "▶";
  flex: 0 0 auto;
  color: #165536;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.recon-more--notes[open] > summary::before {
  content: "▼";
}

.recon-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.recon-statement {
  padding: 12px;
  background: #f7f3ea;
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.recon-actions-board {
  margin: 0 0 16px;
}

.recon-actions-board h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.recon-actions-board .recon-linkish {
  font: inherit;
}

.recon-actions-board .recon-peer-btns > button,
.recon-credit p,
.recon-history span {
  overflow-wrap: anywhere;
  white-space: normal;
}

.recon-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #fff6e5;
  border-radius: 10px;
}

.recon-entry-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 16px;
}

#recon-import {
  display: block;
  width: 100%;
  min-width: 0;
}

.recon-match {
  margin: 0 0 10px;
  padding: 8px 0;
}

.recon-block h3 {
  margin: 12px 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

details.recon-block {
  padding-top: 12px;
}

.recon-party-meta {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted, #64716b);
}

.recon-party-actions,
.recon-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 12px;
}

.recon-history {
  list-style: none;
  padding: 0;
}

.recon-history li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recon-kept {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: #eef6f1;
  border-radius: 8px;
}

.recon-tools-label {
  width: 100%;
  color: var(--muted, #64716b);
  font-size: 0.92rem;
}

.recon-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 18px;
  align-items: start;
}

.recon-track {
  background: #fffdfc;
  border: 1px solid #eadfce;
  border-radius: 10px;
  padding: 12px 14px;
  overflow: visible;
}

.recon-track h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.recon-track p,
.recon-track ul {
  margin: 0 0 8px;
}

.recon-footer-tools {
  margin-top: 0;
  padding-top: 0;
}

.recon-aux {
  box-sizing: border-box;
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 0 32px;
}

.recon-footer-tools h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #165536;
}

.recon-role-switch {
  margin-bottom: 10px;
}

@media (max-width: 720px) {
  .recon-row,
  .recon-row--3,
  .recon-term-row__money {
    grid-template-columns: 1fr;
  }

  .recon-tracks {
    grid-template-columns: 1fr;
  }

  .recon-actions:not(.recon-peer-btns):not(.recon-actions--mixed):not(.recon-entry-actions):not(.recon-mobile-editor__save) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .recon-actions:not(.recon-peer-btns):not(.recon-actions--mixed):not(.recon-entry-actions):not(.recon-mobile-editor__save) > button {
    width: 100%;
  }

  .recon-table-wrap {
    display: none;
  }

  .recon-card-list {
    display: block;
  }

  .recon-main {
    overflow-x: hidden;
  }

  .recon-history li {
    flex-direction: column;
    align-items: stretch;
  }

  .recon-party-current .recon-peer-btns,
  .recon-agreement-bar .recon-peer-btns {
    width: 100%;
    flex-basis: 100%;
  }

  .recon-actions--mixed {
    grid-template-columns: 1fr;
  }

  .recon-entry-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .recon-basis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recon-workspace-nav {
    gap: 8px 16px;
  }
}

@media (max-width: 390px) {
  .recon-peer-btns--3 {
    grid-template-columns: 1fr;
  }

  .recon-workspace-nav {
    gap: 6px 16px;
  }

  .recon-profile .recon-row {
    grid-template-columns: 1fr;
  }

  .recon-add-party {
    min-height: 44px;
  }

  .recon-batch-party {
    grid-template-columns: 1fr;
  }
}

.recon-batch {
  display: grid;
  gap: 18px;
}

.recon-batch-party {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}

.recon-batch-party__selected {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.recon-batch-party__empty {
  margin: 0;
}

.recon-batch-party .recon-field input,
.recon-batch-party .recon-field select {
  min-width: 0;
  max-width: 100%;
}

.recon-party-gate .recon-primary {
  justify-self: start;
  min-height: 44px;
}

.recon-save-preview--error {
  background: #f8ece8;
}

.recon-batch-row {
  display: grid;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid #e6dfd0;
}

.recon-batch-row:last-of-type {
  border-bottom: 0;
}

.recon-entry-table h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.recon-entry-table__head {
  display: none;
}

.recon-entry-row__chrome,
.recon-batch-row__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.recon-entry-n {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.recon-field--seq {
  min-width: 0;
}

.recon-icon-btn {
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #165536;
  font: inherit;
  cursor: pointer;
}

.recon-entry-row__fields,
.recon-batch-row__main {
  display: grid;
  gap: 8px 10px;
  margin: 0;
  min-width: 0;
}

.recon-entry-rowline {
  display: grid;
  gap: 8px 10px;
  min-width: 0;
  align-items: end;
}

.recon-entry-rowline .recon-field,
.recon-entry-rowline .recon-entry-row__chrome {
  min-width: 0;
}

.recon-entry-rowline textarea {
  width: 100%;
  min-height: 44px;
  max-height: 4.8rem;
  resize: vertical;
}

.recon-entry-history-numbers {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .recon-entry-row__fields,
  .recon-batch-row__main,
  .recon-entry-rowline {
    grid-template-columns: minmax(7.5rem, 1fr) minmax(7rem, 1fr);
  }

  .recon-entry-table--orders .recon-entry-rowline--1 .recon-field--seq,
  .recon-entry-table--orders .recon-entry-rowline--1 .recon-field--ref,
  .recon-entry-table--orders .recon-entry-rowline--2 .recon-field--billed,
  .recon-entry-table--orders .recon-entry-rowline--2 .recon-field--received,
  .recon-entry-table--orders .recon-entry-rowline--2 .recon-field--open,
  .recon-entry-table--orders .recon-entry-rowline--2 .recon-field--note,
  .recon-entry-table--orders .recon-entry-rowline--2 .recon-entry-row__chrome,
  .recon-entry-table--cash .recon-entry-rowline--1 .recon-field--seq,
  .recon-entry-table--cash .recon-entry-rowline--1 .recon-field--method,
  .recon-entry-table--cash .recon-entry-rowline--2 .recon-field--payref,
  .recon-entry-table--cash .recon-entry-rowline--2 .recon-field--handler,
  .recon-entry-table--cash .recon-entry-rowline--2 .recon-field--note,
  .recon-entry-table--cash .recon-entry-rowline--2 .recon-entry-row__chrome {
    grid-column: 1 / -1;
  }

  .recon-entry-table--orders .recon-entry-rowline--1 .recon-field--date,
  .recon-entry-table--cash .recon-entry-rowline--1 .recon-field--date {
    grid-column: 1;
  }

  .recon-entry-table--orders .recon-entry-rowline--1 .recon-field--due,
  .recon-entry-table--cash .recon-entry-rowline--1 .recon-field--amount {
    grid-column: 2;
  }

  .recon-entry-row__fields .recon-field--seq,
  .recon-entry-row__fields .recon-field--ref,
  .recon-entry-row__fields .recon-entry-contract,
  .recon-entry-row__fields .recon-field--contract,
  .recon-entry-row__fields .recon-field--due,
  .recon-entry-row__fields .recon-field--note,
  .recon-entry-row__fields .recon-field--method,
  .recon-entry-row__fields .recon-entry-extras {
    grid-column: 1 / -1;
  }

  .recon-entry-row__fields .recon-field--date {
    grid-column: 1;
  }

  .recon-entry-row__fields .recon-field--amount {
    grid-column: 2;
  }
}

.recon-entry-row input,
.recon-entry-row select,
.recon-entry-row textarea,
.recon-opening-panel input,
.recon-opening-panel select {
  min-height: 44px;
  font-size: 16px;
  scroll-margin-bottom: 24px;
}

.recon-input-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.recon-field--contract select,
.recon-entry-contract select {
  max-width: 100%;
  text-overflow: ellipsis;
}

.recon-add-row {
  justify-self: start;
  width: auto;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #c8d9d0;
  border-radius: 8px;
  background: #fff;
  color: #165536;
  font: inherit;
  cursor: pointer;
}

.recon-table-total {
  margin: 4px 0 0;
  font-weight: 600;
}

.recon-entry-row__summary {
  margin: 0;
  overflow-wrap: anywhere;
}

.recon-entry-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.recon-opening-edit {
  display: grid;
  grid-template-columns: minmax(11.25rem, 15rem) max-content minmax(10.6rem, 12.5rem);
  justify-content: start;
  gap: 12px 12px;
  align-items: end;
}

.recon-opening-cutoff,
.recon-opening-inc-choice {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
}

.recon-opening-inc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (min-width: 721px) {
  .recon-opening-edit .recon-field--amount {
    max-width: 15rem;
  }

  .recon-opening-edit .recon-field--date {
    max-width: 12.5rem;
  }
}

.recon-field--sides {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.recon-opening-sides-label {
  display: block;
  min-height: 1.125rem;
  line-height: 1.25;
  font-size: 0.9rem;
}

.recon-opening-sides {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.recon-opening-sides .recon-secondary {
  min-height: 2.5rem;
  padding: 0.35rem 0.7rem;
}

.recon-unsaved {
  margin-left: 6px;
  color: #8a4b12;
  font-weight: 600;
}

.recon-opening-details {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e6dfd0;
}

.recon-opening-saved {
  margin: 0 0 8px;
  padding-left: 1.2em;
}

.recon-more--compact > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 2px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.recon-entry-extras__body {
  display: grid;
  gap: 8px;
  padding: 6px 0 0;
}

@media (max-width: 720px) {
  .recon-opening-edit {
    grid-template-columns: 1fr;
  }

  .recon-opening-edit .recon-field--amount,
  .recon-opening-edit .recon-field--date {
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .recon-opening-edit .recon-date-control {
    width: 100%;
  }

  .recon-opening-edit .recon-date-control input {
    min-width: 0;
    flex: 1 1 auto;
  }

  .recon-opening-sides,
  .recon-field--sides {
    grid-column: 1 / -1;
  }

  .recon-profile-row--identity,
  .recon-profile-row--contact,
  .recon-profile-row--extra {
    grid-template-columns: 1fr;
  }

  .recon-profile-more {
    grid-template-columns: 1fr;
  }

  .recon-profile-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .recon-profile-actions > .recon-primary,
  .recon-profile-actions > .recon-secondary {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .recon-entry-row__fields,
  .recon-batch-row__main,
  .recon-entry-rowline {
    grid-template-columns: minmax(7.5rem, auto) minmax(7rem, 1fr);
  }
}

@media (min-width: 721px) {
  .recon-entry-table--orders,
  .recon-entry-table--cash {
    display: grid;
    gap: 0;
  }

  .recon-entry-table__head {
    display: none;
  }

  .recon-entry-row,
  .recon-batch-row {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 6px;
    align-items: stretch;
    padding: 10px 0 12px;
    border-bottom: 1px solid #e6dfd0;
  }

  .recon-entry-row > .recon-field--seq {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  .recon-entry-row > .recon-entry-row__body {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    gap: 8px 10px;
    min-width: 0;
    max-width: 58rem;
  }

  .recon-entry-row > .recon-help,
  .recon-entry-row > .recon-doc-cash,
  .recon-entry-row > .recon-entry-history-numbers {
    grid-column: 2;
  }

  .recon-entry-table--orders .recon-entry-rowline--1 {
    grid-template-columns: repeat(3, minmax(8.6rem, 1fr));
    max-width: 34rem;
  }

  .recon-entry-table--orders .recon-entry-rowline--2 {
    grid-template-columns: repeat(3, minmax(8.4rem, 9.6rem)) minmax(7rem, 1fr) max-content;
  }

  .recon-entry-table--cash .recon-entry-rowline--1 {
    grid-template-columns: minmax(8.6rem, 11rem) minmax(8.4rem, 9.6rem) minmax(7.5rem, 11rem);
    max-width: 34rem;
  }

  .recon-entry-table--cash .recon-entry-rowline--2 {
    grid-template-columns: minmax(7.5rem, 11rem) minmax(6.5rem, 9rem) minmax(7rem, 1fr) max-content;
  }

  .recon-entry-rowline {
    align-items: start;
  }

  .recon-entry-table .recon-field > span {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 2.5em;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    font-weight: 600;
    line-height: 1.25;
  }

  .recon-entry-row .recon-field--amount > span,
  .recon-entry-row .recon-field--billed > span,
  .recon-entry-row .recon-field--received > span,
  .recon-entry-row .recon-field--open > span {
    justify-content: flex-end;
    text-align: right;
  }

  .recon-entry-row .recon-field--amount > input,
  .recon-entry-row .recon-field--amount > p,
  .recon-entry-row .recon-field--amount .recon-input-amount,
  .recon-entry-row .recon-field--amount .recon-amount-read,
  .recon-entry-row .recon-field--billed > input,
  .recon-entry-row .recon-field--billed > p,
  .recon-entry-row .recon-field--received > p,
  .recon-entry-row .recon-field--open > p {
    text-align: right;
  }

  .recon-amount-read {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border: 0;
    border-radius: 8px;
    background: #f4efe4;
    font-variant-numeric: tabular-nums;
    text-align: right;
  }

  .recon-entry-table .recon-entry-row__chrome {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: flex-end;
    align-items: center;
    align-self: start;
    gap: 6px;
    margin: 0;
    padding-top: calc(2.5em + 4px);
  }

  .recon-entry-row input[data-date="1"] {
    min-width: 8.4rem;
    width: 100%;
  }

  .recon-entry-row input.recon-input-amount {
    min-width: 0;
    width: 100%;
  }

  .recon-entry-row.is-saved .recon-field p,
  .recon-entry-row.is-saved .recon-entry-n {
    min-height: 44px;
    margin: 0;
    padding: 0 2px;
    display: flex;
    align-items: center;
    overflow-wrap: anywhere;
  }

  .recon-entry-row.is-saved .recon-field--note p {
    align-items: flex-start;
    width: 100%;
    padding-top: 10px;
  }

  .recon-entry-row.is-saved .recon-field--amount p,
  .recon-entry-row.is-saved .recon-field--billed p,
  .recon-entry-row.is-saved .recon-field--received p,
  .recon-entry-row.is-saved .recon-field--open p {
    justify-content: flex-end;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  .recon-entry-row.is-saved .recon-amount-read {
    padding: 0 8px;
    background: #f4efe4;
  }

  .recon-entry-table .recon-add-row,
  .recon-entry-table .recon-table-total,
  .recon-entry-table h3,
  .recon-entry-table .recon-entry-heading,
  .recon-entry-table .recon-help,
  .recon-entry-history-numbers {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .recon-entry-table .recon-add-row {
    margin-top: 8px;
  }

  .recon-entry-table .recon-table-total {
    margin-top: 4px;
  }

  .recon-entry-table h3,
  .recon-entry-table .recon-entry-heading {
    margin-bottom: 4px;
  }
}

.recon-entry-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.recon-entry-heading h3 {
  margin: 0;
}

.recon-account-summary {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #f4efe4;
  border-radius: 10px;
}

.recon-doc-cash {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid #d7d0c2;
  border-radius: 10px;
  background: #fbfaf6;
  display: grid;
  gap: 10px;
}

.recon-doc-cash__paths {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recon-entry-rowline--cashnew,
.recon-entry-rowline--cashnew2 {
  display: grid;
  gap: 8px 10px;
}

@media (min-width: 721px) {
  .recon-entry-rowline--cashnew {
    grid-template-columns: minmax(8.4rem, 9.6rem) minmax(8.6rem, 11rem) minmax(7.5rem, 11rem);
    max-width: 34rem;
  }

  .recon-entry-rowline--cashnew2 {
    grid-template-columns: minmax(7.5rem, 11rem) minmax(6.5rem, 9rem) minmax(7rem, 1fr);
  }

  .recon-doc-cash .recon-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
    margin-top: 4px;
  }
}

.recon-entry-table .recon-field > span {
  overflow-wrap: anywhere;
}

.recon-account-summary p,
.recon-account-summary ul {
  margin: 6px 0;
}

.recon-save-preview[data-after-save="1"] {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d7d0c2;
}

.recon-books-extra .recon-check-panel,
.recon-books-extra .is-print {
  margin-top: 12px;
  padding: 12px 0 0;
  border-top: 1px solid #e6dfd0;
}

.recon-file-preview {
  margin: 8px 0 12px;
}

.recon-party-current .recon-linkish {
  margin-top: 4px;
}

.recon-opening-panel {
  margin: 0 0 16px;
  padding: 0;
  border: none;
  background: transparent;
}

.recon-opening-panel h3,
.recon-opening-panel h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.recon-opening-panel--profile {
  margin: 12px 0 8px;
}

.recon-party-current .recon-party-meta[data-recon-opening-summary] {
  margin: 4px 0 0;
  display: block;
}

.recon-save-preview {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef6f0;
}

.recon-save-preview ul {
  margin: 6px 0;
  padding-left: 1.2em;
}

.recon-books-extra .recon-check-panel,
.recon-books-extra .recon-detail-panel {
  margin-top: 0;
}

.recon-net {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef6f0;
  font-weight: 600;
}

.recon-net[data-prepaid="true"] {
  background: #f3eee3;
}

.recon-check-panel {
  margin: 16px 0 24px;
  padding: 14px 16px;
  border: 1px solid #e6dfd0;
  border-radius: 12px;
  background: #fff;
  min-width: 0;
  overflow-wrap: anywhere;
}

.recon-check-panel h2 {
  margin: 0 0 8px;
}

.recon-check-fields {
  min-width: 0;
}

.recon-check-sides {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.recon-check-sides > button {
  min-width: 0;
  max-width: 100%;
}

.recon-check-lines {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.recon-check-lines p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f4ee;
}

.recon-check-lines[data-check-matched="true"] [data-check-result] {
  background: #eef6f0;
}

.recon-check-history {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recon-check-history li {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid #e6dfd0;
}

.recon-check-history li:last-child {
  border-bottom: 0;
}

@media (max-width: 430px) {
  .recon-check-panel .recon-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.recon-detail-panel .recon-detail-line {
  align-items: start;
}

.recon-detail-pairs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.recon-detail-pair {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e6dfd0;
  border-radius: 8px;
  background: #f7f4ee;
  overflow-wrap: anywhere;
}

.recon-detail-pair[data-status="matched"] {
  background: #eef6f0;
}

.recon-detail-pair[data-status="amount-different"],
.recon-detail-pair[data-status="possible-cross-period"],
.recon-detail-pair[data-status="suspected-duplicate"] {
  background: #f3eee3;
}

.recon-detail-mapping {
  margin: 12px 0;
}

@media (max-width: 430px) {
  .recon-detail-panel .recon-detail-line {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html {
    overflow-x: hidden;
  }

  .recon-mobile-books,
  .recon-mobile-editor {
    display: grid;
    gap: 12px;
    min-width: 0;
    width: 100%;
    padding-bottom: calc(5.5rem + var(--recon-keyboard-inset, 0px));
  }

  .recon-mobile-editor__party,
  .recon-mobile-editor__task {
    margin: 0;
  }

  .recon-mobile-editor__task {
    font-weight: 650;
  }

  .recon-mobile-list {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .recon-mobile-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 12px 10px;
    border: 1px solid #e6dfd0;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .recon-mobile-item__n {
    font-weight: 600;
    min-width: 1.5rem;
  }

  .recon-mobile-item__body {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .recon-mobile-item__body strong,
  .recon-mobile-item__body span {
    overflow-wrap: anywhere;
  }

  .recon-mobile-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
  }

  .recon-mobile-pair .recon-field,
  .recon-mobile-editor .recon-field--ref-full {
    min-width: 0;
  }

  .recon-mobile-results {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .recon-mobile-editor__save {
    position: sticky;
    bottom: var(--recon-keyboard-inset, 0px);
    z-index: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    background: #f7f3ea;
  }

  .recon-mobile-editor__save > .recon-primary,
  .recon-mobile-editor__save > .recon-secondary {
    flex: 1 1 7.5rem;
    width: auto;
    min-width: 0;
  }

  .recon-mobile-editor__save > .recon-linkish {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 10px;
  }

  .recon-mobile-compact-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
    margin: 0;
    font-variant-numeric: tabular-nums;
  }

  .recon-mobile-compact-amounts span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .recon-mobile-editor input,
  .recon-mobile-editor select,
  .recon-mobile-editor textarea {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  .recon-statement-table {
    display: block;
    width: 100%;
  }

  .recon-statement-table thead {
    display: none;
  }

  .recon-statement-table tbody,
  .recon-statement-table tr,
  .recon-statement-table td {
    display: block;
    width: 100%;
  }

  .recon-statement-table tr {
    padding: 10px 0;
    border-bottom: 1px solid #e6dfd0;
  }

  .recon-statement-table td {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    overflow-wrap: anywhere;
  }

  .recon-statement-table td::before {
    content: attr(data-label);
    font-weight: 600;
    flex: 0 0 42%;
  }
}

@media (max-width: 430px) {
  .recon-mobile-pair,
  .recon-mobile-results {
    grid-template-columns: 1fr;
  }
}

.recon-party-compact {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.recon-party-compact__who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.recon-ledger-range {
  align-items: end;
}

.recon-ledger-toolbar {
  margin: 0.5rem 0 0.75rem;
}

.recon-account-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.recon-account-check::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-18%) rotate(45deg);
}

.recon-account-check[aria-expanded="true"]::after {
  transform: translateY(18%) rotate(225deg);
}

.recon-form-title {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
}

.recon-batch:has([data-recon-form-title]) .recon-entry-n {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.recon-ledger-table th[data-col="edit"],
.recon-ledger-table td[data-col="edit"] {
  text-align: right;
  white-space: nowrap;
  width: 4.5rem;
}

.recon-ledger-table td[data-col="note"] {
  overflow-wrap: anywhere;
}

.recon-ledger-table th.recon-amount,
.recon-ledger-table td.recon-amount,
.recon-statement-table th.recon-amount,
.recon-statement-table td.recon-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.recon-ledger-table {
  width: 100%;
}

.recon-ledger-table th:nth-child(1),
.recon-ledger-table td[data-col="date"] {
  width: 8.5rem;
}

.recon-ledger-table th:nth-child(2),
.recon-ledger-table td[data-col="number"] {
  width: 9rem;
}

.recon-alloc-workbench {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.recon-date-invalid {
  flex: 1 0 100%;
  margin: 0;
  color: #8a3b12;
  font-size: 0.9rem;
}

.recon-date-control {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: visible;
  cursor: text;
}

.recon-date-control > input {
  padding-right: 3.2rem;
}

.recon-date-open {
  position: absolute;
  top: 50%;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #c8d9d0;
  border-radius: 8px;
  background: #eef5f0;
  color: #165536;
  transform: translateY(-50%);
  cursor: pointer;
}

.recon-date-open:hover,
.recon-date-open:focus-visible {
  background: #dff0e6;
  outline: 2px solid #165536;
  outline-offset: 1px;
}

.recon-date-open svg {
  width: 18px;
  height: 18px;
}

.recon-range-order-hint {
  flex: 1 0 100%;
  margin: 0;
  color: #8a3b12;
  font-size: 0.9rem;
}

html.recon-date-picker-open,
html.recon-date-picker-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.recon-date-popover {
  position: fixed;
  z-index: 80;
  box-sizing: border-box;
  max-width: calc(100vw - 16px);
  padding: 10px;
  border: 1px solid #eadfce;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 33, 29, 0.16);
}

.recon-date-popover:focus {
  outline: none;
}

.recon-date-popover__nav {
  display: grid;
  grid-template-columns: 36px minmax(0, 1.2fr) minmax(0, 0.9fr) 36px;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.recon-date-nav,
.recon-date-popover__actions button {
  min-height: 36px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #f7f3ea;
  color: inherit;
  font: inherit;
}

.recon-date-nav-field select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.recon-date-popover__weekdays,
.recon-date-popover__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  text-align: center;
}

.recon-date-popover__weekdays {
  margin-bottom: 4px;
  color: #64716b;
  font-size: 0.8rem;
}

.recon-date-day {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  touch-action: manipulation;
}

.recon-date-day.is-outside {
  color: #b3bbb6;
}

.recon-date-day.is-today {
  box-shadow: inset 0 0 0 1px #165536;
}

.recon-date-day.is-disabled {
  color: #c5cdc8;
  pointer-events: none;
}

.recon-date-popover__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

@media (max-width: 720px) {
  .recon-date-popover {
    max-height: calc(100dvh - 16px);
    overflow: auto;
  }

  .recon-date-popover__nav {
    grid-template-columns: 40px minmax(0, 1.1fr) minmax(0, 0.9fr) 40px;
  }
}

@media (min-width: 1024px) {
  .recon-ledger-wrap {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .recon-ledger-toolbar .recon-peer-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .recon-mobile-item[data-recon-ledger-item] {
    width: 100%;
    text-align: left;
  }
}

@media print {
  .recon-date-popover,
  .recon-date-open,
  .recon-topbar,
  .topbar,
  .recon-block:not(.is-print),
  .recon-note,
  .recon-lead p,
  .recon-actions,
  .recon-error,
  .recon-banner,
  details.recon-more {
    display: none !important;
  }

  .recon-block.is-print {
    background: #fff;
  }

  .recon-statement,
  .recon-statement-table {
    page-break-inside: auto;
  }

  .recon-statement-table thead {
    display: table-header-group;
  }

  .recon-statement-table tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }
}
