:root {
  --ink: #111b3c;
  --muted: #72809b;
  --line: #e3e9f1;
  --paper: #f5f7fa;
  --white: #fff;
  --red: #e60028;
  --red-hover: #ce0925;
  --blue: #1769eb;
  --green: #148845;
  --radius: 8px;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}
[hidden] {
  display: none !important;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #dce3ee;
  border-radius: 7px;
  padding: 8px 13px;
  color: var(--ink);
  background: #fff;
  min-height: 35px;
  transition:
    background 0.12s,
    border-color 0.12s;
}
button:hover {
  background: #f6f8fc;
  border-color: #bdc9dd;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
button.primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}
input,
select {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  min-height: 37px;
  border: 1px solid #d9e1ed;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
input::placeholder {
  color: #8a96ad;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #52617e;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #236ee5;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.2;
  margin-bottom: 8px;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 12px;
}
h3 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 8px;
}
small {
  font-size: 11px;
}
.uiIcon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  vertical-align: middle;
}
.tone-blue {
  color: #2c7bff;
}
.tone-red {
  color: #f01837;
}
.tone-green {
  color: #15a54f;
}
.tone-teal {
  color: #009da8;
}
.tone-amber {
  color: #e4a200;
}
.tone-purple {
  color: #8961dc;
}
.tone-slate {
  color: #637695;
}
.iconChip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 7px;
}
.chip-blue {
  background: #eaf1ff;
}
.chip-red {
  background: #ffecef;
}
.chip-green {
  background: #e8f7ed;
}
.chip-teal {
  background: #e5f8f7;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -60px;
  left: 10px;
  z-index: 100;
  padding: 10px;
  background: #fff;
  color: var(--ink);
}
.skip:focus {
  top: 8px;
}
#notice {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  max-width: min(640px, 90vw);
  border-radius: 7px;
  background: #172442;
  color: #fff;
  box-shadow: 0 5px 20px #11224420;
  font-size: 13px;
}
#notice:not(:empty) {
  padding: 12px 18px;
}
.error {
  color: #c01832;
  font-size: 12px;
}
.error:empty {
  display: none;
}
.hint {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 650;
  color: #6e7d98;
}
/* One fixed application header across every view. */
.shell {
  display: grid;
  grid-template-columns: 344px minmax(0, 1fr);
  padding-top: 62px;
  min-height: 100vh;
}
.appHeader {
  height: 62px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px #182a4410;
}
.headerBrand {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  flex: 0 0 344px;
  height: 100%;
  padding: 0 22px 0 28px;
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #101b37;
  white-space: nowrap;
}
.brand svg {
  width: 25px;
  height: 29px;
  color: var(--red);
}
.brandMark {
  color: var(--red);
  font-size: 28px;
}
#sidebarToggle {
  border: 0;
  padding: 7px;
  min-height: 32px;
}
#sidebarToggle .uiIcon {
  width: 22px;
}
.primaryNav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 0 22px;
  min-width: 0;
}
.primaryNav button {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  padding: 0 12px;
  white-space: nowrap;
  font-weight: 400;
}
.primaryNav button.selected {
  font-weight: 650;
}
.primaryNav button.selected::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  background: var(--red);
  left: 0;
  right: 0;
}
.primaryNav button:hover {
  background: #fafbfe;
}
.headerUser {
  margin-left: auto;
  padding: 0 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
#personalArea {
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 600;
  font-size: 12px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 33px;
  width: 33px;
  height: 33px;
  border: 1px solid #d5dfe9;
  border-radius: 50%;
  background: #fff;
  color: #00818a;
  font-size: 13px;
  font-weight: 650;
}
#logout {
  color: var(--red);
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 18px;
}
.shell > aside {
  grid-column: 1;
  position: sticky;
  top: 62px;
  height: calc(100dvh - 62px);
  min-height: 0;
  width: 344px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 21px 19px 13px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#sidebarClose {
  display: none;
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 1px 8px;
  border: 0;
  font-size: 22px;
  background: transparent;
}
aside > .eyebrow {
  margin-bottom: 9px;
}
aside select {
  min-height: 39px;
}
.textButton {
  border: 0;
  padding: 8px 0;
  background: transparent;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 11px;
}
.badge {
  font-size: 10px;
  color: #60718a;
  background: #edf1f6;
  border: 1px solid #e1e7ee;
  border-radius: 5px;
  padding: 4px 8px;
}
#demoBadge {
  align-self: flex-start;
  margin: 1px 0 5px;
}
.mainNav {
  display: grid;
  gap: 2px;
  margin: 7px 0 19px;
}
.mainNav button {
  border: 0;
  background: transparent;
  justify-content: flex-start;
  padding: 8px 11px;
  gap: 12px;
  font-size: 12px;
}
.mainNav .selected {
  color: var(--red);
  background: #fdeaf0;
  font-weight: 650;
}
.mainNav .uiIcon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.treeHeading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.treeHeading button {
  border: 0;
  background: transparent;
  padding: 0 6px;
  font-size: 22px;
  min-height: 28px;
}
#accountSearch {
  margin: 8px 0 14px;
  font-size: 12px;
  min-height: 34px;
}
#tree {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c6d0df transparent;
  padding-right: 2px;
}
#tree::-webkit-scrollbar {
  width: 5px;
}
#tree::-webkit-scrollbar-thumb {
  background: #c6d0df;
  border-radius: 5px;
}
.treeRow {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: space-between;
  text-align: left;
  gap: 6px;
  min-height: 28px;
  padding: 4px 5px;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  background: transparent;
  margin: 1px 0;
}
.treeRow.group {
  font-weight: 650;
}
.treeRow.active {
  background: #fde8ed;
  color: #df082b;
}
.treeRow:hover {
  background: #e9eef7;
}
.treeRow.active:hover {
  background: #fbdce4;
}
.treeAccountLabel {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.treeAccountLabel > span {
  overflow-wrap: anywhere;
}
.treeAccountLabel .uiIcon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.treeRow small {
  max-width: 43%;
  flex-shrink: 0;
  font-size: 10px;
  color: #7889a4;
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.treeRow.active small {
  color: #df082b;
}
.accountChildren {
  margin-left: 13px;
  min-width: 0;
}
.accountBranch > summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.accountBranch > summary::-webkit-details-marker {
  display: none;
}
.accountBranch > summary::before {
  content: "▸";
  flex: 0 0 10px;
  font-size: 11px;
  color: #435575;
}
.accountBranch[open] > summary::before {
  content: "▾";
}
.accountBranch > summary > .treeRow {
  min-width: 0;
  flex: 1;
}
aside footer {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}
.shell > main {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  padding: 24px 26px 0;
}
.shell.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}
.shell.sidebar-collapsed > aside {
  position: fixed;
  left: 0;
  visibility: hidden;
  transform: translateX(-100%);
}
.sidebar-collapsed .headerBrand {
  flex-basis: 222px;
  border-right: 0;
}
.sidebar-collapsed > main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 42px 0;
}
.contextLine {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 22px;
  min-height: 20px;
}
.shell:not([data-view="ledger"]) .contextLine {
  display: none;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 3px 0 22px;
}
.heading p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.heading .eyebrow {
  display: none;
}
.ledgerOverview {
  gap: 20px;
  min-height: 75px;
  margin-bottom: 24px;
}
.accountIntro {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 1 auto;
  min-width: 0;
}
.accountIntro h1 {
  font-size: 25px;
  margin-bottom: 5px;
}
#accountHeroIcon .uiIcon {
  width: 39px;
  height: 39px;
}
.balanceCard {
  flex: 1;
  min-width: 160px;
  border-left: 1px solid #d2dbe7;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
}
.balanceCard strong {
  font-size: 25px;
  letter-spacing: -0.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#balanceCaption {
  color: var(--muted);
  font-size: 11px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.actions button {
  font-size: 11px;
}
.iconButton {
  padding: 7px;
  min-width: 35px;
}
.dangerButton:hover {
  background: #fff0f2;
}
.entryCard,
.movementCard,
.panel,
.card,
.accountReport,
.pieCard,
.comparisonCard,
#filterForm {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 5px #1e345506;
}
.entryCard {
  padding: 17px;
  border-top: 2px solid var(--red);
  margin-bottom: 17px;
}
.entryCard h2 {
  margin: 0 2px 12px;
  font-size: 16px;
}
.quick {
  display: grid;
  grid-template-columns:
    minmax(125px, 0.9fr) minmax(170px, 1.6fr) minmax(150px, 1.3fr)
    minmax(80px, 0.65fr) minmax(80px, 0.65fr) auto auto;
  align-items: end;
  gap: 11px;
  padding: 15px;
  border: 1px solid #e2e8f1;
  background: #f8fafc;
  border-radius: 6px;
}
.quick button {
  min-height: 38px;
}
#quickCancel {
  padding: 7px 11px;
}
.wide {
  grid-column: 1/-1;
}
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.filters label {
  min-width: 110px;
}
.filters .searchLabel {
  flex: 1;
  min-width: 180px;
}
.filters button {
  min-height: 37px;
  font-size: 11px;
}
#filterForm {
  padding: 16px 18px;
  margin-bottom: 17px;
}
#filterForm label:not(.searchLabel) {
  flex: 0 1 165px;
}
#filterForm > button:first-of-type {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.movementCard {
  padding: 16px 18px 8px;
}
.ledgerHeading,
.sectionHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 12px;
}
.ledgerHeading h2 {
  font-size: 17px;
  margin: 0;
}
#recordCount {
  color: var(--muted);
  font-size: 11px;
}
.tableWrap {
  overflow: auto;
  min-width: 0;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
th {
  background: #fff;
  font-weight: 600;
  text-align: left;
  color: #3a4c6d;
  padding: 11px 13px;
  border-top: 1px solid var(--line);
}
td {
  padding: 10px 13px;
  border-top: 1px solid #e8edf4;
  vertical-align: middle;
}
th,
td {
  border-right: 1px solid #e8edf4;
}
th:first-child,
td:first-child {
  border-left: 1px solid #e8edf4;
}
tr:last-child td {
  border-bottom: 1px solid #e8edf4;
}
tbody tr:nth-child(even) {
  background: #f8fafc;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 10px;
}
td.numeric,
th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.positive {
  color: #00873f;
}
.outgoing,
.amountNegative {
  color: #e11636;
}
#ledgerRows button {
  padding: 5px 8px;
  min-height: 30px;
  font-size: 11px;
  margin: 2px;
}
#ledgerRows .uiIcon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}
#ledgerRows td:last-child {
  min-width: 135px;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 12px;
  font-size: 11px;
}
.pager button {
  font-size: 11px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 15px;
  margin-bottom: 18px;
}
.card {
  padding: 17px;
  text-align: left;
}
.card strong {
  display: block;
  margin: 8px 0 3px;
  font-size: 23px;
  font-weight: 650;
}
.card small {
  color: var(--muted);
}
/* Balances and income/expense reports share the approved white-card language. */
.reportHeading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  margin: 0 0 7px;
}
.reportHeading .heading {
  margin: 0;
}
.reportHeading h1 {
  font-size: 28px;
}
.reportHeading #reportForm {
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 8px;
  padding-top: 4px;
}
.reportHeading #reportForm label {
  min-width: 85px;
  max-width: 145px;
}
#reportYearLabel {
  width: 98px;
}
#reportMonthLabel {
  width: 110px;
}
#reportDates {
  text-align: right;
  margin: 0 0 14px;
  font-size: 10px;
  color: var(--muted);
}
.reportMetrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 0;
  gap: 0;
  margin: 0 0 19px;
  box-shadow: 0 2px 5px #1e345506;
}
.reportMetrics.resultMetrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 21px 0;
}
.reportMetrics .card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0 20px;
  border-right: 1px solid var(--line);
  background: transparent;
}
.reportMetrics .card:last-child {
  border-right: 0;
}
.metricCard {
  display: flex;
  align-items: center;
  gap: 17px;
}
.metricCard .iconChip {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
}
.metricCard .uiIcon {
  width: 26px;
  height: 26px;
}
.metricLabel {
  color: #354461;
  font-size: 11px;
}
.reportMetrics .card strong {
  font-size: 21px;
  line-height: 1.3;
  margin: 4px 0 0;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.4px;
}
.resultMetrics .card:nth-child(2) strong {
  color: #ba1730;
}
.resultMetrics .card:nth-child(3) strong {
  color: #20513e;
}
.reportForest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  align-items: start;
}
.balanceRight {
  display: grid;
  align-content: start;
  gap: 17px;
}
.balanceForest > .reportType-INGRESO {
  grid-column: 1;
}
.balanceForest > .reportType-GASTO {
  grid-column: 2;
}
.accountReport {
  padding: 0 17px 10px;
  overflow: hidden;
}
.accountReport > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--line);
}
.accountReport h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}
.accountReport .reportKicker {
  display: none;
}
.sectionTotal {
  font-size: 17px;
  color: var(--blue);
  white-space: nowrap;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.sectionTotal small {
  font-size: 10px;
  color: #52617d;
  font-weight: 400;
  margin-right: 12px;
}
.reportType-GASTO .sectionTotal {
  color: #ed142f;
}
.reportColumnKey {
  display: flex;
  justify-content: space-between;
  color: #7a89a3;
  font-size: 10px;
  padding: 8px 0 7px;
  border-bottom: 1px solid var(--line);
}
.reportAccountTree,
.reportAccountTree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reportAccountTree {
  padding: 3px 0 0;
  overflow: auto;
  scrollbar-width: thin;
}
.reportAccountTree ul {
  margin-left: 16px;
  padding-left: 6px;
  border-left: 1px solid #e4eaf3;
}
.reportAccountTree li {
  min-width: 0;
}
.reportAccountTree summary,
.reportLeaf {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
  min-height: 28px;
  font-size: 11px;
  border-bottom: 1px solid #edf1f7;
}
.reportAccountTree summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.reportAccountTree summary::-webkit-details-marker {
  display: none;
}
.reportAccountTree summary::before {
  content: "▸";
  font-size: 11px;
  flex: 0 0 7px;
  color: #425779;
}
.reportAccountTree details[open] > summary::before {
  content: "▾";
}
.reportAccountTree summary:hover,
.reportLeaf:hover {
  background: #f7f9fd;
}
.reportNodeName {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 90px;
  overflow-wrap: anywhere;
}
.reportNodeName .uiIcon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.reportAmounts {
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.reportAmounts strong {
  font-size: 11px;
  font-weight: 550;
}
.reportUnits {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.accountReport > footer {
  display: none;
}
.reportEmpty {
  padding: 20px 0 28px;
  margin: 0;
  color: #8a96ad;
  font-size: 11px;
}
.netAccumulatedResult {
  margin-top: 4px;
}
.netCapital small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.reportReconcile {
  color: #8693a9;
  font-size: 10px;
  line-height: 1.6;
  margin: 12px 0 0;
}
.reportCharts {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  margin-top: 25px;
}
.reportCharts > h2 {
  font-size: 21px;
  margin: 0 0 5px;
}
.reportCharts .hint {
  margin: 0 0 11px;
}
.reportKicker {
  font-size: 9px;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: #7e8ba2;
  margin: 0 0 4px;
}
.pieGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.pieCard {
  padding: 14px 17px;
}
.pieCard h3 {
  font-size: 15px;
  margin: 0;
}
.pieCard.reportType-INGRESO h3 {
  color: var(--blue);
}
.pieCard.reportType-GASTO h3 {
  color: #ec1431;
}
.pieContent {
  display: grid;
  grid-template-columns: minmax(145px, 0.8fr) minmax(170px, 1.2fr);
  gap: 20px;
  align-items: center;
  margin-top: 4px;
}
.pieContent figure {
  margin: 0;
}
.pieSvg {
  width: 100%;
  max-width: 230px;
  display: block;
  margin: auto;
}
.pieSvg path,
.pieSvg circle:not(.donutHole) {
  stroke: white;
  stroke-width: 1.5;
}
.pieSvg path:hover,
.pieSvg circle:not(.donutHole):hover,
.pieSvg [tabindex]:focus {
  opacity: 0.8;
  stroke: #172442;
  stroke-width: 2;
}
.donutHole {
  stroke: none;
  pointer-events: none;
}
.donutLabel {
  font-size: 13px;
  fill: #8a96ad;
  pointer-events: none;
}
.donutTotal {
  font-size: 11px;
  font-weight: 700;
  fill: var(--ink);
  pointer-events: none;
}
.pieContent figcaption {
  display: none;
}
.pieLegend {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: none;
  overflow: visible;
}
.pieLegend li {
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 3px 0;
  line-height: 17px;
  border-bottom: 1px solid #edf1f7;
  font-size: 11px;
}
.pieLegend li > span {
  flex: 1;
  overflow-wrap: anywhere;
}
.pieLegend li > svg {
  flex-shrink: 0;
}
.pieLegend strong {
  text-align: right;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pieLegend small {
  display: inline-block;
  margin: 0 0 0 8px;
  font-size: 10px;
  font-weight: 400;
  color: #8b96ab;
}
.pieAdjustments {
  background: #f5f7fb;
  padding: 9px 11px;
  margin-top: 10px;
  border-radius: 5px;
  font-size: 10px;
  color: #65758e;
}
.pieAdjustments p {
  margin-bottom: 6px;
}
.pieAdjustments ul {
  margin: 0;
  list-style: none;
  padding: 0;
}
.pieAdjustments li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 5px 0;
}
.chartEmpty {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 192px;
  color: #64728d;
}
.chartEmpty .uiIcon {
  width: 33px;
  height: 33px;
  color: #9ba8bd;
  margin-bottom: 13px;
}
.chartEmpty p {
  margin: 0 0 3px;
}
.chartEmpty span {
  font-size: 12px;
}
.comparisonCard {
  padding: 17px 20px 12px;
  margin: 0 0 17px;
}
.comparisonCard h3 {
  font-size: 16px;
  margin: 0;
}
.comparisonCard > header .reportKicker {
  display: none;
}
.chartLegend {
  display: flex;
  gap: 19px;
  justify-content: flex-end;
  flex-wrap: wrap;
  font-size: 10px;
  color: #7b89a3;
  margin-top: -19px;
  margin-bottom: 12px;
}
.chartLegend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.chartLegend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legendIncome,
.barIncome {
  background: #4285f4;
  fill: #4285f4;
}
.legendExpense,
.barExpense {
  background: #ea4335;
  fill: #ea4335;
}
.legendResult,
.barResult {
  background: #34a853;
  fill: #34a853;
}
.comparisonSvg {
  display: block;
  width: 100%;
  max-width: 850px;
  margin: 18px auto 0;
  font-family: inherit;
}
.comparisonSvg text {
  fill: #7585a1;
  font-size: 13px;
}
.comparisonSvg .barValue {
  fill: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.comparisonSvg .barLabel {
  font-size: 13px;
}
.monthlyComparisonSvg {
  display: block;
  width: 100%;
  min-width: 850px;
  font-family: inherit;
}
.monthlyComparisonSvg text {
  fill: #8090ac;
  font-size: 12px;
}
.monthlyChartScroll {
  overflow-x: auto;
  scrollbar-width: thin;
  padding-top: 12px;
}
.monthlyGrid {
  stroke: #e5ecf5;
}
.monthlyZero {
  stroke: #d1dceb;
}
.monthlyComparisonSvg rect:focus,
.monthlyComparisonSvg rect:hover {
  stroke: #22365d;
  stroke-width: 1.5;
}
.monthlyBreakdown {
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
}
.monthlyBreakdown > summary {
  cursor: pointer;
  padding: 9px 0;
}
/* Additional existing views, forms and dialogs use the same controls and surfaces. */
#wealthView > .hint {
  margin: 0 0 17px;
}
.sectionHeading {
  margin-top: 22px;
}
.panel {
  padding: 18px;
}
.settingsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.settingRow {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.settingRow > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.settingRow small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.settingRow button {
  font-size: 11px;
}
.currencyFields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding-top: 10px;
}
.currencyFields .hint {
  margin: 0;
}
#gainField {
  margin-top: 12px;
}
.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.check input {
  width: 16px;
  min-height: 16px;
  flex-shrink: 0;
}
dialog {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 11px;
  width: min(850px, 94vw);
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 18px 80px #18294830;
  color: var(--ink);
}
dialog::backdrop {
  background: #162b4455;
}
#modalForm > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
#modalForm > header h2 {
  margin: 0;
  font-size: 21px;
}
#modalForm > header p {
  margin: 0 0 4px;
}
#closeModal {
  border: 0;
  font-size: 25px;
  padding: 0 6px;
  min-height: 28px;
}
#modalBody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  padding: 22px 24px;
}
#modalBody .cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#modalForm > footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}
#modalError {
  margin: 0 24px 18px;
}
.advancedLine {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}
.advancedLine button {
  padding: 6px 10px;
}
.personalDetails {
  text-align: center;
  padding: 12px;
}
.largeAvatar {
  width: 55px;
  height: 55px;
  margin: 0 auto 15px;
  font-size: 20px;
}
.personalDetails p {
  color: var(--muted);
  font-size: 12px;
}
.mainFooter {
  display: flex;
  justify-content: space-between;
  margin-top: 35px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: #8c99ad;
  font-size: 9px;
  letter-spacing: 0.07em;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.manifesto {
  background: #eef2f8;
  padding: 65px;
  position: relative;
  overflow: hidden;
}
.manifesto .brand {
  margin-bottom: 80px;
}
.manifesto h1 {
  font-size: 52px;
  margin-top: 25px;
}
.manifesto p {
  color: #677c99;
  font-size: 16px;
  line-height: 1.7;
}
.manifesto footer {
  position: absolute;
  bottom: 35px;
  font-size: 10px;
  color: #7a8ca7;
  letter-spacing: 0.12em;
}
.rings {
  display: none;
}
.loginCard {
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  gap: 17px;
  width: min(350px, 80%);
}
.loginCard h2 {
  font-size: 26px;
  margin: 0;
}
.loginCard p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.loginCard small {
  color: #8e9bb0;
}
.loginCard button {
  margin-top: 6px;
}
@media (min-width: 1650px) {
  .shell > main {
    padding-left: 36px;
    padding-right: 36px;
  }
  .quick {
    grid-template-columns:
      150px minmax(200px, 1.6fr) minmax(170px, 1.3fr)
      110px 110px auto auto;
  }
}
@media (max-width: 1250px) {
  .shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .shell > aside {
    width: 300px;
  }
  .headerBrand {
    flex-basis: 300px;
  }
  .headerUser {
    gap: 10px;
    padding-right: 14px;
  }
  .primaryNav {
    padding: 0 10px;
    gap: 0;
  }
  .primaryNav button {
    padding: 0 9px;
    font-size: 11px;
  }
  .ledgerOverview {
    flex-wrap: wrap;
  }
  .ledgerOverview .actions {
    margin-left: auto;
  }
  .accountIntro {
    flex: 1;
  }
  .balanceCard {
    flex: 1;
  }
  .quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick button {
    min-height: 36px;
  }
  .pieContent {
    grid-template-columns: 1fr;
  }
  .pieSvg {
    max-width: 210px;
  }
  .reportMetrics .card {
    padding: 0 13px;
  }
  .metricCard {
    gap: 10px;
  }
  .metricCard .iconChip {
    width: 34px;
    height: 38px;
    flex-basis: 34px;
  }
  .metricCard .uiIcon {
    width: 23px;
    height: 23px;
  }
  .reportMetrics .card strong {
    font-size: 18px;
  }
}
@media (max-width: 950px) {
  .reportForest {
    grid-template-columns: 1fr;
  }
  .balanceForest > .reportType-INGRESO,
  .balanceForest > .reportType-GASTO {
    grid-column: auto;
  }
  .settingsGrid {
    grid-template-columns: 1fr;
  }
  .reportHeading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .reportHeading #reportForm {
    flex-wrap: wrap;
  }
  .reportMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
  }
  .reportMetrics .card:nth-child(2) {
    border-right: 0;
  }
  .reportMetrics.resultMetrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .reportMetrics.resultMetrics .card:nth-child(2) {
    border-right: 1px solid var(--line);
  }
  .chartLegend {
    margin-top: 12px;
    justify-content: flex-start;
  }
  .headerBrand,
  .sidebar-collapsed .headerBrand {
    flex-basis: 205px;
    padding: 0 14px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand svg {
    width: 20px;
  }
  .primaryNav button {
    padding: 0 7px;
    font-size: 10px;
  }
  .headerUser {
    gap: 8px;
    padding-left: 0;
  }
  .avatar {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }
  .headerUser #logout {
    font-size: 10px;
    padding: 6px 10px;
  }
  .shell > main {
    padding: 20px;
  }
  .sidebar-collapsed > main {
    padding: 24px;
  }
}
@media (max-width: 720px) {
  .shell,
  .shell.sidebar-collapsed {
    display: block;
    padding-top: 102px;
  }
  .appHeader {
    height: 102px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 55px 47px;
  }
  .headerBrand,
  .sidebar-collapsed .headerBrand {
    grid-column: 1;
    grid-row: 1;
    border: 0;
    width: 210px;
    padding: 0 15px;
  }
  .headerUser {
    grid-column: 2;
    grid-row: 1;
    padding-right: 14px;
  }
  .primaryNav {
    grid-column: 1/-1;
    grid-row: 2;
    padding: 0 9px;
    justify-content: space-between;
    border-top: 1px solid #f0f3f7;
  }
  .primaryNav button {
    font-size: 11px;
    padding: 0 9px;
  }
  .shell > aside {
    position: fixed;
    top: 102px;
    height: calc(100dvh - 102px);
    left: 0;
    width: min(344px, 91vw);
    z-index: 35;
    box-shadow: 7px 0 30px #132b4820;
    padding-top: 33px;
  }
  #sidebarClose {
    display: flex;
  }
  .shell > main,
  .sidebar-collapsed > main {
    padding: 20px 16px 0;
  }
  .ledgerOverview {
    gap: 13px;
  }
  .accountIntro {
    flex-basis: 100%;
  }
  .accountIntro h1 {
    font-size: 23px;
  }
  .balanceCard {
    border-left: 0;
    padding-left: 0;
  }
  .balanceCard strong {
    font-size: 22px;
  }
  .actions {
    flex-basis: 100%;
  }
  .quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pieGrid {
    grid-template-columns: 1fr;
  }
  .pieContent {
    grid-template-columns: minmax(130px, 0.8fr) minmax(150px, 1.2fr);
  }
  .reportHeading h1 {
    font-size: 26px;
  }
  .reportMetrics .card strong {
    font-size: 16px;
  }
  .metricCard {
    gap: 8px;
  }
  .metricCard .iconChip {
    display: none;
  }
  .reportMetrics.resultMetrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sectionTotal {
    font-size: 15px;
  }
  .sectionTotal small {
    display: none;
  }
  .accountReport {
    padding: 0 12px 8px;
  }
  .accountReport h2 {
    font-size: 15px;
    gap: 8px;
  }
  .accountReport .iconChip {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  .currencyFields {
    grid-template-columns: 1fr;
  }
  #modalBody {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  #modalBody .cards {
    grid-template-columns: 1fr;
  }
  .advancedLine {
    grid-template-columns: minmax(100px, 1fr) 80px 80px 30px;
    gap: 4px;
  }
  .mainFooter span {
    display: none;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .manifesto {
    padding: 30px;
  }
  .manifesto .brand {
    margin-bottom: 20px;
  }
  .manifesto h1 {
    font-size: 35px;
  }
  .manifesto footer {
    display: none;
  }
  .loginCard {
    margin: 35px 0;
  }
  #notice {
    top: 112px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 720px) {
  .headerUser #personalArea > span:last-child {
    display: none;
  }
}
@media (max-width: 440px) {
  .primaryNav button {
    font-size: 10px;
    padding: 0 5px;
  }
  .headerBrand,
  .sidebar-collapsed .headerBrand {
    width: 190px;
  }
  .brand {
    font-size: 17px;
  }
  .reportMetrics.resultMetrics {
    grid-template-columns: 1fr;
    padding: 8px 0;
    gap: 0;
  }
  .reportMetrics.resultMetrics .card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px;
  }
  .reportMetrics.resultMetrics .card:last-child {
    border-bottom: 0;
  }
}

.movementSearch {
  margin: -4px 0 17px;
}
#toggleMovementSearch {
  gap: 7px;
  font-size: 12px;
}
#movementSearchPanel {
  margin-top: 10px;
}
#movementSearchPanel #filterForm {
  margin-bottom: 0;
}
#searchStatus,
.journalMeta {
  color: var(--muted);
  font-size: 12px;
}
#ledgerRows td {
  font-weight: 700;
}
#ledgerRows td:last-child {
  min-width: 90px;
}

/* Pantalla de acceso: Horizonte patrimonial. */
.login {
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 28px 48px;
  max-width: 1536px;
  margin: auto;
  padding: 36px 4.8% 56px;
  background: radial-gradient(ellipse at 40% 55%, #f6faff, #fff 70%);
}
.loginBrand {
  grid-column: 1 / -1;
  font-size: 25px;
}
.login .manifesto {
  background: transparent;
  padding: 48px 0 0;
  overflow: visible;
}
.login .manifesto h1 {
  color: #0c153a;
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 18px 0;
}
.login .manifesto h1 span {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 4px;
  text-underline-offset: 10px;
}
.login .manifesto .eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.login .manifesto p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.6;
}
.horizonArt {
  display: block;
  width: calc(100% + 70px);
  max-width: 850px;
  height: auto;
  margin: -10px 0 0 -35px;
}
.login .loginCard {
  width: 100%;
  max-width: 505px;
  border: 1px solid #e1e8f1;
  border-radius: 11px;
  background: #ffffffd9;
  box-shadow: 0 12px 40px #273e6910;
  padding: 45px 40px;
  gap: 24px;
  margin: 25px 0;
}
.login .loginCard h2 {
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.login .loginCard p {
  font-size: 15px;
  line-height: 1.5;
}
.login .loginCard .eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
}
.login .loginCard label {
  font-size: 13px;
  gap: 8px;
}
.login .loginCard input {
  min-height: 48px;
  background: #fff;
}
.login .loginCard .primary {
  min-height: 52px;
  justify-content: center;
  font-size: 17px;
  background: #e60028;
}
.login .loginCard small {
  font-size: 12px;
}
.loginFeatures {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.loginFeatures article {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e4eaf3;
  padding: 22px 18px;
  border-radius: 9px;
}
.loginFeatures .uiIcon {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 50%;
  background: #f4f6fb;
  flex-shrink: 0;
}
.loginFeatures strong {
  font-size: 14px;
}
.loginFeatures p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #7184a4;
}
.periodButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.periodButtons button[aria-pressed="true"] {
  background: #fff0f3;
  border-color: var(--red);
  color: #c90026;
  font-weight: 700;
}
#searchStatus:empty {
  display: none;
}
@media (max-width: 1000px) {
  .login {
    gap: 22px;
    padding: 28px 4%;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr);
  }
  .login .loginCard {
    padding: 30px 25px;
  }
  .loginFeatures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .login {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 25px 20px 35px;
  }
  .loginBrand {
    order: 0;
  }
  .login .loginCard {
    order: 1;
    margin: 8px 0 0;
    align-self: center;
  }
  .login .manifesto {
    order: 2;
    padding: 18px 0 0;
  }
  .login .manifesto h1 {
    font-size: clamp(32px, 7vw, 48px);
  }
  .horizonArt {
    width: 100%;
    margin: 15px 0 0;
  }
  .loginFeatures {
    order: 3;
    gap: 10px;
  }
  .loginFeatures article {
    padding: 14px 10px;
    gap: 8px;
  }
  .loginFeatures .uiIcon {
    width: 35px;
    height: 35px;
    padding: 7px;
  }
  .loginFeatures strong {
    font-size: 12px;
  }
  .loginFeatures p {
    font-size: 11px;
  }
}

.reportHeading #reportForm {
  flex-wrap: wrap;
  max-width: 640px;
}
#reportPeriodButtons {
  flex-basis: 100%;
  justify-content: flex-end;
}
.passwordField {
  display: flex;
  position: relative;
}
.passwordField input {
  width: 100%;
  padding-right: 48px;
}
.loginCard .passwordField button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border: 0;
  background: transparent;
  padding: 8px;
  margin: 0;
  color: #7d90b1;
}
@media (max-width: 720px) {
  #reportPeriodButtons {
    justify-content: flex-start;
  }
}

/* Periodos en una sola navegación, con los selectores en la misma línea. */
.reportHeading {
  display: block;
}
.reportHeading #reportForm {
  width: 100%;
  max-width: none;
  justify-content: flex-start;
  align-items: center;
  gap: 0 18px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0 0;
}
#reportPeriodButtons {
  flex-basis: auto;
  gap: 22px;
  justify-content: flex-start;
}
#reportPeriodButtons button,
#reportApply {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 12px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  min-height: 44px;
  border-bottom: 3px solid transparent;
}
#reportPeriodButtons button[aria-pressed="true"] {
  background: transparent;
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 700;
}
#reportPeriodButtons button:hover,
#reportApply:hover {
  color: var(--red);
  background: transparent;
}
.reportHeading #reportForm label {
  flex-direction: row;
  align-items: center;
  min-width: 0;
  max-width: none;
  gap: 7px;
  white-space: nowrap;
  font-size: 12px;
}
#reportForm input,
#reportForm select {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 8px 4px;
  min-height: 41px;
  width: auto;
  max-width: 155px;
}
#reportForm #reportYear {
  width: 76px;
}
#reportForm #reportApply {
  color: var(--red);
  font-weight: 600;
}
.iconPicker {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin: 0;
  min-width: 0;
}
.iconPicker legend {
  padding: 0 5px;
  font-size: 12px;
  font-weight: 600;
}
#iconPreview .uiIcon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-left: 6px;
}
.iconChoices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  gap: 5px;
  max-height: 190px;
  overflow-y: auto;
  padding: 8px 2px 2px;
}
.iconChoices label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 65px;
  padding: 8px 4px;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 10px;
  color: var(--muted);
}
.iconChoices label:hover {
  background: #f4f7fc;
}
.iconChoices label:has(input:checked) {
  border-color: var(--red);
  background: #fff4f6;
  color: var(--ink);
}
.iconChoices label:has(input:focus-visible) {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}
.iconChoices input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  padding: 0;
}
.iconChoices .uiIcon {
  width: 25px;
  height: 25px;
}
#iconSearch {
  font-size: 12px;
}
@media (max-width: 720px) {
  #reportPeriodButtons {
    gap: 16px;
    width: 100%;
  }
  #reportPeriodButtons button {
    font-size: 12px;
  }
  .reportHeading #reportForm {
    gap: 0 12px;
  }
}

.customAccountIcon {
  object-fit: contain;
  flex-shrink: 0;
}
#accountHeroIcon .customAccountIcon {
  width: 32px;
  height: 32px;
}
.iconColorControls {
  border: 0;
  padding: 10px 0 0;
  margin: 8px 0;
}
.iconColorControls legend {
  font-weight: 600;
}
.colorPalette {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.colorPalette button {
  border: 1px solid transparent;
  border-radius: 50%;
  padding: 2px;
  background: transparent;
}
.colorPalette button[aria-pressed="true"] {
  border-color: var(--ink);
}
.colorFields {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.colorFields label {
  font-size: 11px;
}
#iconColorPicker {
  width: 50px;
  height: 35px;
  padding: 3px;
}
#iconColorHex {
  width: 100px;
}
.iconUpload {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.iconUpload label {
  flex: 1;
  min-width: 180px;
  font-size: 11px;
}
.iconUpload input {
  font-size: 11px;
  padding: 5px;
}
#iconUploadStatus:empty {
  display: none;
}
/* Budget shares the white surfaces and compact type of the ledger. */
.budgetHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 5px 0 20px;
}
.budgetHeadingTitle {
  display: flex;
  align-items: center;
  gap: 16px;
}
.budgetHeading h1 {
  margin: 0 0 3px;
  font-size: 28px;
}
.budgetHeading p {
  margin: 0;
  color: #53667f;
  font-size: 13px;
}
.budgetBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e7f7f0;
  color: #12a46a;
}
.budgetBadge svg {
  width: 26px;
  height: 26px;
}
.budgetBadge.expense {
  background: #ffebee;
  color: #f33148;
}
.budgetBadge.calendar {
  background: #ffe7e9;
  color: #ed2439;
  border-radius: 12px;
  width: 56px;
  height: 56px;
}
.budgetBadge.calendar svg {
  width: 30px;
  height: 30px;
}
.budgetYearControl {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e1e6ed;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.budgetYearControl button {
  border: 0;
  background: transparent;
  color: #15243b;
  font-size: 25px;
  font-weight: 500;
  padding: 2px 14px;
  border-radius: 0;
  height: 36px;
}
.budgetYearControl input {
  border: 0;
  border-left: 1px solid #e8edf2;
  border-right: 1px solid #e8edf2;
  border-radius: 0;
  width: 105px;
  text-align: center;
  height: 36px;
  font-size: 15px;
  font-weight: 750;
  color: #10203b;
  background: transparent;
  appearance: textfield;
  -moz-appearance: textfield;
}
.budgetYearControl input::-webkit-inner-spin-button {
  appearance: none;
}
.budgetTabs {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid #e2e7ed;
  margin-bottom: 18px;
  align-items: stretch;
}
.budgetTabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 11px 15px;
  color: #52647c;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.budgetTabs button.selected {
  border-bottom: 2px solid #ef263c;
  color: #b92132;
}
.budgetTabs .uiIcon {
  width: 17px;
  height: 17px;
}
.budgetTabs .budgetEditorTab {
  margin-left: auto;
}
.budgetCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.budgetTables,
.budgetCharts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-width: 0;
}
.budgetGood {
  color: #0c9b61;
  font-weight: 700;
}
.budgetBad {
  color: #e62f43;
  font-weight: 700;
}
.budgetGood small,
.budgetBad small {
  font-size: inherit;
}
.budgetPeriod {
  font-size: 15px;
  margin: 5px 0 10px;
}
.budgetMetric {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.budgetMetric h3 {
  font-size: 12px;
  font-weight: 650;
  margin: 0 0 7px;
}
.budgetMetricValue {
  font-size: 23px;
  font-weight: 780;
  letter-spacing: -0.5px;
  color: #10203b;
  white-space: nowrap;
}
.budgetMetric p {
  font-size: 11px;
  color: #61738d;
  margin: 7px 0 10px;
}
.budgetMetric .budgetGood,
.budgetMetric .budgetBad {
  font-size: 11px;
}
.budgetPanelTitle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 14px;
}
.budgetPanelTitle .budgetBadge {
  width: 29px;
  height: 29px;
}
.budgetPanelTitle .budgetBadge svg {
  width: 17px;
  height: 17px;
}
#budgetContent .card {
  padding: 16px;
  margin-bottom: 14px;
  min-width: 0;
  border: 1px solid #e4e9ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px #18304d03;
}
#budgetContent td .uiIcon,
#budgetContent h4 .uiIcon {
  width: 17px;
  height: 17px;
  vertical-align: middle;
}
#budgetContent td:not(:first-child),
#budgetContent th:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}
#budgetContent td:not(:first-child) {
  font-variant-numeric: tabular-nums;
}
.budgetExecution h3 {
  font-size: 13px;
  margin: 0 0 12px;
}
.budgetExecutionLine {
  display: flex;
  align-items: center;
  gap: 16px;
}
.budgetExecutionLine strong {
  font-size: 17px;
  min-width: 55px;
  text-align: right;
}
.budgetTrack {
  height: 11px;
  background: #edf1f4;
  border-radius: 3px;
  overflow: hidden;
  flex: 1;
}
.budgetTrack > span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #7dcba6, #32a473);
}
.budgetTrack.unfavorable > span {
  background: linear-gradient(90deg, #ff939e, #ff4c61);
}
.budgetExecution p {
  margin: 9px 0 5px;
  font-size: 10px;
  color: #63758e;
}
.budgetExecution small {
  color: #77869a;
  font-size: 10px;
}
.budgetLegendDot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}
.budgetLegendDot.green {
  background: #2fa772;
}
.budgetLegendDot.gray {
  background: #8c9aaa;
  margin-left: 18px;
}
.budgetCategoryRow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 0;
  font-size: 11px;
}
.budgetCategoryRow > span {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 135px;
  flex-shrink: 0;
  color: #354962;
  overflow: hidden;
  text-overflow: ellipsis;
}
.budgetCategoryRow > span .uiIcon,
.budgetAccountLabel .uiIcon,
.budgetGroup .uiIcon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.budgetCategoryRow > strong {
  width: 47px;
  text-align: right;
  font-size: 11px;
  color: #455b78;
}
.budgetCharts h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  margin: 0 0 13px;
}
.budgetCharts h3 .uiIcon {
  width: 18px;
  height: 18px;
}
.budgetCharts svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.budgetCharts svg text {
  font-size: 9px;
  fill: #60758f;
  font-weight: 550;
}
.budgetGrid {
  stroke: #edf0f4;
  stroke-width: 1;
}
.budgetChartLegend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 8px;
  font-size: 9px;
  color: #526986;
}
.budgetChartLegend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.budgetChartLegend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.budgetCharts small {
  display: block;
  font-size: 10px;
  color: #75859a;
}
.budgetHelp {
  font-size: 12px;
  color: #63738b;
  margin-bottom: 15px;
}
.budgetEditorPanels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.budgetEditorPanel .budgetGroup {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  margin: 15px 0 8px;
  color: #41536e;
}
.budgetEditorRow {
  border-top: 1px solid #edf0f4;
  padding: 13px 0;
}
.budgetAccountLabel {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 12px;
}
.budgetAccountLabel strong {
  font-size: 12px;
}
.budgetSavedTotal {
  margin-left: auto;
  font-size: 10px;
  color: #6b7b90;
}
.budgetEntryFields {
  display: flex;
  gap: 10px;
  align-items: end;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.budgetAmountLabel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: #566982;
}
.budgetAmount {
  width: 100px !important;
  font-weight: 750 !important;
  padding: 7px !important;
  font-size: 12px !important;
  min-height: 31px;
}
.budgetFrequency {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.budgetFrequency button,
.budgetMonthButtons button {
  border: 1px solid #e1e7ed;
  background: white;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 550;
  color: #50657e;
  min-height: 23px;
  padding: 3px 7px;
  box-shadow: none;
}
.budgetFrequency button[aria-pressed="true"],
.budgetMonthButtons button[aria-pressed="true"] {
  background: #e1f3e9;
  border-color: #bae5cc;
  color: #148958;
}
.budgetMonthsField {
  flex: 1;
  min-width: 185px;
}
.budgetMonthsField > span {
  display: block;
  font-size: 10px;
  color: #566982;
  margin-bottom: 6px;
}
.budgetMonthButtons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}
.budgetMonthButtons button {
  padding: 3px 4px;
  min-width: 0;
}
.budgetMonthButtons button:disabled {
  opacity: 0.6;
}
.budgetSave {
  border: 0 !important;
  background: transparent !important;
  color: #c42336 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px !important;
}
.budgetSave:disabled {
  opacity: 0.4;
}
.budgetMonthSelect {
  font-size: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 12px;
}
.budgetMonthSelect select {
  width: auto;
  font-weight: 700;
}
.budgetEntryFields:disabled {
  opacity: 0.65;
}
#budgetContent button:focus-visible,
.budgetTabs button:focus-visible,
.budgetYearControl button:focus-visible {
  outline: 2px solid #317ad4;
  outline-offset: 2px;
}
@media (max-width: 1250px) {
  .budgetEditorPanels {
    grid-template-columns: 1fr;
  }
  .budgetMetric {
    gap: 9px;
  }
  .budgetMetricValue {
    font-size: 20px;
  }
  .budgetMetric .budgetBadge {
    width: 35px;
    height: 35px;
  }
  .budgetMetric .budgetBadge svg {
    width: 22px;
    height: 22px;
  }
}
@media (max-width: 850px) {
  .budgetTables,
  .budgetCharts {
    grid-template-columns: 1fr;
  }
  .budgetMetricValue {
    font-size: 18px;
  }
  .budgetCategoryRow > span {
    width: 125px;
  }
  .budgetTabs {
    gap: 0;
    overflow: auto;
  }
  .budgetTabs button {
    padding: 10px 9px;
  }
  .budgetHeadingTitle {
    gap: 10px;
  }
  .budgetHeading p {
    font-size: 11px;
  }
  .budgetHeading h1 {
    font-size: 24px;
  }
}
@media (max-width: 600px) {
  .budgetCards {
    grid-template-columns: 1fr;
  }
  .budgetMetricValue {
    font-size: 23px;
  }
  .budgetHeading {
    align-items: flex-start;
  }
  .budgetHeading p {
    max-width: 200px;
  }
  .budgetHeading .budgetBadge {
    display: none;
  }
  .budgetYearControl input {
    width: 62px;
  }
  .budgetYearControl button {
    padding: 2px 10px;
  }
  .budgetEntryFields {
    flex-wrap: wrap;
    align-items: center;
  }
  .budgetMonthsField {
    min-width: 190px;
  }
  .budgetAmount {
    width: 90px !important;
  }
  .budgetSavedTotal {
    max-width: 120px;
    text-align: right;
  }
  .budgetTabs .uiIcon {
    display: none;
  }
  .budgetTabs .budgetEditorTab {
    margin-left: 14px;
  }
  .budgetCategoryRow {
    gap: 8px;
  }
  .budgetCategoryRow > span {
    width: 100px;
  }
  .budgetCategoryRow > strong {
    width: 40px;
  }
}
/* Roomier budget editor and weighted comparisons. */
.budgetEditorPanels {
  grid-template-columns: 1fr;
  gap: 20px;
}
.budgetEditorRow {
  padding: 18px 0;
}
.budgetEntryFields {
  gap: 18px;
  align-items: center;
}
.budgetAmount {
  width: 135px !important;
  font-size: 15px !important;
  min-height: 38px;
}
.budgetAmountLabel,
.budgetMonthsField > span {
  font-size: 12px;
  font-weight: 650;
}
.budgetFrequency {
  min-width: 86px;
  gap: 7px;
}
.budgetFrequency button {
  min-height: 30px;
  font-size: 13px;
  font-weight: 650;
}
.budgetFrequency button[aria-pressed="true"] {
  background: #fff0dc;
  border-color: #f0c996;
  color: #a56321;
}
.budgetMonthButtons {
  max-width: 660px;
  gap: 8px;
}
.budgetMonthButtons button {
  min-height: 30px;
  font-size: 12px;
  font-weight: 600;
}
.budgetAccountLabel,
.budgetAccountLabel strong {
  font-size: 15px;
}
.budgetSavedTotal {
  font-size: 13px;
}
.budgetSave {
  font-size: 13px !important;
}
.budgetEditorPanel .budgetGroup {
  font-size: 14px;
}
.budgetPanelTitle {
  font-size: 16px;
  font-weight: 750;
}
.budgetMetric h3 {
  font-size: 15px;
  font-weight: 750;
}
.budgetMetricValue {
  font-size: 28px;
  font-weight: 800;
}
.budgetMetric p {
  font-size: 13px;
}
.budgetMetric .budgetGood,
.budgetMetric .budgetBad {
  font-size: 13px;
}
.budgetMetric {
  gap: 16px;
}
.budgetPeriod {
  font-size: 18px;
  font-weight: 750;
}
.budgetTabs {
  gap: 6px;
}
.budgetTabs button {
  font-size: 13px;
  padding: 11px 12px;
}
.budgetCategoryRow,
.budgetCategoryRow > strong {
  font-size: 13px;
}
.budgetExecution h3,
.budgetCharts h3 {
  font-size: 15px;
  font-weight: 750;
}
.budgetExecution p {
  font-size: 12px;
}
.budgetExecutionLine strong {
  font-size: 20px;
}
.budgetChartLegend {
  font-size: 11px;
}
.budgetCharts svg text {
  font-weight: 650;
}
.budgetCompliance {
  display: flex;
  align-items: center;
  gap: 18px;
}
.budgetCompliance > svg {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.budgetCompliance text {
  font-size: 19px;
  font-weight: 800;
  fill: #12213a;
}
.budgetCompliance h3 {
  font-size: 16px;
  margin: 0 0 12px;
  font-weight: 750;
}
.budgetCompliance p {
  font-size: 14px;
  color: #576d88;
  margin: 8px 0;
}
.budgetCompliance .budgetLegendDot.gray {
  margin-left: 0;
}
.budgetCompliance small {
  font-size: 11px;
  color: #71839c;
}
.budgetDirection {
  font-size: 12px;
  margin-right: 2px;
}
.budgetWeightedNote {
  background: #f4f8fc;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: #4a607d;
}
#budgetContent table {
  font-size: 13px;
}
#budgetContent th {
  font-weight: 750;
}
@media (max-width: 1100px) {
  .budgetMetricValue {
    font-size: 24px;
  }
  .budgetMetric {
    gap: 10px;
  }
  .budgetTabs {
    flex-wrap: wrap;
  }
  .budgetTabs .budgetEditorTab {
    margin-left: auto;
  }
}
@media (max-width: 700px) {
  .budgetCards {
    grid-template-columns: 1fr;
  }
  .budgetEntryFields {
    flex-wrap: wrap;
    gap: 12px;
  }
  .budgetMonthsField {
    flex-basis: 100%;
  }
  .budgetMetricValue {
    font-size: 26px;
  }
  .budgetCompliance {
    gap: 12px;
  }
  .budgetCompliance > svg {
    width: 100px;
    height: 100px;
  }
  .budgetCompliance p {
    font-size: 12px;
  }
  .budgetTabs button {
    font-size: 12px;
  }
  .budgetMetric .budgetBadge {
    width: 44px;
    height: 44px;
  }
}
/* Final budget typography: regular values, strong deviations and totals. */
#budgetContent table th {
  font-weight: 500;
}
#budgetContent table td,
#budgetContent table .budgetNumber {
  font-weight: 400;
}
#budgetContent table td .budgetGood,
#budgetContent table td .budgetBad,
#budgetContent table .budgetTotal th,
#budgetContent table .budgetTotal td {
  font-weight: 750;
}
.budgetMetricQualifier {
  font-weight: 400;
  color: #7c8796;
  font-size: 0.85em;
}
.budgetMetric p b,
.budgetCompliance p b,
.budgetExecution p b {
  font-weight: 400;
}
.budgetSummaryCards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.budgetSummaryCards .budgetMetric {
  gap: 10px;
}
.budgetSummaryCards .budgetMetricValue {
  font-size: 23px;
}
.budgetSummaryCards .budgetMetric .budgetBadge {
  width: 38px;
  height: 38px;
}
.budgetSummaryCards .budgetMetric h3 {
  font-size: 14px;
}
.budgetSummaryCards .budgetMetric p,
.budgetSummaryCards .budgetMetric .budgetGood,
.budgetSummaryCards .budgetMetric .budgetBad {
  font-size: 11px;
}
.budgetSummaryCards .budgetCompliance {
  gap: 9px;
  padding: 12px !important;
}
.budgetSummaryCards .budgetCompliance > svg {
  width: 88px;
  height: 88px;
}
.budgetSummaryCards .budgetCompliance h3 {
  font-size: 13px;
}
.budgetSummaryCards .budgetCompliance p {
  font-size: 11px;
  margin: 7px 0;
}
.budgetMet {
  color: #0c955d;
  font-weight: 400;
}
.budgetUnmet {
  color: #de3045;
  font-weight: 400;
}
#budgetContent .budgetMonthlyComparison td:last-child strong {
  font-weight: 750;
}
.budgetMonthlyComparison td .budgetMet,
.budgetMonthlyComparison td .budgetUnmet {
  font-weight: 400;
}
.iconManagement {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 12px;
}
.iconManagement label {
  flex: 1;
}
.iconManagement button {
  white-space: nowrap;
  background: transparent;
  border: 0;
  color: #ce293d;
  font-weight: 600;
}
.iconManagement button:disabled {
  opacity: 0.4;
}
.budgetCompliance:focus-visible {
  outline: 2px solid #317ad4;
  outline-offset: 2px;
}
@media (max-width: 1250px) {
  .budgetSummaryCards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .budgetSummaryCards .budgetMetricValue {
    font-size: 26px;
  }
  .budgetSummaryCards .budgetCompliance > svg {
    width: 100px;
    height: 100px;
  }
  .budgetSummaryCards .budgetMetric p,
  .budgetSummaryCards .budgetCompliance p {
    font-size: 13px;
  }
}
@media (max-width: 700px) {
  .budgetSummaryCards {
    grid-template-columns: 1fr;
  }
  .iconManagement {
    flex-wrap: wrap;
  }
}
.importCounts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 10px 0;
  padding: 14px;
  background: #f4f7fa;
  border-radius: 8px;
  font-size: 13px;
}
.importCounts b {
  font-size: 18px;
  margin-right: 4px;
}
.importPreview {
  max-height: 48vh;
  overflow: auto;
}
.importPreview li {
  font-size: 12px;
  line-height: 1.65;
  margin: 7px 0;
}
.importPreview details {
  margin: 12px 0;
}
.importPreview summary {
  cursor: pointer;
  font-weight: 650;
}
.importWarning {
  padding: 10px;
  background: #fff3df;
  color: #895920;
  border-radius: 6px;
}
.importPreview table {
  font-size: 11px;
}
.importPreview p {
  font-size: 12px;
  line-height: 1.6;
}
#importGnuCash {
  font-size: 12px;
  margin: 4px 0 10px;
}
/* Account cards retain their own width, including long names and large balances. */
#groupSummary .cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
#groupSummary .childAccountCard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  align-content: start;
}
.childAccountName {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.childAccountName .uiIcon {
  flex-shrink: 0;
}
.childAccountName > span:last-child {
  min-width: 0;
}
.childAccountCard > strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.4rem;
}
.childAccountCard > small {
  white-space: normal;
  color: var(--muted);
}
.controlFilters,
.controlKinds,
.controlTableHeading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.controlFilters {
  margin: 18px 0;
  justify-content: space-between;
}
.controlFilters label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.controlFilters small,
.controlNote {
  color: #647084;
  font-size: 0.88rem;
  font-weight: 400;
}
.controlKinds {
  gap: 4px;
}
.controlKinds button[aria-pressed="true"],
.controlMonthlyTable button[aria-pressed="true"] {
  background: #fff1f2;
  border-color: #da3448;
  color: #a91d30;
}
.controlMetrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.controlMetrics.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.controlMetric {
  display: block;
  min-width: 0;
  border-top: 3px solid #d73549;
}
.controlMetric > div {
  display: flex;
  gap: 9px;
  align-items: center;
}
.controlMetric h3 {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  color: #596578;
}
.controlMetric > strong {
  display: block;
  font-size: clamp(1.2rem, 1.7vw, 1.8rem);
  margin: 16px 0 9px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.controlMetric p {
  font-weight: 400;
  font-size: 0.85rem;
  color: #687588;
  line-height: 1.5;
  margin: 0;
}
#budgetView > article {
  display: block;
  margin: 16px 0;
  min-width: 0;
}
#budgetView > article h2 {
  font-size: 1.08rem;
  font-weight: 600;
}
.controlPlot {
  width: 100%;
  min-width: 680px;
  max-height: 350px;
  display: block;
}
#budgetView > article:has(.controlPlot) {
  overflow-x: auto;
}
.controlPlot text {
  font-size: 10px;
  fill: #647084;
}
.controlTableHeading {
  justify-content: space-between;
  margin-bottom: 12px;
}
.controlAccountTable,
.controlMonthlyTable {
  width: 100%;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
.controlAccountTable td,
.controlMonthlyTable td {
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}
.controlAccountTable th,
.controlMonthlyTable th {
  text-align: right;
}
.controlAccountTable td:first-child,
.controlAccountTable th:first-child,
.controlMonthlyTable td:first-child,
.controlMonthlyTable th:first-child {
  text-align: left;
}
.controlAccountTable td:nth-last-child(2),
.controlAccountTable td:last-child,
.controlMonthlyTable td:nth-child(4) {
  font-weight: 650;
}
.controlAccountTable .controlStrong {
  font-weight: 650;
}
.controlAccountTable tfoot,
.controlMonthlyTable tfoot {
  background: #f6f7f9;
}
.controlAccount {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 210px;
  white-space: normal;
}
.controlAccount button {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 4px;
  font-weight: 400;
}
.controlAccount .controlAccountLink {
  text-align: left;
  color: #28364a;
  text-decoration: underline;
  text-decoration-color: #c8cfda;
  text-underline-offset: 4px;
}
.controlFoldSpacer {
  width: 21px;
  flex-shrink: 0;
}
.controlGroup {
  background: #fafbfc;
}
.controlFuture {
  color: #8b94a2;
}
.controlMethodHelp {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #647084;
  margin-top: 12px;
}
.budgetMethodLabel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 170px;
  font-size: 0.85rem;
}
.budgetForecastMethod {
  width: 100%;
}
#budgetView .budgetFrequency button[aria-pressed="true"] {
  background: #fff1f2;
  color: #a91d30;
  border-color: #dc3448;
}
@media (max-width: 1100px) {
  .controlMetrics,
  .controlMetrics.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .controlMetrics,
  .controlMetrics.three {
    grid-template-columns: 1fr;
  }
  .controlFilters label {
    flex-wrap: wrap;
  }
  .budgetTabs {
    flex-wrap: wrap;
  }
  .budgetEditorTab {
    margin-left: 0;
  }
}
#budgetView .budgetEntryFields {
  flex-wrap: wrap;
}
#budgetView .budgetMethodLabel {
  flex: 0 1 220px;
}
/* Lighter budget reports, matching the compact account trees. */
#budgetView .controlAccountTable,
#budgetView .controlMonthlyTable {
  font-size: 12px;
  line-height: 1.35;
}
#budgetView .controlAccountTable :is(td, th),
#budgetView .controlMonthlyTable :is(td, th) {
  padding: 5px 10px;
  border-right: 0;
  border-left: 0;
}
#budgetView .controlAccountTable thead th,
#budgetView .controlMonthlyTable thead th {
  font-size: 11px;
  font-weight: 400;
  color: #75849a;
  padding-top: 8px;
  padding-bottom: 8px;
}
#budgetView .controlAccountTable tbody tr {
  background: #fff;
}
#budgetView .controlAccountTable tbody tr:hover {
  background: #f7f9fc;
}
#budgetView .controlAccountTable tbody .controlGroup {
  background: #fafbfd;
}
#budgetView .controlAccount {
  gap: 5px;
  line-height: 18px;
}
#budgetView .controlAccount .uiIcon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}
#budgetView .controlAccount button,
#budgetView .controlMonthlyTable button {
  min-height: 0;
  padding: 1px 3px;
  font-size: 12px;
  line-height: 18px;
}
#budgetView .controlAccountLink {
  text-decoration: none;
}
#budgetView .controlAccountLink:hover {
  text-decoration: underline;
}
#budgetView .controlAccountTable .controlStrong {
  font-weight: 600;
}
#budgetView .controlAccountTable td:nth-last-child(2),
#budgetView .controlAccountTable td:last-child {
  font-weight: 600;
}
#budgetView .controlMetrics {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  box-shadow: 0 2px 4px #21334d05;
  padding: 18px 0;
}
#budgetView .controlMetric {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 3px 20px;
  background: transparent;
}
#budgetView .controlMetric + .controlMetric {
  border-left: 1px solid var(--line);
}
#budgetView .controlMetric .controlMetricIcon {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  background: #edf2f8;
  border-radius: 7px;
}
#budgetView .controlMetric.metric-teal .controlMetricIcon {
  background: #e4f6f7;
}
#budgetView .controlMetric.metric-red .controlMetricIcon {
  background: #ffedf1;
}
#budgetView .controlMetric.metric-green .controlMetricIcon {
  background: #e7f6ed;
}
#budgetView .controlMetricBody {
  display: block;
  min-width: 0;
}
#budgetView .controlMetric h3 {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 6px;
}
#budgetView .controlMetric strong {
  display: block;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
  margin: 0;
}
#budgetView .controlMetric.metric-red strong {
  color: #c51b38;
}
#budgetView .controlMetric.metric-green strong {
  color: #205c46;
}
#budgetView .controlMetric p {
  font-size: 11px;
  line-height: 1.5;
  margin: 7px 0 0;
}
.backToBudget {
  margin: 0 0 14px;
  padding: 5px 0;
  min-height: 30px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #a92236;
  font-size: 13px;
}
.backToBudget:hover {
  text-decoration: underline;
}
@media (max-width: 1100px) {
  #budgetView .controlMetric:nth-child(3) {
    border-left: 0;
  }
  #budgetView .controlMetric {
    padding: 12px 16px;
  }
}
@media (max-width: 600px) {
  #budgetView .controlMetric + .controlMetric {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  #budgetView .controlMetrics {
    padding: 4px 0;
  }
}
#budgetContent .budgetTreeEditor {
  display: block;
  padding: 18px;
  margin-top: 18px;
}
#budgetView .budgetEditorTable td:nth-last-child(2),
#budgetView .budgetEditorTable td:last-child {
  font-weight: 400;
}
#budgetView .budgetEditorTable .editorAnnual {
  font-weight: 600;
}
#budgetView .budgetEditorTable .editorSchedule {
  text-align: left;
  white-space: normal;
  max-width: 260px;
  color: #65758c;
  font-size: 11px;
}
#budgetView .budgetEditorTable .editorEdit {
  padding: 1px 6px;
  min-height: 24px;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 12px;
  color: #a92236;
}
#budgetView .budgetEditorTable .editorType th {
  background: #f6f8fb;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
#budgetView .budgetEditorTable .editorDetail > td {
  padding: 15px 20px;
  background: #f8fafc;
  white-space: normal;
  text-align: left;
}
#budgetView .budgetEditorTable .editorDetail[hidden],
#budgetView .budgetEditorTable tr[hidden] {
  display: none;
}
#budgetView .budgetEditorTable .budgetEntryFields {
  gap: 14px;
  align-items: end;
}
#budgetView .budgetEditorTable .budgetEntryFields legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
#budgetView .budgetEditorTable .budgetSavedTotal {
  font-size: 11px;
  white-space: normal;
  margin: 0;
  color: #65758c;
}
#budgetView .budgetEditorTable .budgetMethodLabel {
  flex: 0 1 180px;
  min-width: 150px;
}
#budgetView .budgetEditorTable .budgetAmount {
  font-weight: 400 !important;
  font-size: 13px !important;
}
#budgetView .budgetEditorTable .budgetSave {
  min-height: 34px;
  font-size: 12px;
}
#budgetView .budgetDistribution {
  display: block;
  margin: 18px 0;
  padding: 18px;
  min-width: 0;
}
#budgetView .budgetDistribution h2 {
  font-size: 14px;
  font-weight: 600;
}
.budgetDistribution .controlTableHeading label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #65758c;
}
.budgetDistribution .budgetPieGroup {
  max-width: 260px;
  font-size: 12px;
  min-height: 30px;
}
.budgetDonuts.paired,
.budgetEditorDistributions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.budgetDonuts .pieCard {
  border: 0;
  box-shadow: none;
  padding: 10px 0;
  min-width: 0;
}
.budgetDonuts.paired .pieCard + .pieCard {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.budgetDonuts .pieCard h3 {
  font-size: 13px;
  font-weight: 500;
}
.budgetDonuts .pieContent {
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 12px;
}
.budgetDonuts .pieLegend {
  max-height: none;
  overflow: visible;
}
.budgetDonuts .pieLegend li {
  font-size: 11px;
}
.budgetDonuts .pieLegend strong {
  font-size: 11px;
  font-weight: 500;
}
.budgetDonuts .pieContent figcaption {
  display: none;
}
.budgetDonuts .pieAdjustments {
  font-size: 11px;
}
.budgetEditorDistributions > div {
  min-width: 0;
}
@media (max-width: 1100px) {
  .budgetDonuts .pieContent {
    grid-template-columns: 1fr;
  }
  .budgetDonuts .pieContent figure {
    max-width: 200px;
    margin: auto;
  }
}
@media (max-width: 750px) {
  .budgetDonuts.paired,
  .budgetEditorDistributions {
    grid-template-columns: 1fr;
  }
  .budgetDonuts.paired .pieCard + .pieCard {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 16px;
  }
}
.marketQuoteActions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0 6px;
}
.marketQuoteActions small,
#marketQuoteStatus {
  color: #65758c;
  overflow-wrap: anywhere;
}
.valuationImpact {
  display: block;
  margin: 18px 0;
  padding: 18px;
}
.valuationImpact h2 {
  font-size: 15px;
}
.valuationImpactCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.valuationImpactCards > div {
  min-width: 0;
}
.valuationImpactCards > div > span {
  display: block;
  color: #65758c;
  font-size: 12px;
  margin-bottom: 7px;
}
.valuationImpactCards strong {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.valuationCategories {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.valuationCategory > span {
  display: block;
  color: #65758c;
  font-size: 11px;
  margin-bottom: 4px;
}
.valuationCategory strong {
  font-size: 13px;
}
.valuationImpact small {
  display: block;
  margin-top: 5px;
}
.valuationImpact .negative,
#valuation .negative {
  color: #d92545;
}
.valuationImpact .positive,
#valuation .positive {
  color: #159056;
}
.valuationUnknown,
.valuationNeutral {
  color: #65758c;
}
@media (max-width: 800px) {
  .valuationImpactCards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.valuationComposition {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}
.valuationComposition h3,
.valuationComposition > summary {
  font-size: 13px;
  margin: 0 0 6px;
}
.valuationCompositionTable {
  width: 100%;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.valuationCompositionTable :is(td, th) {
  padding: 6px 10px;
  text-align: right;
  border-right: 0;
  border-left: 0;
  white-space: nowrap;
}
.valuationCompositionTable :is(td, th):first-child {
  text-align: left;
}
.valuationCompositionTable thead th {
  font-size: 11px;
  font-weight: 400;
  color: #65758c;
}
.valuationCompositionTable .valuationCompositionGroup th {
  text-align: left;
  background: #f7f9fc;
  font-size: 12px;
  font-weight: 600;
}
.valuationCompositionName {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: normal;
  min-width: 170px;
}
.valuationCompositionName .uiIcon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}
.valuationCompositionName small,
.valuationPriceReference small {
  font-size: 10px;
  color: #65758c;
  font-weight: 400;
}
.valuationCompositionTable .valuationPriceReference {
  font-size: 11px;
  white-space: normal;
  min-width: 150px;
  text-align: left;
}
.valuationCompositionTable tfoot {
  background: #f7f9fc;
}

.valuationComposition > summary {
  cursor: pointer;
  font-weight: 600;
}
.valuationComposition[open] > summary {
  margin-bottom: 12px;
}
