/* Sổ Thu Chi Công Trình Dang Dang: the tenant stylesheet, on the shared UI kit (kit v1.9).
   It holds only what the kit lacks (see KIT_GAPS.md). No colour literals: every colour is a kit
   token or a dangdang-* token of tokens.json. Distances use the kit's --sp-* tokens. */

/* Split login: the aside takes the sidebar's brand colour (the kit lets a tenant set --aside-bg). */
.login-split { --aside-bg: var(--side-brand-bg); }

/* Period + date range row above a ledger: a segmented choice, a range and a button at the end. */
.dangdang-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.dangdang-bar-end { margin-inline-start: auto; }
.dangdang-range { display: inline-flex; align-items: center; gap: var(--sp-2); }
.dangdang-range .input { width: 7rem; }

/* A segmented choice of five or more items (the periods) scrolls inside its row on a phone instead of widening the page. */
main .seg:not(.seg-block) { max-width: 100%; overflow-x: auto; }

/* Title of a phone top bar: title with a quieter second line. */
.dangdang-phone-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dangdang-phone-title h1 { font-size: var(--fs-lg); margin: 0; }
.dangdang-phone-title .muted { font-size: var(--fs-xs); }
