:root {
  --ink: #332633;
  --ink-soft: #665561;
  --muted: #8f808a;
  --line: #e9e2e6;
  --canvas: #faf7f5;
  --paper: #ffffff;
  --forest: #62435a;
  --forest-light: #f2eaf0;
  --lime: #e8c9a0;
  --gold: #c79b65;
  --gold-light: #fbf3e8;
  --rose: #c3545c;
  --rose-light: #faecee;
  --green: #16865f;
  --red: #c3545c;
  --orange: #dc873b;
  --blue: #4b87ac;
  --shadow: 0 16px 48px rgba(74, 45, 66, .055);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid #d8ad7a; outline-offset: 2px; }
::selection { background: #f1ddc3; }

.loading-screen { height: 100vh; display: grid; align-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.loading-screen p { font-size: 13px; }
.brand-mark { width: 38px; height: 38px; display: flex; align-items: flex-end; gap: 3px; transform: rotate(-18deg); }
.brand-mark span { display: block; width: 9px; border-radius: 3px; background: var(--forest); }
.brand-mark span:nth-child(1) { height: 16px; }
.brand-mark span:nth-child(2) { height: 27px; }
.brand-mark span:nth-child(3) { height: 37px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.app-shell.sidebar-unpinned { grid-template-columns: minmax(0,1fr); }
.app-shell.sidebar-unpinned .sidebar { position: fixed; width: 252px; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 18px 0 50px rgba(0,0,0,.13); }
.app-shell.sidebar-unpinned.sidebar-visible .sidebar { transform: translateX(0); }
.sidebar-scrim { display: none; }
.app-shell.sidebar-unpinned.sidebar-visible .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 19; width: 100%; border: 0; background: rgba(32,19,29,.3); }
.sidebar { position: sticky; top: 0; height: 100vh; background: #142321; color: #e9f0ea; display: flex; flex-direction: column; padding: 29px 17px 24px; z-index: 20; }
.sidebar-pin { position: absolute; right: 13px; top: 37px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(255,255,255,.08); color: #f6e9d4; font-size: 14px; }
.sidebar-pin:hover,.sidebar-pin:focus-visible { background: rgba(255,255,255,.18); }
.sidebar-pin svg { transition: transform .2s ease; }
.sidebar-pin[aria-pressed="false"] svg { transform: rotate(-45deg); }
.nav[hidden] { display: none; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; margin-bottom: 44px; text-decoration: none; }
.brand .brand-mark { width: 29px; height: 31px; gap: 2px; }
.brand .brand-mark span { width: 7px; background: #cfe6ac; }
.brand .brand-mark span:nth-child(1) { height: 13px; }
.brand .brand-mark span:nth-child(2) { height: 23px; }
.brand .brand-mark span:nth-child(3) { height: 31px; }
.brand-name { font-family: Georgia, serif; letter-spacing: -.055em; font-size: 30px; line-height: 1; color: #fff; }
.brand-name .dot { color: #cfe6ac; }
.nav-label { color: #728c81; font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; padding: 0 15px; margin-bottom: 12px; }
.nav { display: grid; gap: 5px; }
.nav button { border: 0; background: transparent; color: #9fb2a9; height: 45px; padding: 0 15px; border-radius: 10px; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 620; text-align: left; width: 100%; transition: .2s ease; }
.nav button:hover { color: white; background: #203530; }
.nav button.active { color: white; background: #29463d; }
.nav button.active svg { color: #d0e8ae; }
.nav svg, .sidebar-bottom svg { width: 18px; height: 18px; stroke-width: 1.8; flex: none; }
.sidebar-spacer { flex: 1; }
.sidebar-bottom { padding: 0 5px; }
.demo-note { display: flex; gap: 9px; align-items: flex-start; color: #9bb0a4; font-size: 11px; line-height: 1.45; background: #1e332d; padding: 14px; border-radius: 12px; margin-bottom: 19px; }
.demo-note svg { color: #d7e8b9; }
.sidebar-profile { border-top: 1px solid #2a3d36; padding: 20px 8px 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 33px; height: 33px; flex: none; background: #dceacb; border-radius: 10px; display: grid; place-items: center; color: var(--forest); font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.sidebar-profile strong { display: block; font-size: 11px; color: #f6faf7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 145px; }
.sidebar-profile small { color: #829d8d; font-size: 10px; }

.main-area { min-width: 0; }
.topbar { min-height: 75px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.58); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 43px; }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.breadcrumb { font-size: 12px; color: var(--muted); white-space: nowrap; }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.crumb-sep { color: #c5d0c7; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-date { color: var(--muted); font-size: 11px; white-space: nowrap; }
.topbar-divider { width: 1px; height: 23px; background: var(--line); }
.topbar-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e5ece7; color: var(--forest); font-size: 11px; font-weight: 800; }
.content { width: min(100%, 1440px); margin: 0 auto; padding: 38px 43px 68px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 10px; font-weight: 800; color: #7e9a83; margin: 0 0 10px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 3.1vw, 44px); line-height: 1.08; letter-spacing: -.048em; font-weight: 400; margin-bottom: 9px; }
.subtitle { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.55; }
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn { border-radius: 10px; min-height: 39px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; font-size: 12px; font-weight: 720; white-space: nowrap; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; stroke-width: 2; }
.btn-primary { color: white; background: var(--forest); box-shadow: 0 7px 18px rgba(22,79,67,.15); }
.btn-primary:hover { background: #0f4137; }
.btn-secondary { color: var(--ink); background: white; border-color: var(--line); }
.btn-secondary:hover { border-color: #b7c6ba; }
.btn-danger { color: white; background: #a95349; }
.btn-ghost { color: var(--ink-soft); background: transparent; }
.btn-sm { min-height: 33px; padding: 0 11px; font-size: 11px; }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select { appearance: none; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; height: 39px; padding: 0 32px 0 13px; font-size: 12px; font-weight: 700; color: var(--ink); outline: none; }
.select-wrap svg { pointer-events: none; position: absolute; right: 11px; width: 12px; height: 12px; color: var(--muted); }

.hero { min-height: 273px; border-radius: 19px; background: radial-gradient(circle at 85% 14%, #315247 0, transparent 35%), linear-gradient(112deg, #152721, #1e3b31); color: white; padding: 34px 40px; display: grid; grid-template-columns: minmax(0,1fr) 47%; gap: 28px; overflow: hidden; box-shadow: 0 24px 45px rgba(25,56,43,.12); }
.hero .eyebrow { color: #c8dfa8; margin-bottom: 18px; }
.hero h2 { font-family: Georgia, serif; font-size: clamp(31px,3.1vw,44px); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; margin-bottom: 7px; }
.hero-value { font-size: clamp(28px,3vw,42px); font-weight: 700; letter-spacing: -.055em; margin-bottom: 7px; font-variant-numeric: tabular-nums; }
.hero-detail { color: #a9c0ae; font-size: 12px; margin-bottom: 25px; }
.hero-link { border: 0; background: transparent; color: #e0efcf; font-weight: 700; font-size: 11px; padding: 0; display: inline-flex; align-items: center; gap: 7px; }
.hero-link svg { width: 14px; }
.hero-art { position: relative; min-height: 200px; display: flex; align-items: flex-end; justify-content: center; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; border: 1px solid rgba(222,240,202,.1); border-radius: 50%; width: 340px; height: 340px; left: 15%; top: -170px; }
.hero-art::after { width: 500px; height: 500px; top: -247px; left: -5%; }
.hero-art svg { width: 100%; height: 170px; overflow: visible; position: relative; z-index: 1; }
.hero-pill { position: absolute; z-index: 2; right: 0; top: 16px; border-radius: 8px; padding: 9px 13px; background: rgba(241,249,234,.12); border: 1px solid rgba(227,243,210,.13); backdrop-filter: blur(9px); font-size: 11px; color: #e7f4db; }
.hero-pill svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; margin-right: 4px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.stat-card { min-height: 140px; background: var(--paper); border: 1px solid #edf0eb; box-shadow: var(--shadow); border-radius: 15px; padding: 22px 22px 19px; position: relative; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 22px; }
.stat-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; }
.stat-icon svg { width: 15px; height: 15px; stroke-width: 2; }
.stat-icon.green { color: #2b7b5d; background: #e7f4e9; }
.stat-icon.gold { color: #a4763e; background: #fbf2e4; }
.stat-icon.blue { color: #50738d; background: #e9f1f6; }
.stat-icon.rose { color: #ad6a5d; background: #faeeeb; }
.stat-value { color: var(--ink); font-size: clamp(19px,1.8vw,25px); font-weight: 750; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-foot { color: #9aaba0; font-size: 10px; margin-top: 6px; }
.section-grid { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(285px,1fr); gap: 17px; margin-top: 18px; }
.panel { background: white; border: 1px solid #ebefea; border-radius: 16px; box-shadow: var(--shadow); min-width: 0; }
.panel-pad { padding: 23px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.panel-title { font-size: 14px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 4px; }
.panel-subtitle { color: var(--muted); font-size: 11px; margin: 0; }
.chart { height: 203px; width: 100%; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart-empty { min-height: 203px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 11px; }
.chart-labels { display: flex; justify-content: space-between; color: #9faea4; font-size: 10px; font-weight: 700; margin: 0 0 0 2px; }
.chart-legend { display: flex; gap: 16px; color: #798b80; font-size: 10px; font-weight: 650; margin-top: 16px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--forest); }
.legend-dot.gold { background: var(--gold); }
.breakdown { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 16px; min-height: 195px; }
.donut { width: 108px; height: 108px; position: relative; display: grid; place-items: center; }
.donut svg { width: 108px; height: 108px; transform: rotate(-90deg); }
.donut-hole { width: 72px; height: 72px; border-radius: 50%; background: white; display: grid; align-content: center; text-align: center; position: absolute; }
.donut-hole b { font-size: 14px; letter-spacing: -.04em; }
.donut-hole span { color: var(--muted); font-size: 9px; }
.breakdown-list { display: grid; gap: 15px; }
.breakdown-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; color: var(--ink-soft); }
.breakdown-row b { color: var(--ink); font-size: 11px; }
.breakdown-label { display: flex; align-items: center; gap: 8px; }
.breakdown-label i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.breakdown-label i.costs { background: #658c72; }
.breakdown-label i.expenses { background: #c3a16f; }
.breakdown-label i.investments { background: #a9b8b7; }
.recent-panel { margin-top: 18px; }
.recent-list { display: grid; }
.recent-row { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #eef1ed; }
.recent-row:last-child { border: 0; padding-bottom: 0; }
.entry-glyph { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.entry-glyph svg { width: 15px; height: 15px; }
.entry-glyph.income { color: #2c7d5e; background: #e7f4e9; }
.entry-glyph.expense { color: #bb7d64; background: #f9eeea; }
.recent-row strong { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.recent-amount { font-size: 11px; font-weight: 760; white-space: nowrap; }
.recent-amount.income { color: #2a8062; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .search { margin-left: auto; }
.segmented { display: inline-flex; gap: 3px; background: #eaf0e9; border-radius: 10px; padding: 3px; }
.segmented button { border: 0; background: transparent; color: #7e9084; border-radius: 8px; min-height: 32px; padding: 0 14px; font-size: 11px; font-weight: 750; }
.segmented button.active { background: white; color: var(--forest); box-shadow: 0 2px 8px rgba(23,36,33,.07); }
.search { position: relative; }
.search svg { position: absolute; width: 15px; height: 15px; top: 10px; left: 13px; color: #9fac9f; }
.search input { width: 230px; height: 37px; border: 1px solid var(--line); background: white; border-radius: 9px; padding: 0 12px 0 36px; font-size: 11px; color: var(--ink); outline: none; }
.search input:focus { border-color: #8db598; }
.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.entries-table { min-width: 820px; }
th { background: #f9fbf8; color: #84958a; text-align: left; text-transform: uppercase; letter-spacing: .09em; font-size: 9px; font-weight: 800; padding: 15px 17px; white-space: nowrap; }
td { border-top: 1px solid #edf0eb; padding: 14px 17px; font-size: 11px; color: #465950; vertical-align: middle; }
tbody tr:hover { background: #fbfcfa; }
.td-main { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.td-main strong { color: var(--ink); font-size: 11px; display: block; max-width: 230px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.td-main small { color: var(--muted); display: block; font-size: 10px; margin-top: 4px; }
.td-money { color: var(--ink); font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.td-money.income { color: #2a8062; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 720; padding: 5px 8px; border-radius: 20px; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.paid { color: #28765c; background: #eaf5eb; }
.status.partial { color: #a27737; background: #faf2df; }
.status.pending { color: #9b6c60; background: #faeeeb; }
.table-actions { display: flex; gap: 3px; justify-content: flex-end; }
.icon-btn { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: #94a399; display: grid; place-items: center; }
.icon-btn:hover { color: var(--forest); background: #edf5ed; }
.icon-btn.danger:hover { color: #a95349; background: #fbefed; }
.icon-btn svg { width: 15px; height: 15px; }
.table-footer { display: flex; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-icon { width: 42px; height: 42px; margin: 0 auto 13px; border-radius: 12px; background: var(--forest-light); color: var(--forest); display: grid; place-items: center; }
.empty-icon svg { width: 21px; height: 21px; }
.empty strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 5px; }
.empty p { font-size: 11px; margin: 0; }

.annual-panel { overflow:hidden; }
.annual-wrap { overflow-x: auto; }
.annual-table { min-width: 1950px; table-layout: fixed; }
.annual-table th:first-child, .annual-table td:first-child { width: 355px; text-align: left; position: sticky; left: 0; z-index: 2; background: white; }
.annual-table th:first-child { background: #f9fbf8; }
.annual-table td, .annual-table th { text-align: right; padding: 13px 12px; font-variant-numeric: tabular-nums; font-size: 10px; white-space: nowrap; }
.annual-table .row-section td { background: #f5f8f4; color: var(--forest); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding-top: 16px; padding-bottom: 11px; }
.annual-table .row-section td:first-child { background: #f5f8f4; }
.annual-table .row-total td { color: var(--ink); background: #f9fbf8; font-weight: 800; }
.annual-table .row-total td:first-child { background: #f9fbf8; }
.annual-table th:last-child, .annual-table td:last-child { background: #f2f7f0; font-weight: 800; color: var(--forest); }
.annual-table .row-section td:last-child { background: #f5f8f4; }
.annual-note { padding: 19px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.55; }

.profile-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(250px,.8fr); gap: 20px; align-items: start; }
.form-panel { padding: 26px; }
.form-panel h2 { font-size: 15px; margin-bottom: 5px; }
.form-panel p { color: var(--muted); font-size: 11px; line-height: 1.5; margin-bottom: 25px; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 10px; font-weight: 800; color: #566a5d; }
.field input, .field select, .field textarea { width: 100%; min-height: 39px; border: 1px solid #dce5dc; outline: none; border-radius: 9px; background: #fff; color: var(--ink); padding: 9px 11px; font-size: 12px; }
.field textarea { resize: vertical; min-height: 73px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #7bac88; box-shadow: 0 0 0 3px #edf6eb; }
.field input::placeholder, .field textarea::placeholder { color: #acb8ad; }
.field-hint { color: #9aaa9f; font-size: 10px; line-height: 1.4; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; }
.aside-card { border-radius: 16px; background: #e8f0e5; padding: 27px; color: var(--forest); }
.aside-card svg { width: 25px; height: 25px; margin-bottom: 35px; }
.aside-card h3 { font-family: Georgia, serif; font-size: 23px; letter-spacing: -.04em; line-height: 1.15; font-weight: 400; margin-bottom: 11px; }
.aside-card p { font-size: 11px; line-height: 1.65; color: #63806d; margin: 0; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(11,29,22,.52); display: flex; align-items: center; justify-content: center; z-index: 80; padding: 20px; backdrop-filter: blur(3px); }
.modal { background: white; border-radius: 17px; width: min(100%, 615px); max-height: min(95vh,900px); overflow: auto; box-shadow: 0 30px 100px rgba(8,30,19,.25); }
.modal-head { padding: 24px 27px 20px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 15px; }
.modal-head .eyebrow { margin-bottom: 7px; }
.modal-head h2 { font-family: Georgia,serif; font-size: 26px; letter-spacing: -.045em; font-weight: 400; margin: 0; }
.modal-close { border: 0; background: #f3f6f2; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-soft); }
.modal-close svg { width: 15px; height: 15px; }
.modal-body { padding: 23px 27px 27px; }
.type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 21px; }
.type-switch button { height: 42px; background: #f8faf7; color: #86988b; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; font-weight: 800; display: flex; justify-content: center; align-items: center; gap: 8px; }
.type-switch button.active { color: var(--forest); background: #edf6ed; border-color: #a9cdb0; }
.type-switch button.expense.active { color: #a16658; background: #fbf1ec; border-color: #ebc9bf; }
.type-switch svg { width: 16px; height: 16px; }
.form-error { background: #fbefec; color: #a55047; padding: 10px 12px; border-radius: 8px; font-size: 11px; margin-bottom: 15px; display: none; }
.form-error.show { display: block; }
.quick-settle { border: 0; background: none; padding: 0; color: var(--forest); font-size: 10px; font-weight: 760; justify-self: start; }
.check-row { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 9px; min-height: 42px; padding: 0 11px; gap: 12px; }
.check-row label { color: var(--ink-soft); font-size: 11px; font-weight: 680; }
.check-row select { border: 0; min-height: 35px; width: 70px; font-size: 11px; background: transparent; color: var(--ink); outline: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; }
.confirm-modal { max-width: 390px; }
.confirm-modal .modal-body p { color: var(--ink-soft); line-height: 1.55; font-size: 12px; }
.toast { position: fixed; right: 23px; bottom: 23px; z-index: 110; padding: 12px 16px; border-radius: 9px; background: #172e25; color: white; font-size: 12px; font-weight: 650; box-shadow: 0 15px 40px rgba(13,44,29,.2); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #a55147; }
.mobile-menu { display: none; }
.app-shell.sidebar-unpinned .mobile-menu { display: grid; align-content: center; justify-content: center; flex: none; width: 34px; height: 34px; margin-right: 4px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 20px; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 214px minmax(0,1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .content { padding-left: 28px; padding-right: 28px; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .stat-card { padding: 18px; }
  .stat-value { font-size: 19px; }
  .breakdown { grid-template-columns: 1fr; justify-items: center; gap: 3px; }
  .breakdown-list { width: 100%; }
}
@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; width: 252px; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 18px 0 50px rgba(0,0,0,.13); }
  .app-shell.sidebar-visible .sidebar { transform: translateX(0); }
  .app-shell.sidebar-visible .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 19; width: 100%; border: 0; background: rgba(32,19,29,.3); }
  .mobile-menu,.app-shell.sidebar-unpinned .mobile-menu { display: grid; border: 0; color: var(--ink); background: transparent; padding: 0; }
  .mobile-menu svg { width: 21px; height: 21px; }
  .topbar { padding: 0 25px; }
  .content { padding: 32px 25px 55px; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .topbar { min-height: 64px; padding: 0 18px; }
  .topbar-date, .topbar-divider { display: none; }
  .content { padding: 27px 16px 48px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .page-head .head-actions { width: 100%; }
  .hero { grid-template-columns: 1fr; padding: 27px; min-height: auto; }
  .hero-art { display: none; }
  .hero-detail { margin-bottom: 24px; }
  .stat-grid { gap: 9px; }
  .stat-card { min-height: 118px; padding: 16px; }
  .stat-top { margin-bottom: 14px; align-items: flex-start; }
  .stat-value { font-size: 16px; }
  .stat-foot { font-size: 9px; }
  .section-grid { grid-template-columns: 1fr; }
  .breakdown { grid-template-columns: 105px 1fr; }
  .toolbar .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .profile-grid { grid-template-columns: 1fr; }
  .field-grid { gap: 13px; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { border-radius: 17px 17px 0 0; max-height: 94vh; }
  .modal-body { padding: 20px; }
  .modal-head { padding: 20px; }
}
@media (max-width: 420px) {
  .field-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 15px; }
  .breakdown { grid-template-columns: 1fr; }
}

/* Nobre identity and sign-in */
.loading-logo { width: 190px; height: auto; }
.sidebar { background: linear-gradient(166deg, #63435b 0%, #422b3e 72%, #342237 100%); color: #fffaf6; }
.brand { background: #fffaf5; border: 1px solid rgba(255,255,255,.65); border-radius: 13px; padding: 11px 14px; margin: 0 4px 39px; box-shadow: 0 12px 26px rgba(27,14,28,.1); }
.brand-logo { display: block; width: 100%; max-width: 168px; height: auto; object-fit: contain; }
.nav-label { color: #d8bcbf; }
.nav button { color: #decbd7; }
.nav button:hover { background: rgba(255,255,255,.11); }
.nav button.active { background: rgba(255,255,255,.17); box-shadow: inset 3px 0 0 #dfb67d; }
.nav button.active svg { color: #eac694; }
.demo-note { color: #e6d4df; background: rgba(255,255,255,.085); }
.demo-note svg { color: #eac694; }
.sidebar-profile { border-color: rgba(255,255,255,.17); }
.sidebar-profile small { color: #d1bacb; }
.avatar { background: #ead4bd; color: #5a3650; }
.sidebar-logout { margin: 16px 0 0; padding: 10px 9px; display: flex; align-items: center; gap: 10px; width: 100%; color: #ecdde6; background: transparent; border: 0; border-radius: 9px; font-size: 11px; font-weight: 700; text-align: left; }
.sidebar-logout:hover { background: rgba(255,255,255,.1); color: white; }
.sidebar-logout svg { width: 17px; height: 17px; }
.topbar { background: rgba(255,255,255,.76); }
.topbar-avatar { background: #f0e5ed; }
.eyebrow { color: #a47883; }
.btn-primary { box-shadow: 0 7px 18px rgba(98,67,90,.18); }
.btn-primary:hover { background: #4b3146; }
.btn-secondary:hover { border-color: #c9a7bd; }
.hero { background: radial-gradient(circle at 87% 18%, rgba(212,156,166,.28), transparent 38%), linear-gradient(115deg, #55374f, #76546a); box-shadow: 0 24px 45px rgba(78,47,71,.15); }
.hero .eyebrow { color: #efd3a9; }
.hero-detail { color: #e6d5e0; }
.hero-link { color: #f4d6a8; }
.hero-art::before, .hero-art::after { border-color: rgba(250,218,180,.16); }
.hero-pill { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.19); color: #fff7ea; }
.stat-card { border-color: #f0e9ec; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--tone, var(--gold)); }
.stat-card:has(.stat-icon.green) { --tone: var(--green); }
.stat-card:has(.stat-icon.red) { --tone: var(--red); }
.stat-card:has(.stat-icon.orange) { --tone: var(--orange); }
.stat-card:has(.stat-icon.blue) { --tone: var(--blue); }
.stat-icon.green { color: var(--green); background: #e4f4ec; }
.stat-icon.red { color: var(--red); background: #fae9ec; }
.stat-icon.orange { color: var(--orange); background: #fff0df; }
.stat-icon.blue { color: var(--blue); background: #e8f2f8; }
.stat-foot { color: #988992; }
.panel { border-color: #f0e9ec; }
.legend-dot { background: var(--green); }
.legend-dot.gold { background: var(--red); }
.breakdown-label i.costs { background: var(--red); }
.breakdown-label i.expenses { background: var(--orange); }
.breakdown-label i.investments { background: var(--blue); }
.entry-glyph.income { color: var(--green); background: #e4f4ec; }
.entry-glyph.expense { color: var(--red); background: #fae9ec; }
.recent-amount.income, .td-money.income { color: var(--green); }
.segmented { background: #f1e9ef; }
.segmented button { color: #8c7885; }
.search input:focus { border-color: #c8a1b7; }
th, .annual-table th:first-child { background: #fbf8fa; color: #8b7885; }
td { color: #655360; border-color: #f0e9ed; }
tbody tr:hover { background: #fdf9fb; }
.status.paid { color: var(--green); background: #e4f4ec; }
.status.partial, .status.pending { color: #a96b2c; background: #fff0df; }
.annual-table .row-section td, .annual-table .row-section td:first-child, .annual-table .row-section td:last-child { background: #f7eff4; }
.annual-table .row-total td, .annual-table .row-total td:first-child { background: #fbf8fa; }
.annual-table th:last-child, .annual-table td:last-child { background: #f6eff3; }
.field label { color: #655060; }
.field input, .field select, .field textarea { border-color: #e7dce3; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #ba8da8; box-shadow: 0 0 0 3px #f6edf3; }
.aside-card { background: #f3e8ef; }
.aside-card p { color: #866b7b; }
.modal-backdrop { background: rgba(39,25,38,.56); }
.type-switch button.active { background: #e4f4ec; border-color: #b2dac3; color: var(--green); }
.type-switch button.expense.active { background: #fae9ec; border-color: #eac2c8; color: var(--red); }
.toast { background: #493247; }

.login-screen { min-height: 100svh; display: grid; grid-template-columns: minmax(390px, 1fr) minmax(0, 2fr); background: #fdfaf7; }
.login-panel { position: relative; z-index: 5; padding: clamp(26px,3.3vw,54px) clamp(29px,3.7vw,60px) 31px; display: flex; flex-direction: column; justify-content: space-between; min-height: 100svh; box-shadow: 14px 0 45px rgba(54,31,51,.09); }
.login-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.login-top .brand-logo { max-width: 176px; }
.login-top-label { color: #ae8b9c; font-size: 9px; letter-spacing: .2em; font-weight: 800; white-space: nowrap; }
.login-center { width: 100%; max-width: 400px; margin: 54px auto 50px; }
.login-kicker { display: inline-flex; align-items: center; gap: 10px; color: #a97982; font-size: 10px; letter-spacing: .19em; font-weight: 850; }
.login-kicker span { width: 18px; height: 2px; background: #c69b6a; }
.login-center h1 { color: #50384b; font-size: clamp(39px,3.5vw,55px); line-height: 1.05; letter-spacing: -.055em; margin: 21px 0 18px; }
.login-center h1 em { font-style: normal; color: #c39868; }
.login-center > p { color: #806e78; font-size: 13px; line-height: 1.7; max-width: 330px; margin-bottom: 35px; }
.login-form { display: grid; gap: 18px; }
.login-field { display: grid; gap: 8px; }
.login-field label { color: #5e4858; font-size: 11px; font-weight: 800; }
.login-field > input, .login-password { height: 49px; width: 100%; background: white; border: 1px solid #e3d9de; border-radius: 9px; box-shadow: 0 5px 19px rgba(61,36,53,.025); }
.login-field > input, .login-password input { outline: none; padding: 0 15px; color: #493748; font-size: 13px; }
.login-field > input:focus, .login-password:focus-within { border-color: #bd9bae; box-shadow: 0 0 0 3px #f3eaf0; }
.login-password { display: flex; align-items: center; }
.login-password input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; }
.login-password button { display: grid; place-items: center; width: 48px; height: 48px; color: #9e8c98; background: transparent; border: 0; }
.login-password button svg { width: 18px; height: 18px; }
.login-field input::placeholder { color: #b0a0aa; }
.login-error { border-radius: 8px; background: #fae9ec; color: #9e394d; font-size: 11px; padding: 11px 12px; }
.login-error[hidden] { display: none; }
.login-submit { height: 50px; margin-top: 7px; padding: 0 19px; border: 0; border-radius: 9px; background: #604158; color: white; box-shadow: 0 13px 24px rgba(90,58,81,.22); display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: .015em; }
.login-submit:hover { background: #4d3147; transform: translateY(-1px); }
.login-submit svg { width: 17px; height: 17px; }
.login-footer { display: flex; align-items: center; gap: 8px; color: #a28c9a; font-size: 10px; white-space: nowrap; }
.login-footer-mark { width: 6px; height: 6px; border-radius: 50%; background: #c59a66; }
.login-visual { position: relative; min-height: 100svh; overflow: hidden; background: radial-gradient(circle at 75% 35%, rgba(213,176,178,.47), transparent 38%), radial-gradient(circle at 10% 110%, #52394f, transparent 62%), linear-gradient(138deg, #765568, #986f80 53%, #5f415b); isolation: isolate; }
.login-visual::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(61,36,61,.21), transparent 55%), radial-gradient(circle at 72% 62%, transparent 25%, rgba(55,34,56,.18) 90%); }
.login-visual-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,231,220,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,231,220,.4) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(90deg, black, transparent 80%); }
.login-orbit { position: absolute; border: 1px solid rgba(255,229,214,.22); border-radius: 50%; pointer-events: none; }
.login-orbit-one { width: 670px; height: 670px; right: -135px; top: -210px; }
.login-orbit-two { width: 920px; height: 920px; right: -265px; top: -310px; }
.login-visual-copy { position: absolute; z-index: 3; top: clamp(90px,17vh,180px); left: clamp(43px,7vw,120px); max-width: 48%; color: white; text-shadow: 0 3px 26px rgba(55,34,56,.15); }
.visual-overline { color: #f0d7bb; font-size: 10px; font-weight: 800; letter-spacing: .24em; }
.login-visual-copy h2 { font-family: Georgia,serif; font-size: clamp(44px,5.3vw,86px); line-height: .99; font-weight: 400; letter-spacing: -.06em; margin: 31px 0 22px; }
.login-visual-copy h2 i { color: #f1d1a4; font-style: normal; }
.login-visual-copy p { max-width: 275px; color: #f1e3e9; font-size: 13px; line-height: 1.7; }
.login-photo-frame { position: absolute; z-index: 2; bottom: -5%; right: 5%; width: min(47%, 620px); height: 89%; overflow: hidden; border-radius: 300px 300px 0 0; background: #f5f0ee; border: 1px solid rgba(255,255,255,.52); box-shadow: 0 27px 65px rgba(49,30,48,.27), 0 0 0 13px rgba(255,255,255,.07); }
.login-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.visual-glass-card { position: absolute; z-index: 4; left: clamp(42px,7vw,118px); bottom: 17%; min-width: 320px; max-width: 365px; padding: 17px 18px; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: rgba(75,47,69,.65); color: white; box-shadow: 0 18px 35px rgba(36,21,38,.19); backdrop-filter: blur(17px); }
.glass-icon { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: #f3d2a6; background: rgba(255,255,255,.13); flex: none; }
.glass-icon svg { width: 19px; height: 19px; }
.visual-glass-card small { display: block; color: #eccbac; font-size: 8px; letter-spacing: .17em; font-weight: 800; margin-bottom: 5px; }
.visual-glass-card strong { display: block; font-size: 12px; white-space: nowrap; }
.glass-spark { margin-left: auto; color: #e9c69d; font-size: 18px; }
.visual-corner { position: absolute; z-index: 3; left: clamp(43px,7vw,120px); bottom: 42px; color: #ead4de; letter-spacing: .18em; font-size: 9px; font-weight: 750; }
.visual-corner span { color: #e6b981; margin: 0 10px; }

@media (max-width: 1150px) {
  .login-screen { grid-template-columns: minmax(365px, 40%) minmax(0, 1fr); }
  .login-visual-copy { left: 6%; max-width: 53%; }
  .login-visual-copy h2 { font-size: clamp(40px,5vw,65px); }
  .visual-glass-card { left: 6%; min-width: 280px; }
  .login-photo-frame { right: -9%; width: 54%; }
}
@media (max-width: 790px) {
  .login-screen { display: flex; flex-direction: column; }
  .login-panel { min-height: 660px; padding: 29px clamp(25px,7vw,55px) 25px; }
  .login-center { margin: 48px auto; }
  .login-visual { min-height: 380px; }
  .login-visual-copy { top: 58px; left: 7%; max-width: 52%; }
  .login-visual-copy h2 { font-size: clamp(39px,7vw,59px); margin: 16px 0; }
  .login-visual-copy p { display: none; }
  .login-photo-frame { right: 7%; width: 38%; height: 100%; bottom: -25%; }
  .visual-glass-card { left: 7%; bottom: 65px; }
  .visual-corner { left: 7%; bottom: 25px; }
}
@media (max-width: 480px) {
  .login-panel { min-height: 630px; }
  .login-top-label { display: none; }
  .login-center h1 { font-size: 43px; }
  .login-footer { font-size: 9px; flex-wrap: wrap; }
  .login-visual { min-height: 330px; }
  .login-photo-frame { right: -5%; width: 48%; }
  .login-visual-copy { top: 38px; max-width: 58%; }
  .login-visual-copy h2 { font-size: 39px; }
  .visual-overline { font-size: 8px; }
  .visual-glass-card { bottom: 47px; min-width: 0; width: 57%; padding: 10px; gap: 8px; }
  .visual-glass-card strong { font-size: 9px; white-space: normal; }
  .visual-glass-card small { font-size: 7px; }
  .glass-icon { width: 30px; height: 30px; }
  .glass-spark { display: none; }
  .visual-corner { font-size: 7px; bottom: 17px; }
}

/* Multiempresa: controles de configuração e formulários */
.sidebar .brand { margin-bottom: 38px; }
.sidebar .brand-logo { width: 175px; }
.sidebar-close { display: none; }
.app-shell.sidebar-unpinned .sidebar-close { display: block; position: absolute; right: 10px; top: 7px; border: 0; background: transparent; color: white; font-size: 24px; }
.settings-label { margin-top: 28px; }
.nav button { justify-content: flex-start; }
.topbar .select-wrap select { max-width: min(32vw, 300px); text-overflow: ellipsis; }
.hero-art { background: radial-gradient(circle at 68% 38%, rgba(201,224,174,.21), transparent 37%); }
.monthly-chart { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 8px; align-items: end; min-height: 190px; }
.monthly-col { min-width: 0; text-align: center; }
.monthly-bars { height: 155px; display: flex; align-items: end; justify-content: center; gap: 3px; border-bottom: 1px solid var(--line); }
.monthly-bars span { display: block; width: min(20px,45%); border-radius: 5px 5px 0 0; }
.income-bar { background: var(--green); }
.expense-bar { background: var(--red); }
.monthly-col small { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.dashboard-month-picker { position: relative; z-index: 5; }
.dashboard-month-picker > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 130px; height: 39px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.dashboard-month-picker > summary::-webkit-details-marker { display: none; }
.dashboard-month-picker > summary span { color: var(--muted); }
.dashboard-month-menu { position: absolute; top: calc(100% + 7px); right: 0; width: 310px; max-width: calc(100vw - 32px); padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 18px 38px rgba(67,40,60,.16); }
.dashboard-month-menu > strong { display: block; font-size: 12px; margin-bottom: 12px; }
.dashboard-month-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dashboard-month-options label { display: flex; align-items: center; gap: 8px; padding: 6px 4px; color: var(--ink-soft); font-size: 12px; cursor: pointer; }
.dashboard-month-options input { accent-color: var(--forest); }
.dashboard-month-shortcuts { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.dashboard-month-shortcuts button { border: 0; background: transparent; color: var(--forest); font-size: 11px; font-weight: 750; padding: 3px; }
.dashboard-basis { margin: 1px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.stat-grid.dashboard-stats { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 0; }
.dashboard-stats .stat-card { min-height: 128px; }
.dashboard-stats .stat-top { margin-bottom: 17px; }
.dashboard-stats .stat-value { white-space: normal; overflow-wrap: anywhere; }
.dashboard-chart,.dashboard-due { margin-top: 18px; }
.line-chart-scroll { overflow-x: auto; }
.line-chart-svg { display: block; width: 100%; min-width: 720px; height: auto; }
.line-chart-grid { stroke: #eadfe6; stroke-width: 1; stroke-dasharray: 4 6; }
.line-chart-focus { fill: #f6eef3; }
.line-chart-series { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.line-chart-series.income { stroke: var(--green); }
.line-chart-series.expense { stroke: var(--red); }
.line-chart-point { stroke: white; stroke-width: 2.5; cursor: help; }
.line-chart-point.income { fill: var(--green); }
.line-chart-point.expense { fill: var(--red); }
.line-chart-scale,.line-chart-month { fill: var(--muted); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 11px; }
.line-chart-month.selected { fill: var(--forest); font-weight: 800; }
.legend-dot.expense { background: var(--red); }
.due-grid { display: grid; gap: 0; }
.due-grid-head,.due-row { display: grid; grid-template-columns: minmax(125px,1.1fr) repeat(2,minmax(0,1fr)); align-items: stretch; gap: 12px; }
.due-grid-head { padding: 0 10px 8px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.due-row { padding: 11px 10px; border-top: 1px solid var(--line); }
.due-row > strong { align-self: center; color: var(--ink); font-size: 12px; }
.due-metric { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; width: 100%; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fdfbfc; text-align: left; }
button.due-metric:hover { border-color: #c9a7bd; background: #faf5f8; }
.due-metric strong { color: var(--green); font-size: clamp(14px,1.5vw,18px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.due-metric.expense strong { color: var(--red); }
.due-metric small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.dashboard-bank-row { display:grid; grid-template-columns:minmax(130px,1.3fr) minmax(170px,1fr) auto; align-items:center; gap:16px; padding:13px 0; border-top:1px solid var(--line); }
.dashboard-bank-row strong,.dashboard-bank-row small { display:block; overflow-wrap:anywhere; }
.dashboard-bank-row strong { color:var(--ink); font-size:13px; }
.dashboard-bank-row small { margin-top:3px; color:var(--ink-soft); font-size:11px; }
.dashboard-bank-badge { justify-self:end; padding:7px 10px; border-radius:999px; background:#edf5ef; color:var(--forest); font-size:11px; font-weight:750; white-space:nowrap; }
.dashboard-bank-badge.in-progress { background:#fff1df; color:#9a652d; }
.dashboard-bank-badge.unstarted { background:#f2edf1; color:var(--ink-soft); }
@media (max-width: 900px) {
  .stat-grid.dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .dashboard-month-menu { left: 0; right: auto; }
  .dashboard-chart .panel-head { flex-wrap: wrap; }
  .due-grid-head { display: none; }
  .due-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 12px 0; }
  .due-row > strong { grid-column: 1/-1; }
  .due-metric { display: grid; padding: 10px; }
  .due-metric::before { content: 'A receber'; color: var(--muted); font-size: 10px; font-weight: 750; }
  .due-metric.expense::before { content: 'A pagar'; }
  .dashboard-bank-row { grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; }
  .dashboard-bank-row > div:nth-child(2) { grid-column:1; }
  .dashboard-bank-badge { grid-column:2; grid-row:1 / 3; }
}
@media (max-width: 520px) {
  .stat-grid.dashboard-stats { grid-template-columns: 1fr; }
}
.search-input { border: 1px solid var(--line); background: white; border-radius: 9px; height: 38px; min-width: 220px; padding: 0 13px; font-size: 12px; }
.simple-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.simple-form label { display: flex; flex-direction: column; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.simple-form input,.simple-form select,.simple-form textarea,.invite-link { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; }
#account-form :disabled { background:#f5f2f4; color:var(--muted); cursor:not-allowed; }
#settlement-form [name="fee"]:disabled,
#batch-settlement-form [name="fee"]:disabled,
#batch-settlement-form [data-batch-field="fee"]:disabled { background:#f5f2f4; color:var(--muted); cursor:not-allowed; }
.simple-form textarea { min-height: 80px; resize: vertical; }
.simple-form .wide { grid-column: 1/-1; }
.simple-form button { justify-self: start; align-self: end; }
.form-panel { max-width: 780px; }
.extra-panel { margin-top: 20px; }
.modal-card { position: relative; background: white; border-radius: 16px; padding: 27px; width: min(100%, 650px); max-height: 90vh; overflow: auto; box-shadow: 0 30px 100px rgba(8,30,19,.25); }
.modal-card h2 { font-family: Georgia,serif; font-size: 26px; font-weight: 400; }
.modal-card p { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.modal-card .modal-close { position: absolute; right: 18px; top: 18px; font-size: 20px; }
.permission-list { display: grid; gap: 7px; max-height: 65vh; overflow: auto; }
.permission-list label { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 5px 0; font-size: 12px; }
.permission-list select { min-width: 165px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; }
.permission-list button { margin-top: 12px; justify-self: start; }
.invite-link { margin: 9px 0 15px; }
.modal-card pre { white-space: pre-wrap; word-break: break-all; color: var(--forest); background: var(--forest-light); padding: 15px; border-radius: 8px; }
.annual-table .account-level-1 td { background: #f4edf2; color: var(--ink); font-weight: 800; border-top: 2px solid #e8d9e2; }
.annual-table .account-level-1 td:first-child { background: #f4edf2; }
.annual-table .account-level-2 td { background: #faf6f9; color: var(--ink); font-weight: 700; }
.annual-table .account-level-2 td:first-child { background: #faf6f9; }
.annual-table .account-level-2 .account-label { padding-left: 14px; }
.annual-table .account-level-3 .account-label { padding-left: 28px; }
.annual-table .account-level-3 td { font-weight: 600; }
.annual-table .account-level-4 .account-label { padding-left: 42px; }
.annual-table .account-level-1 td:last-child { background: #eadce6; }
.annual-table .account-level-2 td:last-child { background: #f3e9ef; }
.annual-table.with-percent { min-width: 3000px; }
.annual-table thead tr:nth-child(2) th { background: #f7f0f5; font-size: 9px; }
.annual-table .percent-col { color: #88717f; font-size: 10px; }
.annual-table .account-deduction-leaf td,
.annual-table .account-deduction-leaf td:last-child { color: var(--red); }
.annual-table .row-result td { background: #e9dde6; color: var(--ink); font-weight: 800; border-top: 2px solid #c9aebf; }
.annual-table .row-result td:first-child { background: #e9dde6; }
.annual-table .row-result td:last-child { background: #ddcbd8; }
.annual-table .row-result.negative td { color: var(--red); }
.report-filter-panel { padding: 23px 25px; margin-bottom: 18px; }
.report-selector { display:flex; align-items:end; justify-content:space-between; gap:20px; padding-bottom:17px; margin-bottom:17px; border-bottom:1px solid var(--line); }
.report-selector label { min-width:min(100%,320px); color:var(--ink); font-size:13px; font-weight:750; }
.report-selector p { max-width:520px; margin:0 0 7px; color:var(--ink-soft); font-size:12px; }
.report-selector select { width:100%; display:block; margin-top:7px; }
.report-filter-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:end; gap:13px; }
.report-filter-grid label { min-width:0; display:grid; gap:6px; color:var(--ink-soft); font-size:12px; font-weight:700; }
.report-filter-grid .report-compare { display:flex; align-items:center; gap:9px; min-height:42px; }
.report-compare input { width:17px; min-height:17px; height:17px; accent-color:var(--forest); }
.report-filter-grid input,.report-filter-grid select,.report-selector select { min-width:0; min-height:42px; padding:8px 11px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); }
.report-run { min-height:42px; }
.report-message { padding:21px 25px; color:var(--red); margin-bottom:18px; }
.report-output { overflow:hidden; padding:0; }
.report-demo { padding:9px 24px; color:#8b3c43; background:#fff1f1; font-size:11px; font-weight:850; letter-spacing:.16em; text-align:center; }
.report-output-head { display:flex; justify-content:space-between; align-items:start; gap:18px; padding:24px 25px 15px; }
.report-output-head h2 { margin:4px 0 8px; font-family:Georgia,serif; font-size:30px; font-weight:400; }
.report-output-head p { margin:4px 0; color:var(--ink-soft); font-size:12px; }
.report-output-head .eyebrow { color:var(--gold); font-size:10px; font-weight:800; letter-spacing:.16em; }
.report-export-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.report-export-actions a { text-decoration:none; }
.report-filter-summary { margin:0 25px 18px; padding:10px 13px; background:#faf7f9; border-radius:8px; color:var(--ink-soft); font-size:12px; }
.report-totals { display:flex; gap:10px; flex-wrap:wrap; padding:0 25px 20px; }
.report-totals > div { min-width:150px; padding:13px 16px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.report-totals small { display:block; margin-bottom:5px; color:var(--ink-soft); font-size:11px; }
.report-totals strong { font-size:17px; font-variant-numeric:tabular-nums; }
.report-table-scroll { overflow-x:auto; border-top:1px solid var(--line); }
.report-top-scroll { height:18px; overflow-x:auto; overflow-y:hidden; border-top:1px solid var(--line); }
.report-top-scroll[hidden] { display:none; }
.report-top-scroll > div { height:1px; }
.report-table { width:100%; min-width:max-content; border-collapse:collapse; font-size:12px; }
.report-table th { position:sticky; top:0; z-index:1; background:#f8f4f7; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.055em; font-size:10px; text-align:left; white-space:nowrap; }
.report-table th,.report-table td { padding:11px 13px; border-bottom:1px solid var(--line); }
.report-table tbody tr:nth-child(even) { background:#fcfafb; }
.report-table tbody tr:hover { background:#f5eef3; }
.report-table td { max-width:360px; overflow-wrap:anywhere; vertical-align:top; }
.report-table .report-number { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.report-document-link { padding:0; border:0; background:transparent; color:var(--forest); font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.report-notes { padding:16px 25px 20px; color:var(--ink-soft); font-size:11px; line-height:1.5; }
.report-notes p { margin:3px 0; }
.history-status { border-radius:999px; padding:4px 8px; color:var(--forest) !important; background:#edf5ef; font-weight:700; }
.history-status.reversed { color:var(--red) !important; background:#fceeee; }
.operation-page .page-head { margin-bottom:16px; }
.operation-page .page-head .eyebrow { margin-bottom:5px; }
.operation-page .page-head h1 { font-size:clamp(28px,2.5vw,36px); }
.operation-filter-panel { padding:16px 20px; margin-bottom:14px; }
.operation-primary-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) auto; align-items:end; gap:12px; }
.operation-filter-form label { min-width:0; display:grid; gap:5px; color:var(--ink-soft); font-size:12px; font-weight:700; }
.operation-filter-form input,.operation-filter-form select { min-width:0; width:100%; min-height:42px; padding:8px 11px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); }
.operation-filter-form .report-run { padding:0 20px; }
.operation-advanced-filters { margin-top:10px; }
.operation-advanced-filters summary { width:max-content; cursor:pointer; color:var(--forest); font-size:12px; font-weight:750; }
.operation-advanced-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; padding-top:12px; }
.operation-output .report-output-head { padding:15px 20px 9px; align-items:center; }
.operation-output .report-output-head h2 { font-size:22px; margin:0 0 3px; }
.operation-output .report-output-head p { margin:2px 0; }
.operation-output .report-output-head .operation-generated { font-size:10px; color:var(--muted); }
.operation-output .report-filter-summary { margin:0 20px 10px; padding:6px 9px; }
.operation-output .report-totals { padding:0 20px 12px; gap:7px; }
.operation-output .report-totals > div { min-width:110px; padding:7px 11px; }
.operation-output .report-totals small { margin-bottom:2px; }
.operation-output .report-totals strong { font-size:14px; }
.report-print-only { display:none; }
.settlement-history-table { min-width:1120px; }
.settlement-history-table td { max-width:250px; }
.settlement-history-table td small { display:block; margin-top:3px; color:var(--muted); }
.settlement-history-row.is-reversed { opacity:.68; }
.settlement-detail-toggle { white-space:nowrap; font-size:11px; }
.settlement-detail-row td { background:#faf7f9; }
.settlement-detail-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px 16px; padding:5px; }
.settlement-detail-grid span { display:grid; gap:3px; color:var(--ink-soft); font-size:11px; }
.settlement-detail-grid strong { color:var(--ink); font-size:12px; font-weight:700; }
@media (max-width:1100px) { .report-filter-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:1100px) { .operation-primary-filters { grid-template-columns:repeat(2,minmax(0,1fr)) auto; } .operation-advanced-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) {
  .report-selector,.report-output-head { display:block; }
  .report-selector p { margin-top:12px; }
  .report-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .report-export-actions { justify-content:flex-start; margin-top:15px; }
  .operation-primary-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .operation-primary-filters .report-run { width:max-content; }
  .settlement-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:440px) { .report-filter-grid { grid-template-columns:1fr; } }
@media (max-width:440px) { .operation-primary-filters,.operation-advanced-grid { grid-template-columns:1fr; } }
@media print {
  @page { size:A4 landscape; margin:12mm; }
  body { background:#fff; }
  .app-shell,.main-area,.content { display:block !important; width:100% !important; margin:0 !important; padding:0 !important; }
  .sidebar,.sidebar-scrim,.topbar,.page-head,.report-filter-panel,.report-message,
  .report-export-actions,#modal-root,#toast { display:none !important; }
  #report-print-area { display:block; width:100%; border:0; box-shadow:none; overflow:visible; }
  .report-table-scroll { overflow:visible; }
  .report-top-scroll,.report-screen-only,.settlement-detail-toggle { display:none !important; }
  .report-print-only { display:block !important; }
  .report-table { min-width:0; width:100%; font-size:8px; }
  .report-table th,.report-table td { padding:5px 6px; }
  .report-table td { max-width:none; }
  .report-table tr { break-inside:avoid; }
  .settlement-detail-row[hidden] { display:table-row !important; }
  .settlement-history-table { min-width:0; }
  .settlement-detail-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .operation-output .report-output-head { padding:0 0 8mm; }
  .operation-output .report-filter-summary { margin:0 0 6mm; }
  .operation-output .report-totals { padding:0 0 6mm; }
  .report-output-head { padding:0 0 8mm; }
  .report-totals { padding:0 0 6mm; }
  .report-filter-summary { margin:0 0 6mm; }
}
.sort-heading { border: 0; background: transparent; padding: 0; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.sort-heading:hover, .sort-heading:focus-visible { color: var(--forest); }
.sort-heading span { font-size: 13px; color: var(--gold); }
.mfa-qr { display: flex; justify-content: center; margin: 18px 0; }
.mfa-qr img { width: min(240px, 100%); height: auto; border: 10px solid white; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(39,25,38,.1); }
.login-center h2 { font-family: Georgia,serif; font-weight: 400; }
.login-form .hint { font-size: 11px; }
.sidebar { overflow-y: auto; }
.sidebar-spacer { min-height: 18px; }
.nav-primary { margin-bottom: 12px; }
.nav-group { margin: 5px 0; }
.nav-group-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 15px 7px;
  color: #e7cbd5; background: transparent; border: 0; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-align: left; cursor: pointer; }
.nav-group-toggle span { font-size: 17px; font-weight: 400; letter-spacing: 0; }
.nav-children { margin: 3px 0 10px 8px; padding-left: 9px; border-left: 1px solid rgba(255,255,255,.16); }
[hidden] { display: none !important; }
.party-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.simple-form .party-tabs button { align-self: auto; border: 0; padding: 9px 13px; border-radius: 8px; background: transparent;
  color: var(--ink-soft); font-size: 12px; font-weight: 700; cursor: pointer; }
.simple-form .party-tabs button[aria-selected="true"] { color: var(--forest); background: var(--forest-light); }
.party-pane { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: end; }
.party-pane > .wide { grid-column: 1/-1; }
.lookup-control { display: flex; align-items: end; gap: 8px; }
.lookup-control label { flex: 1; min-width: 0; }
.lookup-control button { flex: none; min-height: 39px; }
.party-roles { display: flex; gap: 18px; }
.party-roles label { display: flex; flex-direction: row; align-items: center; gap: 7px; }
.simple-form .party-roles input { width: 17px; min-height: 17px; height: 17px; padding: 0; accent-color: var(--forest); }
.party-preferences { grid-column: 1/-1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; padding: 15px;
  border: 1px solid var(--line); border-radius: 10px; background: #fcfafb; }
.party-preferences h3 { grid-column: 1/-1; margin: 0; font-size: 13px; color: var(--ink); }
.modal-card:has(#party-form) { width:min(100%,980px); max-height:min(92vh,850px); display:flex; flex-direction:column; overflow:hidden; padding:0; }
.modal-card:has(#party-form) > h2 { margin:0; padding:21px 56px 13px 27px; flex:none; }
.party-form { display:flex; flex-direction:column; min-height:0; flex:1; gap:0; }
.party-form .party-tabs { flex:none; padding:0 27px 11px; overflow-x:auto; white-space:nowrap; }
.party-form .party-form-body { flex:1; min-height:0; overflow:auto; padding:18px 27px 24px; }
.party-form .party-pane { align-content:start; }
.party-form .party-form-footer { flex:none; display:flex; justify-content:flex-end; border-top:1px solid var(--line); padding:13px 27px; background:#fff; }
.simple-form .party-form-footer button { align-self:auto; }
.legacy-address { padding:13px 15px; background:#faf6f1; border:1px solid #eadcca; border-radius:9px; }
.legacy-address strong { display:block; font-size:12px; margin-bottom:5px; }
.legacy-address p { margin:0; overflow-wrap:anywhere; }
.preference-warning { margin: 0; padding: 9px 11px; border: 1px solid #dfb9a8; border-radius: 8px; color: #9b4d40 !important; background: #fff5ef; }
.party-select { display: flex; align-items: end; gap: 8px; }
.party-select label { flex: 1; min-width: 0; }
.party-select button { flex: none; min-height: 39px; }
.simple-form .currency-input { text-align: right; font-variant-numeric: tabular-nums; }
.quick-entry-source { margin: 8px 0 16px; padding: 10px 12px; border: 1px solid #e9dac6; border-radius: 9px; background: #fff9f0; color: var(--ink-soft); }
.finance-entry-grid select:disabled { opacity: 1; background: #f8f5f6; color: var(--ink); }
.finance-entry-grid { grid-template-columns: repeat(12,minmax(0,1fr)); gap: 7px 10px; }
.finance-entry-grid label { gap: 5px; }
.finance-entry-grid > label,.finance-entry-grid > .party-select { min-width: 0; }
.required-star { color: var(--red); font-weight: 900; }
.finance-entry-grid[data-attempted="true"] input:invalid,
.finance-entry-grid[data-attempted="true"] select:invalid,
.finance-entry-grid[data-attempted="true"] textarea:invalid { border-color: var(--red); }
.finance-entry-grid > .entry-third { grid-column: span 4; }
.finance-entry-grid > .entry-half { grid-column: span 6; }
.finance-entry-grid > .entry-quarter { grid-column: span 3; }
.finance-entry-grid > .entry-history { grid-column: span 9; }
.finance-entry-grid > .wide { grid-column: 1/-1; }
.entry-note { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.entry-note-head { display: flex; align-items: center; justify-content: space-between; }
.entry-note-head label { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.simple-form .note-toggle { align-self: auto; padding: 0; border: 0; background: transparent; color: var(--forest); font-size: 12px; font-weight: 700; cursor: pointer; }
.simple-form .note-toggle:hover,.simple-form .note-toggle:focus-visible { text-decoration: underline; }
.finance-entry-grid .entry-note textarea { height: 39px; min-height: 39px; resize: none; }
.finance-entry-grid .entry-note.expanded textarea { height: 100px; min-height: 100px; resize: vertical; }
.finance-entry-grid .party-select button { white-space: nowrap; }
.switch-field { justify-content: end; }
.switch-line { display: flex; align-items: center; gap: 10px; min-height: 39px; }
.simple-form .switch-line input { position: absolute; opacity: 0; width: 1px; min-height: 1px; }
.toggle-track { position: relative; width: 43px; height: 24px; border-radius: 20px; background: #b9afb5; transition: background .2s; }
.toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform .2s; }
.switch-line input:checked + .toggle-track { background: var(--green); }
.switch-line input:checked + .toggle-track::after { transform: translateX(19px); }
.switch-line input:focus-visible + .toggle-track { outline: 3px solid #d7b57e; outline-offset: 3px; }
.installments-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 10px; margin-top: 7px; }
.installment-item { min-width: 0; margin: 0; padding: 5px 10px 9px; border: 1px solid var(--line); border-radius: 9px; }
.installment-item legend { padding: 0 5px; color: var(--ink); font-size: 12px; font-weight: 800; }
.installment-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.installment-fields label { min-width: 0; }
.installment-fields input { min-width: 0; }
#installment-warning { color: var(--red); }
.installment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 10px 0; }
.installment-grid label { display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); font-size: 12px; }
.installment-grid input { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.installment-list,.settlement-list { display: grid; gap: 8px; margin: 14px 0 23px; }
.installment-card,.settlement-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fcfafb; font-size: 12px; }
.installment-card strong,.settlement-row strong { color: var(--ink); }
.installment-card span,.settlement-row small { color: var(--ink-soft); }
.settlement-row.muted { opacity: .55; }
.installment-card button,.settlement-row button { margin-left: auto; }
.settlement-settings-panel { max-width: 1050px; }
.settlement-settings-panel > p { margin: 0 0 20px; font-size: 12px; }
.settlement-settings-group + .settlement-settings-group { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.settlement-settings-group h2 { margin: 0 0 3px; color: var(--ink); }
.settlement-settings-group p { margin: 0 0 15px; }
.settlement-settings-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 18px; }
.settlement-settings-list label { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.settlement-settings-list select { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 12px; }
.settlement-calculation { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; padding: 13px 15px; border-radius: 9px; background: var(--forest-light); color: var(--ink); font-size: 12px; }
.settlement-calculation strong { margin-left: 6px; font-size: 14px; }
.settlement-calculation.invalid { color: var(--red); background: var(--rose-light); }
.legacy-note { margin: 12px 3px 0; color: var(--ink-soft); font-size: 12px; }
.modal-card:has(.installment-list) { width: min(100%, 760px); }
.modal-card:has(#finance-entry-form) { width: min(100%, 1100px); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.modal-card:has(#finance-entry-form) > h2 { flex: none; margin: 0; padding: 20px 58px 10px 27px; }
#finance-entry-form { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; align-content: start; padding: 0 27px 12px; }
.finance-entry-footer { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 15px;
  padding: 10px 27px 12px; border-top: 1px solid var(--line); background: white; box-shadow: 0 -7px 24px rgba(74,45,66,.07); }
.finance-entry-total { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-soft); }
.finance-entry-total strong { font-size: 15px; color: var(--ink); }
.finance-entry-footer .btn { flex: none; }
@media (max-width: 1100px) {
  .installments-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1000px) {
  .finance-entry-grid > .entry-third { grid-column: span 4; }
  .finance-entry-grid > .entry-half { grid-column: span 6; }
  .finance-entry-grid > .entry-quarter { grid-column: span 6; }
  .finance-entry-grid > .entry-history { grid-column: span 6; }
}
@media (max-width: 800px) {
  .installments-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .installment-fields { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .settlement-settings-list { grid-template-columns: 1fr; }
  .annual-table th:first-child, .annual-table td:first-child { width: 185px; max-width: 185px; }
  .annual-table .account-label { display: block; white-space: normal; overflow-wrap: anywhere; }
  .simple-form { grid-template-columns: 1fr; }
  .finance-entry-grid > .entry-third,.finance-entry-grid > .entry-half,
  .finance-entry-grid > .entry-quarter,.finance-entry-grid > .entry-history { grid-column: 1/-1; }
  .party-pane,.party-preferences { grid-template-columns: 1fr; }
  .lookup-control,.party-select { flex-wrap: wrap; }
  .installment-grid { grid-template-columns: 1fr; }
  .topbar { padding: 12px 18px; flex-wrap: wrap; gap: 8px; }
  .breadcrumb { white-space: normal; }
  .topbar-right { min-width: 0; max-width: 100%; }
  .topbar .select-wrap select { max-width: 170px; }
  .modal-card { border-radius: 16px 16px 0 0; max-height: 94vh; }
  .modal-card:has(#finance-entry-form) { max-height: 94vh; }
  .modal-card:has(#finance-entry-form) > h2 { padding: 20px 52px 11px 18px; }
  .modal-card:has(#party-form) { max-height:94vh; }
  .modal-card:has(#party-form) > h2 { padding:18px 52px 10px 18px; }
  .party-form .party-tabs { padding:0 18px 9px; }
  .party-form .party-form-body { padding:15px 18px 18px; }
  .party-form .party-form-footer { padding:11px 18px; }
  #finance-entry-form { padding: 0 18px 16px; }
  .finance-entry-footer { padding: 11px 18px 16px; }
  .monthly-chart { gap: 3px; }
  .monthly-col small { font-size: 8px; }
}

/* Parcelas: filtros na tabela e leitura sem rolagem horizontal. */
.title-list-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 2px 12px; color:var(--ink-soft); font-size:12px; }
.title-mobile-filters { display:none; }
.text-button { border:0; background:transparent; color:var(--forest); font:inherit; font-weight:700; cursor:pointer; }
.text-button:hover,.text-button:focus-visible { text-decoration:underline; }
.title-table-wrap { overflow:visible; }
.title-table { table-layout:fixed; }
.title-col-check { width:3%; }.title-col-date { width:9%; }.title-col-entry { width:22%; }
.title-col-party { width:12%; }.title-col-cash { width:12%; }.title-col-method { width:10%; }
.title-col-amount,.title-col-balance { width:9%; }.title-col-status { width:8%; }.title-col-action { width:6%; }
.title-table th,.title-table td { padding:12px 6px; min-width:0; overflow-wrap:anywhere; }
.title-table th:first-child,.title-table td:first-child { padding-left:13px; }
.title-table th:last-child,.title-table td:last-child { padding-right:13px; }
.title-table th { white-space:normal; line-height:1.25; }
.title-table td { line-height:1.35; }
.title-table td small { display:block; margin-top:3px; color:var(--ink-soft); font-size:10px; }
.title-table input[type=checkbox] { width:16px; height:16px; accent-color:var(--forest); cursor:pointer; }
.title-date,.title-money { white-space:nowrap; font-variant-numeric:tabular-nums; }
.title-money { font-weight:700; color:var(--ink); }
.title-entry-link,.title-action { border:0; background:transparent; color:var(--ink); font:inherit; font-weight:700; text-align:left; cursor:pointer; }
.title-entry-link { display:block; padding:0; width:100%; overflow-wrap:anywhere; }
.title-entry-link:hover,.title-action:hover { color:var(--forest); text-decoration:underline; }
.title-action { padding:3px; color:var(--forest); }
.title-table .status { font-size:9px; padding:4px 6px; white-space:normal; }
.column-filter { display:inline-block; vertical-align:middle; margin-left:3px; position:relative; }
.column-filter summary { list-style:none; display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:5px;
  color:var(--forest); background:#f0e9ed; font-size:12px; cursor:pointer; }
.column-filter summary::-webkit-details-marker { display:none; }
.column-filter[open] summary { background:var(--forest); color:white; }
.column-filter-menu { position:absolute; top:22px; right:0; z-index:20; width:210px; padding:12px; border:1px solid var(--line); border-radius:9px;
  background:white; box-shadow:0 12px 30px rgba(39,25,38,.16); text-align:left; text-transform:none; letter-spacing:normal; white-space:normal; }
.column-filter-menu strong { display:block; margin-bottom:7px; color:var(--ink); font-size:11px; }
.column-filter-menu label { display:block; color:var(--ink-soft); font-size:11px; margin-top:7px; }
.column-filter-menu input,.column-filter-menu select { width:100%; margin-top:4px; min-height:35px; padding:5px; border:1px solid var(--line); border-radius:6px;
  background:white; color:var(--ink); font-size:12px; }
.batch-selection-bar { position:sticky; bottom:12px; z-index:8; display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin:14px 0; padding:11px 16px; border:1px solid #d5c1ce; border-radius:12px; background:#fff; box-shadow:0 9px 28px rgba(39,25,38,.12); font-size:12px; }
.batch-selection-bar .btn:disabled { opacity:.5; cursor:not-allowed; }
.btn-reverse { min-height:31px; padding:0 10px; color:#a94b52; border-color:#d9aeb2; background:#fff6f6; font-size:11px; }
.btn-reverse:hover { background:#fae8e9; border-color:#b95660; }
.modal-card:has(#settlement-form),.modal-card:has(#batch-settlement-form) { display:flex; flex-direction:column; padding:0; overflow:hidden; }
.modal-card:has(#settlement-form) { width:min(100%,720px); }
.modal-card:has(#batch-settlement-form) { width:min(100%,1050px); }
.modal-card:has(#settlement-form) > h2,.modal-card:has(#batch-settlement-form) > h2 { margin:0; padding:22px 55px 8px 25px; flex:none; }
.modal-card:has(#settlement-form) > p,.modal-card:has(#batch-settlement-form) > p { margin:0; padding:0 25px 14px; flex:none; }
#settlement-form,#batch-settlement-form { flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden; align-content:start; padding:0 25px 18px; }
.settlement-footer { flex:none; display:flex; justify-content:space-between; align-items:center; gap:14px; padding:11px 25px 14px; border-top:1px solid var(--line);
  background:white; box-shadow:0 -7px 24px rgba(74,45,66,.07); color:var(--ink-soft); font-size:12px; }
.settlement-footer .btn { flex:none; }
.batch-rate-panel { min-width:0; border:1px solid var(--line); border-radius:10px; padding:11px; }
.batch-rate-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:7px; font-size:12px; }
.batch-rate-scroll { overflow:auto; max-height:32vh; }
.batch-rate-table { min-width:790px; }
.batch-rate-table th,.batch-rate-table td { padding:8px; font-size:10px; }
.batch-rate-table td:first-child { min-width:170px; }
.batch-rate-table td:first-child small { display:block; margin-top:3px; color:var(--ink-soft); }
.batch-rate-table td input { width:82px; min-height:32px; text-align:right; padding:5px; }
.batch-rate-table .batch-row-net { white-space:nowrap; font-weight:700; }
@media (max-width: 1050px) {
  .title-mobile-filters { display:block; margin-bottom:12px; padding:11px 13px; border:1px solid var(--line); border-radius:10px; background:white; }
  .title-mobile-filters summary { cursor:pointer; color:var(--forest); font-size:12px; font-weight:700; }
  .title-mobile-filter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; padding-top:12px; }
  .title-mobile-filter-grid label { display:flex; flex-direction:column; gap:4px; color:var(--ink-soft); font-size:11px; }
  .title-mobile-filter-grid select,.title-mobile-filter-grid input { min-width:0; min-height:36px; border:1px solid var(--line); border-radius:7px; padding:6px; background:white; }
  .title-table thead { display:none; }
  .title-table,.title-table tbody,.title-table tr,.title-table td { display:block; width:100%; }
  .title-table colgroup { display:none; }
  .title-table tbody { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:12px; }
  .title-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 12px; border:1px solid var(--line); border-radius:10px; padding:12px; }
  .title-table td,.title-table td:first-child,.title-table td:last-child { border:0; padding:2px; }
  .title-table td::before { content:attr(data-label); display:block; margin-bottom:2px; color:var(--ink-soft); font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
  .title-table td:nth-child(3),.title-table td:nth-child(4) { grid-column:1/-1; }
  .title-table td:first-child::before { display:none; }
  .title-table td:first-child { grid-column:2; grid-row:1; justify-self:end; }
  .title-table td:nth-child(2) { grid-column:1; grid-row:1; }
}
@media (max-width: 700px) {
  .title-mobile-filter-grid { grid-template-columns:1fr; }
  .title-table tbody { grid-template-columns:1fr; }
  .settlement-footer { padding:10px 17px 14px; }
  .settlement-footer span { max-width:45%; }
  #settlement-form,#batch-settlement-form { padding:0 17px 15px; }
  .modal-card:has(#settlement-form) > h2,.modal-card:has(#batch-settlement-form) > h2 { padding-left:17px; }
  .modal-card:has(#settlement-form) > p,.modal-card:has(#batch-settlement-form) > p { padding-left:17px; padding-right:17px; }
}
@media (max-width: 900px) {
  .sidebar { overflow-y: auto; }
  .sidebar-close { display: block; position: absolute; right: 11px; top: 9px; background: transparent; border: 0; color: white; font-size: 24px; }
  .mobile-menu { font-size: 21px; line-height: 1; flex: none; }
}

/* Conciliação bancária */
.reconciliation-toolbar { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:16px; padding:20px 22px; }
.reconciliation-filters,.reconciliation-upload { display:flex; align-items:end; flex-wrap:wrap; gap:12px; min-width:0; }
.reconciliation-filters label,.reconciliation-upload label { display:flex; flex-direction:column; gap:5px; color:var(--ink-soft); font-size:11px; font-weight:700; }
.reconciliation-filters select,.reconciliation-filters input,.reconciliation-upload input { min-height:40px; max-width:100%; border:1px solid var(--line); border-radius:8px; padding:7px 10px; background:white; color:var(--ink); }
.reconciliation-filters select { min-width:200px; }
.reconciliation-upload input { max-width:220px; }
.reconciliation-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:11px; }
.reconciliation-metrics .panel { display:flex; flex-direction:column; gap:8px; min-width:0; padding:18px; }
.reconciliation-metrics small,.reconciliation-metrics span { color:var(--ink-soft); font-size:11px; overflow-wrap:anywhere; }
.reconciliation-metrics strong { color:var(--ink); font-size:22px; font-variant-numeric:tabular-nums; }
.reconciliation-metrics .reconciliation-alert strong { color:var(--red); }
.reconciliation-help { margin:8px 2px 17px; color:var(--ink-soft); font-size:12px; line-height:1.5; }
.reconciliation-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.18fr); gap:14px; align-items:start; }
.reconciliation-list,.reconciliation-detail { min-width:0; padding:20px 22px; }
.reconciliation-list { max-height:70vh; overflow-y:auto; }
.reconciliation-section-title { display:flex; justify-content:space-between; align-items:start; gap:12px; margin-bottom:12px; }
.reconciliation-section-title h2 { margin:0 0 4px; color:var(--ink); font-size:18px; }
.reconciliation-section-title small { color:var(--ink-soft); font-size:11px; }
.reconciliation-line-filters { margin-bottom:12px; }
.reconciliation-line-filters button { cursor:pointer; }
.reconciliation-line-filters button:focus-visible { outline:2px solid var(--forest); outline-offset:2px; }
.reconciliation-line { display:flex; justify-content:space-between; gap:12px; width:100%; padding:12px 9px; border:0; border-top:1px solid var(--line); background:transparent; text-align:left; cursor:pointer; }
.reconciliation-line:hover,.reconciliation-line.selected { background:var(--forest-light); }
.reconciliation-line > span { min-width:0; }
.reconciliation-line strong,.reconciliation-line small { display:block; overflow-wrap:anywhere; }
.reconciliation-line strong { color:var(--ink); font-size:12px; }
.reconciliation-line small { margin-top:4px; color:var(--ink-soft); font-size:11px; }
.reconciliation-line-end { flex:none; text-align:right; }
.reconciliation-line-end .positive { color:var(--forest); }
.reconciliation-line-end .negative { color:var(--red); }
.reconciliation-suggestions { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:12px 0; font-size:11px; }
.reconciliation-suggestions button { padding:5px 8px; border:1px solid var(--line); border-radius:7px; }
.reconciliation-candidates { max-height:42vh; overflow-y:auto; border:1px solid var(--line); border-radius:9px; }
.reconciliation-candidate { display:flex; align-items:center; gap:9px; padding:10px; border-bottom:1px solid var(--line); cursor:pointer; }
.reconciliation-candidate:last-child { border-bottom:0; }
.reconciliation-candidate:hover { background:var(--forest-light); }
.reconciliation-candidate input { width:17px; height:17px; accent-color:var(--forest); flex:none; }
.reconciliation-candidate span { flex:1; min-width:0; }
.reconciliation-candidate strong,.reconciliation-candidate small { display:block; overflow-wrap:anywhere; }
.reconciliation-candidate strong { color:var(--ink); font-size:12px; }
.reconciliation-candidate small { color:var(--ink-soft); font-size:10px; margin-top:3px; }
.reconciliation-candidate b { color:var(--ink); font-size:12px; white-space:nowrap; }
.reconciliation-confirm { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; }
.reconciliation-confirm span { color:var(--ink-soft); font-size:11px; }
.reconciliation-confirm span strong,.reconciliation-confirm span small { display:block; margin-top:4px; color:var(--ink); font-size:13px; }
.reconciliation-confirm .btn:disabled { opacity:.5; cursor:not-allowed; }
.reconciliation-create { margin-top:16px; }
.reconciliation-success { padding:12px; border-radius:8px; background:var(--forest-light); color:var(--forest); font-weight:700; font-size:12px; }
.reconciliation-linked > div { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); font-size:12px; }
.reconciliation-linked { margin-bottom:16px; }
.reconciliation-preview-metrics { display:flex; flex-wrap:wrap; gap:10px; margin:13px 0; }
.reconciliation-preview-metrics span { padding:9px 12px; border-radius:8px; background:var(--forest-light); color:var(--ink); font-size:12px; }
.reconciliation-warning { padding:9px 11px; border-radius:8px; background:var(--rose-light); color:var(--red); font-size:12px; }
.reconciliation-preview-list { max-height:38vh; overflow:auto; border:1px solid var(--line); border-radius:8px; }
.reconciliation-preview-list > div { display:flex; justify-content:space-between; gap:12px; padding:8px 10px; border-bottom:1px solid var(--line); font-size:11px; }
.reconciliation-preview-list small { display:block; color:var(--red); }
.reconciliation-import-form { display:flex; flex-direction:column; gap:11px; margin-top:15px; }
.reconciliation-import-form label { display:flex; align-items:start; gap:8px; color:var(--ink); font-size:12px; }
.reconciliation-import-form .btn { align-self:flex-end; }
.reconciliation-imports { margin-top:16px; padding:18px 22px; }
.reconciliation-import-toggle { display:block; width:100%; border:0; padding:0; background:none; color:var(--ink); text-align:left; cursor:pointer; font-size:14px; font-weight:700; }
.reconciliation-import-toggle small { margin-left:8px; color:var(--ink-soft); font-size:11px; font-weight:400; }
.reconciliation-import-filters { display:grid; grid-template-columns:minmax(170px,2fr) repeat(3,minmax(130px,1fr)); gap:12px; margin-top:18px; }
.reconciliation-import-filters label { display:flex; flex-direction:column; gap:5px; min-width:0; color:var(--ink-soft); font-size:11px; font-weight:700; }
.reconciliation-import-filters input,.reconciliation-import-filters select { width:100%; min-height:39px; border:1px solid var(--line); border-radius:8px; padding:6px 9px; background:white; color:var(--ink); }
.reconciliation-import-items { margin-top:12px; }
.reconciliation-import-item { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:13px 0; border-top:1px solid var(--line); }
.reconciliation-import-item.selected { background:var(--forest-light); }
.reconciliation-import-item > div:first-child { min-width:0; }
.reconciliation-import-open { flex:1; min-width:0; border:0; background:none; padding:5px 8px; text-align:left; cursor:pointer; }
.reconciliation-import-open:hover strong { text-decoration:underline; }
.reconciliation-import-item strong,.reconciliation-import-item small { display:block; overflow-wrap:anywhere; }
.reconciliation-import-item strong { color:var(--ink); font-size:12px; }
.reconciliation-import-item small { margin-top:4px; color:var(--ink-soft); font-size:11px; }
.reconciliation-import-actions { display:flex; flex-direction:column; align-items:flex-end; gap:7px; flex:none; }
.reconciliation-import-actions small { max-width:220px; text-align:right; }
.reconciliation-badge { display:inline-flex; align-items:center; border-radius:999px; padding:7px 10px; white-space:nowrap; font-size:11px; font-weight:700; }
.reconciliation-badge.pending { color:#8b6224; background:#fff3df; }
.reconciliation-badge.started { color:#326186; background:#e5f1f8; }
.reconciliation-badge.reconciled { color:var(--forest); background:var(--forest-light); }
.reconciliation-badge.canceled { color:var(--ink-soft); background:#f0eded; }
.reconciliation-selected-import { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:14px; padding:15px 20px; }
.reconciliation-selected-import strong,.reconciliation-selected-import small { display:block; overflow-wrap:anywhere; }
.reconciliation-selected-import small { margin-top:5px; color:var(--ink-soft); }
.reconciliation-selected-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.reconciliation-selected-actions .btn:disabled { opacity:.5; cursor:not-allowed; }
#transfer-received-date-wrap[hidden] { display:none; }
.user-step { margin:10px 0 0; padding-top:11px; border-top:1px solid var(--line); color:var(--ink); font-size:13px; font-weight:700; }
.user-company-list { display:grid; gap:8px; max-height:260px; overflow-y:auto; padding:3px 1px; }
.user-company-row { display:flex!important; flex-direction:row!important; align-items:center; justify-content:space-between; gap:14px; padding:10px 12px; border:1px solid var(--line); border-radius:9px; background:#fff; }
.user-company-row span { min-width:0; font-weight:700; }
.user-company-row select { width:min(250px,52%); flex:none; }
.user-access-preview { display:grid; gap:6px; padding:13px 15px; border-radius:10px; background:var(--forest-light); color:var(--ink); }
.user-access-preview small { color:var(--ink-soft); line-height:1.5; }
.user-effective { margin-top:18px; border-top:1px solid var(--line); padding-top:12px; }
.user-effective h3 { font-size:13px; margin:12px 0 7px; }
.user-effective details,.user-effective > p { border-bottom:1px solid var(--line); padding:8px 0; font-size:11px; }
.user-effective summary { cursor:pointer; font-weight:700; }
.user-effective details p { line-height:1.5; color:var(--ink-soft); }
.modal-card:has(.matrix-form) { width:min(100%,1180px); display:flex; flex-direction:column; overflow:hidden; padding:0; }
.modal-card:has(.matrix-form) > h2 { padding:20px 58px 3px 24px; margin:0; flex:none; }
.modal-card:has(.matrix-form) > p { padding:0 24px 10px; margin:0; flex:none; }
.matrix-form { min-height:0; display:flex; flex-direction:column; overflow:hidden; }
.matrix-form > p { padding:0 24px; margin:9px 0; }
.matrix-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:8px 24px; }
.matrix-meta label { display:grid; gap:5px; color:var(--ink-soft); font-size:12px; font-weight:700; }
.matrix-meta input,.matrix-meta select { min-width:0; min-height:39px; border:1px solid var(--line); border-radius:8px; padding:8px; }
.access-matrix-scroll { overflow:auto; min-height:0; border-top:1px solid var(--line); }
.access-matrix { width:100%; min-width:870px; border-collapse:separate; border-spacing:0; font-size:12px; }
.access-matrix th,.access-matrix td { padding:8px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.access-matrix thead th { position:sticky; top:0; z-index:2; background:#f9f7f8; white-space:nowrap; }
.access-matrix tbody th { position:sticky; left:0; z-index:1; min-width:205px; max-width:270px; background:#fff; }
.access-matrix .matrix-group th,.access-matrix .matrix-group td { background:#f4eef3; font-weight:700; }
.access-matrix select { width:100%; min-width:90px; border:1px solid var(--line); border-radius:7px; padding:6px; background:#fff; color:var(--ink); }
.access-matrix .matrix-empty { color:var(--ink-soft); text-align:center; }
.matrix-indent { color:var(--ink-soft); margin-right:6px; }
.matrix-result { display:block; margin-top:3px; font-size:10px; white-space:nowrap; }
.matrix-result.allowed { color:#11805a; }.matrix-result.denied { color:#ad505d; }
.matrix-special { min-width:112px; position:relative; }.matrix-special summary { cursor:pointer; white-space:nowrap; }
.matrix-special > div { position:relative; display:grid; gap:8px; min-width:205px; padding:9px; background:#fff; border:1px solid var(--line); border-radius:8px; box-shadow:0 8px 20px #25182a1a; }
.matrix-special label { display:grid; gap:3px; font-size:11px; }
.matrix-review { flex:none; padding:10px 24px; max-height:130px; overflow:auto; background:#faf7f9; font-size:12px; }
.matrix-review ul { margin:7px 0 0; padding-left:20px; columns:2; }
.matrix-actions { flex:none; display:flex; justify-content:flex-end; gap:9px; padding:12px 24px; border-top:1px solid var(--line); background:#fff; }
@media(max-width:700px) { .matrix-meta { grid-template-columns:1fr; }.matrix-review ul { columns:1; } }
.transfer-recents { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 15px; color:var(--ink-soft); font-size:12px; }
.transfer-recents button { border:1px solid var(--line); border-radius:999px; padding:7px 10px; background:white; color:var(--ink); cursor:pointer; font-size:11px; }
.transfer-recents button:hover { border-color:var(--forest); }
.transfer-toolbar { display:flex; justify-content:flex-end; margin-bottom:14px; }
.transfer-toolbar label { display:flex; align-items:center; gap:8px; color:var(--ink-soft); font-size:12px; }
.transfer-toolbar select { min-height:39px; border:1px solid var(--line); border-radius:8px; padding:6px 10px; background:white; color:var(--ink); }
.transfer-list { display:grid; gap:11px; }
.transfer-item { display:flex; justify-content:space-between; align-items:start; gap:18px; padding:18px 21px; }
.transfer-main { min-width:0; }
.transfer-main strong,.transfer-main small { display:block; overflow-wrap:anywhere; }
.transfer-main strong { color:var(--ink); font-size:14px; }
.transfer-main strong span { color:var(--forest); padding:0 5px; }
.transfer-main small { margin-top:7px; color:var(--ink-soft); font-size:11px; }
.transfer-end { display:flex; flex-direction:column; align-items:flex-end; gap:8px; flex:none; }
.transfer-end > strong { color:var(--ink); font-size:19px; white-space:nowrap; }
.transfer-end > small { color:var(--ink-soft); font-size:11px; text-align:right; }
.transfer-actions { display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-end; }
@media (max-width: 1100px) {
  .reconciliation-toolbar { align-items:stretch; flex-direction:column; }
  .reconciliation-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .reconciliation-import-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .reconciliation-toolbar,.reconciliation-list,.reconciliation-detail,.reconciliation-imports { padding:16px; }
  .reconciliation-columns { grid-template-columns:1fr; }
  .reconciliation-list { max-height:40vh; }
  .reconciliation-filters label,.reconciliation-upload label { flex:1 1 145px; }
  .reconciliation-filters select { min-width:0; width:100%; }
  .reconciliation-import-item { align-items:start; flex-direction:column; }
  .reconciliation-import-actions { align-items:flex-start; }
  .reconciliation-import-actions small { text-align:left; }
  .reconciliation-import-filters { grid-template-columns:1fr; }
  .reconciliation-selected-import { align-items:stretch; flex-direction:column; }
  .reconciliation-selected-actions { justify-content:flex-start; }
  .transfer-item { flex-direction:column; }
  .transfer-end { align-items:flex-start; }
  .transfer-end > small { text-align:left; }
  .transfer-actions { justify-content:flex-start; }
}
