/* The look of the whole app: warm ivory, deep green, a little gold. Loaded last, so it sits over
   the layout rules in styles.css and each tab's own file. Colours and fonts are named in styles.css. */
@font-face { font-family: Manrope; src: url(/vendor/fonts/manrope-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; src: url(/vendor/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Fraunces; src: url(/vendor/fonts/fraunces-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

body { font: 500 15px/1.45 var(--ui); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
b, strong { font-weight: 800; }
main { padding: 12px 16px 80px; animation: mb-in .22s ease-out; }
@keyframes mb-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { main, dialog[open], .navsheet, .memenu { animation: none !important; } }
.muted, .meta { color: var(--muted); }
a { color: var(--brand); }

/* ---------- top bar ---------- */
.top { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
       color: var(--text); padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); gap: 8px; }
.top .logo { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
             background: linear-gradient(160deg, #145a48, #0a3329); box-shadow: 0 6px 14px rgba(10,51,41,.22); }
.top strong { font-size: .8rem; font-weight: 800; letter-spacing: .2em; margin-left: 2px; }
.top button.ghost { width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; border-radius: 50%; position: relative;
                    background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(60,45,15,.06); }
/* The buttons look 40 wide; the part that takes the tap is 44. */
.top button.ghost::after { content: ""; position: absolute; inset: -2px; }
.top #me { background: linear-gradient(140deg, #d9b56c, #b68b3e); color: #2a1e06; box-shadow: 0 2px 8px rgba(182,139,62,.35); }
.memenu { position: absolute; right: 12px; top: calc(100% - 2px); z-index: 30; min-width: 210px; padding: 6px; border-radius: 18px;
          background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(60,45,15,.2); animation: mb-pop .14s ease-out; }
@keyframes mb-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.memenu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px; border-radius: 12px;
                 background: transparent; color: var(--text); font-weight: 700; text-align: left; box-shadow: none; }
.memenu button[hidden] { display: none; }
.memenu button:active { background: var(--soft); }
.memenu #logout { color: var(--bad); }
@media (max-width: 380px) { .top { gap: 6px; padding-left: 12px; padding-right: 12px; } }

/* ---------- headings ---------- */
h2 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; letter-spacing: -.01em; margin: 22px 2px 10px; }
.card h3, #home h3, #ledgers h3, #bank h3 { font-size: .86rem; font-weight: 800; letter-spacing: .13em; font-variant-caps: all-small-caps; color: var(--muted); margin: 0 0 10px; }

/* ---------- cards, pills, notes ---------- */
.card { border: 0; border-radius: 22px; padding: 16px; margin: 12px 0; box-shadow: var(--lift), 0 0 0 1px var(--line); }
.card.isnew { box-shadow: var(--lift), 0 0 0 1.5px var(--gold); }
.pill { border: 0; border-radius: 9px; background: #ebe4d6; color: #5d5646; font-weight: 700; font-size: .72rem; padding: 3px 9px; }
.pill.pending { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.pill.redo, .pill.overdue { background: color-mix(in srgb, var(--bad) 13%, transparent); color: var(--bad); }
.pill.received { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.pill.done { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.pill.pick { border-radius: 99px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--text); font-size: .88rem; padding: 8px 14px; }
.pill.pick:has(input:checked) { background: var(--text); color: var(--bg); box-shadow: none; }
.note { border-radius: 14px; padding: 10px 12px; }
.banner { border-radius: 16px; padding: 12px 14px; background: color-mix(in srgb, var(--gold) 16%, transparent); }
.files li, .nm-row, .nm-opt { border-top-style: solid; }

/* ---------- buttons and fields ---------- */
button, .btn { border-radius: 15px; font-weight: 800; font-size: .92rem; padding: 10px 16px; transition: transform .08s ease, filter .12s ease; }
button:active:not(:disabled), .btn:active { transform: scale(.97); filter: brightness(.96); }
button.secondary, .btn.secondary { background: var(--card); color: var(--brand); border: 0; box-shadow: 0 0 0 1px var(--line); }
button.danger { background: var(--bad); }
button.big, a.btn.big { border-radius: 17px; padding: 15px; font-size: 1rem; }
button.ghost { box-shadow: none; }
input, select, textarea { font-size: 16px; min-height: 44px; border-radius: 14px; padding: 12px 14px; border: 0; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-weight: 600; outline: none; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 5px rgba(182,139,62,.2); }
input[type=checkbox], input[type=radio] { box-shadow: none; min-height: 0; }
input::placeholder, textarea::placeholder { color: var(--muted); font-weight: 500; }
label { font-size: .8rem; font-weight: 700; }
.tabs button { background: var(--card); border: 0; box-shadow: 0 0 0 1px var(--line); color: var(--muted); }
.tabs button.on { background: var(--text); color: var(--bg); box-shadow: none; }

/* ---------- bottom bar and the More sheet ---------- */
body.hasbar { --bar: calc(68px + env(safe-area-inset-bottom)); }
.navbar { padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 96%, transparent);
          backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 0; box-shadow: 0 -1px 0 var(--line), 0 -12px 28px rgba(60,45,15,.08); }
.navbar button { height: 56px; gap: 3px; font-size: .68rem; font-weight: 700; background: transparent; box-shadow: none; color: var(--muted); }
.navbar button svg { width: 54px; height: 30px; padding: 4px 16px; border-radius: 99px; box-sizing: border-box; transition: background .18s ease, color .18s ease; }
.navbar button.on { color: var(--text); font-weight: 800; background: transparent; }
.navbar button.on svg { background: var(--brand); color: var(--brand-text); }
.navdot { top: 1px; left: calc(50% + 8px); background: var(--bad); box-shadow: 0 0 0 2px var(--card); }
.navshade { background: rgba(28,26,22,.45); animation: mb-fade .18s ease-out; }
@keyframes mb-fade { from { opacity: 0; } to { opacity: 1; } }
.navsheet { border-radius: 26px 26px 0 0; padding: 18px 14px; box-shadow: 0 -18px 40px rgba(60,45,15,.18); animation: mb-up .2s ease-out; }
@keyframes mb-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.navsheet button { background: var(--soft); border-radius: 18px; padding: 16px 4px; font-weight: 700; box-shadow: none; color: var(--text); }
.navsheet button svg { color: var(--brand); }
.navsheet button.on { background: var(--soft); box-shadow: inset 0 0 0 2px var(--brand); }
.navseg { border: 0; border-radius: 16px; padding: 4px; background: #ebe4d6; }
.navseg button { border-radius: 12px; background: transparent; box-shadow: none; font-weight: 700; }
.navseg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(60,45,15,.14); }

/* ---------- round flag button, toast, pop-ups ---------- */
.flag { left: auto; right: 16px; width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; display: grid; place-items: center;
        background: var(--card); color: var(--gold); border: 0; box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(60,45,15,.2); }
.flag-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; line-height: 20px; padding: 0 5px; margin: 0; font-size: .7rem; font-weight: 800; }
body.hasbar .fab { right: 16px; bottom: calc(74px + var(--bar)); }
.fab { box-shadow: 0 10px 24px rgba(10,51,41,.3); }
#toast { background: #1c1a16; color: #fbf6ea; border-radius: 16px; padding: 13px 16px; font-weight: 700; box-shadow: 0 14px 30px rgba(0,0,0,.25); animation: mb-up .2s ease-out; }
dialog { border-radius: 24px; box-shadow: 0 30px 70px rgba(28,26,22,.35); }
dialog[open] { animation: mb-pop .16s ease-out; }
dialog::backdrop { background: rgba(28,26,22,.5); }
dialog h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: -.01em; text-transform: none; color: var(--text); margin: 0 0 8px; }
#newVersion { background: var(--gold-soft); color: #3a2c00; }
#newVersion button { background: #3a2c00; color: #fff; }

/* ---------- the dark green hero card ---------- */
.mb-hero { background: var(--hero); color: var(--hero-text); border-radius: 28px; padding: 20px; position: relative; overflow: hidden;
           box-shadow: 0 0 0 1px var(--hero-line), 0 18px 40px rgba(10,51,41,.3); }
.mb-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
                   background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px);
                   -webkit-mask: linear-gradient(90deg, transparent 30%, #000); mask: linear-gradient(90deg, transparent 30%, #000); }
.mb-hero > * { position: relative; }

/* ---------- Home ---------- */
#home .hm-stack > * + * { margin-top: 14px; }
#home .hm-hero { padding: 20px 20px 18px; border-left: 0; }
#home .hm-hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
#home .hm-hero-top .hm-chip { white-space: nowrap; }
#home .hm-hero-label { font-size: .84rem; font-weight: 800; letter-spacing: .12em; font-variant-caps: all-small-caps; color: var(--hero-muted); min-width: 0; }
#home .hm-chip { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 44px; margin: -8px -4px -8px 0; padding: 0 4px; background: transparent; color: var(--hero-text); box-shadow: none; }
#home .hm-chip > span { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; padding: 6px 11px; border-radius: 99px;
                        background: rgba(255,255,255,.1); box-shadow: 0 0 0 1px var(--hero-line); white-space: nowrap; }
#home .hm-chip i { width: 7px; height: 7px; border-radius: 50%; background: #62d6a0; box-shadow: 0 0 0 3px rgba(98,214,160,.22); }
#home .hm-chip.hm-old i { background: #f1c15a; box-shadow: 0 0 0 3px rgba(241,193,90,.25); }
#home .hm-chip.hm-stale > span { background: #ffd9d0; color: #7a1f10; box-shadow: none; }
#home .hm-chip.hm-stale i { background: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.2); }
#home a.hm-big { display: block; color: var(--hero-text); text-decoration: none; font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-top: 12px;
                 font-size: clamp(1.9rem, 10.6vw, 2.7rem); white-space: nowrap; min-height: 44px; }
#home .hm-bar { display: flex; height: 8px; gap: 3px; margin-top: 12px; }
#home .hm-bar i { display: block; border-radius: 99px; min-width: 8px; }
#home .hm-legend { display: flex; gap: 6px; margin-top: 6px; }
#home .hm-legend button { flex: 1; min-width: 0; min-height: 48px; padding: 4px 0; background: transparent; box-shadow: none; text-align: left; color: var(--hero-muted);
                          font-size: .76rem; font-weight: 600; border-radius: 10px; }
#home .hm-legend button i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
#home .hm-legend button b { display: block; color: var(--hero-text); font-size: .92rem; font-weight: 800; white-space: nowrap; }
#home .hm-hero .hm-tally-more { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hero-line); }
#home .hm-hero .hm-label { color: var(--hero-muted); font-size: .8rem; }
#home .hm-hero .hm-badge { border: 0; background: rgba(255,255,255,.14); color: var(--hero-text); padding: 3px 10px; }
#home .hm-hero .hm-badge.hm-stale { background: #ffd9d0; color: #7a1f10; }
#home .hm-hero .hm-badge.hm-old { background: #f6dc9c; color: #4a3500; }
#home .hm-hero .hm-when { font-size: 1.5rem; letter-spacing: -.02em; color: var(--hero-text); }
#home .hm-hero .hm-ago { font-size: 1rem; }
#home .hm-hero .hm-fresh { color: #9fe3c2; } #home .hm-hero .hm-old { color: #f6dc9c; } #home .hm-hero .hm-stale { color: #ffb9aa; }
#home .hm-hero .hm-firms td { border-top: 1px solid var(--hero-line); color: var(--hero-text); }
#home .hm-hero .hm-helper { border-top: 1px solid var(--hero-line); color: var(--hero-muted); }

#home .hm-quick { display: flex; justify-content: space-between; gap: 4px; margin-top: 18px; padding: 0 2px; }
#home .hm-quick button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; background: transparent; box-shadow: none;
                         color: var(--text); font-size: .74rem; font-weight: 700; line-height: 1.2; }
#home .hm-quick button span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--brand);
                              box-shadow: var(--lift), 0 0 0 1px var(--line); }

#home .hm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#home .hm-fig { background: var(--card); border-radius: 20px; padding: 13px 12px; box-shadow: var(--lift), 0 0 0 1px var(--line); min-height: 44px; }
#home .hm-fig > span:first-child { font-size: .8rem; font-weight: 800; letter-spacing: .11em; font-variant-caps: all-small-caps; color: var(--muted); }
#home .hm-fig b { font-size: clamp(.86rem, 4.1vw, 1.1rem); letter-spacing: -.03em; margin-top: 7px; }
#home .card .hm-fig { background: var(--soft); box-shadow: none; }
#home .hm-three .hm-fig b, #home .hm-work .hm-fig b { font-size: 1.7rem; margin-top: 6px; }
#home .hm-three .hm-fig:first-child { background: linear-gradient(160deg, rgba(182,139,62,.2), transparent 70%), var(--soft); box-shadow: 0 0 0 1px rgba(182,139,62,.4); }
#home .hm-split { font-size: .84rem; margin-top: 0; }
#home .hm-split th { font-weight: 700; font-size: .68rem; }
#home .hm-split td { border-top: 1px solid var(--line); font-weight: 700; padding: 10px 0 10px 8px; }
#home .hm-split td:first-child { font-weight: 800; }
#home .hm-chg-firm, #home .hm-chg, #home .hm-chg-row, #home button.hm-chg-bill, #home .hm-name, #home .hm-chg-earlier { border-top-style: solid; }
#home .hm-move { background: var(--soft); border-radius: 16px; padding: 12px; box-shadow: none; }
#home .hm-link, #ledgers .lg-link { font-weight: 700; text-decoration: none; }
#home .hm-msg { border-radius: 16px; }
#home .hm-chg-tag { border: 0; background: color-mix(in srgb, currentColor 14%, transparent); padding: 2px 8px; }

/* ---------- Bank ---------- */
#bank .bk-usable { background: var(--hero); color: var(--hero-text); border-radius: 28px; padding: 20px; box-shadow: 0 0 0 1px var(--hero-line), 0 18px 40px rgba(10,51,41,.3); }
#bank .bk-usable h3 { color: var(--hero-muted); }
#bank .bk-usable > .bk-avail { color: var(--hero-text); margin-top: 0; }
#bank .bk-usable > .bk-avail b { font-size: clamp(1.9rem, 10.6vw, 2.6rem); letter-spacing: -.035em; line-height: 1.1; }
#bank .bk-usable > .bk-avail.bk-minus { color: #ffb9aa; }
#bank .bk-usable td { border-top: 1px solid var(--hero-line); padding: 9px 0; font-weight: 600; }
#bank .bk-usable td:last-child { font-weight: 800; }
#bank .bk-usable .muted { color: var(--hero-muted); }
#bank .bk-usable .bk-age { color: var(--hero-muted); }
#bank .bk-usable .bk-age.bk-warn { color: #ffc56b; }
#bank .bk-usable .bk-less td:last-child, #bank .bk-usable .bk-neg td:last-child { color: #ffb9aa; }
#bank .bk-usable .bk-net td { border-top: 1px solid rgba(251,246,234,.45); color: var(--hero-text); }
#bank .bk-usable .bk-net td:last-child { color: var(--hero-text); }
#bank .bk-acct .row h3 { font-variant-caps: normal; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; text-transform: none; color: var(--text); margin: 0; }
#bank .bk-acct .row:first-child { justify-content: space-between; }
#bank .bk-avail { color: var(--text); font-size: .85rem; font-weight: 600; }
#bank .bk-avail b { font-size: 1.5rem; letter-spacing: -.03em; }
#bank .bk-avail.bk-minus { color: var(--bad); }
#bank .bk-meter { height: 6px; border-radius: 9px; background: var(--soft); box-shadow: 0 0 0 1px var(--line); margin: 10px 0 6px; overflow: hidden; }
#bank .bk-meter i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #0f4a3b, #2c8a6c); }
#bank .bk-meter.bk-over i { background: var(--bad); }
#bank .bk-drop { background: transparent; color: var(--brand); border: 1.5px dashed #cdbf9f; border-radius: 18px; font-weight: 800; }
#bank .bk-new, #bank .bk-rest { box-shadow: 0 0 0 1px var(--line); border: 0; }
#bank .bk-row, .bk-two td, .bk-int td, #bank .bk-mrow { border-top-style: solid; }
#bank .bk-chip, .nm-chip, #ledgers .lg-chip { border: 0; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--muted); font-weight: 700; }
#bank .bk-chip[aria-pressed="true"], .nm-chip[aria-pressed="true"], #ledgers .lg-chip[aria-pressed="true"] { background: var(--text); color: var(--bg); box-shadow: none; }
#bank .bk-amt { font-weight: 800; letter-spacing: -.02em; }

/* ---------- Ledgers and Party ---------- */
#ledgers .lg-search { border-radius: 18px; padding: 15px 16px 15px 46px; font-size: 1rem; box-shadow: var(--lift), 0 0 0 1px var(--line);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23736c5f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") 15px 50% / 20px no-repeat; }
#ledgers .lg-search:focus { box-shadow: var(--lift), 0 0 0 1.5px var(--gold), 0 0 0 5px rgba(182,139,62,.2); }
#ledgers .lg-fig { background: var(--soft); border-radius: 16px; padding: 12px; }
#ledgers .lg-fig b { letter-spacing: -.03em; margin-top: 4px; }
#ledgers .lg-item { padding: 12px 0; gap: 12px; min-height: 60px; }
#ledgers .lg-item .name { font-weight: 800; letter-spacing: -.01em; }
#ledgers .lg-item .amt { font-weight: 800; letter-spacing: -.02em; }
#ledgers .lg-av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .78rem; font-weight: 800;
                  background: var(--soft); box-shadow: 0 0 0 1px var(--line); color: var(--brand); }
#ledgers .lg-av::before { content: attr(data-i); }
#ledgers .lg-item > .lg-main { flex: 1; min-width: 0; }
#ledgers .lg-hero { border-radius: 24px; padding: 20px 16px; }
#ledgers .lg-hero .big { font-size: clamp(1.9rem, 10.6vw, 2.6rem); letter-spacing: -.035em; }
#ledgers .lg-firm { border: 0; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
#ledgers .lg-age div { border-radius: 14px; background: var(--soft); }
#ledgers .lg-stmt th { font-weight: 800; font-size: .82rem; letter-spacing: .08em; font-variant-caps: all-small-caps; }
#ledgers .lg-tag { background: #ebe4d6; color: #5d5646; }
#ledgers .lg-sheet { border-radius: 26px 26px 0 0; }
#ledgers .lg-msg { border-radius: 16px; }
#ledgers .lg-total b { letter-spacing: -.03em; }

/* Ledgers: the way to the search looks like a search box; all firms together sit on the green card. */
#ledgers .stack > a.btn.big:first-child { text-align: left; background: var(--card); color: var(--muted); font-weight: 600; border-radius: 18px; padding: 15px 16px 15px 46px;
  box-shadow: var(--lift), 0 0 0 1px var(--line);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23736c5f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") 15px 50% / 20px no-repeat; }
#ledgers .card.lg-all { background: var(--hero); color: var(--hero-text); border-radius: 28px; padding: 20px; box-shadow: 0 0 0 1px var(--hero-line), 0 18px 40px rgba(10,51,41,.3); }
#ledgers .lg-all h3, #ledgers .lg-all .muted { color: var(--hero-muted); }
#ledgers .lg-all .lg-stamp.old { color: #f6dc9c; }
#ledgers .lg-all .lg-fig { background: rgba(255,255,255,.09); color: var(--hero-text); box-shadow: 0 0 0 1px var(--hero-line); }
#ledgers .lg-all .lg-fig .due { color: #ffd0c4; } #ledgers .lg-all .lg-fig .pay { color: #a9e8cb; }
@media print { .mb-hero, #bank .bk-usable { background: #fff; color: #000; box-shadow: none; } }
/* Two date boxes side by side stay inside a narrow phone. */
#bank .bk-dates label { min-width: 0; }
input[type=date] { padding-left: 10px; padding-right: 6px; min-width: 0; }
.top button[hidden] { display: none; }

/* Due after cheques: a party's cheques not cleared yet, under its balance. */
#ledgers .lg-chqs { padding-top: 6px; padding-bottom: 6px; }
#ledgers .lg-chqs .lg-tag.lg-hand { background: #fbeccd; color: #7a5410; }
#ledgers .lg-chqs .lg-tag.lg-clr { background: #dcecf6; color: #1d5677; }
#ledgers .lg-after { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px 8px; font-weight: 800; }
#ledgers .lg-after b { font-size: 1.35rem; letter-spacing: -.03em; text-align: right; }
#ledgers .lg-hero .lg-true { color: var(--muted); margin: 2px 0 4px; }
#ledgers .lg-chqs-in { border-top: 1px solid var(--line); margin-top: 8px; }
