:root { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: #172941; background: #f6f8fb; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 218px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 25px 12px 20px; background: #fff; border-right: 1px solid #e2e8f0; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 14px 29px; color: #12305a; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #12305a; color: #fff; font-size: 23px; font-weight: 800; }
.brand strong { display: block; letter-spacing: .035em; font-size: 16px; line-height: 1.05; }
.brand small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .19em; margin-top: 4px; }
.side-nav { display: grid; gap: 5px; }
.side-nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 15px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #526176; }
.side-nav a span { color: #6782a4; font-size: 18px; width: 19px; text-align: center; }
.side-nav a:hover, .side-nav a[aria-current="page"] { color: #174b9b; background: #ecf4ff; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #edf0f5; padding: 19px 11px 0; display: flex; gap: 9px; font-size: 12px; font-weight: 700; line-height: 1.5; }
.sidebar-bottom small { color: #788599; font-weight: 500; }
.demo-dot { width: 8px; height: 8px; background: #e0a12d; border-radius: 100%; margin-top: 5px; flex: none; }
.content-shell { min-width: 0; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; background: #fff; border-bottom: 1px solid #e2e8f0; gap: 12px; }
.topbar h1 { margin: 4px 0 0; font-size: 21px; font-weight: 720; letter-spacing: -.03em; }
.eyebrow { display: block; color: #73839a; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.period { color: #526176; font-size: 13px; white-space: nowrap; }
.demo-badge { color: #85540e; border: 1px solid #f4d594; background: #fff8e8; border-radius: 999px; padding: 7px 11px; font-size: 11px; font-weight: 800; white-space: nowrap; }
main { padding: 28px 30px 50px; max-width: 1720px; margin: auto; }
.view[hidden] { display: none; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 21px; }
.section-heading h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.035em; }
.section-heading p { margin: 0 0 2px; color: #768396; font-size: 13px; text-align: right; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.summary-card, .panel { background: #fff; border: 1px solid #dfe6ee; border-radius: 11px; box-shadow: 0 3px 13px rgba(37, 62, 95, .025); }
.summary-card { padding: 19px 21px; display: grid; gap: 8px; }
.summary-card span { font-size: 13px; color: #64748b; font-weight: 600; }
.summary-card strong { font-size: clamp(19px, 2.3vw, 29px); line-height: 1.15; letter-spacing: -.04em; white-space: nowrap; }
.summary-card small { font-size: 12px; color: #8895a5; }
.summary-card.income strong { color: #2769c6; }
.summary-card.expense strong { color: #cb4949; }
.summary-card.balance strong { color: #173451; }
.panel { overflow: hidden; }
.panel-heading { min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid #edf0f5; }
.panel-heading h3 { margin: 0; font-size: 16px; }
.muted { color: #8592a5; font-size: 12px; }
.filters { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(130px, .8fr) minmax(180px, 1.4fr) auto; gap: 12px; align-items: end; padding: 17px 20px 20px; }
.filters label { display: grid; gap: 6px; color: #68788f; font-weight: 650; font-size: 11px; }
.filters select, .filters input { min-width: 0; width: 100%; height: 37px; color: #24364c; background: #fff; border: 1px solid #d5deea; border-radius: 6px; padding: 0 10px; font-size: 12px; outline: none; }
.filters select:focus, .filters input:focus { border-color: #4381d8; box-shadow: 0 0 0 2px #ddecff; }
.ghost-button { height: 37px; padding: 0 12px; background: #fff; color: #2e5a91; border: 1px solid #cbd9eb; border-radius: 6px; font-size: 12px; font-weight: 700; }
.ghost-button:hover { background: #f0f6ff; }
.table-scroll { overflow-x: auto; }
.mobile-records { display: none; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; font-size: 12px; }
thead { background: #f6f8fb; color: #5c6e84; }
th { font-size: 11px; text-align: left; font-weight: 750; padding: 11px 12px; border-top: 1px solid #edf0f5; border-bottom: 1px solid #dfe6ee; }
td { border-bottom: 1px solid #edf0f5; color: #34465f; padding: 11px 12px; }
tbody tr:hover { background: #f9fbff; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
.number { text-align: right; font-variant-numeric: tabular-nums; }
.id-cell { color: #2562b3; font-weight: 700; }
.amount-cell { font-weight: 750; color: #20344d; }
.type-pill, .status-pill { border-radius: 100px; padding: 5px 9px; font-size: 11px; font-weight: 700; }
.type-income { background: #e8f1ff; color: #2369c8; }
.type-expense { background: #fdf0ef; color: #bf4947; }
.status-pill.success { background: #e8f6ea; color: #287543; }
.status-pill.warning { background: #fff2d8; color: #946007; }
.status-pill.danger { background: #ffe8e7; color: #a83335; }
.status-pill.neutral { background: #edf0f5; color: #5c6776; }
.detail-button { color: #2c69b8; background: transparent; border: 0; font-size: 12px; font-weight: 700; padding: 3px; }
.detail-button:hover { text-decoration: underline; }
.empty-row { text-align: center; color: #7c8a9d; padding: 30px; }
.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; font-size: 12px; color: #6d7c91; }
.pager { display: flex; gap: 7px; }
.pager button { border: 1px solid #d5deea; border-radius: 6px; color: #356bad; background: #fff; min-width: 31px; min-height: 31px; font-size: 19px; }
.pager button:disabled { color: #bcc6d3; cursor: default; }
.record-list { display: grid; }
.record-list-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 16px; color: #65736b; font-size: 11px; }
.record-list-pager span { margin-right: 5px; }
.record-list-pager button { width: 31px; height: 30px; border: 1px solid #cdd6ce; border-radius: 4px; background: #fff; color: #344e40; cursor: pointer; }
.record-list-pager button:disabled { opacity: .45; cursor: default; }
.record-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 15px; text-align: left; align-items: center; gap: 22px; width: 100%; padding: 16px 20px; background: #fff; border: 0; border-bottom: 1px solid #edf0f5; color: #213852; }
.record-row:hover { background: #f9fbff; }
.record-row:last-child { border-bottom: 0; }
.record-row span { min-width: 0; }
.record-row strong { display: block; font-size: 13px; }
.record-row small { display: block; margin-top: 4px; color: #8290a3; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-row span:nth-child(2) { text-align: right; }
.record-arrow { color: #8da3bc; font-size: 20px; }
.empty-module { display: flex; max-width: 670px; gap: 20px; padding: 45px 30px; align-items: flex-start; }
.empty-module strong { font-size: 17px; }
.empty-module p { line-height: 1.65; color: #66778d; font-size: 14px; }
.module-icon { display: grid; place-items: center; width: 50px; height: 50px; flex: none; color: #2c69b8; background: #e9f2ff; border-radius: 10px; font-size: 27px; }
.legend { display: flex; gap: 7px; align-items: center; color: #6d7c91; font-size: 12px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; margin-left: 5px; }
.income-key { background: #347ddf; }.expense-key { background: #df5a57; }
.project-chart { display: grid; gap: 20px; padding: 25px 24px 30px; }
.chart-row { display: grid; grid-template-columns: 175px minmax(0, 1fr) 120px; align-items: center; gap: 16px; font-size: 13px; }
.chart-row strong { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.bar-stack { display: grid; gap: 4px; }
.bar { height: 8px; border-radius: 3px; min-width: 1px; }.income-bar { background: #347ddf; }.expense-bar { background: #df5a57; }
.bottom-nav { display: none; }
dialog { width: min(650px, calc(100vw - 28px)); max-height: min(85dvh, 850px); padding: 0; border: 1px solid #dbe4ee; border-radius: 12px; box-shadow: 0 22px 65px rgba(21, 41, 70, .24); color: #1b304a; }
dialog::backdrop { background: rgba(18, 38, 65, .44); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5ebf2; padding: 15px 23px; }
.dialog-heading h2 { margin: 0; font-size: 19px; }.dialog-heading button { border: 0; background: transparent; font-size: 27px; color: #687c96; }
#detail-content { padding: 20px 23px 25px; overflow-y: auto; }
.detail-note { background: #fff7e6; color: #7b5919; padding: 11px 13px; border-radius: 6px; font-size: 12px; margin: 0 0 20px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin: 0 0 22px; }
.detail-grid dt { color: #8794a5; font-size: 11px; margin-bottom: 4px; }.detail-grid dd { margin: 0; font-size: 13px; font-weight: 650; }
#detail-content h3 { font-size: 15px; border-top: 1px solid #e5ebf2; padding-top: 18px; }
.detail-items > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf0f5; padding: 9px 0; font-size: 13px; }
.detail-items small { display: block; color: #8794a5; margin-top: 3px; }.detail-items strong { white-space: nowrap; }
@media (max-width: 1240px) { .filters { grid-template-columns: repeat(3, 1fr); }.search-label { grid-column: span 2; }.ghost-button { justify-self: start; } }
@media (max-width: 870px) { .app-shell { grid-template-columns: 64px minmax(0, 1fr); }.sidebar { padding-left: 6px; padding-right: 6px; }.brand { padding-left: 8px; }.brand > span:last-child, .sidebar-bottom { display: none; }.side-nav a { justify-content: center; padding: 0; font-size: 0; }.side-nav a span { font-size: 21px; }.topbar { padding: 0 20px; } main { padding: 22px 20px 40px; } .period { display: none; } }
@media (max-width: 640px) {
  .app-shell { display: block; }.sidebar { display: none; }.content-shell { padding-bottom: 66px; }
  .topbar { height: 72px; padding: 0 17px; }.topbar h1 { font-size: 18px; }.topbar .eyebrow { font-size: 9px; }.demo-badge { font-size: 9px; padding: 6px 8px; }
  main { padding: 21px 14px 32px; }.section-heading { display: block; margin-bottom: 15px; }.section-heading h2 { font-size: 21px; }.section-heading p { text-align: left; margin-top: 7px; font-size: 12px; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 13px; }.summary-card { padding: 14px; gap: 6px; }.summary-card strong { font-size: 18px; white-space: normal; }.summary-card small { font-size: 10px; }.summary-card.balance { grid-column: span 2; }.summary-card.balance strong { font-size: 22px; }
  .panel-heading { padding: 0 15px; }.filters { grid-template-columns: 1fr 1fr; gap: 10px; padding: 15px; }.search-label { grid-column: span 2; }.ghost-button { grid-column: span 2; width: 100%; }
  .table-scroll { display: none; }.analytics-table-panel .table-scroll { display: block; }.mobile-records { display: grid; }.mobile-record { display: grid; gap: 8px; padding: 14px 15px; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #e9eef5; color: #20344d; }.mobile-record:hover { background: #f9fbff; }.mobile-record-head, .mobile-record-bottom { display: flex; justify-content: space-between; gap: 9px; align-items: center; }.mobile-record-head strong { font-size: 13px; }.mobile-record-head b { font-size: 12px; white-space: nowrap; }.income-text { color: #2769c6; }.expense-text { color: #cb4949; }.mobile-record-meta { color: #8592a5; font-size: 10px; }.mobile-record-bottom { font-size: 11px; color: #64748b; }.mobile-record-bottom .status-pill { white-space: nowrap; }.mobile-empty { padding: 20px; font-size: 12px; color: #7c8a9d; }.table-footer { padding: 13px 15px; }
  .record-row { grid-template-columns: minmax(0, 1fr) auto 10px; gap: 9px; padding: 15px; }.record-row strong { font-size: 12px; }.record-row small { font-size: 10px; }
  .chart-row { grid-template-columns: 100px minmax(0, 1fr); gap: 8px; }.chart-row strong { grid-column: 2; text-align: left; }.project-chart { padding: 20px 15px; }
  .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #dfe6ee; box-shadow: 0 -5px 15px rgba(28, 51, 80, .05); }
  .bottom-nav a { display: grid; place-items: center; text-align: center; font-size: 10px; font-weight: 700; color: #66788f; padding: 0 3px; }.bottom-nav a[aria-current="page"] { color: #1d67c2; background: #f2f7ff; border-top: 2px solid #357ddf; }
  .detail-grid { gap: 14px; }.detail-items > div { font-size: 12px; }
}

/* CRM demo additions: searchable suppliers, monthly finance and explicit edit affordances. */
.filters { grid-template-columns: repeat(4, minmax(130px, 1fr)) minmax(180px, 1.3fr) auto; }
.filter-summary { padding: 10px 18px; border-bottom: 1px solid #e1e6e1; background: #f8faf8; color: #344e40; font-size: 12px; font-variant-numeric: tabular-nums; }
.vendor-field { position: relative; }
.vendor-field small { color: #7f8d83; font-weight: 400; }
.vendor-suggestions { position: absolute; top: 58px; left: 0; right: 0; z-index: 4; max-height: 190px; overflow-y: auto; background: #fff; border: 1px solid #aebcb2; box-shadow: 0 8px 20px #1e332619; }
.vendor-suggestions[hidden] { display: none; }
.vendor-suggestions button { display: block; width: 100%; min-height: 38px; padding: 8px 10px; border: 0; border-bottom: 1px solid #edf0ed; background: #fff; text-align: left; color: #253432; font-size: 12px; }
.vendor-suggestions button:hover, .vendor-suggestions button:focus { background: #eef3ee; }
.receipt-fields textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid #cdd8cf; border-radius: 4px; resize: vertical; color: #243630; font-size: 13px; }
.validation-error { color: #9f3634 !important; font-weight: 700; }
#save-demo-receipt { margin-top: 14px; }
#save-demo-receipt[hidden] { display: none; }
.analytics-filters { display: flex; align-items: end; gap: 16px; padding: 14px 18px; margin-bottom: 16px; border: 1px solid #d9dfdc; background: #fff; }
.analytics-filters fieldset { min-width: 220px; max-width: 270px; margin: 0; padding: 5px; border: 1px solid #cdd6ce; }
.analytics-filters legend { padding: 0 4px; color: #65716b; font-size: 11px; font-weight: 700; }
.analytics-object-list { display: grid; max-height: 150px; overflow-y: auto; }
.analytics-object-list label { display: flex; align-items: center; gap: 7px; min-height: 29px; padding: 2px 6px; color: #253432; font-size: 12px; cursor: pointer; }
.analytics-object-list label:hover { background: #f1f5f1; }
.analytics-filters p { margin: 0; color: #7a8580; font-size: 11px; }
.analytics-table-panel { margin-bottom: 16px; }
#cashflow-table { min-width: 1350px; }
#cashflow-table th:first-child, #cashflow-table td:first-child { position: sticky; left: 0; background: #fff; min-width: 225px; z-index: 1; }
#cashflow-table thead th:first-child { background: #f5f7f5; }
#cashflow-table .analytics-section th { position: static; background: #e9eeea; color: #33463d; padding: 10px 18px; text-align: left; }
#cashflow-table .analytics-total td, #cashflow-table .analytics-net td { background: #f0f4f0; font-weight: 700; }
#cashflow-table .analytics-net td { background: #dfe9e2; }
.detail-actions { display: flex; justify-content: flex-end; padding: 0 23px 20px; }
.attachment-placeholder { padding: 13px; background: #f4f6f3; border: 1px solid #e1e7e1; color: #69796e; font-size: 12px; line-height: 1.5; }
.row-menu { position: fixed; z-index: 30; width: 174px; padding: 5px; border: 1px solid #cbd6cd; background: #fff; box-shadow: 0 8px 20px #1e332628; }
.row-menu[hidden] { display: none; }
.row-menu button { display: block; width: 100%; border: 0; padding: 9px 10px; background: #fff; text-align: left; color: #23382e; font-size: 12px; }
.row-menu button:hover, .row-menu button:focus { background: #eef3ee; }
#edit-dialog { width: min(560px, calc(100vw - 20px)); overflow-y: auto; }
#edit-form { padding: 20px 23px 24px; }
@media (max-width: 1240px) { .filters { grid-template-columns: repeat(3, minmax(130px, 1fr)); } }
@media (max-width: 640px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .analytics-filters { display: block; }
  .analytics-filters fieldset { min-width: 0; max-width: none; width: 100%; }
  .analytics-filters p { margin-top: 8px; }
  #edit-form { padding: 15px; }
}

/* 2026 light edition — quiet editorial layout, built for dense financial data. */
:root { color: #142927; background: #fff; }
.app-shell { grid-template-columns: 236px minmax(0, 1fr); background: #fff; }
.sidebar { background: #fff; border-right-color: #e8ece9; padding: 30px 16px 22px; }
.brand { gap: 12px; color: #133e37; padding: 0 10px 42px; }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.brand strong { font-size: 16px; font-weight: 850; letter-spacing: .015em; }
.brand small { letter-spacing: .24em; color: #718a80; }
.side-nav { gap: 3px; }
.side-nav a { border-radius: 11px; min-height: 46px; font-weight: 650; color: #687a74; }
.side-nav a span { color: #7e9a8f; }
.side-nav a:hover, .side-nav a[aria-current="page"] { color: #125842; background: #eaf4ef; }
.side-nav a[aria-current="page"] span { color: #16805e; }
.sidebar-bottom { border-top-color: #e8ece9; color: #214138; }
.demo-dot { background: #2da27d; }
.content-shell { background: #fff; }
.topbar { height: 90px; border-bottom-color: #edf0ed; padding: 0 38px; }
.topbar h1 { font-size: 21px; color: #15342e; }
.eyebrow { color: #729287; letter-spacing: .15em; }
.period { color: #6b8179; }
.demo-badge { background: #eaf6ed; color: #29744a; border-color: #d5ecdb; letter-spacing: .06em; }
.account-button { width: 37px; height: 37px; border-radius: 50%; border: 1px solid #cfdfd7; background: #f4faf6; color: #17513d; font-size: 12px; font-weight: 850; }
.account-button:hover { background: #dff1e8; }
main { max-width: 1580px; padding: 29px 38px 60px; }
.welcome-strip { position: relative; overflow: hidden; display: grid; align-content: center; gap: 8px; min-height: 156px; margin-bottom: 29px; padding: 25px 30px; border-radius: 16px; background: #123d35; color: #fff; }
.welcome-kicker { color: #a5dcc5; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.welcome-strip strong { font-size: clamp(23px, 2.5vw, 33px); line-height: 1.1; letter-spacing: -.04em; }
.welcome-strip p { margin: 0; color: #c6ded4; font-size: 13px; }
.welcome-decoration { position: absolute; right: 50px; top: -102px; font-size: 320px; font-weight: 900; line-height: 1; color: rgba(255,255,255,.06); transform: rotate(-11deg); pointer-events: none; }
.section-heading h2 { color: #173a30; font-size: 25px; }
.section-heading p { color: #7c8f86; }
.summary-grid, .section-metrics { gap: 13px; }
.section-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
.summary-card, .metric-card, .panel { border: 1px solid #e1eae4; border-radius: 13px; box-shadow: none; }
.summary-card, .metric-card { display: grid; gap: 8px; padding: 21px 23px; background: #fff; position: relative; overflow: hidden; }
.summary-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #cbdcd2; }
.summary-card.income::before { background: #3b8de2; }.summary-card.expense::before { background: #e86a61; }.summary-card.balance::before { background: #21745b; }
.summary-card span, .metric-card span { color: #738a7d; font-size: 12px; font-weight: 700; }
.summary-card strong, .metric-card strong { color: #153c31; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.summary-card small, .metric-card small { color: #9aaba0; font-size: 11px; }
.summary-card.income strong { color: #327bcc; }.summary-card.expense strong { color: #d95d55; }.summary-card.balance strong { color: #163b30; }
.panel-heading { border-bottom-color: #e8eee9; min-height: 64px; }.panel-heading h3 { color: #173a30; }
.filters { background: #fbfdfb; border-bottom: 1px solid #edf2ee; }
.filters label { color: #738a7d; }.filters select, .filters input { border-color: #d7e5dc; border-radius: 8px; color: #23483c; background: #fff; }
.filters select:focus, .filters input:focus { border-color: #299c70; box-shadow: 0 0 0 3px #e0f2e8; }
.ghost-button { color: #1a6b4e; border-color: #c4e2d2; border-radius: 8px; }.ghost-button:hover { background: #eaf6ef; }
thead { background: #f7faf7; color: #647e70; } th { border-color: #e6ede7; } td { color: #3c584d; border-color: #edf2ee; } tbody tr:hover { background: #f6fbf8; }
.id-cell, .detail-button { color: #1a8060; }.amount-cell { color: #173c31; }
.type-income { background: #eaf3ff; color: #2d73bc; }.type-expense { background: #fff0ee; color: #d45550; }
.status-pill.success { background: #e8f5ed; color: #257349; }.status-pill.warning { background: #fff3df; color: #9b6b1e; }.status-pill.danger { background: #fce7e8; color: #9e3e40; }
.pager button { color: #1c7456; border-color: #d0e1d5; border-radius: 8px; }
.record-row { border-bottom-color: #ebf0eb; color: #214339; }.record-row:hover { background: #f6fbf7; }.record-arrow { color: #74a58c; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px; }
.tool-card { display: grid; gap: 7px; text-align: left; padding: 19px; border: 1px solid #e2ece5; border-radius: 12px; background: #fff; color: #214339; }
.tool-card:hover { border-color: #a9d9bd; background: #fcfefc; transform: translateY(-1px); }
.tool-card-top, .tool-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.tool-card-top { margin-bottom: 4px; }
.tool-glyph { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #197656; background: #e7f4eb; font-size: 25px; }
.tool-card strong { font-size: 15px; }.tool-card small { color: #8ca093; font-size: 11px; }.tool-card-bottom { margin-top: 10px; padding-top: 12px; border-top: 1px solid #e9f0e9; color: #5b806d; font-size: 12px; font-weight: 700; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr); gap: 15px; align-items: start; }
.project-chart { gap: 21px; }.chart-row { grid-template-columns: 135px minmax(0, 1fr) 110px; }.income-bar { background: #428dde; }.expense-bar { background: #e56a5e; }.income-key { background: #428dde; }.expense-key { background: #e56a5e; }
.category-chart { padding: 13px 20px; }.category-row { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid #edf2ee; font-size: 12px; }.category-row:last-child { border-bottom: 0; }.category-row span { color: #5f7b6b; }.category-row strong { color: #26493b; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
dialog { border-color: #d8e9dd; border-radius: 17px; color: #1e3c31; }dialog::backdrop { background: rgba(13, 36, 29, .4); }.dialog-heading { border-bottom-color: #e4eee6; }
.detail-note { background: #fff8e8; color: #805d21; }.detail-grid dt { color: #819789; }.detail-items > div { border-bottom-color: #e8eee9; }
.access-preview { padding: 27px 29px 30px; }.access-preview h3 { font-size: 22px; margin: 14px 0 9px; letter-spacing: -.03em; }.access-preview > p:not(.detail-note) { line-height: 1.55; color: #667d6c; font-size: 14px; }.access-shield { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: #fff; background: #216348; font-size: 25px; }.access-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 21px 0; }.access-steps span { background: #f3f8f3; border-radius: 8px; padding: 11px; color: #385b46; font-size: 11px; font-weight: 700; }.access-steps b { display: block; color: #1a8359; font-size: 10px; letter-spacing: .12em; margin-bottom: 5px; }
@media (max-width: 1180px) { .analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 870px) { .app-shell { grid-template-columns: 67px minmax(0, 1fr); }.sidebar { padding-left: 8px; padding-right: 8px; }.brand { padding: 0 5px 36px; }.topbar { padding: 0 22px; } main { padding: 22px 22px 40px; } }
@media (max-width: 640px) {
  .app-shell { display: block; }.sidebar { display: none; }.topbar { padding: 0 15px; }.topbar-actions { gap: 8px; }.account-button { width: 34px; height: 34px; font-size: 10px; } main { padding: 17px 14px 32px; }
  .welcome-strip { min-height: 142px; margin-bottom: 22px; padding: 20px; }.welcome-strip strong { font-size: 23px; }.welcome-strip p { max-width: 225px; font-size: 11px; }.welcome-decoration { right: 2px; top: -18px; font-size: 200px; }
  .summary-grid, .section-metrics { gap: 8px; }.section-metrics { grid-template-columns: 1fr 1fr; }.metric-card { padding: 13px; }.metric-card:last-child { grid-column: span 2; }.metric-card strong { font-size: 18px; }.summary-card strong { font-size: 18px; }.summary-card.balance strong { font-size: 22px; }
  .tool-grid { grid-template-columns: 1fr; padding: 13px; }.project-chart { padding: 20px 15px; }.chart-row { grid-template-columns: 100px minmax(0, 1fr); }.category-chart { padding: 13px 15px; }
  .bottom-nav { border-top-color: #e0ebe2; box-shadow: 0 -5px 15px rgba(19, 60, 39, .05); }.bottom-nav a { color: #71877a; }.bottom-nav a[aria-current="page"] { color: #176b4c; background: #edf7f0; border-top-color: #238a61; }
  .access-preview { padding: 20px; }.access-steps { grid-template-columns: 1fr; }.access-steps span { display: flex; gap: 8px; }.access-steps b { margin: 0; }
}

/* CRM study — dense financial work surface; no decorative dashboard treatment. */
:root { font-family: "Segoe UI", Arial, sans-serif; color: #222b2d; background: #f5f6f4; }
.app-shell { grid-template-columns: 212px minmax(0, 1fr); background: #f5f6f4; }
.sidebar { padding: 24px 11px 18px; background: #202b2d; border-right: 0; }
.brand { color: #f7f8f5; padding: 0 12px 34px; }
.brand-logo { width: 34px; height: 34px; border-radius: 4px; }
.brand strong { font-size: 14px; letter-spacing: .09em; }
.brand small { color: #9badab; font-size: 9px; letter-spacing: .14em; }
.side-nav { gap: 2px; }
.side-nav a { color: #b7c5c2; border-radius: 5px; font-size: 13px; font-weight: 550; min-height: 42px; gap: 11px; }
.side-nav a svg, .receipt-entry svg, .file-drop svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-nav a:hover, .side-nav a[aria-current="page"] { color: #fff; background: #364446; }
.side-nav a[hidden] { display: none !important; }
.side-nav a[aria-current="page"] { box-shadow: inset 3px 0 #b8cebd; }
.sidebar-bottom { border-top-color: #3d494a; color: #edf2eb; }
.sidebar-bottom small { color: #9eafaa; }
.demo-dot { background: #b5c9bb; }
.content-shell { background: #f5f6f4; }
.topbar { height: 74px; padding: 0 32px; background: #fff; border-bottom: 1px solid #d9dfdc; }
.topbar h1 { font-size: 19px; letter-spacing: -.02em; color: #222b2d; }
.eyebrow { color: #74817b; font-size: 10px; letter-spacing: .1em; }
.year-control { display: flex; align-items: center; gap: 8px; color: #68746d; font-size: 12px; font-weight: 650; }
.year-control select { min-width: 82px; height: 32px; padding: 0 8px; color: #293432; border: 1px solid #cbd4cd; border-radius: 4px; background: #fff; font-variant-numeric: tabular-nums; }
.demo-badge { background: #f4f5ef; color: #6d7257; border-color: #e2e5d7; border-radius: 4px; font-size: 10px; }
.stress-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid #e6c37f; border-radius: 4px; background: #fff8e6; color: #8b6417; font-size: 9px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.account-button { background: #e9eeeb; color: #34453e; border: 0; border-radius: 5px; }
main { max-width: none; padding: 30px 32px 65px; }
.section-heading { align-items: end; margin-bottom: 20px; }
.section-heading h2 { color: #1c2628; font-size: 27px; font-weight: 650; letter-spacing: -.04em; }
.section-heading p { color: #7a8580; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid #d9dfdc; margin-bottom: 16px; }
.summary-card { min-height: 105px; padding: 17px 22px; border: 0; border-right: 1px solid #e1e5e1; border-radius: 0; box-shadow: none; gap: 5px; }
.summary-card:last-child { border-right: 0; }
.summary-card::before { display: none; }
.summary-card span { color: #68746f; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.summary-card strong { color: #1e2b2c; font-size: clamp(21px, 2.1vw, 29px); font-weight: 650; letter-spacing: -.035em; }
.summary-card small { color: #94a09a; font-size: 10px; }
.summary-card.income strong { color: #35649c; }
.summary-card.expense strong { color: #b34d42; }
.summary-card.balance strong { color: #253b37; }
.panel { border-radius: 0; border: 1px solid #d9dfdc; box-shadow: none; }
.panel-heading { min-height: 61px; padding: 10px 18px; border-bottom: 1px solid #e1e6e1; }
.panel-heading h3 { font-size: 14px; color: #253331; font-weight: 650; }
.table-hint { display: block; margin-top: 4px; font-size: 11px; color: #8a968e; }
.filters { background: #fff; border-bottom: 1px solid #e1e6e1; padding: 14px 18px 16px; gap: 10px; }
.filters label { font-size: 11px; color: #66736d; }
.filters select, .filters input { height: 36px; border: 1px solid #cdd6ce; border-radius: 4px; color: #253432; font-size: 12px; }
.filters select:focus, .filters input:focus { border-color: #596f63; box-shadow: 0 0 0 2px #e4eae5; }
.ghost-button { border-radius: 4px; color: #344e40; border-color: #cdd6ce; font-weight: 600; }
.ghost-button:hover { background: #f4f7f3; }
table { font-size: 12px; }
thead { background: #f5f7f5; color: #65716b; }
th { border-color: #e3e7e3; font-size: 10px; text-transform: uppercase; letter-spacing: .045em; padding-top: 10px; padding-bottom: 10px; }
td { padding-top: 13px; padding-bottom: 13px; border-color: #e8ebe7; color: #34403d; }
tbody tr:hover { background: #f7f9f6; }
.id-cell, .detail-button { color: #345a53; }
.amount-cell { color: #1d2c2b; cursor: cell; user-select: none; -webkit-user-select: none; font-weight: 700; }
.overview-spacer td { padding: 0 !important; border: 0; line-height: 0; }
#overview-rows tr[data-row-id] { height: 54px; }
.overview-mobile-spacer { min-height: 0; pointer-events: none; }
@media (max-width: 640px) {
  #mobile-records .mobile-record { height: 111px; overflow: hidden; }
  #mobile-records .mobile-record-head strong, #mobile-records .mobile-record-bottom > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.amount-cell.is-selected { background: #dcebe4; color: #173b32; box-shadow: inset 0 0 0 1px #7ca48d; }
.amount-cell:focus-visible { outline: 2px solid #426e56; outline-offset: -2px; }
.type-pill, .status-pill { border-radius: 3px; font-size: 10px; padding: 4px 6px; }
.type-income { background: #e9f0f8; color: #35649c; }
.type-expense { background: #fbefec; color: #b34d42; }
.status-pill.success { background: #e8f0e9; color: #346b48; }
.status-pill.warning { background: #fbf0d9; color: #90640f; }
.status-pill.danger { background: #f8e8e7; color: #9f3634; }
.table-footer { min-height: 53px; gap: 12px; }
.selection-summary { display: flex; align-items: center; gap: 11px; margin-left: auto; color: #436153; font-size: 12px; }
.selection-summary[hidden] { display: none; }
.selection-summary strong { color: #1b4230; font-size: 15px; font-variant-numeric: tabular-nums; }
.module-tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid #d9dfdc; }
.module-tab { border: 0; border-bottom: 2px solid transparent; background: transparent; color: #65736b; padding: 10px 16px; font-size: 12px; font-weight: 700; cursor: pointer; }
.module-tab.is-active { color: #254439; border-bottom-color: #254439; }
.doklady-tab-panel[hidden] { display: none; }
.side-subnav { display: grid; gap: 2px; margin: -2px 0 7px; padding: 0 0 3px 39px; border-left: 1px solid #3d494a; }
.side-subnav[hidden] { display: none; }
.side-subnav a { min-height: 28px; padding: 0 10px; border-radius: 4px; color: #9eafaa; font-size: 11px; line-height: 28px; }
.side-subnav a:hover, .side-subnav a[aria-current="page"] { color: #fff; background: #2f3e40; }
.analytics-cell { cursor: cell; user-select: none; -webkit-user-select: none; }
.analytics-cell:hover { background: #f0f6f1; }
.analytics-cell.is-selected { background: #dcebe4 !important; box-shadow: inset 0 1px 0 #7ca48d, inset 0 -1px 0 #7ca48d; }
.analytics-selection-summary { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 11px 18px; color: #436153; font-size: 12px; }
.analytics-selection-summary[hidden] { display: none; }
.analytics-selection-summary strong { color: #1b4230; font-size: 15px; font-variant-numeric: tabular-nums; }
.analytics-floating-summary { position: fixed; z-index: 20; display: flex; align-items: center; gap: 9px; max-width: min(360px, calc(100vw - 24px)); padding: 8px 11px; border: 1px solid #547966; border-radius: 5px; background: rgba(31, 51, 45, .97); color: #eaf4ed; box-shadow: 0 8px 22px rgba(25, 42, 34, .22); font-size: 11px; line-height: 1.2; white-space: nowrap; pointer-events: none; transform: translate(0, 0); }
.analytics-floating-summary[hidden] { display: none; }
.analytics-floating-summary strong { color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (min-width: 641px) { .module-tabs { display: none; } }
.analytics-tabs { margin-top: 6px; }
.analytics-tab-panel[hidden] { display: none; }
.analytics-filters { display: block; }
.object-filter-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.object-filter-heading strong { color: #33463d; font-size: 12px; }
.object-filter-heading span { color: #88958d; font-size: 11px; }
.analytics-object-list { display: flex; flex-wrap: wrap; gap: 8px; }
.object-filter-button { min-height: 34px; padding: 0 14px; border: 1px solid #cbd8cf; border-radius: 5px; background: #fff; color: #4e6759; font-size: 12px; font-weight: 650; cursor: pointer; }
.object-filter-button:hover { background: #f3f8f4; }
.object-filter-button.is-active { border-color: #2e7053; background: #2e7053; color: #fff; }
.project-chart { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 26px 20px 22px; }
.object-chart-card { flex: 1 1 145px; min-width: 130px; padding: 12px 9px 9px; border: 1px solid #e2e9e3; background: #fcfdfc; text-align: center; }
.object-chart-card h4 { min-height: 32px; margin: 0 0 9px; color: #385046; font-size: 12px; font-weight: 700; }
.object-bars { display: flex; align-items: end; justify-content: center; gap: 12px; height: 188px; border-bottom: 1px solid #cfd9d1; }
.object-bar-column { display: flex; flex-direction: column; align-items: center; justify-content: end; height: 100%; gap: 4px; }
.object-bar-column strong { max-width: 115px; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.object-bar { width: 32px; min-height: 3px; border-radius: 3px 3px 0 0; }
.object-bar-column small { color: #74827a; font-size: 10px; }
.object-chart-card p { margin: 9px 0 0; color: #7a8980; font-size: 10px; }.object-chart-card p b { color: #2d4f3e; }
.monthly-chart { display: flex; align-items: end; gap: 8px; min-height: 245px; overflow-x: auto; padding: 22px 20px 18px; border-bottom: 1px solid #dce4dd; }
.month-column { flex: 1 0 58px; min-width: 58px; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 5px; }
.month-bars { display: flex; align-items: end; gap: 3px; height: 150px; padding-top: 4px; border-bottom: 1px solid #bdc9c0; }
.month-bar { width: 20px; min-height: 2px; border-radius: 3px 3px 0 0; }.month-column > span { color: #5f7166; font-size: 10px; font-weight: 700; }.month-column > small { color: #819087; font-size: 9px; white-space: nowrap; }
.sidebar-toggle { position: absolute; top: 12px; right: -13px; z-index: 3; width: 26px; height: 26px; border: 1px solid #496057; border-radius: 50%; background: #263638; color: #dbe8de; font-size: 18px; line-height: 1; cursor: pointer; }
.sidebar-collapsed .app-shell { grid-template-columns: 64px minmax(0, 1fr); }
.sidebar-collapsed .sidebar { padding-left: 8px; padding-right: 8px; }.sidebar-collapsed .brand > span:last-child, .sidebar-collapsed .sidebar-bottom { display: none; }.sidebar-collapsed .side-nav a { justify-content: center; padding: 0; font-size: 0; }.sidebar-collapsed .side-nav a svg { width: 21px; height: 21px; }.sidebar-collapsed .sidebar-toggle { right: -13px; }
.control-panel { padding-bottom: 18px; }
.control-list { display: grid; gap: 8px; margin: 0 18px; }
.control-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid #e1e8e2; background: #fafcf9; font-size: 12px; }
.control-row span { color: #718078; text-align: right; }
.pager button { border-radius: 4px; color: #465c4d; }
.receipt-entry { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid #d9dfdc; background: #fff; margin-bottom: 16px; }
.receipt-entry h3 { margin: 5px 0 5px; font-size: 17px; font-weight: 650; }
.receipt-entry p { margin: 0; color: #78857d; font-size: 12px; line-height: 1.45; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 0 15px; border: 1px solid #254439; border-radius: 4px; background: #254439; color: #fff; font-size: 12px; font-weight: 650; white-space: nowrap; }
.primary-button:hover { background: #355c48; }
.secondary-button { color: #274438; background: #fff; border-color: #cbd7cd; }
.secondary-button:disabled { color: #acb5ae; border-color: #e1e6e0; cursor: default; }
#receipt-dialog { width: min(560px, calc(100vw - 20px)); max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 7px; color: #24332f; }
#receipt-dialog .dialog-heading { position: sticky; top: 0; z-index: 1; background: #fff; }
.receipt-flow { padding: 20px 23px 25px; }
.file-drop { display: grid; justify-items: center; gap: 8px; padding: 25px 16px; border: 1px dashed #aabbb0; border-radius: 5px; text-align: center; cursor: pointer; }
.file-drop svg { width: 28px; height: 28px; color: #456b53; }
.file-drop strong { font-size: 14px; }
.file-drop small { color: #7c8a80; font-size: 11px; }
.receipt-file-name { min-height: 17px; margin: 11px 0 15px; color: #69796e; font-size: 12px; overflow-wrap: anywhere; }
.receipt-flow-actions { display: flex; gap: 9px; flex-wrap: wrap; }
#receipt-manual-form { margin-top: 22px; padding-top: 19px; border-top: 1px solid #e0e6de; }
#receipt-manual-form[hidden], .receipt-review[hidden] { display: none; }
.receipt-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 18px; }
.receipt-fields label { display: grid; gap: 5px; color: #52645a; font-size: 11px; font-weight: 650; }
.receipt-fields label.wide { grid-column: span 2; }
.receipt-fields input, .receipt-fields select { width: 100%; min-width: 0; height: 39px; padding: 0 10px; border: 1px solid #cdd8cf; border-radius: 4px; background: #fff; color: #243630; font-size: 13px; }
.receipt-review { margin-top: 20px; padding: 16px; border: 1px solid #cbded0; background: #f5f9f5; font-size: 12px; }
.receipt-review > strong { display: block; margin-bottom: 10px; font-size: 14px; }
.receipt-review dl { margin: 0; }
.receipt-review dl div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #e1eae1; }
.receipt-review dt { color: #66796b; }.receipt-review dd { margin: 0; font-weight: 650; text-align: right; }
.receipt-review p { margin: 13px 0 0; line-height: 1.45; color: #65776a; }
@media (max-width: 870px) { .app-shell { grid-template-columns: 65px minmax(0, 1fr); } .side-nav a { font-size: 0; justify-content: center; padding: 0; } .side-nav a svg { width: 21px; height: 21px; } .topbar { padding: 0 20px; } main { padding: 24px 20px 50px; } }
@media (max-width: 640px) {
  .app-shell { display: block; }.sidebar { display: none; }.content-shell { padding-bottom: 66px; }
  .topbar { height: 66px; padding: 0 15px; }.topbar h1 { font-size: 17px; }.topbar .eyebrow { font-size: 8px; }.topbar-actions { gap: 7px; }.year-control { font-size: 0; }.year-control select { min-width: 67px; height: 31px; font-size: 11px; }.demo-badge, .stress-badge { font-size: 9px; padding: 6px; }.account-button { width: 31px; height: 31px; }
  main { padding: 20px 13px 35px; }.section-heading h2 { font-size: 23px; }.section-heading p { margin-top: 5px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }.summary-card { min-height: 89px; padding: 12px; }.summary-card strong { font-size: 17px; }.summary-card.balance { grid-column: span 2; min-height: 75px; border-top: 1px solid #e1e5e1; border-right: 0; }.summary-card.balance strong { font-size: 21px; }
  .panel-heading { padding: 11px 13px; }.table-hint { display: none; }.filters { padding: 12px 13px; }.filters label { font-size: 10px; }.filters select, .filters input { font-size: 11px; }
  .mobile-record { border-bottom-color: #e5e9e4; }.mobile-record:hover { background: #f7f9f6; }.mobile-record-head strong { font-size: 13px; }.mobile-record-meta { font-size: 10px; }
  .receipt-entry { display: grid; padding: 16px; }.receipt-entry .primary-button { width: 100%; min-height: 46px; }.receipt-entry p { line-height: 1.5; }
  .receipt-flow { padding: 15px; }.file-drop { padding: 23px 13px; min-height: 130px; }.receipt-flow-actions > button { flex: 1; min-height: 43px; }
  .bottom-nav { grid-template-columns: repeat(3, 1fr); border-top-color: #d7dfd7; box-shadow: none; }.bottom-nav a { color: #65766b; font-size: 11px; }.bottom-nav a[aria-current="page"] { background: #eef3ee; color: #274e39; border-top-color: #416f51; }
  .sidebar-toggle { display: none; }.analytics-object-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }.object-filter-button { width: 100%; padding: 0 7px; }.project-chart { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 15px; }.object-chart-card { min-width: 0; }.object-bar-column strong { font-size: 9px; }.object-bar { width: 24px; }
  .analytics-floating-summary { left: 10px !important; right: 10px; top: auto !important; bottom: 76px; justify-content: center; max-width: none; transform: none; }
}
