/* Fenua Cash Pro — Ape Flow V4 — couche de finition, aucune règle métier */
:root {--ink:#103e43;--ink-2:#2d5960;--muted:#71858b;--line:#e5eeec;--canvas:#f7faf9;--accent:#248c78;--accent-soft:#e5f4ee;--accent-ink:#fff;--radius-s:10px;--radius-m:17px;--sidebar-w:240px;--flow-shadow:0 10px 27px rgba(23,67,66,.055)}
body {background:radial-gradient(ellipse at 70% 0%,#eaf6f1 0%,transparent 48%),#f7faf9!important;color:#123b43!important;font-family:'Onest',system-ui,sans-serif!important}
.shell{grid-template-columns:var(--sidebar-w) minmax(0,1fr)!important}
.sidebar{background:linear-gradient(168deg,#123c43 0%,#0c4546 55%,#0b373b 100%)!important;color:#e5f5ef!important;padding:22px 9px 14px!important;border:0!important;box-shadow:inset -1px 0 rgba(255,255,255,.08)!important;position:sticky!important;overflow-y:auto!important;isolation:isolate}
.sidebar::after{content:''!important;position:fixed!important;bottom:18px!important;left:-44px!important;width:270px!important;height:245px!important;z-index:-1!important;background:url('/assets/ape-flow-decoration.svg') center/contain no-repeat!important;opacity:.095!important;transform:rotate(-18deg)!important;pointer-events:none!important}
.brand{background:rgba(3,39,48,.88)!important;margin:0 0 17px!important;border-radius:16px!important;padding:13px 12px!important;min-height:73px!important;box-shadow:0 8px 22px rgba(1,31,32,.19)!important}
.brand-mark{background:url('/assets/ape-flow-mark.svg') center/contain no-repeat!important;width:37px!important;height:39px!important;box-shadow:none!important;border:0!important}
.brand-mark::before,.brand-mark::after{display:none!important;content:none!important}
.brand-name{color:#fff!important;font-weight:800!important}.brand-sub{color:#b9d8d2!important}
.sidebar .nav{padding:0!important}.sidebar .nav a{color:#e2eeeb!important;border:0!important;border-radius:11px!important;margin:3px 0!important;padding:11px 14px!important;min-height:43px!important;background:transparent!important;font-weight:580!important;font-size:.91rem!important}
.sidebar .nav a.active{background:#268974!important;color:#fff!important;box-shadow:0 7px 16px rgba(0,0,0,.08)!important}
.sidebar .nav a:hover:not(.active){background:rgba(230,249,243,.09)!important;color:#fff!important}
.sidebar .nav-group,.sidebar .nav-section-toggle{color:#9db9bb!important;letter-spacing:.13em!important;font-size:.72rem!important}
.sidebar .nav-section{border:0!important}.sidebar .sidebar-foot{border-top:1px solid rgba(255,255,255,.16)!important;padding:15px 12px!important;background:transparent!important}.sidebar .me{color:#fff!important}.sidebar .link-btn{color:#bdd6d4!important}.sidebar .link-btn:hover{color:#fff!important}
.sidebar .sidebar-edge-toggle,.sidebar .sidebar-collapse-btn{color:#e8f6f0!important;background:rgba(255,255,255,.1)!important}
.main{padding:25px clamp(18px,2.2vw,37px) 54px!important;background:transparent!important;isolation:isolate!important}
.main::before{content:''!important;position:absolute!important;top:-18px!important;right:-14px!important;width:min(430px,33vw)!important;height:280px!important;z-index:-1!important;background:url('/assets/ape-flow-decoration.svg') center/contain no-repeat!important;opacity:.07!important;pointer-events:none!important}
.main:has(>.home-hero){display:grid!important;grid-template-columns:minmax(0,1.07fr) minmax(390px,.97fr)!important;gap:15px!important;align-content:start!important}
.main:has(>.home-hero)>.home-hero{grid-column:1!important;min-height:255px!important;display:flex!important;align-items:center!important;padding:27px 31px!important;margin:0!important;border-radius:18px!important;border:1px solid #dcece5!important;box-shadow:var(--flow-shadow)!important;background:linear-gradient(115deg,#fff 0%,#f6fcf8 46%,#e8f6ef 100%)!important;isolation:isolate!important;overflow:hidden!important}
.home-hero::before{content:''!important;display:block!important;position:absolute!important;right:-55px!important;top:-80px!important;width:68%!important;height:148%!important;background:url('/assets/ape-flow-decoration.svg') center/contain no-repeat!important;opacity:.15!important;pointer-events:none!important;z-index:0!important}
.home-hero::after{display:none!important}
.home-hero-main{position:relative!important;z-index:2!important;padding:0!important;min-height:0!important;max-width:none!important;width:100%!important}
.home-hero-copy{max-width:440px!important}.home-hero h1{font-family:'Onest',system-ui,sans-serif!important;color:#123e45!important;font-size:clamp(2rem,3vw,3.13rem)!important;font-weight:790!important;line-height:1.06!important;letter-spacing:-.05em!important;margin:14px 0!important}.home-hero p{color:#6d8389!important;font-size:.94rem!important;line-height:1.6!important;max-width:36ch!important}.home-date{color:#6e8587!important}.home-profile-pill{color:#267966!important;background:#e8f5ee!important;border-radius:6px!important;letter-spacing:.10em!important}
.home-hero-actions,.home-hero-visual{display:none!important}
.main:has(>.home-hero)>.home-kpis{grid-column:2!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:0!important;min-width:0!important}
.home-kpi{display:flex!important;align-items:center!important;gap:13px!important;min-width:0!important;min-height:0!important;padding:15px 17px!important;background:#fff!important;border:1px solid #e4eeea!important;border-radius:17px!important;box-shadow:var(--flow-shadow)!important;overflow:hidden!important;position:relative!important}
.home-kpi::after{content:'';position:absolute;right:-22px;bottom:-40px;width:115px;height:95px;background:url('/assets/ape-flow-decoration.svg') center/contain no-repeat;opacity:.035;pointer-events:none}
.home-kpi-icon{width:43px!important;height:43px!important;flex:none!important;border-radius:12px!important;background:#e5f5ed!important;color:#23856b!important}.home-kpi:nth-child(2) .home-kpi-icon{background:#e8f4f9!important;color:#327f97!important}.home-kpi:nth-child(3) .home-kpi-icon{background:#fff1e5!important;color:#bd8048!important}.home-kpi:nth-child(4) .home-kpi-icon{background:#e7f4ea!important;color:#478e6f!important}
.home-kpi-copy b{font-family:'Onest',system-ui,sans-serif!important;font-size:1.7rem!important;color:#103d44!important}.home-kpi-copy>span{color:#6a8287!important}.home-kpi-copy small{color:#237f6e!important}
.main:has(>.home-hero)>.home-grid{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,1.23fr) minmax(310px,.83fr)!important;gap:15px!important;margin:0!important}.main:has(>.home-hero)>.home-onboarding{grid-column:1/-1!important}
.home-card,.panel,.table-wrap,.modal,.agenda{background:#fff!important;border:1px solid #e3eeea!important;border-radius:18px!important;box-shadow:var(--flow-shadow)!important}.home-card{padding:21px!important}.home-card::before,.home-card-head::after{display:none!important}.home-card-head h2{font-family:'Onest',system-ui,sans-serif!important;font-size:1.12rem!important;color:#103d44!important}.home-card-head p{color:#74888c!important}.home-card-wide{grid-column:1/-1!important}
.home-action,.home-alert,.home-activity-row{border:1px solid #e7f0ec!important;background:#f7fbf9!important;border-radius:12px!important}.home-action.is-primary{background:#e7f5ed!important}.home-action-icon{background:#e1f3e9!important;color:#237b68!important}.home-empty{background:#f6fbf8!important;border:1px dashed #dcebe4!important;border-radius:15px!important}
.btn{border-radius:10px!important;border-color:#d7e6df!important}.btn-primary{background:#268a74!important;border-color:#268a74!important;color:#fff!important}.btn-primary:hover{background:#176d5b!important}.btn-dark{background:#123e43!important;color:#fff!important}.badge{border-radius:7px!important}.table th{background:#f3f9f6!important;color:#587379!important}.table tbody tr[data-i]:hover td{background:#f5faf7!important}input,select,textarea{border-radius:10px!important;border-color:#d8e6df!important}input:focus,select:focus,textarea:focus{border-color:#328e78!important;box-shadow:0 0 0 3px #e1f4ea!important}.modal-foot{background:#f7faf9!important}.toast{background:#103e43!important;border-left-color:#57b894!important}
.login-body{background:linear-gradient(155deg,#10363f,#1b615a)!important}.login-hero::before{background:url('/assets/ape-flow-decoration.svg') right top/contain no-repeat!important;opacity:.17!important}.login-hero h1{font-family:'Onest',system-ui,sans-serif!important;color:#123e43!important}
@media(max-width:1190px){.main:has(>.home-hero){grid-template-columns:1fr!important}.main:has(>.home-hero)>.home-hero,.main:has(>.home-hero)>.home-kpis,.main:has(>.home-hero)>.home-grid{grid-column:1!important}.main:has(>.home-hero)>.home-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}.main:has(>.home-hero)>.home-grid{grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr)!important}}
@media(max-width:900px){.shell{display:block!important}.topbar{background:#103d43!important;color:#fff!important}.sidebar{position:fixed!important;top:52px!important;left:0!important;bottom:0!important;height:calc(100dvh - 52px)!important;width:min(282px,88vw)!important;z-index:40!important}.sidebar::after{position:absolute!important}.main{padding:20px 14px 45px!important}.main:has(>.home-hero)>.home-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.main:has(>.home-hero)>.home-grid{grid-template-columns:1fr!important}}
@media(max-width:560px){.main{padding:15px 11px 35px!important}.main:has(>.home-hero)>.home-hero{padding:24px 22px!important}.home-hero::before{opacity:.09!important}.home-kpi{padding:12px!important}.home-kpi-icon{width:34px!important;height:34px!important}}
@media print{.sidebar,.topbar{display:none!important}.shell{display:block!important}.main{padding:0!important}.main::before{display:none!important}}
@media(prefers-reduced-motion:reduce){.sidebar .nav a,.btn,.home-kpi{transition:none!important}}
