/* ComptZen product system. Loaded last; !important is restricted to the legacy
   template integration, which contains competing inline and important rules. */
:root {
  --cz-bg: #f6f7f9; --cz-surface: #fff; --cz-secondary: #eef1f5;
  --cz-text: #252a32; --cz-muted: #646e7c; --cz-accent: #3266b5;
  --cz-line: rgba(60,60,67,.12); --cz-hover: rgba(60,60,67,.055);
  --cz-radius: 12px; --cz-control-radius: 8px;
  --cz-density-gap: 10px; --cz-density-padding: 12px; --cz-control-height: 34px;
  --cz-shadow: 0 1px 2px #00000004,0 8px 30px #00000006;
  --cz-space-1: 4px; --cz-space-2: 8px; --cz-space-3: 12px;
  --cz-space-4: 16px; --cz-space-6: 24px; --cz-space-8: 32px;
  --cz-motion: 180ms cubic-bezier(.2,.8,.2,1); --cz-icon: 20px;
  --cz-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme=dark] {
  --cz-bg: #111316; --cz-surface: #1b1e23; --cz-secondary: #252a31;
  --cz-text: #edf0f4; --cz-muted: #a9b2c0; --cz-accent: #8bb5f2;
  --cz-line: rgba(255,255,255,.1); --cz-hover: rgba(255,255,255,.07);
  --cz-shadow: none; color-scheme: dark;
}
html#cz-product body {
  --default-font: var(--cz-font); --heading-font: var(--cz-font); --nav-font: var(--cz-font);
  --default-color: var(--cz-text); --heading-color: var(--cz-text); --muted-color: var(--cz-muted);
  --light-color: var(--cz-muted); --background-color: var(--cz-bg); --app-content-bg: var(--cz-bg);
  --surface-color: var(--cz-surface); --accent-color: var(--cz-accent);
  --border-color: var(--cz-line); --border-color-light: var(--cz-line); --card-border: var(--cz-line);
  --card-bg: var(--cz-surface); --card-shadow: var(--cz-shadow);
  --header-bg: var(--cz-surface); --header-border: var(--cz-line);
  --sidebar-bg: var(--cz-secondary); --sidebar-border: var(--cz-line);
  --sidebar-color: var(--cz-text); --sidebar-muted-color: var(--cz-muted);
  --sidebar-hover-bg: var(--cz-hover); --sidebar-active-bg: var(--cz-hover); --sidebar-active-color: var(--cz-accent);
  --input-bg: var(--cz-surface); --input-border: var(--cz-line); --input-focus-border: var(--cz-accent);
  --table-header-bg: var(--cz-secondary); --table-hover-bg: var(--cz-hover); --table-stripe-bg: var(--cz-surface);
  --nav-color: var(--cz-text); --nav-hover-color: var(--cz-accent);
  --nav-mobile-background-color: var(--cz-surface); --nav-dropdown-background-color: var(--cz-surface);
  --bs-body-color: var(--cz-text); --bs-body-bg: var(--cz-bg); --bs-border-color: var(--cz-line);
  background: var(--cz-bg) !important; color: var(--cz-text) !important;
  font-family: var(--cz-font) !important; font-size: 14px; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
html#cz-product body :is(h1,h2,h3,h4,h5,h6,.btn,input,select,textarea,.panel-link,.card-title) { font-family: var(--cz-font) !important; }
html#cz-product body :is(h1,h2,h3,h4,h5,h6) { color: var(--cz-text); letter-spacing: -.035em; font-weight: 600; }
html#cz-product body :is(.text-muted,.text-secondary) { color: var(--cz-muted) !important; }
html#cz-product body :is(button,a,input,select,textarea):focus-visible { outline: 3px solid var(--cz-accent); outline-offset: 3px; }
html#cz-product body :is(.btn,.btn-primary,.btn-secondary,.btn-getstarted,.store-pill) { border-radius: var(--cz-control-radius); min-height: 44px; font-size: 14px; font-weight: 500; transition: background var(--cz-motion),transform var(--cz-motion); box-shadow: none; }
html#cz-product body :is(.btn-primary,.btn-getstarted) { background: var(--cz-accent) !important; border-color: var(--cz-accent) !important; color: #fff !important; }
html#cz-product body :is(.btn-secondary,.btn-outline-secondary,.btn-light) { background: var(--cz-secondary); border-color: var(--cz-line); color: var(--cz-text); }
html#cz-product body :is(.btn,.btn-getstarted):active { transform: scale(.98); }
html#cz-product body :is(button:disabled,.btn.disabled,[aria-disabled=true]) { opacity: .45; cursor: not-allowed; }
html#cz-product body :is(.form-control,.form-select,.choices__inner) { min-height: 46px; border: 1px solid var(--cz-line); border-radius: var(--cz-control-radius); background-color: var(--cz-surface); color: var(--cz-text); font-size: 15px; box-shadow: none; }
html#cz-product body .form-control:focus { border-color: var(--cz-accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--cz-accent),transparent 82%); }
html#cz-product body .form-label { font-size: 13px; font-weight: 500; color: var(--cz-text); }
html#cz-product body :is(.card,.app-clean-card,.workspace-card,.report-card,.admin-card,.legal-card,.service-card,.pricing-card,.testimonial-card) { background: var(--cz-surface) !important; color: var(--cz-text); border: 1px solid var(--cz-line) !important; border-radius: var(--cz-radius) !important; box-shadow: var(--cz-shadow) !important; min-width: 0; }
html#cz-product body :is(.card-header,.card-body) { padding: 22px !important; }
html#cz-product body .card-header { background: transparent; border-bottom: 1px solid var(--cz-line); }
html#cz-product body :is(.card-title,.chart-header-title) { font-size: 17px !important; font-weight: 600 !important; }
html#cz-product body :is(.dropdown-menu,.modal-content,.popover) { background: var(--cz-surface); color: var(--cz-text); border: 1px solid var(--cz-line); border-radius: 18px; box-shadow: 0 18px 70px #0002; }
html#cz-product body .dropdown-item { color: var(--cz-text); border-radius: 8px; min-height: 40px; }
html#cz-product body .dropdown-item:hover { background: var(--cz-hover); }
html#cz-product body :is(.modal-header,.modal-footer) { border-color: var(--cz-line); padding: 20px 24px; }
html#cz-product body .modal-body { padding: 24px; }
html#cz-product body :is(.table,table) { color: var(--cz-text); font-size: 14px; --bs-table-bg: transparent; --bs-table-color: var(--cz-text); --bs-table-border-color: var(--cz-line); }
html#cz-product body :is(table thead th,.table thead th) { background: var(--cz-secondary) !important; color: var(--cz-muted) !important; font-weight: 500; font-size: 12px; text-transform: none; letter-spacing: 0; padding: 14px 16px !important; }
html#cz-product body :is(table tbody td,.table tbody td) { padding: 15px 16px !important; border-color: var(--cz-line) !important; vertical-align: middle; }
html#cz-product body .table-responsive { max-width: 100%; overflow-x: auto; }
html#cz-product body :is(.empty-state,.report-empty,.datatable-empty) { padding: 40px 24px; color: var(--cz-muted); text-align: center; }
html#cz-product body .main-content { padding: clamp(18px,2.7vw,40px) !important; width: 100%; max-width: none !important; margin-inline: 0; }
html#cz-product body :is(.page-title h1,.page-title h2,.dashboard-user-name) { font-size: clamp(28px,2.5vw,38px) !important; line-height: 1.15; letter-spacing: -.045em; }
html#cz-product body :is(.dashboard-user-subline,.page-title p) { color: var(--cz-muted); font-size: 14px; margin-top: 10px; }
html#cz-product body:has(.main-content) .header { background: color-mix(in srgb,var(--cz-surface),transparent 12%) !important; backdrop-filter: blur(18px); border-bottom: 1px solid var(--cz-line) !important; box-shadow: none !important; }
html#cz-product body:has(.main-content) :is(.sidebar,.sidebar-panel) { background: var(--cz-secondary) !important; border-color: var(--cz-line) !important; box-shadow: none !important; }
html#cz-product body .panel-link { min-height: 46px; border-radius: 10px !important; color: var(--cz-text) !important; }
html#cz-product body .panel-link.active { background: var(--cz-hover) !important; color: var(--cz-accent) !important; box-shadow: none !important; }
html#cz-product body .panel-link:hover { background: var(--cz-hover) !important; }
html#cz-product body .panel-link-icon { background: transparent !important; color: inherit !important; border: 0 !important; }
html#cz-product body .panel-link-meta { color: var(--cz-muted) !important; }
html#cz-product body .sidebar-toggle { min-width: 44px; min-height: 44px; }
html#cz-product body .widget-stat { padding: 22px !important; background: var(--cz-surface) !important; }
html#cz-product body .widget-stat-value { font-size: clamp(22px,2vw,30px) !important; font-weight: 600 !important; letter-spacing: -.04em; color: var(--cz-text) !important; font-variant-numeric: tabular-nums; }
html#cz-product body .widget-stat-label { color: var(--cz-muted) !important; font-size: 13px !important; }
html#cz-product body .widget-stat-icon { background: var(--cz-secondary) !important; color: var(--cz-accent) !important; border-radius: 12px !important; }
html#cz-product body .widget-stat-sparkline { opacity: .35; }
html#cz-product body :is(.dashboard-advice-card,.dashboard-premium-box) { background: var(--cz-secondary) !important; color: var(--cz-text) !important; box-shadow: none !important; border: 1px solid var(--cz-line); }
html#cz-product body :is(.dashboard-advice-card,.dashboard-premium-box) :is(strong,span) { color: var(--cz-text) !important; }
html#cz-product body :is(.dashboard-period-card,.dashboard-export-btn,.dashboard-period-trigger) { background: var(--cz-surface) !important; color: var(--cz-text) !important; border-color: var(--cz-line) !important; border-radius: 12px; }
html#cz-product body :is(.dashboard-grid,.dashboard-modules-grid,.dashboard-auto-grid,.module-stats-grid) { gap: 20px !important; }
html#cz-product body .auth-layout { background: var(--cz-bg); }
html#cz-product body .auth-brand { background: var(--cz-secondary) !important; color: var(--cz-text); }
html#cz-product body .auth-brand::before,html#cz-product body .auth-brand::after { display: none; }
html#cz-product body .auth-brand-heading { font-size: clamp(36px,4vw,56px); line-height: 1.08; max-width: 540px; color: var(--cz-text) !important; }
html#cz-product body .auth-brand-heading strong { color: inherit; font-weight: inherit; }
html#cz-product body :is(.auth-brand-desc,.auth-brand-features,.auth-brand-footer) { color: var(--cz-muted) !important; }
html#cz-product body .auth-main { background: var(--cz-bg); }
html#cz-product body .auth-card { background: var(--cz-surface); border: 1px solid var(--cz-line); border-radius: 24px; box-shadow: var(--cz-shadow); padding: clamp(24px,3vw,44px); }
html#cz-product body .auth-title { font-size: 32px; }
html#cz-product body .auth-card-icon { background: var(--cz-secondary); color: var(--cz-accent); border-radius: 16px; }
html#cz-product body .auth-subtitle { color: var(--cz-muted); }
/* Public pages: a quiet product stage followed by editorial feature sections. */
html#cz-product body:has(#hero) .header,html#cz-product body:has(.legal-page) .header { background: color-mix(in srgb,var(--cz-surface),transparent 12%) !important; backdrop-filter: blur(18px); border-bottom: 1px solid var(--cz-line); padding: 12px 0; box-shadow: none; }
html#cz-product body :is(.hero,.section,.footer,.legal-page) { background: var(--cz-bg); color: var(--cz-text); }
html#cz-product body .hero { padding: 150px 0 72px; overflow: hidden; }
html#cz-product body .hero > .container { max-width: 1280px; }
html#cz-product body .hero > .container > .row { flex-direction: column; gap: 48px; }
html#cz-product body .hero > .container > .row > .col-lg-6 { width: 100%; }
html#cz-product body .hero-content { text-align: center; max-width: 800px; margin: auto; }
html#cz-product body .hero-title { font-size: clamp(36px,4.6vw,66px) !important; line-height: 1.05 !important; letter-spacing: -.055em; font-weight: 600; color: var(--cz-text) !important; }
html#cz-product body .hero-description { max-width: 660px; margin: 24px auto; font-size: 18px; line-height: 1.55; color: var(--cz-muted); }
html#cz-product body :is(.hero-actions,.hero-features,.hero-store-links,.hero-social-proof) { justify-content: center; }
html#cz-product body .hero-badge { background: transparent; border: 0; color: var(--cz-muted); padding: 0; box-shadow: none; }
html#cz-product body .hero-visual { margin: 0 auto; max-width: 1120px; padding: 0; }
html#cz-product body .hero .visual-container { transform: none; padding: 0; }
html#cz-product body .hero .main-screen { width: 100%; transform: none; border-radius: 20px; border: 1px solid var(--cz-line); box-shadow: 0 20px 60px #0000000d; }
html#cz-product body .hero :is(.floating-card,.hero-social-proof),html#cz-product body .hero::before,html#cz-product body .hero::after { display: none; }
html#cz-product body .hero .hero-features { font-size: 13px; color: var(--cz-muted); gap: 18px; }
html#cz-product body section.section { padding: clamp(56px,7vw,96px) 0; }
html#cz-product body .section-title { padding-bottom: 40px; }
html#cz-product body .section-title h2 { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--cz-muted); }
html#cz-product body .section-title h2::after { display: none; }
html#cz-product body .section-title p { font-size: clamp(28px,3vw,42px); line-height: 1.15; color: var(--cz-text); letter-spacing: -.04em; }
html#cz-product body :is(.feature-image,.feature-img,.visual-container) img { border-radius: 18px; }
html#cz-product body :is(.service-card,.pricing-card,.testimonial-card,.faq-container,.contact-form-wrapper,.legal-shell) { background: var(--cz-surface); color: var(--cz-text); border-color: var(--cz-line); box-shadow: var(--cz-shadow); border-radius: 20px; }
html#cz-product body :is(.cta,.stats,.light-background,.dark-background) { --background-color: var(--cz-secondary); --default-color: var(--cz-text); --heading-color: var(--cz-text); background: var(--cz-secondary) !important; color: var(--cz-text); }
html#cz-product body .footer { border-top: 1px solid var(--cz-line); font-size: 13px; }
html#cz-product body .footer :is(.footer-newsletter,.footer-top,.copyright) { background: transparent; border-color: var(--cz-line); }
html#cz-product body .footer h2 { font-size: 24px; }
html#cz-product body .footer h4 { font-size: 14px; }
html#cz-product body .legal-shell { padding: clamp(24px,4vw,56px); }
html#cz-product body .legal-card { padding: 0; border: 0 !important; box-shadow: none !important; }
html#cz-product body .legal-section { padding: 24px 0; border-bottom: 1px solid var(--cz-line); }
.cz-appearance { position: fixed; bottom: 20px; right: 20px; z-index: 1040; width: 44px; height: 44px; border: 1px solid var(--cz-line); border-radius: 50%; background: var(--cz-surface); color: var(--cz-text); box-shadow: var(--cz-shadow); }
.cz-skip { position: fixed; top: -100px; left: 20px; z-index: 9999; background: var(--cz-surface); padding: 12px; }
.cz-skip:focus { top: 12px; }
.cz-search { width: min(600px,calc(100% - 32px)); border: 1px solid var(--cz-line); border-radius: 22px; padding: 20px; color: var(--cz-text); background: var(--cz-surface); box-shadow: 0 30px 100px #0004; }
.cz-search::backdrop { background: #0005; backdrop-filter: blur(6px); }
.cz-search-header { display: flex; gap: 12px; align-items: center; }
.cz-search-header input { flex: 1; min-width: 0; }
.cz-search-results { display: grid; gap: 4px; max-height: 50vh; overflow: auto; padding-top: 12px; }
.cz-search-results a { padding: 12px; border-radius: 10px; color: var(--cz-text); text-decoration: none; }
.cz-search-results a:hover,.cz-search-results a:focus { background: var(--cz-hover); }
@media(min-width:1200px) { html#cz-product body .page-dashboard-finance .dashboard-grid-6 { grid-template-columns: repeat(3,minmax(0,1fr)) !important; } }
@media(max-width:767px) {
  html#cz-product body .main-content { padding: 20px 14px !important; }
  html#cz-product body :is(.card-body,.card-header) { padding: 18px !important; }
  html#cz-product body :is(.dashboard-grid-6,.module-stats-grid,.report-summary-grid,.report-grid,.app-page-grid) { grid-template-columns: minmax(0,1fr) !important; }
  html#cz-product body .dashboard-top-summary { flex-wrap: wrap; gap: 18px; }
  html#cz-product body .hero { padding: 112px 0 40px; }
  html#cz-product body .hero-description { font-size: 16px; }
  html#cz-product body .hero-actions { flex-wrap: wrap; }
  html#cz-product body .hero-features { flex-wrap: wrap; }
  html#cz-product body .hero-store-links { flex-wrap: wrap; }
  html#cz-product body .modal-dialog { margin: 12px; min-height: calc(100% - 24px); align-items: end; }
  html#cz-product body .modal-content { border-radius: 24px 24px 16px 16px; }
  html#cz-product body :is(.transaction-action-btn,.btn-sm) { min-height: 44px; min-width: 44px; }
  html#cz-product body :is(input,select,textarea) { font-size: 16px !important; }
  html#cz-product body .auth-container { padding: 16px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto !important; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
/* Resolve the public template's explicitly forced dark decorative panels. */
html#cz-product body .hero :is(.floating-card,.hero-social-proof) { display: none !important; }
html#cz-product body .hero .hero-badge { background: transparent !important; color: var(--cz-muted) !important; border: 0 !important; box-shadow: none !important; }
html#cz-product body .hero .store-pill { background: var(--cz-secondary) !important; color: var(--cz-text) !important; border: 1px solid var(--cz-line) !important; box-shadow: none !important; }
html#cz-product body .hero :is(.btn-primary,.btn-secondary) { border-radius: 12px !important; padding: 12px 22px !important; box-shadow: none !important; }
html#cz-product body:has(#hero) .header > .container { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
html#cz-product body :is(.report-kpi-card,.admin-side-card,.admin-quick-stat,.admin-control-card,.admin-toolbar-card,.report-period-pill) { background: var(--cz-surface) !important; color: var(--cz-text); border: 1px solid var(--cz-line); border-radius: 18px; box-shadow: none; }
html#cz-product body :is(.reports-title,.admin-hero-title) { font-size: 34px; font-weight: 600; }
html#cz-product body :is(.report-kpi-value,.admin-quick-stat-value) { font-weight: 600; font-variant-numeric: tabular-nums; }
html#cz-product body .search-form { display: flex; align-items: center; gap: 8px; }
html#cz-product body .search-form .btn { min-height: 32px; white-space: nowrap; padding: 3px 8px; }
@media(max-width:767px) { html#cz-product body .report-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
html#cz-product body .header-search .search-form button { position: static; margin-left: auto; flex: 0 0 auto; }
html#cz-product body .header-search .search-form input { flex: 1; width: auto; min-width: 0; }
html#cz-product body .header-search .search-form { padding-right: 8px; }
html#cz-product body .main { background: var(--cz-bg) !important; }
html#cz-product body :is(.chart-tab.active,.dashboard-calendar-tabs .nav-link.active) { background: var(--cz-secondary) !important; color: var(--cz-text) !important; box-shadow: none; }
html#cz-product body .dashboard-top-summary { background: transparent !important; border: 0 !important; box-shadow: none !important; }
html#cz-product body .page-dashboard-finance .dashboard-modules-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) !important; }
html#cz-product body .page-dashboard-finance .dashboard-modules-grid > .card:nth-child(3) { grid-column: auto !important; }
html#cz-product body .sidebar-panel-header { background: transparent !important; }
html#cz-product body .widget-stat { min-height: 150px !important; }
html#cz-product body .header-search .search-form button { top: auto !important; right: auto !important; transform: none !important; align-self: center; }
@media(max-width:1199px) { html#cz-product body .page-dashboard-finance .dashboard-modules-grid { grid-template-columns: minmax(0,1fr) !important; } }
html#cz-product body {
  --bg: var(--cz-bg); --card: var(--cz-surface); --ink: var(--cz-text);
  --muted: var(--cz-muted); --line: var(--cz-line); --accent: var(--cz-accent);
  --accent-soft: var(--cz-secondary); --shadow: var(--cz-shadow);
}
html#cz-product body :is(.transaction-summary-detail-value,.report-card-value,.finance-mini-title,.top-expense-amount,.top-expense-total-value) { color: var(--cz-text) !important; }
html#cz-product body .transaction-summary-detail-label { text-transform: none; letter-spacing: 0; font-size: 12px; }
html#cz-product body :is(.btn-primary,.btn-getstarted) { background: #006edb !important; border-color: #006edb !important; }
html#cz-product body .shell > .hero { padding: 24px 0 40px; }
html#cz-product body .shell :is(.policy,.toc,.callout) { background: var(--cz-surface); border-color: var(--cz-line); box-shadow: none; border-radius: 18px; }
html#cz-product body .shell h1 { font-size: clamp(32px,4vw,52px); }
html#cz-product body .transaction-summary-chart:empty { display: none; }
html#cz-product #cz-page-loader { background: var(--cz-bg); font-family: var(--cz-font); }
html#cz-product .cz-page-loader__content { background: var(--cz-surface); color: var(--cz-text); border-radius: 20px; box-shadow: none; }
html#cz-product .cz-page-loader__mark { border-top-color: var(--cz-accent); }
@media(max-width:767px) {
  html#cz-product body .transaction-summary-card .card-body { min-height: 0 !important; }
  html#cz-product body .transaction-summary-meta { min-height: 0; margin-top: 8px; }
}
html#cz-product body .auth-card::before,html#cz-product body .auth-main::before,html#cz-product body .auth-main::after { display: none; }
html#cz-product body .auth-kicker { color: var(--cz-muted); text-transform: none; letter-spacing: 0; font-size: 13px; }
html#cz-product body .auth-brand-features i { color: var(--cz-accent); }
html#cz-product body :is(input,textarea)::placeholder { color: var(--cz-muted); opacity: 1; }
html#cz-product body .auth-card-icon { box-shadow: none; }
html#cz-product body .auth-brand-logo { color: var(--cz-text); }
@media(min-width:992px) { .cz-appearance-mobile { display: none; } }
html#cz-product body .sidebar-panel-close { min-width: 44px; min-height: 44px; }
html#cz-product body .hero { background: var(--cz-bg) !important; }
html#cz-product body .header .btn-getstarted:hover { background: var(--cz-action-hover) !important; }
html#cz-product body .mobile-nav-toggle { border: 0; background: transparent; min-width: 44px; min-height: 44px; padding: 8px; }
html#cz-product body .footer-main { padding-block: 40px; }
html#cz-product body .footer-widget p { line-height: 1.6; }
html#cz-product body :is(.report-kpi-card,.admin-side-card,.admin-quick-stat,.admin-control-card,.admin-toolbar-card) { border-radius: 18px !important; }
html#cz-product body .report-card-header { padding: 20px 22px !important; }
html#cz-product body .report-card-title { font-size: 17px !important; font-weight: 600 !important; }
html#cz-product body .report-optimizer-card { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--cz-line) !important; border-radius: 0 !important; }
html#cz-product body .report-optimizer-card-label { text-transform: none !important; letter-spacing: 0 !important; }
@media(max-width:767px) {
  html#cz-product body .page-dashboard-finance .dashboard-grid-6 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
  html#cz-product body .page-dashboard-finance .widget-stat { min-height: 120px !important; padding: 16px !important; }
  html#cz-product body .page-dashboard-finance .widget-stat-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  html#cz-product body .page-dashboard-finance .widget-stat-value { font-size: 20px !important; overflow-wrap: anywhere; text-align: left; }
  html#cz-product body .page-dashboard-finance .widget-stat-label { text-align: left; font-size: 12px !important; }
  html#cz-product body .page-dashboard-finance .widget-stat-sparkline { display: none; }
  html#cz-product body .page-dashboard-finance .widget-stat-change { margin-top: 12px; font-size: 11px; }
  html#cz-product body .dashboard-top-meta { flex-direction: row; justify-content: flex-start; gap: 8px; width: 100%; }
  html#cz-product body .dashboard-period-card { min-width: 0; flex: 1; padding: 10px; }
  html#cz-product body .dashboard-period-trigger { flex-wrap: wrap; padding: 0; }
  html#cz-product body .dashboard-export-btn { min-height: 44px; padding: 10px; }
  html#cz-product body:has(.page-dashboard-finance) .cz-appearance-mobile { display: none; }
}
@media(max-width:767px) {
  html#cz-product body .dashboard-period-trigger { display: flex; width: 100%; min-width: 0; gap: 6px; text-align: left; }
  html#cz-product body .dashboard-period-trigger > span { display: block; min-width: 0; flex: 1; }
  html#cz-product body .dashboard-period-trigger > span > span { display: block; font-size: 11px; }
  html#cz-product body .dashboard-period-trigger strong { display: block; font-size: 12px; white-space: normal; line-height: 1.4; }
  html#cz-product body .page-dashboard-finance .widget-stat-value { font-size: clamp(17px,5vw,20px) !important; }
}
.cz-request-error { width: min(560px,calc(100% - 32px)); margin: 12vh auto; }
.cz-request-error h1 { font-size: 28px; }
form[data-cz-submitting] button[type=submit],form[data-cz-submitting] button:not([type]) { opacity: .65; cursor: progress; }
/* Remaining inherited foregrounds must follow the surface in every module. */
html#cz-product body .main-content { color: var(--cz-text) !important; }
html#cz-product body .header-search .search-form input { background: var(--cz-surface) !important; color: var(--cz-text) !important; }
html#cz-product body :is(.header-action,.sidebar-toggle,.user-toggle,header .dropdown-toggle) { color: var(--cz-text) !important; }
html#cz-product body :is(.admin-health-value,.admin-health-label,.admin-list-title,.admin-list-value,.admin-control-value,.admin-control-item strong,.admin-shortcut) { color: var(--cz-text) !important; }
html#cz-product body :is(.admin-quick-stat,.admin-control-item,.admin-list-item,.admin-health-item) { border: 0 !important; border-bottom: 1px solid var(--cz-line) !important; border-radius: 0 !important; background: transparent !important; }
html#cz-product body .admin-quick-stat-label { text-transform: none; letter-spacing: 0; }
.cz-search-label { color: var(--cz-muted); font-size: 12px; font-weight: 600; margin: 12px 12px 4px; }
.cz-search-empty { color: var(--cz-muted); font-size: 14px; padding: 8px 12px; margin: 0; }
.cz-search-recent { background: transparent; color: var(--cz-text); text-align: start; border: 0; border-radius: 10px; padding: 12px; min-height: 44px; }
.cz-search-recent:hover,.cz-search-recent:focus { background: var(--cz-hover); }
html#cz-product body :is(.module-detail-meta,.report-card-meta,.admin-list-meta,.transaction-summary-meta) { font-size: 12px !important; line-height: 1.5; }

/* Compact density is shared by every page; touch controls retain their hit area. */
html#cz-product body .main-content { padding: 14px 16px !important; }
html#cz-product body :is(.card-body,.card-header,.widget-stat,.report-card-header,.report-kpi-card,.admin-side-card,.admin-control-card,.admin-toolbar-card,.workspace-card,.service-card,.pricing-card,.testimonial-card,.contact-form-wrapper) { padding: var(--cz-density-padding) !important; }
html#cz-product body :is(.card-title,.chart-header-title,.report-card-title) { font-size: 15px !important; margin-bottom: 4px; }
html#cz-product body :is(.page-title h1,.page-title h2,.dashboard-user-name,.reports-title,.admin-hero-title) { font-size: 24px !important; line-height: 1.2; }
html#cz-product body :is(.page-title,.reports-header,.dashboard-top-summary) { margin-bottom: 12px !important; padding-block: 0 !important; }
html#cz-product body :is(.dashboard-user-subline,.page-title p) { font-size: 13px; margin-top: 4px; }
html#cz-product body :is(.dashboard-grid,.finance-stat-grid,.dashboard-modules-grid,.dashboard-auto-grid,.module-stats-grid,.report-kpi-grid,.report-grid,.report-summary-grid,.app-page-grid,.admin-grid,.admin-stats-grid) { gap: var(--cz-density-gap) !important; margin-block: 10px !important; }
html#cz-product body .row { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
html#cz-product body :is(.mb-4,.mb-5) { margin-bottom: 12px !important; }
html#cz-product body :is(.mt-4,.mt-5) { margin-top: 12px !important; }
html#cz-product body :is(.mb-3,.mb-2) { margin-bottom: 8px !important; }
html#cz-product body :is(.p-4,.p-5) { padding: 12px !important; }
html#cz-product body :is(.btn,.btn-primary,.btn-secondary,.btn-getstarted,.store-pill,.form-control,.form-select,.choices__inner,.reports-control) { min-height: var(--cz-control-height); font-size: 13px; padding: 6px 10px; border-radius: var(--cz-control-radius); }
html#cz-product body :is(.form-label,label) { margin-bottom: 4px; }
html#cz-product body textarea.form-control { min-height: 80px; }
html#cz-product body :is(.modal-header,.modal-footer,.modal-body) { padding: 12px 14px; }
html#cz-product body :is(.modal-content,.dropdown-menu,.popover,.auth-card,.report-kpi-card,.admin-side-card,.admin-control-card,.admin-toolbar-card) { border-radius: var(--cz-radius) !important; }
html#cz-product body .dropdown-item { min-height: 32px; padding: 6px 10px; font-size: 13px; }
html#cz-product body :is(table thead th,.table thead th,table tbody td,.table tbody td) { padding: 7px 10px !important; }
html#cz-product body :is(.table,table) { font-size: 13px; }
html#cz-product body :is(.empty-state,.report-empty,.datatable-empty) { padding: 20px 12px; }
html#cz-product body .widget-stat { min-height: 96px !important; }
html#cz-product body .widget-stat-value { font-size: 23px !important; }
html#cz-product body .widget-stat-icon { width: 30px !important; height: 30px !important; font-size: 16px !important; }
html#cz-product body .widget-stat-change { margin-top: 6px !important; }
html#cz-product body .widget-stat-sparkline { max-height: 28px; }
html#cz-product body .dashboard-auto-grid > .card { min-height: 0 !important; }
html#cz-product body .transaction-summary-card .card-body { min-height: 0 !important; }
html#cz-product body :is(.transaction-summary-meta,.transaction-summary-details) { margin-top: 6px; min-height: 0; gap: 6px; }
html#cz-product body :is(.dashboard-period-card,.dashboard-export-btn,.dashboard-advice-card,.dashboard-premium-box,.admin-control-item,.admin-list-item,.admin-health-item) { padding: 8px 10px !important; }
html#cz-product body .panel-link { min-height: 34px !important; padding: 6px 8px !important; gap: 8px !important; }
html#cz-product body .panel-link-title { font-size: 13px !important; line-height: 1.25; }
html#cz-product body .panel-link-meta { display: none; }
html#cz-product body .panel-link-icon { width: 22px !important; height: 22px !important; font-size: 16px !important; }
html#cz-product body .panel-nav-tree-group { margin-bottom: 6px !important; }
html#cz-product body .panel-nav-group-label { padding-block: 6px !important; margin: 0 !important; }
html#cz-product body .auth-card { padding: 20px; }
html#cz-product body .auth-title { font-size: 25px; }
html#cz-product body .auth-brand-heading { font-size: clamp(28px,3vw,40px); }
html#cz-product body .auth-card-icon { width: 40px; height: 40px; margin-bottom: 12px; }
html#cz-product body .hero { padding: 92px 0 28px; }
html#cz-product body .hero > .container > .row { gap: 22px; }
html#cz-product body .hero-title { font-size: clamp(28px,3.5vw,46px) !important; }
html#cz-product body .hero-description { font-size: 15px; margin: 12px auto; }
html#cz-product body .hero-visual { max-width: 900px; }
html#cz-product body .hero :is(.btn-primary,.btn-secondary) { padding: 7px 12px !important; }
html#cz-product body section.section { padding: 28px 0; }
html#cz-product body .section-title { padding-bottom: 18px; }
html#cz-product body .section-title p { font-size: clamp(24px,2.5vw,30px); }
html#cz-product body :is(.footer-main,.footer-newsletter,.footer-top) { padding-block: 20px !important; }
html#cz-product body .legal-shell { padding: 20px; }
html#cz-product body .legal-section { padding: 12px 0; }
html#cz-product body .shell > .hero { padding: 16px 0 20px; }
html#cz-product body .shell h1 { font-size: 30px; }
.cz-search { padding: 12px; border-radius: 12px; }
.cz-search-results a,.cz-search-recent { padding: 7px 10px; min-height: 34px; }
@media(min-width:1200px) {
  html#cz-product body .page-dashboard-finance .dashboard-grid-6 { grid-template-columns: repeat(5,minmax(0,1fr)) !important; }
}
@media(max-width:767px) {
  html#cz-product body .main-content { padding: 10px !important; }
  html#cz-product body .page-dashboard-finance .dashboard-grid-6 { gap: 8px !important; }
  html#cz-product body .page-dashboard-finance .widget-stat { min-height: 94px !important; padding: 10px !important; }
  html#cz-product body .page-dashboard-finance .widget-stat-header { gap: 6px; }
  html#cz-product body .page-dashboard-finance .widget-stat-value { font-size: clamp(17px,5vw,20px) !important; }
  html#cz-product body .dashboard-top-summary { gap: 8px; }
  html#cz-product body .hero { padding: 90px 0 24px; }
  html#cz-product body .modal-dialog { margin: 8px; }
}
@media(pointer:coarse) {
  :root { --cz-control-height: 44px; }
  html#cz-product body :is(.panel-link,.dropdown-item,.btn-sm) { min-height: 44px !important; }
  html#cz-product body :is(input,select,textarea) { font-size: 16px !important; }
  .cz-search-results a,.cz-search-recent { min-height: 44px; }
}
html#cz-product body .widget-stat-sparkline { height: 20px !important; min-height: 20px !important; max-height: 20px !important; margin-block: 6px !important; }
html#cz-product body .widget-stat-header { gap: 6px !important; margin-bottom: 0 !important; }
html#cz-product body .widget-stat-value { font-size: 20px !important; }
html#cz-product body :is(.panel-nav-tree,.panel-nav-tree-group,.panel-nav-tree-children) { gap: 2px !important; }
html#cz-product body .panel-nav-tree-group { margin-block: 2px !important; }
html#cz-product body .sidebar-panel-header { min-height: 44px !important; padding-block: 4px !important; margin-bottom: 6px !important; }
@media(min-width:1200px) {
 html#cz-product body .page-dashboard-finance .dashboard-grid-6 { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
}
@media(min-width:1400px) {
 html#cz-product body .page-dashboard-finance .dashboard-grid-6 { grid-template-columns: repeat(6,minmax(0,1fr)) !important; }
 html#cz-product body .page-dashboard-finance .widget-stat-header { align-items: flex-start; flex-direction: column; }
}
html#cz-product body .page-dashboard-finance .chart-container { height: 230px !important; min-height: 0 !important; }
html#cz-product body .page-dashboard-finance .dashboard-calendar-list { max-height: 280px; gap: 4px; }
html#cz-product body .page-dashboard-finance .dashboard-modules-grid > .card { min-height: 0 !important; }
html#cz-product body .page-dashboard-finance .dashboard-modules-grid > .card > .card-body { padding: 12px !important; }
html#cz-product body .widget-stat-sparkline > .apexcharts-canvas { transform: scaleY(.435); transform-origin: top; }
html#cz-product body .page-dashboard-finance .dashboard-modules-grid > .card > .card-body { justify-content: flex-start !important; gap: 10px; }
html#cz-product body .dashboard-calendar-week { gap: 4px !important; }
html#cz-product body .dashboard-calendar-week-day { min-height: 34px !important; padding: 4px 6px !important; }
html#cz-product body .dashboard-calendar-week-date { min-height: 26px !important; padding: 2px !important; }
/* Refined product finish, preserving the compact layout and responsive grids. */
:root { --cz-radius: 14px; --cz-shadow: 0 1px 3px rgba(0,0,0,.025); --cz-selected: rgba(0,110,219,.075); }
:root[data-theme=dark] { --cz-selected: rgba(64,156,255,.13); --cz-shadow: none; }
html#cz-product body :is(.panel-link-title,.finance-mini-title,.top-expense-amount,.widget-stat-label,.dropdown-item,.nav-link) { font-weight: 500 !important; letter-spacing: -.01em; }
html#cz-product body :is(.widget-stat-value,.report-kpi-value,.transaction-summary-detail-value,.admin-control-value) { font-weight: 600 !important; font-variant-numeric: tabular-nums; }
html#cz-product body .panel-nav-group-label { font-size: 11px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--cz-muted) !important; }
html#cz-product body .panel-link.active { background: var(--cz-selected) !important; }
html#cz-product body .panel-link { transition: background var(--cz-motion),color var(--cz-motion); }
html#cz-product body :is(.panel-link,.panel-link-icon,.widget-stat-icon,.finance-mini-icon) { box-shadow: none !important; }
html#cz-product body .header :is(.dropdown-toggle,.sidebar-toggle,.header-action) { background: transparent !important; border: 1px solid transparent !important; box-shadow: none !important; border-radius: 9px !important; }
html#cz-product body .header :is(.dropdown-toggle,.sidebar-toggle,.header-action):hover { background: var(--cz-hover) !important; }
html#cz-product body .header-search .search-form input { border-color: transparent !important; background: var(--cz-secondary) !important; border-radius: 9px; }
html#cz-product body .header-search .search-form input:focus { border-color: var(--cz-accent) !important; }
html#cz-product body .widget-stat-icon { background: var(--cz-secondary) !important; color: var(--cz-muted) !important; }
html#cz-product body :is(.top-expense-item,.finance-mini-item,.dashboard-calendar-week-day,.dashboard-calendar-event) { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--cz-line) !important; border-radius: 0 !important; box-shadow: none !important; }
html#cz-product body :is(.top-expense-item,.finance-mini-item,.dashboard-calendar-week-day):last-child { border-bottom: 0 !important; }
html#cz-product body .top-expense-rank { background: var(--cz-secondary) !important; color: var(--cz-muted) !important; font-weight: 500; border-radius: 5px; }
html#cz-product body .top-expense-chip { background: transparent !important; color: var(--cz-muted) !important; }
html#cz-product body .top-expense-progress { height: 2px !important; background: var(--cz-secondary) !important; }
html#cz-product body .top-expense-progress > span { background: var(--cz-accent) !important; opacity: .65; }
html#cz-product body .top-expense-dot { background: var(--cz-accent) !important; }
html#cz-product body :is(.chart-tabs,.dashboard-calendar-tabs) { background: var(--cz-secondary) !important; border: 0 !important; border-radius: 8px !important; padding: 3px; }
html#cz-product body :is(.chart-tab,.dashboard-calendar-tabs .nav-link) { border-radius: 6px !important; font-weight: 500 !important; color: var(--cz-muted) !important; }
html#cz-product body :is(.chart-tab.active,.dashboard-calendar-tabs .nav-link.active) { background: var(--cz-surface) !important; color: var(--cz-text) !important; box-shadow: 0 1px 3px #00000012 !important; }
html#cz-product body :is(.btn-secondary,.btn-light,.btn-outline-secondary,.reports-control,.dashboard-export-btn) { background: var(--cz-surface) !important; border: 1px solid var(--cz-line) !important; color: var(--cz-text) !important; box-shadow: none !important; }
html#cz-product body :is(.btn-secondary,.btn-light,.btn-outline-secondary,.reports-control,.dashboard-export-btn):hover { background: var(--cz-secondary) !important; }
html#cz-product body .btn-primary:hover { background: var(--cz-action-hover) !important; border-color: var(--cz-action-hover) !important; }
html#cz-product body :is(.form-control,.form-select) { transition: border-color var(--cz-motion),box-shadow var(--cz-motion); }
html#cz-product body :is(.form-control,.form-select):focus { border-color: var(--cz-accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--cz-accent),transparent 85%); }
html#cz-product body :is(table tbody tr,.table tbody tr) { transition: background var(--cz-motion); }
html#cz-product body :is(table tbody tr,.table tbody tr):hover { background: var(--cz-hover); }
html#cz-product body :is(.badge,.status-badge) { font-weight: 500; border-radius: 6px; letter-spacing: 0; }
html#cz-product body .modal-content { box-shadow: 0 16px 64px #0003; }
html#cz-product body .modal-header { border-bottom: 1px solid var(--cz-line); }
html#cz-product body .modal-footer { background: var(--cz-secondary); border-radius: 0 0 var(--cz-radius) var(--cz-radius); }
html#cz-product body .dropdown-menu { padding: 6px; }
html#cz-product body .dropdown-divider { border-color: var(--cz-line); margin-block: 5px; }
html#cz-product body :is(.service-card,.pricing-card,.testimonial-card,.auth-card,.legal-shell) { border-radius: var(--cz-radius) !important; }
html#cz-product body .footer a { text-decoration: none; }
html#cz-product body .footer a:hover { color: var(--cz-accent); text-decoration: underline; text-underline-offset: 3px; }
@media(prefers-reduced-motion:reduce) {
 html#cz-product body :is(.panel-link,.form-control,.form-select,table tbody tr) { transition: none !important; }
}
/* Navigation rows follow their content instead of stretching to viewport height. */
html#cz-product body .sidebar-panel { padding: 12px !important; }
html#cz-product body .sidebar-panel .panel-nav { flex: 0 0 auto !important; align-content: start !important; grid-auto-rows: max-content !important; padding: 8px 0 !important; }
html#cz-product body .sidebar-panel :is(.panel-nav-tree-group,.panel-nav-tree-children) { align-content: start !important; grid-auto-rows: max-content !important; height: auto !important; }
html#cz-product body .sidebar-panel .panel-nav-tree-group { grid-template-rows: max-content max-content !important; margin-block: 3px !important; }
html#cz-product body .sidebar-panel .panel-nav-group-label { padding: 5px 8px !important; line-height: 1.2 !important; }
html#cz-product body .sidebar-panel .panel-link { grid-template-columns: 22px minmax(0,1fr) !important; }
html#cz-product body .sidebar-panel-header { justify-content: flex-start !important; padding: 6px 8px !important; }
@media(min-width:1200px) {
 html#cz-product body:not(.sidebar-panel-collapsed) { --sidebar-width: 240px; --sidebar-panel-width: 240px; }
 html#cz-product body:not(.sidebar-panel-collapsed) .sidebar-panel { width: 240px !important; min-width: 240px !important; max-width: 240px !important; }
}
@media(min-width:1200px) {
 html#cz-product body:not(.sidebar-panel-collapsed) .sidebar { width: 240px !important; min-width: 240px !important; max-width: 240px !important; }
 html#cz-product body:not(.sidebar-panel-collapsed) .header { left: 240px !important; inset-inline-start: 240px !important; width: calc(100% - 240px) !important; max-width: calc(100% - 240px) !important; }
 html#cz-product body:not(.sidebar-panel-collapsed) .main { margin-left: 240px !important; margin-inline-start: 240px !important; padding-left: 0 !important; }
}

/* Inset navigation, with balanced brand and selection treatments. */
html#cz-product body .sidebar-panel { align-items: stretch !important; }
html#cz-product body .sidebar-panel-section { width: 100%; max-width: 100%; min-width: 0; }
html#cz-product body .sidebar-panel .panel-link { border-radius: 8px !important; padding-inline: 10px !important; }
html#cz-product body .sidebar-panel .panel-link.active { background: var(--cz-surface) !important; color: var(--cz-text) !important; box-shadow: 0 1px 3px rgba(0,0,0,.06) !important; }
html#cz-product body .sidebar-panel .panel-link.active .panel-link-icon { color: var(--cz-accent) !important; }
html#cz-product body .sidebar-panel .panel-link:hover { background: var(--cz-hover) !important; }
html#cz-product body .sidebar-panel .panel-link.active:hover { background: var(--cz-surface) !important; }
html#cz-product body .sidebar-panel .panel-link-icon { color: var(--cz-muted) !important; }
html#cz-product body .sidebar-panel .panel-nav-group-label { font-size: 11px !important; padding-inline: 10px !important; }
html#cz-product body .sidebar-panel-header { min-height: 48px !important; margin-bottom: 8px !important; border-bottom: 1px solid var(--cz-line) !important; box-shadow: none !important; }
html#cz-product body .sidebar-panel-header img { max-height: 30px; width: auto; }
/* Let workspaces use the width released by the collapsed navigation rail. */
@media(min-width:1200px) {
 html#cz-product body.sidebar-panel-collapsed .main-content { width: 100% !important; max-width: none !important; margin-inline: 0 !important; }
}
/* Softer typography, without blur or loss of small-text contrast. */
html#cz-product body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-weight: 400;
  letter-spacing: 0;
}
html#cz-product body :is(h1,h2,h3,h4,h5,h6,.card-title,.chart-header-title,.report-card-title,.dashboard-user-name,.reports-title,.admin-hero-title,.auth-title) {
  font-weight: 500 !important;
  letter-spacing: -.02em !important;
}
html#cz-product body :is(.panel-link-title,.finance-mini-title,.widget-stat-label,.dropdown-item,.form-control,.form-select,.form-label,.dashboard-user-subline,.transaction-summary-meta) {
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}
html#cz-product body :is(.widget-stat-value,.report-kpi-value,.transaction-summary-detail-value,.top-expense-amount,.admin-control-value,.revenue-stat-value) {
  font-weight: 500 !important;
  letter-spacing: -.015em !important;
  font-variant-numeric: tabular-nums;
}
html#cz-product body :is(.btn,.badge,.widget-stat-change,.nav-link,.panel-link.active .panel-link-title) { font-weight: 500 !important; }
html#cz-product body :is(table td,table th) { letter-spacing: 0; }

/* Quiet color system: neutral surfaces, one action blue, semantic status tints. */
:root {
 --cz-action: #3266b5; --cz-action-hover: #285596;
 --cz-success: #28745a; --cz-success-bg: #eaf4ee;
 --cz-danger: #b34850; --cz-danger-bg: #faedef;
 --cz-warning: #88601d; --cz-warning-bg: #f7f0e1;
 --cz-info-bg: #eaf0f9; --cz-selected: #eaf0f9;
}
:root[data-theme=dark] {
 --cz-action: #396db8; --cz-action-hover: #447bc8;
 --cz-success: #87c8a7; --cz-success-bg: #20382d;
 --cz-danger: #eea0a6; --cz-danger-bg: #3c272c;
 --cz-warning: #dfbf7e; --cz-warning-bg: #373122;
 --cz-info-bg: #25334a; --cz-selected: #25334a;
}
html#cz-product body :is(.btn-primary,.btn-getstarted) { background: var(--cz-action) !important; border-color: var(--cz-action) !important; color: #fff !important; }
html#cz-product body :is(.btn-primary,.btn-getstarted):hover { background: var(--cz-action-hover) !important; border-color: var(--cz-action-hover) !important; }
html#cz-product body :is(.text-success,.widget-stat-change.positive) { color: var(--cz-success) !important; }
html#cz-product body :is(.text-danger,.widget-stat-change.negative) { color: var(--cz-danger) !important; }
html#cz-product body :is(.badge.bg-success,.badge.bg-success-subtle,.badge-success,.alert-success,.alert-solid-success,.finance-mini-icon.success) { color: var(--cz-success) !important; background: var(--cz-success-bg) !important; border-color: transparent !important; }
html#cz-product body :is(.badge.bg-danger,.badge.bg-danger-subtle,.badge-danger,.alert-danger,.alert-solid-danger,.finance-mini-icon.danger) { color: var(--cz-danger) !important; background: var(--cz-danger-bg) !important; border-color: transparent !important; }
html#cz-product body :is(.badge.bg-warning,.badge.bg-warning-subtle,.badge-warning,.alert-warning,.finance-mini-icon.warning) { color: var(--cz-warning) !important; background: var(--cz-warning-bg) !important; border-color: transparent !important; }
html#cz-product body :is(.badge.bg-info,.badge.bg-primary,.badge-info,.badge-primary,.dashboard-calendar-week-date) { color: var(--cz-accent) !important; background: var(--cz-info-bg) !important; }
html#cz-product body .btn-outline-success { color: var(--cz-success) !important; border-color: color-mix(in srgb,var(--cz-success),transparent 65%) !important; background: transparent; }
html#cz-product body .btn-outline-danger { color: var(--cz-danger) !important; border-color: color-mix(in srgb,var(--cz-danger),transparent 65%) !important; background: transparent; }
html#cz-product body .btn-outline-success:hover { background: var(--cz-success-bg); }
html#cz-product body .btn-outline-danger:hover { background: var(--cz-danger-bg); }
/* Alignment system: shared baselines, predictable toolbars and readable rows. */
html#cz-product body :is(.card-header,.chart-header,.report-card-header) { gap: 10px !important; align-items: center !important; }
html#cz-product body :is(.card-title,.chart-header-title,.report-card-title) { margin: 0 !important; display: flex; align-items: center; gap: 7px; min-width: 0; }
html#cz-product body :is(.card-title,.chart-header-title) > i { flex-shrink: 0; margin: 0 !important; }
html#cz-product body :is(.card-actions,.finance-card-toolbar,.reports-actions) { display: flex; align-items: center; flex-wrap: wrap; gap: 6px !important; }
html#cz-product body .dashboard-auto-grid > .card > .card-header { display: flex !important; flex-direction: row; align-items: flex-start !important; justify-content: space-between !important; min-height: 64px; }
html#cz-product body .dashboard-auto-grid .finance-card-toolbar { justify-content: flex-end; margin-top: 0; flex-wrap: nowrap; flex-shrink: 0; }
html#cz-product body .dashboard-auto-grid .finance-card-toolbar > .text-muted { margin-right: auto; font-size: 12px; }
html#cz-product body .dashboard-auto-grid .card-body { scrollbar-gutter: stable; }
html#cz-product body .finance-mini-item { display: grid !important; grid-template-columns: 26px minmax(0,1fr) auto !important; gap: 8px !important; align-items: start !important; padding: 10px 0 !important; }
html#cz-product body .finance-mini-icon { width: 26px !important; height: 26px !important; margin-top: 2px; }
html#cz-product body .finance-mini-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 0; max-width: 112px; text-align: right; }
html#cz-product body .finance-mini-side > .btn { margin-top: 0 !important; }
html#cz-product body .finance-mini-side .fw-semibold { white-space: nowrap; font-variant-numeric: tabular-nums; }
html#cz-product body .finance-mini-meta { line-height: 1.45; }
html#cz-product body .progress-group-header { display: grid !important; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 8px; }
html#cz-product body .progress-group-header small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; }
html#cz-product body .progress-group-value { white-space: nowrap; font-variant-numeric: tabular-nums; }
html#cz-product body .progress-group-item { padding-block: 10px; margin: 0; }
html#cz-product body .progress-group-item .progress { margin-top: 7px; }
html#cz-product body :is(.page-title,.reports-header) { gap: 12px; }
html#cz-product body .modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
html#cz-product body .modal-footer > * { margin: 0; }
html#cz-product body :is(.table-responsive,.card-body,.report-card-body) { min-width: 0; }
@media(max-width:767px) {
 html#cz-product body .dashboard-auto-grid > .card > .card-header { min-height: 0; }
 html#cz-product body .chart-header { flex-wrap: wrap; }
}
html#cz-product body :is(.header-logo,.auth-brand-logo,.dashboard-reference-logo,.sidebar-strip-logo) img,
html#cz-product body .cz-brand-mark { object-fit: contain; border-radius: 22%; flex-shrink: 0; }
html#cz-product body .logo .cz-brand-mark { width: 32px; height: 32px; margin-inline-end: 8px; }
/* ComptZen brand palette: orange interaction, cyan comparison, green progress. */
:root {
 --cz-bg: #f7f7f6; --cz-surface: #ffffff; --cz-secondary: #f0efed;
 --cz-text: #211d19; --cz-muted: #70675f; --cz-accent: #aa4800;
 --cz-brand-orange: #ff7a12; --cz-action: #ff7a12; --cz-action-hover: #ee6a06;
 --cz-success: #237642; --cz-success-bg: #eaf7ee;
 --cz-cyan: #35c7de; --cz-cyan-text: #087589; --cz-green: #45d978;
 --cz-info-bg: #e7f7fa; --cz-selected: #fff0e3;
}
:root[data-theme=dark] {
 --cz-bg: #171411; --cz-surface: #211d19; --cz-secondary: #302a24;
 --cz-text: #f5f2ee; --cz-muted: #bbb1a7; --cz-accent: #ff9a4b;
 --cz-action: #ff7a12; --cz-action-hover: #ff913a;
 --cz-success: #75e39b; --cz-success-bg: #1e3526;
 --cz-cyan-text: #6bd8e8; --cz-info-bg: #1b343a; --cz-selected: #3b291b;
}
html#cz-product body { --success-color: var(--cz-success); --info-color: var(--cz-cyan-text); --warning-color: var(--cz-accent); }
html#cz-product body :is(.btn-primary,.btn-getstarted) { color: #211d19 !important; }
html#cz-product body .sidebar-panel .panel-link.active { background: var(--cz-selected) !important; color: var(--cz-accent) !important; }
html#cz-product body :is(.progress-bar.bg-success,.progress-bar-success) { background: var(--cz-green) !important; }
html#cz-product body :is(.badge.bg-info,.badge-info) { color: var(--cz-cyan-text) !important; background: var(--cz-info-bg) !important; }
html#cz-product body .top-expense-progress > span { background: var(--cz-brand-orange) !important; }

/* Dashboard actions share the title row; metadata stays below the title. */
html#cz-product body .finance-card-heading { min-width: 0; display: grid; gap: 4px; }
html#cz-product body .finance-card-heading .card-title { min-height: 32px; font-size: 14px; }
html#cz-product body .finance-card-heading > .text-muted { font-size: 11px; line-height: 1.2; }
html#cz-product body .dashboard-auto-grid .finance-card-toolbar .btn { white-space: nowrap; }
html#cz-product body .dashboard-auto-grid > .card > .card-header { gap: 6px !important; }
html#cz-product body .cz-reveal { transition-delay: 0ms !important; transition-duration: 150ms !important; }
@media (pointer: coarse) {
 html#cz-product body .dashboard-auto-grid .finance-card-toolbar .btn { min-height: 44px; }
 html#cz-product body .finance-card-heading .card-title { min-height: 44px; }
}

/* Keep row actions centered beside the content rather than below status badges. */
html#cz-product body .dashboard-auto-grid .finance-mini-item { align-items: center !important; }
html#cz-product body .dashboard-auto-grid .finance-mini-side { align-self: center; justify-content: center; }
html#cz-product body .dashboard-auto-grid .finance-mini-side > form { margin: 0 !important; }
html#cz-product body .finance-mini-details { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; margin-top: 4px; font-size: 11px; }
html#cz-product body .finance-mini-details .fw-semibold { font-variant-numeric: tabular-nums; }
@media (pointer: coarse) {
 html#cz-product body .dashboard-auto-grid .finance-mini-side .btn { min-width: 44px; min-height: 44px; }
}
/* Text labels must fit where older controls reserved only an icon square. */
html#cz-product body .cz-named-action { display: inline-flex !important; align-items: center; justify-content: center; gap: 5px; width: auto !important; min-width: 32px; max-width: 100%; height: auto; min-height: 32px; padding: 6px 9px !important; border-radius: 8px; white-space: nowrap; font-size: 12px; line-height: 1.3; }
html#cz-product body .cz-action-label { display: inline !important; font-size: 12px; font-weight: 500; }
html#cz-product body .cz-action-icon { margin-inline-end: 5px; flex-shrink: 0; }
html#cz-product body .btn-close.cz-named-action { background-image: none; opacity: 1; color: var(--cz-text); }
html#cz-product body .cz-appearance.cz-named-action { border-radius: 12px; }
html#cz-product body .table-actions { flex-wrap: wrap; gap: 5px; }
@media(pointer:coarse) { html#cz-product body .cz-named-action { min-height: 44px; } }

html#cz-product body .finance-summary-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; margin-inline: 0; }
html#cz-product body .finance-summary-grid > div { width: auto !important; max-width: none; min-width: 0; margin-top: 0; padding-inline: 0; }
@media(min-width:768px) { html#cz-product body .finance-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(min-width:1200px) { html#cz-product body .finance-summary-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
html#cz-product body .cz-wordmark { white-space: nowrap; color: inherit; }
html#cz-product body .brand-zen { color: var(--cz-accent) !important; font-weight: 600; }
/* Public testimonials use the same accessible surfaces in both themes. */
html#cz-product body .testimonials :is(.review-card,.trust-badges .badge-item) { background: var(--cz-surface); color: var(--cz-text); border: 1px solid var(--cz-line); }
html#cz-product body .testimonials .review-card :is(h3,h4,p) { color: var(--cz-text); opacity: 1; }
html#cz-product body .testimonials :is(.review-date,.helpful,.review-count) { color: var(--cz-muted); opacity: 1; }
html#cz-product body .testimonials .verified { color: var(--cz-success); }
html#cz-product body #scroll-top { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); right: 20px; }
html#cz-product body .cz-appearance { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

/* Focus queue: compact, readable task rows with a fixed priority column. */
html#cz-product body .focus-queue-card .module-detail-list { display: grid; gap: 0; }
html#cz-product body .focus-queue-card .module-detail-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 0; margin: 0; border: 0; border-bottom: 1px solid var(--cz-line); background: transparent; border-radius: 0; }
html#cz-product body .focus-queue-card .module-detail-item:last-child { border-bottom: 0; padding-bottom: 0; }
html#cz-product body .focus-queue-card .module-detail-item > div:first-child { min-width: 0; }
html#cz-product body .focus-queue-card .module-detail-title { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--cz-text); overflow-wrap: anywhere; }
html#cz-product body .focus-queue-card .module-detail-meta { font-size: 11px; line-height: 1.4; margin-top: 3px; color: var(--cz-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html#cz-product body .focus-queue-card .module-chip-list { margin: 0; }
html#cz-product body .focus-queue-card .badge { font-size: 10px; font-weight: 500; padding: 3px 6px; border-radius: 5px; }

html#cz-product body .category-sections-grid > .card > .card-header { display: grid !important; grid-template-columns: minmax(150px,1fr) minmax(180px,1fr) auto; align-items: center !important; gap: 10px !important; }
html#cz-product body .category-sections-grid .category-card-tools { padding: 0; border: 0; grid-template-columns: minmax(90px,1fr) minmax(100px,auto); gap: 6px; min-width: 0; }
html#cz-product body .category-card-tools .input-group { min-width: 0; }
html#cz-product body .category-sections-grid .card-header > div:first-child { gap: 8px !important; min-width: 0; }
@media(max-width:1599px) {
 html#cz-product body .category-sections-grid > .card > .card-header { grid-template-columns: minmax(0,1fr) auto; }
 html#cz-product body .category-sections-grid .category-card-tools { grid-row: 2; grid-column: 1 / -1; }
}

html#cz-product body .category-stat-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: 11px; line-height: 1.4; color: var(--cz-muted); }
html#cz-product body .category-stat-labels > span { display: inline-flex; flex-wrap: wrap; gap: 4px; }
html#cz-product body .category-stat-labels strong { color: var(--cz-text); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Auth fields reserve space for their inset icons and share a consistent baseline. */
html#cz-product body .auth-field { position: relative; }
html#cz-product body .auth-field .form-control { padding-inline-start: 42px !important; min-height: 48px; font-size: 14px; }
html#cz-product body .auth-field-icon { position: absolute; inset-inline-start: 15px; top: 50%; transform: translateY(-50%); z-index: 5; pointer-events: none; color: var(--cz-muted); }
html#cz-product body .auth-field.input-group { flex-wrap: nowrap; }
html#cz-product body .auth-field [data-toggle-password] { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 48px; padding-inline: 12px; }
html#cz-product body .auth-options-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
html#cz-product body .auth-remember { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
html#cz-product body .auth-options-row :is(strong,.auth-link) { font-size: 13px; font-weight: 500; }
html#cz-product body :is(.auth-brand-logo,.auth-brand-features,.auth-brand-footer) { color: var(--cz-text); }
/* Override legacy white branding text on the neutral authentication panel. */
html#cz-product body .auth-brand { background: var(--cz-secondary) !important; color: var(--cz-text); }
html#cz-product body .auth-brand :is(.auth-brand-logo,.auth-brand-logo > span,.auth-brand-heading,.auth-brand-heading strong,.auth-brand-features li) { color: var(--cz-text) !important; opacity: 1; }
html#cz-product body .auth-brand :is(.auth-brand-desc,.auth-brand-footer) { color: var(--cz-muted) !important; opacity: 1; }
html#cz-product body .auth-brand .auth-brand-features i { color: var(--cz-accent) !important; }

/* Dashboard savings: fit more goals without reducing text legibility. */
html#cz-product body .finance-card-savings .progress-group { gap: 4px; }
html#cz-product body .finance-card-savings .progress-group-item { padding-block: 5px; gap: 0; }
html#cz-product body .finance-card-savings .progress-group-header { margin-bottom: 0; }
html#cz-product body .finance-card-savings .progress-group-header small { margin-top: 1px; line-height: 1.25; }
html#cz-product body .finance-card-savings .progress-group-item .progress { margin-top: 4px; height: 3px; }

/* Shared sidebar brand lockup. */
html#cz-product body .sidebar-panel-header.dashboard-reference-brand {
  min-height: 68px !important;
  padding: 10px 12px !important;
  margin-bottom: 10px !important;
  gap: 8px;
}
html#cz-product body .dashboard-reference-brand .dashboard-reference-logo {
  display: inline-flex !important;
  margin-inline: 0 !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-width: 0;
  min-height: 44px;
  color: var(--cz-text) !important;
  text-decoration: none;
  border-radius: 10px;
}
html#cz-product body .dashboard-reference-brand .dashboard-reference-logo img {
  width: 36px !important;
  height: 36px !important;
  max-height: 36px !important;
  object-fit: contain;
  flex: 0 0 36px;
}
html#cz-product body .dashboard-reference-brand .dashboard-reference-logo > span {
  font-size: 19px !important;
  font-weight: 650 !important;
  letter-spacing: -0.6px;
  line-height: 1.2;
}
html#cz-product body .dashboard-reference-logo:focus-visible {
  outline: 2px solid var(--cz-accent);
  outline-offset: 4px;
}

/* Use identical scroll geometry on every shared sidebar, including Dashboard. */
html#cz-product body .sidebar-panel {
  scrollbar-gutter: stable;
}
html#cz-product body .sidebar-panel-section.active {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Collocation: a consistent section rhythm and aligned card edges. */
html#cz-product body .page-collocation { --col-gap: 20px; }
html#cz-product body .page-collocation .collocation-command-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
html#cz-product body .page-collocation .collocation-stat-grid { margin-bottom: 0; gap: 16px; }
html#cz-product body .page-collocation .compact-section { padding: 16px; margin: 0; }
html#cz-product body .page-collocation .workspace-grid { gap: 16px; }
html#cz-product body .page-collocation .workspace-tile { padding: 14px; }
html#cz-product body .page-collocation .workspace-tile-head { flex-wrap: wrap; gap: 12px; align-items: flex-start; }
html#cz-product body .page-collocation .workspace-tile-actions { flex-wrap: wrap; gap: 6px; }
html#cz-product body .page-collocation .section-grid {
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}
html#cz-product body .page-collocation .section-grid > div { min-width: 0; }
html#cz-product body .page-collocation .section-grid .card { height: 100%; margin-bottom: 0; }
html#cz-product body .page-collocation .balance-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 14px; }
html#cz-product body .page-collocation .collocation-ledger-grid { gap: 16px; align-items: stretch; }
html#cz-product body .page-collocation .collocation-ledger-grid > .card { height: 100%; }
html#cz-product body .page-collocation .card-header { padding: 14px 16px !important; gap: 12px !important; }
html#cz-product body .page-collocation .card-header > div { min-width: 0; flex: 1; }
html#cz-product body .page-collocation .card-header .small { font-weight: 400; line-height: 1.45; margin-top: 4px; }
html#cz-product body .page-collocation .collocation-ledger-grid .card-header { min-height: 84px; align-items: center; flex-wrap: nowrap !important; }
html#cz-product body .page-collocation .card-body { padding: 16px !important; }
@media (max-width: 767px) {
  html#cz-product body .page-collocation .workspace-grid,
  html#cz-product body .page-collocation .section-grid { grid-template-columns: minmax(0,1fr); }
  html#cz-product body .page-collocation .collocation-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html#cz-product body .page-collocation .card-header { flex-wrap: wrap !important; }
}

/* The panel already includes padding: its child must not add another viewport height. */
html#cz-product body .sidebar-panel { scrollbar-gutter: auto; }
html#cz-product body .sidebar-panel-section.active {
  min-height: 100% !important;
  height: auto !important;
  flex: 1 0 auto !important;
}

/* Table headings and their search/actions share one desktop toolbar. */
html#cz-product body .card-header:has(> .transaction-toolbar) {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
html#cz-product body .card-header > .transaction-toolbar {
  width: auto;
  flex: 0 1 auto;
  margin-left: auto;
  gap: 8px;
}
html#cz-product body .transaction-toolbar > .transaction-search-form {
  flex: 0 1 300px;
  flex-wrap: nowrap;
  gap: 6px;
}
html#cz-product body .transaction-search-form > .form-control {
  width: clamp(150px, 18vw, 260px);
  min-width: 0;
  flex: 1;
}
html#cz-product body .transaction-search-form > .btn { flex-shrink: 0; }
@media (min-width: 1024px) {
  html#cz-product body .card-header:has(> .transaction-toolbar),
  html#cz-product body .card-header > .transaction-toolbar { flex-wrap: nowrap !important; }
}
@media (max-width: 767px) {
  html#cz-product body .card-header > .transaction-toolbar { width: 100%; margin-left: 0; justify-content: flex-start; }
  html#cz-product body .transaction-toolbar > .transaction-search-form { flex: 1 1 100%; }
}

/* Keep the page size value clear of the select indicator. */
html#cz-product body .transaction-page-size { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
html#cz-product body .transaction-page-size label { margin: 0; color: var(--cz-muted); font-size: 13px; white-space: nowrap; }
html#cz-product body #transactionPageSize { width: 76px; min-width: 76px; min-height: 40px; padding: 8px 30px 8px 12px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
html#cz-product body #transactionPageSize:hover { border-color: var(--cz-muted); }
html#cz-product body #transactionPageSize:focus-visible { border-color: var(--cz-accent); outline: 2px solid var(--cz-accent); outline-offset: 2px; }

/* Quiet, readable dashboard transaction list. */
html#cz-product body #transactionsTable { margin-bottom: 0; }
html#cz-product body #transactionsTable tbody td { padding: 13px 14px !important; }
html#cz-product body #transactionsTable .transaction-date { white-space: nowrap; color: var(--cz-muted); font-variant-numeric: tabular-nums; }
html#cz-product body #transactionsTable .transaction-description { font-weight: 500; min-width: 200px; }
html#cz-product body #transactionsTable .transaction-amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
html#cz-product body #transactionsTable .transaction-type { color: var(--cz-muted); font-size: 12px; }
html#cz-product body #transactionsTable tbody tr:hover { background: var(--cz-hover); }

/* Collocation reference: strong type, quiet surfaces and a domestic banner. */
html#cz-product body .page-collocation { font-family: var(--cz-font); --col-gap: 18px; }
html#cz-product body .page-collocation h1 { font-size: 28px !important; font-weight: 750 !important; letter-spacing: -.7px; }
html#cz-product body .page-collocation :is(h5,.card-title) { font-weight: 700 !important; font-size: 16px !important; letter-spacing: -.2px; }
html#cz-product body .page-collocation .collocation-workspace-banner { background: linear-gradient(110deg,var(--cz-surface) 35%,#fff0df) !important; position: relative; overflow: hidden; padding: 20px !important; }
html#cz-product body .page-collocation .collocation-workspace-banner::before { content: ""; position: absolute; width: 34%; inset: 0 0 0 auto; background: url('../img/collocation/living-room.svg') right center / contain no-repeat; pointer-events: none; }
html#cz-product body .page-collocation .collocation-workspace-banner > * { position: relative; }
html#cz-product body .page-collocation .collocation-workspace-banner h5 { font-size: 20px !important; }
html#cz-product body .page-collocation .workspace-grid { grid-template-columns: 1fr; width: 72%; }
html#cz-product body .page-collocation .workspace-tile { background: var(--cz-surface); border-color: var(--cz-line); border-radius: 12px; padding: 16px; }
html#cz-product body .page-collocation .workspace-tile-title { font-size: 15px; font-weight: 700; }
html#cz-product body .page-collocation .workspace-tile-stats { margin-top: 14px; border-radius: 10px; background: var(--cz-bg); }
html#cz-product body .page-collocation .collocation-stat { min-height: 88px; padding: 16px 18px; justify-content: flex-start; gap: 16px; }
html#cz-product body .page-collocation .collocation-stat-icon { order: -1; width: 48px; height: 48px; border-radius: 15px; font-size: 23px; flex-shrink: 0; }
html#cz-product body .page-collocation .collocation-stat-value { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
html#cz-product body .page-collocation .collocation-stat-label { margin-top: 4px; font-size: 12px; }
html#cz-product body .page-collocation .balance-card { border: 0; border-radius: 12px; background: color-mix(in srgb, #448aff 11%, var(--cz-surface)); padding: 16px; }
html#cz-product body .page-collocation .balance-name { font-weight: 700; font-size: 15px; }
html#cz-product body .page-collocation .member-avatar { width: 46px; height: 46px; font-size: 19px; }
html#cz-product body .page-collocation .workspace-icon { font-weight: 500; }
html#cz-product[data-theme=dark] body .page-collocation .collocation-workspace-banner { background: linear-gradient(110deg,var(--cz-surface) 35%,#33291f) !important; }
html#cz-product[data-theme=dark] body .page-collocation .collocation-workspace-banner::before { opacity: .55; }
@media(max-width: 1100px) {
 html#cz-product body .page-collocation .workspace-grid { width: 100%; }
 html#cz-product body .page-collocation .collocation-workspace-banner::before { display: none; }
}
@media(max-width: 575px) {
 html#cz-product body .page-collocation .collocation-stat { padding: 12px; gap: 8px; flex-wrap: wrap; }
 html#cz-product body .page-collocation .collocation-stat-value { font-size: 18px; }
}

/* Dashboard reference: confident typography and spacious, restrained cards. */
html#cz-product body .page-dashboard-finance { font-family: var(--cz-font); }
html#cz-product body .page-dashboard-finance h1 { font-size: 28px !important; font-weight: 750 !important; letter-spacing: -.7px; }
html#cz-product body .page-dashboard-finance :is(.card-title,.chart-header-title) { font-size: 15px !important; font-weight: 700 !important; letter-spacing: -.2px; }
html#cz-product body .page-dashboard-finance :is(.dashboard-grid,.dashboard-modules-grid) { gap: 14px; }
html#cz-product body .page-dashboard-finance .card { border-radius: 14px !important; box-shadow: 0 3px 18px #18233305 !important; }
html#cz-product body .page-dashboard-finance .finance-stat-grid .widget-stat { padding: 18px !important; min-height: 174px; }
html#cz-product body .page-dashboard-finance .finance-stat-grid .widget-stat-header { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
html#cz-product body .page-dashboard-finance .finance-stat-grid .widget-stat-header > div:not(.widget-stat-icon) { display: flex; flex-direction: column; gap: 5px; width: 100%; }
html#cz-product body .page-dashboard-finance .finance-stat-grid .widget-stat-label { order: -1; font-size: 12px !important; color: var(--cz-muted); }
html#cz-product body .page-dashboard-finance .finance-stat-grid .widget-stat-value { font-size: clamp(19px,1.4vw,25px) !important; font-weight: 750 !important; letter-spacing: -.6px; font-variant-numeric: tabular-nums; line-height: 1.2; }
html#cz-product body .page-dashboard-finance .finance-stat-grid .widget-stat-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 20px; color: #e96310; background: #fff0e4; }
html#cz-product body .page-dashboard-finance .finance-stat-grid .widget-stat:nth-child(2) .widget-stat-icon,
html#cz-product body .page-dashboard-finance .finance-stat-grid .widget-stat:nth-child(4) .widget-stat-icon { color: #078249; background: #e6f7ed; }
html#cz-product body .page-dashboard-finance .finance-stat-grid .widget-stat:nth-child(3) .widget-stat-icon { color: #e53754; background: #ffe8ed; }
html#cz-product body .page-dashboard-finance .finance-stat-grid .widget-stat:nth-child(5) .widget-stat-icon { color: #087ef5; background: #e6f2ff; }
html#cz-product body .page-dashboard-finance .finance-stat-grid .widget-stat:nth-child(6) .widget-stat-icon { color: #7756df; background: #f0ebff; }
html#cz-product body .page-dashboard-finance .revenue-stat-value { font-weight: 700; font-variant-numeric: tabular-nums; }
html#cz-product body .page-dashboard-finance .finance-mini-title { font-weight: 600; }
html#cz-product body .page-dashboard-finance .dashboard-calendar-week-day { padding-block: 9px; }
html#cz-product body .page-dashboard-finance .dashboard-calendar-week-date { border-radius: 10px; }
html#cz-product[data-theme=dark] body .page-dashboard-finance .finance-stat-grid .widget-stat-icon { background: var(--cz-secondary); }
@media(max-width:575px) {
 html#cz-product body .page-dashboard-finance h1 { font-size: 23px !important; }
 html#cz-product body .page-dashboard-finance .finance-stat-grid .widget-stat { padding: 14px !important; }
}

/* Transactions: reference typography and a compact, aligned finance overview. */
html#cz-product body .page-transactions h1 { font-size: 28px !important; font-weight: 750 !important; letter-spacing: -.6px; }
html#cz-product body .page-transactions .card-title { font-size: 16px !important; font-weight: 700 !important; }
html#cz-product body .page-transactions .card { border-radius: 14px !important; }
html#cz-product body .page-transactions > .row:has(.transaction-summary-card) { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; margin-inline: 0; }
html#cz-product body .page-transactions > .row:has(.transaction-summary-card) > div { width: auto; min-width: 0; padding: 0; margin-top: 0; }
html#cz-product body .page-transactions .transaction-summary-card .card-body { padding: 18px !important; gap: 12px; }
html#cz-product body .page-transactions .transaction-summary-card .widget-stat-value { font-size: 24px; font-weight: 750; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
html#cz-product body .page-transactions .transaction-summary-card .widget-stat-header > div:first-child { display: flex; flex-direction: column; gap: 8px; }
html#cz-product body .page-transactions .transaction-summary-card .widget-stat-label { order: -1; font-weight: 600; color: var(--cz-text); }
html#cz-product body .page-transactions .transaction-summary-card .widget-stat-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 20px; flex-shrink: 0; }
html#cz-product body .page-transactions .transaction-summary-meta { font-size: 12px; line-height: 1.5; }
html#cz-product body .page-transactions .transaction-toolbar { gap: 10px; }
html#cz-product body .page-transactions table tbody td { padding: 14px 12px !important; border-color: var(--cz-line) !important; }
html#cz-product body .page-transactions table thead th { padding: 12px !important; font-weight: 600; }
html#cz-product body .page-transactions table tbody tr:hover { background: var(--cz-hover); }
html#cz-product body .page-transactions table .badge { border-radius: 7px; padding: 5px 8px; font-weight: 500; }
html#cz-product body .page-transactions table .text-end { font-variant-numeric: tabular-nums; }
@media(max-width:1199px) { html#cz-product body .page-transactions > .row:has(.transaction-summary-card) { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:575px) { html#cz-product body .page-transactions > .row:has(.transaction-summary-card) { grid-template-columns: minmax(0,1fr); } }

/* Put each summary icon immediately before its heading, as in the reference. */
html#cz-product body .page-transactions .transaction-summary-card .widget-stat-header { display: grid; grid-template-columns: 38px minmax(0,1fr); grid-template-rows: auto auto; gap: 5px 12px; align-items: center; }
html#cz-product body .page-transactions .transaction-summary-card .widget-stat-header > div:first-child { display: contents; }
html#cz-product body .page-transactions .transaction-summary-card .widget-stat-icon { grid-column: 1; grid-row: 1 / 3; align-self: start; }
html#cz-product body .page-transactions .transaction-summary-card .widget-stat-label { grid-column: 2; grid-row: 1; font-size: 12px; line-height: 1.4; }
html#cz-product body .page-transactions .transaction-summary-card .widget-stat-value { grid-column: 2; grid-row: 2; font-size: clamp(18px,1.4vw,24px); }
html#cz-product body .page-transactions .transaction-summary-card .widget-stat-icon.primary { color: #4265e8; background: #edf0ff; }
html#cz-product body .page-transactions .transaction-summary-card .widget-stat-icon.danger { color: #e33450; background: #ffe9ed; }
html#cz-product body .page-transactions .transaction-summary-card .widget-stat-icon.success { color: #008854; background: #e1f6ed; }
html#cz-product body .page-transactions .transaction-summary-card .widget-stat-icon.warning { color: #d95506; background: #fff0e3; }
html#cz-product body .page-transactions .transaction-summary-card .widget-stat-icon.info { color: #7940df; background: #f1eaff; }
html#cz-product body .page-transactions .card-title > .bi { color: var(--cz-accent); margin-inline-end: 9px; }
html#cz-product[data-theme=dark] body .page-transactions .transaction-summary-card .widget-stat-icon { background: var(--cz-secondary); }

/* Reports reference layout. */
html#cz-product body .page-reports .reports-title { font-size: 30px !important; font-weight: 750 !important; letter-spacing: -.7px; }
html#cz-product body .page-reports > .report-grid-2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px !important; }
html#cz-product body .page-reports .report-card { border-radius: 16px !important; padding: 18px !important; }
html#cz-product body .page-reports .report-card-title { display: flex; align-items: center; gap: 10px; font-size: 17px !important; font-weight: 700 !important; }
html#cz-product body .page-reports .report-card-title > i { color: #ff6b18; background: #fff1e6; border-radius: 9px; padding: 7px; }
html#cz-product body .page-reports .report-category-balance-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
html#cz-product body .page-reports .report-category-balance-grid .report-category-item { border: 1px solid var(--cz-line); border-radius: 10px; padding: 10px; min-width: 0; }
html#cz-product body .page-reports .report-category-row { gap: 8px; font-size: 12px; }
html#cz-product body .page-reports .report-category-row strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
html#cz-product body .page-reports .report-progress { height: 6px; margin-top: 7px; border-radius: 6px; }
html#cz-product body .page-reports .report-compare-bars { padding-top: 14px; min-height: 220px; }
html#cz-product body .page-reports .report-mini-table td { padding: 12px 10px !important; }
html#cz-product body .page-reports .report-mini-table th { padding: 12px 10px !important; font-weight: 600; }
html#cz-product body .page-reports .report-extra { margin-top: 18px; }
html#cz-product body .page-reports .report-extra > summary { cursor: pointer; padding: 14px; font-weight: 600; color: var(--cz-muted); }
html#cz-product[data-theme=dark] body .page-reports .report-card-title > i { background: var(--cz-secondary); }
@media(max-width:1000px) { html#cz-product body .page-reports > .report-grid-2 { grid-template-columns: 1fr; } }
@media(max-width:575px) { html#cz-product body .page-reports .report-category-balance-grid { grid-template-columns: 1fr; } }

html#cz-product body .report-chart-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 14px 10px; margin-top: 16px; border-radius: 12px; background: var(--cz-bg); }
html#cz-product body .report-chart-stat { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
html#cz-product body .report-chart-stat > div { min-width: 0; }
html#cz-product body .report-chart-stat :is(span,strong,small) { display: block; }
html#cz-product body .report-chart-stat span { font-size: 11px; color: var(--cz-muted); }
html#cz-product body .report-chart-stat strong { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; margin-block: 4px; overflow-wrap: anywhere; }
html#cz-product body .report-chart-stat small { font-size: 10px; color: var(--cz-muted); }
html#cz-product body .report-chart-stat-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; font-size: 19px; }
html#cz-product body .report-chart-stat-icon.income { color: #14804a; background: #e2f5e9; }
html#cz-product body .report-chart-stat-icon.expenses { color: #cb2947; background: #ffe8ee; }
html#cz-product body .report-chart-stat-icon.net { color: #2669b0; background: #e6effb; }
@media(max-width:575px) { html#cz-product body .report-chart-stat { flex-direction: column; gap: 5px; } html#cz-product body .report-chart-summary { gap: 8px; } }

/* Use the native Apple UI font on Apple devices, with system fallbacks elsewhere.
   Scope text elements explicitly so icon and monospace fonts remain intact. */
html#cz-product:not([lang="ar"]) body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html#cz-product:not([lang="ar"]) body :is(h1,h2,h3,h4,h5,h6,p,a,button,input,select,textarea,label,table,.sitename,.navmenu,.card-title,.panel-link) {
  font-family: var(--cz-font) !important;
}
