/* HUU 9.0.32 – přehled podle schváleného prvního vizuálního směru; skutečné obrázky zůstávají */
.view[data-screen="dashboard"] .welcome{min-height:208px;border-color:#f3e4d6;background:linear-gradient(135deg,#fff8f3 0%,#fff 61%,#fff2df 100%);box-shadow:0 8px 22px #713b1210}
.view[data-screen="dashboard"] .welcome h1{font-size:clamp(29px,3vw,38px);font-weight:850}
.view[data-screen="dashboard"] .welcome>img{max-height:178px;opacity:1}
.view[data-screen="dashboard"] .dashboard-toolbar{margin-top:24px}
.view[data-screen="dashboard"] .stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:11px}
.view[data-screen="dashboard"] .stat{padding:18px 15px 15px;min-height:144px;box-shadow:0 8px 22px #263c2910;border-radius:17px;position:relative;overflow:hidden;isolation:isolate}
.view[data-screen="dashboard"] .stat::before{content:"";position:absolute;top:auto;right:-24px;bottom:-30px;width:110px;height:65px;border-radius:55% 45% 0 0;background:var(--tile-haze,#ecf8ec);opacity:.8;z-index:-1}
.view[data-screen="dashboard"] .stat[data-kind="paid"]{border-color:#cde8d1;--tile-haze:#d8f3df}
.view[data-screen="dashboard"] .stat[data-kind="awaiting"]{border-color:#f4e4c9;--tile-haze:#fff0d9}
.view[data-screen="dashboard"] .stat[data-kind="overdue"]{border-color:#f5d9d9;--tile-haze:#ffe2df}
.view[data-screen="dashboard"] .stat[data-kind="expenses"]{border-color:#e3e1f2;--tile-haze:#ece8fb}
.view[data-screen="dashboard"] .stat[data-kind="profit"]{border-color:#b8dfc0;--tile-haze:#ceefda;background:#fbfffc}
.view[data-screen="dashboard"] .huu-kpi-heading{display:flex;align-items:center;gap:8px;margin-bottom:11px}
.view[data-screen="dashboard"] .huu-kpi-icon{display:flex;align-items:center;justify-content:center;flex:none;width:29px;height:29px;background:#fff;border-radius:10px;color:#3d9f58;box-shadow:0 2px 6px #0000000b}
.view[data-screen="dashboard"] .huu-kpi-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.view[data-screen="dashboard"] .stat[data-kind="awaiting"] .huu-kpi-icon{color:#e78b23}
.view[data-screen="dashboard"] .stat[data-kind="overdue"] .huu-kpi-icon{color:#d85b54}
.view[data-screen="dashboard"] .stat[data-kind="expenses"] .huu-kpi-icon{color:#8267aa}
.view[data-screen="dashboard"] .stat[data-kind="profit"] .huu-kpi-icon{color:#29984a}
.view[data-screen="dashboard"] .stat .stat-label{font-size:12px;margin:0;color:#37443d;font-weight:800;white-space:nowrap}
.view[data-screen="dashboard"] .stat strong{font-size:clamp(19px,1.65vw,28px);line-height:1.2;letter-spacing:-.7px;overflow:hidden;text-overflow:ellipsis}
.view[data-screen="dashboard"] .stat .huu-kpi-subtitle{margin-top:10px;font-size:11px;color:#6e7b70;min-height:28px;line-height:1.25}
.view[data-screen="dashboard"] .stat .stat-open{color:#e07823;font-size:11px}
.view[data-screen="dashboard"] .stat.locked{opacity:.73;background:#f9f8f5}
.view[data-screen="dashboard"] .stat.locked strong{font-size:16px}
#dashboard-advances{margin:0 0 17px;display:flex;justify-content:flex-end}
.huu-advances-mini{border:1px solid #edebe5;border-radius:10px;background:#fff;display:flex;gap:12px;align-items:center;padding:8px 11px;color:#6a6f68;font-size:11px}
.huu-advances-mini strong{font-size:12px;color:#363d35}
.huu-advances-mini span:last-child{font-size:16px;color:#ee7b26}
.view[data-screen="dashboard"] .dashboard-lower{display:flex;flex-direction:column;gap:16px}
.view[data-screen="dashboard"] .chart-panel{padding:24px 26px;box-shadow:0 8px 24px #2f332b0a;border-radius:19px}
.view[data-screen="dashboard"] .chart-title-row h2{font-size:21px}
.view[data-screen="dashboard"] .chart-title-row .muted{font-size:12px}
.chart.chart-profit{width:100%;min-width:0;background:#fff!important}
.huu-trend-layout{display:grid;grid-template-columns:minmax(0,1fr) 190px;align-items:stretch;gap:16px;min-width:0}
.huu-trend-visual{position:relative;min-width:0;overflow-x:auto}
.huu-trend-visual svg{display:block;width:100%;min-width:500px;height:auto;max-height:320px}
.huu-chart-paid{fill:#42ab69}
.huu-chart-cost{fill:#e9787a}
.huu-chart-profit-marker{fill:#f47b20;stroke:#fff;stroke-width:3.5;pointer-events:none}
.huu-chart-gridline{stroke:#e5e8e3;stroke-width:1;stroke-dasharray:4 6}
.huu-chart-zero{stroke:#aeb8ad;stroke-width:1.7}
.huu-chart-hit{fill:transparent;cursor:pointer;outline:none}
.huu-chart-hit:hover,.huu-chart-hit.active{fill:#f47b2012}
.huu-chart-hit:focus-visible{stroke:#f47b20;stroke-width:2}
.huu-trend-tooltip{position:absolute;left:10px;top:4px;z-index:3;pointer-events:none;box-shadow:0 11px 30px #18211720;border-radius:12px;background:#ffffffef;border:1px solid #eee5dc;padding:11px 15px;min-width:220px;font-size:12px}
.huu-trend-tooltip strong{display:block;margin-bottom:9px;font-size:13px}
.huu-trend-tooltip span{display:flex;align-items:center;gap:7px;margin:5px 0}
.huu-trend-tooltip span b{margin-left:auto}
.huu-trend-tooltip small{display:block;color:#747c73}
.huu-detail-dot{display:inline-block;flex:none;width:9px;height:9px;border-radius:100%}
.huu-detail-dot.paid{background:#42ab69}.huu-detail-dot.cost{background:#e9787a}.huu-detail-dot.profit{background:#f47b20}
.huu-trend-insight{border-radius:16px;background:linear-gradient(160deg,#f7fff8,#ebf8ed);border:1px solid #d9efda;padding:19px 16px;display:flex;flex-direction:column;gap:10px;justify-content:center;min-height:195px}
.huu-trend-insight small{font-size:12px;color:#6c7d6c}
.huu-trend-insight strong{font-size:16px;color:#2b5035}
.huu-trend-insight .huu-insight-value{font-size:clamp(20px,2.1vw,29px);color:#27964b;line-height:1.15;letter-spacing:-1px;overflow-wrap:anywhere}
.huu-trend-insight span{font-size:11px;line-height:1.45;color:#6d8172}
.view[data-screen="dashboard"] .chart-legend{font-size:12px;margin-top:12px}
.dashboard-bottom-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:16px}
.dashboard-bottom-grid .white-panel{border-radius:17px;box-shadow:0 8px 24px #2f332b0b}
.huu-quick-panel{display:flex;flex-direction:column;gap:9px}
.huu-quick-panel button{border-radius:10px;min-height:41px;text-align:left;padding:10px 14px;font-weight:750}
.huu-quick-main{background:#f47b20;border:1px solid #eb7520;color:#fff}
.huu-quick-secondary{background:#fff;border:1px solid #e7e8e3;color:#434a40}
.huu-quick-secondary.tier-locked{opacity:.58;cursor:not-allowed}
.huu-quick-secondary.tier-locked::after{content:' 🔒'}
#quick-expenses-action[hidden]{display:none!important}
@media(max-width:1270px){.view[data-screen="dashboard"] .stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:910px){.huu-trend-layout{grid-template-columns:1fr}.huu-trend-insight{min-height:110px;gap:6px}.dashboard-bottom-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.view[data-screen="dashboard"] .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-bottom-grid{grid-template-columns:1fr}.view[data-screen="dashboard"] .stat{min-height:132px}.view[data-screen="dashboard"] .chart-panel{padding:17px 14px}.huu-trend-visual svg{min-width:520px}.view[data-screen="dashboard"] .welcome h1{font-size:26px}}
