/* Compact Space workspace: shared toolbar and three summary panels. */
.app-page .workspace:has(.dashboard-home){background:#edf3f6;padding:20px 28px 32px}.dashboard-home{max-width:1500px;margin:0 auto;color:#244453}.dashboard-home h1,.dashboard-home h2,.dashboard-home h3{letter-spacing:-.025em;color:#244453}.dashboard-home .dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid #e6edf1;border-radius:10px;padding:17px 20px;margin:0 0 16px;box-shadow:0 2px 7px #264a5c04}.dashboard-hero h1{font-size:23px;line-height:1.25;font-weight:700;margin:0 0 4px}.dashboard-hero p{font-size:12px;color:#708894;margin:0}.dashboard-date{font-size:11px;color:#77909d;white-space:nowrap}.dashboard-eyebrow{font-size:9px;letter-spacing:.13em;font-weight:650;color:#7393a0}
.finance-overview{margin:0 0 20px}.finance-heading{margin:0 0 10px}.finance-filters{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;width:100%;margin:0}.finance-filters label{margin:0;font-size:9px;font-weight:600;color:#6b8490}.finance-filters select,.finance-filters input{display:block;margin:4px 0 0;min-height:35px;max-width:210px;font-size:11px;padding:7px 10px;border:1px solid #cbdbe4;border-radius:7px;background:#fff;color:#294d60;box-shadow:0 1px 2px #264a5c04}.finance-filters select[name=company]{min-width:160px}.finance-filters input[type=date]{max-width:155px}.finance-filters [hidden]{display:none!important}.finance-period-tabs{display:flex;align-self:flex-end;gap:6px;margin-right:auto}.finance-period-tabs button{margin:0;font-size:11px;line-height:1.3;font-weight:650;background:#fff;color:#3c6275;border:1px solid #c8dae4;border-radius:7px;min-height:35px;padding:8px 16px;white-space:nowrap}.finance-period-tabs button:hover{background:#e2f0f5;border-color:#79a8ba}.finance-period-tabs button.is-active{background:#4c91a6;color:#fff;border-color:#4c91a6;box-shadow:0 3px 7px #4c91a619}.finance-status-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px;min-height:24px}.finance-status{display:flex;align-items:center;gap:7px;color:#75909a;font-size:10px;flex-wrap:wrap}.status-dot{height:6px;width:6px;flex-shrink:0;background:#69a78f;border-radius:50%}.status-dot.is-syncing{background:#c7a364;animation:space-sync 1.5s ease-in-out infinite}.finance-status.is-warning{color:#9d713b}.finance-status.is-warning .status-dot{background:#c09868}.finance-status-row form>button.finance-refresh{display:flex;align-items:center;gap:5px;margin:0;background:transparent;color:#5c8091;border:0;border-radius:6px;padding:3px 6px;font-size:10px}.finance-refresh span{font-size:15px}.finance-refresh:disabled{opacity:.45;cursor:default}.finance-warning{margin:0 0 9px;border:1px solid #efddbd;background:#fff8ec;border-radius:8px;padding:9px 13px;color:#88612f;font-size:11px;line-height:1.6}
.finance-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:15px}.finance-metric,.finance-metric.is-primary{display:flex;flex-direction:column;min-width:0;border:1px solid #dae5ec;border-radius:11px;background:#fff;box-shadow:0 3px 13px #284b6210;overflow:hidden;color:#244453;transition:border-color .16s,box-shadow .16s,background .16s;min-height:200px}.metric-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;background:#f5f8fa;border-bottom:1px solid #e7eef2;padding:12px 15px;color:#264a5d;font-size:13px;font-weight:700}.metric-title{display:flex;align-items:center;gap:8px;min-width:0;line-height:1.3}.metric-icon{display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;border-radius:50%;background:#e1eef3;color:#4c91a6}.metric-icon svg{height:15px;width:15px}.metric-mode{flex-shrink:0;color:#658392;font-size:10px;font-weight:500;padding:3px 7px;background:#e6f0f4;border-radius:5px}.metric-body{display:flex;flex:1;flex-direction:column;justify-content:center;padding:17px 18px;min-width:0}.finance-metric strong{display:block;min-width:0;white-space:nowrap;line-height:1.3;font-size:clamp(22px,2.1vw,33px);letter-spacing:-.035em;font-weight:700;font-variant-numeric:tabular-nums;margin:0 0 6px;color:#264e64}.finance-metric.is-primary strong{color:#347c94}.finance-metric small{font-size:10px;color:#8199a7;line-height:1.5;display:block}.finance-metric .metric-kicker{font-size:9px;margin-bottom:8px;color:#8a9da7}.metric-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;background:#fbfcfd;border-top:1px solid #e7eef3;padding:9px 15px;font-size:9px;color:#849ba8;min-height:35px}.metric-average{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px}.metric-average strong{margin:0;text-align:right;font-size:17px;color:#517e93}.metric-invoice-card .metric-body strong{font-size:39px}.metric-invoice-card .metric-footer{color:#7190a1}.finance-detail-grid{display:grid;grid-template-columns:minmax(0,1fr)}.finance-detail-grid>.panel{padding:0;margin:0;min-width:0;background:#fff;border:1px solid #dae5ec;border-radius:11px;box-shadow:0 3px 13px #284b6210}.finance-chart-panel .block-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:12px 17px;background:#f5f8fa;border-bottom:1px solid #e7eef2;border-radius:11px 11px 0 0}.finance-chart-panel h3{font-size:14px;font-weight:700;margin:0 0 2px}.finance-chart-panel .muted{font-size:9px;color:#7e97a5}.chart-legend{display:flex;align-items:center;gap:6px;font-size:10px;color:#7f99a6}.chart-legend i{width:7px;height:7px;border-radius:2px;background:#5798ad}.revenue-chart-wrap{position:relative;padding:4px 10px 0}.revenue-chart{display:block;width:100%;height:230px;max-height:none;overflow:visible;margin:0}.chart-grid-line{stroke:#e8eff4;stroke-width:1;stroke-dasharray:3 5}.chart-zero-line{stroke:#d4e1e8;stroke-width:1}.chart-bar{fill:#acd0dd;transition:fill .15s}.chart-bar.is-current{fill:#5295aa}.chart-bar.is-negative{fill:#bd8c85}.revenue-chart g:hover .chart-bar,.revenue-chart g:focus .chart-bar{fill:#397d94}.revenue-chart g:focus{outline:none}.revenue-chart g:focus .chart-bar{stroke:#285065;stroke-width:2}.chart-month{fill:#8ba1ac;font:11px system-ui,sans-serif}.chart-month.is-future{fill:#c2ced6}.chart-hit-area{fill:transparent;pointer-events:all}.revenue-chart-tooltip{position:absolute;z-index:3;pointer-events:none;background:#274f63;color:#fff;border:1px solid #45768b;border-radius:8px;padding:9px 13px;box-shadow:0 5px 18px #1b425629;max-width:240px;line-height:1.5}.revenue-chart-tooltip strong{display:block;color:#cde4ed;font-size:10px;font-weight:500}.revenue-chart-tooltip span{display:block;font-size:14px;font-weight:650;white-space:normal}.finance-chart-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin:0;padding:10px 17px;border-top:1px solid #e7eef2}.finance-month-details{flex:1;min-width:0;margin:0;padding:0;border:0;font-size:10px}.finance-month-details summary{cursor:pointer;color:#5c879b}.finance-month-details table{margin-top:10px;font-size:11px}.finance-month-details td,.finance-month-details th{padding:7px 5px}.revenue-export{flex-shrink:0;font-size:10px;color:#5c879b}.finance-chart-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:190px;padding:18px;text-align:center}.finance-chart-empty h3{font-size:14px;margin:14px 0 8px}.finance-chart-empty p{max-width:360px;margin:0;color:#8a9faa;font-size:10px}.chart-empty-bars{display:flex;align-items:end;height:47px;gap:8px}.chart-empty-bars i{width:14px;height:30%;border-radius:4px;background:#dbeaf1}.chart-empty-bars i:nth-child(2n){height:65%}.chart-empty-bars i:nth-child(3n){height:90%;background:#a6cbdc}.chart-empty-bars i:nth-child(5){height:50%}.finance-setup{display:flex;gap:16px;align-items:center;padding:22px;border:1px solid #dae5ec;background:#fff;border-radius:11px;box-shadow:0 3px 13px #284b6210}.finance-setup-symbol{flex-shrink:0;display:grid;place-items:center;height:45px;width:45px;border-radius:12px;background:#e3f0f5;color:#5894a9;font-size:25px}.finance-setup h3{font-size:16px;margin:0 0 6px;font-weight:650}.finance-setup p{margin:0;font-size:11px;color:#7b94a2;max-width:650px}.finance-setup .button{margin-left:auto;white-space:nowrap;font-size:11px;padding:9px 13px;border-radius:7px}
.dashboard-work-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 11px}.dashboard-work-title .dashboard-eyebrow{display:none}.dashboard-work-title h2{font-size:16px;font-weight:650;margin:0}.dashboard-work-counts{display:flex;gap:7px;flex-wrap:wrap}.dashboard-work-counts a{font-size:10px;color:#6b8a9c;background:#e2edf3;border:1px solid #d5e3eb;border-radius:6px;padding:4px 9px}.dashboard-home .dashboard-mails,
.dashboard-home .dashboard-entities,
.dashboard-home .dashboard-calendar{padding:0;border-radius:11px;border:1px solid #dae5ec;box-shadow:0 3px 13px #284b6210;background:#fff;margin-bottom:16px;overflow:hidden}.dashboard-home .dashboard-mails .block-heading,
.dashboard-home .dashboard-entities .block-heading,
.dashboard-home .dashboard-calendar > .block-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 17px;margin:0;background:#f5f8fa;border-bottom:1px solid #e7eef2}.dashboard-home .block-heading h2{font-size:14px;font-weight:700;margin:0}.dashboard-home .block-heading small{font-size:9px;color:#8ca0ad}.dashboard-home .block-heading>a{font-size:10px;color:#648ba0}.dashboard-home .dashboard-mails .block-heading button{font-size:10px;padding:7px 11px;border-radius:7px;background:#5194a9}.dashboard-count{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;background:#e0edf3;color:#7096a9;font-size:9px;min-width:20px;height:19px;padding:0 5px;margin-left:5px;border-radius:5px}.dashboard-home .dashboard-mails th{background:#fcfdfe;color:#849ba9;font-size:9px;text-transform:uppercase;letter-spacing:.05em;font-weight:600;padding:10px 17px;border-color:#eaf0f4}.dashboard-home .dashboard-mails td{font-size:11px;padding:9px 17px;border-color:#eff3f6}.dashboard-home .dashboard-mail-row:hover td{background:#f0f7fa}.dashboard-home .dashboard-mails .dashboard-pager{padding:10px 17px;margin:0;background:#fff}.dashboard-home .dashboard-pager .button,.dashboard-home .dashboard-pager .pager-current{font-size:9px;border-radius:6px}.dashboard-home .dashboard-calendar > .calendar-agenda{padding:14px 17px}
.dashboard-home .dashboard-entities>.entity-grid{padding:14px;gap:11px;margin:0}.dashboard-home .project-tiles{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}.dashboard-home .project-tile{padding:15px;border-radius:8px;border-color:#dfE9ef;min-height:195px;box-shadow:none;background:#fff}.dashboard-home .project-tile h3{font-size:13px;margin:12px 0 7px}.dashboard-home .project-tile .project-tile-top .entity-symbol{width:30px;height:30px;border-radius:8px;background:#e7f1f6;color:#6d9bb0}.dashboard-home .project-tile-arrow svg{width:15px}.dashboard-home .project-tile-customer{font-size:9px}.dashboard-home .project-tile p{font-size:10px;line-height:1.5;margin:11px 0 13px;-webkit-line-clamp:2}.dashboard-home .project-tile-company{font-size:9px;background:#edf5f8;color:#7495a5;padding:6px 8px;margin-top:8px;border-radius:6px}.dashboard-home .project-tile-company>span{font-size:8px}.dashboard-home .project-tile-footer{font-size:9px}.dashboard-home .customer-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.dashboard-home .customer-grid .entity-card{padding:15px;min-height:130px;border:1px solid #dfe9ef;border-radius:8px;background:#fff;box-shadow:none}.dashboard-home .customer-grid .entity-symbol{height:30px;width:30px;font-size:14px;border-radius:8px;background:#e7f1f6;color:#6d9bb0}.dashboard-home .customer-grid h3{font-size:13px;margin:11px 0 4px}.dashboard-home .customer-grid .muted,.dashboard-home .customer-grid p{font-size:10px;overflow-wrap:anywhere}.dashboard-home .customer-grid p{margin:6px 0 0}
@media(hover:hover){.finance-metric:hover,.finance-metric.is-primary:hover{background:#f2f9fc;border-color:#8eb7c8;box-shadow:0 5px 17px #3f7d961b}.finance-metric:hover .metric-top{background:#e5f1f6}.finance-metric:hover .metric-body strong{color:#2d7d9a}.dashboard-home .entity-card:hover{border-color:#8eb7c8;background:#f6fbfd}}
@keyframes space-sync{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.status-dot.is-syncing{animation:none}.finance-metric,.chart-bar{transition:none}}
@media(min-width:1250px){.dashboard-home .project-tiles,.dashboard-home .customer-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1100px){.finance-period-tabs{flex-basis:100%;margin-bottom:2px}.finance-period-tabs button{flex:1}.finance-filters label{flex:1}.finance-filters select{max-width:none;width:100%}.finance-filters select[name=company]{min-width:0}.metric-top{font-size:12px;padding:11px 12px}.metric-body{padding:15px}.metric-footer{padding:9px 12px}.finance-metric strong{font-size:26px}.metric-average strong{font-size:16px}.metric-icon{height:22px;width:22px}}
@media(max-width:900px){.app-page .workspace:has(.dashboard-home){padding:18px}.finance-metrics{gap:11px}.metric-top{font-size:11px}.metric-title{gap:6px}.metric-mode{font-size:9px;padding:3px 5px}.finance-metric strong{font-size:23px}.metric-average{grid-template-columns:1fr;gap:3px}.metric-average strong{text-align:left;font-size:16px}.metric-footer{font-size:8px}.metric-body{padding:14px}.dashboard-hero h1{font-size:21px}}
@media(max-width:650px){.dashboard-home .dashboard-hero{padding:14px 15px;gap:10px}.dashboard-hero h1{font-size:20px}.dashboard-hero p{font-size:10px}.dashboard-date{font-size:9px}.finance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-metric{min-height:170px}.finance-metric.is-primary{grid-column:1/-1;min-height:180px}.finance-metric.is-primary strong{font-size:31px}.metric-body strong{font-size:23px}.metric-invoice-card .metric-body strong{font-size:33px}.metric-average{grid-template-columns:auto minmax(0,1fr);gap:8px}.metric-average strong{text-align:right;font-size:14px}.finance-filters{gap:7px}.finance-period-tabs{gap:5px}.finance-period-tabs button{font-size:10px;padding:8px 10px}.finance-filters label{flex:1 1 calc(50% - 7px)}.finance-filters input[type=date]{max-width:none;width:100%}.finance-chart-panel .block-heading,.finance-chart-footer{padding:11px 14px}.revenue-chart{height:210px}.finance-chart-footer{flex-direction:column;gap:10px}.finance-month-details{width:100%}.revenue-chart-tooltip{max-width:200px}.dashboard-work-title{flex-wrap:wrap}.dashboard-work-title h2{font-size:15px}.dashboard-home .dashboard-mails th,.dashboard-home .dashboard-mails td{padding-left:13px;padding-right:13px}.finance-setup{flex-wrap:wrap;padding:17px}.finance-setup-symbol{display:none}.finance-setup .button{margin-left:0}.dashboard-home .project-tiles,.dashboard-home .customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Company NAV fields also use this stylesheet. */
.company-nav-fields{background:#f5f9f6;border:1px solid #e0eae2;border-radius:16px;padding:16px 20px 22px}.company-nav-fields legend{float:none;width:auto;padding:0 7px;font-size:14px}.company-nav-fields .footnote{margin:0;font-size:11px}.company-nav-fields label{font-size:12px}.company-nav-fields small{font-size:10px;font-weight:400}.nav-field-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:15px}.nav-connection-badge{align-self:flex-start;display:inline-flex;font-size:10px;padding:5px 10px;border-radius:8px;background:#e8f3ec;color:#668774;margin:0 0 8px}.company-nav-source{font-size:11px;color:var(--muted);margin:6px 0 0}.company-nav-source select{min-height:36px;font-size:11px;padding:8px 12px}

/* 0.8.1: focused project summaries and softer customer cards. */
.dashboard-home .dashboard-project-tiles .project-tile{min-height:205px}.dashboard-home .dashboard-project-tiles .project-tile-top{margin-bottom:16px}.dashboard-home .dashboard-project-tiles .project-tile-top .entity-symbol{font-size:17px;width:39px;height:39px}.dashboard-home .dashboard-project-tiles .project-tile-customer{align-items:flex-start}.dashboard-home .dashboard-project-tiles .project-tile-customer>i{font-size:11px;flex-shrink:0;margin-top:3px}.dashboard-home .dashboard-project-tiles .project-tile>p{margin-bottom:0;-webkit-line-clamp:3}.dashboard-home .dashboard-project-tiles .project-tile:hover,.dashboard-home .dashboard-project-tiles .project-tile:hover *{text-decoration:none}
.dashboard-customer-tiles .dashboard-customer-card{--customer-accent:#4e8d9f;--customer-soft:#eaf4f7;position:relative;display:flex;align-items:stretch;aspect-ratio:auto;min-height:210px;padding:19px;border-radius:17px;background:linear-gradient(150deg,#fff 60%,var(--customer-soft));border-color:#dfe9ed;box-shadow:0 3px 14px #214c6004;transition:border-color .18s,box-shadow .18s,transform .18s}
.dashboard-customer-tiles .dashboard-customer-card:nth-child(5n+2){--customer-accent:#718e7e;--customer-soft:#eef5ef}.dashboard-customer-tiles .dashboard-customer-card:nth-child(5n+3){--customer-accent:#8b7c9e;--customer-soft:#f2eff7}.dashboard-customer-tiles .dashboard-customer-card:nth-child(5n+4){--customer-accent:#b08b67;--customer-soft:#f8f2eb}.dashboard-customer-tiles .dashboard-customer-card:nth-child(5n+5){--customer-accent:#6e8ba6;--customer-soft:#eef3f9}
.dashboard-customer-card>header{display:flex;align-items:center;gap:10px;margin-bottom:17px}.customer-monogram{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;border-radius:14px;background:var(--customer-soft);border:1px solid #ffffff;color:var(--customer-accent);font-size:15px;font-weight:650;letter-spacing:-.4px}.customer-card-label{font-size:9px;color:#9baab0;letter-spacing:.5px;margin-left:auto}.dashboard-customer-tiles .dashboard-customer-card h3{font-size:15px;font-weight:650;line-height:1.5;margin:0 0 14px;color:#375361;overflow-wrap:anywhere}.customer-card-details{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}.customer-card-details>span{display:flex;align-items:flex-start;gap:8px;font-size:10px;line-height:1.6;color:#83959f;min-width:0}.customer-card-details i{font-size:10px;flex:0 0 12px;margin-top:3px;color:var(--customer-accent);opacity:.7}.customer-card-details>span>span{min-width:0;overflow-wrap:anywhere}.customer-contact-empty{font-style:italic;font-size:10px!important;color:#a3b2b8!important}.dashboard-customer-card>footer{display:flex;align-items:center;gap:7px;margin-top:auto;padding-top:12px;border-top:1px solid #e7edef;font-size:10px;color:var(--customer-accent)}.dashboard-customer-card>footer>i{font-size:10px}.dashboard-customer-tiles .dashboard-customer-card:hover,.dashboard-customer-tiles .dashboard-customer-card:focus-visible{border-color:#b8cfd8;box-shadow:0 8px 22px #214c600b;transform:translateY(-2px);text-decoration:none}
@media(max-width:600px){.dashboard-customer-tiles{grid-template-columns:1fr}.dashboard-customer-tiles .dashboard-customer-card{min-height:180px}.dashboard-home .dashboard-project-tiles .project-tile{min-height:190px}}
@media(prefers-reduced-motion:reduce){.dashboard-customer-tiles .dashboard-customer-card,.header-logout .icon-button{transition:none}.dashboard-customer-tiles .dashboard-customer-card:hover{transform:none}}
