:root{--bg:#f4f7f7;--text:#182b30;--accent:#087f8c;--border:#dbe5e5}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font-family:Segoe UI,Arial,sans-serif}.appShell{grid-template-columns:260px 1fr;min-height:100vh;display:grid}.sidebar{background:#fff;border-right:1px solid #e5e7eb;height:100vh;padding:16px;position:sticky;top:0}.brand{margin-bottom:14px;text-decoration:none;display:block}.brandLogo{width:168px;max-width:100%;height:auto;display:block}.navList{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.navLink{color:#111827;border-radius:10px;padding:10px 12px;text-decoration:none;display:block}.navLink:hover{background:#f3f4f6}.navLink.active{color:#075d65;box-shadow:inset 3px 0 var(--accent);background:#e5f4f3;font-weight:600}.content{flex-direction:column;min-width:0;display:flex}.topbar{background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.topbarTitle{align-items:center;gap:8px;font-weight:600;display:inline-flex}.topbarMark{border-radius:6px;flex:none;width:22px;height:22px}.topbarUser{align-items:center;gap:10px;display:flex}.langForm{align-items:center;gap:8px;display:inline-flex}.langLabel{color:#4b5563;font-size:12px}.langSwitch{color:#1f2937;background:linear-gradient(#efe2ad,#e7d89a);border:1px solid #dccf92;border-radius:999px;justify-content:space-between;align-items:center;width:112px;height:42px;padding:0 14px;transition:background .16s,border-color .16s;display:inline-flex;position:relative}.langSwitch:hover{filter:none;background:linear-gradient(#f3e7b7,#eadca4)}.langSwitchText{z-index:2;letter-spacing:.03em;color:#8d8b7a;font-size:12px;font-weight:700;transition:color .16s;position:relative}.langSwitch.isFr .langSwitchTextFr,.langSwitch.isEn .langSwitchTextEn{color:#111827}.langSwitchThumb{background:#fff;border:1px solid #e5e7eb;border-radius:50%;width:34px;height:34px;transition:transform .18s;position:absolute;top:4px;left:4px;box-shadow:0 3px 8px #11182738}.langSwitch.isEn .langSwitchThumb{transform:translate(70px)}.topbarIdentity{text-align:right}.topbarEmail{color:#111827;margin:0;font-size:13px;font-weight:600}.topbarRoles{color:#6b7280;margin:0;font-size:12px}.page{padding:18px}main{background:0 0;border:0;border-radius:0;padding:16px}h1{margin:0 0 10px}h2{margin-top:0;font-size:18px}.muted{color:#6b7280;margin:0}.periodTabs{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.periodTab{color:#1f2937;background:#fff;border:1px solid #dbe3f1;border-radius:999px;padding:6px 10px;font-size:13px;font-weight:600;text-decoration:none}.periodTab.active{color:#1e3a8a;background:#eff6ff;border-color:#bfdbfe}.dashboardHero{justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:10px;display:flex}.chipRow{flex-wrap:wrap;gap:8px;display:flex}.metricChip{color:#1e3a8a;background:#f8fbff;border:1px solid #dbe3f1;border-radius:999px;align-items:center;padding:8px 10px;font-size:13px;font-weight:600;display:inline-flex}section{border:0;border-top:1px solid var(--border);background:0 0;border-radius:0;margin:22px 0;padding:16px 0}input,select,button{font:inherit;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px}button{cursor:pointer;background:var(--accent);color:#fff;border:1px solid var(--accent)}button:hover{filter:brightness(1.05)}form{flex-wrap:wrap;align-items:center;gap:10px;display:flex}details{margin-top:8px}table{border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #e5e7eb;border-radius:12px;width:100%;overflow:hidden}th,td{text-align:left;vertical-align:top;border-bottom:1px solid #e5e7eb;padding:10px 12px}th{background:#f9fafb;font-weight:600}tr:last-child td{border-bottom:none}.actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.toolbarForm{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.toolbarForm input,.toolbarForm select{min-width:180px}.linkButton{color:#111827;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:9px 12px;text-decoration:none;display:inline-block}.linkButton:hover{background:#f9fafb}.disabledLink{pointer-events:none;opacity:.45}.btnSecondary{color:#111827;background:#fff;border:1px solid #e5e7eb}.btnDanger{background:#b91c1c;border-color:#b91c1c}.flash{border:1px solid #e5e7eb;border-radius:12px;margin:0 0 12px;padding:10px 12px}.flashOk{color:#065f46;background:#ecfdf5;border-color:#34d399}.flashError{color:#7f1d1d;background:#fef2f2;border-color:#fca5a5}summary{cursor:pointer;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:8px 10px;display:inline-block}summary:hover{background:#f9fafb}.serviceLines{width:100%}.fieldLabel{margin:0 0 8px;font-weight:600}.serviceLineRow{flex-wrap:wrap;gap:8px;margin-bottom:8px;display:flex}.rolesField{width:100%}.rolesChoices{flex-wrap:wrap;gap:8px;display:flex}.roleChoice{background:#fff;border:1px solid #e5e7eb;border-radius:999px;align-items:center;gap:6px;padding:6px 10px;display:inline-flex}.kpiGrid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;display:grid}.kpiCard{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px;box-shadow:0 1px 1px #11182705}.kpiLabel{color:#4b5563;margin:0;font-size:13px}.kpiValue{margin:8px 0 4px;font-size:24px;font-weight:700}.kpiHint{color:#6b7280;margin:0;font-size:13px}.barChart{grid-auto-columns:minmax(62px,1fr);grid-auto-flow:column;align-items:end;gap:10px;height:250px;display:grid;overflow-x:auto}.barItem{flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;height:100%;display:flex}.barValue{color:#4b5563;font-size:12px}.barValueGroup{color:#4b5563;flex-direction:column;align-items:center;font-size:11px;display:flex}.dualBar{flex-shrink:0;justify-content:center;align-items:flex-end;gap:4px;width:100%;max-width:54px;height:170px;display:flex}.barFill{background:linear-gradient(#2563eb,#1d4ed8);border-radius:10px 10px 4px 4px;width:100%;max-width:44px}.barFillRevenue{background:linear-gradient(#3b82f6,#2563eb);width:24px;max-width:24px}.barFillTasks{background:linear-gradient(#34d399,#10b981);width:24px;max-width:24px}.barLabel{color:#6b7280;font-size:12px}.insightGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.ratioList{gap:12px;display:grid}.ratioItem{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:10px}.progressRow{gap:8px;margin-bottom:8px;display:grid}.progressHeader{justify-content:space-between;gap:10px;font-size:14px;display:flex}.progressTrack{background:#eef2f7;border-radius:999px;height:9px;overflow:hidden}.progressFill{border-radius:inherit;height:100%}.progressFillBlue{background:linear-gradient(90deg,#3b82f6,#2563eb)}.progressFillGreen{background:linear-gradient(90deg,#10b981,#059669)}.paginationBar{justify-content:flex-end;align-items:center;gap:10px;margin-top:12px;display:flex}:where(a,button,input,select,summary):focus-visible{outline-offset:3px;outline:3px solid #087f8c}.brand{padding:8px 0 20px}.brandLogo{width:190px}.kpiCard{border-top:3px solid var(--accent);border-radius:8px}.kpiValue{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}tbody tr:hover{background:#f1f8f7}.topbarEmail{overflow-wrap:anywhere}input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--accent)}.langSwitch{background:#e5f4f3;border-color:#beddda}.langSwitch:hover{background:#d9eeec}.langSwitchText{letter-spacing:0;color:#506763}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important}}@media (max-width:900px){.appShell{grid-template-columns:220px 1fr}.dashboardHero{flex-direction:column}.insightGrid{grid-template-columns:1fr}}@media (max-width:760px){.appShell{grid-template-rows:auto 1fr;grid-template-columns:1fr}.sidebar{border-bottom:1px solid #e5e7eb;border-right:0;height:auto;padding:12px;position:static}.brand{margin-bottom:10px}.brandLogo{width:132px}.navList{flex-flow:wrap;gap:8px}.navLink{padding:8px 10px;font-size:13px}.topbar{flex-direction:column;align-items:flex-start}.topbarUser{flex-wrap:wrap;justify-content:space-between;width:100%}.topbarIdentity{text-align:left;flex:180px}.page,main{padding:12px}form{align-items:stretch}input,select,button{width:100%}.toolbarForm input,.toolbarForm select{min-width:0}.actions{align-items:stretch}.paginationBar{justify-content:space-between}table{-webkit-overflow-scrolling:touch;display:block;overflow-x:auto}th,td{white-space:nowrap}}.settingsForm{align-items:start;gap:18px;max-width:860px;display:grid}.settingsForm fieldset{border:1px solid var(--border);border-radius:12px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:0;padding:16px;display:grid}.settingsForm legend{padding:0 6px;font-weight:600}.settingsForm label{align-content:start;gap:6px;font-size:.9rem;display:grid}.settingsForm .settingsWide{grid-column:1/-1}.settingsForm textarea{font:inherit;resize:vertical;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px}
