@charset "UTF-8";
:root {
  --bg: #f5f6f2;
  --surface: #ffffff;
  --surface-alt: #fbfcfa;
  --ink: #26343a;
  --muted: #7b8787;
  --line: #e6eae5;
  --line-strong: #d9e0da;
  --teal: #178477;
  --teal-dark: #12675e;
  --teal-soft: #e8f5f1;
  --coral: #db7363;
  --coral-soft: #fff0ed;
  --amber: #b87a1e;
  --amber-soft: #fff5df;
  --navy: #24373b;
  --shadow: 0 12px 35px rgba(34, 58, 53, .07);
  --radius: 18px;
  --sidebar-width: 248px;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(23,132,119,.22); outline-offset: 2px; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { display: block; }
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 13px; color: var(--muted); }
.boot-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--teal); color: white; border-radius: 13px; font-weight: 800; font-size: 20px; }
.app-shell { min-height: 100vh; }
.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; z-index: 30; background: #fcfdfa; border-right: 1px solid var(--line); padding: 25px 15px 17px; display: flex; flex-direction: column; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 10px 27px; }
.brand-symbol { width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #e0f3e8; flex: 0 0 auto; box-shadow: 0 6px 13px rgba(36,55,59,.13); }
.brand-symbol svg { width: 23px; height: 23px; }
.brand-name { font-size: 15px; letter-spacing: -.035em; line-height: 1.15; font-weight: 760; color: #23343a; }
.brand-caption { font-size: 10px; color: #89948e; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; font-weight: 700; }
.workspace-switcher { margin: 0 4px 24px; border: 1px solid var(--line); border-radius: 13px; padding: 11px 10px; display: flex; align-items: center; gap: 9px; background: white; }
.workspace-avatar { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #e6f3ed; color: var(--teal-dark); font-weight: 760; font-size: 12px; }
.workspace-meta { flex: 1; min-width: 0; }
.workspace-meta strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #354440; font-size: 11px; }
.workspace-meta span { display: block; color: #929b96; font-size: 10px; margin-top: 2px; }
.switch-chevron { color: #98a49c; width: 15px; }
.nav-section-label { margin: 0 12px 8px; font-size: 10px; font-weight: 750; color: #9aa59d; letter-spacing: .12em; text-transform: uppercase; }
.nav-group { display: grid; gap: 3px; }
.nav-item { position: relative; width: 100%; min-height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: #707f7a; text-align: left; font-weight: 570; font-size: 12.5px; transition: background .16s, color .16s; }
.nav-item:hover { background: #f3f6f2; color: var(--ink); }
.nav-item.active { color: var(--teal-dark); background: #eaf4ef; font-weight: 720; }
.nav-item.active:before { content: ""; position: absolute; left: -15px; top: 10px; width: 3px; height: 23px; background: var(--teal); border-radius: 0 4px 4px 0; }
.nav-icon { width: 17px; height: 17px; flex: 0 0 auto; }
.nav-count { margin-left: auto; border-radius: 7px; min-width: 22px; padding: 2px 6px; text-align: center; color: #9b665d; background: #fbede9; font-size: 10px; font-weight: 750; }
.sidebar-spacer { flex: 1; }
.sidebar-callout { background: #f4f7f2; border: 1px solid #e7ece5; padding: 12px; border-radius: 14px; margin: 15px 3px 13px; }
.sidebar-callout-title { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 720; color: #485751; margin-bottom: 4px; }
.sidebar-callout-title svg { width: 15px; height: 15px; color: var(--teal); }
.sidebar-callout p { margin: 0; font-size: 10px; line-height: 1.45; color: #8b9690; }
.user-profile { border-top: 1px solid var(--line); padding: 14px 7px 0; display: flex; align-items: center; gap: 10px; }
.profile-avatar { width: 34px; height: 34px; border-radius: 50%; background: #f2e7d8; color: #986b3d; display: grid; place-items: center; font-size: 12px; font-weight: 750; }
.profile-info { min-width: 0; flex: 1; }
.profile-info strong { display: block; color: #42514b; font-size: 11px; }
.profile-info span { display: block; color: #929a95; font-size: 10px; }
.icon-plain { border: 0; padding: 7px; color: #89948f; background: transparent; border-radius: 8px; }
.icon-plain:hover { background: #eef2ed; color: var(--ink); }
.icon-plain svg { width: 17px; height: 17px; }
.main-area { margin-left: var(--sidebar-width); min-height: 100vh; }
.topbar { height: 70px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; background: rgba(245,246,242,.94); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(224,230,224,.75); }
.topbar-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mobile-menu { display: none; }
.topbar-crumb { color: #8c9890; font-size: 11px; }
.topbar-dot { color: #b9c0b9; }
.topbar-section { font-size: 12px; color: #53625d; font-weight: 670; }
.topbar-right { display: flex; align-items: center; gap: 11px; }
.global-search { display: flex; align-items: center; gap: 8px; width: 205px; height: 36px; padding: 0 10px; border: 1px solid #e1e6df; border-radius: 10px; background: rgba(255,255,255,.78); color: #9aa39d; }
.global-search svg { width: 15px; height: 15px; flex: 0 0 auto; }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; min-width: 0; font-size: 11px; color: var(--ink); }
.global-search input::placeholder { color: #a1aba4; }
.topbar-separator { height: 25px; width: 1px; background: var(--line-strong); margin: 0 2px; }
.topbar-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #ead9c4; color: #845b35; font-weight: 760; font-size: 11px; }
.page-wrap { max-width: 1510px; margin: 0 auto; padding: 31px 38px 54px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading-copy { min-width: 0; }
.eyebrow { margin: 0 0 7px; color: #84928a; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; }
h1 { font-size: 27px; line-height: 1.15; letter-spacing: -.04em; margin: 0; color: #29383c; font-weight: 760; }
.page-subtitle { color: #87928c; font-size: 12px; margin: 7px 0 0; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 37px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: white; color: #4d5d57; font-weight: 670; font-size: 11.5px; white-space: nowrap; transition: .15s ease; }
.btn:hover { background: #f7f9f6; border-color: #cbd5cd; transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { color: white; border-color: var(--teal); background: var(--teal); box-shadow: 0 4px 9px rgba(23,132,119,.13); }
.btn-primary:hover { color: white; background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-soft { color: var(--teal-dark); background: #eff7f3; border-color: #dcece4; }
.btn-danger { color: #b4594e; border-color: #f0d9d4; background: #fff7f5; }
.btn-quiet { border-color: transparent; background: transparent; color: #75827b; }
.btn-small { min-height: 30px; padding: 0 9px; font-size: 10.5px; border-radius: 8px; }
.btn:disabled { cursor: not-allowed; opacity: .52; transform: none; }
.sample-banner { display: flex; align-items: center; gap: 9px; background: #f0f6ef; border: 1px solid #dfeadd; padding: 9px 12px; border-radius: 11px; margin-bottom: 18px; color: #61736b; font-size: 10.5px; }
.sample-banner > svg { width: 15px; height: 15px; color: var(--teal); flex: 0 0 auto; }
.sample-banner strong { color: #426358; }
.sample-banner button { margin-left: auto; border: 0; background: none; color: #6e8b7e; font-size: 10px; font-weight: 700; padding: 3px 5px; }
.sample-banner button:hover { color: var(--teal-dark); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 5px rgba(25,52,43,.015); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 17px; }
.metric-card { padding: 17px 18px 16px; min-height: 137px; position: relative; overflow: hidden; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.metric-label { color: #7d8982; font-size: 10.5px; font-weight: 630; }
.metric-icon { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; background: #edf5f1; color: var(--teal); }
.metric-icon svg { width: 15px; height: 15px; }
.metric-icon.coral { color: var(--coral); background: #fff0ed; }
.metric-icon.amber { color: #b57b26; background: #fff4df; }
.metric-icon.slate { color: #64787a; background: #edf2f2; }
.metric-value { margin-top: 11px; color: #2b3c40; font-size: 23px; font-weight: 760; letter-spacing: -.04em; line-height: 1.15; }
.metric-foot { display: flex; align-items: center; gap: 5px; color: #99a39d; font-size: 10px; margin-top: 7px; }
.metric-foot .positive { color: #318374; font-weight: 680; }
.metric-foot .negative { color: #c76255; font-weight: 700; }
.metric-foot svg { width: 11px; height: 11px; }
.dash-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(290px,.95fr); gap: 16px; margin-bottom: 16px; }
.dash-grid-lower { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.85fr); gap: 16px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px 19px 0; }
.card-title { margin: 0; font-size: 13px; color: #344440; letter-spacing: -.015em; font-weight: 720; }
.card-description { color: #97a19c; margin: 4px 0 0; font-size: 10px; }
.card-link { border: 0; background: none; color: var(--teal); font-size: 10px; font-weight: 710; padding: 4px 0; }
.card-link:hover { color: var(--teal-dark); }
.chart-card { min-height: 298px; padding-bottom: 16px; }
.chart-filters { display: flex; gap: 3px; background: #f5f7f4; border: 1px solid #edf0ec; border-radius: 8px; padding: 3px; }
.chart-filter { border: 0; background: transparent; padding: 4px 7px; border-radius: 6px; color: #99a29c; font-size: 9px; font-weight: 650; }
.chart-filter.active { background: white; color: #4c6259; box-shadow: 0 1px 3px rgba(31,55,44,.08); }
.chart-summary { margin: 16px 19px 6px; display: flex; align-items: baseline; gap: 8px; }
.chart-total { font-size: 21px; font-weight: 750; color: #2c403f; letter-spacing: -.045em; }
.chart-sub { color: #95a099; font-size: 9px; }
.chart-wrap { height: 162px; margin: 0 19px; display: flex; gap: 12px; position: relative; border-bottom: 1px solid #edf0ec; }
.chart-yaxis { display: flex; flex-direction: column; justify-content: space-between; padding: 5px 0 9px; color: #a7b0aa; font-size: 8px; white-space: nowrap; }
.chart-area { position: relative; flex: 1; min-width: 0; display: flex; align-items: stretch; gap: 12px; padding: 0 7px; }
.chart-grid-lines { position: absolute; inset: 0 0 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-grid-lines span { border-top: 1px dashed #e9eeea; width: 100%; }
.chart-column { flex: 1; min-width: 13px; display: flex; align-items: flex-end; justify-content: center; position: relative; z-index: 1; }
.chart-bar { position: relative; width: min(28px, 76%); min-height: 3px; background: #cce6db; border-radius: 6px 6px 2px 2px; transition: height .35s ease, background .2s; }
.chart-bar.current { background: var(--teal); }
.chart-bar:hover { background: #65b3a0; }
.chart-bar:hover:after { content: attr(data-value); position: absolute; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%); z-index: 5; padding: 4px 6px; border-radius: 5px; background: #233b39; color: white; font-size: 9px; white-space: nowrap; }
.chart-xaxis { margin: 6px 19px 0 54px; display: flex; justify-content: space-around; color: #9da7a0; font-size: 8px; }
.chart-legend { display: flex; gap: 13px; align-items: center; margin: 12px 19px 0; font-size: 9px; color: #8b9891; }
.legend-dot { width: 7px; height: 7px; border-radius: 3px; display: inline-block; margin-right: 5px; background: #cce6db; }
.legend-dot.current { background: var(--teal); }
.tax-card { min-height: 298px; overflow: hidden; background: #233a3d; border-color: #233a3d; color: white; position: relative; }
.tax-card:after { content: ""; width: 220px; height: 220px; border-radius: 50%; position: absolute; right: -84px; bottom: -117px; border: 1px solid rgba(191,229,209,.16); box-shadow: 0 0 0 23px rgba(191,229,209,.04), 0 0 0 48px rgba(191,229,209,.035); pointer-events: none; }
.tax-card .card-head { padding-top: 19px; }
.tax-card .card-title { color: #f0f6f0; }
.tax-card .card-description { color: #a4b8b2; }
.tax-card .card-link { color: #aed8c8; }
.tax-period-pill { padding: 4px 8px; border-radius: 7px; background: rgba(255,255,255,.09); color: #cedbd5; font-size: 9px; white-space: nowrap; }
.tax-total-block { margin: 22px 20px 0; position: relative; z-index: 1; }
.tax-total-label { color: #b2c5bf; font-size: 10px; }
.tax-total { font-size: 27px; line-height: 1.15; font-weight: 750; letter-spacing: -.04em; margin-top: 4px; }
.tax-progress { margin: 17px 20px 0; position: relative; z-index: 1; }
.tax-progress-top { display: flex; justify-content: space-between; gap: 8px; color: #b3c5bf; font-size: 9px; margin-bottom: 7px; }
.progress-track { height: 6px; background: rgba(255,255,255,.13); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: #72c7a9; }
.tax-card-bottom { display: flex; align-items: center; justify-content: space-between; margin: 18px 20px 0; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.12); position: relative; z-index: 1; }
.tax-mini strong { display: block; color: #eff6f1; font-size: 12px; }
.tax-mini span { display: block; color: #9fb5ae; font-size: 9px; margin-top: 2px; }
.tax-open-link { padding: 8px 10px; border: 1px solid rgba(223,244,232,.2); background: rgba(255,255,255,.08); color: #e1f4e9; border-radius: 8px; font-size: 9px; font-weight: 700; }
.tax-open-link:hover { background: rgba(255,255,255,.15); }
.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th { text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .075em; color: #9ba59e; font-weight: 720; padding: 12px 16px; border-bottom: 1px solid #edf0ec; background: #fcfdfb; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #f0f2ef; color: #596861; font-size: 10.5px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdfb; }
.table-primary { display: block; color: #374944; font-weight: 700; font-size: 10.5px; }
.table-secondary { display: block; color: #98a39c; font-size: 9px; margin-top: 3px; }
.cell-amount { color: #344640 !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.cell-muted { color: #9aa49e !important; }
.table-actions { display: flex; align-items: center; gap: 5px; }
.text-action { border: 0; background: transparent; color: var(--teal); padding: 3px; font-size: 10px; font-weight: 700; }
.text-action:hover { color: var(--teal-dark); }
.table-footer { padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; background: #fcfdfb; border-top: 1px solid #edf0ec; color: #9aa49e; font-size: 9px; }
.status-pill, .gap-pill, .type-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-pill:before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status-active, .status-received, .status-paid { color: #35836f; background: #edf7f1; }
.status-on-hold, .status-pending { color: #a37526; background: #fff5e2; }
.status-complete { color: #6c7a7a; background: #eff2f1; }
.status-draft { color: #8b8d82; background: #f4f4ef; }
.gap-pill { color: #ba574d; background: #fff0ed; }
.gap-pill svg { width: 11px; height: 11px; }
.type-pill { color: #637970; background: #eff4f0; font-weight: 620; }
.type-pill.advance { color: #658365; background: #eff7ec; }
.type-pill.milestone { color: #6d73a3; background: #f0f0fa; }
.dash-receivables { min-height: 269px; }
.recent-card { min-height: 269px; }
.recent-list { padding: 10px 19px 14px; }
.recent-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f2ef; }
.recent-item:last-child { border: 0; }
.recent-symbol { flex: 0 0 auto; width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; background: #edf6f1; color: var(--teal); }
.recent-symbol svg { width: 14px; height: 14px; }
.recent-copy { min-width: 0; flex: 1; }
.recent-copy strong { display: block; color: #475852; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-copy span { display: block; color: #9aa49e; font-size: 9px; margin-top: 2px; }
.recent-amount { color: #42564d; font-weight: 720; font-size: 10px; white-space: nowrap; }
.quick-stat-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eff2ee; }
.quick-stat-row:last-child { border-bottom: 0; }
.quick-stat-title { color: #718078; font-size: 10px; }
.quick-stat-value { color: #3a4c46; font-size: 11px; font-weight: 730; }
.status-legend { padding: 12px 18px 15px; display: flex; align-items: center; gap: 7px; color: #9aa49e; font-size: 9px; }
.status-legend .legend-dot { margin: 0; background: var(--coral); width: 6px; height: 6px; border-radius: 50%; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -5px 0 14px; }
.toolbar-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-chip { border: 1px solid transparent; background: transparent; color: #89958e; font-size: 10px; border-radius: 8px; padding: 6px 9px; font-weight: 650; }
.filter-chip.active { background: white; color: #40564d; border-color: var(--line); box-shadow: 0 1px 3px rgba(30,50,40,.025); }
.inline-search { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; background: white; border: 1px solid var(--line); border-radius: 9px; min-width: 195px; color: #a1aaa4; }
.inline-search svg { width: 14px; height: 14px; }
.inline-search input { width: 100%; outline: 0; border: 0; background: transparent; min-width: 0; font-size: 10px; }
.inline-search input::placeholder { color: #a2aaa5; }
.table-meta { padding: 11px 15px; color: #8c9891; font-size: 10px; }
.table-meta strong { color: #51635b; }
.empty-state { text-align: center; padding: 53px 20px; }
.empty-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; margin: 0 auto 13px; background: #eff6f1; color: #4d9681; }
.empty-icon svg { width: 21px; height: 21px; }
.empty-state h3 { margin: 0; color: #43544d; font-size: 13px; }
.empty-state p { max-width: 360px; margin: 6px auto 15px; color: #929d96; font-size: 10.5px; }
.client-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.client-card { padding: 16px; transition: transform .15s,border-color .15s,box-shadow .15s; }
.client-card:hover { transform: translateY(-2px); border-color: #cfded3; box-shadow: var(--shadow); }
.client-card-top { display: flex; align-items: flex-start; gap: 10px; }
.client-initial { flex: 0 0 auto; width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; background: #eaf3ed; color: #4e816b; font-weight: 760; font-size: 12px; }
.client-card:nth-child(3n+2) .client-initial { background: #f6efe2; color: #9b7745; }
.client-card:nth-child(3n+3) .client-initial { background: #eef0f8; color: #667396; }
.client-card-name { flex: 1; min-width: 0; }
.client-card-name h3 { margin: 1px 0 2px; color: #33453f; font-size: 12px; font-weight: 740; }
.client-card-name p { margin: 0; color: #9aa39d; font-size: 9.5px; }
.client-card-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 3px; margin-left: auto; }
.client-menu { width: 27px; height: 27px; display: grid; place-items: center; border: 0; background: transparent; color: #8e9d94; border-radius: 7px; padding: 4px; cursor: pointer; }
.client-menu:hover { background: #f0f4ef; color: #52635c; }
.client-menu.client-delete { color: #bb7168; }
.client-menu.client-delete:hover { background: #fff0ed; color: #b64f46; }
.client-menu:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.client-menu svg { width: 15px; height: 15px; }
.client-card-contact { margin: 15px 0 13px; display: grid; gap: 6px; }
.client-contact-line { display: flex; align-items: center; gap: 7px; color: #77857d; font-size: 9.5px; min-width: 0; }
.client-contact-line svg { width: 12px; height: 12px; color: #9aa69e; flex: 0 0 auto; }
.client-contact-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 11px; border-top: 1px solid #edf0ec; }
.client-deal-count { color: #939f98; font-size: 9px; }
.client-balance { text-align: right; }
.client-balance strong { display: block; color: #465950; font-size: 10px; }
.client-balance span { display: block; color: #9ba59f; font-size: 8.5px; }
.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.service-card { padding: 16px; min-height: 164px; display: flex; flex-direction: column; }
.service-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.service-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; color: #448171; background: #eaf5ef; }
.service-icon svg { width: 16px; height: 16px; }
.service-actions { display: flex; gap: 2px; }
.service-card h3 { margin: 12px 0 4px; color: #3b4d47; font-size: 11.5px; font-weight: 730; }
.service-description { color: #8d9992; font-size: 9px; line-height: 1.5; margin: 0; flex: 1; }
.service-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 13px; }
.service-meta span { border-radius: 6px; color: #74847b; background: #f2f5f1; padding: 3px 6px; font-size: 8.5px; }
.service-meta .service-rate { color: #367a68; background: #ecf7f0; }
.service-tags-row { margin-top: 7px; display: flex; gap: 4px; flex-wrap: wrap; }
.service-tag { border: 1px solid #ecf0eb; padding: 2px 6px; border-radius: 999px; color: #94a099; font-size: 8px; }
.tax-metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; margin-bottom: 15px; }
.tax-metric { padding: 15px 17px; }
.tax-metric-label { color: #89958e; font-size: 10px; }
.tax-metric-value { margin-top: 6px; color: #354a44; font-size: 20px; font-weight: 750; letter-spacing: -.04em; }
.tax-metric-foot { color: #9ba59e; font-size: 9px; margin-top: 5px; }
.gst-columns { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(310px,.8fr); gap: 15px; align-items: start; }
.tax-split-card { padding: 17px 19px; }
.tax-split-list { margin-top: 12px; }
.tax-split-row { display: flex; align-items: center; justify-content: space-between; gap: 13px; border-bottom: 1px solid #eff2ef; padding: 9px 0; color: #76847d; font-size: 10px; }
.tax-split-row:last-child { border-bottom: 0; }
.tax-split-row strong { color: #45574f; font-size: 10px; }
.tax-split-bar { flex: 1; max-width: 160px; height: 5px; background: #eff4ef; border-radius: 99px; overflow: hidden; }
.tax-split-bar span { display: block; height: 100%; border-radius: inherit; background: #75b49c; }
.notice { border: 1px solid #e4e9e2; background: #f8faf7; color: #77857d; padding: 12px 14px; border-radius: 12px; font-size: 10px; line-height: 1.55; }
.notice strong { color: #50645a; }
.notice-warning { border-color: #f0e2c9; background: #fff9ee; color: #8d7958; }
.notice-danger { border-color: #f0d6d0; background: #fff4f1; color: #9b5a50; }
.notice-info { border-color: #dce9e1; background: #f2f8f4; color: #638076; }
.gst-notice { margin-top: 14px; }
.settings-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 15px; align-items: start; }
.settings-stack { display: grid; gap: 14px; }
.settings-card { padding: 18px; }
.settings-card .card-head { padding: 0; margin-bottom: 16px; }
.settings-card .card-head.no-margin { margin-bottom: 8px; }
.settings-section-intro { color: #929d96; font-size: 10px; margin: -8px 0 14px; }
.settings-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.settings-form-grid .field-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label, .field-label { color: #66766e; font-size: 9.5px; font-weight: 680; }
.field .field-hint { color: #9ba49e; font-size: 8.5px; line-height: 1.4; }
.input, .select, .textarea { width: 100%; min-height: 37px; border: 1px solid #dfe6df; border-radius: 9px; background: #fff; color: #3e5049; outline: none; padding: 8px 10px; font-size: 10.5px; transition: border .15s, box-shadow .15s; }
.input::placeholder, .textarea::placeholder { color: #a7b0a9; }
.input:focus, .select:focus, .textarea:focus { border-color: #7ab7a5; box-shadow: 0 0 0 3px rgba(23,132,119,.09); }
.textarea { min-height: 76px; resize: vertical; }
.checkbox-line { display: flex; align-items: flex-start; gap: 8px; color: #67766e; font-size: 10px; }
.checkbox-line input { accent-color: var(--teal); margin: 2px 0 0; }
.checkbox-line span { line-height: 1.4; }
.settings-footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; margin-top: 14px; border-top: 1px solid #eff2ee; }
.custom-field-list { display: grid; gap: 7px; margin-top: 13px; }
.custom-field-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #edf0ec; border-radius: 9px; }
.custom-field-row > div { min-width: 0; flex: 1; }
.custom-field-row strong { display: block; color: #56675f; font-size: 10px; }
.custom-field-row span { display: block; color: #9aa49e; font-size: 8.5px; margin-top: 2px; }
.rules-list { display: grid; gap: 13px; }
.rule-item { display: flex; gap: 10px; }
.rule-icon { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #438070; background: #edf6f0; }
.rule-icon svg { width: 14px; height: 14px; }
.rule-copy { min-width: 0; }
.rule-copy strong { display: block; color: #50625a; font-size: 10px; }
.rule-copy p { margin: 3px 0 0; color: #8c9991; font-size: 9px; line-height: 1.5; }
.rule-copy a { font-weight: 700; }
.settings-action-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.settings-action-row .btn { margin-top: 8px; }
.data-note { margin-top: 11px; color: #9aa49e; font-size: 9px; line-height: 1.5; }
.mobile-bottom-nav { display: none; }
.modal-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(23,40,38,.38); backdrop-filter: blur(4px); animation: fade-in .14s ease-out; }
@keyframes fade-in { from {opacity:0} to {opacity:1} }
.modal-panel { width: min(580px,100%); max-height: min(88vh, 860px); display: flex; flex-direction: column; border-radius: 19px; border: 1px solid rgba(255,255,255,.6); background: #fff; box-shadow: 0 25px 80px rgba(23,45,40,.24); overflow: hidden; animation: rise-in .18s ease-out; }
.modal-panel.modal-wide { width: min(790px,100%); }
.modal-panel.modal-narrow { width: min(420px,100%); }
@keyframes rise-in { from {opacity:0; transform:translateY(9px) scale(.99)} to {opacity:1; transform:translateY(0) scale(1)} }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 15px; border-bottom: 1px solid #edf0ec; }
.modal-header h2 { margin: 0; color: #31433d; font-size: 16px; letter-spacing: -.025em; }
.modal-header p { margin: 4px 0 0; color: #8e9a93; font-size: 9.5px; }
.modal-close { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: #f4f6f3; color: #77847c; }
.modal-close:hover { background: #e9eeea; }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { overflow-y: auto; padding: 18px 22px 20px; }
.modal-footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid #edf0ec; padding: 13px 22px 16px; background: #fcfdfb; }
.modal-footer-right { display: flex; gap: 8px; margin-left: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.form-grid .field-full { grid-column: 1 / -1; }
.form-divider { grid-column: 1 / -1; margin: 4px 0 -2px; padding-top: 7px; border-top: 1px solid #eff2ee; color: #6b7c73; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; font-weight: 750; }
.calc-preview { grid-column: 1 / -1; border: 1px solid #dfece3; border-radius: 12px; background: #f5faf6; padding: 12px; }
.calc-preview-title { color: #668074; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 7px; }
.calc-lines { display: grid; gap: 5px; }
.calc-line { display: flex; justify-content: space-between; gap: 10px; color: #77857c; font-size: 10px; }
.calc-line strong { color: #41574b; font-size: 10px; }
.calc-line.calc-total { border-top: 1px solid #dfe9e1; margin-top: 3px; padding-top: 7px; color: #3a574b; font-weight: 700; }
.calc-line.calc-total strong { font-size: 11px; color: #287664; }
.modal-small-note { margin: 8px 0 0; color: #919d95; font-size: 8.5px; line-height: 1.45; }
.modal-warning { padding: 9px 10px; margin: 12px 0 0; border-radius: 9px; background: #fff7e9; border: 1px solid #f2e6cc; color: #87734f; font-size: 9px; line-height: 1.5; }
.modal-warning strong { color: #745d32; }
.detail-hero { padding: 17px 18px; border-radius: 13px; background: #f5f9f5; border: 1px solid #e8eee7; margin-bottom: 14px; }
.detail-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.detail-hero-title { color: #32463f; font-size: 15px; font-weight: 740; }
.detail-hero-client { color: #89978e; margin-top: 3px; font-size: 9.5px; }
.detail-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 15px; }
.detail-metric { padding: 9px 10px; background: white; border: 1px solid #eaf0e9; border-radius: 9px; }
.detail-metric span { display: block; color: #95a098; font-size: 8px; }
.detail-metric strong { display: block; color: #43564d; font-size: 10px; margin-top: 3px; }
.detail-section-title { margin: 16px 0 8px; color: #617269; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 760; }
.timeline { display: grid; gap: 0; }
.timeline-row { position: relative; display: grid; grid-template-columns: 76px 16px minmax(0,1fr) auto; gap: 8px; align-items: start; padding: 0 0 14px; }
.timeline-row:last-child { padding-bottom: 0; }
.timeline-date { color: #8f9b94; font-size: 8.5px; padding-top: 2px; }
.timeline-track { height: 100%; position: relative; display: flex; justify-content: center; }
.timeline-track:before { content: ""; position: absolute; top: 9px; bottom: -5px; width: 1px; background: #e2eae3; }
.timeline-row:last-child .timeline-track:before { display: none; }
.timeline-dot { position: relative; z-index: 1; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #77b59b; box-shadow: 0 0 0 3px #edf6ef; }
.timeline-dot.red { background: var(--coral); box-shadow: 0 0 0 3px #fff0ed; }
.timeline-copy strong { display: block; color: #51625a; font-size: 9.5px; }
.timeline-copy span { display: block; color: #9aa49e; font-size: 8px; margin-top: 2px; }
.timeline-amount { text-align: right; color: #476054; font-weight: 700; font-size: 9px; white-space: nowrap; }
.modal-table { width: 100%; border-collapse: collapse; }
.modal-table th { text-align: left; padding: 9px 7px; color: #9aa49e; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #edf0ec; }
.modal-table td { padding: 9px 7px; color: #627168; font-size: 9px; border-bottom: 1px solid #f0f2ef; }
.modal-table tr:last-child td { border-bottom: 0; }
.confirm-copy { color: #7d8982; font-size: 11px; line-height: 1.6; }
.confirm-copy strong { color: #4d5f56; }
.toast-root { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 220px; max-width: min(380px,calc(100vw - 40px)); display: flex; align-items: center; gap: 9px; border: 1px solid #d8e9df; border-radius: 11px; padding: 11px 14px; background: #fff; box-shadow: 0 8px 25px rgba(34,54,47,.15); color: #4f6d5f; font-size: 10.5px; animation: rise-in .2s ease-out; }
.toast svg { width: 15px; height: 15px; color: var(--teal); flex: 0 0 auto; }
.toast.error { color: #a95349; border-color: #eed4cf; }
.toast.error svg { color: var(--coral); }
.save-status { display: inline-flex; align-items: center; gap: 6px; color: #9aa49e; font-size: 9px; }
.save-dot { width: 6px; height: 6px; border-radius: 50%; background: #75b49c; }
.save-dot.saving { background: #dfa84e; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity:.35 } }
.hotkey { color: #b0b8b1; border: 1px solid #e5e9e4; background: white; border-radius: 5px; padding: 1px 4px; font-size: 8px; }
.pill-tag { display: inline-block; padding: 3px 6px; border-radius: 6px; background: #f0f4f0; color: #7b8a81; font-size: 8px; }
.breadcrumb-top { color: #89958e; }
.inline-icon { display: inline; width: 12px; height: 12px; vertical-align: -2px; }

@media (max-width: 1220px) {
  :root { --sidebar-width: 220px; }
  .page-wrap { padding-left: 27px; padding-right: 27px; }
  .topbar { padding-left: 27px; padding-right: 27px; }
  .metrics-grid { gap: 10px; }
  .metric-card { padding: 15px; }
  .metric-value { font-size: 21px; }
  .client-grid, .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .data-table th, .data-table td { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 960px) {
  :root { --sidebar-width: 72px; }
  .sidebar { padding: 19px 9px 13px; align-items: center; }
  .brand-lockup { padding: 0 0 25px; }
  .brand-lockup > div:not(.brand-symbol), .workspace-switcher, .nav-section-label, .nav-item span:not(.nav-count), .nav-count, .sidebar-callout, .profile-info, .profile-more { display: none; }
  .nav-group { width: 100%; }
  .nav-item { justify-content: center; min-height: 43px; padding: 0; }
  .nav-item.active:before { left: -9px; }
  .nav-icon { width: 18px; height: 18px; }
  .user-profile { width: 100%; justify-content: center; padding: 12px 0 0; }
  .topbar { padding: 0 21px; }
  .page-wrap { padding: 26px 21px 48px; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dash-grid { grid-template-columns: minmax(0,1.35fr) minmax(270px,.9fr); }
  .tax-metrics-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .main-area { margin: 0; padding-bottom: 65px; }
  .topbar { height: 56px; padding: 0 15px; }
  .mobile-menu { display: grid; place-items: center; border: 0; background: transparent; color: #75847c; padding: 5px; border-radius: 7px; }
  .mobile-menu svg { width: 19px; height: 19px; }
  .topbar-crumb, .topbar-dot, .topbar-separator, .topbar-avatar, .global-search { display: none; }
  .topbar-section { font-size: 11px; }
  .topbar-right { gap: 7px; }
  .topbar-right .btn { min-height: 31px; padding: 0 8px; font-size: 9px; }
  .page-wrap { padding: 21px 14px 35px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 18px; }
  h1 { font-size: 24px; }
  .page-subtitle { font-size: 10.5px; }
  .heading-actions { width: 100%; }
  .heading-actions .btn { flex: 1; }
  .sample-banner { align-items: flex-start; font-size: 9.5px; }
  .sample-banner button { white-space: nowrap; }
  .metrics-grid { gap: 9px; margin-bottom: 11px; }
  .metric-card { min-height: 117px; padding: 12px; border-radius: 14px; }
  .metric-label { font-size: 9px; }
  .metric-icon { width: 25px; height: 25px; }
  .metric-icon svg { width: 13px; height: 13px; }
  .metric-value { margin-top: 9px; font-size: 18px; }
  .metric-foot { font-size: 8px; margin-top: 5px; }
  .dash-grid, .dash-grid-lower, .gst-columns, .settings-grid { grid-template-columns: 1fr; gap: 11px; }
  .chart-card, .tax-card { min-height: 286px; }
  .tax-metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .tax-metric { padding: 12px; }
  .tax-metric-value { font-size: 17px; }
  .client-grid, .service-grid { grid-template-columns: 1fr; }
  .page-toolbar { align-items: flex-start; flex-direction: column; }
  .page-toolbar .inline-search { width: 100%; }
  .toolbar-filters { gap: 3px; }
  .filter-chip { font-size: 9px; padding: 5px 7px; }
  .table-card { border-radius: 14px; }
  .data-table th, .data-table td { padding: 10px 11px; }
  .data-table td { font-size: 9.5px; }
  .table-primary { font-size: 9.5px; }
  .card-head { padding: 14px 14px 0; }
  .recent-list { padding: 8px 14px 12px; }
  .chart-summary { margin-left: 14px; }
  .chart-wrap { margin: 0 14px; }
  .chart-xaxis { margin-left: 50px; margin-right: 14px; }
  .chart-legend { margin-left: 14px; }
  .mobile-bottom-nav { position: fixed; display: flex; z-index: 28; left: 0; right: 0; bottom: 0; justify-content: space-around; gap: 3px; padding: 7px 6px max(7px,env(safe-area-inset-bottom)); border-top: 1px solid #e5eae4; background: rgba(252,253,250,.96); backdrop-filter: blur(12px); }
  .mobile-nav-item { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #97a29b; font-size: 8px; font-weight: 640; padding: 2px; }
  .mobile-nav-item svg { width: 16px; height: 16px; }
  .mobile-nav-item.active { color: var(--teal-dark); }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-panel, .modal-panel.modal-wide, .modal-panel.modal-narrow { width: 100%; max-height: 91vh; border-radius: 19px 19px 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .modal-header { padding: 16px 17px 12px; }
  .modal-header h2 { font-size: 14px; }
  .modal-body { padding: 15px 17px 18px; }
  .modal-footer { padding: 11px 17px max(13px,env(safe-area-inset-bottom)); }
  .form-grid { gap: 10px; }
  .detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .timeline-row { grid-template-columns: 61px 14px minmax(0,1fr) auto; gap: 6px; }
  .toast-root { right: 10px; bottom: 75px; }
}
@media (max-width: 390px) {
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-value { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field-full, .form-divider, .calc-preview { grid-column: 1; }
  .settings-form-grid { grid-template-columns: 1fr; }
  .settings-form-grid .field-full { grid-column: 1; }
  .chart-area { gap: 6px; }
  .chart-wrap { gap: 8px; }
}
.modal-body { flex: 1 1 auto; min-height: 0; }
.modal-form { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; }
.mobile-more-panel { display: none; }
@media (max-width: 700px) {
  .mobile-more-panel { position: fixed; display: grid; gap: 2px; z-index: 45; top: 51px; left: 10px; width: 178px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(35,55,48,.16); }
  .mobile-more-panel .mobile-nav-item { min-width: 0; flex: auto; flex-direction: row; justify-content: flex-start; gap: 9px; padding: 8px 9px; border-radius: 8px; font-size: 10px; }
  .mobile-more-panel .mobile-nav-item svg { width: 15px; height: 15px; }
  .mobile-more-panel .mobile-nav-item.active { background: #eaf4ef; }
}

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 78% 20%, #e4f1e9 0, transparent 32%), radial-gradient(circle at 12% 84%, #e9f0ee 0, transparent 27%), var(--bg); }
.auth-card { width: min(460px,100%); padding: 30px; border: 1px solid #e3eae3; border-radius: 21px; background: rgba(255,255,255,.96); box-shadow: 0 20px 65px rgba(34,58,53,.11); }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 29px; }
.auth-brand .brand-symbol { width: 39px; height: 39px; display: grid; place-items: center; color: #e0f3e8; background: var(--navy); border-radius: 12px; font-weight: 800; font-size: 18px; }
.auth-card h1 { font-size: 25px; }
.auth-intro { margin: 8px 0 20px; color: #7f8d85; font-size: 11px; line-height: 1.6; }
.auth-form { display: grid; gap: 13px; }
.auth-submit { width: 100%; min-height: 42px; margin-top: 3px; }
.auth-submit svg { margin-left: auto; }
.auth-message { margin: 12px 0; }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 14px; color: #9aa49e; font-size: 9px; }
.auth-links .card-link { font-size: 10px; }
.auth-footnote { margin: 17px 0 0; color: #98a39c; font-size: 9px; line-height: 1.6; }
.auth-back { margin-top: 13px; }
.auth-card code { padding: 2px 4px; background: #f1f5f1; border-radius: 4px; color: #50635a; }
.invite-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 9px; align-items: end; margin: 14px 0 15px; }
.team-member-list { display: grid; gap: 7px; margin-top: 11px; }
.team-member-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 10px; border: 1px solid #edf0ec; border-radius: 10px; background: #fff; }
.team-member-copy { min-width: 0; flex: 1; }
.team-member-copy strong { display: block; color: #4c5f56; font-size: 9.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.team-member-copy span { display: block; color: #9aa49e; font-size: 8px; margin-top: 2px; }
.team-role-select { min-height: 30px; width: 105px; padding: 5px 7px; font-size: 9px; }
.team-member-row .icon-plain svg { width: 14px; height: 14px; }
@media (max-width: 700px) {
  .auth-screen { padding: 14px; }
  .auth-card { padding: 23px 19px; }
  .invite-form { grid-template-columns: 1fr; }
  .invite-form .btn { width: 100%; }
  .team-member-row { flex-wrap: wrap; }
  .team-member-copy { flex-basis: 100%; }
}
