:root {
  --ink: #1c2942;
  --muted: #728097;
  --blue: #5069ed;
  --green: #5069ed;
  --accent: #e9edff;
  --paper: #f5f7fb;
  --line: #e9edf4;
  --white: #fff;
  --navy: #141e34;
  --shadow: 0 3px 18px #1b315407;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Avenir Next', Avenir, 'Segoe UI', sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; border: 0; background: none; cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid #92a3ff; outline-offset: 3px; }
button, a, input, select { transition: background-color .16s, border-color .16s, box-shadow .16s; }
input, select { min-width: 0; border: 1px solid #dce2ed; border-radius: 9px; background: white; color: var(--ink); padding: 12px 13px; }
input::placeholder { color: #8793a7; }
input:hover, select:hover { border-color: #bcc7db; }
select { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 16px; font-weight: 650; letter-spacing: -.4px; }
h3 { font-weight: 600; }
p { line-height: 1.65; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; background: var(--navy); color: #c0c9dc; padding: 35px 18px 20px; display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; font-size: 36px; font-weight: 700; letter-spacing: -1.8px; color: #fff; margin: 0 15px 37px; }
.brand-dot { color: #aab9ff; }
.brand-icon { width: 33px; height: 35px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; margin-right: 11px; transform: rotate(-12deg); }
.brand-icon i { display: block; width: 28px; height: 7px; background: #99adff; border-radius: 3px; }
.brand-icon i:nth-child(2) { width: 21px; background: #c8d3ff; }
.brand-icon i:last-child { width: 28px; background: #edf0ff; }
.company-switch { display: flex; align-items: center; padding: 13px 10px; border: 1px solid #344058; border-radius: 11px; gap: 10px; background: #202b42; }
.company-monogram { display: grid; place-items: center; width: 34px; height: 36px; flex-shrink: 0; background: #fff1dc; color: #976b35; border-radius: 8px; font-family: Georgia, serif; font-size: 21px; }
.company-switch > div { min-width: 0; flex: 1; }
.company-switch label { font-size: 10px; color: #a9b5cf; display: block; margin-left: 2px; }
.company-switch select { width: 100%; background: transparent; border: 0; border-radius: 4px; color: white; font-size: 12px; font-weight: 550; padding: 4px 0 0; text-overflow: ellipsis; }
.company-switch select option { background: var(--navy); color: white; }
.new-company { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: #a5b5d0; padding: 15px 4px 29px; }
.new-company:hover { color: white; }
.new-company .icon { width: 14px; height: 14px; }
.workspace-label { color: #7f90af; font-size: 9px; font-weight: 650; letter-spacing: 1.8px; padding: 0 16px; margin-bottom: 13px; }
nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-radius: 9px; color: #aab8d2; font-size: 13px; font-weight: 500; min-height: 46px; }
.nav-item:hover { background: #212e47; color: white; }
.nav-item.active { color: white; background: #526bed; box-shadow: 0 5px 15px #060e2129; }
.nav-item .icon { width: 19px; height: 19px; }
.nav-item small { margin-left: auto; background: #2e3c56; color: #c0cdea; border-radius: 5px; padding: 2px 6px; font-size: 10px; }
.nav-item.active small { background: #ffffff29; color: white; }
.nav-item:last-child { margin-top: 16px; border-top: 1px solid #ffffff10; border-radius: 0 0 9px 9px; padding-top: 18px; }
.local-card { position: relative; overflow: hidden; margin: auto 7px 22px; padding: 22px 17px 16px; border: 1px solid #34445b; border-radius: 12px; background: #1d2b43; }
.local-card::after { content: ''; position: absolute; right: -28px; top: -25px; width: 110px; height: 110px; border: 1px solid #6576a228; border-radius: 50%; box-shadow: 0 0 0 17px #6576a20b, 0 0 0 34px #6576a209; pointer-events: none; }
.local-shield { display: block; color: #a9b8ff; margin-bottom: 14px; }
.local-card strong { display: block; color: #e1e8f6; font-size: 14px; line-height: 1.5; letter-spacing: -.2px; font-weight: 550; }
.local-card p { font-size: 10px; line-height: 1.8; color: #93a5c6; margin: 10px 0 15px; }
.local-card button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 0 0; border-top: 1px solid #35425b; font-size: 10px; color: #d2dcf6; }
.local-card button .icon { width: 14px; height: 14px; }
.live-dot { height: 6px; width: 6px; display: inline-block; background: #45a38e; border-radius: 50%; flex-shrink: 0; }
.sidebar-bottom { padding: 14px 8px 0; border-top: 1px solid #2c3950; display: flex; gap: 10px; align-items: center; }
.avatar { display: grid; place-content: center; background: #2e3b52; color: #c7d4ed; border: 1px solid #42516a; border-radius: 50%; width: 34px; height: 34px; font-size: 10px; font-weight: 650; }
.sidebar-bottom strong { font-size: 11px; font-weight: 500; color: #dfe6f3; display: block; }
.sidebar-bottom div > span { font-size: 10px; color: #96a6c3; display: block; margin-top: 3px; }
.sidebar-bottom .live-dot { margin-left: auto; }
main { margin-left: 248px; min-height: 100vh; }
.topbar { height: 73px; border-bottom: 1px solid var(--line); padding: 0 38px; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.breadcrumb { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #8c98af; }
.breadcrumb .icon { width: 16px; height: 16px; }
.breadcrumb strong { color: #53617c; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 21px; }
.local-pill { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #6b7991; }
.year-pill { border-left: 1px solid var(--line); padding-left: 20px; font-size: 12px; font-weight: 600; color: #576780; }
.page { max-width: 1550px; margin: auto; padding: 28px 38px 0; }
.demo-banner { display: flex; align-items: center; gap: 10px; background: #eaf0fe; color: #576991; padding: 9px 13px; border: 1px solid #e0e8fa; border-radius: 8px; font-size: 11px; margin-bottom: 30px; }
.demo-tag { color: #4d63b3; border: 1px solid #c6d2f6; background: #f6f8ff; font-size: 8px; font-weight: 700; letter-spacing: .7px; border-radius: 4px; padding: 3px 5px; }
.demo-banner button { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: #4c61ba; margin-left: auto; }
.demo-banner .icon { width: 14px; height: 14px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 26px; }
.eyebrow { font-size: 9px; color: #7b89a5; font-weight: 650; letter-spacing: 1.7px; margin-bottom: 10px; }
h1 { font-size: clamp(29px, 2.4vw, 38px); font-weight: 600; letter-spacing: -1.6px; line-height: 1.18; }
.page-heading p { color: #77849c; font-size: 12px; margin-top: 10px; }
.heading-separator { color: #b7c0d3; padding: 0 6px; }
.heading-actions { display: flex; gap: 9px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 12px 16px; font-size: 11px; font-weight: 600; white-space: nowrap; line-height: 1.5; border: 1px solid transparent; min-height: 42px; }
.button .icon { width: 16px; height: 16px; }
.primary { background: var(--blue); color: white; box-shadow: 0 3px 7px #5069ed20, inset 0 1px #ffffff18; border-color: #4a61e2; }
.primary:hover { background: #425bd9; box-shadow: 0 4px 12px #5069ed32; }
.secondary { background: #fff; border-color: #dfe5ef; color: #536079; box-shadow: 0 2px 3px #192d4e03; }
.secondary:hover { background: #f7f9ff; border-color: #bac7e6; }
.ghost { color: #69788e; }
.small { padding: 7px 11px; font-size: 10px; min-height: 32px; }
.period { display: flex; align-items: center; gap: 15px; margin-bottom: 21px; color: #6f7e96; font-size: 11px; }
.period-title { display: flex; align-items: center; gap: 7px; }
.period .icon { width: 15px; height: 15px; }
.date-range { display: flex; align-items: center; gap: 6px; background: white; border: 1px solid #e1e6f0; border-radius: 7px; padding: 2px 7px; }
.date-range input { font-size: 10px; padding: 5px 3px; background: transparent; border: 0; max-width: 126px; color: #62728d; }
.period-dash { color: #a0acc1; }
.period-caption { margin-left: auto; font-size: 10px; color: #8b96aa; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; margin-bottom: 23px; }
.metric { position: relative; overflow: hidden; padding: 23px 23px 0; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.metric-top { display: flex; align-items: center; gap: 10px; color: #67758d; font-size: 12px; position: relative; z-index: 1; }
.metric-icon { display: inline-grid; place-items: center; height: 33px; width: 33px; border-radius: 9px; flex-shrink: 0; }
.metric-icon .icon { width: 17px; height: 17px; }
.metric-icon.blue { background: #edf0ff; color: #6179eb; }
.metric-icon.blue .icon { transform: rotate(-45deg); }
.metric-icon.peach { background: #fff2e8; color: #cd915f; }
.metric-label { font-size: 8px; color: #9da9bd; letter-spacing: .8px; margin-left: auto; }
.metric > strong { position: relative; z-index: 1; font-size: clamp(26px, 2.55vw, 39px); font-weight: 550; letter-spacing: -1.5px; display: block; padding: 21px 0 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-bottom { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; min-height: 43px; border-top: 1px solid #edf0f5; color: #8692a6; font-size: 9px; }
.metric-bottom small { font-size: 9px; }
.metric-bottom > span:last-child:not(.metric-dot) { margin-left: auto; color: #9ca6b8; }
.metric-dot { width: 5px; height: 5px; border-radius: 50%; }
.metric-dot.blue { background: #6f83ef; }
.metric-dot.peach { background: #e8ab79; }
.metric.featured { background: #526bea; border-color: #526bea; color: white; box-shadow: 0 5px 18px #5069ed20; }
.featured .metric-top { color: #edf1ff; }
.featured .metric-icon { color: white; border: 1px solid #ffffff35; background: #ffffff14; }
.featured .metric-top > .icon { width: 16px; margin-left: auto; transform: rotate(-45deg); color: #e4eaff; }
.featured .metric-bottom { color: #e0e7ff; border-color: #ffffff25; }
.featured .metric-bottom .icon { width: 12px; height: 12px; }
.orb { position: absolute; width: 210px; height: 210px; border-radius: 50%; border: 1px solid #ffffff17; pointer-events: none; }
.orb-one { right: -81px; top: 29px; box-shadow: 0 0 0 23px #ffffff07, 0 0 0 47px #ffffff05; }
.orb-two { right: -15px; top: -121px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 23px; min-width: 0; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 23px 24px; }
.panel-header p { font-size: 11px; color: #8a95a9; margin-top: 6px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(280px, 1fr); gap: 22px; }
.chart-panel { display: flex; flex-direction: column; }
.chart-panel .panel-header { padding-bottom: 14px; }
.legend { display: flex; align-items: center; gap: 13px; font-size: 10px; color: #8490a7; white-space: nowrap; }
.legend > span { display: flex; gap: 6px; align-items: center; }
.revenue-dot, .cost-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: #526bf0; }
.cost-dot { background: #b9c6fa; }
.chart { width: 100%; display: block; padding: 2px 18px 0 12px; margin: auto 0; }
.chart text { font-size: 10px; fill: #8794ae; font-family: inherit; }
.chart-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); margin-top: 8px; padding: 15px 24px; font-size: 9px; color: #8a96ac; }
.chart-footer > span { display: flex; align-items: center; gap: 7px; }
.chart-footer .live-dot { width: 5px; height: 5px; background: #a3b3dd; }
.chart-footer .text-button { font-size: 10px; }
.count { display: grid; place-items: center; min-width: 26px; height: 27px; border-radius: 7px; background: #fff4e5; color: #af792d; border: 1px solid #ffedd2; font-size: 11px; font-weight: 600; }
.todo { display: flex; flex-direction: column; }
.todo .panel-header { padding-bottom: 21px; }
.task { display: flex; width: calc(100% - 36px); margin: 0 18px; text-align: left; align-items: center; gap: 12px; padding: 18px 5px; border-top: 1px solid #eef1f7; }
.task > span:nth-child(2) { flex: 1; }
.task strong { font-size: 12px; font-weight: 550; display: block; }
.task small { font-size: 10px; color: #8a97af; display: block; margin-top: 5px; }
.task > .icon { width: 15px; height: 15px; color: #9aa8c0; }
.task-icon { display: grid; place-items: center; width: 38px; height: 41px; background: #f1f4fc; border: 1px solid #e8edf7; border-radius: 9px; color: #7a8fb9; }
.task-icon .icon { width: 18px; height: 18px; }
.task-icon.amber { background: #fff7ed; color: #c79753; border-color: #ffefdc; }
.task-icon.blue { background: #eef2ff; color: #6d82d8; border-color: #e6ebfc; }
.task:hover { background: #f7f9fe; }
.todo-note { display: flex; align-items: center; gap: 10px; padding: 18px; margin: auto 18px 18px; background: #f6f8fc; border: 1px solid #edf0f6; border-radius: 9px; color: #8292ad; }
.todo-note > .icon { width: 20px; height: 20px; }
.todo-note strong { display: block; font-weight: 500; font-size: 10px; color: #65748c; }
.todo-note small { display: block; font-size: 9px; margin-top: 4px; }
.todo-note .icon-button { margin-left: auto; }
.text-button { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 550; color: #596fce; }
.text-button:hover { color: #304eac; }
.text-button .icon { width: 14px; height: 14px; }
.overview-lower { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.cost-list { padding: 0 24px 2px; }
.cost-item { padding: 12px 0 15px; }
.cost-item > div { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.category-index { font-size: 8px; color: #97a4bb; background: #f1f4fa; padding: 3px 5px; border-radius: 4px; }
.cost-item strong { margin-left: auto; white-space: nowrap; font-size: 10px; font-weight: 600; }
.cost-item svg { display: block; width: 100%; height: 5px; margin-top: 11px; }
.cost-report-link { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; font-size: 10px; color: #6578c3; padding: 20px 24px; margin-top: 9px; border-top: 1px solid var(--line); }
.cost-report-link:hover { background: #f8faff; }
.cost-report-link .icon { width: 15px; height: 15px; }
.cost-panel > .hint { padding: 0 24px 15px; }
.table-wrap { overflow: auto; position: relative; }
table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; }
thead { background: #fafbfe; color: #8c98b0; font-size: 9px; letter-spacing: .3px; }
th { font-weight: 550; padding: 13px 24px; white-space: nowrap; }
td { padding: 15px 24px; border-top: 1px solid #eff2f7; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num { font-size: 12px; font-weight: 550; color: #3c4d6a; }
td:last-child:has(.icon-button) { padding-left: 0; padding-right: 16px; }
tbody tr:hover { background: #f9fbff; }
.entry-link { display: flex; align-items: center; gap: 11px; text-align: left; padding: 0; min-width: 180px; }
.entry-link strong { display: block; font-size: 11px; font-weight: 550; color: #3c4b66; }
.entry-link small { display: block; font-size: 9px; color: #919eb5; margin-top: 5px; }
.entry-symbol { width: 32px; height: 35px; border-radius: 8px; background: #f0f3fc; border: 1px solid #e8edf8; display: grid; place-items: center; color: #8a9bc2; flex-shrink: 0; }
.entry-symbol .icon { width: 15px; height: 15px; }
.date-cell { font-size: 10px; color: #8492a9; white-space: nowrap; }
.badge { font-size: 9px; padding: 5px 8px; border-radius: 5px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.posted { color: #429176; background: #edf8f3; }
.badge.draft { color: #af843d; background: #fff7e9; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; color: #95a3be; }
.icon-button:hover { background: #eaf0fd; color: #536cca; }
.icon-button .icon { width: 16px; height: 16px; }
.recent-panel .panel-header { padding-bottom: 22px; }
.recent-panel table { font-size: 10px; }
.recent-panel th, .recent-panel td { padding-left: 14px; padding-right: 14px; }
.recent-panel td:first-child, .recent-panel th:first-child { padding-left: 24px; }
.recent-panel .entry-symbol { display: none; }
.recent-panel .entry-link { min-width: 140px; }
.recent-panel .entry-link strong { font-size: 10px; }
.recent-panel td.num { font-size: 11px; }
.recent-panel .date-cell { font-size: 9px; }
.recent-panel .badge { font-size: 8px; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 22px 0 26px; border-top: 1px solid #e4e9f2; color: #9da7b9; font-size: 9px; margin-top: 10px; }
.footer-brand { color: #909db4; font-size: 19px; font-weight: 650; letter-spacing: -1px; }
.upload-zone { position: relative; border: 1.5px dashed #c3ceee; border-radius: 14px; background: #eef2ff; text-align: center; padding: 44px 22px; cursor: pointer; margin-bottom: 30px; }
.upload-zone > .icon { width: 32px; height: 32px; margin-bottom: 17px; color: #6b80cf; }
.upload-zone h2 { font-size: 21px; letter-spacing: -.5px; }
.upload-zone p { font-size: 12px; color: #8493b1; margin-top: 10px; }
.upload-zone:hover, .upload-zone.dragging { background: #e6ecff; border-color: #7087e1; }
.section-label { font-size: 10px; letter-spacing: 1.4px; color: #8291ac; margin-bottom: 16px; display: flex; justify-content: space-between; }
.section-label span { letter-spacing: 0; }
.documents-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; }
.document-card { padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.document-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.document-type { display: flex; align-items: center; gap: 8px; color: #8b9cc1; font-size: 10px; }
.document-type > .icon { width: 26px; height: 28px; }
.document-card h3 { font-size: 14px; overflow-wrap: anywhere; }
.document-card p { font-size: 11px; color: var(--muted); margin-top: 9px; }
.document-actions { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hint { color: #7e8da6; font-size: 11px; line-height: 1.8; margin-top: 20px; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; gap: 12px; }
.tabs { background: #f0f3fa; border-radius: 8px; padding: 4px; display: flex; gap: 3px; }
.tabs button { padding: 8px 17px; font-size: 11px; border-radius: 5px; color: #8a98b0; }
.tabs .selected { background: white; box-shadow: 0 2px 5px #183f7510; color: #4c64c1; font-weight: 600; }
.search { display: flex; align-items: center; gap: 6px; color: #93a2bf; border: 1px solid #e3e9f4; border-radius: 8px; padding-left: 11px; }
.search input { border: 0; padding: 10px; font-size: 11px; width: 215px; }
.search .icon { width: 16px; height: 16px; }
.table-bottom { padding: 16px 25px; font-size: 10px; color: #8b9ab4; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.account-code { font-variant-numeric: tabular-nums; color: #6b7fbd; font-size: 11px; background: #eef2fd; padding: 5px 8px; border-radius: 5px; margin-right: 8px; }
.muted { color: #8494ae; font-size: 11px; }
.reports-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px; }
.report { padding: 0 25px 25px; }
.report .panel-header { padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--line); }
.report .panel-header > .icon { color: #91a1c9; }
.report h3 { font-size: 12px; margin: 25px 0 10px; color: #62779b; }
.report-row { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; font-size: 12px; }
.report-row span { display: flex; gap: 10px; }
.report-row small { color: #9aa8c3; font-size: 10px; }
.report-row strong { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-subtotal { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; padding: 16px 0; border-top: 1px solid var(--line); margin-top: 10px; }
.report-total { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 20px; background: #eef2ff; color: #526bc7; border-radius: 9px; margin-top: 24px; font-size: 12px; }
.report-total strong { font-size: 23px; font-weight: 550; letter-spacing: -.7px; }
.subtle { font-size: 11px; color: #8a9ab5; padding: 9px 0; }
.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; }
.export-card { padding: 30px; }
.export-icon { background: #ecf0ff; color: #6d83cd; display: inline-grid; place-items: center; border-radius: 12px; width: 52px; height: 52px; margin-right: 10px; }
.export-icon .icon { width: 24px; height: 24px; }
.pale { background: #f1f4fa; color: #899dbe; }
.export-card h2 { font-size: 23px; margin: 26px 0 14px; letter-spacing: -.7px; }
.export-card p { font-size: 12px; color: #7e8eab; }
.export-card ul { padding-left: 18px; color: #7e8daa; line-height: 2.5; font-size: 12px; margin: 20px 0 25px; }
.export-card .hint { font-size: 10px; }
.download-row { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 23px 0; border-bottom: 1px solid var(--line); gap: 20px; }
.download-row:first-of-type { margin-top: 16px; }
.download-row strong { font-size: 13px; font-weight: 550; display: block; }
.download-row small { font-size: 11px; color: #899ab8; display: block; margin-top: 7px; }
.download-row > .icon { width: 18px; color: #8b9fcc; }
.download-row:hover { color: #536ccb; }
.backup-card { padding: 27px; display: flex; align-items: center; gap: 18px; }
.backup-card > div { flex: 1; }
.backup-card p { font-size: 11px; color: #8a9ab4; margin-top: 8px; }
.backup-card .export-icon { flex-shrink: 0; }
.notice { background: #f0f4fe; border: 1px solid #e1e8f8; padding: 17px 20px; border-radius: 9px; font-size: 11px; color: #7385aa; line-height: 1.8; margin-top: 21px; }
.notice strong { color: #566e9e; }
.notice.compact { font-size: 11px; padding: 13px 16px; }
.settings-card { padding: 27px; }
.settings-card > p { color: #8192af; font-size: 12px; margin-top: 15px; }
.settings-card dl { margin: 16px 0 0; }
.settings-card dl > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf1f8; padding: 15px 0; font-size: 12px; }
.settings-card dt { color: #8596b4; }
.settings-card dd { margin: 0; }
.lock-state { display: flex; align-items: center; gap: 9px; background: #f0f4fe; border-radius: 8px; padding: 15px; margin: 21px 0; color: #7189bb; font-size: 12px; }
.lock-state .icon { width: 18px; }
.empty { text-align: center; padding: 50px 24px; color: #96a5bf; }
.empty > .icon { width: 32px; height: 32px; margin-bottom: 17px; }
.empty h3 { font-size: 17px; color: #667eaa; }
.empty p { font-size: 12px; margin: 11px 0; }
.loading, .startup-error { padding: 60px; }
.startup-error h1 { margin-bottom: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
dialog { border: 1px solid #dce4f1; border-radius: 17px; padding: 30px; width: min(560px,calc(100vw - 32px)); max-height: 90vh; color: var(--ink); box-shadow: 0 30px 100px #0d1d4c38; }
dialog.wide { width: min(890px,calc(100vw - 32px)); }
dialog::backdrop { background: #14203866; backdrop-filter: blur(5px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 27px; }
.modal-head h2 { font-size: 28px; font-weight: 550; letter-spacing: -.9px; }
.modal-head .eyebrow { font-size: 9px; }
form > label, .form-grid > label { display: flex; flex-direction: column; gap: 9px; font-size: 12px; color: #7588a9; margin-bottom: 20px; }
.form-grid { display: flex; gap: 18px; }
.form-grid > label { flex: 1; }
.form-grid > label.grow { flex: 2; }
form input, form select { width: 100%; font-size: 12px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--line); }
.journal-table { margin: 21px 0 14px; overflow: auto; }
.journal-table th { padding: 12px; font-size: 10px; }
.journal-table td { padding: 8px 5px; }
.journal-table td:first-child { width: 55%; min-width: 215px; }
.journal-table input { text-align: right; min-width: 75px; padding: 12px 8px; }
.journal-table select { min-width: 190px; }
.journal-table td:last-child { width: 30px; }
.journal-balance { background: #f2f5fd; border-radius: 9px; display: flex; gap: 26px; justify-content: flex-end; align-items: center; padding: 18px; font-size: 12px; margin-top: 20px; }
.journal-balance strong { margin-left: 8px; font-weight: 600; }
.balanced { color: #41927d; }
.unbalanced { color: #c67951; }
.entry-detail { margin-bottom: 24px; }
.entry-detail h3 { font-size: 19px; margin-bottom: 12px; }
.entry-detail p { font-size: 12px; color: #8699b7; }
.export-summary h3 { font-size: 26px; margin: 22px 0 12px; }
.export-summary p { font-size: 12px; color: #8195b6; }
.export-summary strong { font-size: 17px; }
#modal-feedback { background: #fff1e9; border-color: #f5d7c7; color: #a36241; margin: 0 0 22px; }
#toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%,20px); background: #243655; color: white; box-shadow: 0 8px 40px #142b5929; max-width: min(650px,90vw); border-radius: 10px; padding: 16px 24px; font-size: 12px; z-index: 10000; opacity: 0; pointer-events: none; transition: .2s; }
#toast.show { opacity: 1; transform: translate(-50%,0); }
#toast.error { background: #a56041; }
@media (max-height: 850px) and (min-width: 761px) { .local-card { display: none; } .sidebar-bottom { margin-top: auto; } }
@media (min-width: 1600px) { .page { padding-top: 34px; } .page-heading { margin-bottom: 30px; } .metric { padding: 27px 28px 0; } .metric > strong { font-size: 41px; padding-top: 24px; padding-bottom: 23px; } .panel-header { padding-top: 27px; } }
@media (max-width: 1240px) { .sidebar { width: 218px; padding-left: 14px; padding-right: 14px; } main { margin-left: 218px; } .page { padding: 25px 26px 0; } .topbar { padding: 0 26px; } .page-heading { align-items: flex-start; flex-direction: column; gap: 21px; } .heading-actions { align-self: flex-start; } .overview-lower { grid-template-columns: 1fr; gap: 0; } .cost-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; } .overview-grid { grid-template-columns: minmax(0,1.6fr) minmax(265px,1fr); gap: 18px; } .legend { gap: 7px; font-size: 9px; } .metric { padding: 19px 17px 0; } .metric-label { display: none; } .metric-bottom > span:last-child:not(.metric-dot) { display: none; } .panel-header { padding: 20px; } .metric-top { gap: 8px; font-size: 11px; } .chart-footer { padding: 14px 18px; flex-wrap: wrap; gap: 9px; } .chart-panel .panel-header { align-items: flex-start; flex-direction: column; gap: 13px; } .documents-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .backup-card { flex-wrap: wrap; } }
@media (max-width: 1000px) { .overview-grid { grid-template-columns: 1fr; gap: 0; } .chart { max-height: 290px; } .todo { display: grid; grid-template-columns: 1fr 1fr; } .todo .panel-header { grid-column: 1/-1; } .todo-note { grid-column: 1/-1; margin-top: 10px; } .chart-panel .panel-header { flex-direction: row; } .metric > strong { font-size: 26px; } .metric-top { flex-wrap: wrap; } .featured .metric-top > .icon { display: none; } .metric-icon { width: 28px; height: 28px; } .reports-grid, .export-grid { grid-template-columns: 1fr; gap: 0; } .period { flex-wrap: wrap; gap: 10px; } .period-caption { display: none; } }
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; padding: 19px 18px 0; display: grid; grid-template-columns: 1fr minmax(150px,1fr); gap: 0 18px; }
  .brand { font-size: 31px; margin: 0 0 19px; }
  .brand-icon { transform: rotate(-12deg) scale(.83); margin-right: 6px; }
  .company-switch { padding: 5px 8px; margin-bottom: 18px; border-radius: 8px; align-self: center; }
  .company-monogram { display: none; }
  .company-switch label { font-size: 8px; }
  .company-switch select { font-size: 10px; }
  .workspace-label, .local-card, .sidebar-bottom, .new-company { display: none; }
  .sidebar nav { grid-column: 1/-1; flex-direction: row; overflow: auto; gap: 4px; padding-bottom: 12px; margin: 0 -1px; }
  .nav-item { padding: 10px 13px; font-size: 11px; gap: 7px; white-space: nowrap; min-height: 38px; border-radius: 7px; }
  .nav-item .icon { width: 15px; height: 15px; }
  .nav-item:last-child { margin: 0; padding-top: 10px; border: 0; border-radius: 7px; }
  main { margin-left: 0; }
  .topbar { height: 52px; padding: 0 20px; }
  .breadcrumb { font-size: 10px; gap: 11px; }
  .breadcrumb .icon { width: 14px; height: 14px; }
  .local-pill { font-size: 9px; gap: 6px; }
  .topbar-right { gap: 12px; }
  .year-pill { font-size: 10px; padding-left: 12px; }
  .page { padding: 22px 18px 0; }
  .demo-banner { margin-bottom: 26px; padding: 9px 10px; gap: 7px; line-height: 1.6; font-size: 9px; flex-wrap: wrap; }
  .demo-tag { font-size: 7px; }
  .demo-banner button { font-size: 9px; white-space: nowrap; }
  .page-heading { gap: 21px; margin-bottom: 22px; }
  .eyebrow { font-size: 8px; }
  h1 { font-size: 32px; letter-spacing: -1.4px; }
  .page-heading p { font-size: 11px; }
  .heading-separator { display: none; }
  .heading-actions { align-self: stretch; flex-wrap: wrap; }
  .heading-actions .button { flex: 1; font-size: 10px; padding: 11px 9px; }
  .period { gap: 10px; justify-content: space-between; }
  .period-title { font-size: 10px; }
  .date-range { padding: 2px 5px; gap: 3px; }
  .date-range input { max-width: 115px; font-size: 9px; }
  .metrics { grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
  .metric { padding: 18px 20px 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; border-radius: 12px; }
  .metric-top { font-size: 12px; gap: 10px; flex-wrap: nowrap; }
  .metric-icon { width: 31px; height: 32px; border-radius: 8px; }
  .metric > strong { font-size: 29px; padding: 5px 0 17px; text-align: right; letter-spacing: -1.1px; }
  .metric-bottom { grid-column: 1/-1; font-size: 9px; min-height: 36px; }
  .metric-bottom > span:last-child:not(.metric-dot) { display: block; }
  .orb { width: 180px; height: 180px; }
  .orb-one { top: -10px; }
  .panel { border-radius: 12px; margin-bottom: 20px; }
  .panel-header { padding: 21px 20px; }
  .panel-header h2 { font-size: 15px; }
  .panel-header p { font-size: 10px; }
  .chart-panel .panel-header { flex-direction: column; gap: 14px; }
  .legend { font-size: 9px; gap: 16px; }
  .chart { padding-left: 0; padding-right: 9px; min-height: 180px; }
  .chart-footer { font-size: 9px; padding: 14px 20px; }
  .chart-footer .text-button { font-size: 9px; }
  .todo { display: flex; }
  .task { padding: 17px 4px; }
  .task strong { font-size: 12px; }
  .todo-note { margin-top: 8px; }
  .table-wrap table { min-width: 600px; }
  .recent-panel .table-wrap table { min-width: 540px; }
  td, th { padding-left: 18px; padding-right: 18px; }
  .cost-list { display: block; }
  .cost-item > div { font-size: 11px; }
  .cost-item strong { font-size: 11px; }
  .documents-grid { grid-template-columns: 1fr; }
  .document-card { margin-bottom: 2px; }
  .table-toolbar { align-items: stretch; flex-direction: column; padding: 16px; }
  .search input { width: 100%; }
  .tabs { align-self: flex-start; }
  .backup-card { padding: 22px; gap: 14px; }
  .backup-card .export-icon { display: none; }
  .backup-card > .button { width: 100%; }
  .backup-card p { font-size: 11px; }
  .export-card { padding: 25px; }
  .export-card h2 { font-size: 22px; }
  footer { gap: 15px; font-size: 8px; }
  .form-grid { flex-direction: column; gap: 0; }
  dialog { padding: 23px; }
  .modal-head h2 { font-size: 25px; }
  .journal-balance { gap: 12px; font-size: 10px; flex-wrap: wrap; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .button { font-size: 10px; padding: 10px; }
  .upload-zone { padding: 32px 18px; }
  .upload-zone h2 { font-size: 19px; }
  .upload-zone p { font-size: 10px; }
  .notice { font-size: 10px; }
  .entry-detail h3 { font-size: 16px; }
  .report-row { font-size: 11px; }
}
@media (max-width: 360px) { .metric > strong { font-size: 25px; } .metric-top { font-size: 10px; gap: 6px; } .metric-icon { width: 27px; } .metric { padding-left: 15px; padding-right: 15px; } .year-pill { display: none; } .demo-banner button { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* Sales and payroll share the same visual language as the ledger. */
.business-tabs{width:max-content;max-width:100%;margin-bottom:24px;overflow:auto}.business-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 0 24px}.business-stats article{background:white;border:1px solid var(--line);border-radius:12px;padding:23px;box-shadow:var(--shadow)}.business-stats article>span{display:block;color:#7b8ba8;font-size:12px}.business-stats strong{display:block;font-size:30px;letter-spacing:-1px;font-weight:550;margin:15px 0 8px}.business-stats small{color:#8999b5;font-size:10px;line-height:1.7;display:block}.business-note{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:25px}.business-note p{font-size:11px;color:#7c8eaf;margin-top:9px;max-width:600px}.business-note>a{flex-shrink:0}.setup-notice{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 24px}.setup-notice .text-button{white-space:nowrap}.badge.late{background:#fff0ec;color:#bf725a}.badge.neutral{background:#eef2fa;color:#7d8fac}.checkbox-label{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:11px!important;font-size:12px!important;line-height:1.7}.checkbox-label input{width:17px!important;height:17px;flex-shrink:0;margin-top:3px;accent-color:var(--blue)}.invoice-editor{margin:20px 0 15px}.invoice-editor table{min-width:720px}.invoice-editor th,.invoice-editor td{padding:10px 5px}.invoice-editor th:first-child{width:35%}.invoice-editor input,.invoice-editor select{padding:10px 8px;min-width:0}.invoice-editor td:nth-child(2){width:10%}.invoice-editor td:nth-child(3){width:10%}.invoice-editor td:nth-child(4){width:20%}.invoice-editor td:nth-child(5){width:13%}.invoice-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#eef2ff;border:1px solid #e1e8ff;border-radius:9px;padding:20px;margin-top:24px;font-size:13px}.invoice-summary strong{font-size:25px;font-weight:550;letter-spacing:-.7px}.business-detail-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.business-detail-title h3{font-size:19px}.business-detail-title p{font-size:11px;color:#8193b4;margin-top:8px}.payment-history{border-top:1px solid var(--line);margin-top:20px;padding-top:10px}.payment-history>div{display:flex;justify-content:space-between;padding:9px 0;font-size:12px;color:#7d8eaa}.payment-history strong{font-weight:550}.payroll-scope{background:#edf2ff;border:1px solid #e0e7fb;padding:20px;border-radius:11px;display:flex;align-items:flex-start;gap:17px;margin:0 0 22px}.payroll-scope>div>strong{font-size:13px;font-weight:550;color:#526d9b}.payroll-scope p{font-size:11px;color:#7e91b6;margin-top:7px}.payroll-scope .badge{white-space:nowrap}.payroll-period{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0}.payroll-period label{display:flex;align-items:center;gap:12px;font-size:12px;color:#8394b0}.payroll-period input{padding:10px;font-size:12px}.employee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:0 24px 24px}.employee-card{display:flex;align-items:center;gap:14px;border:1px solid #e7ecf6;background:#fafbff;padding:19px;border-radius:10px}.employee-avatar{display:grid;place-items:center;width:45px;height:46px;border-radius:10px;background:#e9edff;color:#6d83ca;font-size:14px;letter-spacing:.6px;flex-shrink:0}.employee-card h3{font-size:13px;font-weight:550}.employee-card p{font-size:10px;color:#8b9aba;margin:4px 0 9px}.employee-card strong{font-size:14px;font-weight:550}.employee-card strong small{font-size:10px;font-weight:400;color:#8b9ab5}.employee-card>.icon-button{margin-left:auto}.payslip-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px;color:#7286a8}.payslip-breakdown strong{font-size:15px;color:var(--ink);font-weight:550;white-space:nowrap}.payslip-breakdown>.payslip-net{border:1px solid #e1e8fa;background:#eef3ff;border-radius:9px;padding:23px 20px;margin:14px 0;color:#5a73ac}.payslip-net strong{font-size:25px;color:#536ccd;letter-spacing:-.7px}.sidebar nav{flex-shrink:0}.local-card{margin-top:24px}.sidebar-bottom{margin-top:auto}.sidebar{overflow-y:auto}@media(max-height:950px) and (min-width:761px){.local-card{display:none}}@media(max-width:1000px){.business-stats{gap:12px}.business-stats article{padding:18px}.business-stats strong{font-size:26px}.employee-grid{grid-template-columns:1fr}.business-note{align-items:flex-start;flex-direction:column;gap:15px}}@media(max-width:760px){.business-stats{grid-template-columns:1fr;gap:12px}.business-stats article{display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:18px 20px}.business-stats strong{text-align:right;margin:0;font-size:27px}.business-stats small{grid-column:1/-1;margin-top:8px}.business-tabs{width:100%;margin-bottom:20px}.business-tabs button{font-size:10px;padding:9px 11px;white-space:nowrap}.payroll-scope{flex-direction:column;gap:12px;padding:18px}.payroll-period{flex-direction:column;align-items:stretch;gap:12px}.payroll-period label{justify-content:space-between}.setup-notice{align-items:flex-start;flex-direction:column;gap:10px}.employee-grid{padding:0 18px 18px}.employee-card{padding:16px}.invoice-summary{font-size:11px}.invoice-summary strong{font-size:21px}.business-detail-title h3{font-size:17px}.payslip-breakdown>div{font-size:12px}.payslip-breakdown strong{font-size:14px}.payslip-net strong{font-size:23px}.sidebar-bottom{display:none}}

.year-picker { display:flex; align-items:center; gap:8px; font-size:12px; color:#65718a; }
.year-picker select { border:1px solid #dce2ef; border-radius:8px; background:white; padding:7px; color:#273451; font-weight:700; }
.year-list { display:flex; flex-wrap:wrap; gap:12px; margin:12px 0; }
.company-logo-preview { max-width:180px; max-height:90px; object-fit:contain; margin:12px 0; }
[hidden] { display:none !important; }
@media(max-width:700px){.year-picker>span{display:none}.demo-banner{flex-wrap:wrap;gap:10px}}

.company-section{border:0;border-top:1px solid var(--line,#e6e9ef);padding:22px 0 4px;margin:24px 0 0;min-width:0}.company-section legend{padding:0 14px 0 0;font-size:16px;font-weight:650;color:var(--ink,#192437)}.company-section textarea{width:100%;min-height:96px;resize:vertical}.company-section .form-grid{margin-bottom:14px}
.company-section .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.company-section .form-grid>label{min-width:0}.company-section input,.company-section select,.company-section textarea{box-sizing:border-box}@media(max-width:600px){.company-section .form-grid{grid-template-columns:1fr}}
.pay-extra-table input,.pay-extra-table select{min-width:65px;width:100%;box-sizing:border-box}.pay-extra-table td:first-child{min-width:210px}.pay-extra-table td{vertical-align:top}.pay-extra-table .pay-extra-kind{margin-top:8px;font-size:11px}.pay-extra-dates{display:flex;gap:6px;margin-top:8px}.pay-extra-dates input{font-size:10px}
