/* Sage i7 desktop shell. It is scoped to avoid changing the existing AdminLTE UI. */
/* Sous-menus Comptabilité : en-têtes et séparateurs du menu Sage i7. */
.s7-menu .s7-sep{height:0;margin:3px 5px;border-top:1px solid #c4beaf}.s7-menu .s7-header{padding:5px 14px 3px;color:#716b5d;font-size:10px;font-weight:700;letter-spacing:.45px;text-transform:uppercase;white-space:nowrap}
.s7-menu ul a .fas{display:inline-block;width:16px;margin-right:5px;text-align:center;color:#4a5564}.s7-menu ul a:hover .fas{color:#fff}.s7-menu ul a.active{background:#e3dfd1;font-weight:600}.s7-menu ul a.active:hover{background:#1c3f66;color:#fff}
.s7-railgroup{margin:9px 3px 4px;padding:3px 2px 2px;border-bottom:1px solid #c8c1b2;color:#716b5d;font-size:9px;font-weight:700;letter-spacing:.55px;text-transform:uppercase}
body.sage7{margin:0;background:#e6e3db;color:#222;font:12px "Segoe UI",Tahoma,Arial,sans-serif}body.sage7 a{color:#173d69}body.sage7 a:hover{color:#0d2948}
.s7-menubar{display:flex;align-items:center;gap:3px;min-height:30px;padding:2px 6px;background:linear-gradient(#fdfcf8,#e3dfd1);border-bottom:1px solid #9a9484;position:sticky;top:0;z-index:3000;overflow:visible}.s7-brand{font-weight:700;color:#1c3f66;padding:3px 12px 3px 6px;border-right:1px solid #b9b3a2;white-space:nowrap}.s7-menu{display:flex;flex:0 0 auto;list-style:none;margin:0;padding:0}.s7-menu>li{position:relative}.s7-menu>li>a{display:block;padding:4px 10px;color:#1c2938;text-decoration:none;white-space:nowrap}.s7-menu>li.open>a,.s7-menu>li>a:hover{background:#1c3f66;color:#fff}.s7-menu ul{display:none;position:absolute;top:100%;left:0;min-width:210px;padding:2px 0;margin:0;list-style:none;background:#f5f3ec;border:1px solid #7f7a6a;box-shadow:3px 3px 8px #0004;z-index:3001}.s7-menu li.open>ul{display:block}.s7-menu ul a{display:block;padding:4px 14px;color:#111;text-decoration:none;white-space:nowrap}.s7-menu ul a:hover{background:#1c3f66;color:#fff}.s7-right{margin-left:auto;display:flex;flex:0 0 auto;gap:4px}
.s7-btn{display:inline-block;padding:4px 10px;background:linear-gradient(#fff,#ece9df);border:1px solid #8f8a7c;border-top-color:#c7c2b4;border-left-color:#c7c2b4;box-shadow:inset 0 1px #fff;color:#1c2938;text-decoration:none;cursor:pointer;font:inherit}.s7-btn.s7-primary{background:linear-gradient(#2a5380,#1c3f66);border-color:#12304f;color:#fff}.s7-company-switch{margin:0}.s7-company-switch select{height:26px;max-width:185px;border:1px solid #8f8a7c;background:#fffef9;color:#1c2938;font:inherit;padding:1px 5px}.s7-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:5px 8px;background:linear-gradient(#f4f2ea,#ddd8c9);border-bottom:1px solid #b6b09e}.s7-toolbar .s7-spacer{flex:1}
.s7-shell{display:flex;min-height:calc(100vh - 88px)}.s7-rail{width:180px;flex:0 0 180px;padding:6px;background:#e8e4d9;border-right:1px solid #9a9484;overflow-y:auto;max-height:calc(100vh - 56px)}.s7-railtitle{padding:2px 4px 6px;color:#7a7365;font-weight:700;font-size:10px;letter-spacing:1px;text-transform:uppercase}.s7-rail-btn{display:block;margin-bottom:5px;padding:6px 5px;background:linear-gradient(#fdfcf8,#e2ded0);border:1px solid #8f8a7c;border-top-color:#c9c4b6;border-left-color:#c9c4b6;box-shadow:inset 0 1px #fff;color:#1c2938;text-align:left;text-decoration:none}.s7-rail-btn:hover,.s7-rail-btn.active{background:linear-gradient(#2a5380,#1c3f66);border-color:#12304f;color:#fff;text-decoration:none}.s7-rail-btn .ficon{display:inline-block;width:25px;text-align:center;font-size:17px}.s7-rail-btn .ftxt{font-weight:600}.s7-rail-btn .fsub{display:block;margin-left:29px;font-size:10px;color:#7a7365}.s7-rail-btn.active .fsub{color:#cfe0f4}
.s7-main{flex:1;min-width:0;padding:10px 12px 44px}.s7-window{background:#faf9f5;border:1px solid #7f7a6a;border-top:2px solid #1c3f66;box-shadow:2px 3px 8px #3c321e38}.s7-window-title{padding:5px 8px;background:linear-gradient(#2c5586,#17345c);color:#fff;font-weight:700}.s7-window-body{padding:10px 12px}.s7-status{position:fixed;bottom:0;left:0;right:0;z-index:1040;display:flex;gap:18px;padding:4px 9px;background:linear-gradient(#f4f2ea,#ddd8c9);border-top:1px solid #9a9484;color:#5d574a;font-size:11px}.s7-status .right{margin-left:auto}.s7-status .ok{color:#47713a}
/* ComptabilitÃ© : navigation uniquement par les cinq menus Sage, sans rail historique. */
body.sage7 .s7-accounting-shell .s7-rail,body.sage7.sage-rh .s7-rail,body.sage7.sage-commercial .s7-rail,body.sage7.sage-tresorerie .s7-rail,body.sage7.sage-passation .s7-rail,body.sage7.sage-parc_info .s7-rail,body.sage7.sage-parc_auto .s7-rail,body.sage7.sage-dechets .s7-rail,body.sage7.sage-production .s7-rail,body.sage7.sage-journaliers .s7-rail,body.sage7.sage-courrier .s7-rail,body.sage7.sage-messagerie .s7-rail{display:none}body.sage7 .s7-accounting-shell .s7-main,body.sage7.sage-rh .s7-main,body.sage7.sage-commercial .s7-main,body.sage7.sage-tresorerie .s7-main,body.sage7.sage-passation .s7-main,body.sage7.sage-parc_info .s7-main,body.sage7.sage-parc_auto .s7-main,body.sage7.sage-dechets .s7-main,body.sage7.sage-production .s7-main,body.sage7.sage-journaliers .s7-main,body.sage7.sage-courrier .s7-main,body.sage7.sage-messagerie .s7-main{width:100%;padding-left:12px;padding-right:12px}
/* Le tableau de bord Production a une ancienne navigation interne : la barre Sage suffit. */
body.sage7.sage-production .p-topbar,body.sage7.sage-production .p-tabs{display:none}body.sage7.sage-production .p-main{max-width:none;padding:10px 12px 42px}
/* Les dashboards commerciaux ont leur ancienne barre interne : la coquille Sage reste l'unique navigation. */
body.sage7.sage-commercial .c-topbar,body.sage7.sage-commercial .c-tabs{display:none}body.sage7.sage-commercial .c-main{max-width:none;padding:10px 12px 42px}
/* Navigation Sage par menus : aucune barre latérale historique dans les modules. */
body.sage7 .s7-rail{display:none}body.sage7 .s7-main{width:100%;padding-left:12px;padding-right:12px}
/* Legacy AdminLTE fragments are rendered inside the Sage window: remove their second sidebar offset. */
body.sage7 .content-wrapper{margin-left:0!important;min-height:0!important;background:transparent!important}body.sage7 .s7-window-body>.content-wrapper>.content-header{padding:0 0 8px!important}body.sage7 .s7-window-body>.content-wrapper>.content{padding:0!important}body.sage7 .s7-window-body .container-fluid{padding-left:0;padding-right:0}
/* Compatibility layer for the initial Sage pages which use f-* class names. */
body.sage7 .f-topbar{display:flex;align-items:center;gap:7px;padding:5px 8px;background:linear-gradient(#f4f2ea,#ddd8c9);border-bottom:1px solid #b6b09e;color:#222;box-shadow:none;position:static;min-height:0}body.sage7 .f-topbar .brand{flex:1;font-weight:700;color:#1c3f66}body.sage7 .f-topbar .brand small{color:#6d675b}body.sage7 .tb-btn,body.sage7 .qa-btn,body.sage7 .f-lnk{background:linear-gradient(#fff,#ece9df);border:1px solid #8f8a7c;border-radius:0;color:#1c2938;padding:4px 9px;text-decoration:none}body.sage7 .tb-btn.prim{background:linear-gradient(#2a5380,#1c3f66);color:#fff}body.sage7 .tb-btn.green{background:linear-gradient(#7fb06c,#5c8f4a);color:#fff}body.sage7 .f-tabs{display:flex;overflow:auto;padding:0 8px;background:#f5f3ec;border-bottom:1px solid #9a9484}body.sage7 .f-tab{padding:6px 11px;color:#1c2938;border:0;text-decoration:none;white-space:nowrap}body.sage7 .f-tab.active{background:#1c3f66;color:#fff}body.sage7 .f-main{max-width:none;margin:0;padding:10px 12px 42px}body.sage7 .sec-lbl{font-size:11px;color:#1c3f66;border-bottom:1px solid #bdb7a8;padding-bottom:4px;margin:9px 0 7px}body.sage7 .sec-lbl:after{display:none}body.sage7 .mod-card,body.sage7 .f-func,body.sage7 .s-card,body.sage7 .kpi{border-radius:0;border-color:#aaa397;box-shadow:none}body.sage7 .mod-card:hover,body.sage7 .f-func:hover{transform:none;background:#f5f3ec}body.sage7 .mod-card::before,body.sage7 .kpi::before{background:#1c3f66}body.sage7 .mod-card-ico{border-radius:2px;background:#2a5380}body.sage7 .f-func-ico{border-radius:2px;background:#e6e3db;color:#1c3f66}body.sage7 .s-card-hd{background:#e8e4d9}body.sage7 .f-status{display:none}
@media(max-width:760px){.s7-rail{display:none}.s7-main{padding:7px}.s7-brand{font-size:11px}.s7-menu>li>a{padding:4px 6px}}

/* Module hub: compact, task-oriented layout inspired by the reference Sage home. */
body.sage7.sage-home .f-topbar{border-top:2px solid #1c3f66}body.sage7.sage-home .f-main{max-width:1440px;padding:12px 16px 42px}.sage-home-hero{display:flex;align-items:center;gap:12px;padding:10px 13px;margin:0 0 13px;background:#faf9f5;border:1px solid #9a9484;border-top:2px solid #1c3f66;box-shadow:2px 3px 7px #3c321e26}.sage-home-hero-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:linear-gradient(#2c5586,#17345c);border:1px solid #12304f;color:#fff;font-size:19px}.sage-home-hero h1{margin:0;color:#1c3f66;font-size:17px;font-weight:700}.sage-home-hero p{margin:2px 0 0;color:#5d574a;font-size:11px}.sage-home-hero-meta{margin-left:auto;align-self:stretch;display:flex;align-items:center;padding-left:13px;border-left:1px solid #d6d1c4;color:#5d574a;font-size:11px}.sage-home .mod-section{margin:0 0 16px;padding:0 0 2px}.sage-home .mod-section-hd{margin:0 0 7px;padding:5px 7px;background:linear-gradient(#f4f2ea,#ddd8c9);border:1px solid #b6b09e}.sage-home .mod-section-hd h3{font-size:11px;color:#1c3f66;letter-spacing:.5px}.sage-home .mod-section-hd .dot{width:9px;height:9px;border-radius:0}.sage-home .mod-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.sage-home .mod-card{min-height:0;display:grid;grid-template-columns:34px 1fr auto;grid-template-rows:auto auto;padding:8px 9px 8px 11px;border:1px solid #aaa397;border-left:4px solid var(--mc,#1c3f66);border-radius:0;background:#fffef9;box-shadow:inset 0 1px #fff;transform:none!important}.sage-home .mod-card:hover{background:#eef3f8;border-color:#1c3f66;box-shadow:1px 2px 5px #3c321e30}.sage-home .mod-card::before{display:none}.sage-home .mod-card-ico{grid-row:1 / span 2;width:27px;height:27px;margin:0;border-radius:0;background:transparent!important;box-shadow:none;color:var(--mc,#1c3f66);font-size:18px}.sage-home .mod-card-title{grid-column:2;margin:0;color:#1c3f66;font-size:12px;line-height:1.2}.sage-home .mod-card-desc{grid-column:2 / span 2;margin-top:2px;font-size:10.5px;line-height:1.25;color:#5d574a}.sage-home .mod-card-meta{grid-column:3;grid-row:1;margin:0;padding:0;border:0}.sage-home .mod-card-count{display:none}.sage-home .mod-card-go{font-size:0;color:#1c3f66}.sage-home .mod-card-go i{font-size:12px}.sage-home .sage-logout{background:linear-gradient(#d97b6a,#c14f3d)!important;border-color:#a53a2a!important;color:#fff!important}@media(max-width:1050px){.sage-home .mod-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.sage-home .mod-grid{grid-template-columns:1fr}.sage-home-hero-meta{display:none}.sage-home-hero h1{font-size:14px}}

.sage-module-hero{display:flex;align-items:center;gap:11px;margin:0 0 12px;padding:9px 11px;background:#faf9f5;border:1px solid #9a9484;border-left:5px solid var(--sage-module-color,#1c3f66)}.sage-module-hero .module-icon{width:32px;text-align:center;font-size:20px;color:var(--sage-module-color,#1c3f66)}.sage-module-hero h1{margin:0;font-size:15px;color:#1c3f66}.sage-module-hero p{margin:2px 0 0;font-size:11px;color:#5d574a}.sage-module-hero .module-count{margin-left:auto;padding-left:12px;border-left:1px solid #d6d1c4;font-size:11px;color:#5d574a;white-space:nowrap}
