.wp-ledger {
  padding: 40px;
  max-width: none;
}
@media (min-width: 1280px) {
  .wp-ledger {
    padding: 48px 56px;
  }
}
@media (min-width: 1536px) {
  .wp-ledger {
    padding: 56px 80px;
  }
}
@media (max-width: 767px) {
  .wp-ledger {
    padding: 24px 20px;
  }
}
@media (max-width: 479px) {
  .wp-ledger {
    padding: 20px 16px;
  }
}
.wp-ledger__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.wp-ledger__title {
  font-size: 28px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}
@media (max-width: 767px) {
  .wp-ledger__title {
    font-size: 22px;
  }
}
@media (max-width: 479px) {
  .wp-ledger__title {
    font-size: 20px;
  }
}
.wp-ledger__sub {
  font-size: 14px;
  color: #8BA4C4;
  line-height: 1.65;
}
.wp-ledger__sub strong {
  color: #C8D8EE;
  font-weight: 700;
}
.wp-ledger__summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.wp-ledger__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.wp-ledger__search {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}
.wp-ledger__search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #8BA4C4;
  pointer-events: none;
}
.wp-ledger__search input {
  width: 100%;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  background: #0D1525;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 10px;
  padding: 11px 14px 11px 38px;
  outline: none;
  transition: border-color 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-ledger__search input::placeholder {
  color: rgba(139, 164, 196, 0.7);
}
.wp-ledger__search input:focus {
  border-color: rgba(87, 187, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(87, 187, 255, 0.1);
}
.wp-ledger__toolbar-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.wp-ledger__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(480px, 3fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 1279px) {
  .wp-ledger__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.wp-ledger__tree {
  background: #0C1628;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 18px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .wp-ledger__tree {
    border-radius: 14px;
  }
}
.wp-ledger__tree-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(87, 187, 255, 0.1);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8BA4C4;
}
.wp-ledger__tree-body {
  padding: 8px;
}
.wp-ledger__empty, .wp-ledger__no-results {
  text-align: center;
  padding: 48px 24px;
  color: #8BA4C4;
}
.wp-ledger__empty i, .wp-ledger__no-results i {
  font-size: 26px;
  color: rgba(87, 187, 255, 0.4);
  margin-bottom: 12px;
  display: block;
}
.wp-ledger__empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #C8D8EE;
  margin-bottom: 4px;
}
.wp-ledger__empty-desc {
  font-size: 13px;
}
.wp-ledger__no-results {
  padding: 40px 24px;
  font-size: 14px;
}
.wp-ledger__no-results i {
  font-size: 20px;
  margin-bottom: 10px;
}
.wp-ledger__panel {
  background: #0C1628;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 18px;
  padding: 24px;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (max-width: 1279px) {
  .wp-ledger__panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 767px) {
  .wp-ledger__panel {
    border-radius: 14px;
    padding: 20px;
  }
}
.wp-ledger__panel-empty {
  text-align: center;
  padding: 24px 8px;
  color: #8BA4C4;
}
.wp-ledger__panel-empty i {
  font-size: 24px;
  color: rgba(87, 187, 255, 0.4);
  margin-bottom: 12px;
  display: block;
}
.wp-ledger__panel-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #C8D8EE;
  margin-bottom: 4px;
}
.wp-ledger__panel-empty-desc {
  font-size: 13px;
  line-height: 1.6;
}
.wp-ledger__panel-txns {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
@media (max-width: 1279px) {
  .wp-ledger__panel-txns {
    display: block;
  }
}
.wp-ledger__panel-type {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #57BBFF;
  background: rgba(87, 187, 255, 0.1);
  border: 1px solid rgba(87, 187, 255, 0.2);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.wp-ledger__panel-name {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 18px;
  word-break: break-word;
}
.wp-ledger__panel-balance {
  background: #0D1525;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.wp-ledger__panel-balance--split {
  display: flex;
  align-items: stretch;
  padding: 0;
}
@media (max-width: 479px) {
  .wp-ledger__panel-balance--split {
    flex-direction: column;
  }
}
.wp-ledger__panel-balance-col {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 18px;
}
.wp-ledger__panel-balance-col--recon {
  border-left: 1px solid rgba(87, 187, 255, 0.15);
}
.wp-ledger__panel-balance-col--recon .wp-ledger__panel-balance-label i {
  color: #34D399;
  margin-right: 4px;
  font-size: 10px;
}
@media (max-width: 479px) {
  .wp-ledger__panel-balance-col--recon {
    border-left: none;
    border-top: 1px solid rgba(87, 187, 255, 0.15);
  }
}
.wp-ledger__panel-balance-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8BA4C4;
  margin-bottom: 6px;
}
.wp-ledger__panel-balance-value {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #C8D8EE;
  font-variant-numeric: tabular-nums;
}
.wp-ledger__panel-balance-value.is-pos {
  color: #34D399;
}
.wp-ledger__panel-balance-value.is-neg {
  color: #EA3E2E;
}
.wp-ledger__panel-balance-value.is-zero {
  color: #C8D8EE;
}
.wp-ledger__panel-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.wp-ledger__panel-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(87, 187, 255, 0.03);
  font-size: 13px;
}
.wp-ledger__panel-meta-key {
  color: #8BA4C4;
}
.wp-ledger__panel-meta-val {
  color: #C8D8EE;
  font-weight: 600;
}
.wp-ledger__panel-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #8BA4C4;
  background: rgba(245, 206, 130, 0.05);
  border: 1px solid rgba(245, 206, 130, 0.2);
  border-radius: 10px;
  padding: 11px 13px;
}
.wp-ledger__panel-note i {
  color: #F5CE82;
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

.wp-ledger-chip {
  background: #0C1628;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.2s cubic-bezier(0.25, 1, 0.5, 1), transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-ledger-chip:hover {
  border-color: rgba(87, 187, 255, 0.3);
  transform: translateY(-2px);
}
.wp-ledger-chip__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8BA4C4;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-ledger-chip__value {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #C8D8EE;
  font-variant-numeric: tabular-nums;
}
.wp-ledger-chip__value.is-pos {
  color: #34D399;
}
.wp-ledger-chip__value.is-neg {
  color: #EA3E2E;
}
.wp-ledger-chip__value.is-zero {
  color: #C8D8EE;
}
.wp-ledger-chip__meta {
  font-size: 11px;
  color: rgba(139, 164, 196, 0.8);
  margin-top: 4px;
}

.wp-acct-node.collapsed > .wp-acct-node__children {
  display: none;
}
.wp-acct-node.filtered-out {
  display: none;
}
.wp-acct-node__row {
  --depth: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px calc(10px + var(--depth) * 22px);
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-acct-node__row:hover {
  background: rgba(87, 187, 255, 0.05);
  border-color: rgba(87, 187, 255, 0.15);
}
.wp-acct-node__row.is-selected {
  background: rgba(87, 187, 255, 0.1);
  border-color: rgba(87, 187, 255, 0.3);
}
.wp-acct-node.is-root > .wp-acct-node__row .wp-acct-node__name {
  font-weight: 800;
  color: #FFFFFF;
}
.wp-acct-node__caret {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #8BA4C4;
  transition: color 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-acct-node__caret i {
  font-size: 11px;
  transition: transform 0.18s cubic-bezier(0.25, 1, 0.5, 1);
  transform: rotate(90deg);
}
.wp-acct-node__caret:hover {
  color: #57BBFF;
}
.wp-acct-node__caret--leaf {
  cursor: default;
  color: rgba(139, 164, 196, 0.35);
}
.wp-acct-node__caret--leaf i {
  font-size: 5px;
  transform: none;
}
.wp-acct-node__caret--leaf:hover {
  color: rgba(139, 164, 196, 0.35);
}
.wp-acct-node.collapsed > .wp-acct-node__row .wp-acct-node__caret i {
  transform: rotate(0deg);
}
.wp-acct-node__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: #C8D8EE;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-acct-node__type {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8BA4C4;
  background: rgba(87, 187, 255, 0.06);
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 100px;
  padding: 2px 9px;
}
@media (max-width: 479px) {
  .wp-acct-node__type {
    display: none;
  }
}
.wp-acct-node__total {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #C8D8EE;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 84px;
}
.wp-acct-node__total.is-pos {
  color: #34D399;
}
.wp-acct-node__total.is-neg {
  color: #EA3E2E;
}
.wp-acct-node__total.is-zero {
  color: rgba(200, 216, 238, 0.55);
}

.wp-acct-loading {
  --depth: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px calc(10px + var(--depth) * 22px);
  font-size: 12px;
  color: #8BA4C4;
}
.wp-acct-loading i {
  font-size: 11px;
  color: rgba(87, 187, 255, 0.5);
}
.wp-acct-loading--err {
  color: rgba(234, 62, 46, 0.85);
  cursor: default;
}
.wp-acct-loading--err i {
  color: rgba(234, 62, 46, 0.7);
}

.wp-ledger__load-btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.wp-ledger__txn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 10px;
  flex-wrap: wrap;
}
.wp-ledger__txn-head-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #C8D8EE;
}
.wp-ledger__txn-head-count i {
  color: #57BBFF;
  font-size: 11px;
}
.wp-ledger__txn-head-page {
  font-size: 11px;
  color: #8BA4C4;
}

.wp-ledger__txn-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -6px;
  padding: 0 6px;
}
.wp-ledger__txn-list::-webkit-scrollbar {
  width: 4px;
}
.wp-ledger__txn-list::-webkit-scrollbar-thumb {
  background: rgba(87, 187, 255, 0.4);
  border-radius: 2px;
}
@media (max-width: 1279px) {
  .wp-ledger__txn-list {
    flex: 0 0 auto;
    max-height: 70vh;
  }
}

.wp-ledger__txn-empty {
  text-align: center;
  padding: 24px 8px;
  font-size: 13px;
  color: #8BA4C4;
}

.wp-ledger__txn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 16px;
  font-size: 13px;
  color: #8BA4C4;
}
.wp-ledger__txn-loading i {
  color: rgba(87, 187, 255, 0.6);
}
.wp-ledger__txn-loading--err {
  color: rgba(234, 62, 46, 0.85);
}
.wp-ledger__txn-loading--err i {
  color: rgba(234, 62, 46, 0.7);
}

.wp-ledger-txn {
  display: grid;
  grid-template-columns: 92px minmax(0, 1.1fr) minmax(0, 1.4fr) max-content 96px 108px 22px 22px;
  align-items: center;
  gap: 4px 10px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(87, 187, 255, 0.07);
}
.wp-ledger-txn:last-child {
  border-bottom: none;
}
.wp-ledger-txn__date {
  font-size: 11px;
  font-weight: 600;
  color: #8BA4C4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wp-ledger-txn__payee {
  font-size: 13px;
  font-weight: 600;
  color: #C8D8EE;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-ledger-txn__acct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  color: #8BA4C4;
  white-space: nowrap;
}
.wp-ledger-txn__acct i {
  font-size: 9px;
  color: rgba(87, 187, 255, 0.5);
  flex-shrink: 0;
}
.wp-ledger-txn__acct span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-ledger-txn__recon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  background: none;
  border: none;
  margin: 0;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  color: rgba(52, 211, 153, 0.85);
  transition: color 0.15s cubic-bezier(0.25, 1, 0.5, 1), background 0.15s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-ledger-txn__recon i {
  font-size: 10px;
}
.wp-ledger-txn__recon.is-on {
  color: rgba(52, 211, 153, 0.9);
}
.wp-ledger-txn__recon.is-off {
  color: rgba(139, 164, 196, 0.55);
}
.wp-ledger-txn__recon:hover {
  background: rgba(87, 187, 255, 0.08);
}
.wp-ledger-txn__recon.is-off:hover {
  color: rgba(52, 211, 153, 0.9);
}
.wp-ledger-txn__recon.is-on:hover {
  color: #8BA4C4;
}
.wp-ledger-txn__recon.is-loading {
  opacity: 0.5;
  pointer-events: none;
}
.wp-ledger-txn__amount {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wp-ledger-txn__amount.is-pos {
  color: #34D399;
}
.wp-ledger-txn__amount.is-neg {
  color: #EA3E2E;
}
.wp-ledger-txn__amount.is-zero {
  color: rgba(200, 216, 238, 0.55);
}
.wp-ledger-txn__balance {
  font-size: 12px;
  font-weight: 600;
  color: rgba(200, 216, 238, 0.65);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wp-ledger-txn__edit, .wp-ledger-txn__duplicate {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 6px;
  color: rgba(139, 164, 196, 0.6);
  cursor: pointer;
  transition: color 0.15s cubic-bezier(0.25, 1, 0.5, 1), background 0.15s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-ledger-txn__edit i, .wp-ledger-txn__duplicate i {
  font-size: 10px;
}
.wp-ledger-txn__edit:hover, .wp-ledger-txn__duplicate:hover {
  color: #57BBFF;
  background: rgba(87, 187, 255, 0.1);
}
.wp-ledger-txn__edit.is-loading, .wp-ledger-txn__duplicate.is-loading {
  opacity: 0.5;
  pointer-events: none;
}
@media (max-width: 767px) {
  .wp-ledger-txn {
    grid-template-columns: 1fr auto;
    grid-template-areas: "date   amount" "payee  payee" "acct   recon" "bal    bal" "edit   dup";
    row-gap: 4px;
  }
  .wp-ledger-txn .wp-ledger-txn__date {
    grid-area: date;
  }
  .wp-ledger-txn .wp-ledger-txn__amount {
    grid-area: amount;
  }
  .wp-ledger-txn .wp-ledger-txn__payee {
    grid-area: payee;
    white-space: normal;
  }
  .wp-ledger-txn .wp-ledger-txn__acct {
    grid-area: acct;
    overflow: hidden;
  }
  .wp-ledger-txn .wp-ledger-txn__recon {
    grid-area: recon;
    justify-self: end;
  }
  .wp-ledger-txn .wp-ledger-txn__balance {
    grid-area: bal;
    justify-self: end;
  }
  .wp-ledger-txn .wp-ledger-txn__edit {
    grid-area: edit;
    justify-self: end;
  }
  .wp-ledger-txn .wp-ledger-txn__duplicate {
    grid-area: dup;
    justify-self: end;
  }
}

.wp-ledger__pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(87, 187, 255, 0.15);
}
.wp-ledger__pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #C8D8EE;
  background: #0D1525;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.2s cubic-bezier(0.25, 1, 0.5, 1), color 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-ledger__pager-btn i {
  font-size: 10px;
}
.wp-ledger__pager-btn:hover {
  border-color: rgba(87, 187, 255, 0.5);
  color: #57BBFF;
}
.wp-ledger__pager-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.wp-ledger__pager-info {
  font-size: 12px;
  font-weight: 700;
  color: #8BA4C4;
  font-variant-numeric: tabular-nums;
}

.wp-ledger-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #070B14;
  background: linear-gradient(135deg, #57BBFF, #7CCBFF);
  border: 1px solid #57BBFF;
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(87, 187, 255, 0.22);
  transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.15s cubic-bezier(0.25, 1, 0.5, 1), filter 0.15s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-ledger-primary-btn i {
  font-size: 12px;
}
.wp-ledger-primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(87, 187, 255, 0.32);
}
.wp-ledger-primary-btn:active {
  transform: translateY(0);
}
.wp-ledger-primary-btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

body.wp-modal-open {
  overflow: hidden;
}

.wp-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.wp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.72);
  backdrop-filter: blur(2px);
}
.wp-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: #0C1628;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
@media (max-width: 767px) {
  .wp-modal__dialog {
    border-radius: 14px;
  }
}
.wp-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(87, 187, 255, 0.1);
}
.wp-modal__title {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.wp-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #8BA4C4;
  cursor: pointer;
  transition: color 0.15s cubic-bezier(0.25, 1, 0.5, 1), background 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-modal__close:hover {
  color: #FFFFFF;
  background: rgba(87, 187, 255, 0.08);
  border-color: rgba(87, 187, 255, 0.15);
}
.wp-modal__body {
  padding: 22px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wp-modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid rgba(87, 187, 255, 0.1);
}
.wp-modal__error {
  font-size: 13px;
  color: rgba(234, 62, 46, 0.95);
  background: rgba(234, 62, 46, 0.08);
  border: 1px solid rgba(234, 62, 46, 0.25);
  border-radius: 10px;
  padding: 10px 13px;
}

.wp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 479px) {
  .wp-form-grid {
    grid-template-columns: 1fr;
  }
}

.wp-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wp-form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8BA4C4;
}
.wp-form-label .wp-form-opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: rgba(139, 164, 196, 0.7);
}

.wp-input {
  width: 100%;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  background: #0D1525;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  color-scheme: dark;
  transition: border-color 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-input::placeholder {
  color: rgba(139, 164, 196, 0.7);
}
.wp-input:focus {
  border-color: rgba(87, 187, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(87, 187, 255, 0.1);
}
.wp-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.85;
}

select.wp-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238BA4C4' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
select.wp-input option {
  background: #0D1525;
  color: #FFFFFF;
}

.wp-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #C8D8EE;
  cursor: pointer;
  user-select: none;
}
.wp-check input {
  width: 16px;
  height: 16px;
  accent-color: #57BBFF;
  cursor: pointer;
}

.wp-amount {
  position: relative;
  display: flex;
  align-items: center;
}
.wp-amount__sign {
  position: absolute;
  left: 16px;
  font-size: 22px;
  font-weight: 800;
  color: rgba(87, 187, 255, 0.75);
  pointer-events: none;
}
.wp-amount__input {
  width: 100%;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  background: #0D1525;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 12px;
  padding: 14px 16px 14px 42px;
  outline: none;
  color-scheme: dark;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-amount__input::placeholder {
  color: rgba(139, 164, 196, 0.55);
  font-weight: 700;
}
.wp-amount__input:focus {
  border-color: rgba(87, 187, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(87, 187, 255, 0.12);
}
.wp-amount__input::-webkit-outer-spin-button, .wp-amount__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number].wp-amount__input {
  -moz-appearance: textfield;
}

@keyframes wpModalBackdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes wpModalPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes wpFieldIn {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.wp-modal {
  color-scheme: dark;
}
.wp-modal__backdrop {
  animation: wpModalBackdrop 0.22s ease both;
}
.wp-modal__dialog {
  color-scheme: dark;
  animation: wpModalPop 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}
.wp-modal__dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #57BBFF, #A78BFA 45%, #F5CE82);
}
.wp-modal__body > * {
  animation: wpFieldIn 0.3s cubic-bezier(0.25, 1, 0.5, 1) both;
  position: relative;
}
.wp-modal__body > *:nth-child(1) {
  animation-delay: 0.05s;
  z-index: 9;
}
.wp-modal__body > *:nth-child(2) {
  animation-delay: 0.09s;
  z-index: 8;
}
.wp-modal__body > *:nth-child(3) {
  animation-delay: 0.13s;
  z-index: 7;
}
.wp-modal__body > *:nth-child(4) {
  animation-delay: 0.17s;
  z-index: 6;
}
.wp-modal__body > *:nth-child(5) {
  animation-delay: 0.21s;
  z-index: 5;
}
.wp-modal__body > *:nth-child(6) {
  animation-delay: 0.25s;
  z-index: 4;
}
.wp-modal__body > *:nth-child(7) {
  animation-delay: 0.29s;
  z-index: 3;
}
.wp-modal__body > *:nth-child(8) {
  z-index: 2;
}
.wp-modal__body > *:nth-child(9) {
  z-index: 1;
}
.wp-modal__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wp-modal__title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #57BBFF, #A78BFA);
  box-shadow: 0 0 10px rgba(87, 187, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .wp-modal__backdrop,
  .wp-modal__dialog,
  .wp-modal__body > * {
    animation: none !important;
  }
}
.wp-sign {
  position: relative;
  width: 84px;
  height: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0D1525;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 100px;
  cursor: pointer;
  user-select: none;
  outline: none;
}
.wp-sign:focus-visible {
  box-shadow: 0 0 0 3px rgba(87, 187, 255, 0.2);
}
.wp-sign__opt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: color 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-sign__opt--plus {
  color: #070B14;
}
.wp-sign__opt--minus {
  color: rgba(139, 164, 196, 0.6);
}
.wp-sign__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  bottom: 3px;
  width: calc(50% - 4px);
  border-radius: 100px;
  background: linear-gradient(135deg, #34D399, #6EE7B7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), background 0.22s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 0;
}
.wp-sign.is-on .wp-sign__thumb {
  transform: translateX(calc(100% + 2px));
  background: linear-gradient(135deg, #EA3E2E, #FF7A6E);
}
.wp-sign.is-on .wp-sign__opt--plus {
  color: rgba(139, 164, 196, 0.6);
}
.wp-sign.is-on .wp-sign__opt--minus {
  color: #070B14;
}

.wp-input-with-btn {
  display: flex;
  gap: 8px;
}
.wp-input-with-btn .wp-input {
  flex: 1 1 auto;
  min-width: 0;
}
.wp-input-with-btn__btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #57BBFF;
  background: #0D1525;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.15s cubic-bezier(0.25, 1, 0.5, 1), color 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-input-with-btn__btn:hover {
  background: rgba(87, 187, 255, 0.1);
  border-color: rgba(87, 187, 255, 0.4);
  color: #FFFFFF;
}

.wp-payee-field-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.wp-payee-field-wrap .wp-input {
  padding-right: 34px;
}

.wp-payee-linked-badge {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #34D399;
  font-size: 15px;
  pointer-events: none;
}

.wp-role-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wp-role-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #8BA4C4;
  background: #0D1525;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 100px;
  padding: 9px 16px;
  cursor: pointer;
  transition: color 0.15s cubic-bezier(0.25, 1, 0.5, 1), background 0.15s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-role-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wp-role-pill i {
  font-size: 11px;
  color: rgba(87, 187, 255, 0.6);
}
.wp-role-pill em {
  font-style: normal;
  font-weight: 500;
  color: rgba(139, 164, 196, 0.75);
}
.wp-role-pill:hover {
  border-color: rgba(87, 187, 255, 0.35);
}
.wp-role-pill:has(input:checked) {
  color: #FFFFFF;
  background: rgba(87, 187, 255, 0.14);
  border-color: rgba(87, 187, 255, 0.5);
}
.wp-role-pill:has(input:checked) i {
  color: #57BBFF;
}

.wp-modal--nested {
  z-index: 2100;
}
.wp-modal--nested .wp-modal__dialog--sm {
  max-width: 420px;
}

.wp-payee-autocomplete {
  position: relative;
}

.wp-payee-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10;
  max-height: 220px;
  overflow-y: auto;
  background: #0D1525;
  border: 1px solid rgba(87, 187, 255, 0.35);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  padding: 4px;
}
.wp-payee-results::-webkit-scrollbar {
  width: 4px;
}
.wp-payee-results::-webkit-scrollbar-thumb {
  background: rgba(87, 187, 255, 0.4);
  border-radius: 2px;
}

.wp-payee-result {
  font-size: 13px;
  font-weight: 600;
  color: #C8D8EE;
  padding: 9px 12px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.12s cubic-bezier(0.25, 1, 0.5, 1), color 0.12s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-payee-result:hover {
  background: rgba(87, 187, 255, 0.14);
  color: #FFFFFF;
}

.wp-acct-autocomplete {
  position: relative;
}

.wp-acct-path {
  font-size: 11px;
  color: rgba(139, 164, 196, 0.85);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-acct-path:empty {
  display: none;
}

.wp-acct-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10;
  max-height: 260px;
  overflow-y: auto;
  background: #0D1525;
  border: 1px solid rgba(87, 187, 255, 0.35);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  padding: 4px;
}
.wp-acct-results::-webkit-scrollbar {
  width: 4px;
}
.wp-acct-results::-webkit-scrollbar-thumb {
  background: rgba(87, 187, 255, 0.4);
  border-radius: 2px;
}

.wp-acct-result {
  font-size: 12px;
  font-weight: 400;
  color: #C8D8EE;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.4;
  transition: background 0.12s cubic-bezier(0.25, 1, 0.5, 1), color 0.12s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-acct-result:hover {
  background: rgba(87, 187, 255, 0.14);
  color: #FFFFFF;
}
.wp-acct-result.is-disabled {
  color: rgba(139, 164, 196, 0.6);
  font-weight: 400;
  cursor: default;
  pointer-events: none;
}
.wp-acct-result.is-disabled i {
  color: rgba(87, 187, 255, 0.5);
  margin-right: 6px;
}

@keyframes wpNoticeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.wp-ledger-notice {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2300;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(560px, 100vw - 32px);
  padding: 12px 10px 12px 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #C8D8EE;
  background: #0C1628;
  border: 1px solid rgba(245, 206, 130, 0.2);
  border-left: 3px solid #F5CE82;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  animation: wpNoticeIn 0.25s cubic-bezier(0.25, 1, 0.5, 1) both;
}
.wp-ledger-notice > i {
  color: #F5CE82;
  font-size: 14px;
  flex-shrink: 0;
}
.wp-ledger-notice__text {
  flex: 1;
  min-width: 0;
}
.wp-ledger-notice__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  border-radius: 7px;
  color: #8BA4C4;
  cursor: pointer;
  transition: color 0.15s cubic-bezier(0.25, 1, 0.5, 1), background 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-ledger-notice__close:hover {
  color: #C8D8EE;
  background: rgba(245, 206, 130, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .wp-ledger-notice {
    animation: none;
  }
}
.wp-modal__foot .wp-txn-delete {
  margin-right: auto;
  color: #EA3E2E;
  border-color: rgba(234, 62, 46, 0.35);
  transition: color 0.15s cubic-bezier(0.25, 1, 0.5, 1), background 0.15s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.15s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-modal__foot .wp-txn-delete i {
  color: inherit;
}
.wp-modal__foot .wp-txn-delete:hover {
  color: #EA3E2E;
  background: rgba(234, 62, 46, 0.1);
  border-color: rgba(234, 62, 46, 0.6);
}
.wp-modal__foot .wp-txn-delete.is-armed {
  color: #FFFFFF;
  background: #EA3E2E;
  border-color: #EA3E2E;
}
.wp-modal__foot .wp-txn-delete.is-armed:hover {
  background: #EA3E2E;
  border-color: #EA3E2E;
  filter: brightness(0.92);
}
.wp-modal__foot .wp-txn-delete.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.wp-modal__dialog--wide {
  max-width: 760px;
}

.wp-split-toggle-row {
  align-items: flex-start;
}

.wp-split-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #57BBFF;
  background: rgba(87, 187, 255, 0.07);
  border: 1px dashed rgba(87, 187, 255, 0.4);
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.15s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-split-toggle:hover {
  background: rgba(87, 187, 255, 0.14);
  border-color: rgba(87, 187, 255, 0.7);
}
.wp-split-toggle:focus-visible {
  outline: 2px solid #57BBFF;
  outline-offset: 2px;
}
.wp-split-toggle[aria-pressed=true] {
  color: #C8D8EE;
  border-style: solid;
  border-color: rgba(87, 187, 255, 0.15);
  background: transparent;
}

.wp-split {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: rgba(87, 187, 255, 0.04);
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 14px;
}
.wp-split__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.wp-split__sum {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #8BA4C4;
  border-radius: 999px;
  padding: 4px 12px;
  border: 1px solid transparent;
}
.wp-split__sum.is-ok {
  color: #34D399;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
}
.wp-split__sum.is-under {
  color: #F5CE82;
  background: rgba(245, 206, 130, 0.1);
  border-color: rgba(245, 206, 130, 0.3);
}
.wp-split__sum.is-over {
  color: #EA3E2E;
  background: rgba(234, 62, 46, 0.1);
  border-color: rgba(234, 62, 46, 0.3);
}
.wp-split__add {
  align-self: flex-start;
}

#wp-split-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wp-split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 34px;
  grid-template-areas: "acct amt  del" "memo rest rest";
  gap: 8px 10px;
  align-items: start;
  padding: 12px;
  background: #0C1628;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 12px;
}
.wp-split-row__acct {
  grid-area: acct;
}
.wp-split-row .wp-split-memo {
  grid-area: memo;
}
.wp-split-row__amt {
  grid-area: amt;
  position: relative;
  display: flex;
  align-items: center;
}
.wp-split-row__amt span {
  position: absolute;
  left: 12px;
  color: rgba(87, 187, 255, 0.8);
  font-weight: 800;
  pointer-events: none;
}
.wp-split-row__amt .wp-split-amt {
  padding-left: 26px;
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.wp-split-row__del {
  grid-area: del;
  width: 34px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8BA4C4;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s cubic-bezier(0.25, 1, 0.5, 1), background 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-split-row__del:hover {
  color: #EA3E2E;
  background: rgba(234, 62, 46, 0.1);
}
.wp-split-row__del:focus-visible {
  outline: 2px solid #57BBFF;
}
.wp-split-row__rest {
  grid-area: rest;
  justify-self: stretch;
  align-self: stretch;
  text-align: center;
  font-family: "Lato", "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #8BA4C4;
  background: none;
  border: 1px solid rgba(87, 187, 255, 0.15);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}
.wp-split-row__rest:hover {
  color: #57BBFF;
  border-color: rgba(87, 187, 255, 0.5);
}
.wp-split-row__rest:focus-visible {
  outline: 2px solid #57BBFF;
}
@media (max-width: 560px) {
  .wp-split-row {
    grid-template-columns: minmax(0, 1fr) 34px;
    grid-template-areas: "acct del" "amt  amt" "memo memo" "rest rest";
  }
  .wp-split-row__rest {
    justify-self: stretch;
  }
}

.wp-ledger-txn.is-split .wp-ledger-txn__acct {
  color: #F5CE82;
}
