/* Task-oriented web interface, inspired by the clarity of native desktop apps. */
:root{--ink:#24262a;--muted:#686b73;--green:#1766c3;--dark:#24262a;--bg:#f5f5f7;--line:#e4e5e9;--pale:#eef3fb;--radius:14px}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
h1,h2,h3,.kpi-value,.action-number,.plan-summary>h2{font-family:inherit;letter-spacing:-.025em}h1{font-size:30px;font-weight:650}h2{font-size:18px;font-weight:600}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #1b74dc}.btn{border-radius:8px;font-size:12px;min-height:36px;padding:8px 13px;transition:background .15s}.btn.primary{background:#1766c3;border-color:#1766c3;color:white}.btn.primary:hover{background:#1254a2}.btn.secondary{background:white;border:1px solid #d8dbe2;color:#34373d;box-shadow:0 1px 2px #00000005}.btn.text{color:#1766c3}.btn.text:hover{background:#edf3fb}.btn:disabled{opacity:.48}.icon{width:19px;height:19px}
.task-sidebar{position:fixed;inset:0 auto 0 0;width:228px;background:#eeeff2;border-right:1px solid #dfe1e6;padding:30px 14px 18px;display:flex;flex-direction:column;z-index:20}.portal-brand{display:flex;flex-direction:column;gap:9px;text-decoration:none;color:#696d75;padding:0 14px 33px}.portal-brand img{width:137px;height:32px;object-fit:contain;object-position:left;filter:none}.portal-brand span{font-size:11px}.task-sidebar nav{display:grid;gap:5px}.task-nav{display:flex;align-items:center;gap:10px;width:100%;min-height:43px;border:0;border-radius:9px;background:transparent;color:#494e58;text-align:left;padding:11px 12px;font-size:13px}.task-nav:hover{background:#e2e5eb}.task-nav.active{background:#dce6f6;color:#185da7;font-weight:600}.task-nav .icon{width:18px;height:18px}.task-sidebar-foot{margin-top:auto;padding-top:30px}.private-caption{display:block;color:#777b84;font-size:10px;margin:18px 12px 0}
.task-shell{margin-left:228px;min-height:100dvh}.task-toolbar{height:70px;display:flex;justify-content:space-between;align-items:center;padding:0 34px;border-bottom:1px solid #e5e6ea;background:#f9f9fb}.task-context{font-size:13px;font-weight:600}.task-toolbar>div{display:flex;gap:20px;align-items:center}.portal-search-button{display:flex;align-items:center;gap:9px;color:#696d75!important;font-size:12px}.portal-search-button kbd{font-family:inherit;background:#eeeef1;border:1px solid #dedfe4;border-radius:4px;padding:1px 4px;font-size:10px}.account-menu{position:relative}.account-menu>summary{list-style:none;background:#e3e5e9;border:1px solid #dadde3;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;font-size:10px;font-weight:600;cursor:pointer}.account-menu>summary::-webkit-details-marker{display:none}.account-menu>div{position:absolute;right:0;top:42px;z-index:40;background:white;padding:16px;width:210px;border:1px solid var(--line);box-shadow:0 10px 30px #00000015;border-radius:12px}.account-menu strong{display:block;font-size:12px;margin-bottom:8px}
.task-subnav{display:flex;gap:6px;align-items:center;padding:17px 34px 0;flex-wrap:wrap}.task-subnav a{text-decoration:none;font-size:12px;color:#646a74;padding:7px 12px;border-radius:8px;border:1px solid transparent;white-space:nowrap}.task-subnav a:hover{background:#e9ebef}.task-subnav a[aria-current=page]{background:white;border-color:#dddfe5;box-shadow:0 1px 3px #00000006;color:#20242a;font-weight:600}.task-shell main{max-width:1600px;padding:30px 34px 0;min-height:0}.page-heading{margin-bottom:24px;align-items:flex-start}.page-heading p{font-size:13px;line-height:1.65;max-width:780px;margin-top:9px}.page-heading .eyebrow{display:none}.heading-actions{flex-shrink:0}.task-footer{margin-top:42px;padding:20px 0;color:#8a8e97;font-size:10px;border-top:1px solid var(--line)}
.card{border:1px solid #e5e6eb;background:#fff;box-shadow:0 2px 6px #00000002;border-radius:14px}.unified-card{padding:24px}.card-head{padding:22px 24px}.pi-review{margin-top:18px}.pi-review p,.unified-card p{font-size:12px;line-height:1.75}.pi-fields{gap:18px}.pi-field{font-size:12px;color:#565b65}.pi-field input,.pi-field select,.pi-field textarea{font:13px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;border-color:#d7dbe3;border-radius:8px;padding:10px}.kpis{padding:20px 0;gap:0}.kpi-label{font-size:11px;color:#686d78}.kpi-value{font-size:27px;color:#222831}.kpi-note{font-size:10px;line-height:1.6}.kpi-value.orange{color:#a74e25}table th{font-size:10px;letter-spacing:.01em;color:#717783;background:#fafafb;font-weight:600}table td{font-size:12px;padding-top:14px;padding-bottom:14px}details>summary{cursor:pointer;color:#48515e;font-size:12px;padding:8px 0}details[open]>summary{margin-bottom:9px}.portal-disclosure{padding:13px 22px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-top:18px}.portal-disclosure>summary{font-size:13px;font-weight:600}.portal-disclosure .card{box-shadow:none}.portal-connections{margin-top:30px;border-top:1px solid var(--line);padding-top:12px}.portal-connections .live-status{margin-top:12px}.fineprint{font-size:10px;line-height:1.7}.view-switch{display:flex;gap:4px;background:#e9ebf0;border-radius:9px;padding:4px;width:fit-content;margin:22px 0 10px;flex-wrap:wrap}.view-switch button{border:0;color:#5c6370;background:transparent;padding:8px 14px;border-radius:6px;font-size:12px}.view-switch button[aria-pressed=true]{background:white;color:#252c37;box-shadow:0 1px 4px #00000012;font-weight:600}
.home-heading{margin:22px 0 34px}.home-heading>span{font-size:10px;letter-spacing:.12em;color:#7c818a}.home-heading h1{font-size:35px;letter-spacing:-1.1px;margin:12px 0}.home-heading p{font-size:14px}.home-workspace{display:grid;grid-template-columns:minmax(420px,1.5fr) minmax(260px,1fr);gap:28px;max-width:1100px}.task-list{border:1px solid var(--line);background:white;border-radius:16px;overflow:hidden;align-self:start}.task-launch{display:flex;gap:17px;align-items:center;text-decoration:none;color:var(--ink);padding:24px;border-bottom:1px solid #f0f1f4;transition:background .15s}.task-launch:last-child{border-bottom:0}.task-launch:hover{background:#f6f9fe}.task-launch>span:nth-child(2){flex:1}.task-launch strong{display:block;font-size:15px;font-weight:600}.task-launch small{display:block;font-size:12px;color:#7a7e87;margin-top:5px;line-height:1.5}.task-launch>.icon{width:15px;color:#afb4bc}.task-launch-icon{width:39px;height:39px;border-radius:11px;background:#eef3fa;color:#3675b8;display:grid;place-items:center;flex-shrink:0}.home-side{display:flex;flex-direction:column;gap:26px}.home-note{padding:28px;background:#eaf0f8;border-radius:16px;border:1px solid #dfe7f2}.home-note-label{font-size:9px;letter-spacing:.1em;color:#5b7491}.home-note h2{font-size:23px;max-width:240px;line-height:1.25;margin:15px 0}.home-note p{font-size:12px;line-height:1.8;color:#617083;margin-bottom:24px}.home-note a{display:flex;align-items:center;gap:12px;color:#245b97;text-decoration:none;font-size:12px;font-weight:600}.home-note a .icon{width:16px}.home-shortcuts{padding:0 4px}.home-shortcuts h2{font-size:13px;margin:0 0 8px}.home-shortcuts a{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #e3e5e9;text-decoration:none;color:#616876;font-size:12px}.home-shortcuts .icon{width:13px}
#task-search{width:min(590px,94vw);max-height:80dvh;border:1px solid #daddE4;border-radius:16px;padding:22px;box-shadow:0 22px 80px #00000030}dialog::backdrop{background:#1b253b40}#task-search::backdrop{backdrop-filter:blur(3px)}.search-dialog-head{display:flex;align-items:center;justify-content:space-between;font-weight:600;font-size:15px}#task-search-input{width:100%;padding:12px;margin:14px 0;border:1px solid #cdd2dc;border-radius:9px;background:#f8f9fb}.search-results h3{font-size:10px;letter-spacing:.04em;color:#7f8691;margin:16px 9px 5px}.search-results button{display:flex;width:100%;justify-content:space-between;align-items:center;border:0;background:transparent;padding:10px;border-radius:7px;font-size:13px;text-align:left}.search-results button:hover{background:#edf3fc}.search-results button[hidden],.search-results section[hidden]{display:none}.search-results .icon{width:14px;color:#9ba3af}
.owner-login{font-family:inherit}.owner-login h1{font-size:28px}.owner-login .card{box-shadow:0 8px 40px #00000005}
@media(min-width:1600px){.task-shell main{padding-left:46px;padding-right:46px}.task-subnav,.task-toolbar{padding-left:46px;padding-right:46px}}
@media(max-width:1100px){.task-sidebar{width:205px;padding-left:10px;padding-right:10px}.task-shell{margin-left:205px}.task-nav{font-size:12px}.task-shell main{padding:24px}.task-toolbar{padding:0 24px}.task-subnav{padding:14px 24px 0}.home-workspace{grid-template-columns:1fr}.home-side{display:grid;grid-template-columns:1fr 1fr}.home-heading h1{font-size:29px}.portal-search-button kbd{display:none}.page-heading{flex-wrap:wrap}}
@media(max-width:760px){.task-sidebar{position:static;width:100%;padding:14px 16px 8px;border-right:0;border-bottom:1px solid var(--line)}.portal-brand{padding:0 2px 14px;flex-direction:row;justify-content:space-between;align-items:center}.portal-brand img{width:110px;height:24px}.task-sidebar nav{display:flex;overflow-x:auto;gap:4px;padding-bottom:5px}.task-nav{width:auto;flex-shrink:0;min-height:38px;padding:9px 11px;font-size:11px;gap:7px}.task-sidebar-foot{margin:0;padding:0}.task-sidebar-foot .task-nav{position:absolute;right:14px;top:8px;font-size:0;gap:0;width:34px}.portal-brand span,.private-caption{display:none}.task-shell{margin:0}.task-toolbar{height:52px;padding:0 18px}.task-toolbar>div{gap:10px}.task-context{font-size:12px}.portal-search-button{font-size:11px;padding:6px}.task-subnav{padding:12px 16px 0;gap:3px}.task-subnav a{font-size:11px;padding:7px 9px}.task-shell main{padding:22px 17px 0}.home-heading{margin:5px 0 24px}.home-heading h1{font-size:28px}.home-heading p{font-size:13px}.home-workspace{display:block}.home-side{margin-top:24px;display:block}.home-shortcuts{margin-top:25px}.task-launch{padding:20px 17px;gap:12px}.task-launch strong{font-size:14px}.task-launch small{font-size:11px}.home-note{padding:24px}.home-note h2{max-width:none}.kpis{display:grid;grid-template-columns:1fr 1fr;gap:20px}.kpi{padding:0 12px}.kpi-value{font-size:23px}.card.pi-review,.unified-card{padding:18px}.view-switch{width:100%}.view-switch button{flex:1;padding:8px 9px}.task-footer{margin-top:26px}.page-heading h1{font-size:26px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Expense checks remain readable in a narrow app panel. */
.cash-expense-review td small { display:block; margin-top:5px; color:#66736b; }
.cash-expense-review table { min-width:0; }
@media (max-width: 1000px) {
 .cash-expense-review thead { display:none; }
 .cash-expense-review tbody { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .cash-expense-review tbody tr { display:flex; flex-direction:column; border:1px solid #e1e7e3; border-radius:12px; padding:12px; }
 .cash-expense-review tbody td { display:block; border:0; padding:4px 0; white-space:normal; }
 .cash-expense-review tbody td:nth-child(3)::before { content:'Échéance : '; color:#66736b; }
 .cash-expense-review tbody td:nth-child(4) { color:#66736b; font-size:12px; }
 .cash-expense-review tbody td:last-child { margin-top:auto; padding-top:10px; }
 .cash-expense-review .btn { white-space:normal; }
}
@media (max-width: 520px) { .cash-expense-review tbody { grid-template-columns:1fr; } }
