/* Assemblée nationale: DRC sky blue, yellow and red. Dark shades retain readable contrast. */
:root { --an-blue:#007fff; --an-yellow:#f7d618; --an-red:#ce1021; --an-ink:#14263f; --an-line:#dbe6f1; --an-tint:#f4f8fc; }
body { --an-dark:#06263e; --an-mid:#075a87; --an-light:#147ba8; --an-accent:#075a87; }
body.admin #header { background:linear-gradient(110deg,#06263e,#075a87)!important; border-bottom:3px solid #f7d618!important; }
body.admin #side-menu > li.active > a { border-left-color:#f7d618!important; }
body .rm-dashboard-hero { background:linear-gradient(115deg,#06263e,#075a87 65%,#147ba8)!important; }
body .rm-dashboard-hero h1 { color:#f7d618!important; -webkit-text-fill-color:#f7d618!important; }
body.rm-commerce-invoices,body.rm-premium-invoices {--an-dark:#33280e;--an-mid:#685316;--an-light:#826b1a;--an-accent:#685316;--rc-dark:#33280e;--rc-mid:#685316;--rc-light:#826b1a;--rc-accent:#685316;--rc-tint:#f4f8fc;--rc-line:#dbe6f1;--rc-gold:#f7d618;--rc-ink:#14263f;--rc-muted:#596a7e;}
body.rm-commerce-estimates,body.rm-premium-estimates {--an-dark:#40121b;--an-mid:#852237;--an-light:#a62d42;--an-accent:#852237;--rc-dark:#40121b;--rc-mid:#852237;--rc-light:#a62d42;--rc-accent:#852237;--rc-tint:#f4f8fc;--rc-line:#dbe6f1;--rc-gold:#f7d618;--rc-ink:#14263f;--rc-muted:#596a7e;}
body.rm-commerce-proposals,body.rm-premium-proposals {--an-dark:#281e35;--an-mid:#59314e;--an-light:#783c61;--an-accent:#59314e;--rc-dark:#281e35;--rc-mid:#59314e;--rc-light:#783c61;--rc-accent:#59314e;--rc-tint:#f4f8fc;--rc-line:#dbe6f1;--rc-gold:#f7d618;--rc-ink:#14263f;--rc-muted:#596a7e;}
body.rm-commerce-payments {--an-dark:#07303d;--an-mid:#075974;--an-light:#086f88;--an-accent:#075974;--rc-dark:#07303d;--rc-mid:#075974;--rc-light:#086f88;--rc-accent:#075974;--rc-tint:#f4f8fc;--rc-line:#dbe6f1;--rc-gold:#f7d618;--rc-ink:#14263f;--rc-muted:#596a7e;}
body.rm-commerce-credit_notes {--an-dark:#3c1720;--an-mid:#7a2d3d;--an-light:#983a4c;--an-accent:#7a2d3d;--rc-dark:#3c1720;--rc-mid:#7a2d3d;--rc-light:#983a4c;--rc-accent:#7a2d3d;--rc-tint:#f4f8fc;--rc-line:#dbe6f1;--rc-gold:#f7d618;--rc-ink:#14263f;--rc-muted:#596a7e;}
body.rm-commerce-invoice_items {--an-dark:#172735;--an-mid:#354d60;--an-light:#486476;--an-accent:#354d60;--rc-dark:#172735;--rc-mid:#354d60;--rc-light:#486476;--rc-accent:#354d60;--rc-tint:#f4f8fc;--rc-line:#dbe6f1;--rc-gold:#f7d618;--rc-ink:#14263f;--rc-muted:#596a7e;}
body.rm-commerce-projects {--an-dark:#3c2910;--an-mid:#795215;--an-light:#956719;--an-accent:#795215;--rc-dark:#3c2910;--rc-mid:#795215;--rc-light:#956719;--rc-accent:#795215;--rc-tint:#f4f8fc;--rc-line:#dbe6f1;--rc-gold:#f7d618;--rc-ink:#14263f;--rc-muted:#596a7e;}
body.rm-commerce-tasks {--an-dark:#421a18;--an-mid:#8d322a;--an-light:#a74236;--an-accent:#8d322a;--rc-dark:#421a18;--rc-mid:#8d322a;--rc-light:#a74236;--rc-accent:#8d322a;--rc-tint:#f4f8fc;--rc-line:#dbe6f1;--rc-gold:#f7d618;--rc-ink:#14263f;--rc-muted:#596a7e;}
body.rm-commerce-leads {--an-dark:#35320e;--an-mid:#706319;--an-light:#8b7b20;--an-accent:#706319;--rc-dark:#35320e;--rc-mid:#706319;--rc-light:#8b7b20;--rc-accent:#706319;--rc-tint:#f4f8fc;--rc-line:#dbe6f1;--rc-gold:#f7d618;--rc-ink:#14263f;--rc-muted:#596a7e;}
body.rm-commerce-expenses {--an-dark:#341d25;--an-mid:#703440;--an-light:#894350;--an-accent:#703440;--rc-dark:#341d25;--rc-mid:#703440;--rc-light:#894350;--rc-accent:#703440;--rc-tint:#f4f8fc;--rc-line:#dbe6f1;--rc-gold:#f7d618;--rc-ink:#14263f;--rc-muted:#596a7e;}
body.rm-commerce-tickets {--an-dark:#3b1515;--an-mid:#7c2424;--an-light:#a03430;--an-accent:#7c2424;--rc-dark:#3b1515;--rc-mid:#7c2424;--rc-light:#a03430;--rc-accent:#7c2424;--rc-tint:#f4f8fc;--rc-line:#dbe6f1;--rc-gold:#f7d618;--rc-ink:#14263f;--rc-muted:#596a7e;}
body.rm-commerce-clients {--an-dark:#142643;--an-mid:#234f84;--an-light:#32679d;--an-accent:#234f84;--rc-dark:#142643;--rc-mid:#234f84;--rc-light:#32679d;--rc-accent:#234f84;--rc-tint:#f4f8fc;--rc-line:#dbe6f1;--rc-gold:#f7d618;--rc-ink:#14263f;--rc-muted:#596a7e;}
body.rm-commerce-reports_expenses {--an-dark:#34291b;--an-mid:#6c5330;--an-light:#846940;--an-accent:#6c5330;--rc-dark:#34291b;--rc-mid:#6c5330;--rc-light:#846940;--rc-accent:#6c5330;--rc-tint:#f4f8fc;--rc-line:#dbe6f1;--rc-gold:#f7d618;--rc-ink:#14263f;--rc-muted:#596a7e;}
body.rm-commerce-reports_sales {--an-dark:#132b3b;--an-mid:#2c576d;--an-light:#39708b;--an-accent:#2c576d;--rc-dark:#132b3b;--rc-mid:#2c576d;--rc-light:#39708b;--rc-accent:#2c576d;--rc-tint:#f4f8fc;--rc-line:#dbe6f1;--rc-gold:#f7d618;--rc-ink:#14263f;--rc-muted:#596a7e;}
body .rm-invoice-hero,body .rm-estimate-hero,body .rm-proposal-hero,body.rm-commerce-page .rm-commerce-hero { background:linear-gradient(115deg,var(--an-dark),var(--an-mid) 65%,var(--an-light))!important; }
body .rm-invoice-hero h1,body .rm-estimate-hero h1,body .rm-proposal-hero h1,body.rm-commerce-page .rm-commerce-hero h1 { color:#f7d618!important;-webkit-text-fill-color:#f7d618!important; }
body .rm-dashboard-hero::before,body .rm-invoice-hero::after,body .rm-estimate-hero::after,body .rm-proposal-hero::after,body.rm-commerce-page .rm-commerce-hero::after,body .rm-client-home__hero::after,body .rm-client-page__hero::after,body .rm-client-kb__hero::after { background:linear-gradient(90deg,#007fff 0 33.333%,#f7d618 33.333% 66.666%,#ce1021 66.666%)!important; }
body.rm-premium-invoices table.table-invoices thead th,body.rm-premium-estimates table.table-estimates thead th,body.rm-premium-proposals table.table-proposals thead th { background:#f4f8fc!important;color:#4c5e74!important;border-bottom-color:#dbe6f1!important; }
body.rm-premium-invoices table.table-invoices thead th::after,body.rm-premium-estimates table.table-estimates thead th::after,body.rm-premium-proposals table.table-proposals thead th::after {color:var(--an-accent)!important;}
body.rm-premium-invoices table.table-invoices tbody tr.rm-invoice-selected > td,body.rm-premium-estimates table.table-estimates tbody tr.rm-estimate-selected > td,body.rm-premium-proposals table.table-proposals tbody tr.rm-proposal-selected > td { background:#edf4fb!important; }
body.rm-premium-invoices .pagination .active a,body.rm-premium-estimates .pagination .active a,body.rm-premium-proposals .pagination .active a {background:var(--an-accent)!important;color:#fff!important;}
body.rm-premium-invoices .rm-invoice-selection-bar,body.rm-premium-estimates .rm-estimate-selection-bar,body.rm-premium-proposals .rm-proposal-selection-bar {background:var(--an-dark)!important;}
body .rm-client-home__hero,body .rm-client-page__hero,body .rm-client-kb__hero {background:linear-gradient(115deg,#06263e,#075a87 65%,#147ba8)!important;}
body .rm-client-home__hero h1,body .rm-client-page__hero h1,body .rm-client-kb__hero h1 {color:#f7d618!important;-webkit-text-fill-color:#f7d618!important;}
body.customers .navbar.navbar-default.header {background:linear-gradient(110deg,#06263e,#075a87)!important;}
body .exp-auth-shell {--auth-blue:#075a87;--auth-gold:#f7d618;}
body .exp-auth-story {background:linear-gradient(135deg,#06263e,#075a87 70%,#147ba8)!important;}
body .exp-auth-story h1 em {color:#f7d618!important;}
body .exp-auth-story::after {inset:auto 0 0!important;height:4px!important;background:linear-gradient(90deg,#007fff 0 33.333%,#f7d618 33.333% 66.666%,#ce1021 66.666%)!important;}
body .exp-auth-button {background:#075a87!important;color:#fff!important;}
body .exp-auth-logo img,body .navbar-brand img {object-fit:contain;}
@media(prefers-reduced-motion:reduce) {body .rm-dashboard-hero,body .rm-commerce-hero,body .rm-invoice-hero,body .rm-estimate-hero,body .rm-proposal-hero {animation:none!important;} }

body .exp-auth-logo {background:#fff;border-radius:12px;padding:8px 12px;}

/* Dense institutional presentation for native Perfex pages; legacy priorities require scoped overrides. */
html body.admin #wrapper :is(.rm-dashboard-hero,.rm-commerce-hero,.rm-invoice-hero,.rm-estimate-hero,.rm-proposal-hero) {padding:28px!important;border-radius:18px!important;min-height:0!important;box-shadow:0 8px 20px -14px #06263e!important;}
html body.admin #wrapper :is(.rm-dashboard-hero,.rm-commerce-hero,.rm-invoice-hero,.rm-estimate-hero,.rm-proposal-hero) h1 {font-size:clamp(28px,3vw,40px)!important;line-height:1.15!important;}
html body.admin #wrapper :is(.rm-dashboard-hero,.rm-commerce-hero,.rm-invoice-hero,.rm-estimate-hero,.rm-proposal-hero) p {font-size:15px!important;max-width:70ch!important;}
html body.admin #wrapper :is(.rm-commerce-kpi,.rm-kpi-inspired,.rm-dashboard-kpi) {border-radius:12px!important;box-shadow:0 5px 14px -10px #06263e!important;}
@media(max-width:767px) {html body.admin #wrapper :is(.rm-dashboard-hero,.rm-commerce-hero,.rm-invoice-hero,.rm-estimate-hero,.rm-proposal-hero) {padding:20px!important;} }
